/* voyage.css: the family page. Tokens only (tokens.css); shared classes are in base.css. DESIGN.md sections 5 and 6.
   Layout follows <body data-phase data-hero data-fresh data-quiet>, set by js/voyage/main.js.
   Custom properties beginning --_ are set from JavaScript (docs/SPEC-2.md 3.7). */

/* ───────── Page ───────── */
html { scroll-padding-top: 72px; }
html.is-locked { overflow: hidden; }
body { position: relative; min-height: 100vh; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 44rem; pointer-events: none; z-index: 0;
  background: radial-gradient(70rem 30rem at 10% -9rem, var(--wash-a), transparent 62%), radial-gradient(80rem 32rem at 82% -11rem, var(--wash-b), transparent 60%);
}
body > * { position: relative; z-index: 1; }
body > dialog { position: fixed; }
.v-wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.v-noscript { padding: var(--s-4) var(--gutter); }
.v-pos { white-space: nowrap; }

/* ───────── Header and sticky bar ───────── */
.v-top { display: flex; align-items: center; gap: var(--s-3); padding-block: 18px 0; }
.v-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.v-brand:hover { color: var(--text); }
.v-brand .icon { width: 22px; height: 22px; color: var(--accent); }
.v-top__dates { margin-left: auto; color: var(--text-3); font-size: var(--fs-sm); white-space: nowrap; }
.v-horizon { height: 1px; margin-top: var(--s-4); background: linear-gradient(90deg, transparent, var(--accent) 22%, var(--aurora) 58%, transparent); opacity: .45; }
@media (max-width: 419.98px) { .v-top__lead { display: none; } }

.v-stick {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-stick); border-width: 0 0 1px; border-radius: 0;
  transform: translateY(-110%); visibility: hidden; transition: transform var(--t-enter) var(--ease), visibility 0s var(--t-enter);
}
.v-stick.is-on { transform: none; visibility: visible; transition: transform var(--t-enter) var(--ease); }
html.is-locked .v-stick, body:not([data-phase="underway"]) .v-stick { display: none; }
.v-stick__in { display: flex; align-items: center; gap: 10px; min-height: 50px; font-size: var(--fs-ui); white-space: nowrap; }
.v-stick__in b { font-weight: 600; }
.v-stick__place { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v-stick__age { color: var(--text-2); margin-left: auto; padding-left: var(--s-2); }

.v-banners { display: grid; gap: var(--s-2); }
.v-banners:not(:empty) { padding-top: var(--s-3); }

/* ───────── Hero grid ───────── */
.v-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "post" "side"; }
.v-hero-post { grid-area: post; }
.v-hero__side { grid-area: side; min-width: 0; }
.v-status { grid-area: status; min-width: 0; }
.v-lastpost { grid-area: last; }
.v-hero--status { grid-template-areas: "status" "side" "last"; gap: 22px; padding-top: 26px; }
.v-hero-after { display: grid; gap: var(--s-3); padding-top: var(--s-4); }
.v-hero-after:empty { display: none; }

/* ───────── Hero post ───────── */
.v-hero-post {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-photo); margin-inline: calc(var(--gutter) * -1);
  height: clamp(440px, calc(100vh - 290px), 600px); height: clamp(440px, calc(100svh - 290px), 600px); background: var(--photo-plate);
}
.v-hero-post__track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.v-hero-post__track::-webkit-scrollbar { display: none; }
.v-hero-post__slide {
  position: relative; flex: 0 0 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--photo-plate); background-size: cover; background-position: center;
}
.v-hero-post__slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-photo) linear; }
.v-hero-post__slide img.is-in { opacity: 1; }
.v-hero-post__slide:focus-visible { outline-color: var(--on-photo); outline-offset: -4px; border-radius: 0; }
.v-hero-post__shade { position: absolute; inset: 0 0 auto 0; height: 124px; pointer-events: none; background: linear-gradient(180deg, rgb(var(--photo-ink) / .76), rgb(var(--photo-ink) / .62) 54px, transparent); }
.v-hero-post__body {
  position: absolute; inset: auto 0 0 0; pointer-events: none; padding: 84px var(--gutter) 18px;
  background: linear-gradient(180deg, transparent 0, rgb(var(--photo-ink) / .64) 78px, rgb(var(--photo-ink) / .82) 62%, rgb(var(--photo-ink) / .94) 100%);
}
.v-hero-post__body a, .v-hero-post__body button { pointer-events: auto; }
.v-hero-post--text .v-hero-post__body { background: none; }
.v-hero-post__by { display: flex; align-items: center; gap: 10px; font-size: var(--fs-ui); line-height: 1.3; }
.v-hero-post__by .avatar { background: var(--on-photo); color: var(--on-photo-dark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--on-photo) 28%, transparent); }
.v-hero-post__by b { display: block; font-weight: 600; font-size: 1rem; }
.v-hero-post__by span span { color: var(--on-photo-2); }
.v-hero-post__quote {
  margin-top: var(--s-3); font-size: var(--fs-quote); font-weight: 600; letter-spacing: -0.022em; line-height: 1.16; text-wrap: balance; max-width: 22em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; text-shadow: 0 1px 14px rgb(var(--photo-ink) / .55);
}
.v-hero-post--since .v-hero-post__quote { -webkit-line-clamp: 3; line-clamp: 3; }
.v-hero-post--text .v-hero-post__quote { -webkit-line-clamp: 9; line-clamp: 9; }
.v-hero-post__foot { display: flex; align-items: center; gap: 10px; margin-top: var(--s-4); }
.v-hero-post__read { padding: 0 14px 0 18px; border-radius: var(--r-full); white-space: nowrap; min-height: 44px; }
.v-hero-post__share { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--on-photo); background: rgb(var(--photo-ink) / .62); cursor: pointer; flex: none; transition: transform var(--t-press) var(--ease); }
.v-hero-post__share:active { transform: scale(.94); }
.v-hero-post__read:focus-visible, .v-hero-post__share:focus-visible, .v-hero-post__arrow:focus-visible, .v-hero-post__dots button:focus-visible, .v-since--pill:focus-visible { outline-color: var(--on-photo); }
.v-hero-post__pager { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.v-hero-post__count, .v-hero-post__wait { font-size: var(--fs-sm); font-weight: 550; color: var(--on-photo-2); white-space: nowrap; }
.v-hero-post__wait { display: inline-flex; align-items: center; gap: 6px; }
.v-hero-post__dots { display: flex; }
.v-hero-post__dots button { width: 24px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.v-hero-post__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--on-photo); opacity: .6; transition: width var(--t-enter) var(--ease), opacity var(--t-enter) linear; }
.v-hero-post__dots button[aria-current="true"]::before { width: 18px; opacity: 1; }
.v-hero-post__arrow {
  position: absolute; top: 36%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: none; place-items: center; color: var(--on-photo);
  background: rgb(var(--photo-ink) / .62); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity var(--t-enter) linear, transform var(--t-press) var(--ease);
}
.v-hero-post__arrow--prev { left: 14px; }
.v-hero-post__arrow--next { right: 14px; }
.v-hero-post__arrow:active { transform: scale(.94); }
.v-hero-post__arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .v-hero-post__arrow { display: grid; } }
@media (max-width: 419.98px) { .v-hero-post__count { display: none; } }
/* loading: a hero-sized plate with words and three skeleton bars */
.v-hero-post--loading { display: grid; align-content: end; gap: var(--s-3); padding: var(--s-6) var(--gutter); }
.v-hero-post--loading p { font-size: var(--fs-ui); color: var(--on-photo-2); }
.v-hero-post--loading .skeleton { max-width: 30rem; }

