*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0B1D3A;
  --charcoal:   #1C2430;
  --navy-mid:   #152844;
  --navy-light: #1E3A5F;
  --blue:       #0066FF;
  --teal:       #00BFB3;
  --orange:     #FF6A00;
  --orange-soft:#FF8533;
  --gray:       #6B7280;
  --gray-light: #9CA3AF;
  --ice:        #B8D4E8;
  --white:      #F8FAFC;
  --text-body:  #CBD8E4;
  --text-dim:   #8EA6C0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text-body);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.3;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,102,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(11,29,58,0.97) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,102,255,0.1);
}
.nav-logo { display: flex; flex-direction: column; gap: 1px; text-decoration: none; }
.nav-logo-wordmark { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.nav-logo-wordmark .dc { color: var(--white); }
.nav-logo-wordmark .nine { color: var(--blue); }
.nav-logo-tagline { font-family: 'Montserrat', sans-serif; font-size: 8px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); line-height: 1; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-learn {
  color: var(--ice); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: color 0.2s;
}
.nav-learn:hover { color: var(--teal); }
.nav-cta {
  background: var(--orange); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 3px; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--orange-soft); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,106,0,0.35); }

/* ARTICLE */
.main { position: relative; z-index: 1; flex: 1; padding: 140px 48px 80px; }
.article { max-width: 720px; margin: 0 auto; }

.crumb { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 28px; }
.crumb a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.crumb a:hover { color: var(--teal); }
.crumb span { color: var(--gray); margin: 0 8px; }

.eyebrow {
  font-size: 10px; font-weight: 700; color: var(--teal);
  letter-spacing: 0.35em; text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--teal); }

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 5.5vw, 56px);
  line-height: 1.0; color: var(--white);
  letter-spacing: 0.02em; margin-bottom: 24px; font-weight: 400;
}

.dek {
  font-size: 17px; font-weight: 400; color: var(--ice);
  line-height: 1.7; margin-bottom: 44px;
  border-left: 2px solid var(--blue); padding-left: 20px;
}

.article h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 27px; color: var(--white); letter-spacing: 0.03em;
  margin: 44px 0 16px; font-weight: 400; line-height: 1.1;
}
.article p { font-size: 15.5px; margin-bottom: 18px; }
.article strong { color: var(--white); font-weight: 600; }
.article a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(0,191,179,0.35); transition: border-color 0.2s; }
.article a:hover { border-bottom-color: var(--teal); }

.article ul { list-style: none; margin: 0 0 20px; }
.article ul li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 15.5px; }
.article ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--teal); }

.callout {
  background: var(--navy-mid); border-left: 2px solid var(--teal);
  padding: 20px 24px; margin: 28px 0;
  font-size: 15.5px; color: var(--ice); font-weight: 400;
}
.callout strong { color: var(--white); }

/* CTA */
.cta-block {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(0,102,255,0.12);
}
.cta-label { font-size: 10px; font-weight: 700; color: var(--blue); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 12px; }
.cta-heading { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.35; }
.cta-desc { font-size: 14px; font-weight: 400; color: var(--text-dim); line-height: 1.6; margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 18px 36px; border-radius: 3px;
  text-decoration: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255,106,0,0.3);
}
.btn-primary:hover { background: var(--orange-soft); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,106,0,0.4); }
.btn-meta { display: block; margin-top: 14px; font-size: 12px; font-weight: 500; color: var(--text-dim); letter-spacing: 0.06em; }

/* RELATED */
.related { margin-top: 48px; }
.related-label { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 16px; }
.related-links { display: flex; flex-direction: column; gap: 10px; }
.related-links a {
  color: var(--ice); font-size: 14px; font-weight: 500; text-decoration: none;
  border-bottom: none; transition: color 0.2s;
}
.related-links a::before { content: '\2192\00a0\00a0'; color: var(--teal); }
.related-links a:hover { color: var(--teal); }

/* HUB */
.hub-group { margin-bottom: 52px; }
.hub-group-label { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 20px; }
.hub-card {
  display: block; background: var(--navy-mid); padding: 24px 28px; margin-bottom: 12px;
  text-decoration: none; border: 1px solid rgba(0,102,255,0.12); border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}
