:root {
  --canvas: #F9F8F4;
  --surface: #FFFFFF;
  --petrol: #113946;
  --petrol-dark: #0A252E;
  --coral: #D95D39;
  --coral-hover: #BA4B2B;
  --seafoam: #E6F2F2;
  --seafoam-border: #C4DFDF;
  --ink: #1E242B;
  --muted: #52606D;
  --border: #DCE3E6;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(17, 57, 70, 0.06);
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--petrol); color: #fff; padding: 12px 18px; z-index: 1000;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 6px; }
a { color: var(--petrol); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; margin: 0 auto; }

/* Normal Editorial Header (Zero Dark Top Bar, Zero Promo CTA) */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 90;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 70px; flex-wrap: wrap; padding: 10px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--petrol); font-weight: 700;
}
.brand-title { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.2; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 500;
  padding: 9px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover, .nav-links a.active { background: var(--seafoam); color: var(--petrol); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--border);
  padding: 44px 0 38px;
}
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--coral);
  background: #FDF1EC; border: 1px solid #F4CFC2; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--petrol); line-height: 1.28; margin-top: 0; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
h2 { font-size: clamp(1.28rem, 2.2vw, 1.65rem); margin: 34px 0 12px; }
h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 740px; margin: 0 0 18px; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 0.86rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px;
}
.meta-row strong { color: var(--ink); }

/* Cards & Grids */
.section { padding: 38px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--petrol); text-decoration: none; min-height: 44px;
}
.card-link:hover { color: var(--coral); }

/* Callouts & Notices */
.callout {
  background: var(--seafoam); border-left: 4px solid var(--petrol);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; margin: 22px 0;
}
.notice-box {
  background: #FFF9F6; border: 1px solid #F2C9BC; border-left: 4px solid var(--coral);
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; font-size: 0.94rem;
}
.changelog-note {
  background: var(--surface); border: 1px dashed var(--seafoam-border); border-radius: 10px;
  padding: 12px 16px; font-size: 0.88rem; color: var(--muted); margin: 16px 0 24px;
}
.changelog-note strong { color: var(--petrol); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--petrol); color: #fff; font-weight: 600; font-family: var(--font-body); }
tr:last-child td { border-bottom: 0; }
.mono { font-family: var(--font-mono); font-size: 0.88rem; }

/* Buttons & Forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--petrol); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 20px; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  cursor: pointer; min-height: 46px;
}
.btn:hover { background: var(--petrol-dark); color: #fff; }
.btn-coral { background: var(--coral); }
.btn-coral:hover { background: var(--coral-hover); color: #fff; }
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--petrol); }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink); min-height: 46px;
}
.result-panel {
  background: var(--seafoam); border: 1px solid var(--seafoam-border); border-radius: var(--radius);
  padding: 20px; margin-top: 18px;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 16px 0; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.stat-val { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; color: var(--petrol); }
.stat-lbl { font-size: 0.8rem; color: var(--muted); }

/* Breadcrumbs & FAQ */
.breadcrumbs { font-size: 0.84rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--petrol); text-decoration: underline; }
details.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px;
}
details.faq-item summary { font-weight: 600; color: var(--petrol); cursor: pointer; list-style: none; }
details.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Citations */
.citations { font-size: 0.86rem; color: var(--muted); padding-left: 20px; }
.citations li { margin-bottom: 8px; }

/* Footer */
.site-footer {
  background: var(--petrol-dark); color: #D7E3E8; margin-top: 56px; padding: 44px 0 32px;
  font-size: 0.88rem;
}
.site-footer a { color: #CBE2E6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; margin-bottom: 28px; }
.footer-title { font-family: var(--font-display); color: #fff; font-size: 0.98rem; margin: 0 0 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; font-size: 0.82rem; color: #AFC4CC; line-height: 1.6;
}
@media (max-width: 680px) {
  .header-inner { gap: 10px; }
  .nav-links { width: 100%; }
  th, td { padding: 10px; font-size: 0.86rem; }
}
