:root {
  --indigo: #182a4d;
  --indigo-deep: #101f39;
  --indigo-soft: #243b66;
  --paper: #f5eedf;
  --paper-2: #fffaf0;
  --paper-3: #ece2cf;
  --ink: #1c2433;
  --muted: #5f5b51;
  --faint: #6b6458;
  --terracotta: #b44a37;
  --terracotta-dark: #7c2d1f;
  --gold: #e6b34a;
  --gold-soft: #f3dfad;
  --green: #2f6b57;
  --line: #d8cbb4;
  --line-strong: #b9a98e;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background:
    radial-gradient(1000px 600px at 100% -10%, rgba(230, 179, 74, 0.16), transparent 60%),
    radial-gradient(800px 600px at -10% 35%, rgba(180, 74, 55, 0.06), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--gold);
  color: var(--indigo-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

a {
  color: var(--terracotta);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--terracotta-dark);
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

p,
ul,
ol,
dl,
table,
figure,
blockquote {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.65em;
  color: var(--indigo-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.8vw, 5.2rem);
  line-height: 1.01;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.38rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.02rem;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

strong,
b {
  color: var(--indigo-deep);
  font-weight: 700;
}

.container {
  width: min(var(--container), calc(100% - 72px));
  margin-inline: auto;
}

.icon {
  width: 1.18em;
  height: 1.18em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
}

.icon--xs {
  width: 0.95em;
  height: 0.95em;
}

.icon--small {
  width: 1.05em;
  height: 1.05em;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 500;
  padding: 0.7rem 1rem;
  background: var(--gold);
  color: var(--indigo-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--indigo-deep);
}

/* Top line and masthead */
.topline {
  background: var(--indigo-deep);
  color: #d8d2c4;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.topline__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.3rem;
}

.topline p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.topline p .icon {
  color: var(--gold);
}

.topline__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold) !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topline__link:hover {
  text-decoration: underline;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper-2) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(12px);
}

@supports not (backdrop-filter: blur(1px)) {
  .masthead {
    background: var(--paper-2);
  }
}

.masthead__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--indigo-deep);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--indigo);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.03;
}

.brand__text strong {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.brand__text small {
  margin-top: 0.25rem;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.57rem;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  border-bottom-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.main-nav a[aria-current="page"] {
  color: var(--terracotta-dark);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  min-height: 38px;
}

.header-search input {
  width: 125px;
  padding: 0.35rem 0.55rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.74rem;
  outline: 0;
}

.header-search input::placeholder {
  color: var(--faint);
}

.header-search button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
}

.header-search button:hover {
  background: var(--gold-soft);
}

.icon-btn,
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
}

.icon-btn:hover,
.menu-btn:hover {
  border-color: var(--line);
  background: var(--paper);
}

.route-line {
  height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 18px, transparent 18px 30px);
  opacity: 0.9;
}

/* Drawer */
.drawer-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(16, 31, 57, 0.72);
  backdrop-filter: blur(3px);
}

body[data-menu="open"] .drawer-scrim {
  display: block;
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 200;
  width: min(420px, 100%);
  padding: 22px;
  background: var(--indigo-deep);
  color: var(--paper);
  overflow-y: auto;
  transform: translateX(0);
  box-shadow: -30px 0 80px rgba(16, 31, 57, 0.35);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(245, 238, 223, 0.2);
}

.mobile-drawer .brand,
.mobile-drawer .brand:hover {
  color: var(--paper);
}

.mobile-drawer .brand__text strong {
  color: var(--paper);
}

.mobile-drawer .brand__text small {
  color: var(--gold);
}

.mobile-drawer .icon-btn {
  display: inline-flex;
  color: var(--paper);
  border-color: rgba(245, 238, 223, 0.25);
}

.drawer-label {
  margin: 1.5rem 0 0.6rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mobile-drawer nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(245, 238, 223, 0.18);
}

