@font-face {
  font-family: "CDD Serif";
  src: local("Georgia");
  font-display: swap;
}

:root {
  --navy: #071a3d;
  --ink: #10284b;
  --muted: #4e6480;
  --blue: #2457e6;
  --teal: #007b75;
  --teal-dark: #00635e;
  --teal-light: #65ddd6;
  --coral: #f25f55;
  --yellow: #ffc928;
  --sky: #eef5fa;
  --mist: #f5f8fc;
  --line: #c8d7e6;
  --white: #fff;
  --text-scale: 1;
  --serif: "CDD Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, "Atkinson Hyperlegible", Arial, Helvetica, sans-serif;
  --page: min(1480px, calc(100% - 48px));
  --content: min(1180px, calc(100% - 48px));
  --shadow: 0 18px 54px rgba(7, 26, 61, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--text-scale));
  background: var(--white);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a {
  color: var(--blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(-180%);
  background: var(--yellow);
  color: var(--navy);
  font-weight: 900;
}

.skip-link:focus { transform: translateY(0); }

.utility-bar {
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
}

.utility-inner {
  width: var(--page);
  min-height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.78rem;
}

.utility-inner p { margin: 0; }

.text-tools { display: flex; align-items: center; gap: 4px; }

.text-tools button {
  min-width: 38px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  font: 800 0.78rem/1 var(--sans);
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: var(--page);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 310px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.brand img { width: min(332px, 28vw); height: auto; display: block; }

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  min-height: 46px;
  padding: 12px 11px 10px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--navy);
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font: 900 0.82rem/1 var(--sans);
}

main { min-height: 65vh; }

.hero {
  width: var(--page);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.35fr);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(46px, 6vw, 94px) clamp(28px, 5vw, 78px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-copy::after,
.contour-field::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 330px;
  height: 260px;
  opacity: 0.22;
  background: repeating-radial-gradient(ellipse at 80% 100%, transparent 0 14px, var(--teal) 15px 16px);
  pointer-events: none;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font: 800 clamp(4rem, 7.2vw, 7.8rem)/0.78 var(--serif);
  letter-spacing: -0.065em;
}

.hero-statement {
  max-width: 650px;
  margin: 42px 0 0;
  color: var(--navy);
  font: 700 clamp(1.45rem, 2vw, 2rem)/1.2 var(--serif);
}

.hero-description {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.62;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button,
.content-body a.btn {
  min-height: 50px;
  padding: 13px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  background: var(--blue);
  color: var(--white);
  font: 850 0.96rem/1.2 var(--sans);
  text-decoration: none;
}

.button.secondary,
.content-body a.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.button.teal,
.content-body a.btn-teal { background: var(--teal-dark); border-color: var(--teal-dark); }

.hero-media { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--navy); }
.hero-media img { width: 100%; height: 100%; min-height: 620px; display: block; object-fit: cover; object-position: center; }
.hero-media figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  max-width: 260px;
  padding: 11px 14px;
  background: rgba(7, 26, 61, 0.9);
  color: var(--white);
  font-size: 0.76rem;
  line-height: 1.45;
}

.section {
  position: relative;
  padding: clamp(52px, 5.5vw, 82px) 0;
  border-bottom: 1px solid var(--line);
}
.hero + .section { padding-top: 48px; }

.section-inner { width: var(--content); margin: 0 auto; }
.section-head { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1.25fr); gap: 48px 90px; align-items: end; }
.section-head h2,
.editorial-title {
  margin: 0;
  color: var(--navy);
  font: 800 clamp(2.8rem, 5vw, 5.6rem)/0.94 var(--serif);
  letter-spacing: -0.045em;
}
.section-head p { margin: 0; max-width: 760px; font-size: 1.12rem; }

.formula {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(9, auto);
  align-items: center;
  gap: 18px;
}

.formula-item { min-width: 0; }
.formula-item strong { display: block; color: var(--navy); font: 800 1.16rem/1.1 var(--serif); }
.formula-item span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.formula-sign { color: var(--teal-dark); font-size: 2.25rem; font-weight: 500; }
.formula .result { padding-left: 22px; border-left: 5px solid var(--coral); }

.path-list,
.scenario-list {
  margin-top: 52px;
  border-top: 5px solid var(--navy);
}

