/* China Cruises — prototype stylesheet
   Palette and layout follow the B edition brief: deep teal for navigation and
   selected states, warm white for reading, light gold for the first action,
   brick red for the illustrative routes. Content column max 1440px. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-950: #061d1c;
  --teal-900: #0b2a28;
  --teal-800: #123a37;
  --teal-700: #174843;
  --teal-500: #2c6f68;
  --gold: #d7bd88;
  --gold-soft: #e9d7ae;
  --brick: #b4422e;
  --paper: #f7f3e8;
  --paper-2: #fbf8f0;
  --paper-deep: #eee6d4;
  --ink: #132320;
  --muted: #5c6a65;
  --line: rgba(19, 35, 32, 0.14);
  --line-soft: rgba(19, 35, 32, 0.08);
  --line-invert: rgba(247, 243, 232, 0.22);
  --wrap: 1440px;
  --pad: clamp(20px, 4.2vw, 56px);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

::selection {
  background: var(--gold);
  color: var(--teal-950);
}

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

/* ---------- shared ---------- */

.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.on-dark .eyebrow,
.eyebrow--light {
  color: var(--gold);
}

.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  color: #35433f;
  max-width: 56ch;
}

.quiet {
  font-size: 13.5px;
  color: var(--muted);
}

.section {
  padding-block: clamp(64px, 7vw, 104px);
}

.section + .section {
  padding-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(32px, 3.5vw, 52px);
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.btn {
  --btn-bg: var(--teal-800);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  padding: 17px 24px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
}

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

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: var(--teal-950);
}

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

.btn--teal:hover {
  --btn-bg: var(--teal-950);
}

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: inherit;
  border: 1px solid var(--line-invert);
  padding: 14px 20px;
}

.btn--quiet:hover {
  --btn-bg: rgba(247, 243, 232, 0.08);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s var(--ease), gap 0.25s var(--ease);
}

.link:hover {
  color: var(--brick);
  gap: 14px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--teal-950);
  padding: 12px 18px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 29, 28, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(247, 243, 232, 0.14);
  color: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.brand small {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.nav a {
  position: relative;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 6px;
  color: rgba(247, 243, 232, 0.82);
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

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

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav a[aria-current='page'] {
  color: var(--paper);
}

.header-cta {
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid rgba(247, 243, 232, 0.34);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-950);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(88svh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--teal-950);
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  transition: opacity 0.6s var(--ease);
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 75% at 100% 100%, rgba(6, 29, 28, 0.78), rgba(6, 29, 28, 0) 58%),
    linear-gradient(180deg, rgba(6, 29, 28, 0.58) 0%, rgba(6, 29, 28, 0.1) 36%, rgba(6, 29, 28, 0.8) 100%),
    linear-gradient(90deg, rgba(6, 29, 28, 0.66) 0%, rgba(6, 29, 28, 0) 60%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(48px, 6vw, 76px);
  padding-top: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(56px, 8.6vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-top: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.hero__lede {
  margin-top: 26px;
  max-width: 34ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(247, 243, 232, 0.9);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero__link {
  color: rgba(247, 243, 232, 0.86);
  border-bottom: 1px solid rgba(247, 243, 232, 0.4);
}

.hero__link:hover {
  color: var(--gold-soft);
}

.plate {
  position: relative;
  z-index: 0;
  text-align: right;
  border-right: 1px solid rgba(215, 189, 136, 0.6);
  padding: 10px 20px 10px 10px;
  min-width: 190px;
  text-shadow: 0 1px 16px rgba(4, 18, 17, 0.75);
}

.plate::before {
  content: '';
  position: absolute;
  inset: -40px -34px -34px -110px;
  background: radial-gradient(65% 100% at 100% 50%, rgba(6, 29, 28, 0.82), rgba(6, 29, 28, 0) 74%);
  z-index: -1;
  pointer-events: none;
}

.plate b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.plate span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.68);
  margin-top: 6px;
}

.plate .coords {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 10px;
}

/* ---------- departure chooser ---------- */

.departure {
  padding-block: clamp(56px, 6vw, 88px);
}

.departure .section-head {
  padding-bottom: 30px;
}

.departure__hint {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 30ch;
  text-align: right;
}

.ports {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin-top: 30px;
}

.port {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.port__frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: var(--paper-deep);
}

.port__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.94);
}

.port:hover .port__frame img {
  transform: scale(1.035);
  filter: saturate(1);
}

.port__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 243, 232, 0.28);
  box-shadow: inset 0 0 0 0 var(--gold);
  transition: box-shadow 0.35s var(--ease);
  pointer-events: none;
}

.port[aria-pressed='true'] .port__frame::after {
  box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 10px rgba(6, 29, 28, 0.18);
}

.port__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.port__name {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 25px);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.port__name::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s var(--ease);
}

.port[aria-pressed='true'] .port__name::before {
  background: var(--brick);
}

.port__nights {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.port[aria-pressed='true'] .port__nights {
  color: var(--ink);
}

.port[aria-pressed='true'] .port__meta {
  border-top-color: rgba(19, 35, 32, 0.45);
}

/* ---------- atlas: map + summary ---------- */

.atlas {
  background: var(--paper-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.atlas__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 1fr);
}

.atlas__map {
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  position: relative;
}

.map-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(14px, 2vw, 24px);
}