/* ───────── Since you last looked ───────── */
.v-since { text-decoration: none; }
.v-since--pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 3px 11px 3px 9px; border-radius: 14px; background: var(--photo-new); color: var(--on-photo-dark);
  font-size: var(--fs-sm); font-weight: 650; line-height: 1.35; margin-bottom: var(--s-3); max-width: 100%;
}
.v-since--pill:hover { color: var(--on-photo-dark); }
.v-since--pill i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--on-photo-dark); flex: none; }
.v-since--pill i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--on-photo-dark); animation: ping 2.4s var(--ease) infinite; }
.v-since--row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--text); font-size: var(--fs-ui); line-height: 1.4; margin-bottom: var(--s-4); max-width: 34rem; }
.v-since--row:hover { color: var(--text); }
.v-since--row i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.v-since__short { display: none; }
@media (max-width: 719.98px) { .v-since--pill .v-since__long { display: none; } .v-since--pill .v-since__short { display: inline; } }

/* ───────── Live strip ───────── */
/* One document order (main, sea, bar, age, word), two placements: the sea part ends the first line from 400 px and starts the second below that. */
.v-live {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline;
  padding: 13px var(--gutter) 14px; margin-inline: calc(var(--gutter) * -1); background: var(--surface); border-bottom: 1px solid var(--border);
}
.v-live__main { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-ui); font-weight: 500; line-height: 1.4; white-space: nowrap; }
.v-live__main b { font-weight: 650; }
.v-live__place { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v-live__place::before, .v-stick__place::before { content: "·"; color: var(--text-3); margin-right: 10px; }
.v-live__bar {
  grid-column: 1 / -1; grid-row: 2; height: 2px; margin: 9px 0 8px; border-radius: 1px; background: linear-gradient(90deg, var(--accent) var(--_done, 0%), var(--border) var(--_done, 0%));
  -webkit-mask: repeating-linear-gradient(90deg, var(--text) 0 calc(100% / var(--_n, 23) - 2px), transparent 0 calc(100% / var(--_n, 23)));
  mask: repeating-linear-gradient(90deg, var(--text) 0 calc(100% / var(--_n, 23) - 2px), transparent 0 calc(100% / var(--_n, 23)));
}
.v-live__sea { grid-column: 1; grid-row: 3; font-size: var(--fs-sm); color: var(--text-2); white-space: nowrap; }
.v-live__sea .swatch { margin-right: 6px; }
.v-live__sea::after { content: "·"; color: var(--text-3); margin-inline: .45em; }
.v-live__age { grid-column: 1 / -1; grid-row: 3; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45; min-width: 0; }
.v-live__sea ~ .v-live__age { grid-column: 2; }
/* base.css keeps a <time> on one line; these hold a whole sentence about the ship's last report */
.v-live__age time, .v-status time, .v-map__sheet time, .v-cond__note time { white-space: normal; }
.v-live__next { display: none; }
.v-live__word { grid-column: 1 / -1; grid-row: 4; display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45; }
@media (min-width: 400px) {
  .v-live__main { grid-column: 1; }
  .v-live__sea { grid-column: 2; grid-row: 1; font-size: var(--fs-ui); font-weight: 500; line-height: 1.4; color: var(--text); }
  .v-live__sea::after { content: none; }
  .v-live__sea::before { content: "·"; color: var(--text-3); margin-inline: 10px; }
  .v-live__age, .v-live__sea ~ .v-live__age { grid-column: 1 / -1; }
}

/* ───────── Status hero ───────── */
.v-status__kicker { font-size: var(--fs-ui); font-weight: 500; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.v-status__kicker b { color: var(--accent); font-weight: 600; }
.v-status__line { font-size: var(--fs-status); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin-top: 10px; text-wrap: balance; }
.v-status__lead { margin-top: 14px; font-size: 1.125rem; color: var(--text-2); line-height: 1.45; max-width: 34rem; }
.v-status__lead .swatch { margin-right: 8px; }
.v-status__lead p + p { margin-top: 6px; }
.v-status__fresh { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: 22px; padding: 12px 16px 12px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); max-width: 30rem; }
.v-status__fresh .status-dot { margin-top: 5px; }
.v-status__fresh b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; }
.v-status__fresh span span { display: block; font-size: var(--fs-ui); color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.v-status__word { display: flex; align-items: center; gap: 10px; margin-top: var(--s-4); font-size: var(--fs-ui); color: var(--text-2); line-height: 1.45; max-width: 34rem; }
.v-status__next { display: none; margin-top: var(--s-4); font-size: var(--fs-body); color: var(--text-2); max-width: 34rem; }
.v-status__next b { color: var(--text); font-weight: 600; }
.v-status__note { margin-top: var(--s-4); font-size: var(--fs-ui); color: var(--text-2); line-height: 1.5; max-width: 34rem; }

/* ───────── Last post, small ───────── */
.v-lastpost {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); max-width: 34rem; transition: background-color var(--t-press) linear;
}
.v-lastpost:hover { background: var(--raised); color: var(--text); }
.v-lastpost__ph { width: 88px; height: 88px; border-radius: var(--r-md); overflow: hidden; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-size: 1.75rem; font-weight: 600; }
.v-lastpost__ph img { width: 100%; height: 100%; object-fit: cover; }
.v-lastpost__k { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); line-height: 1.35; }
.v-lastpost__t { font-size: var(--fs-ui); line-height: 1.4; margin-top: 3px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.v-lastpost__m { display: block; font-size: var(--fs-sm); color: var(--accent); font-weight: 550; margin-top: 4px; }

/* ───────── Map card ───────── */
.v-map {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--map-sea); border: 1px solid var(--border); aspect-ratio: 1 / 1; max-height: 78vh; width: 100%;
  isolation: isolate; margin-top: var(--s-4); scroll-margin-top: 64px;
}
.v-hero--status .v-map { margin-top: 0; aspect-ratio: 4 / 5; }
.v-map__gl, .v-map__drawn { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-map__gl { opacity: 0; transition: opacity var(--t-photo) linear; }
.v-map.is-ready .v-map__gl { opacity: 1; }
.v-map.is-ready .v-map__drawn { opacity: 0; visibility: hidden; transition: opacity var(--t-photo) linear, visibility 0s var(--t-photo); }
.v-map__drawn svg { width: 100%; height: 100%; }
.v-map__drawn text { font: 500 13px var(--sans); fill: var(--map-ink); opacity: .8; }
.v-map__drawn .d-sea { fill: var(--map-label); font-style: italic; }
.v-map__drawn .d-planned { fill: none; stroke: var(--map-planned); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 5; }
.v-map__drawn .d-casing { fill: none; stroke: var(--map-casing); stroke-linecap: round; stroke-linejoin: round; }
.v-map__drawn .d-track { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v-map__drawn .d-c0 { fill: none; stroke: var(--map-none); stroke-width: 2; stroke-dasharray: 4 5; }
.v-map__drawn .d-c1 { stroke: var(--wave-1); } .v-map__drawn .d-c2 { stroke: var(--wave-2); } .v-map__drawn .d-c3 { stroke: var(--wave-3); }
.v-map__drawn .d-c4 { stroke: var(--wave-4); } .v-map__drawn .d-c5 { stroke: var(--wave-5); }
.v-map__drawn .d-w1 { stroke-width: 3; } .v-map__drawn .d-w2 { stroke-width: 4; } .v-map__drawn .d-w3 { stroke-width: 5; } .v-map__drawn .d-w4 { stroke-width: 6; } .v-map__drawn .d-w5 { stroke-width: 7; }
.v-map__drawn .d-k1 { stroke-width: 6; } .v-map__drawn .d-k2 { stroke-width: 7; } .v-map__drawn .d-k3 { stroke-width: 8; } .v-map__drawn .d-k4 { stroke-width: 9; } .v-map__drawn .d-k5 { stroke-width: 10; }
.v-map__drawn .d-stop { fill: var(--map-core); stroke: var(--map-accent); stroke-width: 2; }
.v-map__drawn .d-plan-stop { fill: var(--map-sea); stroke: var(--map-planned); stroke-width: 1.5; }
.v-map__drawn .d-mark { fill: var(--map-accent); stroke: var(--ship-edge); stroke-width: 1; }
.v-map__drawn .d-ship { fill: var(--accent); stroke: var(--ship-edge); stroke-width: 3; }
.v-map__drawn .d-ship--last { fill: var(--map-sea); stroke: var(--accent); }
.v-map__drawn .d-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.v-map__msg { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; padding: 10px 14px; border-radius: var(--r-md); font-size: var(--fs-ui); line-height: 1.4; color: var(--text); }
.v-map__pill {
  position: absolute; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: var(--r-full);
  color: var(--text); font-size: var(--fs-ui); font-weight: 550; cursor: pointer; transition: transform var(--t-press) var(--ease);
}
.v-map__pill:active { transform: scale(.97); }
.v-map__explore { right: 12px; }
.v-map__key { left: 12px; }
.v-map__keypop { position: absolute; left: 12px; bottom: 64px; z-index: 3; padding: 12px 14px; border-radius: var(--r-card); max-width: min(19rem, calc(100% - 24px)); color: var(--text); }
.v-map.is-failed .v-map__pill, .v-map.is-failed .v-map__keypop { display: none; }
.v-legend { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--text); line-height: 1.4; }
.v-legend--row { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); }
.v-legend li { display: flex; align-items: center; gap: 8px; }
.v-legend small { color: var(--text-2); font-size: inherit; }
.v-legend__line { width: 18px; height: 0; border-top: 2px dashed var(--text-3); flex: none; }
.v-legend__line--dotted { border-top-style: dotted; }
.v-legend__ship { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--ship-edge), 0 0 0 3px var(--accent); flex: none; margin-inline: 3px; }
.v-legend__ship--last { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.v-legend__stop { width: 10px; height: 10px; border-radius: 50%; background: var(--map-core); border: 2px solid var(--accent); flex: none; margin-inline: 4px; }
.v-legend__post { width: 14px; height: 14px; border-radius: 5px; background: var(--raised); border: 2px solid var(--pin-edge); box-shadow: 0 0 0 1px var(--border-control); flex: none; margin-inline: 2px; }
.v-map__controls { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top)); z-index: 4; display: none; flex-direction: column; gap: var(--s-2); }
.v-map__controls .icon-btn { color: var(--text); }
.v-map__controls .icon-btn:nth-child(2) { margin-top: 6px; }
.v-map__sheet {
  display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--raised); border-top: 1px solid var(--hairline);
  box-shadow: var(--shadow-high); padding: 8px var(--gutter) calc(14px + env(safe-area-inset-bottom)); max-height: 62dvh; overflow: auto; overscroll-behavior: contain; color: var(--text);
}
.v-map__sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--border-control); margin: 0 auto 10px; opacity: .6; }
.v-map__peek { display: flex; align-items: center; gap: var(--s-3); }
.v-map__peek > div { min-width: 0; flex: 1; line-height: 1.3; }
.v-map__peek b { display: block; font-weight: 600; font-size: 1rem; }
.v-map__peek span span { display: block; font-size: var(--fs-ui); color: var(--text-2); }
.v-map__more { padding-top: 14px; }
.v-map__more h3 { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); margin: 14px 0 6px; }
.v-map__stops { display: grid; gap: 2px; }
.v-map__stops button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--r-ctl); background: transparent; text-align: left; font-size: var(--fs-ui); cursor: pointer; }
.v-map__stops button:hover { background: var(--surface); }
.v-map__stops small { margin-left: auto; color: var(--text-3); font-size: var(--fs-sm); white-space: nowrap; }
.v-map.is-full { position: fixed; inset: 0; z-index: var(--z-map-full); border-radius: 0; border: 0; aspect-ratio: auto; max-height: none; height: 100dvh; width: 100vw; margin: 0; }
.v-map.is-full .v-map__pill, .v-map.is-full .v-map__keypop { display: none; }
.v-map.is-full .v-map__controls { display: flex; }
.v-map.is-full .v-map__sheet { display: block; }
@media (min-width: 760px) {
  .v-map.is-full .v-map__sheet { left: 16px; right: auto; bottom: 16px; width: 420px; padding: 16px 20px; border-radius: var(--r-sheet); border: 1px solid var(--hairline); }
  .v-map__sheet::before { display: none; }
}

