/* Design tokens. Every colour, size, space, radius, shadow, layer, and
   duration in src/css/ comes from this file (2026-10-09 token pass,
   BUILD_LOG.md); the other stylesheets reference tokens, not raw values.

   Scales:
   - Spacing and component sizes sit on a 4px grid (--space-*), with 2px only
     for hairline gaps. No odd or fractional pixel values anywhere.
   - Type sizes are even pixel values in rem (--text-*). Headings step at the
     breakpoints instead of scaling fluidly, so no size is fractional.
   - Borders: 1px hairlines for dividers (--border-width) and 2px for controls
     and accents (--border-width-strong).

   Breakpoints (media queries cannot read custom properties; these are the
   only widths used, written as range queries so no value is odd):
   width < 360px, <= 420px, <= 600px, <= 720px, < 1024px, <= 1100px.

   Themes: the light palette is :root; [data-theme="dark"] overrides it.
   theme.js sets data-theme="dark" on <html> before first paint. Every
   text/background pair was checked to WCAG AA (BUILD_LOG.md, Phase 2).
   The build concatenates src/css/*.css in filename order, so this file is
   first and the cascade is tokens, base, layout, components, pages. */

/* Libre Franklin, self-hosted (SIL OFL 1.1; static/assets/fonts/README.md).
   One variable file covers the weights in use (400 to 800), Latin only. The
   build appends ?v=<hash> to the URL. */
@font-face {
  font-family: 'Libre Franklin';
  src: url('/assets/fonts/LibreFranklin-latin.woff2?v=d21d1545') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* ── Colour: light theme ─────────────────────────────────────────────── */
  --bg-page: #f7f6f2;
  --bg-card: #ffffff;
  --bg-band: #efede6;
  --border: #dcd9d1;
  --border-strong: #c4c0b6;
  --control-border: #858178; /* resting border of form fields and the theme switch track; decorative borders keep --border (Bill, QA, 2026-10-07) */

  --text: #17181a;
  --text-muted: #565b63;   /* 6.3:1 on page, 6.8:1 on card */
  --text-dim: #656a72;     /* 5.0:1 on page, 5.4:1 on card, 4.65:1 on band */
  --text-soft: #40454d;    /* a step lighter than --text, for labels beside white figures (Bill, 2026-10-27: the California panel's course names): 8.9:1 on page, 9.6:1 on card */

  --gold: #c9973f;         /* buttons and accents in both themes; text on it is --on-gold (6.8:1) */
  --gold-text: #8a6420;    /* gold as text or link colour: 5.0:1 on page, 5.4:1 on card */
  --on-gold: #17181a;      /* both themes */
  --focus: var(--gold-text);
  --control-thumb: var(--gold-text); /* the theme switch thumb */
  --error: #b42318;
  --success: #067647;
  --print-ink: #000000;

  /* Tints derived from the palette, so they follow the theme. */
  --focus-ring-color: color-mix(in srgb, var(--focus) 30%, transparent);
  --success-tint: color-mix(in srgb, var(--success) 12%, transparent);
  --error-tint: color-mix(in srgb, var(--error) 12%, transparent);
  --on-gold-hover: color-mix(in srgb, var(--on-gold) 8%, transparent);
  --gold-subdued: color-mix(in srgb, var(--gold) 45%, transparent); /* the featured panel's border (Bill, 2026-10-27): gold at 45%, so it recedes against the dark surface */

  --shadow: 0 16px 36px rgba(20, 21, 25, 0.12);

  /* ── Type ────────────────────────────────────────────────────────────── */
  --font-sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-md: 1.125rem;   /* 18px */
  --text-lg: 1.25rem;    /* 20px */
  --text-xl: 1.5rem;     /* 24px */
  --text-2xl: 1.75rem;   /* 28px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 2.5rem;    /* 40px */
  --text-6xl: 3rem;      /* 48px */
  --text-h1: var(--text-6xl); /* steps down at the breakpoints below */
  --text-h2: var(--text-4xl);

  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --tracking-tighter: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-slight: 0.03em; /* the state group's offer line (Bill, 2026-10-27) */
  --tracking-wide: 0.05em;

  /* Line lengths for running text. */
  --measure-xs: 24ch;
  --measure-sm: 40ch;
  --measure-md: 56ch;
  --measure-lg: 64ch;
  --measure: 72ch;
  --measure-wide: 80ch;
  --measure-full: 100ch;
  --measure-note: 500px;    /* Bill, 2026-10-28: the membership hero's state-selection note, "approximately 500px" */

  /* ── Space (4px grid) ────────────────────────────────────────────────── */
  --space-0-5: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;    /* Bill, 2026-10-28: the membership closing band's vertical padding and its gap to the disclosure */
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ── Sizes ───────────────────────────────────────────────────────────── */
  --control-height: 56px;   /* text inputs and selects (Bill's 2026-10-28 contact brief: one height for both; selects rendered 5px shorter) */
  --size-touch: 44px;     /* minimum interactive target: brand mark, menu button */
  --size-icon-button: 32px;
  --size-caret: 6px;      /* height of the menu caret; its width is 2 x --space-1 */
  --width-sidebar: 260px; /* FAQ side column; also the course card minimum */
  --width-dropdown: 260px;
  --width-form: 560px;
  --width-column: 900px;  /* single reading column (membership questions) */
  --width-reading: 800px; /* the state course pages' centred reading column below the learn/included pair (Bill's brief, 2026-10-30: about 48 to 52rem) */
  --width-band-copy: 720px; /* the membership closing band's centred content (Bill, 2026-10-27) */
  --width-row-price: 192px;  /* Our Courses directory (Bill, 2026-10-30): the price track of every row's action area, with slack beyond the struck and offer California figures (176px wide) so they stay on one line */
  --width-row-button: 264px; /* and its button track, wide enough for "Renewal Course Details →" so the buttons align right and the prices align left across all five rows */
  --media-sm: 140px;      /* course tile photo band */
  --media-md: 220px;      /* hero photo on phones, placeholder minimum */
  --media-lg: 300px;      /* split photo, short hero */
  --media-xl: 380px;      /* hero photo, feature panel */

  /* ── Shape ───────────────────────────────────────────────────────────── */
  --border-width: 1px;
  --border-width-strong: 2px;
  --focus-ring-width: 2px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* ── Layers and motion ───────────────────────────────────────────────── */
  --z-header: 10;
  --z-dropdown: 20;
  --z-skip-link: 100;
  --duration-fast: 150ms;
  --duration: 200ms;
  --ease: ease;
  --opacity-hover: 0.85;
  --opacity-disabled: 0.6;

  /* ── Layout ──────────────────────────────────────────────────────────── */
  --container-max: 1440px; /* 1360px (the mockups' preview width) until 2026-10-09 */
  --container-pad: var(--space-12);
  --section-pad: var(--space-12);        /* vertical padding of a .section, and the space either side of a section divider (64px until 2026-10-09) */
  --section-pad-tight: var(--space-8);   /* a .section-tight (40px until 2026-10-09) */
  --nav-height: 72px;
  --drawer-available-height: calc(100dvh - var(--nav-height) - var(--border-width));
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg-page: #141519;
  --bg-card: #1d1f24;
  --bg-band: #1a1c21;
  --border: #2b2e35;
  --border-strong: #3a3f47;
  --control-border: #737b86;

  --text: #f2f1ee;
  --text-muted: #a7abb2;   /* 7.9:1 on page, 7.2:1 on card */
  --text-dim: #8d9198;     /* 5.8:1 on page, 5.2:1 on card */
  --text-soft: #d1d5db;    /* Bill's light gray (2026-10-27): 12.4:1 on page, 11.2:1 on card */

  --gold-text: #d8a955;    /* 8.5:1 on page */
  --focus: var(--gold);
  --control-thumb: var(--gold);
  --error: #f97066;
  --success: #4ade80;

  --shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

/* Responsive tokens: the only place a token changes with the viewport. */
@media (width <= 1100px) {
  :root { --container-pad: var(--space-7); }
}
@media (width < 1024px) {
  :root { --nav-height: 64px; --text-h1: var(--text-5xl); --text-h2: var(--text-3xl); }
}
@media (width <= 720px) {
  :root { --container-pad: var(--space-4); --section-pad: var(--space-8); --section-pad-tight: var(--space-6); --text-h1: var(--text-3xl); --text-h2: var(--text-xl); }
}

/* Reset, typography, links, buttons, focus, skip link. Every value is a
   token from 00-tokens.css (Libre Franklin extrabold headings with tight
   tracking, muted body copy, 8px-radius gold buttons). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--border-width)); /* the sticky header's height, row plus hairline (2026-10-23): anchor jumps and focus scrolls land below it; [id] in 40-pages.css adds the breathing room */
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text);
  line-height: var(--leading-relaxed);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }

h1, h2, h3, h4 { color: var(--text); font-weight: var(--weight-extrabold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
h1 { font-size: var(--text-h1); letter-spacing: var(--tracking-tighter); margin-bottom: var(--space-5); }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
h4 { font-size: var(--text-md); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }

p { color: var(--text-muted); margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--text-md); line-height: var(--leading-relaxed); max-width: var(--measure-md); }

/* Mockup convention: links inherit colour and have no underline; links inside
   running text (paragraphs and .prose) are gold and underlined so they stay
   visible. Navigation, cards, and footer links style themselves. */
a { color: inherit; text-decoration: none; }
p a:not(.btn), .prose a:not(.btn) { color: var(--gold-text); text-decoration: underline; text-underline-offset: var(--space-0-5); }
a:hover { opacity: 1; }
.section-link:hover, .course-card-link:hover { text-decoration: underline; text-underline-offset: var(--space-0-5); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
/* External reference links (Bill, 2026-10-07): a thin diagonal arrow after the text (↗), 12px, 4px from the last word
   (13px and 6px until the 2026-10-09 token pass), in the link colour in every state, drawn by CSS from an inline SVG
   mask. The pseudo-element is invisible to assistive tech; the hidden "(opens in new tab)" text in the HTML carries the
   meaning. Conversion links never get it. It is inline, a zero-width non-breaking space with the arrow masked over its
   padding, so a wrap can never separate it from the word; the box sits 2px below the baseline and rises 12px, which
   centres the arrow on the capital letters. */
.ext-link::after {
  content: "\00a0";
  font-size: 0;
  margin-left: var(--space-1);
  padding: var(--space-3) var(--space-3) 0 0;
  vertical-align: calc(-1 * var(--space-0-5));
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%2018%2018%206%27%2F%3E%3Cpath%20d%3D%27M8%206h10v10%27%2F%3E%3C%2Fsvg%3E") center / var(--space-3) var(--space-3) no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.75%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%2018%2018%206%27%2F%3E%3Cpath%20d%3D%27M8%206h10v10%27%2F%3E%3C%2Fsvg%3E") center / var(--space-3) var(--space-3) no-repeat;
}

ul, ol { list-style: none; }
strong, b { color: var(--text); font-weight: var(--weight-bold); }
img, svg, video { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
textarea { resize: vertical; }
code { font-family: var(--font-mono); font-size: 0.875em; }
hr { border: 0; border-top: var(--border-width) solid var(--border); margin: var(--space-8) 0; }

:focus-visible { outline: var(--focus-ring-width) solid var(--focus); outline-offset: var(--space-0-5); }

.skip-link {
  position: absolute;
  top: calc(-1 * var(--space-16));
  left: 0;
  z-index: var(--z-skip-link);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; opacity: 1; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Buttons. Primary is the gold block; secondary a 2px outline. */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  border: var(--border-width-strong) solid transparent;
  font: inherit;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
}
.btn:hover { text-decoration: none; opacity: var(--opacity-hover); }
.btn-primary { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); font-weight: var(--weight-semibold); }
.btn-secondary:hover { border-color: var(--text-dim); opacity: 1; }
.btn-lg { padding: var(--space-4) var(--space-7); font-size: var(--text-md); }
.btn:disabled { opacity: var(--opacity-disabled); cursor: wait; }

/* Long-form copy (legal pages, FAQ answers, page bodies). */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-10); font-size: min(var(--text-2xl), var(--text-h2)); } /* never larger than the page h2 where --text-h2 steps down */
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-7); }
.prose h3:first-child { margin-top: 0; } /* a heading that opens a card inside prose (question cards, callouts) keeps the card's own padding */
.prose ul, .prose ol { padding-left: var(--space-6); margin-bottom: var(--space-4); color: var(--text-muted); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--gold-text); }

/* Page-level layout: container, sections, header, navigation, footer.
   Desktop: 48px gutters, a 72px header, a five-column footer. The
   breakpoints are this site's, recorded in BUILD_LOG.md; the token values
   that change with them are in 00-tokens.css.

   Class names and ids the framework scripts depend on and that must stay:
   src/js/theme.js  -> #theme-toggle (role="switch", aria-checked; in the footer since 2026-10-23)
   src/js/main.js   -> .menu-toggle, #mobile-nav, [data-current-year]
   src/lib/navigation.mjs renders .nav-link, .nav-link-cta, .mobile-nav-link,
   .mobile-nav-link-cta, .footer-column, .footer-heading, .footer-links, and
   the States menu classes noted below (gap 6). */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--section-pad) 0; }
.section-tight { padding: var(--section-pad-tight) 0; }
.section-closing { padding-bottom: var(--section-pad); } /* 2026-10-27 (Bill): a tight section that ends the page keeps the standard space above the footer rule */
/* 2026-10-27 (Bill): a bordered panel inside the container, like the membership band, instead of a full-bleed strip. */
.band { background: var(--bg-band); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); padding: var(--space-10); } /* --bg-band keeps the module cards distinct inside it on the product pages */

.section-heading { text-align: center; margin-bottom: var(--space-10); }
.section-heading p { font-size: var(--text-base); }
.section-heading h2 { margin-bottom: var(--space-2); }
.section-heading-start { text-align: start; margin-bottom: var(--space-7); } /* 2026-10-27 (Bill): the home state heading lines up with the first card; 28px to the cards (40px until later that day), like the nationwide heading row */
.section-heading .price-offer-line { display: block; margin-top: var(--space-3); } /* 2026-10-27 (Bill): the group's offer line 12px under the state heading (the h2's 8px margin collapses into it) */
.section-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-6); margin-bottom: var(--space-7); } /* 28px to the cards (8px until 2026-10-27, Bill) */
.section-row h2 { margin: 0; }
.section-link { font-weight: var(--weight-semibold); color: var(--gold-text); white-space: nowrap; }

.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Interior page opener (stub pages, legal pages, 404). .page-header and .page-title are in
   40-pages.css; until 2026-10-09 a second, overridden copy of both sat here. */
.page-subtitle { font-size: var(--text-md); margin: 0; max-width: var(--measure-lg); }
.page-header .btn { margin-top: var(--space-5); }

/* Header. Sticky at the top of the viewport (Bill, 2026-10-23; the spec allows it and the mockup did not use it):
   it keeps its place in the flow, so nothing shifts, and the promo banner above it scrolls away as before.
   html's scroll-padding-top (10-base.css) and the FAQ side column's offset (40-pages.css) clear its height. */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg-page); border-bottom: var(--border-width) solid var(--border); }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: var(--nav-height); }

/* The brand may shrink (its name wraps to two lines on narrow phones) so
   the row never pushes the menu button off screen. The desktop links keep
   their size; the small tagline may wrap near the 1024px breakpoint. */
.brand { display: flex; align-items: center; gap: var(--space-3); flex: 0 1 auto; min-width: 0; }
.brand:hover { opacity: 1; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: var(--size-touch);
  height: var(--size-touch);
  flex: none;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--on-gold);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-none);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: var(--text-md); font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); color: var(--text); }
.brand-tagline { font-size: var(--text-xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); margin-top: var(--space-0-5); }

.site-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; align-self: stretch; }
.nav-menu { display: flex; align-items: stretch; gap: var(--space-1); }
.nav-link { display: inline-block; padding: var(--space-2); border-radius: var(--radius); font-weight: var(--weight-semibold); font-size: var(--text-sm); color: var(--text); white-space: nowrap; }
.nav-link:hover { opacity: 1; color: var(--gold-text); }
.nav-link[aria-current="page"] { color: var(--gold-text); }
.nav-link-cta { background: var(--gold); color: var(--on-gold); font-weight: var(--weight-bold); padding: var(--space-3) var(--space-5); margin-left: var(--space-3); }
.nav-link-cta:hover { color: var(--on-gold); opacity: var(--opacity-hover); }
.nav-link-cta[aria-current="page"] { color: var(--on-gold); } /* Phase 6 (2026-11-28): no dimming on its own page; at 85% opacity the label measured 4.41:1 in the dark theme (axe color-contrast). The plain "Our Courses" link carries the current-page colour. */

/* States menu (gap 6). navigation.mjs renders .has-menu-toggle, .nav-menu-toggle,
   .nav-dropdown, .nav-dropdown-label, .nav-dropdown-sub, .nav-dropdown-note;
   main.js opens it on click. */
.nav-menu > li { display: flex; align-items: center; }
.has-menu { position: relative; }
.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  line-height: inherit;
}
/* The caret: an 8px by 6px triangle drawn with borders. Shared by the desktop toggle and the mobile list. */
.nav-menu-toggle::after, .mobile-submenu-toggle-labelled::after {
  content: '';
  width: 0;
  height: 0;
  border-left: var(--space-1) solid transparent;
  border-right: var(--space-1) solid transparent;
  border-top: var(--size-caret) solid var(--text-muted);
  transition: transform var(--duration-fast) var(--ease);
}
.nav-menu-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.nav-menu-toggle[aria-expanded="true"], .is-current-section > .nav-menu-toggle { color: var(--gold-text); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--space-4));
  z-index: var(--z-dropdown);
  width: var(--width-dropdown);
  margin-top: var(--space-2);
  padding: var(--space-1);
  background: var(--bg-card);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.nav-dropdown[hidden] { display: none; }
.nav-dropdown a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius); color: var(--text); }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--bg-band); opacity: 1; }
.nav-dropdown a[aria-current="page"] .nav-dropdown-label { color: var(--gold-text); }
.nav-dropdown-label { display: block; font-weight: var(--weight-semibold); font-size: var(--text-sm); line-height: var(--leading-normal); }
.nav-dropdown-sub { display: block; margin-top: var(--space-0-5); font-size: var(--text-xs); font-weight: var(--weight-regular); line-height: var(--leading-snug); color: var(--text-muted); }
.nav-dropdown-note { margin: var(--space-2) var(--space-1) var(--space-1); padding: var(--space-2) var(--space-2) var(--space-1); border-top: var(--border-width) solid var(--border); font-size: var(--text-xs); color: var(--text-muted); }

/* The menu button is the only header control. Hide its wrapper on desktop
   too, so the row does not reserve an empty flex gap (Bill, 2026-11-01). */
.header-controls { display: none; align-items: center; gap: var(--space-2); flex: none; }

/* Mobile toggle and menu. Shown below the breakpoint at the end of this file. */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
  width: var(--size-touch);
  height: var(--size-touch);
  padding: var(--space-2);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
/* Three 2px bars 4px apart; open, the outer two move 6px (bar plus gap) to cross on the middle one. */
.menu-bar { display: block; height: var(--space-0-5); background: var(--text); border-radius: var(--radius-xs); transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(calc(var(--space-0-5) + var(--space-1))) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(calc(-1 * (var(--space-0-5) + var(--space-1)))) rotate(-45deg); }

.mobile-nav { display: none; }
.mobile-menu { padding-top: var(--space-2); padding-bottom: var(--space-4); }
.mobile-nav-link { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius); font-weight: var(--weight-semibold); color: var(--text); }
.mobile-nav-link:hover, .mobile-nav-link[aria-current="page"] { color: var(--gold-text); opacity: 1; }
.mobile-nav-link-cta { background: var(--gold); color: var(--on-gold); font-weight: var(--weight-bold); text-align: center; margin-top: var(--space-2); }
.mobile-nav-link-cta:hover, .mobile-nav-link-cta[aria-current="page"] { color: var(--on-gold); }

/* States menu in the mobile list (gap 6): the item is the toggle button;
   its list expands beneath it. The caret is shared with the desktop toggle above. */
.mobile-submenu-toggle-labelled {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: var(--weight-semibold);
  text-align: left;
}
.mobile-submenu-toggle-labelled[aria-expanded="true"]::after { transform: rotate(180deg); }
.mobile-submenu { padding-left: var(--space-4); }
.mobile-submenu .mobile-nav-link { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); }
.mobile-submenu[hidden] { display: none; }
.mobile-submenu-note { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); color: var(--text-muted); }

/* Footer: brand column plus the link columns from navigation.footer, then
   the disclosures (docs/spec.md §Footer) in a bordered block. */