.map-label b {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.map-label span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.map {
  position: relative;
}

.map__base {
  width: 100%;
  height: auto;
}

.map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route {
  fill: none;
  stroke: var(--brick);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: opacity 0.25s linear;
}

.route.is-active {
  opacity: 1;
  animation: draw 1.1s var(--ease) forwards;
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.marker .halo {
  fill: var(--gold);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.3s var(--ease);
}

.marker .dot {
  fill: var(--teal-900);
  stroke: var(--paper-2);
  stroke-width: 2.4;
}

.marker .label {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  fill: var(--teal-900);
  paint-order: stroke;
  stroke: rgba(244, 238, 225, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.marker.is-route .label {
  font-weight: 600;
}

.marker.is-origin .halo {
  opacity: 0.55;
}

.marker--region .dot {
  fill: var(--paper-2);
  stroke: var(--teal-900);
  stroke-width: 2.6;
}

.marker.is-origin .dot {
  fill: var(--brick);
}

.marker .label-bg {
  fill: var(--paper-deep);
  opacity: 0.82;
}

.map__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.legend-line {
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--brick);
  vertical-align: middle;
  margin-right: 8px;
}

.map__legend .attrib {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* summary panel */

.summary {
  background: var(--teal-900);
  color: var(--paper);
  padding: clamp(28px, 3.2vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.summary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(215, 189, 136, 0.14), transparent 58%);
  pointer-events: none;
}

.summary > * {
  position: relative;
}

.summary__coords {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.summary h2 {
  font-size: clamp(30px, 2.9vw, 44px);
  line-height: 1.05;
}

.summary__route {
  font-size: 13.5px;
  color: rgba(247, 243, 232, 0.72);
  letter-spacing: 0.03em;
}

.stops {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-invert);
}

.stops li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(247, 243, 232, 0.12);
}

.stops .num {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(215, 189, 136, 0.85);
}

.stops .place {
  font-family: var(--serif);
  font-size: 19px;
}

.stops .role {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.55);
}

.summary__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line-invert);
  border-bottom: 1px solid var(--line-invert);
}

.summary__meta span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.52);
}

.summary__meta b {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--paper);
  margin-top: 5px;
  line-height: 1.2;
}

.summary__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.summary__note {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(247, 243, 232, 0.66);
  max-width: 34ch;
}

.summary__mobile-action {
  display: none;
}

.finder {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 168px;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 30px 9px 0;
  font-family: var(--serif);
  font-size: 19px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 17px, calc(100% - 4px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.25s var(--ease);
}

.field select:hover {
  border-bottom-color: var(--ink);
}

.finder .btn {
  padding: 16px 22px;
}

.voyage-list {
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}

.voyage-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(20px, 2.2vw, 28px) clamp(4px, 1vw, 14px);
  border-top: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.voyage-row:hover {
  background: rgba(19, 35, 32, 0.035);
}

.voyage-row__nights {
  font-family: var(--serif);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 0.95;
}

.voyage-row__nights small {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

.voyage-row__body h3 {
  font-size: clamp(21px, 1.9vw, 28px);
  margin-bottom: 6px;
}

.voyage-row__body p {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.voyage-row__go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-800);
  white-space: nowrap;
}

.voyage-row__go span {
  transition: transform 0.3s var(--ease);
}

.voyage-row:hover .voyage-row__go span {
  transform: translateX(5px);
}

.voyage-list__empty {
  padding: 42px 0;
  font-size: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.voyage-list__empty b {
  color: var(--ink);
  font-weight: 500;
}

.list-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- inner pages ---------- */

.page-hero {
  position: relative;
  color: var(--paper);
  min-height: min(64svh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--teal-950);
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 29, 28, 0.68) 0%, rgba(6, 29, 28, 0.22) 34%, rgba(6, 29, 28, 0.72) 74%, rgba(6, 29, 28, 0.94) 100%);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: clamp(36px, 4vw, 56px);
}

.page-hero h1 {
  text-shadow: 0 2px 30px rgba(4, 18, 17, 0.45);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 14px;
  max-width: 18ch;
}

.page-hero p {
  text-shadow: 0 1px 18px rgba(4, 18, 17, 0.55);
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(247, 243, 232, 0.86);
}

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.62);
}

.crumbs {
  flex-wrap: wrap;
  row-gap: 3px;
}

/* break between crumbs, never inside one */
.crumbs > * {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .crumbs {
    font-size: 9px;
    letter-spacing: 0.1em;
    gap: 7px;
  }
}

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

.page-body {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 372px);
  gap: clamp(32px, 5vw, 84px);
  padding-block: clamp(52px, 6vw, 88px) clamp(64px, 7vw, 108px);
  align-items: start;
}

.prose h2 {
  font-size: clamp(26px, 2.4vw, 36px);
  margin-bottom: 18px;
}

.prose h3 {
  font-size: 21px;
  margin: 34px 0 10px;
}

