/* =========================================================
   Wholesome Fitness, Site-wide additions
   - Mobile nav drawer
   - Header scroll polish
   - Blog: featured / grid / article / TOC
   - Contact: enhanced form
   - Tweak panel chrome niceties
   ========================================================= */

/* Density modifier (set by tweaks panel) */
:root { --wf-density: 1; }

/* ---------- Header polish ---------- */
.site-header { transition: box-shadow 200ms var(--ease-out), background 200ms; }
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--header-border), 0 6px 16px rgba(6, 67, 141, 0.06);
}
[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--header-border), 0 6px 16px rgba(0,0,0,0.5);
}
.site-header__nav a[aria-current="page"] {
  color: var(--accent);
}
.site-header__nav a {
  position: relative;
  padding: 6px 0;
}
.site-header__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}

/* Burger (mobile only) */
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 2px; cursor: pointer;
  color: var(--fg-strong);
}
.nav-burger svg { display: block; }
@media (min-width: 1024px) { .nav-burger { display: none; } }

/* Sticky booking banner */
.sticky-booking-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--accent); color: white;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  font-size: 14px;
}

.sticky-booking-banner__text {
  flex: 1;
}

.sticky-booking-banner > a {
  background: #ffffff;
  color: var(--wf-blue);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  display: inline-block;
  transition: background 180ms ease, color 180ms ease, transform 80ms ease;
}

.sticky-booking-banner > a:hover {
  background: var(--wf-blue-700);
  color: #ffffff;
}

.sticky-booking-banner > a:active {
  transform: translateY(1px);
}

.sticky-booking-banner__close {
  background: none; border: none; color: white; font-size: 24px; cursor: pointer;
  padding: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
}

.sticky-booking-banner__close:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .sticky-booking-banner {
    flex-direction: column; gap: 12px;
  }
  .sticky-booking-banner__text {
    text-align: center; font-size: 13px;
  }
  .sticky-booking-banner a {
    width: 100%; text-align: center;
  }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0;
  background: var(--page-bg);
  z-index: 60;
  transform: translateY(-100%);
  transition: transform 240ms var(--ease-out);
  display: flex; flex-direction: column;
  padding: 16px 20px 32px;
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateY(0); }
.nav-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.nav-drawer__close {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 2px; cursor: pointer; color: var(--fg-strong);
}
.nav-drawer__links { display: flex; flex-direction: column; gap: 0; flex: 1; }
.nav-drawer__links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px;
  font-weight: 700; font-size: 22px; color: var(--fg-strong);
  text-decoration: none; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
}
.nav-drawer__links a[aria-current="page"] { color: var(--accent); }
.nav-drawer__links a::after { content: "→"; opacity: 0.3; font-weight: 400; }
.nav-drawer__cta { margin-top: 24px; }
.nav-drawer__cta .button { width: 100%; }
.nav-drawer__meta {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--fg-muted);
  display: flex; flex-direction: column; gap: 8px;
}

@media (min-width: 1024px) { .nav-drawer { display: none; } }

/* ---------- Blog: index page ---------- */

/* Filter bar */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.blog-filter {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--fg-strong); cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.blog-filter:hover { background: var(--surface-muted); }
.blog-filter[aria-pressed="true"] {
  background: var(--fg-strong); color: var(--page-bg); border-color: var(--fg-strong);
}

/* Featured card */
.blog-featured {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--vibe-card-radius);
  overflow: hidden;
  margin-bottom: var(--vibe-grid-gap);
  transition: box-shadow 180ms var(--ease-out), border-color 120ms;
}
.blog-featured:hover {
  box-shadow: var(--shadow-card-hi);
  border-color: var(--border-strong);
}
@media (min-width: 1024px) {
  .blog-featured { grid-template-columns: 1.1fr 1fr; }
}
.blog-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(160deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(45deg, var(--accent-hover) 0%, #1a2733 100%);
  overflow: hidden;
  isolation: isolate;
}
.blog-featured__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("./assets/logo-mark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60% auto;
  opacity: 0.2;
  filter: brightness(0) invert(1);
}
.blog-featured__media-tag {
  position: absolute; top: 20px; left: 20px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.blog-featured__body {
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
}
@media (min-width: 1024px) { .blog-featured__body { padding: 48px; } }
.blog-featured__eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.blog-featured__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0; color: var(--fg-strong);
  text-wrap: balance;
}
.blog-featured__excerpt {
  font-size: 16px; color: var(--fg-muted); line-height: 1.55;
  margin: 0; max-width: 56ch;
}
.blog-featured__meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--fg-soft); font-weight: 600;
}
.blog-featured__meta::before { display: none; }