/* markers */
.v-ship { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ship-edge); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-low); cursor: default; }
.v-ship--live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2.4s var(--ease) infinite; }
.v-ship--last { background: var(--map-sea); border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--ship-edge); }
.v-ship__name { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font: 500 13px var(--sans); color: var(--map-ink); white-space: nowrap; text-shadow: 0 0 3px var(--map-halo), 0 0 3px var(--map-halo); }
.v-pin { width: 44px; height: 50px; padding: 0 0 6px; border: 0; background: none; cursor: pointer; }
.v-pin > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; overflow: hidden; border: 2px solid var(--pin-edge); background: var(--raised); box-shadow: var(--shadow-low); color: var(--text); font-weight: 600; font-size: .9375rem; transition: transform var(--t-press) var(--ease); }
.v-pin::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 8px; margin-left: -1px; background: var(--pin-edge); border-radius: 1px; }
.v-pin:hover > span { transform: scale(1.06); }
.v-pin img { width: 100%; height: 100%; object-fit: cover; }
.v-pin:focus-visible { border-radius: 16px; }
.v-pin--latest { width: 56px; height: 62px; z-index: 2; }
.v-pin--latest > span { width: 56px; height: 56px; border-radius: 18px; border: 3px solid var(--accent); box-shadow: 0 0 0 2px var(--ship-edge), var(--shadow-high); }
.v-pin--latest::after { background: var(--accent); width: 3px; margin-left: -1.5px; }
.v-pin__tag { position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); padding: 3px 10px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-style: normal; font-size: var(--fs-sm); font-weight: 650; line-height: 1.35; white-space: nowrap; box-shadow: var(--shadow-low); }
.v-mark { width: 11px; height: 11px; }
.v-mark::before { content: ""; position: absolute; inset: 1px; background: var(--map-accent); border: 1px solid var(--ship-edge); transform: rotate(45deg); }
.v-mark__label { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font: 500 13px var(--sans); color: var(--map-ink); white-space: nowrap; text-shadow: 0 0 3px var(--map-halo), 0 0 3px var(--map-halo); }
.v-mark--left .v-mark__label { left: auto; right: 17px; }
/* the library's own pieces, in our face and colours */
.v-map .maplibregl-map { font: inherit; }
.v-map .maplibregl-ctrl-scale { background: transparent; border: 0; border-bottom: 1.5px solid var(--map-ink); color: var(--map-ink); font: 500 13px var(--sans); padding: 0 4px 1px; opacity: .8; }
.v-map .maplibregl-ctrl-top-left { top: 6px; left: 6px; }
.v-map.is-full .maplibregl-ctrl-top-left { top: calc(10px + env(safe-area-inset-top)); }
.v-map .maplibregl-ctrl.maplibregl-ctrl-attrib { font: 400 13px/1.35 var(--sans); background: var(--glass); color: var(--text-2); border-radius: 12px; margin: 8px; min-height: 24px; }
.v-map .maplibregl-ctrl.maplibregl-ctrl-attrib.maplibregl-compact-show { padding: 3px 30px 3px 10px; }
.v-map .maplibregl-ctrl-attrib a { color: var(--text-2); }
.v-map .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button { background: none; display: grid; place-items: center; }
.v-map .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button::before { content: "i"; width: 16px; height: 16px; border: 1.5px solid currentColor; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--sans); color: var(--text-2); }
.v-map .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.v-map:not(.is-full) .maplibregl-ctrl-bottom-right { display: none; }
.v-map.is-full .maplibregl-ctrl-bottom-right { bottom: var(--_sheet, 96px); }
@media (min-width: 760px) { .v-map.is-full .maplibregl-ctrl-bottom-right { bottom: 10px; } }
.v-map .maplibregl-cooperative-gesture-screen { font: 500 1rem var(--sans); padding: 1.5rem; text-align: center; color: var(--on-photo); background: rgb(var(--photo-ink) / .64); }

