/* Roberson Protects — shared stylesheet with tier themes */
:root {
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-brand: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-hero: clamp(2.35rem, 1.6rem + 3.4vw, 4.25rem);

  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1160px;
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* default (home) palette — warm ivory with navy + gold */
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --surface-2: #efe8db;
  --text: #1c2230;
  --muted: #5c6270;
  --line: #ddd3c2;
  --accent: #14213d;
  --accent-ink: #f6f2ea;
  --gold: #82601f;
  --focus: #a9802f;
}

body.theme-premium {
  --bg: #07090f;
  --surface: #0e1320;
  --surface-2: #141b2c;
  --text: #ece6d8;
  --muted: #a7a395;
  --line: #262d3f;
  --accent: #c9a45c;
  --accent-ink: #0b0d14;
  --gold: #c9a45c;
  --focus: #e3c486;
}

body.theme-regular {
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --bg: #faf6ef;
  --surface: #ffffff;
  --surface-2: #f2ebdf;
  --text: #2a2622;
  --muted: #655d55;
  --line: #e4dacb;
  --accent: #1f3a5f;
  --accent-ink: #ffffff;
  --gold: #875b1e;
  --focus: #a9762a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: var(--text-hero); letter-spacing: -0.01em; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-brand); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.2em; font-weight: 600; color: var(--gold); margin-top: 0.2rem; }
.header-nav { display: flex; align-items: center; gap: 1.25rem; font-size: var(--text-sm); }
.header-nav a.text-link { text-decoration: none; color: var(--muted); }
.header-nav a.text-link:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 var(--text-sm)/1.2 var(--font-body);
  padding: 0.95rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 0.6rem 1rem; font-size: var(--text-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy .lead { font-size: var(--text-lg); color: var(--muted); max-width: 52ch; line-height: 1.55; }
.hero-meta { margin-top: 1.25rem; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.04em; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.4; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.theme-premium .hero-media { box-shadow: 0 0 0 1px #c9a45c33, 0 30px 60px -20px #000; }
.theme-premium .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, #c9a45c14, transparent 70%); pointer-events: none; }
.theme-regular .hero-media { box-shadow: 0 24px 50px -28px #5a3d1a55; }

.hours-pill { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-xs); color: var(--muted); }
.hours-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Sections */
section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-2); }
.theme-premium .section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.5vw, 2rem); }
.theme-premium .card { background: linear-gradient(180deg, #111829, #0c111c); }
.card .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: .75rem; }
.card p { color: var(--muted); margin: 0; font-size: var(--text-sm); }

/* Topic rows */
.topics { display: grid; gap: 0; border-top: 1px solid var(--line); }
.topic { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(1rem, 4vw, 3.5rem); padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--line); }
.topic h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.2; }
.topic .tag { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: block; margin-bottom: .5rem; }
.topic ul { margin: 0 0 1em; padding-left: 1.1rem; }
.topic li { margin-bottom: .4rem; }
.topic li::marker { color: var(--gold); }
.callout { border-left: 2px solid var(--gold); padding: .9rem 1.1rem; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--text-sm); }
.theme-premium .callout { background: #121a2c; }
.callout strong { color: var(--text); }
.stat-row { display: flex; flex-wrap: wrap; gap: 1.75rem; margin: 1rem 0 1.25rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 500; color: var(--gold); line-height: 1.05; }
.stat span { font-size: var(--text-xs); color: var(--muted); }
.cite { font-size: var(--text-xs); color: var(--muted); }
.cite a { color: var(--muted); text-underline-offset: 2px; }

/* Form */
.claim-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.25rem); }
.theme-premium .form-card { box-shadow: 0 0 0 1px #c9a45c22; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field .hint { font-size: var(--text-xs); color: var(--muted); font-weight: 400; }
.field input, .field select {
  font: inherit; font-size: var(--text-base); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; min-height: 48px; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #c0573f; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; font-size: var(--text-xs); color: var(--muted); line-height: 1.55; margin-top: 1.1rem; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.consent-label { font-weight: 600; color: var(--text); display: block; margin-bottom: .15rem; }
.form-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.form-actions .btn { width: 100%; font-size: var(--text-base); }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: var(--text-xs); color: var(--muted); }
.form-error { color: #d0664e; font-size: var(--text-sm); min-height: 1.2em; margin: 0; }
.theme-regular .form-error { color: #a8432c; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks { text-align: left; }
.thanks h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); }

.next-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.next-list li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.next-list li::before { content: counter(step); width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; }
.next-list strong { display: block; }
.next-list span { color: var(--muted); font-size: var(--text-sm); }

/* Qualifier */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.25rem); }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.quiz legend { font-weight: 600; margin-bottom: .6rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.opt input:checked + span { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, transparent); }
.opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.quiz-result { margin-top: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--surface-2); display: none; }
.quiz-result.show { display: block; }
.quiz-note { font-size: var(--text-xs); color: var(--muted); margin: .75rem 0 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li { padding: .7rem 0 .7rem 2rem; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.license-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; background: var(--surface); }
.license-card .lname { font-family: var(--font-brand); font-size: 1.6rem; font-weight: 600; margin: 0; }
.license-card .ltitle { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: .2rem 0 1rem; }
.placeholder { background: #ffe066; color: #1a1a1a; padding: 0 .3em; border-radius: 3px; font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .75rem 0 0; max-width: 70ch; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; font-size: var(--text-xs); color: var(--muted); line-height: 1.6; }
.site-footer .brand { margin-bottom: 1.5rem; }
.site-footer p { max-width: 95ch; }
.site-footer strong { color: var(--text); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.footer-row a { color: var(--muted); }

/* Home chooser */
.chooser { min-height: calc(100vh - 70px); display: flex; align-items: center; }
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.choice { border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.5rem); text-decoration: none; display: flex; flex-direction: column; gap: .5rem; min-height: 340px; position: relative; overflow: hidden; transition: transform .25s; }
.choice:hover { transform: translateY(-3px); }
.choice .range { font-family: var(--font-brand); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; font-weight: 500; }
.choice h2 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); margin: .5rem 0 .25rem; }
.choice p { font-size: var(--text-sm); margin: 0; }
.choice .go { margin-top: auto; padding-top: 1.5rem; font-weight: 600; font-size: var(--text-sm); }
.choice-regular { background: #fffdf8; color: #2a2622; border: 1px solid #e4dacb; }
.choice-regular h2 { font-family: 'Fraunces', serif; }
.choice-regular .range, .choice-regular .go { color: #1f3a5f; }
.choice-regular p { color: #655d55; }
.choice-premium { background: #07090f; color: #ece6d8; border: 1px solid #262d3f; }
.choice-premium .range, .choice-premium .go { color: #c9a45c; }
.choice-premium p { color: #a7a395; }
.choice-premium::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, #c9a45c22, transparent 70%); pointer-events: none; }

/* Privacy */
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-top: 2rem; }

@media (max-width: 900px) {
  .hero-grid, .claim-grid, .about-grid, .topic { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; order: -1; }
  .cards { grid-template-columns: 1fr; }
  .chooser-grid { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
}
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .header-nav .text-link { display: none; }
  .brand-name { font-size: 1.2rem; }
  .btn-row .btn { width: 100%; }
  .hero-grid { padding-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Fixes after QA */
h1, h2, h3, .range, .stat b, .card .num, .brand-name, .lname, .next-list li::before { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.btn-label-short { display: none; }
@media (max-width: 560px) {
  .brand-tag { font-size: 0.6rem; letter-spacing: 0.14em; white-space: nowrap; }
  .header-nav .btn { white-space: nowrap; }
  .btn-label-long { display: none; }
  .btn-label-short { display: inline; }
}

/* ===== Roberson Protects: shared nav ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-size: var(--text-sm); }
.nav-link, .nav-drop-btn { text-decoration: none; color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; padding: .35rem 0; }
.nav-link:hover, .nav-drop-btn:hover, .nav-link[aria-current="page"], .nav-drop.is-active .nav-drop-btn { color: var(--text); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-drop { position: relative; }
.nav-drop-btn span { font-size: .7em; color: var(--gold); }
.nav-drop-panel { position: absolute; top: calc(100% + .7rem); left: -1rem; width: min(560px, 90vw); display: none; grid-template-columns: 1fr 1fr; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .75rem; box-shadow: 0 24px 50px -24px rgba(20,20,30,.35); }
.nav-drop.open .nav-drop-panel { display: grid; }
.nav-drop-panel a { text-decoration: none; padding: .65rem .75rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: .1rem; }
.nav-drop-panel a:hover, .nav-drop-panel a[aria-current="page"] { background: var(--surface-2); }
.nav-drop-panel strong { font-weight: 600; color: var(--text); }
.nav-drop-panel span { font-size: var(--text-xs); color: var(--muted); }
.menu-toggle { display: none; align-items: center; gap: .55rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: 600 var(--text-sm)/1 var(--font-body); padding: .6rem .8rem; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-bars::before { position: absolute; top: -5px; } .menu-bars::after { position: absolute; top: 5px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-header .wrap { position: static; }
  .site-header { position: sticky; }
  .nav-link, .nav-drop-btn { padding: .85rem 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: var(--text-base); }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav-drop-panel { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: .25rem 0 .5rem; background: transparent; }
  .nav-cta { margin-top: 1rem; }
  .nav-cta .btn-label-short { display: none !important; }
  .nav-cta .btn-label-long { display: inline !important; }
}

/* ===== Education pages ===== */
.page-hero { padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); max-width: 20ch; }
.page-hero .lead { font-size: var(--text-lg); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.keypoints { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.keypoints-h { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0; }
.keypoints .check-list { margin-top: .5rem; font-size: var(--text-sm); }
.keypoints .check-list li:last-child { border-bottom: 0; }
.section-tight { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y); }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 2rem; font-size: var(--text-sm); }
.toc span { font-weight: 600; margin-right: .5rem; }
.toc a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; color: var(--muted); }
.toc a:hover { border-color: var(--gold); color: var(--text); }
.page-note { margin: 0 0 2rem; max-width: 90ch; }
.topic { scroll-margin-top: 90px; }
.topic a, .faq a, .callout a { color: var(--accent); text-underline-offset: 2px; }
.example { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; font-size: var(--text-sm); }
.example p:last-child { margin-bottom: 0; }
.example-h { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: .5rem !important; }
.table-wrap { overflow-x: auto; margin: .75rem 0; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 420px; }
.compare th, .compare td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 600; color: var(--text); background: var(--surface-2); }
.compare tbody th { font-weight: 600; }

/* Learn cards */
.learn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.learn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; text-decoration: none; display: flex; flex-direction: column; gap: .4rem; transition: border-color .2s, transform .2s; min-height: 170px; }
.learn-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.learn-t { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; font-weight: 500; }
.learn-d { color: var(--muted); font-size: var(--text-sm); }
.learn-card .go { margin-top: auto; padding-top: .75rem; color: var(--accent); font-weight: 600; font-size: var(--text-sm); }

/* Carriers */
.carrier-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.carrier-list li { padding: 1.15rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.3rem; background: var(--surface); }
.carrier-note { font-size: var(--text-sm); color: var(--muted); margin-top: 1rem; max-width: 80ch; }

/* Resources */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.res-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.res-card .tag { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .5rem; }
.res-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; }
.res-card p { color: var(--muted); font-size: var(--text-sm); }
.res-card .btn { margin-top: auto; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: .3rem; transition: border-color .2s; }
.contact-card:hover { border-color: var(--gold); }
.contact-card .tag { font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-card strong { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.contact-card span:last-child { color: var(--muted); font-size: var(--text-sm); }
.break { overflow-wrap: anywhere; }
.field textarea { font: inherit; font-size: var(--text-base); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; width: 100%; resize: vertical; }
.field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.section-head a { color: var(--accent); }
.home-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); }
.license-card .check-list { font-size: var(--text-sm); }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.footer-h { font-weight: 600; color: var(--text); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-list a, .footer-contact a { color: var(--muted); text-underline-offset: 2px; }
.footer-list a:hover, .footer-contact a:hover { color: var(--text); }
.footer-contact { font-size: var(--text-sm); }
.license-line { font-size: var(--text-sm); }

@media (max-width: 1000px) {
  .learn-grid, .carrier-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-hero-grid, .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .learn-grid, .res-grid { grid-template-columns: 1fr; }
  .carrier-list { grid-template-columns: 1fr 1fr; }
  .carrier-list li { font-size: 1.1rem; padding: .9rem; }
  .learn-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc span { width: 100%; }
}
@media (max-width: 900px) { .topic { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .contact-card strong.break { font-size: 1.12rem; }
  .compare { min-width: 0; }
  .compare th, .compare td { padding: .5rem .45rem; }
}

/* Estate guide + 9-card home grid */
.topic .check-list { padding-left: 0; margin-top: .5rem; }
.learn-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .learn-grid.cols-3 { grid-template-columns: 1fr; } }

/* Careers teaser band */
.team-band { background: var(--accent); color: var(--accent-ink); }
.team-band .eyebrow { color: #e2c385; }
.team-band h2 { max-width: 22ch; }
.team-band p { color: #e6e1d6; max-width: 60ch; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.team-fine { font-size: var(--text-sm); color: #cfc8b8 !important; }
.team-cta { display: flex; flex-direction: column; gap: 1rem; }
.team-code { font-size: var(--text-sm); margin: 0; }
.team-code a { color: #fff; }
.btn-light { background: var(--accent-ink); color: var(--accent); }
.btn-light:hover { transform: translateY(-1px); }
.team-band :focus-visible { outline-color: #e2c385; }

/* Recruiter code chip */
.code-chip { display: inline-flex; align-items: center; gap: .5rem; vertical-align: middle; font: 600 var(--text-sm)/1 var(--font-body); border: 1px dashed var(--gold); background: var(--surface); color: var(--text); border-radius: 999px; padding: .35rem .4rem .35rem .8rem; cursor: pointer; margin: .1rem .15rem; }
.code-chip-code { letter-spacing: .14em; font-variant-numeric: lining-nums tabular-nums; }
.code-chip-act { font-size: var(--text-xs); background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: .3rem .6rem; }
.code-chip.copied { border-style: solid; }
.team-band .code-chip { background: transparent; color: #fff; border-color: #e2c385; }
.team-band .code-chip-act { background: #e2c385; color: #14213d; }
.code-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: var(--surface); border: 1px solid var(--gold); border-left-width: 4px; border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; }
.code-box > div { flex: 1 1 420px; }
.code-box p { margin: 0; }
.code-box-h { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .35rem !important; }

/* TrusteeFriend referral */
.tf-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.25rem); }
.tf-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.tf-copy p { color: var(--muted); }
.tf-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tf-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.tf-list strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; font-variant-numeric: lining-nums; }
.tf-fine { font-size: var(--text-xs); color: var(--muted); margin: .6rem 0 0; }
.tf-disclosure { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin: 0; }
.tf-disclosure strong { color: var(--text); }
@media (max-width: 900px) { .team-grid, .tf-card { grid-template-columns: 1fr; } }

/* Nav: more items, switch to menu earlier */
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; max-height: calc(100vh - 70px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .nav-link, .nav-drop-btn { padding: .85rem 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: var(--text-base); }
  .nav-link[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav-drop-panel { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: .25rem 0 .5rem; background: transparent; }
  .nav-cta { margin-top: 1rem; }
  .nav-cta .btn-label-short { display: none !important; }
  .nav-cta .btn-label-long { display: inline !important; }
}
a[href^="tel:"] { white-space: nowrap; }

/* ---- Round 4: library, carriers, about GFI ---- */
.nav-drop-panel a.drop-lib { border-bottom: 1px solid var(--line); margin-bottom: .25rem; padding-bottom: .7rem; }
.nav-drop-panel a.drop-lib strong { color: var(--accent); }
.lib-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; margin-bottom: 1.25rem; text-decoration: none; color: inherit; }
.lib-banner > span:first-child { display: flex; flex-direction: column; gap: .2rem; }
.lib-banner strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.lib-banner .go { color: var(--accent); font-weight: 600; font-size: var(--text-sm); }
.lib-banner:hover { transform: translateY(-1px); }
.lib-tools { display: grid; gap: 1rem; margin-bottom: 2rem; }
.lib-search input { width: 100%; max-width: 640px; font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: var(--surface); color: var(--text, inherit); }
.lib-search input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.lib-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lib-chip { font: inherit; font-size: var(--text-sm); font-weight: 600; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: inherit; cursor: pointer; }
.lib-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.lib-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lib-count { font-size: var(--text-sm); color: var(--muted); margin: 0; }
.lib-h { font-size: var(--text-xl); margin: 0 0 1rem; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.lib-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.05rem 1.15rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.lib-card:hover { border-color: var(--gold); }
.lib-t { font-weight: 600; line-height: 1.35; }
.lib-d { color: var(--muted); font-size: var(--text-sm); }
.lib-tp { margin-top: auto; padding-top: .35rem; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.lib-item[hidden], .lib-tf[hidden] { display: none !important; }
.lib-empty { margin-top: 1rem; }
.gl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; margin: 0; }
.gl-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.15rem; }
.gl-item dt { font-weight: 600; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .25rem; }
.gl-item dd { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }
.carrier-toc ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.carrier-toc a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-sm); text-decoration: none; background: var(--surface); }
.carrier-toc a:hover { border-color: var(--gold); }
.carrier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.carrier-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 100px; }
.carrier-card h3 { font-size: 1.6rem; margin: 0; }
.carrier-sub { color: var(--muted); font-size: var(--text-sm); margin: .2rem 0 1rem; }
.carrier-facts { margin: 0 0 1rem; display: grid; gap: .45rem; width: 100%; }
.carrier-facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; font-size: var(--text-sm); border-top: 1px solid var(--line); padding-top: .45rem; }
.carrier-facts dt { font-weight: 600; }
.carrier-facts dd { margin: 0; }
.carrier-k { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.prod-chips { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.prod-chips li { font-size: .82rem; padding: .3rem .65rem; border-radius: 999px; background: var(--bg, #f6f3ee); border: 1px solid var(--line); }
.carrier-src { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.carrier-src a, .sources-line a { color: inherit; }
.flyer-card { max-width: 720px; }
.sources-line { font-size: var(--text-sm); color: var(--muted); line-height: 1.7; }
.five-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.five-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; }
.five-n { font-family: var(--font-display); color: var(--gold); font-size: 1.6rem; }
.five-card h3 { margin: .2rem 0 .4rem; font-size: 1.35rem; }
.five-card p { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.fact-list { list-style: none; padding: 0; display: grid; gap: .5rem; margin: 1.25rem 0; }
.fact-list li { border-left: 3px solid var(--gold); padding-left: .8rem; }
blockquote.pull { margin: 1rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--surface); font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
@media (max-width: 1000px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .five-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .carrier-grid, .gl-grid, .lib-grid { grid-template-columns: 1fr; } .carrier-facts > div { grid-template-columns: 1fr; gap: .1rem; } }
@media (max-width: 480px) { .five-grid { grid-template-columns: 1fr; } }

/* ---- Round 5: retirement strategy ---- */
.retire-hero { padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.retire-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.retire-hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.hero-fine { font-size: var(--text-xs); color: var(--muted); margin-top: 1rem; max-width: 60ch; }
.aud-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.aud-tab { font: inherit; font-size: var(--text-sm); font-weight: 600; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.aud-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.aud-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.aud-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
.aud-panel[hidden] { display: none; }
.video-slot { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden; background: #14213a; border: 1px solid var(--line); }
.video-slot video { width: 100%; height: 100%; display: block; background: #000; }
.video-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; text-align: center; padding: 1rem; color: #f6f1e7; background: radial-gradient(circle at 30% 20%, #23365c, #111a2e 70%); }
.play-ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #d9b56a; position: relative; }
.play-ring::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #d9b56a; }
.vp-k { font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: #e6c98c; font-weight: 600; }
.vp-t { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); }
.aud-copy h3 { font-size: var(--text-xl); margin: 0 0 .6rem; }
.aud-copy p { margin: 0 0 .7rem; }
.aud-copy .btn { margin-top: .5rem; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.step-n { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-size: 1.2rem; }
.step-card h3 { margin: .8rem 0 .4rem; font-size: 1.3rem; }
.step-card p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.svc-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.svc-list li { display: grid; gap: .15rem; border-left: 3px solid var(--gold); padding-left: .85rem; }
.svc-list span { color: var(--muted); font-size: var(--text-sm); }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.spec-list li { display: grid; grid-template-columns: 5rem 1fr; gap: .5rem; font-size: var(--text-sm); border-top: 1px solid var(--line); padding-top: .55rem; }
.spec-list li > span { font-weight: 600; color: var(--muted); }
.spec-list a.tel { white-space: nowrap; }
@media (max-width: 1000px) { .retire-hero-grid, .aud-panel { grid-template-columns: 1fr; } .step-grid { grid-template-columns: 1fr; } }
.site-nav .nav-link, .nav-drop-btn { white-space: nowrap; }