.prose p + p {
  margin-top: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.back-link:hover {
  color: var(--brick);
}

.prose .lede {
  margin-bottom: 28px;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 30px 0;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 16px;
  border-right: 1px solid var(--line-soft);
}

.fact:last-child {
  border-right: 0;
}

@media (max-width: 640px) {
  .fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }
  .fact:nth-child(2n) {
    border-right: 0;
  }
  .fact:nth-child(-n + 2) {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
}

.fact dt,
.fact span {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.route-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  counter-reset: stop;
}

.route-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.route-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.route-list .idx {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--brick);
  padding-top: 3px;
}

.route-list h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.role-tag {
  display: inline-block;
  margin-left: 12px;
  padding: 3px 8px 2px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 2px;
}

.route-list p {
  font-size: 14px;
  color: var(--muted);
}

.callout {
  border-left: 2px solid var(--brick);
  padding: 4px 0 4px 20px;
  margin: 30px 0;
  font-size: 14.5px;
  color: #3a4844;
  max-width: 62ch;
}

.callout b {
  font-weight: 600;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #35433f;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 9px;
  height: 1px;
  background: var(--brick);
}

/* request panel */

.panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(22px, 2.4vw, 30px);
}

.panel--sticky {
  position: sticky;
  top: 100px;
}

.panel h2 {
  font-size: 25px;
  margin-bottom: 6px;
}

.panel .panel__hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.form {
  display: grid;
  gap: 16px;
}

.form .field {
  min-width: 0;
}

.form .field input,
.form .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 9px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  width: 100%;
}

.form .field input::placeholder {
  color: rgba(19, 35, 32, 0.35);
}

.form .field input:focus,
.form .field select:focus {
  outline: none;
  border-bottom-color: var(--teal-700);
}

.form .btn {
  margin-top: 8px;
  justify-content: center;
  width: 100%;
}

.form__note {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.form__done {
  display: none;
  border: 1px solid var(--teal-700);
  padding: 18px;
  font-size: 14px;
  line-height: 1.55;
  background: rgba(23, 72, 67, 0.05);
}

.panel.is-sent .form {
  display: none;
}

.panel.is-sent .form__done {
  display: block;
}

.panel__aside {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- accordions ---------- */

.acc {
  border-top: 1px solid var(--line);
}

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

.acc__head {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  text-align: left;
  padding: 26px 4px 26px 0;
  cursor: pointer;
  transition: color 0.25s var(--ease), padding 0.3s var(--ease);
}

.acc__head:hover {
  color: var(--brick);
}

.acc__num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--brick);
}

.acc__title {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.15;
}

.acc__sign {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
}

.acc__sign::before,
.acc__sign::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.acc__sign::before {
  left: 0;
  right: 0;
  top: 8px;
  height: 1px;
}

.acc__sign::after {
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
}

.acc.is-open .acc__sign::after {
  transform: scaleY(0);
}

.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.acc.is-open .acc__body {
  grid-template-rows: 1fr;
}

.acc__inner {
  overflow: hidden;
}

.acc__inner > div {
  padding: 0 44px 30px 56px;
  max-width: 72ch;
}

.acc__inner p {
  font-size: 15.5px;
  color: #3a4844;
}

.acc__inner p + p {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .acc__inner > div {
    padding: 0 6px 26px 56px;
  }
}

/* table */