/* ───────── Moment card, sun line ───────── */
.v-moment { position: relative; overflow: hidden; padding-top: 18px; }
.v-moment::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--aurora)); }
.v-moment h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; }
.v-moment__line { margin-top: 6px; font-size: var(--fs-ui); color: var(--text-2); line-height: 1.5; }
.v-moment__greeting { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--border-control); }
.v-moment__greeting .story { white-space: pre-wrap; }
.v-moment--compact .v-moment__greeting .story { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: var(--fs-body); }
.v-moment__from { margin-top: 8px; font-size: var(--fs-ui); font-weight: 600; }
.v-moment__label { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.v-moment__more { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); font-weight: 550; }
.v-day .v-moment { margin-top: 18px; scroll-margin-top: 72px; }

.v-sun { font-size: var(--fs-ui); line-height: 1.5; }
.v-sun__line { display: flex; gap: 10px; align-items: flex-start; }
.v-sun__line .icon { color: var(--warn); margin-top: 1px; }
.v-sun .disclosure { border-top: 0; margin-top: 2px; }
.v-daylight { display: grid; gap: 10px; padding-top: 4px; max-width: 44rem; }
.v-daylight__row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 10px; align-items: center; font-size: var(--fs-sm); color: var(--text-2); }
.v-daylight__bar { position: relative; height: 12px; }
.v-daylight__bar i { position: absolute; top: 50%; left: var(--_l); width: var(--_w); height: 2px; margin-top: -1px; background: var(--sun-night); border-radius: 1px; }
.v-daylight__bar i.is-twilight { height: 6px; margin-top: -3px; background: var(--sun-twilight); border-radius: 2px; }
.v-daylight__bar i.is-day { height: 12px; margin-top: -6px; background: var(--sun-day); border-radius: 3px; }
.v-daylight__ticks { position: relative; height: 18px; font-size: var(--fs-sm); color: var(--text-3); }
.v-daylight__ticks span { position: absolute; left: var(--_l); transform: translateX(-50%); }
.v-daylight__ticks span::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 5px; border-left: 1px solid var(--border-control); }
.v-daylight__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--text-2); align-items: center; }
.v-daylight__legend i { display: inline-block; width: 14px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.v-daylight__legend .is-day { height: 12px; background: var(--sun-day); } .v-daylight__legend .is-twilight { height: 6px; background: var(--sun-twilight); } .v-daylight__legend .is-dark { height: 2px; background: var(--sun-night); }
.v-daylight__choose { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-sm); color: var(--text-2); }

