/* ForesightLoop — design system v2.
 *
 * Source of truth: assets/foresight.css. Mirrored into each site dir by scripts/sync-assets.sh.
 *
 * Brand Brief v3.2 (locked 2026-05-11): navy #0E1B2C, cream #F5F1E8, cream-dark #EDE7D9,
 * rust #B85C38 (links and CTAs only — never the logo), muted #5A6373, rule #D9D2C0.
 * Type: Inter self-hosted. Banned: Circular, Poppins, Manrope, DM Sans, Nunito, mono, serif.
 *
 * Form targets: The Information / Stratechery / Axios Pro class — publication masthead,
 * long-table civic data, persona landing anatomy, conversion without dark patterns.
 * No third-party requests: Inter is same-origin so CSP font-src 'self' holds.
 */

/* ---------------------------------------------------------------- font */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght.woff2') format('woff2-variations');
  /* Google's `latin` range — covers French and Spanish diacritics incl. œ and ñ. */
  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+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */

:root {
  --navy: #0E1B2C;
  --cream: #F5F1E8;
  --cream-dark: #EDE7D9;
  --rust: #B85C38;
  --muted: #5A6373;
  --rule: #D9D2C0;

  /* Zebra / soft ground — cream-dark at enough difference to track rows without
     dropping navy-on-stripe below WCAG AA (~14:1 still). */
  --stripe: #EDE7D9;
  --focus-ring: #B85C38;

  --measure: 36rem;      /* ~68ch of body copy — Stratechery-class long-read measure */
  --gutter: clamp(20px, 5vw, 40px);
  --shell: 48rem;        /* slightly wider for data tables; body still capped by measure */
  --shell-wide: 52rem;

  /* Major third type scale, fluid above step-1 */
  --step-0: 1.0625rem;                                          /* 17px body */
  --step-1: 1.25rem;                                            /* 20px lede / h3 */
  --step-2: clamp(1.5rem, 1.15rem + 1.4vw, 1.95rem);            /* h2 */
  --step-3: clamp(2rem, 1.35rem + 2.8vw, 3.15rem);              /* h1 */
  --step-figure: clamp(1.75rem, 1.25rem + 1.8vw, 2.35rem);

  --eyebrow: 0.75rem;
  --fine: 0.8125rem;

  /* Vertical rhythm (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 6vw, 5.5rem);

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.65;
  --lh-loose: 1.75;

  --radius: 2px;
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Anchor offset so sticky table headers don't cover focused targets (WCAG 2.4.11). */
  scroll-padding-top: 1rem;
}

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

body {
  background: var(--cream);
  color: var(--navy);
  font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  font-feature-settings: 'kern' 1, 'liga' 1, 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------- skip link */

.fl-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 100;
  text-decoration: none;
  font-weight: 540;
}
.fl-skip:focus { left: 0; outline: 2px solid var(--rust); outline-offset: 2px; }

/* ---------------------------------------------------------------- masthead */

/* A publication announces itself with a masthead, not a nav bar. */
.fl-masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 40;
  /* Cream stays opaque so sticky thead of tables can sit below without bleed. */
  backdrop-filter: none;
}

.fl-masthead-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fl-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 560;
  font-size: 1rem;
  letter-spacing: -0.012em;
}

.fl-wordmark svg { display: block; flex: none; }
.fl-wordmark:hover { color: var(--navy); }

.fl-masthead-edition {
  font-size: var(--eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}

/* ---------------------------------------------------------------- layout */

.fl-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.fl-shell--wide {
  max-width: var(--shell-wide);
}

section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: 0; }

/* Alternating ground gives rhythm without cards, boxes or shadows. */
.fl-band { background: var(--cream-dark); }

main > section > .fl-shell > * + * { margin-top: 1.15em; }

/* Section-level vertical stack for multi-block anatomy */
.fl-stack > * + * { margin-top: var(--space-5); }

/* ---------------------------------------------------------------- type */

h1, h2, h3 {
  font-weight: 560;
  letter-spacing: -0.022em;
  line-height: var(--lh-tight);
  text-wrap: balance;
  color: var(--navy);
}

h1 { font-size: var(--step-3); max-width: 16ch; }
h2 { font-size: var(--step-2); max-width: 24ch; }
h3 {
  font-size: var(--step-1);
  letter-spacing: -0.014em;
  line-height: var(--lh-snug);
  max-width: 32ch;
  margin-top: var(--space-6);
}
h3:first-child { margin-top: 0; }