.table-wrap {
  margin: 30px 0 6px;
  overflow-x: auto;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

table.compare th {
  text-align: left;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 0 18px 12px 0;
  border-bottom: 1px solid var(--ink);
}

table.compare td {
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #3a4844;
}

table.compare td:first-child {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- next links / footer ---------- */

.next {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 4vw, 62px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}

.next h2 {
  font-size: clamp(24px, 2.4vw, 34px);
}

.next__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  background: var(--teal-950);
  color: rgba(247, 243, 232, 0.72);
  padding-block: clamp(48px, 5vw, 72px) 28px;
  margin-top: 0;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(247, 243, 232, 0.14);
}

.footer-brand .brand {
  color: var(--paper);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 34ch;
  color: rgba(247, 243, 232, 0.6);
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(247, 243, 232, 0.58);
  line-height: 1.6;
}

.footer-base p {
  max-width: 78ch;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .atlas__grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  }
  .page-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel--sticky {
    position: static;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .plate {
    text-align: left;
    border-right: 0;
    border-left: 1px solid rgba(215, 189, 136, 0.55);
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .atlas__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .atlas__map {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    order: 2;
  }
  .summary {
    order: 1;
  }
  .summary__foot .btn {
    display: none;
  }
  .summary__meta b {
    font-size: 16px;
  }
  .summary__mobile-action {
    display: block;
    background: var(--teal-900);
    padding-bottom: clamp(22px, 4vw, 32px);
  }
  .summary__mobile-action .btn {
    width: 100%;
    justify-content: center;
  }
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .departure__hint {
    text-align: left;
  }
  .header-cta {
    padding: 10px 13px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .finder {
    width: 100%;
  }
  .field {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .nav {
    gap: 16px;
  }
  .header-cta {
    display: none;
  }
  .voyage-row {
    grid-template-columns: 74px minmax(0, 1fr);
    row-gap: 10px;
  }
  .voyage-row__go {
    grid-column: 2;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .site-header .wrap {
    min-height: 62px;
    gap: 10px;
  }
  .brand {
    font-size: 17px;
  }
  .brand small {
    display: none;
  }
  .nav {
    gap: 13px;
  }
  .nav a {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    padding-block: 4px;
  }
  .hero {
    min-height: 82svh;
  }
  .hero__inner {
    padding-top: 96px;
  }
  .ports {
    gap: 10px;
  }
  .port__frame {
    aspect-ratio: 1 / 1;
  }
  .port__meta {
    display: block;
    padding-top: 10px;
    margin-top: 10px;
  }
  .port__name {
    font-size: 13px;
    gap: 0;
    line-height: 1.3;
  }
  .port__name::before {
    display: none;
  }
  .port__nights {
    font-size: 9.5px;
    display: block;
    margin-top: 3px;
    letter-spacing: 0.1em;
  }
  .finder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .finder .btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .map__legend .attrib {
    margin-left: 0;
  }
  .summary {
    padding: 26px 20px;
  }
  .section-head .finder {
    margin-top: 4px;
  }
  .next {
    flex-direction: column;
    align-items: flex-start;
  }
  .next__links {
    width: 100%;
  }
  .next__links .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- additions: facts, groups, hidden rows ---------- */

[hidden] {
  display: none !important;
}

.map {
  margin: 0;
}

.acc-group {
  margin-top: 34px;
}

.facts {
  display: grid;
  margin: 4px 0 0;
  padding: 0;
}

.facts > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.facts dd {
  margin: 0;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
}

.summary__mobile-action .wrap {
  padding-top: 0;
}

/* stacked tables on small screens */

@media (max-width: 700px) {
  .table-wrap {
    overflow: visible;
    margin-top: 22px;
  }
  table.compare {
    min-width: 0;
    display: block;
  }
  table.compare thead {
    display: none;
  }
  table.compare tbody,
  table.compare tr,
  table.compare td {
    display: block;
    width: 100%;
  }
  table.compare tr {
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }
  table.compare tr:last-child {
    border-bottom: 1px solid var(--line);
  }
  table.compare td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 5px 0;
    border: 0;
  }
  table.compare td::before {
    content: attr(data-label);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 4px;
  }
  table.compare td:first-child {
    display: block;
    padding: 0 0 6px;
    font-size: 20px;
    white-space: normal;
    margin-bottom: 2px;
  }
  table.compare td:first-child::before {
    content: none;
  }
}

.sources {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 72ch;
}

.sources b {
  color: var(--ink);
  font-weight: 600;
}

.sources a {
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}

.sources a:hover {
  color: var(--brick);
}

/* ================================================================
   Second edition: routes, destinations, ships, calendar
   ================================================================ */

.section--tight {
  padding-block: clamp(36px, 4vw, 56px);
}

.section--list {
  padding-block: 0;
}

.section-head--small {
  padding-bottom: 18px;
}

.section-head__hint {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 34ch;
  text-align: right;
}

/* ---------- chart plate ---------- */

.chart {
  position: relative;
  margin: 0;
  background: var(--paper-2);
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(19, 35, 32, 0.16);
}

.chart--hero,
.chart--route {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.chart--atlas {
  max-width: 900px;
  margin-inline: auto;
}

.chart__base {
  width: 100%;
  height: auto;
}

.chart__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-route {
  fill: none;
  stroke: var(--brick);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.009 0.007;
}

.chart-dot {
  stroke: var(--paper-2);
  stroke-width: 1.8;
}

.chart-dot--gateway {
  fill: var(--teal-900);
  stroke-width: 2.4;
}

.chart-dot--call,
.chart-dot--stop {
  fill: var(--teal-700);
  opacity: 0.9;
}

.chart-dot--river {
  fill: var(--paper-2);
  stroke: var(--teal-900);
  stroke-width: 2.2;
}

.chart-label {
  font-family: var(--sans);
  font-size: calc(11px * var(--k, 1));
  font-weight: 600;
  letter-spacing: 0.01em;
  fill: var(--teal-950);
  paint-order: stroke;
  stroke: rgba(246, 241, 229, 0.94);
  stroke-width: calc(3.2px * var(--k, 1));
  stroke-linejoin: round;
}

.chart-route {
  stroke-width: calc(2.1px * var(--k, 1));
}

.chart figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(251, 248, 240, 0.86);
  padding: 4px 8px;
  line-height: 1.4;
}

.chart-block {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(14px, 2vw, 26px);
  max-width: 980px;
  margin-inline: auto;
}

.lede-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
}

.hero-aside {
  border-left: 1px solid rgba(247, 243, 232, 0.2);
  padding-left: clamp(18px, 2vw, 28px);
}

.hero-aside h2 {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-aside dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.hero-aside dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(247, 243, 232, 0.1);
}

.hero-aside dt {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--paper);
}

.hero-aside dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(247, 243, 232, 0.66);
}

.hero-aside dd em {
  font-style: normal;
  color: var(--gold);
}

.hero-aside__note {
  margin-top: 14px !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: rgba(247, 243, 232, 0.5) !important;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-top: 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dot-key {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
}

.dot-key--gateway {
  background: var(--teal-900);
}

.dot-key--call {
  background: var(--teal-700);
}

.dot-key--river {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 2px var(--teal-900);
}

.chart-legend__note {
  margin-left: auto;
  font-size: 10.5px;
  opacity: 0.85;
}

/* ---------- dark hero with optional chart ---------- */

.route-hero {
  position: relative;
  background: var(--teal-950);
  color: var(--paper);
  padding-block: clamp(30px, 4vw, 52px) clamp(44px, 5vw, 72px);
  overflow: hidden;
}

.route-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 8% 0%, rgba(215, 189, 136, 0.13), transparent 62%);
  pointer-events: none;
}

.route-hero > .wrap {
  position: relative;
}

.route-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(22px, 3vw, 40px);
}