.path-row {
  display: grid;
  grid-template-columns: 82px minmax(220px, 0.48fr) minmax(300px, 1fr) 40px;
  gap: 22px;
  align-items: center;
  padding: 25px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}

.path-row:hover { background: var(--mist); }
.path-row .number { font: 800 2.3rem/1 var(--serif); color: var(--teal-dark); }
.path-row h3 { margin: 0; font: 800 1.65rem/1.1 var(--serif); }
.path-row p { margin: 0; color: var(--muted); }
.path-row .arrow { justify-self: end; font-size: 1.8rem; }

.dark-band { background: var(--navy); color: var(--white); }
.dark-band .section-head h2, .dark-band h2, .dark-band h3 { color: var(--white); }
.dark-band p { color: #d8e7f7; }
.dark-band .button.teal { background: var(--teal-light); border-color: var(--teal-light); color: var(--navy); }

.safe-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1.2fr);
  gap: 58px 90px;
  align-items: center;
}

.safe-brand img { display: block; width: min(100%, 500px); }
.safe-paths { border-top: 1px solid #5876a3; }
.safe-paths a {
  min-height: 86px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 26px;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #5876a3;
  color: var(--white);
  text-decoration: none;
}
.safe-paths strong { font: 750 1.2rem/1.2 var(--serif); }
.safe-paths span:first-child { color: var(--yellow); font-size: 1.8rem; font-weight: 900; }

.feature-split {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px 90px;
  align-items: center;
}

.feature-split figure { margin: 0; }
.feature-split img { width: 100%; display: block; border-radius: 6px; box-shadow: var(--shadow); }

.source-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.source-rail a {
  min-height: 120px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-decoration: none;
}
.source-rail strong { display: block; font: 800 1.05rem/1.2 var(--serif); }
.source-rail span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.82rem; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 5.5vw, 82px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 520px;
  height: 430px;
  opacity: 0.16;
  background: repeating-radial-gradient(ellipse at center, transparent 0 18px, var(--teal) 19px 20px);
}
.page-hero-inner { position: relative; z-index: 1; width: var(--content); margin: 0 auto; }
.breadcrumb { margin: 0 0 28px; color: var(--muted); font-size: 0.84rem; }
.breadcrumb a { color: inherit; }
.page-hero h1 { max-width: 1000px; margin: 0; color: var(--navy); font: 800 clamp(3.5rem, 6.3vw, 6.4rem)/0.9 var(--serif); letter-spacing: -0.055em; }
.page-hero p { max-width: 860px; margin: 28px 0 0; font-size: 1.2rem; }
.safe-hero-logo { width: min(560px, 100%); display: block; margin: 0 0 26px; }