.site-footer { background: var(--bg-page); color: var(--text-muted); border-top: var(--border-width) solid var(--border); padding: var(--space-12) 0 var(--space-10); } /* no margin above: the last section's padding sets the space over the footer rule, matching the space under it (64px margin until 2026-10-09) */
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: var(--space-8); margin-bottom: var(--space-10); }
.footer-brand-row { margin-bottom: var(--space-3); }
/* The brand sits in a <p>, so `p a:not(.btn)` (gold, underlined) would win over a
   single-class rule; `p a.…` outranks it. Plain like the header brand, no hover cue
   beyond the cursor (Bill, 2026-10-08). */
.footer-brand-row a.footer-brand-link { display: inline-flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; }
.footer-brand-row a.footer-brand-link:hover { opacity: 1; }
.footer-brand-row .brand-mark { width: var(--space-10); height: var(--space-10); font-size: var(--text-md); }
.footer-brand-name { font-size: var(--text-base); font-weight: var(--weight-extrabold); color: var(--text); }
.footer-tagline { font-size: var(--text-sm); line-height: var(--leading-relaxed); max-width: var(--measure-sm); margin: 0; }
.footer-heading { font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text); margin-bottom: var(--space-3); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-sm); }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); opacity: 1; }

/* The bottom row: the disclosures on the left, the theme switch on the right across from the statement
   (Bill, 2026-10-23: the switch moved here from the header), stacked on phones. */
.footer-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-8); border-top: var(--border-width) solid var(--border); padding-top: var(--space-6); }
.footer-disclosures { font-size: var(--text-xs); line-height: var(--leading-relaxed); }
.footer-disclosures li { margin-bottom: var(--space-3); max-width: var(--measure-full); }
.footer-disclosures a { color: var(--gold-text); text-decoration: underline; text-underline-offset: var(--space-0-5); }
/* 2026-10-07: the contact email is one unbreakable word; let it break rather than overflow a 320px viewport with enlarged text (WCAG 1.4.10). */
.footer-disclosures a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer-disclosures strong { color: var(--text); }
.footer-legal-name { color: var(--text); font-weight: var(--weight-semibold); }
.footer-statement { margin-top: var(--space-5); }

/* Breakpoints. */
@media (width <= 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Linux Chromium needs more room at the first desktop widths (PR #68).
   Keep the font sizes and gold button padding; compact only the row gap and
   the five plain navigation items within the existing gutter breakpoint. */
@media (1024px <= width <= 1100px) {
  .nav-container { gap: var(--space-4); }
  .site-nav .nav-link:not(.nav-link-cta) { padding-inline: var(--space-1); }
}

/* Bill, 2026-11-01: show the full navigation from 1024px. The smaller
   October 31 header fits there without the hidden control's empty gap;
   the earlier 1280px breakpoint was sized for the larger original header. */
@media (width < 1024px) {
  .site-nav { display: none; }
  .header-controls { display: flex; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; border-top: var(--border-width) solid var(--border); max-height: var(--drawer-available-height); overflow-y: auto; overscroll-behavior: contain; } /* the drawer is part of the sticky header; on a short viewport it scrolls inside the screen rather than growing past it */
  .mobile-nav[hidden] { display: none; }
  .nav-link { white-space: nowrap; }
  .brand-tagline { display: none; }
  .brand-mark { width: var(--space-10); height: var(--space-10); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width <= 720px) {
  .brand-name { font-size: var(--text-base); }
  .section-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
  .footer-bottom { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (width <= 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Shared components: the primitives the mockups repeat on every page (pills,
   tags, cards, check lists, photo placeholders), the markup the hooks in
   site.build.mjs render (course cards, price block, enroll CTA, state
   selector, membership banners, promo banner), the theme toggle, and the
   contact form the framework renders (src/lib/integrations.mjs). */

/* Solid gold label ("MOST REQUESTED COURSE") and the small gold caption used above card titles. */
.eyebrow { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--space-2); }
/* Sentence-case page eyebrow (state and California pages, 2026-09-29): small amber text, no pill, no forced caps. */
.eyebrow-text { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--gold-text); margin: 0 0 var(--space-3); }

/* Card surface: the one panel style every card shares (a --bg-card panel, hairline border, --radius-lg).
   .card is the class; the hook- and page-rendered cards that cannot carry it list their selectors here so
   the surface is defined once (2026-10-09 token pass; .steps, and .module-grid had their own 12px copy). */
.card, .course-card, .plan-card, .side-card, .course-tile, .steps li {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg);
}
.card { padding: var(--space-6); }
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: var(--text-base); line-height: var(--leading-normal); }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); border-top: var(--border-width) solid var(--border); padding-top: var(--space-4); margin-top: var(--space-4); }
a.card { display: block; }
a.card:hover { opacity: 1; border-color: var(--border-strong); }

/* Check list: the mockup's "✓ …" rows. */
.check-list { display: flex; flex-direction: column; gap: var(--space-2); color: var(--text); font-size: var(--text-base); }
.check-list li { padding-left: var(--space-6); position: relative; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--gold-text); font-weight: var(--weight-bold); }
.check-list-inline { flex-direction: row; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--text-sm); color: var(--text-muted); }


/* Price block (PRICE_BLOCK hook; docs/spec.md §Components). */
.price-block { margin: var(--space-2) 0; }
.price-block .price { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); color: var(--text); letter-spacing: var(--tracking-tight); }
.price-block .price-note { display: block; font-size: var(--text-sm); color: var(--text-muted); }
/* Offer price (Bill, 2026-10-06): the registry price struck through and muted, the offer price in the usual weight, the promo's label beside it. */
.price-figure { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-2); }
.price-was s { color: var(--text-muted); font-weight: var(--weight-semibold); text-decoration: line-through; }
.price-offer-label { white-space: nowrap; }
.price-block .price-was s { font-size: var(--text-md); }
.price-offer-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-muted); letter-spacing: var(--tracking-normal); }
/* Bill, 2026-10-27: the offer stated once for a group (OFFER_NOTE, "Launch Special — Save $10", or OFFER_LINE, "Save $10 per course")
   and the saving under a grouped card's price (OFFER_SAVING, "Save $10"); a grouped price block (GROUP_PRICE) carries neither label nor phrase. */
.price-offer-note { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--gold-text); }
.price-offer-line { font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-slight); text-transform: uppercase; color: var(--gold-text); } /* OFFER_LINE and OFFER_SAVING (Bill, 2026-10-27): 14px, 600, 0.03em, gold, no background or border */
.price-block-grouped { margin: var(--space-2) 0; }
/* A card footer with the saving under the price (Bill, 2026-10-27): the link centres on the price row, not on the stack. */
.card-footer-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'offer .' 'price link'; align-items: center; column-gap: var(--space-3); row-gap: 0; } /* row-gap 0: the footer's flex gap would otherwise open 12px above the saving. Bill, 2026-10-30: the saving sits above the price (below it from 2026-10-27), the link centred on the price row */
.card-footer-offer .price-block { grid-area: price; margin: 0; }
.card-footer-offer .price-offer-line { grid-area: offer; margin-bottom: var(--space-2); } /* Bill, 2026-10-30 (label refinements): about 6px asked, 8px on the grid; the label and price are one bottom-anchored group */
.card-footer-offer .section-link { grid-area: link; }

/* Enroll, renewal, and membership CTAs (ENROLL_CTA, RENEWAL_LINK, MEMBERSHIP_CTA hooks). */
.cta-enroll { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.cta-note { font-size: var(--text-sm); color: var(--text-muted); }
.cta-renewal { font-weight: var(--weight-semibold); }

/* Course cards (COURSE_CARDS hook). */
.course-cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(var(--width-sidebar), 1fr)); margin: var(--space-6) 0; }
.course-card { display: flex; flex-direction: column; padding: var(--space-6); }
.course-card-title { font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.course-card-title a { color: var(--text); text-decoration: none; }
.course-card p { flex: 1; font-size: var(--text-sm); line-height: var(--leading-normal); }
.course-card .price-block { border-top: var(--border-width) solid var(--border); padding-top: var(--space-4); margin-top: var(--space-4); }
.course-card-link { font-weight: var(--weight-semibold); color: var(--gold-text); }

/* USLS banners (USLS_BANNER hook; hard rule 4). Unmodified artwork at its own
   aspect ratio with explicit width/height, no caption (Bill, 2026-10-08: the
   page-level affiliate note is the disclosure), linked to the registry affid
   URL. The pixel widths below are the artwork's native widths (hard rule 4), not layout tokens. */
.usls-banner { margin: var(--space-2) 0 0; }
.usls-banner-link { display: block; border: var(--border-width) solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.usls-banner-link:hover { opacity: 1; }
/* Hard rule 4: scale down only, never above native width. No `width: 100%`;
   the image renders at its own size and shrinks with the container. */
.usls-banner img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.usls-banner-faq, .usls-banner-faq .usls-banner-link { width: 250px; max-width: 100%; }
.usls-banner-membership, .usls-banner-membership .usls-banner-link { width: 336px; max-width: 100%; } /* the 336x280's native width (Bill, 2026-10-28; 300px for the 300x250 until then) */
.usls-banner-band, .usls-banner-band .usls-banner-link { width: 468px; max-width: 100%; } /* 2026-10-27: the 468x60 at the top of the membership band, never wider than native; narrower columns scale it down */

/* Promo banner (PROMO_BANNER hook). Rendered at build above the header;
   its height is fixed so nothing below it moves. Dismissal is per session
   (src/js/promo-banner.js) and static/assets/js/promo.js?v=628a9e78 applies a stored
   dismissal before first paint, so later pages never paint it and shift. */
.promo-banner {
  background: var(--gold);
  color: var(--on-gold);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}
/* 2026-10-06 (Bill): dark text with "Save $10" in bold, about 44px tall on desktop with natural wrapping on phones,
   and the close button at the far right of the content width. The middle column holds the text, centred; the outer
   columns are equal, so the text stays centred while the button sits at the container's edge. */
/* Side columns never collapse below the 32px dismiss button, so the text column
   can never run under it on narrow screens (Bill, 2026-10-08: the × overlapped the
   wrapped text on an iPhone); mirrored on the left to keep the text centred. */
.promo-banner-inner { display: grid; grid-template-columns: minmax(var(--size-icon-button), 1fr) auto minmax(var(--size-icon-button), 1fr); align-items: center; column-gap: var(--space-3); min-height: var(--size-touch); padding-top: var(--space-1); padding-bottom: var(--space-1); } /* 4px: three wrapped lines at 320px stay within the 80px the browser gate allows */
.promo-banner-text { grid-column: 2; margin: 0; text-align: center; color: var(--on-gold); }
/* Outranks the base `p a:not(.btn)` gold link colour, which otherwise paints the banner gold on gold. */
.promo-banner p.promo-banner-text a:not(.btn) { color: var(--on-gold); text-decoration: underline; text-underline-offset: var(--space-0-5); }
.promo-banner p.promo-banner-text a:not(.btn):hover { opacity: 1; text-decoration-thickness: var(--border-width-strong); }
/* 2026-10-07 (Bill, QA): the base rule colours every <strong> with --text, which is near-white in dark mode; the emphasis is dark and bold on the gold in both themes. */
.promo-banner-text strong { color: var(--on-gold); font-weight: var(--weight-extrabold); }
.promo-banner-dismiss {
  grid-column: 3;
  justify-self: end;
  width: var(--size-icon-button);
  height: var(--size-icon-button);
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-size: var(--text-xl);
  line-height: var(--leading-none);
  color: var(--on-gold);
  cursor: pointer;
}
.promo-banner-dismiss:hover { background: var(--on-gold-hover); }
/* 2026-11-29 (issue #72): the focus colour is gold in the dark theme and a gold-brown in the light one, so on the gold bar
   the outline is drawn in the bar's own text colour. */
.promo-banner :focus-visible { outline-color: var(--on-gold); }
[data-promo-dismissed] .promo-banner { display: none; }

/* Theme toggle (#theme-toggle is wired by src/js/theme.js; in the footer's bottom row since 2026-10-23, in the header before).
   A 44 by 24 track with a hairline border; the 16px thumb is centred vertically and
   sits 2px from either end, so it travels the inner width less the thumb and both insets. */
.theme-toggle-wrapper { display: flex; align-items: center; gap: var(--space-2); }
.footer-theme { justify-self: end; }
.theme-toggle-label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-muted); cursor: pointer; }
.theme-toggle {
  position: relative;
  width: var(--size-touch);
  height: var(--space-6);
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--control-border); /* 2026-10-07 (Bill, QA): a clearly visible track boundary in both themes */
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--space-0-5);
  width: var(--space-4);
  height: var(--space-4);
  border-radius: var(--radius-round);
  background: var(--control-thumb); /* 2026-10-07 (Bill, QA): the darker gold in light mode, --gold in dark */
  transform: translateY(-50%);
  transition: transform var(--duration) var(--ease);
}
.theme-toggle[aria-checked="true"]::after { transform: translate(calc(var(--size-touch) - 2 * var(--border-width) - 2 * var(--space-0-5) - var(--space-4)), -50%); }