.hub-card:hover { background: var(--navy-light); border-color: rgba(0,191,179,0.4); }
.hub-card-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; line-height: 1.35; }
.hub-card-desc { font-size: 13.5px; font-weight: 400; color: var(--text-dim); line-height: 1.55; }

/* FOOTER */
footer {
  position: relative; z-index: 1;
  padding: 28px 48px;
  border-top: 1px solid rgba(0,102,255,0.12);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-logo { text-decoration: none; }
.footer-logo-wordmark { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; }
.footer-logo-wordmark .dc { color: var(--gray-light); }
.footer-logo-wordmark .nine { color: var(--blue); opacity: 0.7; }
.footer-disclaimer {
  font-size: 11px; font-weight: 400; color: var(--text-dim);
  max-width: 560px; line-height: 1.5; text-align: right; font-style: italic;
}
.footer-disclaimer a { color: var(--text-dim); text-decoration: none; }

@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  .nav-logo-tagline { display: none; }
  .nav-right { gap: 16px; }
  .nav-learn { display: none; }
  .main { padding: 120px 24px 60px; }
  footer { padding: 24px 20px; flex-direction: column; }
  .footer-disclaimer { text-align: left; }
}

/* ─────────────────────────────────────────────────────────────
   ARTICLE ADDITIONS — h3, ordered lists, blockquotes, sources
   Added for the in-depth learning-page format (floor-loading v0.4).
   Uses existing design tokens; no changes to prior rules.
   ───────────────────────────────────────────────────────────── */

/* Sub-headings within a section */
.article h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--white);
  letter-spacing: 0.01em; line-height: 1.35;
  margin: 30px 0 12px;
}

/* Ordered lists — numbered, teal numerals to echo the ul dash treatment */
.article ol { list-style: none; counter-reset: dc-ol; margin: 0 0 20px; }
.article ol li {
  position: relative; counter-increment: dc-ol;
  padding-left: 30px; margin-bottom: 12px; font-size: 15.5px;
}
.article ol li::before {
  content: counter(dc-ol) ".";
  position: absolute; left: 0; top: 0;
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700;
  line-height: 1.7; color: var(--teal);
}

/* Question / pull-quote */
.article blockquote {
  border-left: 2px solid var(--blue);
  padding: 2px 0 2px 20px; margin: 4px 0 18px;
  color: var(--ice); font-size: 16px; font-style: italic;
  font-weight: 400; line-height: 1.6;
}

/* Sources & further reading */
.sources { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(0,102,255,0.12); }
.sources-label { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 18px; }
.sources ul { list-style: none; margin: 0 0 20px; }
.article .sources ul li { position: relative; padding-left: 0; margin-bottom: 12px; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.article .sources ul li::before { content: none; }
.article .sources a { color: var(--ice); font-weight: 500; border-bottom: 1px solid rgba(184,212,232,0.25); }
.article .sources a:hover { color: var(--teal); border-bottom-color: var(--teal); }
.page-note { font-size: 11px; font-style: italic; color: var(--text-dim); line-height: 1.5; margin-top: 4px; }

/* CTA secondary line — link to the homepage */
.cta-secondary { font-size: 13px; font-weight: 400; color: var(--text-dim); margin-top: 18px; }
.article .cta-secondary a { color: var(--ice); border-bottom: 1px solid rgba(184,212,232,0.3); }
.article .cta-secondary a:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ─────────────────────────────────────────────────────────────
   TABLES — evidence / decision-gate / owners tables in learn pages
   Added for the core library conversion. Uses existing tokens.
   ───────────────────────────────────────────────────────────── */
.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
.article table {
  width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5;
  min-width: 560px;
}
.article thead th {
  text-align: left; vertical-align: bottom;
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--teal);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0 16px 10px; border-bottom: 2px solid rgba(0,191,179,0.35);
}
.article tbody td {
  text-align: left; vertical-align: top; color: var(--text-body);
  padding: 12px 16px; border-bottom: 1px solid rgba(0,102,255,0.12);
}
.article tbody td:first-child { color: var(--white); font-weight: 600; }
.article tbody tr:last-child td { border-bottom: none; }
.article table strong { color: var(--white); }

@media (max-width: 640px) {
  .article table { font-size: 12.5px; }
  .article thead th, .article tbody td { padding-left: 12px; padding-right: 12px; }
}
