:root {
  --navy-950: #071426;
  --navy-900: #0b1f3a;
  --navy-800: #15365f;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #eef4fb;
  --text: #132238;
  --muted: #5f6f86;
  --border: #d7e1ec;
  --shadow: 0 18px 40px rgba(10, 25, 47, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 20, 38, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr minmax(220px, 320px); gap: 18px; align-items: center;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; }
.brand i { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; }
.site-nav a { color: rgba(255,255,255,0.9); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.site-nav a:hover { color: #fff; }
.site-search-wrap { display: grid; gap: 6px; }
.site-search { display: flex; align-items: center; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.site-search input {
  width: 100%; border: 0; outline: 0; background: transparent; color: #fff; padding: 12px 14px; font: inherit;
}
.site-search input::placeholder { color: rgba(255,255,255,0.65); }
.site-search button {
  border: 0; background: var(--accent); color: #1b1201; padding: 12px 14px; cursor: pointer; font-size: 1rem;
}
.site-search-status {
  margin: 0; min-height: 1.1rem; color: rgba(255,255,255,0.78); font-size: 0.82rem; text-align: right;
}
.site-search-status.error { color: #ffd6d6; }
.ad-wrap { padding: 20px 0 0; }
.ad-slot {
  border: 1px dashed #9ab0c9; background: #fff8e8; color: #7b5b12; text-align: center; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: 0.02em;
}
.ad-slot-leaderboard { min-height: 90px; }
.ad-slot-rectangle { min-height: 250px; }
.breadcrumb-wrap { padding-top: 18px; }
.breadcrumbs { color: var(--muted); font-size: 0.95rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumb-sep { margin: 0 8px; }
.hero {
  background: linear-gradient(135deg, #0b1f3a 0%, #143457 52%, #22548f 100%);
  color: #fff; margin-top: 18px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 28px; align-items: center;
  padding: 36px 0;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; font-weight: 800; color: #b6cae6; margin: 0 0 8px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; }
.hero-text { margin: 0; color: rgba(255,255,255,0.86); font-size: 1.05rem; max-width: 62ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; color: #d8e5f6; font-size: 0.95rem; }
.hero-media img, .feature-thumb img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
.page-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 28px 0 40px;
}
.main-column, .sidebar { min-width: 0; }
.content-card, .notice, .page-disclaimer, .sidebar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.main-column > * + *, .sidebar > * + * { margin-top: 22px; }
.notice {
  background: #fff9ee; border-color: #f5d08d;
}
.feature-thumb { margin: 0 0 22px; }
.page-body h2, .page-body h3 { color: var(--navy-900); margin-top: 30px; }
.page-body p:first-child { margin-top: 0; }
.page-body ul { padding-left: 20px; }
.page-body li + li, .sources li + li, .sidebar-links li + li { margin-top: 8px; }
.page-body .citations { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }
.page-body .citations a { color: var(--navy-800); text-decoration: underline; text-underline-offset: 2px; }
.page-body .last-reviewed { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }
.page-body .link-grid, .link-grid.two-col {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.link-card {
  display: block; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #f3f8ff);
  border: 1px solid var(--border); font-weight: 700; min-height: 100%;
}
.sidebar-card h2, .sources h2, .related-pages h2, .internal-links h2 { margin-top: 0; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links a { font-weight: 600; }
.internal-links-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.internal-links-section h3 {
  margin: 0 0 12px; font-size: 1rem; color: var(--navy-900);
}
.internal-links-section ul {
  list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px;
}
.internal-links-section a {
  display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--surface-alt); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s ease;
}
.internal-links-section a:hover {
  background: linear-gradient(180deg, #ffffff, #f0f5ff); border-color: var(--accent); color: var(--accent-dark);
}
.site-footer {
  background: var(--navy-950); color: rgba(255,255,255,0.85); padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.footer-brand { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; color: #fff; }
.footer-copy { margin: 0; max-width: 48ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-links a { color: rgba(255,255,255,0.88); }
@media (max-width: 1040px) {
  .header-inner { grid-template-columns: 1fr; }
  .site-nav { justify-content: flex-start; }
  .hero-grid, .page-layout, .footer-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero-grid { padding: 28px 0; }
  .content-card, .notice, .page-disclaimer, .sidebar-card { padding: 18px; }
  .page-body .link-grid, .link-grid.two-col { grid-template-columns: 1fr; }
  .hero-meta { gap: 10px; }
}