/* Contact form, rendered by the framework at <!-- contact-form -->. */
.contact-form { max-width: var(--width-form); }
.form-group { margin-bottom: var(--space-5); }
.form-group label { display: block; font-weight: var(--weight-semibold); margin-bottom: var(--space-2); color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: var(--space-3);
  font: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: var(--border-width-strong) solid var(--control-border); /* 2026-10-07 (Bill, QA): visible resting border; --focus on focus below */
  border-radius: var(--radius);
}
/* 2026-10-07 (Bill, QA): placeholders in --text-dim at full opacity; browsers otherwise fade them. */
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); opacity: 1; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring-color);
}
.form-group textarea { min-height: var(--media-sm); }
.form-group input, .form-group select { height: var(--control-height); } /* Bill, 2026-10-28: inputs and selects at one height (54px and 49px before) */

/* Off-screen, never display:none, so bots still fill it. */
.honeypot-field { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; } /* the 1px box is the off-screen pattern, not a design value */

.form-message { padding: var(--space-3) var(--space-4); border-radius: var(--radius); margin: 0; font-weight: var(--weight-semibold); }
.form-message[hidden] { display: none; }
.form-success { background: var(--success-tint); color: var(--success); }
.form-error { background: var(--error-tint); color: var(--error); }

/* Affiliate note (Bill, 2026-10-07): one byline-style line under the H1 or
   intro and before the first CTA, from the AFFILIATE_NOTE and
   AFFILIATE_NOTE_MEMBERSHIP partials. 14px floor. --text-muted is 6.3:1 light
   and 7.9:1 dark; the link uses --gold-text, the gold tuned for text
   (5.0:1 light, 8.5:1 dark), since --gold itself is a button fill. */
.affiliate-note { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-muted); margin: var(--space-2) 0 var(--space-6); max-width: var(--measure-lg); }
.affiliate-note a { color: var(--gold-text); text-decoration: underline; text-underline-offset: var(--space-0-5); }

/* Page sections, ported from design/mockups/ in Phase 3 and moved onto the
   tokens in 00-tokens.css on 2026-10-09. Shared primitives (cards, pills,
   tags, check lists, price block, CTAs) are in 30-components.css, including
   the one card surface every card here shares; this file holds the section
   layouts the pages compose them into. The print block is last in the bundle
   on purpose. */

/* Content flags. TODO: is missing content, REVIEW: is content awaiting a
   hard-rule decision; both render visibly on the gated dev site and block a
   release build (scripts/check-guardrails.mjs --release). */
.todo-flag, .review-flag {
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-4);
  border: var(--border-width) dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-band);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.review-flag { border-color: var(--gold); }

/* Breadcrumb line above interior pages. Vertical padding only: these classes share an element with .container,
   whose horizontal padding is the page gutter (2026-10-01: the shorthands below zeroed it on every interior page). */
.breadcrumb { padding-top: var(--space-5); font-size: var(--text-sm); color: var(--text-dim); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.breadcrumb li + li::before { content: '/'; margin-right: var(--space-2); color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); opacity: 1; }
.breadcrumb [aria-current="page"] { color: var(--text-dim); }

/* Pill navigation: the California sub-nav and the training index category nav. */
/* Bill's state-pages brief (2026-10-29): the California sub-nav as two labelled groups, Courses (the overview and the two
   in-page course anchors) and Resources (the three sub-pages), so page navigation and separate resource pages read apart. */
/* California sub-navigation (Bill, 2026-10-31): plain text links in two groups, 40px apart, under a hairline; the current
   page's link in gold with a short gold underline; the capsule pills and the "Courses"/"Resources" labels are gone. */
.subnav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-10); border-bottom: var(--border-width) solid var(--border); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.subnav-links { display: flex; flex-wrap: wrap; column-gap: var(--space-5); }
.subnav-links a { position: relative; display: inline-block; padding: var(--space-2) 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-muted); }
.subnav-links a:hover { color: var(--text); opacity: 1; }
.subnav-links a[aria-current="page"] { color: var(--gold-text); }
.subnav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; bottom: 0; width: var(--space-6); height: var(--border-width-strong); background: var(--gold); }

/* Page opener: title and lead, bordered below. Used by custom pages (FAQ, contact, training index, legal). */
.page-header { padding: var(--space-8) 0 var(--space-10); border-bottom: var(--border-width) solid var(--border); }
.page-title { margin-bottom: var(--space-3); }
.page-lead { font-size: var(--text-md); max-width: var(--measure-wide); margin: 0; }

/* Hero grid: copy on the left, a card on the right (state and product pages, home). */
/* Vertical padding only: the element also carries .container, whose horizontal padding is the page gutter (was zeroed by a shorthand until 2026-10-01). */
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-10); padding-top: var(--space-8); padding-bottom: var(--space-12); align-items: start; }
.hero-grid h1 { margin-bottom: var(--space-4); }
.hero-grid .lead { margin-bottom: var(--space-6); }
.hero-grid .check-list { margin-bottom: var(--space-6); }
/* A check list inside prose keeps its check marks, not the prose bullets (live-fire planning, 2026-10-06). */
.prose .check-list { list-style: none; padding-left: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-7); }
.page-home .hero-actions { margin-bottom: 0; } /* 2026-10-01: nothing follows the buttons in the home hero */
.hero-media { display: block; min-height: var(--media-xl); }
/* Hero photos (2026-10-06, from the mockups): a fixed-height box, cropped to fit; the California hub uses the shorter box. */
.hero-media img { display: block; width: 100%; height: var(--media-xl); object-fit: cover; object-position: center top; border-radius: var(--radius-lg); }
/* Home hero photo (2026-10-06): the 3:2 source is wider than the box; keep the instructor and student, right of centre, in frame. */
.page-home .hero-media img { object-position: 60% center; }
.hero-media-short, .hero-media-short img { min-height: var(--media-lg); height: var(--media-lg); }