/* FAQ / editorial subheads after an h2 */
h2 + h3 { margin-top: var(--space-6); }
h3 + p { margin-top: 0.55em; }

p, li {
  max-width: var(--measure);
  line-height: var(--lh-body);
}

p + p { margin-top: 0.85em; }

.fl-eyebrow {
  font-size: var(--eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.fl-lede {
  font-size: var(--step-1);
  line-height: var(--lh-snug);
  max-width: 32rem;
  color: var(--navy);
}

.fl-fine {
  font-size: var(--fine);
  color: var(--muted);
  line-height: 1.5;
}

/* Body links: rust + always-on underline for WCAG non-color cue.
   Rust-on-cream ≈ 4.0:1 — short of 4.5 for normal text; weight 500 + underline
   keep the interactive cue legible. CTAs use cream-on-navy (≥15:1). */
a {
  color: var(--rust);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--rust) 55%, transparent);
  font-weight: 500;
}
a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--rust);
}
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 1px;
}

strong { font-weight: 600; }

small, .fl-source {
  font-size: var(--fine);
  color: var(--muted);
  line-height: 1.5;
}

/* Global focus — never rely on browser default alone. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Selection — publication, not highlighter yellow. */
::selection {
  background: color-mix(in srgb, var(--navy) 14%, var(--cream));
  color: var(--navy);
}

/* ---------------------------------------------------------------- hero */

.fl-hero {
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.fl-hero h1 { margin-bottom: 18px; }
.fl-hero .fl-lede { margin-top: 0; }

.fl-hero-cta {
  margin-top: var(--space-6);
}

/* Persona pages: slightly tighter hero, lede is the painkiller. */
.fl-hero--persona h1 { max-width: 18ch; }
.fl-hero--persona .fl-lede { max-width: 34rem; }

/* Sample / data article hero: longer title allowance */
.fl-hero--sample h1 { max-width: 22ch; }

/* ---------------------------------------------------------------- editorial schedule + data tables */

/* Wrapper: enables horizontal scroll on mid-width without page-level overflow,
   and gives sticky thead a clean containing block on page scroll. */
.fl-table-wrap {
  margin-top: 22px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Subtle edge fade cue that more columns exist on narrow mid-widths */
  background:
    linear-gradient(to right, var(--cream) 30%, transparent) left center / 24px 100% no-repeat local,
    linear-gradient(to left, var(--cream) 30%, transparent) right center / 24px 100% no-repeat local;
}
.fl-band .fl-table-wrap {
  background:
    linear-gradient(to right, var(--cream-dark) 30%, transparent) left center / 24px 100% no-repeat local,
    linear-gradient(to left, var(--cream-dark) 30%, transparent) right center / 24px 100% no-repeat local;
}

.fl-schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.fl-schedule caption {
  caption-side: bottom;
  text-align: left;
  font-size: var(--fine);
  color: var(--muted);
  padding-top: 12px;
}

/* Sticky header — CSS only. th background must be opaque (cream / cream-dark). */
.fl-schedule thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--cream);
  font-size: var(--eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 500;
  padding: 10px 16px 10px 0;
  border-bottom: 2px solid var(--navy);
  white-space: nowrap;
  vertical-align: bottom;
}
.fl-band .fl-schedule thead th {
  background: var(--cream-dark);
}
/* Account for sticky masthead when th sticks to viewport */
@supports (top: 1px) {
  .fl-schedule thead th { top: 0; }
}

.fl-schedule td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
  max-width: none;
  line-height: 1.45;
}

.fl-schedule tbody tr:last-child td { border-bottom: 0; }

/* Zebra striping — odd rows only; keeps even rows on page ground. */
.fl-schedule tbody tr:nth-child(odd) td {
  background: color-mix(in srgb, var(--stripe) 55%, transparent);
}
.fl-band .fl-schedule tbody tr:nth-child(odd) td {
  background: color-mix(in srgb, var(--cream) 55%, transparent);
}
/* Hover row for dense civic tables — no JS, pure CSS. */
@media (hover: hover) {
  .fl-schedule tbody tr:hover td {
    background: color-mix(in srgb, var(--navy) 5%, var(--cream));
  }
  .fl-band .fl-schedule tbody tr:hover td {
    background: color-mix(in srgb, var(--navy) 6%, var(--cream-dark));
  }
}