.content-body > .content-band,
.content-body > section {
  padding: clamp(44px, 5vw, 72px) max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
}
.content-body .content-band:first-child,
.content-body > section:first-child { padding-top: clamp(48px, 5.2vw, 76px); }
.content-body .content-band.split-hero:first-child h1 { font-size: clamp(3.2rem, 6vw, 6.4rem); }
.content-body h1,
.content-body h2,
.content-body h3 { color: var(--navy); font-family: var(--serif) !important; letter-spacing: -0.025em; }
.content-body h1 { margin: 0; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.92; }
.content-body h2 { margin: 0; font-size: clamp(2.25rem, 4.5vw, 4.5rem); line-height: 0.98; }
.content-body h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.12; }
.content-body p,
.content-body li { font-size: 1rem; line-height: 1.75; }
.content-body p { max-width: 950px; }
.content-body .layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 30px 42px;
  margin-top: 34px;
}
.content-body > .layout-grid:first-child:has(> [aria-hidden="true"]) { grid-template-columns: 1fr; }
.content-body > .layout-grid:first-child > [aria-hidden="true"] { display: none; }
.content-body .layout-flex { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.content-body .layout-flex.flow-column { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 0; }
.content-body .layout-flex.align-center:not(.flow-column) { align-items: center; }
.content-body .layout-flex.justify-center:not(.flow-column) { justify-content: center; }
.content-body .measure { max-width: 1040px; margin-right: auto; margin-left: auto; }
.content-body .feature-block,
.content-body article {
  padding: 24px 22px 24px 0;
  border-top: 5px solid var(--teal);
  background: transparent;
}
.content-body .feature-block:nth-child(4n + 2) { border-color: var(--blue); }
.content-body .feature-block:nth-child(4n + 3) { border-color: var(--yellow); }
.content-body .feature-block:nth-child(4n + 4) { border-color: var(--coral); }
.content-body .content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-top-width: 5px;
  background: var(--white);
}
.content-body .tone-soft { background: var(--sky); }
.content-body .tone-lilac { background: #f5f1ff; }
.content-body .tone-yellow { background: #fff7c7; }
.content-body .tone-dark { background: var(--navy); color: var(--white); }
.content-body .tone-dark h1,
.content-body .tone-dark h2,
.content-body .tone-dark h3,
.content-body .tone-dark a { color: var(--white); }
.content-body .tone-dark p,
.content-body .tone-dark li,
.content-body .tone-dark figcaption { color: #d8e7f7; }
.content-body .tone-yellow,
.content-body .tone-yellow p,
.content-body .tone-yellow li,
.content-body .tone-yellow strong,
.content-body .tone-yellow a { color: var(--navy); }
.content-body .tone-dark .content-card,
.content-body .tone-dark .callout,
.content-body .tone-dark .note-panel { background: var(--white); color: var(--ink); }
.content-body .tone-dark .content-card h1,
.content-body .tone-dark .content-card h2,
.content-body .tone-dark .content-card h3,
.content-body .tone-dark .content-card a,
.content-body .tone-dark .callout h1,
.content-body .tone-dark .callout h2,
.content-body .tone-dark .callout h3,
.content-body .tone-dark .callout a,
.content-body .tone-dark .note-panel h1,
.content-body .tone-dark .note-panel h2,
.content-body .tone-dark .note-panel h3,
.content-body .tone-dark .note-panel a { color: var(--navy); }
.content-body .tone-dark .content-card p,
.content-body .tone-dark .content-card li,
.content-body .tone-dark .callout p,
.content-body .tone-dark .callout li,
.content-body .tone-dark .note-panel p,
.content-body .tone-dark .note-panel li { color: var(--ink); }
.content-body .tone-dark a.btn-outline { background: var(--white); border-color: var(--white); color: var(--navy); }
.content-body .callout,
.content-body .note-panel,
.content-body blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-left: 7px solid var(--teal);
  background: var(--sky);
}
.content-body blockquote { color: var(--navy); font: 750 clamp(1.5rem, 2.5vw, 2.4rem)/1.3 var(--serif); }
.content-body figure { margin: 26px 0; }
.content-body figure img { width: 100%; max-height: 680px; display: block; object-fit: cover; border-radius: 6px; }
.content-body figcaption { margin-top: 10px; color: var(--muted); font-size: 0.78rem; }
.content-body .section-number { color: var(--teal-dark); font: 800 3rem/1 var(--serif); }
.content-body .tone-dark .section-number { color: var(--teal-light); }
.content-body label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 0.9rem; font-weight: 850; }
.content-body input,
.content-body textarea,
.content-body select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--navy);
  border-radius: 3px;
  background: var(--white);
  color: var(--navy);
  font: 500 1rem/1.45 var(--sans);
}
.content-body textarea { min-height: 120px; resize: vertical; }

.print-bar {
  position: sticky;
  z-index: 20;
  bottom: 18px;
  width: min(720px, calc(100% - 32px));
  margin: 34px auto;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px solid var(--navy);
  background: var(--white);
  box-shadow: var(--shadow);
}
.print-bar p { margin: 0; font-size: 0.85rem; }
.print-bar button { min-height: 48px; padding: 12px 18px; border: 0; background: var(--yellow); color: var(--navy); font: 900 0.9rem/1 var(--sans); }

.map-shell { width: var(--page); margin: 0 auto; padding: 30px 0 90px; }
.map-intro { width: var(--content); margin: 30px auto 36px; display: grid; grid-template-columns: minmax(0, 0.65fr) minmax(320px, 1fr); gap: 38px 80px; align-items: end; }
.map-intro h1 { margin: 0; color: var(--navy); font: 800 clamp(3.2rem, 6vw, 6.2rem)/0.9 var(--serif); letter-spacing: -0.05em; }
.map-intro p { margin: 0; font-size: 1.1rem; }
.map-frame { width: var(--page); height: min(1040px, calc(100vh - 80px)); min-height: 720px; margin: 0 auto; border: 2px solid var(--navy); background: var(--sky); }
.map-frame iframe { width: 100%; height: 100%; display: block; border: 0; }