/* Left-bordered callout (the mockups' "why it matters" and value boxes). */
.callout { background: var(--bg-card); border-left: var(--space-1) solid var(--gold); border-radius: var(--radius); padding: var(--space-5) var(--space-6); }
.callout h2, .callout h3, .callout p:first-child strong { font-size: var(--text-base); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.callout p { font-size: var(--text-base); }

/* Disclaimer block: the two required lines on every state and California page. */
.disclaimer-box { background: var(--bg-card); border: var(--border-width) solid var(--gold); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0; }
.disclaimer-box p, .disclaimer-line { font-size: var(--text-base); color: var(--text); margin: 0; }
.disclaimer-box p + p { margin-top: var(--space-2); }
.disclaimer-line a { color: var(--gold-text); text-decoration: underline; }

/* Price card on the right of a course hero. */
.price-card { background: var(--bg-card); border: var(--border-width) solid var(--gold); border-radius: var(--radius-xl); padding: var(--space-7); }
.price-card .eyebrow { margin-bottom: var(--space-3); text-wrap: balance; } /* 2026-10-06: a long product name wraps into even lines, never a one-word last line */
.price-card .course-card-name { font-size: var(--text-md); line-height: var(--leading-snug); margin: 0 0 var(--space-3); overflow-wrap: anywhere; }
/* California sub-pages (2026-09-29): the top disclaimer's DOJ link sits above the eyebrow; give it room. */
.page-header .disclaimer-line { margin-bottom: var(--space-5); }
.price-card .price-block { margin: 0 0 var(--space-4); }
.price-card .price-block .price { font-size: var(--text-5xl); }
.price-card .price-block .price-was s { font-size: var(--text-xl); }
.price-card .cta-enroll { display: flex; flex-direction: column; align-items: stretch; text-align: center; gap: var(--space-2); margin-bottom: var(--space-5); }
.price-card .cta-enroll .btn { padding: var(--space-4); font-size: var(--text-md); }
.price-card .cta-note { font-size: var(--text-sm); color: var(--text-dim); text-align: center; }
.spec-list { border-top: var(--border-width) solid var(--border); padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.spec-list div { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); }
.spec-list dt { color: var(--text-muted); }
.spec-list dd { color: var(--text); font-weight: var(--weight-semibold); text-align: right; }

/* Trust bar (home). */

/* Feature panel (home: California). Bill's home brief (2026-10-30): a compact editorial panel inside the
   "Firearm Training by State" section, content left (two thirds) and the Golden Gate photo right (one third),
   about 300px tall on desktop, the two courses as side-by-side options with their own buttons. */
.feature-panel { background: var(--bg-card); border: var(--border-width) solid var(--gold-subdued); border-radius: var(--radius-xl); overflow: hidden; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); min-height: var(--media-lg); }
.feature-panel .feature-body { padding: var(--space-6) var(--space-10); display: flex; flex-direction: column; }
.feature-panel .eyebrow { margin-bottom: var(--space-2); }
.feature-panel h3 { font-size: var(--text-2xl); margin-bottom: var(--space-1); }
.feature-panel .feature-sub { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-soft); margin-bottom: var(--space-3); }
.feature-panel .feature-desc { font-size: var(--text-base); color: var(--text-muted); max-width: var(--measure-lg); margin-bottom: var(--space-3); }
.feature-panel .price-offer-note { display: block; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--gold-text); margin-bottom: var(--space-2); } /* Bill, 2026-10-30: "LAUNCH SPECIAL — SAVE $10" once above the two options, 12px semibold (bold until his label-refinement brief later that day), 12px under the description and 8px above the option dividers (OFFER_NOTE) */
.feature-panel .feature-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-8); margin-bottom: var(--space-3); }
.feature-panel .feature-option { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); } /* Bill, 2026-10-30: the gold rule above each option removed, and with it the padding that sat under it */
.feature-panel .feature-option-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); margin: 0; } /* Bill, 2026-10-30: the 16px course name on its own line above the prices in both options (beside them until then, which fit only above 1280px once the name grew), so the two buttons always align */
.feature-panel .price-label { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-soft); } /* Bill, 2026-10-30: 16px (14px earlier that day) beside the 24px price */
.feature-panel .feature-option .price { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--text); letter-spacing: var(--tracking-tight); white-space: nowrap; } /* the offer price white and bold; the struck regular price stays muted (30-components) */
.feature-panel .feature-option .price s { font-size: var(--text-md); }
.feature-panel .feature-option .btn { white-space: nowrap; }
.feature-panel .feature-note { font-size: var(--text-xs); color: var(--text-muted); margin: auto 0 0; max-width: var(--measure-wide); } /* the issuing-authority qualification, pinned to the panel's foot */
/* AD-10-31: the photo fills the panel's right column, with a clean edge and no fade or inset strips. */
.feature-panel .feature-media { position: relative; align-self: stretch; display: block; width: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.feature-panel .feature-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.feature-panel + .state-tiles { margin-top: var(--space-6); } /* the panel and the three state tiles read as one group */

/* Step grids (how it works). The card surface is shared (30-components.css). */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.steps li { padding: var(--space-6); }
.steps .step-n, .module-grid .step-n { display: block; font-size: var(--text-sm); font-weight: var(--weight-extrabold); color: var(--gold-text); margin-bottom: var(--space-2); }
.steps h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.steps p { font-size: var(--text-sm); }
.steps-plain li { background: none; border: 0; padding: 0; }
/* Open process (Bill's home brief, 2026-10-30): the steps sit on the page background with a thin gold rule above each, no enclosing band. */
.steps-open .steps li { border-top: var(--border-width-strong) solid var(--gold-subdued); border-radius: 0; padding-top: var(--space-5); } /* radius 0: the shared card surface would curve the rule's ends */
.steps-open .section-heading { margin-bottom: var(--space-8); }

/* Q&A cards (FAQ page, state and product question sections, home teaser). */
.qa-list { display: flex; flex-direction: column; gap: 0; }
.qa-list + p, .module-grid + p { margin-top: var(--space-6); }
.qa-card { padding: var(--space-6) var(--space-7); }
.qa-card h3, .qa-card h4 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.qa-card p { font-size: var(--text-base); max-width: var(--measure-full); }
.qa-card p + p { margin-top: var(--space-2); }
.qa-card table { margin: var(--space-2) 0; }
/* Compact FAQ (home, Bill 2026-10-27): the intro in a 30% column, the three questions in a 70% column divided by hairlines; one column below 1024px. */
.faq-compact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: var(--space-12); align-items: start; }
.faq-compact-intro h2 { margin-bottom: var(--space-3); }
/* .qa-row (Bill's state-pages brief, 2026-10-29): the state pages' course questions as the same divided rows, no card. */
.faq-compact-item, .qa-row { padding-block: var(--space-6); }
.faq-compact-item:first-child, .qa-row:first-child { padding-top: 0; }
.faq-compact-item:last-child, .qa-row:last-child { padding-bottom: 0; }
.faq-compact-item + .faq-compact-item, .qa-row + .qa-row { border-top: var(--border-width) solid var(--border); }
.faq-compact-item h3, .qa-row h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.faq-compact-item p, .qa-row p { font-size: var(--text-base); max-width: var(--measure-full); }
.faq-compact-item p + p, .qa-row p + p { margin-top: var(--space-2); }
.qa-row h3 { font-weight: var(--weight-semibold); } /* the brief: white semibold questions, muted answers */
.qa-row p { color: var(--text-muted); margin-bottom: 0; }

/* FAQ accordion (Bill, 2026-10-23): on /faq each question is a native <details>, the question its <summary>, so
   expanding needs no script and the keyboard gets it for free (Enter and Space on the focused summary). Hairline
   dividers between items, the question in the card heading style, a gold plus at the right that becomes a minus
   when the item is open (two bars drawn with gradients; the vertical bar collapses to nothing). Answers keep the
   question-card text style. Also the membership page's questions (same day). The FAQPage JSON-LD and the other pages' .qa-card are unchanged. */
.faq-list { border-top: var(--border-width) solid var(--border); }
.faq-item { border-bottom: var(--border-width) solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; cursor: pointer; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question h3 { font-size: var(--text-md); margin: 0; transition: color var(--duration-fast) var(--ease); }
.faq-question:hover h3 { color: var(--gold-text); }
.faq-question::after {
  content: '';
  flex: none;
  width: var(--space-4);
  height: var(--space-4);
  color: var(--gold-text);
  background:
    linear-gradient(currentColor, currentColor) center / 100% var(--border-width-strong) no-repeat,
    linear-gradient(currentColor, currentColor) center / var(--border-width-strong) 100% no-repeat;
  transition: background-size var(--duration-fast) var(--ease);
}
.faq-item[open] .faq-question::after { background-size: 100% var(--border-width-strong), 0 100%; }
.faq-answer { padding: 0 0 var(--space-5); }
.faq-answer p { font-size: var(--text-base); max-width: var(--measure-full); }
.faq-answer p + p { margin-top: var(--space-2); }

/* Bordered CTA band (membership prompts, "still have a question"). */
.cta-band { background: var(--bg-card); border: var(--border-width) solid var(--gold); border-radius: var(--radius-lg); padding: var(--space-10); display: flex; justify-content: space-between; align-items: center; gap: var(--space-10); }
.cta-band h2 { font-size: var(--text-xl); font-weight: var(--weight-extrabold); margin-bottom: var(--space-2); }
.cta-band p { font-size: var(--text-base); max-width: var(--measure-lg); }
.cta-band .btn { flex: none; }
.cta-band .cta-band-note { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-2); }
/* Membership closing band (Bill, 2026-10-27): one centred column at most 720px wide inside the container-wide band, the
   paragraph and the button 24px apart, the note under the button; a subtle border like the home band, so the gold button
   carries the emphasis. No graphic here: provider branding sits higher on the page. */
/* Bill, 2026-10-28 (evening): a shorter closing band, 36px vertical padding, heading to sentence 12px, sentence to button 24px,
   button to note 12px, the button at 16px type (about 55px tall, 28px sides; was 18px and 58px); about 254px tall at desktop. */
.cta-band-center { flex-direction: column; align-items: center; text-align: center; gap: 0; border-color: var(--border); padding-top: var(--space-9); padding-bottom: var(--space-9); }
.cta-band-center > * { max-width: var(--width-band-copy); }
.cta-band-center h2 { margin-bottom: var(--space-3); }
.cta-band-center p { margin-bottom: 0; }
.cta-band-center .btn { margin-top: var(--space-6); max-width: 100%; font-size: var(--text-base); } /* .cta-band .btn is flex: none; let the label wrap at 320px with enlarged text instead of overflowing */
.cta-band-center .cta-band-note { margin-top: var(--space-3); max-width: var(--measure-md); }
/* Membership band (Bill, 2026-10-27; home first, then Our Courses and the three product pages): the copy in one left-aligned column (label, heading, a paragraph at a readable
   measure, a regular button, then the note) and the 300x250 U.S. LawShield graphic centred in the right third, vertically
   centred; a subtle border in place of the gold outline so the gold button carries the emphasis. Below 1024px the graphic
   follows the note, centred and smaller, so the explanation and the action come first. */
/* 2026-10-27, Bill: the copy and the graphic sit together as a centred pair (the copy at its measure, a fixed gap, the
   300px graphic) rather than at the band's two edges, so the image stays near the words on wide screens. */
/* Closing CTA (home, Bill 2026-10-27): the band as a plain charcoal panel, hairline border, 32px by 40px padding, a 28px bold headline with a muted link under it, the gold button centred on the right; stacks with the other bands under 1024px. */
.cta-band-row { border-color: var(--border); padding: var(--space-8) var(--space-10); }
.cta-band-row h2 { font-size: var(--text-2xl); font-weight: var(--weight-bold); }
.cta-band-row p { margin-bottom: 0; }
.cta-band-row .btn { padding-inline: var(--space-5); } /* 2026-10-27 (Bill): a little narrower than btn-lg's 28px sides; same height and type */
/* Compact membership band (Bill, 2026-10-27, evening, second pass): the copy (eyebrow, heading, sentence, button, note) in a 60%
   column, the 468x60 banner centred in the 40% column at its own proportions; hairline border, 32px by 40px padding; one column
   with the banner under the note below 1024px. The first pass that evening stacked the banner above the copy. */
