* { box-sizing: border-box; }

:root {
  --navy: #082d4b;
  --ocean: #17629b;
  --sky: #dcedf8;
  --paper: #f7fbfe;
  --ink: #17364f;
  --muted: #4b6d87;
  --line: #b8d4e7;
  --gold: #ffd24a;
  --gold-deep: #e89a18;
  --red: #cf372d;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: #075c98; }
a:hover { color: #96372e; }
img { max-width: 100%; height: auto; }

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1100px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 30px; }
.nav-links { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: #e7f5ff; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-links .play {
  min-height: 40px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  color: #4f3100;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
}

.resource-hero {
  position: relative;
  min-height: 390px;
  color: #fff;
  background: var(--navy) url("assets/menu-bg-1536.webp") center 58% / cover no-repeat;
  overflow: hidden;
}
.resource-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 22, 38, .58), rgba(4, 22, 38, .9));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 64px;
}
.eyebrow { margin: 0 0 10px; color: #ffe69a; font-size: 13px; font-weight: 700; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.18; }
h1 { max-width: 20ch; margin: 0; font-size: clamp(34px, 6vw, 58px); color: #fff; }
.hero-lead { max-width: 66ch; margin: 18px 0 0; color: #e1f2ff; font-size: clamp(16px, 2.4vw, 20px); line-height: 1.55; }

.content-band { padding: 56px 16px; background: var(--paper); }
.content-band.alt { background: #eaf4fa; }
.article { width: min(800px, 100%); margin: 0 auto; }
.article > p, .article > ul, .article > ol { font-size: 17px; }
.article h2 { margin: 48px 0 14px; color: #0c4e7b; font-size: clamp(25px, 4vw, 34px); }
.article h3 { margin: 28px 0 8px; color: #164f74; font-size: 20px; }
.article li { margin: 9px 0; }
.intro { color: #294f6c; font-size: 20px !important; }
.meta { margin-bottom: 22px; color: var(--muted); font-size: 13px !important; }

.toc {
  margin: 34px 0 40px;
  padding: 20px 22px;
  background: #e7f2f9;
  border-left: 4px solid var(--ocean);
  border-radius: 0 8px 8px 0;
}
.toc strong { display: block; margin-bottom: 7px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 34px; }
.toc li { break-inside: avoid; margin: 5px 0; }

.rule {
  margin: 24px 0;
  padding: 18px 20px;
  background: #fff5d2;
  border: 1px solid #efd274;
  border-radius: 8px;
}
.rule strong { color: #704500; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 4px;
  width: max-content;
  margin: 22px auto;
  padding: 12px;
  background: #9cc5df;
  border: 1px solid #5e94b8;
  border-radius: 8px;
}
.example-grid img { display: block; width: 52px; aspect-ratio: 1; image-rendering: pixelated; }
.example-caption { margin-top: -10px; color: var(--muted); font-size: 14px !important; text-align: center; }

.figure { margin: 34px 0; }
.figure img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.figure figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }

.checklist { padding-left: 0; list-style: none; counter-reset: steps; }
.checklist li {
  position: relative;
  min-height: 40px;
  padding-left: 52px;
  counter-increment: steps;
}
.checklist li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ocean);
  border-radius: 50%;
  font-weight: 700;
}

.faq-list { width: min(800px, 100%); margin: 0 auto; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 20px 38px 20px 0;
  color: #0b4c78;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
}
.faq-list details p, .faq-list details ul { margin-top: 0; padding-bottom: 18px; font-size: 16px; }

.resource-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: min(960px, 100%);
  margin: 28px auto 0;
}
.resource-link {
  display: block;
  padding: 20px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
.resource-link strong { display: block; margin-bottom: 6px; color: #0b4c78; font-size: 18px; }
.resource-link span { color: var(--muted); font-size: 14px; }

.cta-band { padding: 42px 16px; color: #fff; background: var(--navy); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(960px, 100%); margin: 0 auto; }
.cta-inner h2 { margin: 0 0 6px; color: #fff; font-size: 26px; }
.cta-inner p { margin: 0; color: #cfe8f7; }
.cta-button {
  flex: none;
  padding: 12px 22px;
  color: #4f3100;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer { padding: 34px 16px; text-align: center; background: #061f34; }
.site-footer p { margin: 5px 0; color: #aac9dc; font-size: 13px; }
.site-footer a { color: #d8effc; }

@media (max-width: 700px) {
  .site-nav { align-items: flex-start; padding: 12px 0; }
  .nav-links a:not(.play) { display: none; }
  .resource-hero { min-height: 360px; }
  .hero-inner { padding-top: 56px; }
  .content-band { padding: 42px 18px; }
  .article > p, .article > ul, .article > ol { font-size: 16px; }
  .toc ol { columns: 1; }
  .resource-links { grid-template-columns: 1fr; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