/* ───────── Sections ───────── */
.v-section { padding-top: 56px; }
.v-h2, .v-feed__head h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.v-h2 { margin-bottom: 18px; }

/* ───────── The story ───────── */
.v-feed { max-width: var(--feed); margin-inline: auto; }
.v-feed__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.v-feed__sub { font-size: var(--fs-sm); color: var(--text-3); margin-top: 6px; }
.v-feed__note { margin-top: var(--s-4); }
.v-feed__days { margin-top: 14px; }
.v-feed .empty { margin-top: var(--s-4); }
.v-feed .empty b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.v-day { padding: 26px 0 30px; border-top: 1px solid var(--border); scroll-margin-top: 64px; }
.v-day:first-child { border-top: 0; padding-top: 10px; }
.v-day__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: start; }
.v-day__n { display: none; }
.v-day__date { font-size: var(--fs-ui); color: var(--text-2); font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.v-day__date b { color: var(--text); font-weight: 600; }
.v-day h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin-top: 4px; }
.v-day h3 small { font-size: var(--fs-ui); font-weight: 450; color: var(--text-3); letter-spacing: 0; }
/* separators sit in each fact's left padding; the first 1em of the row is clipped, so a line never starts or ends with one */
.v-day__facts { font-size: var(--fs-ui); color: var(--text-2); line-height: 1.5; margin: 6px 0 0 -1em; display: flex; flex-wrap: wrap; clip-path: inset(0 0 0 1em); }
.v-day__facts span span { white-space: nowrap; }
.v-day__facts > span { position: relative; padding-left: 1em; }
.v-day__facts > span::before { content: "·"; position: absolute; left: 0; width: 1em; text-align: center; color: var(--text-3); }
.v-day__facts .swatch { margin-right: 6px; }
.v-day__head .icon-btn { margin: -6px -10px 0 0; }
.v-day--silent { padding: 14px 0; }
.v-day__quiet { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-ui); color: var(--text-2); line-height: 1.45; }
.v-day__quiet > i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--text-3); flex: none; margin-top: .42em; }
.v-day__quiet b { color: var(--text); font-weight: 600; }
.v-day__quiet small { display: block; color: var(--text-3); font-size: var(--fs-sm); }
.v-day.is-target, .v-post.is-target, .v-entry.is-target, .v-moment.is-target { box-shadow: -2px 0 0 var(--accent); padding-left: 14px; margin-left: -16px; border-left: 2px solid transparent; }

.v-post { margin-top: 22px; scroll-margin-top: 72px; }
.v-post + .v-post { margin-top: 34px; }
.v-post__by { display: flex; align-items: center; gap: 10px; font-size: var(--fs-ui); }
.v-post__by > span:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; line-height: 1.35; min-width: 0; }
.v-post__by b { font-weight: 600; }
.v-post__by small { flex-basis: 100%; color: var(--text-2); font-size: var(--fs-sm); }
.v-post__text { margin-top: 10px; }
.v-post__text p + p { margin-top: .8em; }
.v-post__sea { margin-top: var(--s-3); font-size: var(--fs-ui); color: var(--text-2); line-height: 1.5; }
.v-post__sea b { color: var(--text); font-weight: 600; }
.v-post__sea .swatch { margin-right: 6px; }
.v-post__foot { margin-top: 6px; margin-left: -10px; }
.v-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 18px; font-size: var(--fs-ui); line-height: 1.45; scroll-margin-top: 72px; }
.v-entry b { font-weight: 600; }
.v-entry .icon { color: var(--ok); }
.v-entry time, .v-entry__model { color: var(--text-2); font-size: var(--fs-sm); }
.v-entry__model { flex-basis: 100%; padding-left: 34px; }
.v-line { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 4px 0; border-block: 1px solid var(--border); font-size: var(--fs-ui); color: var(--text); line-height: 1.45; min-height: 46px; }
.v-line + .v-line { margin-top: -1px; }
.v-line > i { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; margin-inline: 3px; }
.v-line > span { flex: 1; min-width: 0; padding-block: 6px; }
.v-line .icon-btn { margin-right: -10px; }

.v-gal { display: grid; gap: 6px; margin-top: 14px; }
.v-photo { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--photo-plate); background-size: cover; background-position: center; aspect-ratio: 3 / 2; min-width: 0; margin: 0; }
.v-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--photo-edge); pointer-events: none; }
.v-photo > button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.v-photo > button:focus-visible { outline-offset: -3px; border-radius: var(--r-card); }
.v-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-enter) linear, transform 600ms var(--ease); }
.v-photo img.is-in { opacity: 1; }
@media (hover: hover) { .v-photo > button:hover img { transform: scale(1.02); } }
.v-photo.is-failed img { display: none; }
.v-photo__label { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: var(--fs-sm); font-weight: 550; color: var(--on-photo); background: rgb(var(--photo-ink) / .64); }
.v-photo__label span { display: inline-flex; align-items: center; gap: 6px; }
.v-photo__label button { min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-full); background: var(--photo-pill); color: var(--on-photo-dark); font-weight: 600; cursor: pointer; }
.v-photo__more { position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-h3); font-weight: 600; color: var(--on-photo); background: rgb(var(--photo-ink) / .64); pointer-events: none; }
.v-gal--g1 .v-photo { aspect-ratio: var(--_ar, 3 / 2); }
.v-gal--g2, .v-gal--g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v-gal--g2 .v-photo, .v-gal--g3 .v-photo, .v-gal--g4 .v-photo { aspect-ratio: 1 / 1; }
.v-gal--g3 .v-photo:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.v-gal--g3-tall { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 10 / 9; }
.v-gal--g3-tall .v-photo { aspect-ratio: auto; }
.v-gal--g3-tall .v-photo:first-child { grid-row: span 2; }
.v-gal--g4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v-gal--g4 .v-photo:first-child { grid-column: span 3; aspect-ratio: 16 / 10; }
.v-gal__cap { font-size: var(--fs-ui); color: var(--text-2); margin-top: 8px; line-height: 1.45; }
.v-gal__cap small { color: var(--text-3); font-size: var(--fs-sm); }