/* Article grid */
.blog-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--vibe-grid-gap);
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr 1fr; } }

.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--vibe-card-radius);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 180ms var(--ease-out), border-color 120ms, transform 200ms;
}
.post-card:hover {
  box-shadow: var(--shadow-card-hi);
  border-color: var(--border-strong);
}
.post-card__media {
  aspect-ratio: 16 / 10;
  position: relative;
  background: var(--surface-muted);
  overflow: hidden;
}
.post-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  z-index: 2;
}
.post-card__media:has(img) > .post-card__media-num,
.post-card__media:has(img) > .post-card__media-mark { display: none; }
.blog-featured__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  z-index: 1;
}
.blog-featured__media .blog-featured__media-tag { z-index: 2; }
.blog-featured__media:has(img)::before { display: none; }
/* Gradient placeholder variants, type-led */
.post-card__media--a { background: linear-gradient(135deg, #06438D 0%, #0a2540 100%); }
.post-card__media--b { background: linear-gradient(135deg, #1a1a1a 0%, #2D343B 100%); }
.post-card__media--c { background: linear-gradient(135deg, #06438D 0%, #4A7BC0 100%); }
.post-card__media--d { background: linear-gradient(135deg, #2D343B 0%, #06438D 100%); }
.post-card__media--e { background: linear-gradient(135deg, #C5CED6 0%, #8A95A1 100%); }
.post-card__media--f { background: linear-gradient(135deg, #06438D 0%, #1F2730 50%, #06438D 100%); }
.post-card__media-mark {
  position: absolute; bottom: 16px; right: 16px;
  width: 48px; height: 48px;
  background-image: url("./assets/logo-mark.png");
  background-repeat: no-repeat; background-position: center;
  background-size: contain;
  opacity: 0.35;
  filter: brightness(0) invert(1);
}
.post-card__media-num {
  position: absolute; left: 20px; top: 16px;
  font-size: 80px; font-weight: 700; line-height: 1;
  color: rgba(255,255,255,0.18);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.post-card__body {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.post-card__cat {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.post-card__title {
  font-size: 20px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.01em; margin: 0;
  color: var(--fg-strong);
  text-wrap: balance;
}
.post-card__excerpt {
  font-size: 14px; color: var(--fg-muted); line-height: 1.5;
  margin: 0;
}
.post-card__meta {
  display: flex; gap: 12px; align-items: center;
  margin-top: auto; padding-top: 16px;
  font-size: 12px; color: var(--fg-soft); font-weight: 600;
}
.post-card__meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--fg-soft);
}

/* Newsletter band */
.newsletter-band {
  background: var(--surface-inverse); color: var(--fg-on-inverse);
  padding: 80px 0;
  position: relative; overflow: hidden;
  border-top: 4px solid var(--accent);
}
.newsletter-band__inner {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .newsletter-band__inner { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}
.newsletter-band__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 12px;
}
.newsletter-band__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 16px; text-wrap: balance;
  color: var(--fg-on-inverse);
}
.newsletter-band__sub {
  margin: 0; opacity: 0.92; font-size: 17px; line-height: 1.55;
  max-width: 50ch;
}
.newsletter-form {
  display: flex; gap: 8px; flex-direction: column;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600;
  background: rgba(255,255,255,0.16);
  color: var(--fg-on-inverse);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--vibe-card-radius);
  padding: 18px 20px;
  transition: border-color 120ms, background 120ms;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.22);
}
[data-theme="dark"] .newsletter-form input {
  background: rgba(255,255,255,0.04);
  color: var(--fg-on-inverse);
}

/* ---------- Article (single post) ---------- */

.article-cover {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 0;
  box-sizing: border-box;
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: var(--vibe-card-radius);
  background: var(--surface-muted);
}

.article-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 1024px) { .article-hero { padding: 88px 0 48px; } }

.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-soft); text-decoration: none;
  margin-bottom: 24px;
  transition: color 120ms;
}
.article-back:hover { color: var(--accent); }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 20px;
}
.article-meta__cat { color: var(--accent); }
.article-meta__dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--fg-soft);
}

.article-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 20px;
  color: var(--fg-strong);
  text-wrap: balance;
  max-width: 22ch;
}
.article-deck {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  color: var(--fg-muted);
  margin: 0 0 32px; max-width: 60ch;
  text-wrap: pretty;
}
.article-byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-byline__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #0a2540 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  overflow: hidden;
}
.article-byline__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-byline__name {
  font-size: 15px; font-weight: 700; color: var(--fg-strong);
  margin: 0;
}
.article-byline__role {
  font-size: 13px; color: var(--fg-muted);
  margin: 0;
}

/* Article body layout */
.article-body-grid {
  display: grid; grid-template-columns: 1fr; gap: 48px;
  padding: 56px 0 96px;
}
@media (min-width: 1024px) {
  .article-body-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 80px;
    padding: 80px 0 128px;
  }
}

/* TOC */
.article-toc {
  align-self: start;
  font-size: 13px;
}
@media (min-width: 1024px) {
  .article-toc { position: sticky; top: 88px; }
}
.article-toc__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft); margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.article-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  counter-reset: toc;
}
.article-toc li { counter-increment: toc; }
.article-toc a {
  display: block;
  text-decoration: none;
  font-weight: 600; color: var(--fg-muted);
  line-height: 1.4;
  transition: color 120ms;
  padding: 4px 0 4px 28px;
  position: relative;
  border-left: 2px solid transparent;
}
.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 4px; top: 4px;
  font-variant-numeric: tabular-nums;
  color: var(--fg-soft); font-weight: 700;
}
.article-toc a:hover, .article-toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  padding-left: 28px;
}
.article-toc a.is-active::before { color: var(--accent); }

