:root {
  --bone: #f3efe4;
  --paper: #fbf8ef;
  --ink: #101820;
  --muted: #5b6670;
  --line: #bcc1b7;
  --lime: #b7ff3c;
  --blue: #2868f0;
  --violet: #9d4edd;
  --gold: #f2b934;
  --red: #e4513e;
  --green: #1f8e59;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --max: 1180px;
  --shadow: 10px 10px 0 rgba(16, 24, 32, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bone);
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(40, 104, 240, 0.09), transparent 24%),
    radial-gradient(circle at 92% 74%, rgba(157, 78, 221, 0.07), transparent 22%);
  background-size: 32px 32px, 32px 32px, auto, auto;
  font-family: var(--body);
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: repeating-radial-gradient(ellipse at 20% 30%, transparent 0 46px, var(--ink) 47px 48px, transparent 49px 76px);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(3.5rem, 7.6vw, 7.4rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.05rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  color: var(--ink);
  background: rgba(243, 239, 228, 0.97);
  border-bottom: 2px solid var(--ink);
}

.status-rail {
  min-height: 30px;
  padding: 0.3rem max(1rem, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-rail > span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-shell {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 33%, var(--lime) 34% 42%, transparent 43%),
    repeating-conic-gradient(from 8deg, var(--ink) 0 7deg, transparent 7deg 30deg);
}

.brand-mark i {
  width: 12px;
  height: 15px;
  display: block;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 88% 82%, 50% 100%, 12% 82%, 0 25%);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.35rem;
}

.primary-nav a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0.65rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
}

.menu-toggle > span:not(.sr-only) {
  width: 100%;
  height: 2px;
  background: currentColor;
}

.button {
  min-height: 46px;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(16, 24, 32, 0.18);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(16, 24, 32, 0.18);
}

.button--ink {
  color: var(--bone);
  background: var(--ink);
}

.button--lime {
  color: var(--ink);
  background: var(--lime);
}

.button--ghost {
  color: var(--bone);
  background: transparent;
  border-color: var(--bone);
  box-shadow: none;
}

.button--small {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  font-size: 0.66rem;
}

.badge {
  width: fit-content;
  padding: 0.23rem 0.45rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: #dbe8ff;
  border: 1px solid var(--blue);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.badge--live,
.badge--reported {
  background: var(--lime);
  border-color: var(--lime);
}

.badge--community {
  background: #efe2ff;
  border-color: var(--violet);
}

.badge--conflict {
  background: #ffe1dc;
  border-color: var(--red);
}

.badge--historical,
.badge--unknown {
  background: #e7e7e2;
  border-color: #8c928d;
}

.section-shell,
.home-hero,
.signal-strip,
.page-hero,
.breadcrumbs {
  width: min(calc(100% - 2rem), var(--max));
  margin-right: auto;
  margin-left: auto;
}

.section-shell {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.breadcrumbs {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: #15546a;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero {
  min-height: 660px;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  overflow: hidden;
  color: var(--bone);
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.3rem, 5vw, 4.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(183, 255, 60, 0.16) 0 3px, transparent 4px),
    linear-gradient(26deg, transparent 49%, rgba(40, 104, 240, 0.13) 50%, transparent 51%);
  background-size: 70px 70px, 150px 150px;
}

.home-hero__copy .eyebrow {
  color: var(--lime);
}

.home-hero__copy h1 {
  max-width: 8.5ch;
  color: var(--bone);
  font-size: clamp(4.4rem, 7.5vw, 7rem);
}

.home-hero__copy h1::first-line {
  color: var(--lime);
}

.home-hero__lede {
  max-width: 38rem;
  margin-bottom: 1.8rem;
  color: #dce2df;
  font-size: 1.06rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-facts {
  margin: 2.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(243, 239, 228, 0.25);
}

.hero-facts div {
  padding: 1rem 0.75rem 0 0;
}

.hero-facts dt {
  color: #9ca8a9;
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.home-hero__visual {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper);
}

.home-hero__visual > p {
  position: absolute;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 4;
  margin: 0;
  padding: 0.3rem 0.45rem;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 800;
}

.radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  isolation: isolate;
}

.radar::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 5;
  pointer-events: none;
  border: 1px solid rgba(16, 24, 32, 0.32);
  clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px));
}

.radar__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 24, 32, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, 0.12) 1px, transparent 1px),
    repeating-radial-gradient(ellipse at 50% 50%, transparent 0 44px, rgba(16, 24, 32, 0.12) 45px 46px, transparent 47px 69px);
  background-size: 42px 42px, 42px 42px, auto;
}