.cta-band-compact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--space-10); align-items: center; border-color: var(--border); padding: var(--space-8) var(--space-10); }
.cta-band-copy { display: flex; flex-direction: column; align-items: flex-start; }
.cta-band-compact .usls-banner { margin: 0; justify-self: center; }
.cta-band-compact .eyebrow { font-size: var(--text-xs); } /* .cta-band p's base size would outrank .eyebrow's 12px */
.cta-band-compact p { max-width: var(--measure-wide); margin-bottom: var(--space-2); }
.cta-band-compact .btn { margin-top: 0; }
.cta-band-compact .cta-band-note { margin-top: var(--space-2); margin-bottom: 0; }
/* Open membership promotion (Bill's home brief, 2026-10-30): the compact band without its box, a hairline above as the separator. */
.cta-band-open { background: none; border: 0; border-top: var(--border-width) solid var(--border); border-radius: 0; padding: var(--space-10) 0 0; }

/* Source line: small muted attribution under a lead or immediately above provider-sourced data. */
.source-line { font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 var(--space-3); }

/* County directory: compact rows preserve the provider's designation and associate each note with its county. */
.county-grid { list-style: none; padding: 0; margin: 0 0 var(--space-5); border-top: var(--border-width) solid var(--border); }
.county-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; border-bottom: var(--border-width) solid var(--border); }
.county-row h3 { font-size: var(--text-md); margin: 0; }
.county-designation { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--gold-text); margin: 0; }
.county-note { grid-column: 1 / -1; grid-row: 2; font-size: var(--text-sm); max-width: var(--measure); margin: 0; }
.county-row a { grid-column: 3; grid-row: 1; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--gold-text); }
.county-row a:hover { text-decoration: underline; }

/* Media + copy split (product "why it matters"). */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: center; }
.split p { font-size: var(--text-base); }
/* Split photo (2026-10-06, from the First Aid mockup): a fixed box, cropped from the top. */
.split-media { display: block; }
.split-media img { display: block; width: 100%; height: var(--media-lg); object-fit: cover; object-position: center top; border-radius: var(--radius-lg); }

/* Related course cards. */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.related-grid > li { display: flex; } /* Bill's brief (2026-10-30): the cards in a row share one height, titles at the top, prices and links along the bottom */
.related-grid .related-card { display: flex; flex: 1; flex-direction: column; gap: var(--space-2); padding: var(--space-6); } /* two classes: a.card's display: block outranked the single class before */
.related-title { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text); }
.related-card p { font-size: var(--text-sm); margin: 0; }
/* Bill, 2026-10-29: the footer is the home nationwide cards' grid (price with the saving under it, the link on the price row),
   pushed to the card's foot; the group's price sentence sits once beneath the grid. PRICE_BLOCK with its phrase until then. */
.related-card .card-footer-offer { margin-top: auto; padding-top: var(--space-3); align-items: end; } /* the link's bottom meets the price's even where a narrow column wraps the struck and offer figures onto two lines (2026-10-30) */
.related-card .price-block { margin: 0; }
.related-card .price-block-grouped { display: flex; align-items: baseline; }
.related-card > .price-block { margin-top: auto; padding-top: var(--space-3); }
.related-card > .section-link { margin-top: auto; padding-top: var(--space-3); }
.related-card > .price-block + .section-link { margin-top: 0; padding-top: 0; } /* Bill's brief (2026-10-30): a flex row has no 14px strut, so a struck-and-offer figure and a lone price end at the same baseline across a row (3px apart before) */
.related-card .price-block .price { font-size: var(--text-md); font-weight: var(--weight-bold); }
.related-card .section-link { font-size: var(--text-sm); }
.related-grid + .section-note { margin-top: var(--space-6); }

/* State course pages (Bill's brief, 2026-10-29): Texas, Ohio, and Florida share one course-detail layout and California adds
   its two-course selection. The hero keeps its two columns and gold-bordered price card; the card reads name, offer line,
   struck and offer prices, button, the group's price sentence, then the benefits line. Under it, one tight section holds the
   learn/included pair as two unboxed columns with a hairline between them, the requirements paragraph behind a thin gold rule,
   the questions as divided rows, the gold-bordered disclaimer, and the closing button; the related cards and the compact
   membership band follow as their own sections. Blocks sit 48px apart (40px on phones). No sticky or fixed panels. */
.page-state main h2 { font-size: min(var(--text-2xl), var(--text-h2)); } /* one section-heading size (28px, 24px on phones) whether or not the block is prose; the price card's name keeps its own 18px */
.page-state .course-hero { padding-bottom: var(--space-8); } /* 64px from the hero to the first block with the section's 32px, not 80px */
.page-state .price-card .price-offer-line { display: block; margin-bottom: var(--space-2); }
.page-state .price-card .price-block { margin: 0 0 var(--space-5); }
.page-state .price-card .cta-enroll { margin-bottom: var(--space-3); }
.page-state .price-card .price-card-note { margin: 0; text-align: center; }
.page-state .price-card .course-qualification { font-size: var(--text-sm); color: var(--text-muted); text-align: center; margin: var(--space-4) 0 0; } /* Bill's brief (2026-10-30): the state's online-only qualification beside the first enrollment button, above the benefits line */
.ca-courses .course-qualification { margin-top: var(--space-6); max-width: var(--width-reading); } /* California: the shared qualification directly under the two cards, the fine price sentence 8px below it */
.ca-courses .course-qualification + .section-note-fine { margin-top: var(--space-2); }
.page-state .price-card .price-note { display: block; font-size: var(--text-sm); color: var(--text-dim); }
.course-benefits { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-muted); text-align: center; border-top: var(--border-width) solid var(--border); padding-top: var(--space-4); margin: var(--space-5) 0 0; }
.course-detail .container > * + * { margin-top: var(--space-12); }
.course-detail .course-block { max-width: var(--width-reading); } /* Bill's briefs (2026-10-30, 2026-10-31): the blocks below the learn/included pair keep a reading width on the content's left edge (centred for a day; Bill asked for the shared left edge back); .course-block-full opts a block out */
.course-detail .course-block-full { max-width: none; }
.course-learn h2 { margin-bottom: var(--space-6); }
.course-columns-open { column-gap: var(--space-10); } /* California's Initial and Renewal topic columns (Bill, 2026-10-31): equal columns, no hairline */
.course-columns-open .course-column:first-child { padding-right: 0; }
.course-columns-open .course-column + .course-column { border-left: 0; padding-left: 0; }
.course-included .check-list-inline { font-size: var(--text-base); color: var(--text); margin-bottom: 0; } /* the shared benefits once, in one compact row at body size */
.course-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.course-column:first-child { padding-right: var(--space-10); }
.course-column + .course-column { border-left: var(--border-width) solid var(--border); padding-left: var(--space-10); }
.course-column > :last-child { margin-bottom: 0; }
/* The requirements paragraph's 2px gold left rule (Bill's 2026-10-29 brief) was removed on 2026-10-31 at Bill's instruction; the block is plain paragraphs: the state's separate steps, the spec's permit sentence, the official link. */
.course-requirements .disclaimer-line, .closing-note .disclaimer-line { margin: 0 0 var(--space-4); color: var(--text-muted); } /* the spec's permit sentence as a body paragraph where it stands outside a box: the state pages' requirements block (2026-10-31) and the three California resource pages (Bill, 2026-10-31) */
.closing-note { max-width: var(--width-reading); } /* the resource pages' permit sentence and official link at the state pages' reading width */
.closing-links { margin-top: var(--space-8); padding-top: var(--space-5); border-top: var(--border-width) solid var(--border); margin-bottom: 0; } /* the resource pages' closing navigation, set apart from the note above it */
.course-requirements > p:last-child { margin-bottom: 0; }
.course-final-cta .cta-enroll, .course-final-cta .hero-actions { margin-bottom: var(--space-3); }
.course-final-cta .cta-lead { margin-bottom: var(--space-4); } /* California's "Continue to U.S. LawShield to enroll." above the two gold buttons (Bill's brief, 2026-10-30) */
.course-final-cta .cta-note { margin-bottom: 0; }
/* California's two course cards: title, audience, duration, the three inclusions, then the price row with its button. */
.course-tile.ca-course-card h3 { font-size: var(--text-xl); } /* the course-tile rules below are later in the cascade, so these carry one more class */
.course-tile .ca-course-duration { font-size: var(--text-base); color: var(--text); margin-bottom: 0; } /* Bill, 2026-10-31: the footer's own 16px is the gap to the divider (32px before) */
.ca-course-card .card-footer .btn { white-space: nowrap; }
.page-state .membership-promo h2 { font-size: var(--text-xl); } /* the band heading stays at the family's 24px */

/* Numbered module grid (product "what you'll learn"). The card surface is shared; .step-n is styled with .steps above. */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.module-grid li { padding: var(--space-5) 0 0; border-top: var(--border-width) solid var(--border); }
.module-grid-paired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.module-grid h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.module-grid p { font-size: var(--text-sm); }

/* Course card grids on the training index and home. */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.course-grid-3 { grid-template-columns: repeat(3, 1fr); }
.course-tile { display: flex; flex-direction: column; overflow: hidden; }
/* Tile photos (2026-09-29): a fixed band, cropped to fit. */
.course-tile .tile-media { display: block; }
.course-tile .tile-media img { display: block; width: 100%; height: var(--media-sm); object-fit: cover; }
/* Course artwork tiles (Bill, 2026-10-06): the home state tiles show the complete 3:2 U.S. LawShield course graphic, never a cropped band. */
.course-tile .tile-media-art img { height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--bg-card); }
.course-tile-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.course-tile h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.course-tile .credential { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--gold-text); margin-bottom: var(--space-2); }
.course-tile p { font-size: var(--text-sm); }
.course-tile-body > p:last-of-type { flex: 1; } /* only the description (the last paragraph before the footer) grows, so titles and footers line up across a row (2026-10-06; generalized 2026-10-09) */
.course-tile .card-footer { margin-top: var(--space-4); flex-wrap: wrap; } /* Bill's label brief (2026-10-30): "Enroll at U.S. LawShield →" stays on one line and drops under the price when the two no longer share the row */
.course-tile .card-footer .price-block { flex: 1 1 0; min-width: 10em; } /* a zero basis so the price block gives way (its offer label wraps) before the button drops to its own row; 10em keeps the figures readable */
.course-tile .card-footer .btn { flex: none; white-space: nowrap; }
/* Home page nationwide tiles (Bill, 2026-09-30): no divider above the price row, as in the mockup. */
.page-home .course-grid-3 .card-footer, .page-training .course-grid-3 .card-footer { border-top: 0; padding-top: 0; }
.course-tile .price-block { margin: 0; }
.course-tile .price-block .price { font-size: var(--text-xl); }
.course-tile .price-block .price-note { font-size: var(--text-xs); }
/* Home state tiles (Bill's home brief, 2026-10-30): compact, no photo, the state name as the heading, one line of
   description, then the price left and the button right on one row. (2026-09-30 to 2026-10-30 the tiles carried the
   course artwork and a paragraph each.) */