.mobile-drawer nav li {
  border-bottom: 1px solid rgba(245, 238, 223, 0.18);
}

.mobile-drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  text-decoration: none;
}

.mobile-drawer nav a:hover {
  color: var(--gold);
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  margin-top: 1.2rem;
  padding: 0.7rem 0.85rem;
  background: var(--gold);
  color: var(--indigo-deep);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.drawer-cta:hover {
  background: #f1c96b;
  color: var(--indigo-deep);
}

.mobile-drawer__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 238, 223, 0.18);
}

.mobile-drawer__foot a {
  color: #d8d2c4;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-decoration: none;
}

.mobile-drawer__foot a:hover {
  color: var(--gold);
}

/* Shared */
.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.7rem;
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kicker .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.kicker--light {
  color: var(--gold);
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 179, 74, 0.18);
}

.section-heading {
  margin-bottom: 1.3rem;
}

.section-heading h2 {
  margin-bottom: 0.35rem;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
}

.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-heading--light h2,
.section-heading--light p {
  color: var(--paper);
}

.section-lead {
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 2px solid transparent;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--indigo-deep) !important;
}

.btn--gold:hover {
  background: #f1c96b;
  border-color: #f1c96b;
}

.btn--outline {
  border-color: var(--indigo);
  color: var(--indigo) !important;
  background: transparent;
}

.btn--outline:hover {
  background: var(--gold-soft);
}

.btn--outline-light {
  border-color: rgba(245, 238, 223, 0.55);
  color: var(--paper) !important;
  background: transparent;
}

.btn--outline-light:hover {
  border-color: var(--gold);
  background: rgba(245, 238, 223, 0.08);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--indigo);
  text-decoration: underline;
}

.breadcrumbs {
  padding-top: 1.2rem;
  padding-bottom: 0.8rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

/* Home */
.home-main {
  min-height: 70vh;
}

.home-hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(230, 179, 74, 0.12), transparent 40%),
    var(--indigo);
  color: var(--paper);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 238, 223, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 238, 223, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2.6rem, 5vw, 4.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.home-hero h1 {
  color: var(--paper);
  max-width: 800px;
}

.home-hero .hero-deck {
  max-width: 690px;
  color: #d8d2c4;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.7;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(245, 238, 223, 0.24);
}

.home-stats div {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.home-stats strong {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1;
}

.home-stats span {
  color: #c9c1b2;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__map {
  position: relative;
  min-width: 0;
}

.route-map {
  width: 100%;
  height: auto;
  color: var(--paper);
}

.route-map__grid {
  fill: none;
  stroke: rgba(245, 238, 223, 0.11);
  stroke-width: 1;
}

.route-map__line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-dasharray: 6 9;
}

.route-map__line--alt {
  stroke: var(--terracotta);
  opacity: 0.9;
}

.route-map__stop {
  fill: var(--indigo);
  stroke: var(--gold);
  stroke-width: 3;
}

.route-map__stop--last {
  fill: var(--terracotta);
  stroke: var(--paper);
}

.route-map text {
  fill: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.route-map__caption {
  fill: var(--gold) !important;
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
}

.route-map__compass {
  color: rgba(245, 238, 223, 0.75);
}

.hero-stamp {
  position: absolute;
  right: 4%;
  bottom: -2%;
  width: 142px;
  height: 142px;
  object-fit: cover;
  border: 5px solid var(--paper);
  transform: rotate(-5deg);
  box-shadow: 0 16px 35px rgba(16, 31, 57, 0.3);
}

.finder {
  position: relative;
  z-index: 3;
  width: min(1060px, calc(100% - 72px));
  margin: -48px auto 2.8rem;
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--terracotta);
  box-shadow: 0 20px 50px rgba(50, 42, 27, 0.13);
}

.finder::before,
.finder::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  margin-top: -8.5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}

.finder::before {
  left: -10px;
}

.finder::after {
  right: -10px;
}

.finder__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1rem;
}