.radar__dots {
  position: absolute;
  inset: 5%;
  opacity: 0.82;
  background-image:
    radial-gradient(circle, var(--ink) 0 2px, transparent 2.8px),
    radial-gradient(circle, var(--ink) 0 3px, transparent 3.8px),
    radial-gradient(circle, var(--red) 0 2px, transparent 2.8px);
  background-position: 0 0, 15px 9px, 8px 21px;
  background-size: 25px 31px, 37px 29px, 43px 41px;
  -webkit-mask-image: radial-gradient(circle, transparent 0 19%, #000 20% 73%, transparent 74%);
  mask-image: radial-gradient(circle, transparent 0 19%, #000 20% 73%, transparent 74%);
}

.radar__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 3px dashed var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: radar-pulse 4s ease-in-out infinite;
}

.radar__ring--outer {
  width: 72%;
  height: 72%;
}

.radar__ring--mid {
  width: 48%;
  height: 48%;
  animation-delay: -1.4s;
}

.radar__ring--inner {
  width: 25%;
  height: 25%;
  border-color: var(--lime);
  animation-delay: -2.7s;
}

.radar__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, -50%);
}

.radar__core i {
  width: 20px;
  height: 26px;
  display: block;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 22%, 88% 78%, 50% 100%, 12% 78%, 0 22%);
}

.radar__route {
  position: absolute;
  right: 19%;
  bottom: 6%;
  z-index: 2;
  width: 38%;
  height: 46%;
  border-bottom: 7px dashed var(--lime);
  border-left: 7px dashed var(--lime);
  border-radius: 0 0 0 60%;
  transform: rotate(-8deg);
}

.radar__shard {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 50px;
  border: 2px solid var(--ink);
  clip-path: polygon(50% 0, 100% 52%, 50% 100%, 0 52%);
  transform: rotate(18deg);
}

.radar__shard::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(16, 24, 32, 0.7);
  clip-path: inherit;
}

.radar__shard--blue {
  top: 16%;
  right: 13%;
  background: var(--blue);
}

.radar__shard--violet {
  right: 8%;
  bottom: 22%;
  background: var(--violet);
  transform: rotate(-16deg);
}

.radar__shard--gold {
  top: 21%;
  left: 13%;
  background: var(--gold);
  transform: rotate(-24deg);
}

.radar__label {
  position: absolute;
  z-index: 4;
  padding: 0.3rem 0.45rem;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.radar__label--one {
  top: 9%;
  left: 7%;
}

.radar__label--two {
  right: 8%;
  bottom: 9%;
  color: var(--ink);
  background: var(--lime);
}

@keyframes radar-pulse {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.985); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-top: 0;
  box-shadow: 6px 6px 0 rgba(16, 24, 32, 0.12);
}

.signal-strip > div {
  min-height: 84px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.signal-strip > div:last-child {
  border-right: 0;
}

.signal-strip strong,
.signal-strip small {
  display: block;
}

.signal-strip strong {
  font-size: 0.8rem;
}

.signal-strip small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.pulse {
  width: 9px;
  height: 9px;
  margin-bottom: 0.35rem;
  display: block;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(183, 255, 60, 0.25);
}

.identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: start;
  gap: clamp(2rem, 8vw, 7rem);
}

.identity-grid > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

.warning-note,
.field-note {
  padding: 1rem 1.1rem;
  color: var(--ink) !important;
  background: #fff0b8;
  border-left: 5px solid var(--gold);
}

.text-link {
  font-size: 0.78rem;
  font-weight: 900;
}