.state-tile h3 { font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-1); }
.page-home .state-tile .card-footer { border-top: var(--border-width) solid var(--border); padding-top: var(--space-4); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); row-gap: 0; }
.state-tile .card-footer .price-block { display: contents; } /* the price block's spans take grid cells alongside the button */
.state-tile .card-footer .price-offer-line { grid-column: 1; grid-row: 1; margin-bottom: var(--space-1); } /* Bill, 2026-10-30: "SAVE $10" above the price (OFFER_SAVING) */
.state-tile .card-footer .price, .state-tile .card-footer .price-figure { grid-column: 1; grid-row: 2; } /* an offer's parts are one grid item */
.state-tile .card-footer .btn { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.page-home .card-footer .price-offer-line { font-size: var(--text-xs); } /* the compact saving label on the home tiles and cards: 12px (14px elsewhere) */
/* The fine print under a course grid (2026-10-09): clear of the cards. The disclaimer box that followed it was folded into the note on 2026-10-23. */
/* The state-grid note (Bill, 2026-10-27): two lines, the FAQ pointer a little closer to the cards, the permit disclaimer
   smaller beneath it with a modest gap, and the section's own padding as the larger gap before the next heading, so the
   disclaimer stays with the permit courses and does not read as a warning for the nationwide courses below. */
.course-grid + .section-note { margin-top: var(--space-6); }
.section-note { margin-bottom: 0; }
.section-note-fine { font-size: var(--text-sm); margin-top: var(--space-2); }
.section-note-fine + .section-note-fine { margin-top: var(--space-1); } /* 2026-10-27 (Bill): the two fine lines 4px apart */

/* Course directory on Our Courses (Bill, 2026-10-28; refined to his brief of 2026-10-30): the five state courses as
   full-width rows with hairline dividers, the California pair under its group heading and its qualification line, then
   Florida, Ohio, and Texas as plain rows. Each row is the info column and a compact action area on the right: a fixed
   price track and a fixed button track 20px apart, so prices align left and buttons align right across every row.
   The intro is tighter on this page: 24px under the title, 32px above the heading block, 20px from it to the group. */
.page-training .page-header { padding-bottom: var(--space-6); }
.page-training #state { padding-top: var(--space-8); }
.page-training .section-heading-start { margin-bottom: var(--space-5); }
.page-training .section-heading .price-offer-line { margin-top: var(--space-2); }
.section-heading .directory-attribution { font-size: var(--text-sm); color: var(--text-muted); margin: 0; } /* the .section-heading p rule would otherwise set 16px */
.directory-group-title { font-size: var(--text-md); margin: 0; }
.course-directory { list-style: none; padding: 0; margin: 0; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-6); padding: var(--space-6) 0; }
.course-directory > .course-row:first-child { padding-top: var(--space-4); } /* 16px from the group heading or the divider above */
.course-row + .course-row { border-top: var(--border-width) solid var(--border); }
.course-row-action { display: grid; grid-template-columns: var(--width-row-price) var(--width-row-button); column-gap: var(--space-5); align-items: center; }
.directory-group .course-directory { border-bottom: var(--border-width) solid var(--border); } /* the hairline under the California pair spans the row, above the qualification */
.directory-note { font-size: var(--text-sm); color: var(--text-muted); max-width: var(--measure-wide); margin: 0; padding: var(--space-4) 0 var(--space-6); } /* the shared California qualification under the pair; the states' rows follow under their own hairline */
.course-directory-states { border-top: var(--border-width) solid var(--border); }
.course-row-title { font-size: var(--text-lg); font-weight: var(--weight-bold); margin: 0 0 var(--space-1); }
.course-row-audience { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-soft); margin: 0 0 var(--space-1); } /* the audience line a step above the description */
.course-row-desc { font-size: var(--text-sm); color: var(--text-muted); margin: 0; max-width: var(--measure-lg); }
.course-row .price-block { margin: 0; }
.course-row .price-block .price { font-size: var(--text-xl); font-weight: var(--weight-bold); } /* the offer price white and bold, as on the home panel; the struck regular price stays muted */
.course-row .btn { justify-self: stretch; } /* fills the button track: one 20px gap after the price and one right edge on every row; a longer label wraps and the button grows */
.course-directory + .section-note { margin-top: var(--space-2); } /* 32px from the last row's text: its 24px padding plus this */

/* Two-column page with a sticky side card (FAQ, legal pages). */
.side-layout { display: grid; grid-template-columns: var(--width-sidebar) 1fr; gap: var(--space-12); padding-top: var(--space-10); padding-bottom: var(--space-16); align-items: start; }
/* The sticky column holds the jump list and, on the FAQ page, the USLS square (mockup). */
.side-column { position: sticky; top: calc(var(--nav-height) + var(--border-width) + var(--space-6)); /* 24px below the sticky header (2026-10-23) */ display: flex; flex-direction: column; gap: var(--space-6); }
.side-column .affiliate-note { margin: 0 0 calc(-1 * var(--space-2)); } /* FAQ: the note sits directly above the banner it introduces; the column gap supplies the rest */
.side-card { padding: var(--space-6); }
.side-card .eyebrow { margin-bottom: var(--space-3); }
.side-card ul { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); }
.side-card a { color: var(--text-muted); }
.side-card a:hover { color: var(--gold-text); opacity: 1; }
.faq-groups { display: flex; flex-direction: column; gap: var(--space-12); }
.faq-group h2 { margin-bottom: var(--space-2); }
.faq-group > p { font-size: var(--text-base); margin-bottom: var(--space-4); }

/* Contact page: about column and the form column. */
/* About & Contact (Bill's 2026-10-28 brief): the About content in one reading column under the full-width header, with the
   three-benefit strip (the membership page's unboxed .benefit-grid, no icons) across the container, the final course CTA and the
   in-page "Contact us" link closing it; then the two-column contact area with "Who to ask" beside the form. */
.about-content { padding: var(--space-10) 0; border-bottom: var(--border-width) solid var(--border); }
.about-prose { max-width: none; }
.about-prose > p { max-width: var(--measure); }
.about-strip { margin-bottom: var(--space-10); }
.about-strip h2 { margin-top: var(--space-10); font-size: min(var(--text-2xl), var(--text-h2)); }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin: var(--space-8) 0 0; }
.about-cta-alt { color: var(--text-muted); }
.who-to-ask h3 { font-size: var(--text-md); margin-top: var(--space-5); margin-bottom: var(--space-1); } /* compact routing list beside the form */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-12); padding-top: var(--space-12); padding-bottom: var(--space-12); align-items: start; }
.contact-panel { background: var(--bg-card); border: var(--border-width) solid var(--border); border-radius: var(--radius-xl); padding: var(--space-8); }
.contact-panel + .contact-panel { margin-top: var(--space-5); }
.contact-panel h2 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.contact-panel .qa-plain h3 { font-size: var(--text-base); margin-top: var(--space-4); margin-bottom: var(--space-1); }
.contact-panel .qa-plain p { font-size: var(--text-sm); }

/* Membership landing page (Bill, 2026-10-07, refined the same day): a compact two-column hero (copy
   left, the 300x250 USLS graphic right; stacked after the hero text and actions below 1024px, the
   320x100 variant at 600px and below), three benefit cards, full-width plan cards with plan-difference
   lists, the availability note, questions in one reading column, the closing band, and the explanatory
   notice. Replaces the 2026-10-02 layout (centred hero, intro and cards beside the 300x600 banner).
   Everything here is scoped to this page's classes. The 336px and 320px widths are the artwork's (hard rule 4). */
.membership-hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-10); padding-bottom: var(--space-10); align-items: center; border-bottom: var(--border-width) solid var(--border); } /* Bill, 2026-10-28: a 60/40 split like the membership band, the graphic centred in the right column (was a 300px column holding the 300x250 flush right) */
.membership-hero-copy { min-width: 0; }
/* Bill's spacing and type brief (2026-10-28, evening): heading to lead 24px, lead to clarification 16px, clarification to buttons 24px,
   buttons to the state-selection note 12px, note to the affiliate line 16px; lead 18px as before, clarification 16px, note 16px, affiliate line 14px.
   The note is capped at 500px and the affiliate line near 800px (80ch at 14px), both flush with the gold button;
   the affiliate line's second sentence and link sit on their own line beneath its first. */
.membership-hero h1 { max-width: var(--measure-xs); margin-bottom: var(--space-6); }
.membership-hero .lead { max-width: var(--measure-lg); margin-bottom: var(--space-4); }
.membership-hero-support { font-size: var(--text-base); color: var(--text-muted); margin: 0 0 var(--space-6); } /* the two clarifications as one paragraph (Bill, 2026-10-28) */
.membership-hero .hero-actions { margin-bottom: var(--space-3); }
.membership-hero .cta-note { display: block; font-size: var(--text-base); max-width: var(--measure-note); margin: 0 0 var(--space-4); }
.membership-hero-copy > .affiliate-note { max-width: var(--measure-wide); margin: 0; }
.membership-hero .affiliate-note-more { display: block; }
.membership-hero .usls-banner { margin: 0; justify-self: center; translate: 0 calc(-1 * var(--space-8)); } /* Bill, 2026-10-28: the 336x280 at its native width, centred in the column and 32px above the vertically centred position; translate keeps the hero's height */
/* Benefit cards: headings and text, no icons. */
/* Legal support benefits (Bill, 2026-10-28): an unboxed three-column strip on the page background, hairline vertical dividers
   between the columns (the cards of 2026-10-07 retired), a 32px gold line icon above each heading; one column with horizontal
   dividers under 1024px. 20px of padding each side of a divider puts 40px between neighbouring texts. */
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.benefit { padding: var(--space-6) var(--space-5); }
.benefit:first-child { padding-left: 0; }
.benefit:last-child { padding-right: 0; }
.benefit + .benefit { border-left: var(--border-width) solid var(--border); }
.benefit-icon { display: block; width: var(--space-8); height: var(--space-8); color: var(--gold-text); margin-bottom: var(--space-4); }
.benefit h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 0 0 var(--space-2); }
.benefit p { font-size: var(--text-base); line-height: var(--leading-normal); color: var(--text-muted); margin: 0; }
.benefit-note { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--text-muted); max-width: var(--measure); }
/* Plan cards: name, descriptor, the registry price block (PLAN_PRICE), the page's description,
   the registry basis (PLAN_BASIS) at the foot; no state labels, no badges, no per-card buttons. */