.fl-schedule .fl-day {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 1%;
  font-weight: 500;
}

.fl-schedule .fl-track-name { font-weight: 560; color: var(--navy); }
.fl-schedule .fl-track-what { color: var(--muted); font-size: 0.95rem; }

/* Numeric columns — right-aligned, tabular figures. */
.fl-schedule th[style*="text-align:right"],
.fl-schedule td[style*="text-align:right"],
.fl-schedule .fl-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* —— Responsive collapse at 390px (phone portrait).
   Each row becomes a labeled card; thead hides; data-label from the template
   or hand-authored HTML provides the column name. No JS. */
@media (max-width: 390px) {
  .fl-table-wrap {
    overflow: visible;
    background: none;
  }
  .fl-schedule,
  .fl-schedule tbody,
  .fl-schedule tr,
  .fl-schedule td {
    display: block;
    width: auto;
  }
  .fl-schedule thead { display: none; }
  .fl-schedule tbody tr {
    border-bottom: 1px solid var(--rule);
    padding: 14px 0;
    background: transparent !important;
  }
  .fl-schedule tbody tr:last-child { border-bottom: 0; }
  .fl-schedule tbody tr:nth-child(odd) td,
  .fl-band .fl-schedule tbody tr:nth-child(odd) td {
    background: transparent;
  }
  .fl-schedule td {
    border: 0;
    padding: 3px 0;
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) 1fr;
    gap: 8px 12px;
    align-items: baseline;
  }
  .fl-schedule td::before {
    content: attr(data-label);
    font-size: var(--eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.35;
  }
  /* When no data-label, fall back to single-column (schedule day/track layout). */
  .fl-schedule td:not([data-label]) {
    display: block;
  }
  .fl-schedule td:not([data-label])::before { content: none; }
  .fl-schedule .fl-day {
    font-size: var(--eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
  }
  .fl-schedule .fl-track-name { font-size: 1.05rem; }
  .fl-schedule td[style*="text-align:right"] {
    text-align: left;
  }
}

/* Mid-width: keep table structure, allow wrap on soft columns */
@media (min-width: 391px) and (max-width: 40rem) {
  .fl-schedule thead th,
  .fl-schedule td {
    padding-right: 12px;
  }
  .fl-schedule .fl-track-what { white-space: normal; }
}

/* ---------------------------------------------------------------- figures / stat rows */

/* Real numbers as typographic statements, each with its provenance directly beneath.
   Charts-as-decoration are off-brand; figures carry themselves. */
.fl-figures {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  margin-top: 22px;
  max-width: none;
}

.fl-figure {
  border-top: 2px solid var(--navy);
  padding-top: 12px;
  min-width: 0;
}

.fl-figure-value {
  font-size: var(--step-figure);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  display: block;
  color: var(--navy);
  text-wrap: balance;
}

.fl-figure-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
  display: block;
  max-width: none;
  line-height: 1.4;
}

.fl-source {
  font-size: var(--fine);
  color: var(--muted);
  margin-top: 22px;
  max-width: var(--measure);
}

/* Compact inline stat strip used on sample pages between prose blocks */
.fl-figures--inline {
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 16px;
  padding: 4px 0;
}

/* ---------------------------------------------------------------- index lists (home / market hub) */

.fl-index { list-style: none; margin-top: 22px; max-width: none; }

.fl-index li { border-bottom: 1px solid var(--rule); max-width: none; }
.fl-index li:last-child { border-bottom: 0; }

.fl-index a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 15px 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  min-height: var(--tap);
}
.fl-index a:hover .fl-index-title { color: var(--rust); }
.fl-index a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.fl-index-title { font-weight: 560; letter-spacing: -0.01em; }
.fl-index-meta {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 450;
  flex: none;
}

@media (max-width: 390px) {
  .fl-index a {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 14px 0;
  }
  .fl-index-meta { white-space: normal; }
}

/* ---------------------------------------------------------------- persona value props (proof) */

.fl-props {
  list-style: none;
  margin-top: 18px;
  max-width: var(--measure);
  display: grid;
  gap: 0;
}