.source-lanes {
  padding: 1.5rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.source-lanes h2 {
  font-size: 2.15rem;
}

.source-lanes > div {
  padding: 0.65rem 0;
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.69rem;
}

.section-heading {
  margin-bottom: 2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.section-heading > p {
  max-width: 29rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.route-card {
  min-height: 330px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(16, 24, 32, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.route-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 rgba(16, 24, 32, 0.15);
}

.route-card--2 {
  background: #e6edff;
}

.route-card--3 {
  background: #e9ffd0;
}

.route-card__number {
  font-family: var(--display);
  font-size: 2rem;
}

.route-card__label {
  width: fit-content;
  margin: 1.5rem 0 0.7rem;
  padding: 0.18rem 0.4rem;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-card strong {
  font-size: 1.05rem;
  line-height: 1.2;
}

.route-card > span:not(.route-card__number):not(.route-card__label) {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.route-card b {
  margin-top: auto;
  padding-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.code-preview {
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
  background: var(--blue);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
}

.code-preview > div:first-child {
  color: white;
}

.code-preview .eyebrow {
  color: var(--lime);
}

.code-preview p:not(.eyebrow) {
  color: #e6ecff;
}

.mini-code-list {
  display: grid;
  gap: 0.75rem;
}

.mini-code-list > div {
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}

code {
  font-family: var(--mono);
  font-weight: 900;
}

.first-run-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.map-card {
  min-height: 245px;
  padding: 1.2rem;
  background: var(--paper);
  border-top: 5px solid var(--lime);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.map-card:nth-child(2) { border-top-color: var(--blue); }
.map-card:nth-child(3) { border-top-color: var(--violet); }
.map-card:nth-child(4) { border-top-color: var(--gold); }

.map-card span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 900;
}

.map-card strong {
  margin: 2.4rem 0 0.8rem;
  display: block;
}

.map-card p {
  color: var(--muted);
  font-size: 0.76rem;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.faq-item {
  align-self: start;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  width: 100%;
  min-height: 58px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.faq-item button > span:last-child {
  color: var(--blue);
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.faq-item button[aria-expanded="true"] > span:last-child {
  transform: rotate(45deg);
}

.faq-item [data-faq-panel] {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-item [data-faq-panel] p {
  margin-bottom: 0;
}

.page-hero {
  position: relative;
  min-height: 430px;
  margin-top: 2rem;
  padding: clamp(2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 4rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 14px;
  background: linear-gradient(90deg, var(--lime) 0 33%, var(--blue) 33% 66%, var(--gold) 66%);
}

.page-hero--blue::before { background: var(--blue); }
.page-hero--violet::before { background: var(--violet); }
.page-hero--lime::before { background: var(--lime); }

.page-hero--compact {
  min-height: 390px;
  grid-template-columns: minmax(0, 1fr);
  padding-right: min(16vw, 12rem);
}

.page-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
}

.page-hero .lede {
  max-width: 51rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.freshness-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.page-hero__signal {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-left: 10px solid var(--lime);
  color: var(--bone);
}

.page-hero__signal span,
.page-hero__signal small {
  font-family: var(--mono);
  font-size: 0.58rem;
}

.page-hero__signal strong {
  margin: 0.35rem 0;
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
}

.codes-layout,
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 2.5rem;
}

.content-main,
.guide-layout > article {
  min-width: 0;
}

.conflict-banner {
  margin-bottom: 1.5rem;
  padding: 1.4rem;
  background: #ffe7e2;
  border: 2px solid var(--ink);
  border-left: 8px solid var(--red);
}

.conflict-banner h2 {
  margin: 0.8rem 0;
  font-size: 2.25rem;
}

.conflict-banner p {
  margin-bottom: 0;
  color: var(--muted);
}

.filter-bar {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-chip {
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--lime);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.code-card {
  min-width: 0;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(16, 24, 32, 0.1);
}

.code-card[hidden] {
  display: none;
}

.code-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.7rem;
}

.code-card__top code {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.code-card p {
  color: var(--muted);
  font-size: 0.76rem;
}

.code-card__meta {
  margin-top: auto;
  padding-top: 0.7rem;
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.code-card__actions {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.code-card__actions > span {
  color: var(--muted);
  font-size: 0.57rem;
}

.content-aside {
  display: grid;
  gap: 1rem;
}

.aside-card {
  padding: 1.25rem;
  display: grid;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(16, 24, 32, 0.11);
}

.aside-card h2 {
  font-size: 2rem;
}

.aside-card p,
.aside-card li,
.aside-card a {
  color: var(--muted);
  font-size: 0.75rem;
}

.aside-card a {
  padding: 0.5rem 0;
  font-weight: 900;
}

.aside-card ol {
  margin: 0;
  padding-left: 1.15rem;
}

.article-sections {
  margin-top: 4.5rem;
  border-top: 2px solid var(--ink);
}

.article-section {
  padding: 2.4rem 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.article-index {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
}

.article-section h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.article-section p,
.article-section li {
  color: var(--muted);
}

.check-list {
  padding: 0;
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.45rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.briefing-intro {
  padding: 1.5rem;
  background: #e6edff;
  border: 2px solid var(--ink);
}

.briefing-intro h2 {
  font-size: 2.6rem;
}

.briefing-steps {
  margin-top: 1rem;
  display: grid;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.briefing-step {
  min-height: 82px;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto 44px 1fr;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.briefing-step input {
  width: 22px;
  height: 22px;
  accent-color: var(--lime);
}

.briefing-step:has(input:checked) {
  background: #efffd7;
}

.step-number {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
}

.briefing-step strong,
.briefing-step small {
  display: block;
}

.briefing-step small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.checklist-progress {
  min-height: 62px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--bone);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 900;
}

.checklist-progress button {
  min-height: 40px;
  padding: 0.4rem 0.65rem;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 900;
  cursor: pointer;
}

.jungle-layout {
  display: grid;
  gap: 4rem;
}

.status-ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.status-card {
  padding: clamp(1.5rem, 4vw, 2.7rem);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.status-card--confirmed {
  background: #efffd8;
}

.status-card--unknown {
  background: #ecece7;
}

.status-card h2 {
  margin-top: 1rem;
  font-size: 2.4rem;
}

.status-card li {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.jungle-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.timeline-line {
  position: absolute;
  top: 32px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--ink);
}

.jungle-timeline > div {
  position: relative;
  padding-top: 3.6rem;
}

.jungle-timeline > div::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: var(--lime);
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.jungle-timeline time {
  color: var(--violet);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 900;
}

.jungle-timeline strong {
  margin: 0.35rem 0;
  display: block;
}

.jungle-timeline p {
  color: var(--muted);
  font-size: 0.78rem;
}

.next-route {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--gold);
  border: 2px solid var(--ink);
}

.next-route h2 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: 2.2rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.method-grid > div {
  padding: 1.3rem;
  background: var(--paper);
  border-top: 6px solid var(--lime);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.method-grid > div:nth-child(2) { border-top-color: var(--violet); }
.method-grid > div:nth-child(3) { border-top-color: var(--red); }

.method-grid span {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 900;
}

.method-grid h2 {
  margin-top: 2rem;
  font-size: 2rem;
}

.method-grid p {
  color: var(--muted);
  font-size: 0.76rem;
}

.source-list {
  margin-top: 3rem;
  display: grid;
  gap: 0.8rem;
}

.source-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.source-card__number {
  font-family: var(--display);
  font-size: 1.9rem;
}

.source-card h2 {
  margin: 0.65rem 0 0.35rem;
  font-family: var(--body);
  font-size: 1.05rem;
  text-transform: none;
}

.source-card p {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.source-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.narrow-copy {
  max-width: 820px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.narrow-copy h2:not(:first-child) {
  margin-top: 3rem;
}

.narrow-copy p,
.narrow-copy li {
  color: var(--muted);
}

.cookie-settings-button {
  width: fit-content;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  color: var(--lime);
}

.consent-panel {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: var(--bone);
}

.consent-panel[hidden] {
  display: none;
}

.consent-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  width: min(100%, 980px);
  margin-inline: auto;
  padding: 1.4rem 1.6rem;
  border: 2px solid var(--lime);
  background: rgba(16, 24, 32, 0.98);
  box-shadow: 8px 8px 0 rgba(40, 104, 240, 0.4);
}

.consent-panel__copy p {
  margin: 0;
}

.consent-panel__eyebrow {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.consent-panel__title {
  margin-block: 0.35rem 0.55rem !important;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.consent-panel__status {
  margin-top: 0.5rem !important;
  color: #bfc8c6;
  font-size: 0.8rem;
}

.consent-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.consent-button {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--lime);
  border-radius: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.consent-button--primary {
  color: var(--ink);
  background: var(--lime);
}

.consent-button--secondary {
  color: var(--bone);
  background: transparent;
}

.consent-panel__actions a {
  color: var(--bone);
  font-size: 0.78rem;
}

.not-found {
  min-height: 100vh;
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(300px, 530px) minmax(280px, 560px);
  grid-template-rows: auto auto auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 5rem;
  color: var(--bone);
  background: var(--ink);
}

.not-found > div {
  grid-row: 1 / 5;
}

.not-found .eyebrow {
  align-self: end;
  color: var(--lime);
}

.not-found h1 {
  max-width: 8ch;
  font-size: clamp(4rem, 8vw, 7rem);
}

.not-found > p:not(.eyebrow) {
  color: #c8d0ce;
}

.site-footer {
  margin-top: 7rem;
  padding: 4rem max(1rem, calc((100vw - var(--max)) / 2)) 1.5rem;
  color: #d7dfdd;
  background: var(--ink);
  border-top: 6px solid var(--lime);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.8fr);
  gap: 3rem;
}

.footer-grid > div:not(.footer-intro) {
  display: flex;
  flex-direction: column;
}

.footer-wordmark {
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
}

.footer-intro p:last-child {
  max-width: 26rem;
  color: #aab4b3;
  font-size: 0.72rem;
}

.footer-grid h2 {
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.footer-grid a {
  margin-bottom: 0.4rem;
  color: #b9c3c1;
  font-size: 0.68rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: #74807e;
  border-top: 1px solid #34403e;
  font-family: var(--mono);
  font-size: 0.55rem;
}

@media (max-width: 1040px) {
  .header-shell {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .primary-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
  }

  .header-cta {
    justify-self: end;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  }

  .home-hero__copy {
    padding: 2.4rem;
  }

  .home-hero__copy h1 {
    font-size: clamp(4rem, 7.4vw, 5.8rem);
  }

  .first-run-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 820px) {
  .consent-panel__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .consent-panel__actions {
    justify-content: flex-start;
  }

  .status-rail > span:last-child {
    display: none;
  }

  .header-shell {
    min-height: 74px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    grid-column: 1 / -1;
    max-height: 0;
    padding: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 0;
    transition: max-height 180ms ease;
  }

  .primary-nav.is-open {
    max-height: 440px;
    padding-bottom: 1rem;
    border-top: 1px solid var(--line);
  }

  .primary-nav a {
    min-height: 46px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    min-height: 570px;
  }

  .home-hero__visual {
    aspect-ratio: 1 / 1;
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-strip > div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .identity-grid,
  .code-preview,
  .codes-layout,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .route-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 255px;
  }

  .code-preview {
    gap: 2rem;
  }

  .page-hero {
    min-height: 390px;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-hero--compact {
    padding-right: clamp(2rem, 7vw, 4rem);
  }

  .status-ledger,
  .jungle-timeline {
    grid-template-columns: 1fr;
  }

  .timeline-line {
    top: 0;
    bottom: 0;
    left: 10px;
    width: 3px;
    height: auto;
  }

  .jungle-timeline > div {
    padding: 0 0 1.8rem 3rem;
  }

  .jungle-timeline > div::before {
    top: 0;
  }

  .source-card {
    grid-template-columns: 45px minmax(0, 1fr);
  }

  .source-card > .text-link {
    grid-column: 2;
  }

  .not-found {
    grid-template-columns: minmax(0, 560px);
    grid-template-rows: auto;
    gap: 1rem;
  }

  .not-found > div {
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .consent-panel {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .consent-panel__inner {
    padding: 1rem;
  }

  .consent-panel__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-panel__actions a {
    grid-column: 1 / -1;
  }

  .status-rail {
    min-height: 26px;
    justify-content: center;
    font-size: 0.55rem;
  }

  .header-shell,
  .section-shell,
  .home-hero,
  .signal-strip,
  .page-hero,
  .breadcrumbs {
    width: min(calc(100% - 1rem), var(--max));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 1.2rem;
  }

  .brand small {
    font-size: 0.45rem;
  }

  .home-hero,
  .page-hero {
    border-width: 2px;
    box-shadow: 6px 6px 0 rgba(16, 24, 32, 0.13);
  }

  .home-hero__copy {
    min-height: 560px;
    padding: 1.4rem;
  }

  .home-hero__copy h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 15.5vw, 4.1rem);
  }

  .home-hero__lede {
    font-size: 0.93rem;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(243, 239, 228, 0.2);
  }

  .home-hero__visual > p {
    right: 0.4rem;
    bottom: 0.4rem;
    font-size: 0.45rem;
  }

  .radar__label {
    font-size: 0.44rem;
  }

  .signal-strip > div {
    min-height: 90px;
    padding: 0.75rem;
  }

  .source-lanes > div {
    grid-template-columns: 95px 1fr;
  }

  .section-shell {
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .route-grid,
  .first-run-grid,
  .faq-list,
  .code-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .code-preview {
    padding: 1.3rem;
  }

  .mini-code-list > div {
    align-items: start;
    flex-direction: column;
  }

  .page-hero {
    min-height: 360px;
    padding: 1.35rem;
  }

  .page-hero h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .page-hero__signal {
    display: none;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-chip {
    width: 100%;
  }

  .code-card__top,
  .code-card__actions,
  .next-route,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .article-section {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.6rem;
  }

  .article-section h2 {
    font-size: 2rem;
  }

  .briefing-step {
    grid-template-columns: auto 1fr;
  }

  .briefing-step .step-number {
    display: none;
  }

  .checklist-progress {
    align-items: stretch;
    flex-direction: column;
  }

  .status-card {
    padding: 1.25rem;
  }

  .source-card {
    grid-template-columns: 1fr;
  }

  .source-card > .text-link {
    grid-column: auto;
  }

  .not-found {
    padding: 1rem;
  }

  .not-found h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .site-footer {
    padding-top: 3rem;
  }

  .footer-intro {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