.plans-intro { max-width: var(--measure-lg); margin: var(--space-2) 0 var(--space-6); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.plan-card { padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.plan-card h3 { font-size: var(--text-lg); margin: 0; }
.plan-descriptor { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--gold-text); margin: calc(-1 * var(--space-2)) 0 0; }
.plan-pricing { display: grid; gap: var(--space-1); }
.plan-price-label { font-size: var(--text-sm); font-weight: var(--weight-semibold); line-height: var(--leading-normal); color: var(--text-muted); margin: 0; }
.plan-price { display: flex; align-items: baseline; gap: var(--space-1); margin: 0; }
.plan-price .price { font-size: var(--text-2xl); font-weight: var(--weight-extrabold); color: var(--text); letter-spacing: var(--tracking-tight); }
.plan-price .price-period { font-size: var(--text-base); color: var(--text-muted); }
.plan-state-price { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-muted); margin: var(--space-0-5) 0 0; }
.plan-points { list-style: disc; margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-base); line-height: var(--leading-normal); }
.plan-points li { margin: 0; }
.plan-basis { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-muted); margin: auto 0 0; }
.plan-notes { margin: var(--space-5) 0 0; font-size: var(--text-sm); line-height: var(--leading-relaxed); color: var(--text-muted); max-width: var(--measure-wide); }
.plans-cta { margin: var(--space-6) 0 0; }
.plans-cta-note { display: block; margin: var(--space-2) 0 0; max-width: var(--measure-lg); }
/* Questions and the notice: one readable column each (the availability section between the plans and the questions was removed on 2026-10-28, Bill). */
.membership-questions { max-width: var(--width-column); margin: 0 auto; }
.page-membership .faq-answer p { max-width: var(--measure); } /* the membership questions are accordion items since 2026-10-23 */
.membership-notice-section { padding-top: var(--space-1); padding-bottom: var(--space-10); } /* Bill, 2026-10-28: 36px from the band (the band section's 32px plus 4px) and 40px to the footer's divider */
.membership-notice { margin: 0; }
.membership-notice .affiliate-note { margin: 0; } /* the closing membership note (Bill, 2026-10-08): the shared partial, flush in its section */


/* Breathing room above an anchored section; the sticky header's own height is html's scroll-padding-top (10-base.css, 2026-10-23). */
[id] { scroll-margin-top: var(--space-6); }

/* Home opener (Phase 1 stub classes kept for the hero). */
.uftc-intro h1 { margin-top: 0; }

/* 404 */
.page-not-found .page-header { border-bottom: 0; padding-bottom: var(--space-16); }

/* Legal pages: single column, readable width (docs/spec.md). */
.legal-body { max-width: var(--measure); padding-top: var(--space-10); padding-bottom: var(--space-16); }
.legal-updated { font-size: var(--text-base); color: var(--text-dim); margin: 0; }
/* Generated legal text (docs/legal-src/, 2026-10-02): the sanitized fragment keeps the export's
   section <div>s (their ids are the table-of-contents targets) and plain <p>, headings, lists,
   and tables. Theme tokens only; both themes. */
.legal-text { line-height: var(--leading-relaxed); }
.legal-text > div, .legal-text > p, .legal-text div > p { margin-bottom: var(--space-4); }
.legal-text h2 { font-size: var(--text-xl); line-height: var(--leading-snug); margin: var(--space-10) 0 var(--space-3); }
.legal-text h3 { font-size: var(--text-md); line-height: var(--leading-snug); margin: var(--space-7) 0 var(--space-2); }
.legal-text ul { list-style: disc; padding-left: var(--space-6); margin: 0 0 var(--space-4); color: var(--text-muted); }
.legal-text ul ul { list-style: circle; margin-bottom: 0; }
.legal-text li { margin-bottom: var(--space-2); }
.legal-text a { overflow-wrap: anywhere; }
.legal-text .table-scroll { overflow-x: auto; margin: var(--space-4) 0 var(--space-5); }
.legal-text table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: var(--text-base); line-height: var(--leading-normal); }
.legal-text th, .legal-text td { padding: var(--space-2) var(--space-3); border: var(--border-width) solid var(--border); text-align: left; vertical-align: top; }
.legal-text th { background: var(--bg-band); color: var(--text); font-weight: var(--weight-bold); }
.legal-text td { color: var(--text-muted); }


@media (width < 1024px) {
  .hero-grid, .feature-panel, .split, .contact-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-panel .feature-media { order: 2; aspect-ratio: 1337 / 785; } /* stacked: the course options first, the wide framing beneath */
  .module-grid, .related-grid, .plan-grid, .course-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .side-layout { grid-template-columns: 1fr; gap: var(--space-7); }
  .side-column { position: static; }
  .cta-band-compact { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .benefit { padding: var(--space-6) 0; }
  .benefit + .benefit { border-left: 0; border-top: var(--border-width) solid var(--border); }
  .course-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); } /* tablet: the info above a compact price-and-button group */
  .course-row-action { grid-template-columns: auto auto; justify-content: start; }
  .course-row .btn { justify-self: start; white-space: nowrap; }
  .membership-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); } /* minmax(0, …): a 1fr track would grow to the 320px graphic's min-content at 320px viewports */
  .membership-hero .usls-banner { justify-self: start; translate: none; }
  .faq-compact { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .course-columns { grid-template-columns: minmax(0, 1fr); } /* the pair stacks with a hairline between (Bill, 2026-10-29) */
  .course-column:first-child { padding-right: 0; }
  .course-column + .course-column { border-left: 0; padding-left: 0; border-top: var(--border-width) solid var(--border); padding-top: var(--space-8); margin-top: var(--space-8); }
  .course-columns-open .course-column + .course-column { border-top: 0; padding-top: 0; } /* Initial above Renewal, 32px apart, no hairline */
  .ca-course-card .card-footer { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .ca-course-card .card-footer .btn { white-space: normal; text-align: center; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band-center { align-items: center; } /* the centred membership closing band stays centred when the family stacks */
}

@media (width <= 720px) {
  /* 2026-10-27: the hero labels sat 4px (320px) and 9px (601px) from wrapping; Linux Chromium renders them wider and CI wrapped both. One type step down restores the slack. */
  .membership-hero .hero-actions .btn { font-size: var(--text-base); }
  .cta-band-row h2 { font-size: var(--text-xl); } /* the closing CTA headline steps down with the other h2s on phones */
  .membership-notice-section { padding-top: var(--space-3); } /* the tight section padding is 24px here, so 12px keeps the band-to-disclosure gap at 36px */
  .hero-grid { padding-top: var(--space-6); padding-bottom: var(--space-8); gap: var(--space-7); }
  .hero-media, .hero-media-short { min-height: var(--media-md); }
  .hero-media img, .hero-media-short img { height: var(--media-md); min-height: 0; }
  .feature-panel .feature-body { padding: var(--space-7) var(--space-5); }
  .steps, .module-grid, .related-grid, .plan-grid, .course-grid, .course-grid-3 { grid-template-columns: 1fr; }
  .course-row { row-gap: var(--space-3); } /* phones: title, audience, description, prices, button in one column */
  .course-row-action { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); }
  .course-detail .container > * + * { margin-top: var(--space-10); }
  .course-row .btn { justify-self: stretch; white-space: normal; }
}

/* Membership hero on phones (Bill, 2026-10-07): equal full-width buttons, the 320x100 graphic. */
@media (width <= 600px) {
  .cta-band-compact .btn { width: 100%; }
  .feature-panel .feature-options { grid-template-columns: minmax(0, 1fr); }
  .feature-panel .feature-option .btn { width: 100%; white-space: normal; }
  .page-home .state-tile .card-footer { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); } /* phones: the price above a full-width button, like the California options */
  .page-home .state-tile .card-footer .btn { grid-column: 1; grid-row: 3; width: 100%; white-space: normal; }
  .membership-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .membership-hero .hero-actions .btn { width: 100%; padding-left: var(--space-4); padding-right: var(--space-4); } /* one-line labels at 320px; the label still wraps when text is enlarged */
  .usls-banner-membership, .usls-banner-membership .usls-banner-link { width: 320px; }
  .cta-band, .band { padding: var(--space-7) var(--space-5); }
  .side-layout { padding-top: var(--space-7); padding-bottom: var(--space-10); }
  .contact-layout { padding-top: var(--space-7); padding-bottom: var(--space-7); gap: var(--space-7); }
  .price-card { padding: var(--space-5); }
  .spec-list div { flex-direction: column; gap: var(--space-0-5); }
  .spec-list dd { text-align: left; }
}

/* Print: ink-friendly, no site chrome, external targets spelled out. Last in
   the bundle so it wins over the theme tokens. */
@media print {
  *, *::before, *::after {
    background: transparent !important;
    color: var(--print-ink) !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .site-header, .promo-banner, .skip-link, .menu-toggle, .mobile-nav, .theme-toggle-wrapper, .side-card, .subnav, .usls-banner { display: none !important; }
  .site-footer { border-top: var(--border-width) solid var(--print-ink); }
  .footer-grid { display: none; }
  a, a:visited { text-decoration: underline; }
  a[href^="http"]::after, a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 0.875em; }
  pre, blockquote, img, tr { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  p, h2, h3 { orphans: 3; widows: 3; }
}

/* AD-10-31 independent review: shared reading rhythm and deliberate grid layouts. */
.page-home .uftc-intro { align-items: center; padding-top: calc(var(--space-16) + var(--space-2)); padding-bottom: var(--space-8); }
.page-home #states { padding-top: 0; }
/* The state heading occupies the lower gap: photo-to-panel spacing must include its row and margin. */
@media (width >= 1024px) {
  .page-home .uftc-intro { padding-bottom: var(--space-6); }
  .page-home #states .section-heading { display: flex; align-items: center; min-height: var(--space-12); margin-bottom: var(--space-4); }
  .page-home #states .section-heading h2 { margin-bottom: 0; }
}
.page-legal .page-header .container { max-width: var(--measure); }
.page-state-sub .qa-list { max-width: var(--width-reading); }
@media (width < 1024px) {
  .course-grid-3, .related-grid, .plan-grid, .module-grid-short { grid-template-columns: minmax(0, 1fr); }
}
@media (720px < width < 1024px) {
  .page-training .course-grid-3 .course-tile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .page-training .course-grid-3 .tile-media-art { align-self: start; }
}
@media (width <= 720px) {
  .county-row { grid-template-columns: minmax(0, 1fr); }
  .county-row a, .county-note { grid-column: auto; grid-row: auto; }
}