.fl-props li {
  position: relative;
  max-width: none;
  padding: 14px 0 14px 1.15rem;
  border-bottom: 1px solid var(--rule);
  line-height: var(--lh-snug);
}
.fl-props li:last-child { border-bottom: 0; }
.fl-props li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 6px;
  height: 2px;
  background: var(--navy);
}

/* Section labels for persona anatomy */
.fl-persona-proof,
.fl-persona-signals,
.fl-persona-sample,
.fl-persona-price {
  /* hooks for anatomy; layout comes from section + shell */
}

.fl-persona-sample .fl-sample-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  text-decoration: none;
  font-weight: 560;
  min-height: var(--tap);
}
.fl-persona-sample .fl-sample-link:hover { color: var(--rust); }
.fl-persona-sample .fl-sample-link::after {
  content: '→';
  color: var(--muted);
  font-weight: 450;
  flex: none;
}
.fl-persona-sample .fl-sample-link:hover::after { color: var(--rust); }

/* Price block — absolute prices only, no discount framing */
.fl-price-block {
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
  max-width: var(--measure);
}
.fl-price-line {
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: none;
}
.fl-price-line strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.fl-price-note {
  font-size: var(--fine);
  color: var(--muted);
  max-width: var(--measure);
}

/* Trust / scarcity — publication voice, first-three only, no fake countdown */
.fl-trust {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
.fl-trust p {
  font-size: var(--fine);
  color: var(--muted);
  max-width: none;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- hub / reader list (14–17 personas) */

.fl-reader-list {
  list-style: none;
  margin-top: 18px;
  max-width: none;
  display: grid;
  gap: 0;
}

.fl-reader-list > li {
  max-width: none;
  border-bottom: 1px solid var(--rule);
}
.fl-reader-list > li:last-child { border-bottom: 0; }

/* Scan pattern: title on its own line, painkiller as secondary */
.fl-reader-list a {
  display: block;
  padding: 16px 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.3;
  min-height: var(--tap);
}
.fl-reader-list a:hover { color: var(--rust); }

.fl-reader-item {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  max-width: none;
}
.fl-reader-item a {
  padding: 0;
  min-height: 0;
  font-size: 1.05rem;
}
.fl-reader-pain {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 38rem;
  margin: 0;
}
.fl-reader-tag {
  font-style: normal;
  font-size: var(--fine);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Track header on hub: eyebrow-style track name above the list */
.fl-track-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
}
.fl-track-heading h2 { margin: 0; }
.fl-track-count {
  font-size: var(--fine);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- CTA */

.fl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  padding: 14px 26px;
  font-weight: 540;
  border-radius: var(--radius);
  min-height: var(--tap);
  transition: background 120ms ease;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.fl-cta:hover { background: var(--rust); color: var(--cream); text-decoration: none; }
.fl-cta:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  color: var(--cream);
}

/* Secondary CTA — outline, for sample cross-links etc. */
.fl-cta--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.fl-cta--ghost:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* ---------------------------------------------------------------- form */

.fl-form-section .fl-shell > * + * { margin-top: 1.1em; }

.fl-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  max-width: var(--measure);
  position: relative;
}

.fl-field { display: grid; gap: 6px; }

.fl-field label {
  font-size: 0.925rem;
  font-weight: 540;
  line-height: 1.3;
  max-width: none;
  color: var(--navy);
}

.fl-hint {
  font-size: var(--fine);
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.fl-form input[type="text"],
.fl-form input[type="email"],
.fl-form select,
.fl-form textarea {
  font: inherit;
  font-size: 1rem;                 /* >=16px stops iOS zooming on focus */
  padding: 12px 14px;
  min-height: var(--tap);
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fffef9;             /* slightly lifted off cream for field affordance */
  color: var(--navy);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.fl-band .fl-form input,
.fl-band .fl-form select,
.fl-band .fl-form textarea { background: #fffef9; }

.fl-form input::placeholder,
.fl-form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, var(--cream));
  opacity: 1;
}

.fl-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.fl-form textarea { min-height: 96px; resize: vertical; }

.fl-form input:hover,
.fl-form select:hover,
.fl-form textarea:hover {
  border-color: color-mix(in srgb, var(--muted) 50%, var(--rule));
}

.fl-form input:focus-visible,
.fl-form select:focus-visible,
.fl-form textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rust) 18%, transparent);
}