/* Prose */
.prose {
  max-width: 68ch;
  font-size: 18px; line-height: 1.65;
  color: var(--fg-strong);
}
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin: 2.4em 0 0.6em;
  color: var(--fg-strong);
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  margin: 1.8em 0 0.4em;
  color: var(--fg-strong);
}
.prose p { margin: 0 0 1em; color: var(--fg-strong); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 120ms, color 120ms;
}
.prose a:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.prose ul, .prose ol {
  padding-left: 24px; margin: 1em 0;
  display: flex; flex-direction: column; gap: 8px;
}
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative; padding-left: 24px;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 12px; height: 2px; background: var(--accent);
}
.prose ol li { padding-left: 4px; }
.prose blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--accent);
  font-size: 22px; font-weight: 700; line-height: 1.3;
  font-style: italic;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.prose blockquote p { margin: 0; }
.prose blockquote cite {
  display: block; margin-top: 12px;
  font-size: 13px; font-weight: 600; font-style: normal;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.prose hr {
  border: 0; border-top: 1px solid var(--border);
  margin: 3em 0;
}
.prose code {
  background: var(--surface-muted);
  padding: 2px 6px; border-radius: 2px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
}

/* Pull-out callout used in articles */
.callout {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--surface-muted);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--vibe-card-radius) var(--vibe-card-radius) 0;
}
.callout__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.callout p { margin: 0; font-size: 17px; line-height: 1.5; }

.article-foot__share {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  align-items: center;
}
.article-foot__share-label { color: var(--fg-soft); margin-right: 8px; }
/* Related posts */
.related {
  background: var(--surface-muted);
  padding: 64px 0 80px;
}
.related__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px;
  gap: 16px; flex-wrap: wrap;
}
.related__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700; letter-spacing: -0.02em;
  margin: 0; color: var(--fg-strong);
}

/* ---------- Contact: enhanced form ---------- */

.apply-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 32px; align-items: start;
}
@media (min-width: 1024px) {
  .apply-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
}

.apply-form {
  display: flex; flex-direction: column; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--vibe-card-radius);
  overflow: hidden;
  min-width: 0;
}

.apply-form__step {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: grid; gap: 16px;
  min-width: 0;
}
@media (min-width: 640px) {
  .apply-form__step { grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 32px; padding: 32px; }
}
@media (min-width: 1024px) {
  .apply-form__step { padding: 40px; }
}
.apply-form__step:last-of-type { border-bottom: 0; }