.route-hero__text h1,
.lede-hero h1 {
  font-size: clamp(38px, 5.4vw, 74px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  margin-top: 16px;
}

.lede-hero h1 em,
.route-hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.route-hero__text p,
.lede-hero p {
  margin-top: 20px;
  max-width: 48ch;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.62;
  color: rgba(247, 243, 232, 0.82);
}

.route-hero__dates {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.route-hero .chart {
  border: 1px solid rgba(247, 243, 232, 0.2);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

.route-hero .crumbs,
.lede-hero .crumbs {
  color: rgba(247, 243, 232, 0.6);
}

.route-hero .eyebrow,
.lede-hero .eyebrow {
  margin-top: 26px;
}

.lede-hero {
  position: relative;
  background: var(--teal-950);
  color: var(--paper);
  padding-block: clamp(30px, 4vw, 48px) clamp(48px, 6vw, 80px);
  overflow: hidden;
}

.lede-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 90% 0%, rgba(215, 189, 136, 0.12), transparent 60%);
  pointer-events: none;
}

.lede-hero > .wrap {
  position: relative;
}

.lede-hero--plain h1,
.lede-hero--ship h1 {
  font-size: clamp(42px, 7vw, 96px);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 4vw, 56px);
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: 22px;
  border-top: 1px solid rgba(247, 243, 232, 0.18);
}

.stat-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-row b {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1;
}

.stat-row span {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.55);
}

/* ---------- filter bar ---------- */

.filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-top: 26px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
}

.segmented button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 11px 18px 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button span {
  margin-left: 7px;
  font-size: 9.5px;
  opacity: 0.6;
}

.segmented button:hover {
  background: rgba(19, 35, 32, 0.05);
}

.segmented button[aria-pressed='true'] {
  background: var(--teal-900);
  color: var(--paper);
}

.segmented button[aria-pressed='true'] span {
  opacity: 0.7;
}

.filterbar__fields {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.filterbar__fields .field {
  min-width: 148px;
}

.filterbar__fields .field > span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}

.filterbar__note {
  font-size: 11.5px;
  color: var(--muted);
  max-width: 36ch;
  text-align: right;
}

/* ---------- route rows ---------- */

.route-list {
  border-bottom: 1px solid var(--line);
}

.route-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(90px, 190px) 104px 24px;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  padding: clamp(18px, 2vw, 26px) 6px;
  border-top: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.route-row:hover {
  background: rgba(19, 35, 32, 0.035);
}

.route-row__date {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.route-row__date b {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
}

.route-row__date span {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

.route-row__date em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--brick);
  margin-top: 4px;
}

.route-row__main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.route-row__eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.route-row__title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1.12;
}

.route-row__ports {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-row__strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10px;
}

.route-row__strip::before {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  background: var(--line);
}

.route-row__strip i {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.4px var(--teal-700);
}

.route-row__strip i:first-child {
  background: var(--brick);
  box-shadow: none;
  width: 6px;
  height: 6px;
}

.route-row__strip i:last-child {
  background: var(--teal-900);
  box-shadow: none;
  width: 6px;
  height: 6px;
}

.route-row:hover .route-row__strip i {
  box-shadow: inset 0 0 0 1.4px var(--brick);
}

.route-row__meta {
  text-align: right;
  line-height: 1.1;
}

.route-row__meta b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
}

.route-row__meta span {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}

.route-row__meta em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

.route-row__go {
  font-size: 16px;
  color: var(--teal-800);
  transition: transform 0.3s var(--ease);
}

.route-row:hover .route-row__go {
  transform: translateX(5px);
}