.emergency-callout {
  padding: 24px 0;
  background: var(--coral);
  color: var(--navy);
}
.emergency-callout .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.emergency-callout strong { font: 800 clamp(1.4rem, 2.5vw, 2.2rem)/1.1 var(--serif); }
.emergency-callout a { min-height: 52px; padding: 13px 20px; display: inline-flex; align-items: center; background: var(--navy); color: var(--white); font-weight: 900; text-decoration: none; }

.site-footer { padding: 52px 0 26px; border-top: 7px solid var(--teal); background: var(--navy); color: var(--white); }
.footer-grid { width: var(--content); margin: 0 auto; display: grid; grid-template-columns: 1.35fr repeat(3, minmax(170px, 0.65fr)); gap: 40px 60px; }
.footer-grid h2 { margin: 0; color: var(--white); font: 800 2rem/1 var(--serif); }
.footer-grid h3 { margin: 0; color: var(--white); font-size: 0.88rem; }
.footer-grid p { color: #d8e7f7; }
.footer-grid ul { margin: 16px 0 0; padding: 0; list-style: none; }
.footer-grid li + li { margin-top: 9px; }
.footer-grid a { color: #d8e7f7; }
.footer-bottom { width: var(--content); margin: 40px auto 0; padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid #486383; color: #bdd0e5; font-size: 0.76rem; }

.high-contrast { --navy: #000; --ink: #000; --muted: #222; --blue: #0037cc; --teal: #006f69; --line: #000; --sky: #fff; --mist: #fff; }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    inset: 123px 0 auto;
    max-height: calc(100vh - 123px);
    overflow: auto;
    transform: translateY(-140%);
    visibility: hidden;
    background: var(--white);
    border-bottom: 3px solid var(--navy);
    transition: transform 180ms ease, visibility 180ms;
  }
  .site-nav[data-open="true"] { transform: translateY(0); visibility: visible; }
  .site-nav ul { width: var(--page); margin: 0 auto; padding: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a { min-height: 52px; border: 1px solid var(--line); }
  body.menu-open { overflow: hidden; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 520px; }
  .hero-media img { min-height: 520px; }
  .formula { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .formula-sign:nth-of-type(n) { text-align: center; }
  .safe-grid { grid-template-columns: 1fr; }
  .source-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 24px); --content: calc(100% - 32px); }
  .utility-inner { align-items: flex-start; padding: 8px 0; }
  .utility-inner > p { display: none; }
  .header-inner { min-height: 74px; gap: 12px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: min(246px, 66vw); }
  .site-nav { inset: 115px 0 auto; max-height: calc(100vh - 115px); }
  .site-nav ul { grid-template-columns: 1fr; }
  .hero { width: 100%; min-height: 0; border: 0; }
  .hero-copy { padding: 52px 24px 58px; }
  .hero h1 { font-size: clamp(4rem, 19vw, 6.4rem); }
  .hero-media, .hero-media img { min-height: 420px; }
  .section-head, .feature-split, .map-intro { grid-template-columns: 1fr; gap: 24px; }
  .section-head h2, .editorial-title { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .formula { grid-template-columns: 1fr; gap: 10px; }
  .formula-sign { text-align: left; line-height: 0.8; }
  .formula .result { padding: 18px 0 0; border-top: 5px solid var(--coral); border-left: 0; }
  .path-row { grid-template-columns: 54px minmax(0, 1fr) 28px; gap: 14px; }
  .path-row p { grid-column: 2 / -1; }
  .source-rail { grid-template-columns: 1fr; }
  .content-body > .content-band, .content-body > section { padding-right: 20px; padding-left: 20px; }
  .content-body h1, .page-hero h1 { font-size: clamp(3.1rem, 16vw, 5.2rem); }
  .content-body .layout-grid { grid-template-columns: 1fr; }
  .print-bar { position: static; flex-direction: column; align-items: stretch; }
  .map-frame { width: 100%; height: 1050px; border-right: 0; border-left: 0; }
  .emergency-callout .section-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .utility-bar, .site-header, .site-footer, .print-bar, .actions, .emergency-callout { display: none !important; }
  :root { --page: 100%; --content: 100%; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .content-body > .content-band, .content-body > section { padding: 18px 0; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  input, textarea { border: 1px solid #000 !important; }
}