.apply-form__step-head {
  display: flex; flex-direction: column; gap: 4px;
}
.apply-form__step-num {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.apply-form__step-title {
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0; color: var(--fg-strong); line-height: 1.2;
}
.apply-form__step-sub {
  font-size: 13px; color: var(--fg-muted); margin: 6px 0 0;
  line-height: 1.5;
}

.apply-form__fields {
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.apply-form__fields > * { min-width: 0; max-width: 100%; }

.field {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.field--row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .field--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field label, .field-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans); font-size: 16px;
  color: var(--fg-strong);
  background: var(--page-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--vibe-card-radius);
  padding: 14px 16px; line-height: 1.4;
  font-weight: 500;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 120ms, box-shadow 120ms;
}
.field input { size: 1; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,67,141,0.18);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus {
  box-shadow: 0 0 0 3px rgba(92,143,216,0.25);
}
.field textarea { min-height: 140px; resize: vertical; font-family: var(--font-sans); }
.field__hint { font-size: 12px; color: var(--fg-soft); }

/* Pill-radio set */
.choice-grid {
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  cursor: pointer;
  display: block;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-tile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--page-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--vibe-card-radius);
  font-size: 14px; font-weight: 700; color: var(--fg-strong);
  transition: border-color 120ms, background 120ms;
}
.choice-tile small {
  font-weight: 500; font-size: 12px; color: var(--fg-muted);
  letter-spacing: 0;
}
.choice input:focus-visible + .choice-tile {
  box-shadow: 0 0 0 3px rgba(6,67,141,0.18);
}
.choice input:checked + .choice-tile {
  border-color: var(--accent); border-width: 2px;
  padding: 13px 15px;
  background: var(--accent-soft);
}

/* Submit row */
.apply-form__submit {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 24px 32px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .apply-form__submit { padding: 24px 40px; } }
.apply-form__note {
  font-size: 13px; color: var(--fg-muted); margin: 0;
  flex: 1; min-width: 200px;
}

/* Contact info aside */
.contact-aside {
  display: flex; flex-direction: column; gap: 16px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--vibe-card-radius);
  padding: 28px;
}
.info-card h3 {
  font-size: 18px; font-weight: 700; margin: 0 0 8px;
  color: var(--fg-strong);
}
.info-card p {
  font-size: 14px; color: var(--fg-muted); margin: 0 0 16px;
  line-height: 1.5;
}
.info-card dl {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin: 0;
}
.info-card dt {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft); margin-bottom: 2px;
}
.info-card dd {
  margin: 0;
  font-size: 15px; color: var(--fg-strong); font-weight: 600;
}
.info-card dd a {
  color: var(--fg-strong); text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 120ms, border-color 120ms;
}
.info-card dd a:hover { color: var(--accent); border-color: var(--accent); }

.info-card--inverse {
  background: var(--surface-inverse);
  color: var(--fg-on-inverse);
  border-color: transparent;
}
.info-card--inverse h3 { color: var(--fg-on-inverse); }
.info-card--inverse p { color: var(--fg-on-inverse); opacity: 0.75; }
.info-card--inverse dt { color: var(--fg-on-inverse); opacity: 0.6; }
.info-card--inverse dd { color: var(--fg-on-inverse); }
.info-card--inverse dd a { color: var(--fg-on-inverse); border-color: rgba(255,255,255,0.3); }
.info-card--inverse dd a:hover { color: var(--fg-on-inverse); border-color: var(--fg-on-inverse); }