.finder__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
}

.finder__head > p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.finder__goals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.9rem 0;
  border-block: 1px dashed var(--line-strong);
}

.goal {
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 62px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.goal span {
  font-size: 0.78rem;
  font-weight: 800;
}

.goal small {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.goal:hover,
.goal.is-active {
  border-color: var(--terracotta);
  background: #fff7e8;
}

.goal.is-active {
  box-shadow: inset 0 -3px 0 var(--terracotta);
}

.finder__result {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  padding-top: 0.8rem;
}

.finder-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 54px;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.finder-link b {
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.finder-link .icon {
  margin-left: auto;
  color: var(--terracotta);
}

.finder-link:hover {
  border-color: var(--terracotta);
  color: var(--indigo);
}

.finder-link i {
  margin-left: auto;
  color: var(--terracotta);
  font-style: normal;
}

.finder__noscript {
  margin: 0.6rem 0 0;
  color: var(--faint);
  font-size: 0.7rem;
}

.featured,
.ports {
  padding: 1.2rem 0 3.2rem;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.dossier-card {
  display: flex;
  flex-direction: column;
  padding: 0.95rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.dossier-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  color: var(--ink);
}

.dossier-card__top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 800;
}

.dossier-card__top b {
  font-size: 1.5rem;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.dossier-card h3 {
  margin: 0.55rem 0 0.3rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.dossier-card p {
  flex: 1;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.dossier-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.dossier-card__meta .icon {
  color: var(--terracotta);
}

.ports {
  border-top: 1px solid var(--line);
  padding-top: 2.7rem;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.port-card {
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.port-card > span {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
}

.port-card h3 {
  margin: 0.4rem 0 0.35rem;
  font-size: 1.25rem;
}

.port-card p {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.port-card a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.archive {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.archive-group {
  padding: 0.95rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.archive-group__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line-strong);
}

.archive-group__head > span {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
}

.archive-group__head h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.archive-group__head p {
  margin: 0.15rem 0 0;
  color: var(--faint);
  font-size: 0.66rem;
  line-height: 1.4;
}

.archive-list {
  margin-top: 0.45rem;
}

.archive-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-decoration: none;
}

.archive-list a:last-child {
  border-bottom: 0;
}

.archive-list a b {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.55rem;
}

.archive-list a .icon {
  margin-left: auto;
  color: var(--terracotta);
}

.archive-list a:hover {
  color: var(--indigo);
}

.archive-list a:hover b {
  color: var(--terracotta);
}

.method {
  padding: 3.4rem 0;
  background: var(--indigo);
  color: var(--paper);
}

.method__grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 2.2rem;
}

.method__mark {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.method__mark span {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.method h2,
.method h3 {
  color: var(--paper);
}

.method__copy {
  max-width: 820px;
}

.method .kicker,
.section-heading--light .kicker {
  color: var(--gold);
}

.method__copy a {
  color: var(--gold);
}

.method__copy a:hover {
  color: #f1c96b;
}

.method__section {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 238, 223, 0.2);
}

.method__section h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  font-family: var(--font-sans);
}

.method__section p {
  color: #d8d2c4;
  font-size: 0.86rem;
  line-height: 1.7;
}

.faq {
  margin-top: 2.8rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.85rem;
  color: var(--indigo-deep);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  color: var(--terracotta-dark);
  transition: transform 0.16s ease;
}

.faq-item[open] .faq-item__plus {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--indigo-deep);
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.sources {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.source-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.source-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.source-list li:first-child {
  border-top: 0;
}

.source-list > li > span {
  color: var(--terracotta);
}

.source-list a {
  font-weight: 700;
}

.source-list small {
  display: block;
  color: var(--faint);
  font-size: 0.68rem;
}

.author-note {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.author-note__stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: var(--indigo);
  color: var(--gold);
}

.author-note p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.author-note__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.author-note__links span {
  color: var(--faint);
}

.legal-note {
  margin-top: 1.3rem;
  padding: 0.8rem 0.95rem;
  border-left: 4px solid var(--gold);
  background: var(--paper-3);
  color: #4c483f;
  font-size: 0.76rem;
  line-height: 1.6;
}

.legal-note strong {
  color: var(--indigo);
}

.article-dates {
  margin-top: 1rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

/* Article head */
.article-main {
  min-height: 70vh;
}

.tour-head {
  background:
    linear-gradient(135deg, rgba(230, 179, 74, 0.13), transparent 45%),
    var(--indigo);
  color: var(--paper);
  border-block: 1px solid var(--indigo-deep);
}

.tour-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: 2.2rem;
  padding-bottom: 1.8rem;
}

.stop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.stop-number {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.09em;
}

.stop-code,
.stop-category {
  display: inline-flex;
  padding: 0.25rem 0.4rem;
  border: 1px solid rgba(245, 238, 223, 0.35);
  color: #d8d2c4;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stop-code {
  border-color: var(--gold);
  color: var(--gold);
}

.tour-head h1 {
  color: var(--paper);
  margin-bottom: 1rem;
}

.tour-deck {
  max-width: 710px;
  color: #d8d2c4;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

.tour-verdict {
  margin-top: 1.2rem;
  padding: 0.85rem 0.95rem;
  border-left: 4px solid var(--gold);
  background: rgba(245, 238, 223, 0.08);
}

.tour-verdict__label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-verdict p {
  margin: 0;
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.95rem;
  margin: 1rem 0 0;
  color: #bdb6a8;
  font-family: var(--font-mono);
  font-size: 0.57rem;
}

.tour-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.stamp {
  margin: 0;
  justify-self: end;
  width: min(100%, 270px);
  padding: 8px;
  background: var(--paper);
  border: 1px dashed var(--gold);
  transform: rotate(-2.5deg);
  box-shadow: 0 16px 35px rgba(16, 31, 57, 0.25);
}

.stamp img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.stamp figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.3rem 0.1rem 0;
  color: var(--indigo);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.board {
  width: min(var(--container), calc(100% - 72px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding-bottom: 1.7rem;
}

.board-item {
  position: relative;
  padding: 0.8rem;
  background: var(--paper);
  color: var(--ink);
  border-top: 3px solid var(--gold);
}

.board-item:nth-child(2) {
  border-top-color: var(--terracotta);
}

.board-item:nth-child(3) {
  border-top-color: var(--green);
}

.board-icon {
  display: inline-flex;
  color: var(--indigo);
}

.board-label {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.board-item strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--indigo-deep);
  font-size: 0.84rem;
  line-height: 1.35;
}

.board-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.route-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.route-bar__track {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

.route-bar__track::-webkit-scrollbar {
  display: none;
}

.route-bar a {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0.3rem 0.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.route-bar a:hover,
.route-bar a.is-active {
  background: var(--gold-soft);
  color: var(--indigo-deep);
}

/* Article body */
.article-body {
  max-width: 860px;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.chapter {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 0.7rem 0 2.2rem;
}

.chapter__stop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.chapter__stop span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
}

.chapter__stop i {
  flex: 1;
  width: 1px;
  min-height: 50px;
  background-image: linear-gradient(var(--line-strong) 50%, transparent 50%);
  background-size: 1px 9px;
}

.chapter__body h2 {
  margin-top: 0;
}

.chapter__body p {
  color: var(--muted);
}

.chapter__body strong {
  color: var(--indigo);
}

.chapter__body ul,
.chapter__body ol {
  padding-left: 1.3rem;
}

.chapter__body li {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.chapter__body li::marker {
  color: var(--terracotta);
}

.chapter__body a {
  font-weight: 700;
}

.chapter__body table a {
  color: var(--terracotta-dark);
}

.chapter__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 0.85rem;
}

.chapter__body thead {
  background: var(--indigo);
  color: var(--paper);
}

.chapter__body th,
.chapter__body td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.chapter__body th {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chapter__body tbody tr:nth-child(even) {
  background: var(--paper-3);
}

.chapter__body tbody tr:last-child td {
  border-bottom: 0;
}

.chapter__body blockquote {
  margin: 1.3rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--paper-3);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.callout {
  margin: 1.3rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--indigo);
  background: var(--paper-3);
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

.callout strong {
  color: var(--indigo);
}

.callout--tip {
  border-left-color: var(--green);
  background: #e9f0e5;
}

.callout--warn,
.callout--warning {
  border-left-color: var(--terracotta);
  background: #f8e7df;
}

.callout--danger {
  border-left-color: var(--terracotta-dark);
  background: #f6dfd8;
}

.checklist {
  padding: 0 !important;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.45rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid var(--terracotta);
  background: var(--gold-soft);
}

.ticket-route {
  margin: 1rem 0 0;
  padding: 0 !important;
  list-style: none;
}

.ticket-route li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.8rem;
  position: relative;
  padding-bottom: 1rem;
}

.ticket-route li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background-image: linear-gradient(var(--line-strong) 50%, transparent 50%);
  background-size: 1px 8px;
}

.ticket-route__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--terracotta);
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
}

.ticket-route h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
}

.ticket-route p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.ticket-route__time {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.field-band {
  padding: 2.8rem 0;
  background: var(--indigo);
  color: var(--paper);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.field-card {
  padding: 1rem;
  background: var(--paper-2);
  color: var(--ink);
  border-top: 4px solid var(--gold);
}

.field-card--alert {
  border-top-color: var(--terracotta);
}

.field-card h3 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.field-card__icon {
  color: var(--terracotta);
}

.field-card ol,
.field-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.field-card li {
  position: relative;
  margin: 0;
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.field-card li:first-child {
  border-top: 0;
}

.field-card ol {
  counter-reset: fieldq;
}

.field-card ol li {
  counter-increment: fieldq;
}

.field-card ol li::before {
  content: counter(fieldq, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
}

.field-card ul li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-weight: 800;
}

.next-block {
  padding: 2.7rem 0;
  background: var(--paper-3);
  border-top: 1px solid var(--line);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.next-card {
  display: flex;
  flex-direction: column;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.next-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
  color: var(--ink);
}

.next-card__meta {
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
}

.next-card__meta b {
  font-size: 1.05rem;
}

.next-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.next-card p {
  flex: 1;
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.next-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.departure {
  padding: 2.8rem 0;
  background: var(--terracotta);
  color: var(--paper-2);
}

.departure h2 {
  color: var(--paper-2);
}

.departure__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.departure p {
  max-width: 640px;
  margin: 0;
  color: #fffaf0;
}

.departure .kicker {
  color: #fffaf0;
}

.departure__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.departure .btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--indigo-deep) !important;
}

/* Footer */
.site-footer {
  padding-top: 2.8rem;
  background: var(--indigo-deep);
  color: #d8d2c4;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 2.2rem;
}

.brand--footer .brand__text strong {
  color: var(--paper);
}

.brand--footer .brand__text small {
  color: var(--gold);
}

.brand--footer {
  color: var(--paper);
}

.footer__statement {
  max-width: 340px;
  margin: 0.9rem 0;
  color: #bdb6a8;
  font-size: 0.8rem;
  line-height: 1.65;
}

.footer__official {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--gold) !important;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}



.footer__disclaimer {
  max-width: 360px;
  margin-top: 0.9rem;
  color: #bdb6a8;
  font-size: 0.66rem;
  line-height: 1.55;
}

.footer__index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
}

.footer-group h2 {
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-group h2 a {
  color: var(--gold);
  text-decoration: none;
}

.footer-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li {
  margin: 0;
}

.footer-group a {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 26px;
  padding: 0.16rem 0;
  color: #bdb6a8;
  font-size: 0.7rem;
  line-height: 1.35;
  text-decoration: none;
}

.footer-group a b {
  color: #b0a89a;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
}

.footer-group a:hover {
  color: var(--paper);
}

.footer-group a:hover b {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0 1.1rem;
  border-top: 1px solid rgba(245, 238, 223, 0.15);
}

.footer__bottom p {
  margin: 0;
  color: #bdb6a8;
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #bdb6a8;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--gold);
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--indigo);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  color: var(--terracotta);
}

/* Legal */
.legal-main {
  min-height: 70vh;
}

.legal-head {
  padding: 1.8rem 0 1.4rem;
}

.legal-head h1 {
  max-width: 980px;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
}

.legal-meta {
  margin-top: 0.8rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-bottom: 3.5rem;
  border-top: 1px solid var(--line);
}

.legal-body {
  min-width: 0;
  padding-top: 1.4rem;
}

.legal-section {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  border-top: 0;
}

.legal-section > span {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
}

.legal-section h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.legal-section p {
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.legal-aside ol {
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
  counter-reset: legaltoc;
}

.legal-aside li {
  counter-increment: legaltoc;
  border-top: 1px solid var(--line);
}

.legal-aside li:first-child {
  border-top: 0;
}

.legal-aside li a {
  display: flex;
  gap: 0.45rem;
  padding: 0.42rem 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-aside li a::before {
  content: counter(legaltoc, decimal-leading-zero);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.54rem;
}

.legal-aside li a:hover {
  color: var(--terracotta-dark);
}

/* Utility */
.utility-main {
  width: min(var(--container), calc(100% - 72px));
  margin-inline: auto;
  min-height: 65vh;
  padding: 2rem 0 3.5rem;
}

.utility-head {
  max-width: 850px;
  margin-bottom: 1.6rem;
}

.utility-head h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.utility-deck {
  color: var(--muted);
  font-size: 1rem;
}

.search-page {
  max-width: 930px;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
}

.search-page__form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.search-page__form input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.search-page__form input:focus {
  border-color: var(--terracotta);
  outline: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.95rem 0;
}

.chip {
  min-height: 32px;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  cursor: pointer;
}

.chip:hover,
.chip.is-active {
  border-color: var(--terracotta);
  background: var(--gold-soft);
  color: var(--indigo-deep);
}

.search-page__status {
  min-height: 1.3rem;
  margin: 0.6rem 0 0.4rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.search-page__results {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-card {
  display: block;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
}

.result-card:hover {
  border-color: var(--terracotta);
  color: var(--ink);
}

.result-card small {
  display: block;
  color: var(--terracotta-dark);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.result-card span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-suggestions {
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.search-suggestions .next-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.map-group {
  padding: 0.95rem;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.map-group__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line-strong);
}

.map-group__head > span {
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
}

.map-group__head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.map-group__head p {
  margin: 0.15rem 0 0;
  color: var(--faint);
  font-size: 0.66rem;
}

.map-group ol {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.map-group li {
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.map-group li:first-child {
  border-top: 0;
}

.map-group li a {
  display: flex;
  gap: 0.5rem;
  padding: 0.37rem 0;
  color: var(--muted);
  text-decoration: none;
}

.map-group li a b {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.map-group li a:hover {
  color: var(--indigo);
}

.utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.not-found {
  max-width: 820px;
  padding: 3rem 0;
}

.not-found__code {
  display: block;
  color: var(--terracotta);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 17vw, 11rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.not-found h1 {
  max-width: 760px;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .menu-btn,
  .search-mobile {
    display: inline-flex;
  }

  .header-search {
    display: none;
  }

  .masthead__inner {
    min-height: 66px;
  }

  :root {
    --header-h: 66px;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
    padding-bottom: 5.5rem;
  }

  .home-hero__map {
    max-width: 560px;
  }

  .hero-stamp {
    right: 2%;
    bottom: 4%;
  }

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

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

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

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

  .footer__statement,
  .footer__disclaimer {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .container,
  .finder,
  .board,
  .utility-main {
    width: min(var(--container), calc(100% - 40px));
  }

  .masthead__actions .brand__text small {
    display: none;
  }

  .tour-head__grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding-top: 1.5rem;
  }

  .stamp {
    justify-self: start;
    width: min(100%, 220px);
  }

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

  .article-body {
    width: min(var(--container), calc(100% - 40px));
  }

  .chapter {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .chapter__stop span {
    width: 32px;
    height: 32px;
  }

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

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

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

  .method__mark {
    font-size: 3.4rem;
  }

  .departure__inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .legal-aside {
    position: static;
  }

  .map-groups {
    grid-template-columns: 1fr;
  }

  .search-suggestions .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .container,
  .finder,
  .board,
  .utility-main,
  .article-body {
    width: calc(100% - 28px);
  }

  .topline__inner {
    justify-content: center;
    text-align: center;
  }

  .topline__link {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand__text strong {
    font-size: 1rem;
  }

  .brand__text small {
    font-size: 0.48rem;
  }

  .home-hero__grid {
    padding-top: 2rem;
    padding-bottom: 4.7rem;
  }

  .home-hero__actions .btn,
  .departure__actions .btn,
  .utility-actions .btn {
    width: 100%;
  }

  .home-stats {
    gap: 1rem;
  }

  .home-stats strong {
    font-size: 1.2rem;
  }

  .home-stats span {
    font-size: 0.5rem;
  }

  .hero-stamp {
    width: 110px;
    height: 110px;
    border-width: 4px;
  }

  .finder {
    margin-top: -32px;
    padding: 1rem;
  }

  .finder::before,
  .finder::after {
    display: none;
  }

  .finder__head {
    display: block;
  }

  .finder__head > p {
    margin-top: 0.5rem;
  }

  .finder__goals {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .dossier-grid,
  .next-grid,
  .archive-grid,
  .search-suggestions .next-grid {
    grid-template-columns: 1fr;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading--row > .text-link {
    margin-top: 0.5rem;
  }

  .finder__head h2 {
    font-size: 1.5rem;
  }

  .half-break {
    display: block;
  }

  .chapter {
    grid-template-columns: 1fr;
    padding-bottom: 1.7rem;
  }

  .chapter__stop {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .chapter__stop i {
    flex: 1;
    min-height: 1px;
    height: 1px;
    width: auto;
    background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
    background-size: 8px 1px;
  }

  .article-body {
    padding-top: 1.2rem;
  }

  .chapter__body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .chapter__body th,
  .chapter__body td {
    white-space: normal;
    min-width: 130px;
  }

  .field-band {
    padding: 2rem 0;
  }

  .search-page__form {
    flex-direction: column;
  }

  .search-page__form .btn {
    width: 100%;
  }

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

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

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .back-top {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (max-width: 420px) {
  .brand__text small {
    display: none;
  }

  .masthead__actions {
    gap: 0.1rem;
  }

  .icon-btn,
  .menu-btn {
    width: 36px;
    height: 36px;
  }

  .route-map {
    margin-top: 0.4rem;
  }

  .stop-number {
    font-size: 2.2rem;
  }

  .tour-head__grid {
    padding-top: 1.1rem;
  }

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

@media print {
  .topline,
  .masthead,
  .drawer-scrim,
  .mobile-drawer,
  .route-bar,
  .programmatic-ad,
  .finder,
  .next-block,
  .departure,
  .site-footer,
  .back-top,
  .skip-link,
  .field-band,
  .stamp {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .tour-head {
    background: #fff;
    color: #000;
  }

  .tour-head h1,
  .tour-head .tour-deck,
  .tour-head .tour-verdict p,
  .tour-meta {
    color: #000;
  }

  .article-body {
    width: 100%;
    max-width: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
