:root {
  --navy: #0f2a43;
  --navy-2: #163a5c;
  --teal: #0e8a8a;
  --teal-dark: #0a6b6b;
  --sand: #f6f4ef;
  --ink: #1d2733;
  --muted: #5b6776;
  --line: #dfe3e8;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(15, 42, 67, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section.alt { background: var(--sand); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-head { margin-bottom: 44px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-family: "Source Serif 4", Georgia, serif; font-size: 1.1rem; }
.brand-mark { height: 38px; width: auto; display: block; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.nav ul a:hover { color: var(--teal-dark); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: .95rem; cursor: pointer; color: var(--navy); }

/* Nav dropdown (Learning Center) */
.has-dropdown { position: relative; }
.dropdown-label { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: .95rem; font-weight: 500; cursor: default; }
.dropdown-label::after { content: "\25BE"; font-size: .7rem; color: var(--muted); }
.has-dropdown:hover .dropdown-label, .has-dropdown:focus-within .dropdown-label { color: var(--teal-dark); }
.has-dropdown .dropdown { display: none; position: absolute; top: 100%; left: 0; margin: 0; padding: 14px 0 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 170px; z-index: 60; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.has-dropdown::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.has-dropdown .dropdown a { display: block; padding: 9px 16px; font-size: .92rem; }
.has-dropdown .dropdown a:hover { background: var(--sand); color: var(--teal-dark); }

/* Nested flyout (Resources sub-menu) */
.has-subdropdown { position: relative; }
.subdropdown-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subdropdown-caret { font-size: .85rem; color: var(--muted); }
.has-subdropdown .subdropdown { display: none; position: absolute; top: 0; right: 100%; left: auto; margin: 0; padding: 14px 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 260px; z-index: 61; }
.has-subdropdown:hover .subdropdown, .has-subdropdown:focus-within .subdropdown { display: block; }
.has-subdropdown .subdropdown a { display: block; padding: 9px 16px; font-size: .88rem; line-height: 1.35; white-space: normal; }
.has-subdropdown .subdropdown a:hover { background: var(--sand); color: var(--teal-dark); }
/* Invisible bridge filling the gap below the trigger, so a diagonal path down into the taller flyout never leaves a hoverable element. Only rendered while active, so it never sits over page content when the menu is closed. */
.has-subdropdown:hover::before, .has-subdropdown:focus-within::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 220px; z-index: 60; }

.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 96px 0 84px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(14,138,138,.45), transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #cfdbe7; font-size: 1.2rem; max-width: 58ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.tag { border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: #e4edf5; }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .95rem; }
.card li { margin-bottom: 5px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: #e3f3f3; color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

/* Industries */
.industry { display: flex; gap: 16px; align-items: flex-start; }
.industry .icon { flex-shrink: 0; margin: 0; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step p { color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.about-copy { max-width: 62ch; }
.portrait { aspect-ratio: 1; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; padding: 36px; }
.portrait img { width: 100%; height: 100%; object-fit: contain; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }

/* CTA + Contact */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfdbe7; max-width: 56ch; margin: 0 auto 26px; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
form { display: grid; gap: 16px; }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid #c7ced6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(14,138,138,.4); outline-offset: 2px; }
textarea { min-height: 130px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #0a1e30; color: #9fb1c3; padding: 40px 0; font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #cfdbe7; }
.disclaimer { max-width: 70ch; font-size: .8rem; margin-top: 10px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
  .nav ul.open { display: flex; }
  .grid-3, .grid-2, .steps, .row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .has-dropdown { width: 100%; }
  .has-dropdown .dropdown { display: block; position: static; margin: 6px 0 0; padding: 0; border: none; box-shadow: none; min-width: 0; }
  .has-dropdown .dropdown a { padding: 8px 0 8px 14px; }
  .has-subdropdown .subdropdown { display: block; position: static; margin: 2px 0 4px; padding: 0; border: none; box-shadow: none; min-width: 0; }
  .has-subdropdown:hover::before, .has-subdropdown:focus-within::before { content: none; }
  .has-subdropdown .subdropdown a { padding: 6px 0 6px 28px; font-size: .87rem; }
  .subdropdown-caret { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---- v2 additions ---- */
.nav ul a.btn { color: #fff; }
.nav ul a[aria-current="page"] { color: var(--teal-dark); font-weight: 700; }
.topbar { background: #0a1e30; color: #cfdbe7; font-size: .85rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: flex-end; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #cfdbe7; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.page-hero p { color: #cfdbe7; max-width: 60ch; font-size: 1.1rem; margin: 0; }
.breadcrumb { display: inline-block; color: #9fc9c9; font-size: .85rem; font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.breadcrumb:hover { color: #fff; text-decoration: underline; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.post-card { display: block; text-decoration: none; color: inherit; transition: transform .12s ease; }
.post-card:hover { transform: translateY(-2px); }
.post-card h3 { color: var(--navy); }
.post-meta { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0 0 12px; padding: 0; }
.foot-links a { color: #cfdbe7; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
@media (max-width: 720px) { .topbar .container { justify-content: flex-start; gap: 14px; } }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
section[id] { scroll-margin-top: 76px; }

/* Regulatory reference (Resources page) */
.agency-search-wrap { max-width: 560px; margin: 0 auto; }
.agency-search { width: 100%; padding: 15px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 1rem; font-family: inherit; box-shadow: var(--shadow); }
.quick-nav-wrap { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 14px 0; }
.quick-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quick-nav a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.quick-nav a:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--sand); }
.agency-section-head { text-align: center; max-width: 640px; margin: 0 auto 8px; }
.agency-grid { margin-top: 24px; }
.agency-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: transform .12s ease, box-shadow .12s ease; }
.agency-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,42,67,.14); }
.agency-top { display: flex; align-items: center; justify-content: space-between; }
.agency-flag { font-size: 1.7rem; line-height: 1; }
.chip { background: var(--sand); color: var(--teal-dark); font-weight: 700; font-size: .76rem; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; }
.agency-card h3 { margin: 0; font-size: 1.05rem; }
.agency-region { color: var(--muted); font-size: .8rem; margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.agency-card p:not(.agency-region) { color: var(--ink); font-size: .92rem; margin: 0; }
.agency-visit { margin-top: auto; padding-top: 6px; color: var(--teal-dark); font-weight: 600; font-size: .86rem; }
.no-results { display: none; text-align: center; color: var(--muted); padding: 50px 0; }
.agency-card.static-card:hover { transform: none; box-shadow: var(--shadow); }
@media (max-width: 720px) { .quick-nav-wrap { top: 0; } }

/* Case studies (added 2026-09-29) */
.nav ul a, .dropdown-label { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 1040px) {
  .nav ul { gap: 16px; }
  .nav ul a, .dropdown-label { font-size: .88rem; }
}
.cs-note { background: var(--sand); border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 8px; font-size: .95rem; }
.cs-callout { background: #eef7f7; border: 1px solid #cde9e9; border-radius: var(--radius); padding: 16px 20px; margin: 1.4em 0; }
.cs-callout p { margin: 0; }
.cs-callout .cs-callout-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.cs-tag { display: inline-block; background: #fff4de; color: #8a5a00; font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin: 0 0 .6em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.cs-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.cs-table th, .cs-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cs-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.cs-table tbody th { color: var(--navy); font-weight: 700; background: var(--sand); white-space: nowrap; }
.cs-table tr:last-child th, .cs-table tr:last-child td { border-bottom: none; }
.cs-matrix td { text-align: center; font-weight: 600; }
.cs-good { background: #e8f6ee; color: #1e6b3f; }
.cs-bad { background: #fdeaea; color: #9b2c2c; }
.cs-missing { background: #f3f4f6; color: var(--muted); font-style: italic; }
.prose .cs-verdict { max-width: none; margin: 1em 0 1.4em; }
.cs-verdict .card h3 { margin-top: 0; font-size: 1.05rem; }
.cs-verdict .card ul { padding-left: 1.1em; margin: 0; font-size: .92rem; }
@media (min-width: 900px) { .prose:has(.cs-verdict) { max-width: 80ch; } }