/* FAQ accordion */
.faq {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 18px;
  color: var(--fg-strong);
  letter-spacing: -0.01em;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400; font-size: 24px; line-height: 1;
  color: var(--accent);
  transition: transform 200ms var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body {
  margin-top: 12px;
  font-size: 15px; line-height: 1.55;
  color: var(--fg-muted);
  max-width: 64ch;
}
.faq__body p { margin: 0 0 0.8em; }
.faq__body p:last-child { margin: 0; }

/* Trust strip (used on contact / blog) */
.trust-strip {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-strip__item {
  display: flex; flex-direction: column; gap: 4px;
}
.trust-strip__num {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}
.trust-strip__label {
  font-size: 13px; color: var(--fg-muted); font-weight: 600;
  line-height: 1.4;
}

/* ---------- Tweaks panel, extra controls ---------- */
/* ---------- Reduced motion already handled in home.css ---------- */

/* ---------- Free tools (calculators + decision aids) ---------- */
.tool { max-width: 720px; margin: 0 auto; }
.tool__head { text-align: center; margin-bottom: 24px; }
.tool__title { font-size: 24px; font-weight: 700; color: var(--fg-strong); margin: 0 0 8px; }
.tool__sub { font-size: 15px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
.tool form { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.tool legend { padding: 0; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; }
.tool-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 600px) { .tool-row--2 { grid-template-columns: 1fr 1fr; } }
.tool label { display: block; font-size: 14px; font-weight: 600; color: var(--fg-strong); margin-bottom: 6px; }
.tool input[type="number"], .tool select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 16px; font-family: inherit; box-sizing: border-box; background: var(--surface); color: var(--fg-strong); }
.tool input[type="number"]:focus, .tool select:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; }
.tool .radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 600px) { .tool .radio-grid--3 { grid-template-columns: repeat(3, 1fr); } .tool .radio-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.tool .radio-tile { position: relative; }
.tool .radio-tile input { position: absolute; opacity: 0; pointer-events: none; }
.tool .radio-tile span { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; text-align: center; font-size: 14px; font-weight: 600; color: var(--fg-strong); cursor: pointer; user-select: none; transition: border-color 0.12s, background 0.12s; }
.tool .radio-tile input:checked + span { border-color: var(--accent); background: var(--surface-muted); color: var(--fg-strong); box-shadow: inset 0 0 0 1px var(--accent); }
.tool .radio-tile input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool button[type="submit"] { width: 100%; padding: 14px 24px; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 6px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; transition: opacity 0.15s; }
.tool button[type="submit"]:hover { opacity: 0.9; }
.tool-result { background: var(--surface); border: 2px solid var(--accent); border-radius: 8px; padding: 24px; margin-top: 16px; }
.tool-result__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.tool-result__primary { font-size: 28px; font-weight: 700; color: var(--fg-strong); margin: 0 0 12px; line-height: 1.2; }
.tool-result__secondary { font-size: 16px; color: var(--fg-strong); line-height: 1.55; margin: 0 0 12px; }
.tool-result__note { font-size: 13px; color: var(--fg-muted); line-height: 1.5; margin: 0; }
.tool-result__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .tool-result__list--2 { grid-template-columns: 1fr 1fr; } }
.tool-result__list li { padding: 10px 12px; background: var(--surface-muted); border-radius: 6px; font-size: 14px; color: var(--fg-strong); }
.tool-result__list li strong { color: var(--accent); }
.tool-result--rest { border-color: #c44; }
.tool-result--rest .tool-result__label, .tool-result--rest .tool-result__list li strong { color: #c44; }
.tool-result--modify { border-color: #d80; }
.tool-result--modify .tool-result__label, .tool-result--modify .tool-result__list li strong { color: #d80; }

/* ---------- Guide detail hero (cover + info side-by-side) ---------- */
.guide-hero__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 768px) { .guide-hero__grid { grid-template-columns: minmax(220px, 280px) 1fr; gap: 48px; } }
.guide-cover {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  max-width: 280px;
}
.guide-cover__bg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px; color: #fff;
}
.guide-cover__label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.85;
}
.guide-cover__title {
  font-size: 22px; font-weight: 700; line-height: 1.15;
  text-wrap: balance; letter-spacing: -0.01em;
}
.guide-cover__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- Related posts (blog post footer) ---------- */
.related-posts { padding: 48px 0; background: var(--surface-muted); }
.related-posts__title { font-size: 20px; font-weight: 700; margin: 0 0 24px; color: var(--fg-strong); text-align: center; }
.related-posts__grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) { .related-posts__grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: block; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: inherit; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.related-card__cat { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.related-card__title { font-size: 17px; font-weight: 700; color: var(--fg-strong); line-height: 1.35; margin: 0 0 8px; }
.related-card__excerpt { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 0 0 12px; }
.related-card__meta { font-size: 12px; color: var(--fg-soft); }

/* ---------- Accessibility: skip-to-content + global focus-visible ---------- */
.skip-to-content {
  position: absolute;
  top: 0;
  left: 0;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.15s ease;
}
.skip-to-content:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent-fg);
  outline-offset: -4px;
}

/* Keyboard-only focus indicator. Browsers only render :focus-visible after
   keyboard navigation (Tab), mouse clicks won't trigger it. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
