:root {
  --navy: #14294C;
  --navy-deep: #0E1D38;
  --blue: #0563C1;
  --green: #23905A;
  --violet: #6A34B5;
  --grey: #5A6573;
  --panel: #E2E7EE;
  --border: #E2E8F0;
  --bg: #FFFFFF;
  --ink: #1A2230;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.brand img { height: 36px; width: auto; display: block; }
.wordmark { font-weight: 700; color: var(--navy); letter-spacing: 0.2px; }
.wordmark .dot { font-weight: 400; color: var(--green); }

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.primary-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.primary-nav a {
  color: var(--navy);
  font-weight: 600;
  padding: 0.5rem 0.25rem;
}
.primary-nav a:hover { color: var(--blue); text-decoration: none; }

.has-menu { position: relative; }
.has-menu > button {
  background: none;
  border: 0;
  font: inherit;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
}
.has-menu .menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(20,41,76,0.08);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 260px;
}
.has-menu .menu a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.has-menu:hover .menu,
.has-menu:focus-within .menu { display: block; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: #1c764a; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 820px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .primary-nav.open {
    display: flex;
    position: fixed;
    inset: 60px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    overflow-y: auto;
  }
  .primary-nav.open > ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .primary-nav.open .has-menu .menu {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding-left: 0.75rem;
  }
}

/* ---------- Hero (home only) ---------- */
.hero {
  background: #fff url("/assets/img/world-map.jpg") center/cover no-repeat;
  padding: 4rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  z-index: 0;
  pointer-events: none;
}
.hero-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}
.hero-lockup img.mark {
  height: 120px;
  width: auto;
  flex-shrink: 0;
}
.hero-text { flex: 1; min-width: 0; }
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.hero .thesis {
  color: var(--grey);
  font-size: 1.15rem;
  font-style: italic;
  margin: 0;
}
.hero .cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-lockup {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .hero-lockup img.mark { height: 96px; }
  .hero .cta-row { justify-content: center; }
}

/* ---------- Launcher cards ---------- */
.launcher {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.25rem;
}
.launcher h2 {
  color: var(--navy);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--blue);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20,41,76,0.07);
}
.card .num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.card p {
  margin: 0;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cards.appendices { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards.appendices .card .num { color: var(--violet); }

/* ---------- Closing bands ---------- */
.briefing-band {
  background: var(--navy-deep);
  color: #fff;
  padding: 3rem 1.25rem;
  text-align: center;
  margin-top: 3rem;
}
.briefing-band + .briefing-band { margin-top: 0; }
.briefing-band.platform { background: var(--navy); }
.briefing-band h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.briefing-band p {
  color: #B9C4D6;
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}

/* ---------- Section page ---------- */
.section-shell {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--blue);
}
.kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.section-shell h1 {
  color: var(--navy);
  font-size: 2rem;
  margin: 0 0 0.75rem;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.75rem;
}
.section-body p { margin: 0 0 1.2rem; }
.section-body h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}
.section-body h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.section-body img,
.section-shell img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
}
.section-shell figure {
  margin: 1.5rem 0;
  max-width: 100%;
}
.section-body figcaption,
.section-shell figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--grey);
  margin-top: 0.5rem;
}

/* Infographic page wants more breathing room than the 760px reading column */
.section-shell.wide { max-width: 1100px; }

.subhead {
  color: var(--grey);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0 0 1rem;
}
.dateline {
  color: var(--grey);
  margin-top: -0.5rem;
}
.small {
  font-size: 0.9rem;
  color: var(--grey);
}
.kicker-inline {
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin: 1.5rem 0 0.25rem;
}
.section-body ul {
  margin: 0 0 1.2rem 1.5rem;
  padding: 0;
}
.section-body li { margin-bottom: 0.5rem; }

/* ---------- Timeline table ---------- */
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.timeline-table th,
.timeline-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.timeline-table th {
  background: var(--panel);
  color: var(--navy);
  font-weight: 700;
}
.timeline-table p { margin: 0 0 0.4rem; }
.timeline-table p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .timeline-table thead { display: none; }
  .timeline-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
  }
  .timeline-table td {
    display: block;
    border-bottom: 0;
    padding: 0.4rem 0.5rem;
  }
}

.appendix-block {
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--grey);
}
.appendix-block h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.appendix-block .sources { font-style: italic; }

.pager {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pager a {
  flex: 1;
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
}
.pager a:hover { border-color: var(--blue); text-decoration: none; }
.pager .label { display: block; font-size: 0.8rem; color: var(--grey); margin-bottom: 0.25rem; }
.pager .title { display: block; font-weight: 600; }
.pager .next { text-align: right; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #B9C4D6;
  padding: 2.5rem 1.25rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.site-footer p { margin: 0.4rem 0; }
.site-footer .footer-nav {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
