.corridor-wrap {
  width: min(1120px, calc(100vw - 48px));
  margin-inline: auto;
}

.corridor-reading {
  max-width: 980px;
}

.corridor-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 9vw, 118px) 0 clamp(40px, 4vw, 54px);
  background:
    radial-gradient(circle at 82% 16%, rgba(168, 202, 208, 0.17), transparent 28%),
    linear-gradient(135deg, #061f1b 0%, #0b2f29 58%, #123f36 100%);
  color: var(--white);
}

.corridor-hero::after {
  position: absolute;
  right: -18vw;
  bottom: -26vw;
  width: 62vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(255, 255, 255, 0.025), 0 0 0 16vw rgba(255, 255, 255, 0.016);
  content: "";
}

.corridor-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: end;
}

.corridor-back {
  display: inline-flex;
  margin-bottom: 34px;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.corridor-back::before {
  content: "←";
}

.corridor-back:hover {
  color: var(--white);
}

.corridor-hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7vw, 6.9rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.corridor-hero-lead {
  max-width: 750px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.08rem, 1.55vw, 1.34rem);
  line-height: 1.6;
}

.corridor-summary {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 25, 21, 0.6);
  backdrop-filter: blur(14px);
}

.corridor-summary-label {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.corridor-summary dl {
  margin: 0;
}

.corridor-summary dl div {
  display: grid;
  padding: 13px 0;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.corridor-summary dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
}

.corridor-summary dd {
  margin: 0;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.4;
}

.corridor-jumps {
  position: sticky;
  z-index: 40;
  top: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 237, 0.96);
  backdrop-filter: blur(12px);
}