/* ───────── The voyage in numbers ───────── */
.v-cond { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--border); margin: 0; }
.v-cond > div { padding: 14px 0 14px 16px; border-left: 1px solid var(--border); min-width: 0; }
.v-cond > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.v-cond > div:nth-child(n+3) { border-top: 1px solid var(--border); }
.v-cond dt { font-size: var(--fs-sm); color: var(--text-2); }
.v-cond dd { margin: 4px 0 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.v-cond dd small { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: .3em; }
.v-cond dd em { display: block; font-style: normal; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-top: 2px; }
.v-cond dd em .swatch { margin-right: 6px; }
.v-cond dd.is-pos { font-size: 1.0625rem; line-height: 1.35; }
.v-cond dd.is-pos span { display: block; white-space: nowrap; }
.v-cond__note { font-size: var(--fs-sm); color: var(--text-3); margin-top: 8px; line-height: 1.5; }
.v-more { border-top: 0; margin-top: 2px; }
.v-more p { font-size: var(--fs-ui); color: var(--text-2); line-height: 1.5; }
@media (min-width: 560px) {
  .v-cond { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v-cond > div:nth-child(odd) { border-left: 1px solid var(--border); padding-left: 16px; }
  .v-cond > div:first-child { border-left: 0; padding-left: 0; }
  .v-cond > div:nth-child(n+3) { border-top: 0; }
}

.v-strip { margin-top: var(--s-4); padding: 12px 16px 10px; }
.v-strip__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-3); margin-bottom: 4px; }
.v-strip__head b { color: var(--text-2); font-weight: 550; }
.v-strip__days { display: grid; grid-auto-flow: column; grid-auto-columns: 34px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px;
  -webkit-mask: linear-gradient(90deg, transparent, var(--text) 16px, var(--text) calc(100% - 16px), transparent); mask: linear-gradient(90deg, transparent, var(--text) 16px, var(--text) calc(100% - 16px), transparent); }
.v-strip__days::-webkit-scrollbar { display: none; }
.v-strip__day { position: relative; display: grid; grid-template-rows: 9px 42px 21px; justify-items: center; align-items: end; height: 72px; text-decoration: none; color: var(--text-2); border-radius: var(--r-xs); font-size: var(--fs-sm); }
a.v-strip__day:hover { background: var(--hairline); color: var(--text); }
.v-strip__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text); align-self: start; margin-top: 2px; }
.v-strip__bar { width: 10px; height: var(--_h, 5px); border-radius: 4px; background: var(--_c, transparent); box-shadow: inset 0 0 0 1px var(--wave-edge); }
.v-strip__bar--none { height: 2px; border-radius: 1px; background: var(--border-control); box-shadow: none; }
.v-strip__bar--future { width: 4px; height: 4px; border-radius: 50%; background: var(--border-control); box-shadow: none; margin-bottom: 2px; }
.v-strip__num { align-self: center; display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 2px; border-radius: var(--r-full); line-height: 1; }
.v-strip__day[aria-current="date"] .v-strip__num { box-shadow: inset 0 0 0 2px var(--accent); color: var(--text); font-weight: 600; }
.v-strip__day.is-moment .v-strip__num { outline: 1.5px dashed var(--accent); outline-offset: -1.5px; }
@media (min-width: 560px) {
  .v-strip { padding: 14px 20px 10px; }
  .v-strip__days { grid-auto-flow: row; grid-template-columns: repeat(var(--_n, 23), minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask: none; mask: none; }
}

.v-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.v-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.v-tile__l { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.v-tile__v { font-size: var(--fs-num); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin-top: 10px; white-space: nowrap; }
.v-tile__v small { font-size: .5em; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-left: .28em; }
.v-tile__v.is-none { font-size: var(--fs-h3); color: var(--text-2); }
.v-tile__c { font-size: var(--fs-sm); color: var(--text-2); margin-top: 8px; line-height: 1.4; }
.v-tile__c .swatch { margin-right: 6px; }
.v-tile__g { position: absolute; right: 16px; top: 14px; width: 40%; max-width: 210px; height: 24px; color: var(--text-3); }
.v-tile__g svg { width: 100%; height: 100%; overflow: visible; }
.v-tile__g .g-line { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.v-tile__g .g-dot { fill: var(--accent); }
.v-tile__bars { display: flex; align-items: flex-end; gap: 2px; }
.v-tile__bars i { flex: 1; height: var(--_h, 2px); min-height: 2px; background: var(--_c, var(--border-control)); border-radius: 1px; box-shadow: inset 0 0 0 1px var(--wave-edge); }
@media (max-width: 479.98px) { .v-tile__v small { display: block; margin: 6px 0 0; font-size: var(--fs-sm); } .v-tile__g { display: none; } }
@media (min-width: 900px) { .v-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .v-tile { padding: 20px; } .v-tile__g { right: 20px; top: 18px; height: 26px; width: 42%; } }

.v-nums { display: grid; gap: 10px; margin-top: 10px; align-items: start; }
.v-viz { padding: 18px 16px 8px; }
.v-viz h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.v-viz__sum { color: var(--text-2); font-size: var(--fs-ui); margin-top: 6px; line-height: 1.5; }
.v-viz__note { font-size: var(--fs-sm); color: var(--text-3); margin-top: 10px; line-height: 1.5; }
.v-viz .disclosure { margin-top: 12px; }
.v-viz > :last-child:not(.disclosure) { margin-bottom: 10px; }
.v-viz h4 { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); margin-top: 14px; }
.v-viz__explain { font-size: var(--fs-ui); color: var(--text-2); line-height: 1.5; margin-top: 4px; }

.v-chart { position: relative; margin-top: 22px; padding-left: 44px; }
.v-chart__plot { position: relative; height: 176px; display: grid; grid-template-columns: repeat(var(--_n, 23), minmax(0, 1fr)); align-items: end; border-bottom: 1px solid var(--border-control); }
.v-chart__grid { position: absolute; left: 0; right: 0; bottom: var(--_b); height: 0; border-top: 1px solid var(--border); pointer-events: none; }
.v-chart__grid span { position: absolute; right: calc(100% + 8px); top: -.7em; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; line-height: 1.4; }
.v-chart__col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; text-decoration: none; color: var(--text); }
.v-chart__col i { display: block; width: min(64%, 20px); min-width: 5px; height: var(--_h, 0); border-radius: 4px 4px 0 0; background: var(--_c); box-shadow: inset 0 0 0 1px var(--wave-edge); }
.v-chart__col.is-future i { width: 3px; min-width: 3px; height: 3px; border-radius: 50%; background: var(--border-control); box-shadow: none; margin-bottom: 5px; }
.v-chart__col.is-none i { height: 0; width: 8px; border-top: 2px dashed var(--text-3); box-shadow: none; background: none; margin-bottom: 6px; border-radius: 0; }
.v-chart__col:hover::before, .v-chart__col.is-on::before, .v-chart__col:focus-visible::before { content: ""; position: absolute; inset: 0 1px; background: var(--hairline); border-radius: 4px 4px 0 0; }
.v-chart__col b { position: absolute; left: 50%; bottom: calc(var(--_h, 0px) + 5px); transform: translateX(-50%); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; line-height: 1; }
.v-chart__x { position: relative; height: 24px; font-size: var(--fs-sm); color: var(--text-3); }
.v-chart__x span { position: absolute; top: 6px; white-space: nowrap; }
.v-chart__x span:first-child { left: 0; } .v-chart__x span:last-child { right: 0; }
.v-chart__x .is-today { left: var(--_l); color: var(--text); font-weight: 550; transform: translateX(-50%); }
.v-tip { position: absolute; z-index: 5; left: var(--_x, 0); bottom: calc(var(--_y, 0px) + 40px); pointer-events: none; padding: 8px 10px; border-radius: var(--r-ctl); background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-high);
  font-size: var(--fs-sm); line-height: 1.4; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity var(--t-press) linear, transform var(--t-press) var(--ease); }