.list-empty {
  padding: 40px 0;
  font-size: 15.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.list-empty b {
  color: var(--ink);
  font-weight: 500;
}

.list-empty a {
  border-bottom: 1px solid var(--line);
}

.candidate {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px dashed var(--line);
  max-width: 74ch;
}

.candidate h3 {
  font-size: 22px;
  margin: 8px 0 8px;
}

.candidate p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.candidate a {
  border-bottom: 1px solid var(--line);
}

/* ---------- split band ---------- */

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.split-band__media {
  position: relative;
  min-height: 320px;
}

.split-band__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-band__text {
  padding: clamp(26px, 3.4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-band__text h2 {
  font-size: clamp(28px, 2.8vw, 40px);
  margin: 12px 0 16px;
}

.split-band__text p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #3a4844;
  max-width: 46ch;
}

.split-band__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ---------- destinations ---------- */

.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 22px;
}

.dest {
  padding: 0 26px 26px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

/* Every card carries a piece of the same chart, cropped around its own port.
   The crop is a background-size/position pair computed in build-pages.mjs, so
   the dot sits at the true Mercator position of the berth. */
.dest__map {
  position: relative;
  aspect-ratio: 2 / 1;
  margin: 0 -26px 20px;
  background-color: #dde8e4;
  background-image: url('../img/east-asia.svg');
  background-repeat: no-repeat;
  background-size: var(--vz, 1400%) auto;
  background-position: var(--vx, 50%) var(--vy, 50%);
  overflow: hidden;
  filter: contrast(1.14) saturate(1.35) brightness(0.99);
}

.dest__map::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(19, 35, 32, 0.1), inset 0 -22px 26px -18px rgba(11, 42, 40, 0.22);
  pointer-events: none;
}

.dest__map::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--teal-900);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 5px rgba(11, 42, 40, 0.18);
}

.dest__map--gateway::after {
  background: var(--brick);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 5px rgba(180, 66, 46, 0.24);
}

.dest__map--river::after {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 5px rgba(215, 189, 136, 0.34);
}

.dest__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dest h3 {
  font-size: 23px;
  line-height: 1.15;
}

.dest__role {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.dest__coords {
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
}

.dest__note {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #3a4844;
}

.dest__links {
  margin-top: auto;
  padding-top: 16px;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.dest__links a {
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease);
}

.dest__links a:hover {
  color: var(--brick);
}

.guide-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.guide-duo__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(26px, 3vw, 40px);
  background: var(--teal-900);
  color: var(--paper);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.guide-duo__item:hover {
  background: var(--teal-800);
  transform: translateY(-3px);
}

.guide-duo__item h2 {
  font-size: clamp(28px, 2.6vw, 38px);
}

.guide-duo__item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(247, 243, 232, 0.78);
  max-width: 40ch;
}

.guide-duo__item .link {
  margin-top: 12px;
  align-self: flex-start;
  color: var(--gold-soft);
}

/* ---------- fleet ---------- */

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: 30px;
}

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

.fleet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.fleet-card__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe7e3;
}

.fleet-grid--two .fleet-card__photo {
  aspect-ratio: 21 / 9;
}

.fleet-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}

.fleet-card:hover .fleet-card__photo img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.03);
}

.fleet-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(19, 35, 32, 0.14), inset 0 -30px 34px -26px rgba(6, 29, 28, 0.4);
  pointer-events: none;
}

.fleet-card__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 4px 7px;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4eee1;
  background: rgba(6, 29, 28, 0.6);
  backdrop-filter: blur(3px);
}

.fleet-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: clamp(20px, 2.2vw, 30px);
}

.fleet-card::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--brick);
  transition: width 0.4s var(--ease);
  z-index: 2;
}

.fleet-card:hover {
  border-color: rgba(19, 35, 32, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(19, 35, 32, 0.08);
}

.fleet-card:hover::after {
  width: 100%;
}

.fleet-card__line {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fleet-card h3 {
  font-size: clamp(24px, 2.1vw, 31px);
  line-height: 1.08;
}

.fleet-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #3a4844;
}

.fleet-card__meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-800);
}

.fleet-card__meta span {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}

.fleet-card:hover .fleet-card__meta span {
  transform: translateX(4px);
}

.note-block {
  max-width: 74ch;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.note-block--tight {
  margin-top: 44px;
}

.note-block h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  margin-bottom: 12px;
}

.note-block p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #3a4844;
}

/* ---------- ship page ---------- */

.sailing-list {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.sailing-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease);
}

.sailing-row:hover {
  background: rgba(19, 35, 32, 0.035);
}

.sailing-row__date b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  display: block;
  line-height: 1;
}

.sailing-row__date span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.sailing-row__body b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  display: block;
}

.sailing-row__body span {
  font-size: 12.5px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.sailing-row__nights {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- calendar ---------- */

.cal-month {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-top: clamp(28px, 3vw, 44px);
}

.cal-month:first-child {
  margin-top: 34px;
}

.cal-month__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.cal-month__head h2 {
  font-size: clamp(26px, 2.6vw, 38px);
}

.cal-month__count {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-month__count em {
  font-style: normal;
  margin-right: 10px;
  color: #4a5854;
}

.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cal-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 104px 22px;
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s var(--ease);
}

.cal-item:hover {
  background: rgba(19, 35, 32, 0.03);
}

.cal-item__day {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.cal-item__day b {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.cal-item__day span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.cal-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cal-item__meta {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-item__title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}

.cal-item__title:hover {
  color: var(--brick);
}

.cal-item__route {
  font-size: 12.5px;
  color: var(--muted);
}

.cal-item__nights {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.cal-item__go {
  color: var(--teal-800);
  transition: transform 0.3s var(--ease);
}

.cal-item:hover .cal-item__go {
  transform: translateX(4px);
}

/* ---------- request band ---------- */

.request-band {
  background: var(--teal-900);
  color: var(--paper);
  padding-block: clamp(48px, 5vw, 76px);
  position: relative;
  overflow: hidden;
}

.request-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 90% at 100% 0%, rgba(215, 189, 136, 0.12), transparent 58%);
  pointer-events: none;
}

.request-band .wrap {
  position: relative;
}

.request-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
}

.request-band h2 {
  font-size: clamp(30px, 3vw, 44px);
  margin: 12px 0 16px;
}

.request-band p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(247, 243, 232, 0.78);
  max-width: 42ch;
}

.request-band__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: end;
}

