:root {
  --navy: #0a1628;
  --navy-mid: #12243d;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --sky: #eff6ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --header-h: 72px;
  --sidebar-w: 300px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--blue-light); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ── Top bar ── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}
.top-bar-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.35);
  color: #dbeafe;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.top-bar a { color: #93c5fd; font-weight: 500; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; color: var(--navy); }
.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(145deg, var(--blue) 0%, #1d4ed8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.nav-main {
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: min(72vw, 820px);
  -webkit-overflow-scrolling: touch;
}
.nav-main::-webkit-scrollbar { display: none; }
.nav-main a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-main a:hover, .nav-main a.active {
  background: var(--sky);
  color: var(--blue);
  text-decoration: none;
}
.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
}

/* ── Hero (home) ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.75) 45%, rgba(10,22,40,0.35) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #bfdbfe;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.btn-ghost-light {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  text-decoration: none;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px 16px;
  backdrop-filter: blur(8px);
}
.stat-card strong {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.stat-card span { font-size: 0.8125rem; color: rgba(255,255,255,0.7); margin-top: 4px; display: block; }
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.15);
  aspect-ratio: 4/3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ── Trust strip ── */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.trust-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-pale);
  flex-shrink: 0;
  margin-top: 6px;
}
.trust-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.trust-item span { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.trust-item a { color: var(--blue); font-weight: 500; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.65);
}
.breadcrumbs a { color: #bfdbfe; font-weight: 500; }
.breadcrumbs a:hover { color: white; text-decoration: none; }
.breadcrumbs span[aria-current="page"] { color: rgba(255,255,255,0.9); }

/* ── Article meta ── */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.meta-tag {
  background: var(--sky);
  color: var(--blue);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid #bfdbfe;
}

/* ── Sources box ── */
.sources-box {
  margin-top: 40px;
  padding: 24px 26px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.sources-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}
.sources-box ul { margin: 0 0 12px 18px; }
.sources-box li { margin-bottom: 6px; font-size: 0.9375rem; }
.sources-note { font-size: 0.8125rem; color: var(--muted); margin: 0; }

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-mid);
  margin-bottom: 0;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.5) 100%);
}
.page-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 40px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.page-hero .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0;
}

/* ── Section preview (home cards) ── */
.section-preview {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--white) 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--line);
}
.section-head {
  margin-bottom: 40px;
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 1.0625rem; margin: 0 auto; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #bfdbfe;
  text-decoration: none;
}
.topic-card-img {
  height: 180px;
  overflow: hidden;
  background: var(--sky);
}
.topic-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.topic-card:hover .topic-card-img img { transform: scale(1.05); }
.topic-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.topic-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.topic-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}
.topic-card .card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

/* ── Layout ── */
.page-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 36px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar h3 {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid transparent;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: var(--sky);
  color: var(--blue);
  border-left-color: var(--blue);
  text-decoration: none;
}

/* ── Content ── */
.main-content { min-width: 0; }
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.content-card > h1:first-child,
.content-card > h2:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.125rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.content-card h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.content-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
}
.content-card p { margin-bottom: 16px; color: var(--text); }
.content-card ul, .content-card ol { margin: 0 0 18px 22px; color: var(--text); }
.content-card li { margin-bottom: 8px; }
.lead { font-size: 1.125rem; color: var(--muted); margin-bottom: 24px; line-height: 1.65; }

/* ── Images ── */
.figure {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}
.figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.figure figcaption {
  padding: 12px 18px;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.img-row .figure { margin: 0; }
.img-row .figure img { aspect-ratio: 4/3; }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.photo-strip img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ── Callout ── */
.callout {
  background: linear-gradient(135deg, var(--sky) 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  font-size: 0.9375rem;
}
.callout strong { color: var(--navy); }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--sky);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

/* ── FAQ ── */
.faq-list { margin-top: 20px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--white);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 22px;
  font: 600 0.9375rem var(--font);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 22px 20px; font-size: 0.9375rem; color: var(--text); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 600px; }

/* ── Glossary ── */
.glossary-grid { display: grid; gap: 12px; margin-top: 20px; }
.glossary-term {
  padding: 18px 22px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.glossary-term dt { font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.glossary-term dd { font-size: 0.9375rem; color: var(--text); margin: 0; line-height: 1.6; }

/* ── Footer ── */
.site-footer {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  margin-top: 0;
}
.footer-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.trust-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.trust-pill strong {
  display: block;
  color: white;
  font-size: 0.875rem;
  margin-bottom: 4px;
}
.trust-pill span { font-size: 0.8125rem; color: rgba(255,255,255,0.65); line-height: 1.45; }
.footer-about {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 8px;
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: white; font-size: 0.875rem; font-weight: 700; margin-bottom: 14px; }
.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  padding: 5px 0;
}
.footer-grid a:hover { color: white; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: rgba(255,255,255,0.5);
}

/* ── Cookie ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 18px 28px;
  box-shadow: 0 -8px 40px rgba(15,23,42,0.1);
  z-index: 300;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.cookie-inner p { font-size: 0.875rem; color: var(--text); flex: 1; min-width: 260px; }
.cookie-btns { display: flex; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font: 600 0.875rem var(--font);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #1d4ed8; color: white; text-decoration: none; }
.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--line); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .trust-strip-inner { grid-template-columns: 1fr 1fr; }
  .footer-trust { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .img-row { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-main { display: none; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
  .site-header .container { position: relative; }
  .hero-stats { grid-template-columns: 1fr; }
  .content-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
