:root {
  color-scheme: light;
  --ink: #13212b;
  --muted: #53636d;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --navy: #0d2838;
  --teal: #0f6b6d;
  --teal-dark: #084d50;
  --amber: #d99416;
  --line: #d7dedc;
  --soft-teal: #e7f1ef;
  --soft-amber: #fff3d6;
  --shadow: 0 18px 50px rgba(15, 40, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #8b4e00;
}

a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  background: var(--surface);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: 0.35rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  color: #f6fbfc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand:hover,
.brand:focus-visible {
  color: #bfe6df;
}

.section-label {
  color: #b9d4d2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  background: var(--navy);
  color: #f7fbfc;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: -250px;
  border-radius: 50%;
  border: 80px solid rgba(15, 107, 109, 0.3);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 5.5rem 4.75rem;
}

.eyebrow,
.rail-kicker,
.section-number {
  margin: 0 0 0.7rem;
  color: #74d2c7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.35rem);
  letter-spacing: -0.035em;
}

.dek {
  max-width: 780px;
  margin: 1.6rem 0 0;
  color: #d6e7e8;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.52;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
  margin-top: 2rem;
  color: #abc6ca;
  font-size: 0.89rem;
}

.meta span:not(:last-child)::after {
  content: "•";
  margin-left: 1.2rem;
  color: #4a7d83;
}

.verdict {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.7rem 1rem;
  max-width: 830px;
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(247, 192, 78, 0.45);
  border-radius: 0.7rem;
  background: rgba(217, 148, 22, 0.12);
}

.verdict-label {
  color: #ffd176;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.verdict strong {
  color: #ffffff;
  font-size: 1.02rem;
  text-transform: uppercase;
}

.verdict span:last-child {
  color: #dce9e9;
}

.article-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: 5rem 6rem;
}

.rail {
  align-self: start;
  position: sticky;
  top: 1.5rem;
}

.rail-card {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rail-kicker {
  color: var(--teal);
}

.rail-number {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.rail-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.contents {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.7rem;
  padding-left: 0.2rem;
}

.contents p {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contents a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--teal-dark);
  text-decoration: underline;
}

.prose {
  min-width: 0;
}

.prose section {
  scroll-margin-top: 2rem;
}

.prose section + section {
  margin-top: 5rem;
}

.prose p {
  max-width: 74ch;
}

.standfirst {
  margin-top: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.42;
}

.section-heading {
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: var(--teal);
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0.45rem 0 0.8rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.gap-list {
  display: grid;
  gap: 1.35rem;
}

.gap-card {
  margin: 0;
  padding: 1.7rem 1.8rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 0.55rem;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(15, 40, 54, 0.045);
}

.gap-card p:last-child {
  margin-bottom: 0;
}

.gap-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gap-topline strong {
  color: #7a4600;
}

sup a {
  font-weight: 800;
  text-decoration: none;
}

.boundary-list,
.correction-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.boundary-list li,
.correction-list li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--line);
}

.boundary-list li::before,
.correction-list li::before {
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.9rem;
  text-align: center;
}

.boundary-list li::before {
  content: "✓";
}

.correction-list li {
  counter-increment: item;
}

.correction-list li::before {
  content: counter(item);
}

.phase-gate {
  padding: 2rem 2.2rem;
  border: 1px solid #edc36e;
  border-radius: 0.75rem;
  background: var(--soft-amber);
}

.phase-gate .section-number {
  color: #8a5500;
}

.phase-gate p:last-child {
  margin-bottom: 0;
}

.source-notes {
  margin-top: 2rem;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.source-notes li {
  margin-bottom: 0.8rem;
  padding-left: 0.35rem;
}

.source-notes li:target {
  background: var(--soft-amber);
}

.article-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--navy);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  background: #091e2a;
  color: #c7d8da;
}

.footer-inner {
  min-height: 110px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:first-child {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 860px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3rem;
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) 1fr;
    gap: 1.4rem;
    align-items: start;
  }

  .contents {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contents p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 2rem, 1180px);
  }

  .header-inner {
    min-height: 58px;
  }

  .section-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-inner {
    padding-block: 3.5rem 3rem;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.45rem);
  }

  .meta {
    display: grid;
  }

  .meta span::after {
    display: none;
  }

  .verdict {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .article-grid {
    padding-bottom: 4rem;
  }

  .rail {
    grid-template-columns: 1fr;
  }

  .contents {
    grid-template-columns: 1fr;
    padding: 0 0.2rem;
  }

  .gap-card,
  .phase-gate {
    padding: 1.3rem 1.2rem;
  }

  .gap-topline {
    display: grid;
    gap: 0.15rem;
  }

  .prose section + section {
    margin-top: 3.8rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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