.request-band__form .field label {
  color: rgba(247, 243, 232, 0.55);
}

.request-band__form .field input,
.request-band__form .field select {
  color: var(--paper);
  border-bottom-color: rgba(247, 243, 232, 0.3);
  background: transparent;
}

.request-band__form .field select option {
  color: var(--ink);
}

.request-band__form .field input::placeholder {
  color: rgba(247, 243, 232, 0.34);
}

.request-band__form .btn {
  grid-column: 1 / -1;
  justify-content: center;
}

.request-band__form .form__note {
  grid-column: 1 / -1;
  color: rgba(247, 243, 232, 0.5);
  margin: 0;
}

.request-band .form__done {
  display: none;
  border-color: rgba(215, 189, 136, 0.5);
  color: var(--paper);
  background: rgba(247, 243, 232, 0.06);
  max-width: 52ch;
}

.request-band.is-sent .request-band__form {
  display: none;
}

.request-band.is-sent .form__done {
  display: block;
}

/* ---------- misc additions ---------- */

.port__note {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.stop-time {
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick) !important;
  margin-bottom: 7px;
}

.inline-figure {
  margin: 34px 0 0;
}

.inline-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.inline-figure figcaption {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.list-foot a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.list-foot a:hover {
  color: var(--brick);
}

/* ---------- responsive: second edition ---------- */

@media (max-width: 1080px) {
  .route-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .route-hero .chart {
    max-width: 520px;
  }
  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .request-band__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .chart-block {
    padding: 14px;
  }
}

@media (max-width: 900px) {
  .dest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lede-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .hero-aside {
    border-left: 0;
    border-top: 1px solid rgba(247, 243, 232, 0.2);
    padding-left: 0;
    padding-top: 22px;
  }
  .split-band {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-band__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .split-band__media img {
    position: static;
    height: 100%;
  }
  .route-row {
    grid-template-columns: 72px minmax(0, 1fr) 26px;
    row-gap: 10px;
  }
  .route-row__strip {
    display: none;
  }
  .route-row__meta {
    grid-column: 2;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .route-row__meta em {
    display: inline;
    margin: 0 0 0 6px;
  }
  .route-row__go {
    grid-row: 1;
    grid-column: 3;
  }
  .route-row__ports {
    white-space: normal;
  }
  .section-head__hint,
  .filterbar__note {
    text-align: left;
  }
  .guide-duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .cal-item {
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    row-gap: 6px;
  }
  .cal-item__nights {
    grid-column: 2;
    text-align: left;
  }
  .cal-item__go {
    grid-row: 1;
    grid-column: 3;
  }
  .request-band__form {
    grid-template-columns: minmax(0, 1fr);
  }
  .fleet-grid,
  .fleet-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
  .fleet-card {
    min-height: 0;
  }
  .dest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dest {
    border-right: 0;
  }
  .segmented {
    width: 100%;
  }
  .segmented button {
    flex: 1;
    text-align: center;
    padding-inline: 8px;
  }
  .filterbar__fields {
    width: 100%;
  }
  .filterbar__fields .field {
    flex: 1;
  }
  .chart-legend__note {
    margin-left: 0;
  }
  .chart--hero,
  .chart--route {
    --k: 2.6;
  }
  .sailing-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .sailing-row__nights {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .route-row {
    grid-template-columns: 62px minmax(0, 1fr) 18px;
    gap: 12px;
  }
  .route-row__date b {
    font-size: 23px;
  }
  .stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
  }
  .chart--hero,
  .chart--route {
    --k: 2.8;
  }
}

/* ---------- hero side panels: fleet index, month counts ---------- */

.hero-index {
  border-top: 1px solid rgba(247, 243, 232, 0.2);
  padding-top: 14px;
}

.hero-index h2 {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-index a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(247, 243, 232, 0.1);
}

.hero-index a span {
  grid-row: 1 / 3;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(215, 189, 136, 0.85);
}

.hero-index a b {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}

.hero-index a em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.48);
}

.hero-index a:hover b {
  color: var(--gold-soft);
}

.hero-aside--counts dl > div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hero-aside--counts dd {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--paper);
}

/* ---------- header at tablet and narrow widths ---------- */
/* Four nav items plus the CTA do not fit between 761px and 820px; below that
   the CTA drops and the nav tightens so the bar never scrolls sideways. */