.corridor-jumps .corridor-wrap {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.corridor-jumps .corridor-wrap::-webkit-scrollbar {
  display: none;
}

.corridor-jumps a {
  flex: 0 0 auto;
  padding: 17px 18px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.corridor-jumps a:first-child {
  padding-left: 0;
}

.corridor-jumps a:hover {
  border-bottom-color: var(--ember-dark);
  color: var(--pine-950);
}

.corridor-section {
  padding: clamp(40px, 4vw, 54px) 0;
  scroll-margin-top: calc(var(--header-height) + 66px);
}

.corridor-section-paper {
  background: var(--paper);
}

.corridor-section-white {
  background: var(--white);
}

.corridor-section-dark {
  background: var(--pine-950);
  color: var(--white);
}

.corridor-section h2 {
  max-width: 850px;
  margin: 0;
  color: var(--pine-950);
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.corridor-section-dark h2,
.corridor-section-downloads h2 {
  color: var(--white);
}

.corridor-lead {
  max-width: 820px;
  margin: 28px 0 0;
  color: #3e5952;
  font-size: clamp(1.05rem, 1.45vw, 1.23rem);
  line-height: 1.7;
}

.corridor-lead.on-dark {
  color: rgba(255, 255, 255, 0.7);
}

.method-steps {
  display: grid;
  margin: clamp(48px, 7vw, 78px) 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-steps li {
  display: grid;
  min-height: 250px;
  padding: 30px 34px 34px 0;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.method-steps li:nth-child(even) {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.method-steps li:last-child {
  grid-column: 1 / -1;
  min-height: 0;
}

.method-number {
  color: var(--ember-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.method-steps h3,
.meaning-grid h3 {
  margin: -4px 0 12px;
  color: var(--pine-950);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
}

.method-steps p,
.meaning-grid p {
  margin: 0;
  color: #3e5952;
  line-height: 1.72;
}

.meaning-grid {
  display: grid;
  margin: 48px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.meaning-grid article {
  padding: clamp(25px, 4vw, 38px);
  background: var(--paper);
}

.finding-callout {
  display: grid;
  margin: 42px 0 0;
  padding: clamp(28px, 5vw, 48px);
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: start;
  border-top: 4px solid var(--ember-dark);
  background: var(--pine-900);
  color: var(--white);
}

.finding-callout p {
  margin: 0;
}

.finding-label {
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.finding-callout p:last-child {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1.35;
}

.map-feature-grid,
.map-support-grid {
  display: grid;
  margin-top: 50px;
  gap: 18px;
}

.map-feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.map-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-map {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--white);
  color: var(--pine-950);
}

.route-map img {
  width: 100%;
  height: auto;
  background: white;
}

.route-map figcaption {
  padding: 20px 22px 23px;
}

.route-map figcaption span,
.route-map figcaption strong {
  display: block;
}

.route-map figcaption span {
  color: var(--ember-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-map figcaption strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
}

.route-map figcaption p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.map-subheading {
  margin: clamp(56px, 8vw, 88px) 0 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
}

.map-note {
  max-width: 900px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.65;
}

.corridor-technical {
  max-width: 1020px;
}

.corridor-technical details {
  border-top: 1px solid var(--line);
}

.corridor-technical details:first-of-type {
  margin-top: 50px;
}

.corridor-technical details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.corridor-technical summary {
  position: relative;
  display: grid;
  padding: 24px 54px 24px 0;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: baseline;
  color: var(--pine-950);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.corridor-technical summary::-webkit-details-marker {
  display: none;
}

.corridor-technical summary::after {
  position: absolute;
  top: 24px;
  right: 4px;
  color: var(--pine-700);
  font-family: var(--sans);
  font-size: 1.45rem;
  content: "+";
}

.corridor-technical details[open] summary::after {
  content: "−";
}

.corridor-technical summary span {
  color: var(--ember-dark);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.technical-body {
  max-width: 900px;
  padding: 4px 0 42px 60px;
}

.technical-body p,
.technical-body li,
.technical-body dd {
  color: #3e5952;
  line-height: 1.72;
}

.technical-body li + li {
  margin-top: 9px;
}

.technical-body a {
  color: var(--ember-dark);
  font-weight: 800;
}

.technical-body code {
  overflow-wrap: anywhere;
  color: var(--pine-900);
  font-size: 0.9em;
}

.formula {
  margin: 26px 0;
  padding: 24px;
  overflow-x: auto;
  border-left: 4px solid var(--ember-dark);
  background: var(--pine-900);
}

.formula code {
  color: var(--white);
  font-size: clamp(0.82rem, 1.7vw, 1.05rem);
  white-space: nowrap;
}

.technical-table-wrap {
  max-width: none;
  overflow-x: auto;
}

.technical-body table {
  width: 100%;
  min-width: 720px;
  margin: 18px 0 28px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
}

.technical-body caption {
  padding-bottom: 12px;
  color: var(--pine-900);
  font-weight: 850;
  text-align: left;
}

.technical-body th,
.technical-body td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.technical-body thead th {
  background: var(--pine-900);
  color: var(--white);
}

.technical-body tbody th {
  width: 240px;
  background: rgba(11, 47, 41, 0.07);
}

.output-fields {
  margin: 12px 0 28px;
}

.output-fields div {
  display: grid;
  padding: 14px 0;
  grid-template-columns: minmax(190px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.output-fields dt,
.output-fields dd {
  margin: 0;
}

.output-fields dt {
  font-weight: 800;
}

#scope p:not(.eyebrow) {
  max-width: 880px;
  margin: 26px 0 0;
  color: #3e5952;
  font-size: 1.05rem;
  line-height: 1.75;
}

.corridor-section-downloads {
  background: var(--pine-900);
  color: var(--white);
}

.download-grid {
  display: grid;
  margin-top: 44px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.download-grid a {
  display: block;
  min-height: 190px;
  padding: 28px;
  background: var(--pine-900);
  color: var(--white);
  text-decoration: none;
  transition: background 180ms ease;
}

.download-grid a:hover {
  background: var(--pine-800);
}

.download-grid span,
.download-grid strong,
.download-grid small {
  display: block;
}

.download-grid span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.download-grid strong {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.download-grid small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.83rem;
  line-height: 1.55;
}

.evidence-date {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .corridor-hero-grid,
  .map-feature-grid {
    grid-template-columns: 1fr;
  }

  .corridor-summary {
    max-width: 520px;
  }

  .map-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-support-grid figure:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
  }
}

@media (max-width: 640px) {
  .corridor-wrap {
    width: min(100% - 30px, 1120px);
  }

  .corridor-hero {
    padding-top: 48px;
  }

  .corridor-section {
    padding-block: 28px;
  }

  .corridor-hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .corridor-jumps .corridor-wrap {
    width: 100%;
    padding-inline: 15px;
  }

  .corridor-jumps a:first-child {
    padding-left: 12px;
  }

  .method-steps,
  .meaning-grid,
  .download-grid,
  .map-support-grid {
    grid-template-columns: 1fr;
  }

  .method-steps li,
  .method-steps li:nth-child(even) {
    min-height: 0;
    padding: 26px 0;
    border-left: 0;
  }

  .method-steps li:last-child,
  .map-support-grid figure:last-child {
    grid-column: auto;
    width: auto;
  }

  .finding-callout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .technical-body {
    padding-left: 0;
  }

  .corridor-technical summary {
    grid-template-columns: 36px 1fr;
  }

  .output-fields div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .download-grid a {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-grid a {
    transition: none;
  }
}