/* Honeypot: off-screen rather than display:none so naive bots still fill it. */
.fl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fl-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}

.fl-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 3px;
  accent-color: var(--navy);
  flex: none;
}
.fl-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.fl-consent label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}
.fl-consent label a {
  color: var(--muted);
  text-decoration: underline;
  font-weight: 500;
}
.fl-consent label a:hover { color: var(--rust); }

.fl-form button[type="submit"] {
  font: inherit;
  font-weight: 540;
  background: var(--navy);
  color: var(--cream);
  border: 0;
  border-radius: var(--radius);
  padding: 14px 26px;
  min-height: var(--tap);
  cursor: pointer;
  justify-self: start;
  transition: background 120ms ease, opacity 120ms ease;
  letter-spacing: -0.005em;
}

.fl-form button[type="submit"]:hover:not(:disabled) { background: var(--rust); }
.fl-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: default;
}
.fl-form button[type="submit"]:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.fl-error {
  font-size: var(--fine);
  color: var(--rust);
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}
.fl-field--invalid input,
.fl-field--invalid select,
.fl-field--invalid textarea {
  border-color: var(--rust);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--rust) 30%, transparent);
}
.fl-field--invalid label { color: var(--navy); }

/* Success / failure result panel */
.fl-result {
  border-top: 2px solid var(--navy);
  padding: 20px 0 4px;
  margin-top: 28px;
  max-width: var(--measure);
  background: transparent;
}
.fl-result-title {
  font-weight: 560;
  font-size: var(--step-1);
  letter-spacing: -0.014em;
  line-height: var(--lh-snug);
  color: var(--navy);
}
.fl-result p {
  color: var(--navy);
  line-height: var(--lh-body);
}
.fl-result p + p,
.fl-result p + a { margin-top: 8px; }
.fl-result--ok {
  border-top-color: var(--navy);
}
.fl-result--ok .fl-result-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  margin-right: 10px;
  vertical-align: 0.1em;
}
.fl-result--fail {
  border-top-color: var(--rust);
}
.fl-result--fail .fl-result-title { color: var(--navy); }
.fl-result a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 540;
}

.fl-retry {
  display: inline-flex;
  align-items: center;
  font: inherit;
  margin-top: 16px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 18px;
  min-height: var(--tap);
  color: var(--navy);
  cursor: pointer;
  font-weight: 500;
}
.fl-retry:hover { border-color: var(--navy); }
.fl-retry:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* Form hidden after success (JS leaves result sibling; form may stay) */
.fl-form[data-fl-done] {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------------------------------------------------------------- sample / long-read article */

/* Sample pages read as brief extracts — tighter measure, calmer tables. */
.fl-sample-body p {
  max-width: var(--measure);
}
.fl-sample-body h2 {
  max-width: 28ch;
  margin-bottom: 0.15em;
}
.fl-sample-body .fl-figures {
  margin-bottom: 8px;
}

/* Prose helpers for data notes */
.fl-note {
  font-size: 0.95rem;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 14px;
  margin-top: 1em;
  max-width: var(--measure);
  line-height: 1.55;
}

code {
  font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.92em;
  background: color-mix(in srgb, var(--cream-dark) 80%, var(--navy) 4%);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- footer */

.fl-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 56px;
  font-size: 0.9rem;
  color: var(--muted);
}

.fl-footer a {
  color: var(--muted);
  font-weight: 450;
  text-decoration: none;
}
.fl-footer a:hover {
  color: var(--rust);
  text-decoration: underline;
}

.fl-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 18px;
}

.fl-editions { margin-bottom: 18px; }
.fl-editions a { margin-right: 14px; white-space: nowrap; }

.fl-colophon { font-size: var(--fine); color: var(--muted); }

/* ---------------------------------------------------------------- print (sample briefs, method) */

@media print {
  .fl-masthead { position: static; }
  .fl-cta, .fl-form, .fl-skip { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .fl-schedule thead th { position: static; }
}

/* ---------------------------------------------------------------- reduced-data / high-contrast safety */

@media (prefers-contrast: more) {
  .fl-schedule tbody tr:nth-child(odd) td {
    background: var(--cream-dark);
  }
  a { text-decoration-thickness: 2px; }
  :focus-visible {
    outline-width: 3px;
  }
}
