
:root {
  --ink: #17202a;
  --muted: #52606d;
  --line: #dbe2ea;
  --paper: #ffffff;
  --wash: #f3f7f6;
  --navy: #17324d;
  --teal: #1f7a72;
  --plum: #7b355d;
  --amber: #d6922c;
  --shadow: 0 16px 38px rgba(23, 32, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: var(--navy);
  color: #f7fbff;
  font-size: 13px;
  padding: 8px 24px;
  text-align: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  padding: 9px 10px;
  border-radius: 8px;
}
.nav-links a.active,
.nav-links a:hover {
  background: #e8f4f2;
  text-decoration: none;
}
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: stretch;
}
.hero-copy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23,50,77,.96), rgba(31,122,114,.9)),
    radial-gradient(circle at top right, rgba(214,146,44,.32), transparent 32%);
  color: #fff;
  box-shadow: var(--shadow);
}
.breadcrumbs {
  font-size: 13px;
  margin-bottom: 18px;
  color: #d7f2ee;
}
.breadcrumbs a { color: #ffffff; }
.eyebrow {
  margin: 0 0 8px;
  color: #f2c977;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}
h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: 0;
}
h1 {
  margin: 0;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
}
.deck {
  max-width: 760px;
  color: #edf8f6;
  font-size: 18px;
  margin: 16px 0 0;
}
.hero-art {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.subpage .page-hero { grid-template-columns: 1fr; }
.subpage .hero-copy { min-height: 210px; }
.subpage .hero-art { display: none; }
.content-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.content-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.content-card h2,
.side-rail h2 {
  color: var(--navy);
  margin-top: 28px;
}
.content-card h2:first-child { margin-top: 0; }
.content-card p,
.content-card li,
.side-rail p,
.side-rail li {
  color: var(--muted);
}
.content-card ul { padding-left: 22px; }
.note-panel,
.source-box,
.quick-start {
  margin: 28px 0;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #cbdcd9;
  background: #f7fbfa;
}
.note-panel h2,
.source-box h2,
.quick-start h2 {
  margin-top: 0;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.mini-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.mini-card p { margin: 0; }
.side-rail {
  display: grid;
  gap: 16px;
}
.side-rail section,
.related {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}
.side-rail h2,
.related h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.side-rail ul { padding-left: 20px; }
.site-footer {
  background: #111827;
  color: #d6dee8;
  padding: 42px 24px 24px;
}
.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.site-footer h2 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 10px;
}
.site-footer a { color: #9ee0d7; }
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin: 7px 0; }
.footer-note {
  width: min(1180px, 100%);
  margin: 28px auto 0;
  color: #a8b3c1;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
}
@media (max-width: 920px) {
  .nav-shell { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { justify-content: flex-start; }
  .page-hero,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { padding: 24px; }
  .mini-grid { grid-template-columns: 1fr; }
}