.v-tip.is-on { opacity: 1; transform: none; }
.v-tip b { display: block; font-weight: 600; }
.v-tip .swatch { margin-right: 6px; }
.v-viz .v-legend { margin-top: var(--s-4); }
.v-viz__foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.v-viz .table { margin-top: var(--s-4); }

.v-verdict { margin-top: 12px; }
.v-verdict b { display: block; font-size: var(--fs-h2); font-weight: 650; letter-spacing: -0.01em; line-height: 1.1; }
.v-verdict span { display: block; font-size: var(--fs-sm); color: var(--text-2); margin-top: 4px; }
.v-stamp { display: inline-block; margin: 20px 4px 8px; padding: 10px 16px 9px; border: 2px solid var(--text); border-radius: var(--r-xs); outline: 1px solid var(--text); outline-offset: -6px; transform: rotate(-3deg);
  color: var(--text); text-transform: uppercase; font-weight: 650; letter-spacing: .04em; text-align: center; }
.v-stamp b { display: block; font-size: var(--fs-h2); font-weight: 650; line-height: 1.1; }
.v-stamp span { display: block; font-size: var(--fs-sm); margin-top: 6px; }
.v-stamp.is-arriving { animation: v-thud var(--t-sheet) var(--ease) both; }
@keyframes v-thud { from { opacity: 0; transform: rotate(-3deg) scale(1.25); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
.v-viz .alert { margin-top: 14px; }
.v-drake__rows { margin-top: 6px; }
.v-drake__row { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 9px 0; }
.v-drake__row > b { font-weight: 600; font-size: var(--fs-ui); }
.v-drake__row > span { font-size: var(--fs-ui); color: var(--text-2); min-width: 0; }
.v-drake__row > span em { font-style: normal; color: var(--text); font-weight: 550; }
.v-drake__row > strong { font-weight: 600; font-size: var(--fs-ui); text-align: right; }
.v-drake__bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.v-drake__bar > span { flex: 1; height: 8px; border-radius: 4px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.v-drake__bar i { display: block; width: var(--_w, 0%); height: 100%; border-radius: 0 4px 4px 0; background: var(--_c); box-shadow: inset 0 0 0 1px var(--wave-edge); }
.v-drake__bar small { font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; min-width: 6.2rem; text-align: right; }
.v-drake__row.is-unsure .v-drake__bar i { background: repeating-linear-gradient(135deg, var(--_c) 0 5px, transparent 5px 8px); box-shadow: none; outline: 1px dashed var(--wave-edge); outline-offset: -1px; }
.v-drake__split { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 550; margin: 8px 0 2px; }
.v-drake__split::after { content: ""; flex: 1; border-top: 1px dashed var(--border-control); }

.v-plan { margin-top: 14px; }
.v-plan__leg { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 12px; position: relative; padding-bottom: var(--s-4); }
.v-plan__leg::before { content: ""; position: absolute; left: 9.5px; top: 18px; bottom: -4px; width: 1px; background: var(--border); }
.v-plan__leg:last-child::before { display: none; }
.v-plan__leg:last-child { padding-bottom: 0; }
.v-plan__leg > i { width: 20px; height: 20px; display: grid; place-items: center; margin-top: 3px; }
.v-plan__leg > i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.v-plan__leg--to-come > i::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-control); }
.v-plan__leg--now > i::before { width: 12px; height: 12px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.v-plan__leg b { display: block; font-weight: 550; font-size: 1rem; line-height: 1.4; }
.v-plan__leg--done b { color: var(--text-2); font-weight: 450; }
.v-plan__leg span { display: block; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.5; }
.v-plan__leg span em { font-style: normal; color: var(--accent); font-weight: 600; }

/* ───────── Footer ───────── */
.v-foot { margin-top: 72px; border-top: 1px solid var(--border); padding-block: 28px 56px; font-size: var(--fs-sm); color: var(--text-3); line-height: 1.6; }
.v-foot p { max-width: 80ch; }
.v-foot p + p, .v-foot details, .v-foot__links { margin-top: 10px; }
.v-foot a { color: var(--text-2); }
.v-foot summary { cursor: pointer; color: var(--text-2); min-height: 44px; display: inline-flex; align-items: center; }
.v-foot__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.v-foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.v-foot ul { display: grid; gap: 4px; max-width: 80ch; }

/* ───────── Lightbox and share dialog ───────── */
.v-lightbox { inset: 0; z-index: var(--z-lightbox); border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--scrim); color: var(--lb-text); overflow: hidden; }
.v-lightbox::backdrop { background: var(--scrim); }
.v-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: v-lb-in var(--t-enter) var(--ease); }
@keyframes v-lb-in { from { opacity: 0; transform: scale(.97); } }
.v-lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 12px 8px 20px; font-size: var(--fs-ui); color: var(--lb-text-2); }
.v-lightbox .icon-btn { color: var(--lb-text); background: color-mix(in srgb, var(--lb-text) 10%, transparent); }
.v-lightbox .icon-btn:hover { background: color-mix(in srgb, var(--lb-text) 20%, transparent); }
.v-lightbox :focus-visible { outline-color: var(--lb-text); }
.v-lightbox__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 8px; }
.v-lightbox__stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 16px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.v-lightbox__fail { display: none; padding: var(--s-4); font-size: var(--fs-ui); }
.v-lightbox__stage.is-failed img { display: none; }
.v-lightbox__stage.is-failed .v-lightbox__fail { display: block; }
.v-lightbox__nav { position: absolute; top: 50%; margin-top: -22px; z-index: 1; }
.v-lightbox__nav--prev { left: 12px; } .v-lightbox__nav--next { right: 12px; }
.v-lightbox__cap { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); font-size: 1rem; line-height: 1.45; max-width: 70ch; margin-inline: auto; width: 100%; min-height: 76px; }
.v-lightbox__cap small { display: block; color: var(--lb-text-3); font-size: var(--fs-sm); margin-top: 4px; }
.v-share__field { margin-top: var(--s-3); }

