/* ── Design tokens ── */
:root {
  --navy:      #1a2e4a;
  --navy-dark: #0f1e32;
  --teal:      #1f7a8c;
  --teal-light:#26a0b5;
  --gold:      #c8922a;
  --gold-light:#e0aa42;
  --white:     #ffffff;
  --off-white: #f5f7fa;
  --text:      #2c3e50;
  --text-muted:#5a6a7e;
  --border:    #dde3ea;
  --shadow:    rgba(26,46,74,0.12);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); text-decoration: underline; }
img { max-width: 100%; }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--gold); color: var(--white);
  padding: 8px 16px; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Top bar ── */
.top-bar {
  background: var(--navy-dark);
  color: var(--off-white);
  font-size: .8rem;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  margin-top: 0;
}
.top-bar a { color: var(--gold-light); }
.social-icons a {
  margin-left: 12px;
  font-size: .85rem;
  color: var(--off-white);
}
.social-icons a:hover { color: var(--gold-light); text-decoration: none; }

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 10px 24px;
  text-align: center;
  border-bottom: 4px solid var(--teal);
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  z-index: 101;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.header-logo img {
  height: 64px;
  width: 64px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.header-text {
  text-align: left;
}
.site-title {
  font-size: clamp(.9rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.3;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title span { color: var(--gold-light); }
.site-tagline {
  margin-top: 4px;
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
}

/* ── Nav ── */
nav {
  background: var(--teal);
  position: fixed;
  top: 130px; /* top-bar ~32px + header ~98px (two-line title) */
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}
/* push page content below all three fixed bars */
.hero-quote, .page-hero { margin-top: 178px; } /* 32+98+48 */
.alert-banner { margin-top: 0; }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
nav a {
  display: block;
  padding: 13px 14px;
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s;
}
nav a:hover, nav a.active {
  background: var(--navy);
  color: var(--gold-light);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 12px 16px;
  cursor: pointer;
}

/* ── Hero quote ── */
.hero-quote {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}
.hero-quote blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}
.hero-quote cite {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 1rem;
  opacity: .85;
  max-width: 680px;
  margin: 0 auto;
}

/* ── Alert banner ── */
.alert-banner {
  background: var(--gold);
  color: var(--navy-dark);
  text-align: center;
  padding: 14px 24px;
  font-weight: 700;
  font-size: .95rem;
}

/* ── Layout ── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
main { padding: 48px 0 64px; }

/* ── Sections ── */
section {
  margin-bottom: 64px;
  scroll-margin-top: 72px;
}
.section-header {
  border-left: 5px solid var(--teal);
  padding-left: 16px;
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--navy);
  font-weight: 700;
}
.section-header p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .92rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}
.card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .card-tag {
  font-size: .75rem;
  background: var(--teal);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: auto;
  flex-shrink: 0;
}
.card p { font-size: .92rem; color: var(--text-muted); line-height: 1.6; }
.card .card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── Video card ── */
.video-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}
.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.video-thumb .play-btn {
  width: 60px;
  height: 60px;
  background: rgba(232,170,66,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--navy-dark);
  transition: background .18s, transform .18s;
}
.video-card:hover .play-btn {
  background: var(--gold-light);
  transform: scale(1.1);
}
.video-thumb .thumb-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15,30,50,.8);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.video-info {
  padding: 16px;
}
.video-info h3 {
  font-size: .97rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}
.video-info p {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.video-info .video-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

/* ── Playlist header ── */
.playlist-header {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px 8px 0 0;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.playlist-header .playlist-count {
  margin-left: auto;
  font-size: .8rem;
  background: var(--teal);
  padding: 2px 10px;
  border-radius: 20px;
}
.playlist-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  margin-bottom: 32px;
}

/* ── Definition list ── */
.def-list { list-style: none; }
.def-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px var(--shadow);
}
.def-list li strong {
  color: var(--teal);
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}
.def-list li p { font-size: .93rem; color: var(--text); margin: 0; }

/* ── Two/three-col layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .three-col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* ── Info box ── */
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 2px 8px var(--shadow);
}
.info-box h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.info-box p { font-size: .93rem; line-height: 1.7; margin-bottom: 10px; }
.info-box p:last-child { margin-bottom: 0; }
.info-box ul, .info-box ol {
  padding-left: 20px;
  font-size: .93rem;
  line-height: 1.8;
}

/* ── Gold info box ── */
.info-box-gold {
  border-top-color: var(--gold);
}

/* ── Highlight box ── */
.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: var(--white);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}
.highlight-box h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}
.highlight-box p { opacity: .9; max-width: 680px; margin: 0 auto; }

/* ── Stat strip ── */
.stat-strip {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
  margin-bottom: 48px;
}
.stat-strip .stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-strip .stat-label {
  font-size: .88rem;
  opacity: .8;
  margin-top: 6px;
}

/* ── Step/numbered process ── */
.step-list { list-style: none; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px var(--shadow);
}
.step-list li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}
.step-list li h4 {
  color: var(--navy);
  margin-bottom: 4px;
  font-size: .97rem;
}
.step-list li p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Resource list ── */
.resource-list { list-style: none; }
.resource-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list li::before {
  content: "→";
  color: var(--teal);
  flex-shrink: 0;
  font-weight: 700;
}

/* ── Blog card ── */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px var(--shadow);
}
.blog-card .blog-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--teal);
  background: #e6f4f7;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.blog-card .blog-meta {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.read-more:hover { color: var(--navy); text-decoration: underline; }

/* ── Download/form card ── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.form-card .form-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.form-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.form-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.form-card .form-badge {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: center;
}

/* ── DSM codes ── */
.dsm-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.dsm-code {
  background: var(--navy);
  color: var(--gold-light);
  font-family: monospace;
  font-size: .9rem;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ── Callout ── */
.callout {
  border-left: 5px solid var(--teal);
  background: #e8f5f8;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin: 20px 0;
  font-size: .93rem;
}
.callout-gold {
  border-left-color: var(--gold);
  background: #fef8ec;
}
.callout-navy {
  border-left-color: var(--navy);
  background: #eaeff5;
}

/* ── Disclaimer ── */
.disclaimer {
  background: #fff8e6;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-radius: 4px;
  padding: 16px 20px;
  font-size: .88rem;
  color: #5a4500;
  margin-top: 48px;
}
.disclaimer strong { color: #3a2c00; }

/* ── Tab filter buttons ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--teal);
  color: var(--white);
}

/* ── Footer ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 40px 24px;
  font-size: .88rem;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 20px;
}
footer .footer-links a { color: var(--gold-light); }
footer .social-row {
  margin: 16px 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}
footer .social-row a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}
footer .social-row a:hover { color: var(--gold-light); text-decoration: none; }
footer p { margin-top: 8px; }

/* ── Responsive nav ── */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-inner { flex-direction: column; display: none; }
  .nav-inner.open { display: flex; }
  nav a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
}