@media (max-width: 900px) {
  .site-header .wrap {
    gap: 16px;
  }
  .nav {
    gap: 16px;
  }
  .header-cta {
    padding: 10px 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 820px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 430px) {
  .site-header .wrap {
    gap: 8px;
  }
  .brand {
    font-size: 16px;
    letter-spacing: 0;
  }
  .nav {
    gap: 10px;
  }
  .nav a {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
}

/* ---------- calendar: month head on one line ---------- */
/* At 390px the "last date of 2026" note plus the count pushes the month name
   onto a second line, so the note drops and the count stops wrapping. */

@media (max-width: 560px) {
  .cal-month__count {
    white-space: nowrap;
  }
  .cal-month__count em {
    display: none;
  }
  .cal-month__head {
    gap: 10px;
  }
  .cal-month__head h2 {
    font-size: 24px;
  }
}

/* ---------- port strip: one atlas crop per call ---------- */
/* A route page used to be a numbered list. Each call now also gets the coast
   around it, cropped from the same chart the hero draws, so the sequence can
   be read as a passage rather than a table. */

.port-strip {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 20px 16px;
}

.port-strip li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.port-strip__map {
  position: relative;
  aspect-ratio: 3 / 2;
  margin-bottom: 9px;
  background-color: #dde8e4;
  background-image: url('../img/east-asia.svg');
  background-repeat: no-repeat;
  background-size: var(--vz, 2400%) auto;
  background-position: var(--vx, 50%) var(--vy, 50%);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: contrast(1.14) saturate(1.35) brightness(0.99);
  transition: border-color 0.3s var(--ease);
}

.port-strip li:hover .port-strip__map {
  border-color: rgba(19, 35, 32, 0.4);
}

.port-strip__map::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--teal-900);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(11, 42, 40, 0.2);
}

.port-strip__map--gateway::after {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--brick);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.9), 0 0 0 4.5px rgba(180, 66, 46, 0.24);
}

.port-strip__map--river::after {
  background: var(--gold);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(215, 189, 136, 0.4);
}

.port-strip__idx {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.port-strip b {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.port-strip__role {
  margin-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .port-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 48%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    gap: 0 14px;
  }
  .port-strip li {
    scroll-snap-align: start;
  }
  .port-strip__map {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- ship plate: the photograph band on a single-ship page ---------- */

.ship-plate {
  margin: 0;
  padding: 0;
}

.ship-plate img {
  display: block;
  width: 100%;
  height: clamp(230px, 36vw, 500px);
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.95);
}

.ship-plate figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: space-between;
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding: 12px var(--pad) 0;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.ship-plate figcaption .credit,
.inline-figure figcaption .credit {
  text-transform: none;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.inline-figure figcaption .credit {
  display: block;
  margin-top: 4px;
}

@media (max-width: 700px) {
  .ship-plate img {
    height: 210px;
  }
  .ship-plate figcaption {
    font-size: 9px;
  }
}

/* the whole programme drawn at once on the routes hero */
.chart-route--faint {
  stroke: var(--teal-700, #2f5350);
  stroke-opacity: 0.46;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* ---------- calendar hero: departures drawn as bars, not a column of numbers ---------- */

.month-bars {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.month-bars li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 26px;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(247, 243, 232, 0.12);
}

.month-bars li:last-child {
  border-bottom: 0;
}

.month-bars__m {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.66);
  font-variant-numeric: tabular-nums;
}

.month-bars__track {
  display: block;
  height: 6px;
}

.month-bars__bar {
  display: flex;
  gap: 2px;
  height: 100%;
  min-width: 2px;
}

.month-bars__bar i {
  display: block;
  height: 100%;
  min-width: 0;
}

.month-bars__bar .k--ocean {
  background: var(--gold);
}

.month-bars__bar .k--river {
  background: rgba(247, 243, 232, 0.42);
}

.month-bars b {
  font-size: 11px;
  font-weight: 500;
  text-align: right;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.month-bars__legend {
  display: flex;
  gap: 16px;
  margin: 10px 0 0;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 232, 0.6);
}

.month-bars__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.month-bars__legend .k {
  width: 14px;
  height: 4px;
}

.month-bars__legend .k--ocean {
  background: var(--gold);
}

.month-bars__legend .k--river {
  background: rgba(247, 243, 232, 0.42);
}

/* ---------- guide duo with photography ---------- */

.guide-duo__item--photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 300px;
  justify-content: flex-end;
}

.guide-duo__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transition: transform 1s var(--ease);
}

.guide-duo__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 29, 28, 0.95) 0%, rgba(6, 29, 28, 0.86) 38%, rgba(6, 29, 28, 0.34) 78%, rgba(6, 29, 28, 0.18) 100%);
}

@media (max-width: 700px) {
  .guide-duo__scrim {
    background: linear-gradient(178deg, rgba(6, 29, 28, 0.5) 0%, rgba(6, 29, 28, 0.88) 55%, rgba(6, 29, 28, 0.96) 100%);
  }
}

.guide-duo__item--photo:hover .guide-duo__bg {
  transform: scale(1.05);
}

/* ---------- ship inset beside the prose on a route page ---------- */

.side-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
  margin-top: 14px;
}

.side-figure figure {
  margin: 0;
}

.side-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.95);
}

.side-figure figcaption {
  margin-top: 8px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-figure figcaption .credit {
  display: block;
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0.03em;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .side-figure {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-figure figure {
    order: -1;
  }
}