/* ───────── Wider screens ───────── */
@media (max-width: 719.98px) {
  /* phones: the photograph runs to the top edge and the name of the ship sits on it */
  body[data-hero="post"]:not([data-banner]) .v-header { position: absolute; inset: 0 0 auto 0; z-index: 3; pointer-events: none; }
  body[data-hero="post"]:not([data-banner]) .v-header a { pointer-events: auto; }
  body[data-hero="post"]:not([data-banner]) .v-top { padding-block: 14px 0; }
  body[data-hero="post"]:not([data-banner]) .v-brand, body[data-hero="post"]:not([data-banner]) .v-brand .icon, body[data-hero="post"]:not([data-banner]) .v-top__dates { color: var(--on-photo); }
  body[data-hero="post"]:not([data-banner]) .v-brand:focus-visible { outline-color: var(--on-photo); }
  body[data-hero="post"]:not([data-banner]) .v-horizon { display: none; }
  body[data-banner] .v-hero-post__shade { display: none; }
  body[data-banner] .v-hero-post { margin-top: var(--s-3); }
}
@media (min-width: 720px) {
  body[data-hero="post"] .v-hero, body[data-hero="loading"] .v-hero { padding-top: 20px; }
  .v-hero-post { margin-inline: 0; border-radius: var(--r-lg); height: 560px; }
  .v-hero-post__shade { display: none; }
  .v-hero-post__body { padding: 84px 28px 24px; }
  .v-hero-post__quote { -webkit-line-clamp: 6; line-clamp: 6; }
  .v-hero-post--since .v-hero-post__quote { -webkit-line-clamp: 6; line-clamp: 6; }
  .v-live { margin: 12px 0 0; border: 1px solid var(--border); border-radius: var(--r-card); padding: 13px 18px 14px 16px; }
  .v-map { margin-top: 12px; aspect-ratio: 16 / 10; }
  .v-status__next { display: block; }
  .v-card-pad, .card { padding: 18px; }
  .v-viz { padding: 22px 22px 10px; }
  .v-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .v-nums > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .v-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 34px 0 38px; }
  .v-day > * { grid-column: 2; }
  .v-day > .v-day__n { grid-column: 1; grid-row: 1 / span 20; }
  .v-day--silent { padding: 16px 0; display: block; }
  .v-day--loose { display: block; }
  .v-day__n { display: block; line-height: 1; padding-top: 2px; }
  .v-day__n span { display: block; font-size: var(--fs-sm); color: var(--text-3); font-weight: 500; }
  .v-day__n b { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--text); margin-top: 4px; }
  .v-day__date .v-day__dn { display: none; }
}
@media (min-width: 960px) {
  body[data-hero="post"] .v-hero, body[data-hero="loading"] .v-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "post side"; gap: 20px; height: clamp(520px, calc(100vh - 212px), 700px);
  }
  body[data-hero="post"] .v-hero-post, body[data-hero="loading"] .v-hero-post { height: auto; min-height: 0; }
  .v-hero__side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
  body[data-hero="post"] .v-live { margin-top: 0; }
  body[data-hero="post"] .v-map, body[data-hero="loading"] .v-map { flex: 1; min-height: 0; margin-top: 0; aspect-ratio: auto; max-height: none; }
  .v-live__next { display: inline; }
  .v-hero-post__body { padding: 96px 32px 28px; }
  .v-hero--status { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "status side" "last side"; grid-template-rows: auto 1fr; gap: 28px 56px; padding-top: 44px; align-items: start; }
  .v-hero--status .v-status { padding-top: 20px; }
  .v-hero--status .v-map { aspect-ratio: 7 / 6; }
  .v-hero--status .v-hero__side { display: block; }
  .v-section { padding-top: 72px; }
}
@media (min-width: 1100px) {
  .v-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-nums > :last-child:nth-child(odd) { grid-column: auto; }
  .v-nums--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .v-hero-post__track { scroll-behavior: auto; }
  .v-since--pill i::after, .v-ship--live::after { animation: none; display: none; }
  .v-stamp.is-arriving, .v-lightbox[open] { animation: none; }
  .v-photo img, .v-hero-post__slide img, .v-map__gl { transition: none; }
}
@media (forced-colors: active) {
  .v-strip__bar, .v-chart__col i, .v-drake__bar i, .v-daylight__bar i, .v-live__bar { forced-color-adjust: none; }
  .v-hero-post__body { background: Canvas; color: CanvasText; }
}

/* small additions */
.v-tile__g .g-end { stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
html.is-locked main { z-index: var(--z-map-full); }
