/* Excursion Scout: "Scout's Logbook" design (2026-11-02).
   Fonts are self-hosted (SIL Open Font License; see public/fonts). */
@font-face { font-family: 'Zilla Slab'; font-weight: 500; font-display: swap; src: url('/static/fonts/zilla-slab-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-weight: 700; font-display: swap; src: url('/static/fonts/zilla-slab-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-weight: 400; font-display: swap; src: url('/static/fonts/karla-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-weight: 700; font-display: swap; src: url('/static/fonts/karla-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-weight: 800; font-display: swap; src: url('/static/fonts/karla-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 600; font-display: swap; src: url('/static/fonts/caveat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-weight: 700; font-display: swap; src: url('/static/fonts/caveat-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #1d3557;          /* navy: text, headings, buttons */
  --ink-soft: #4c607a;     /* secondary text (5.7:1 on the ground) */
  --pink: #c2255c;         /* handwritten notes, tender, highlights */
  --pink-tint: #fdeff4;
  --lagoon: #1f7a70;       /* pier, free cancellation, Worry-Free */
  --lagoon-tint: #e3f4f1;
  --purple: #6a4c93;       /* departure ports */
  --ground: #eef3f6;       /* chart paper */
  --grid: rgba(29, 53, 87, 0.07);
  --paper: #ffffff;
  --rule: #c9d6e0;
  --rule-soft: #dce5ec;
  --sea: #dcebf2;
  --sea-ink: #6f97b5;      /* decorative sea names */
  --land: #efe3c7;
  --land-edge: #b9a57c;
  --tape: rgba(244, 201, 93, 0.75);
  --warn: #8a5300;
  --warn-tint: #fdf0d8;
  --shadow: 0 10px 30px rgba(29, 53, 87, 0.10);
  --slab: 'Zilla Slab', Georgia, serif;
  --sans: 'Karla', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--ground);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(28px, 3.4vw, 36px); }
h3 { font-size: 21px; }
.lede { font-size: 19px; margin: 0; max-width: 46ch; }

.wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
main { padding-bottom: 56px; }
main > * + * { margin-top: 40px; }
main > .map-section { margin-top: 64px; }

.banner { background: var(--warn-tint); color: var(--warn); text-align: center; font-size: 14px; padding: 8px 16px; }
.banner-sandbox { background: #e6eff6; color: var(--ink); }

/* ---- Header and footer ---- */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--slab); font-weight: 700; font-size: 28px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-header nav a { text-decoration: none; font-weight: 700; }

.site-footer { background: var(--ink); color: #fff; font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; }
.site-footer p { margin: 0 0 8px; max-width: 80ch; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }

/* ---- Shared pieces ---- */
.sheet { position: relative; background: var(--paper); box-shadow: var(--shadow); padding: 32px; }
.taped::before, .taped::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 110px;
  height: 28px;
  background: var(--tape);
  z-index: 4;
}
.taped::before { left: 8%; transform: rotate(-3deg); }
.taped::after { right: 8%; transform: rotate(4deg); }
.sheet-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }

.note-inline { font-family: var(--hand); font-weight: 700; font-size: 24px; color: var(--pink); margin: 0; line-height: 1.15; }
.note-tilt { display: inline-block; transform: rotate(-2deg); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #12243d; border-color: #12243d; color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); }
.btn-secondary:hover { background: var(--ground); color: var(--ink); }
.btn-disabled, .btn-disabled:hover { background: var(--rule-soft); border-color: var(--rule-soft); color: var(--ink-soft); cursor: default; }

.badge-dock { display: inline-block; font-weight: 700; font-size: 13px; line-height: 1.5; border: 2px solid currentColor; border-radius: 4px; padding: 0 8px; }
.badge-pier { color: var(--lagoon); }
.badge-tender { color: var(--pink); }
.badge-departure { color: var(--purple); }

/* Taped prints (photos, or a map crop until a photo is chosen) */
.print { display: block; margin: 0; position: relative; background: #fff; padding: 12px 12px 14px; box-shadow: 0 10px 26px rgba(29, 53, 87, 0.18); transform: rotate(var(--tilt, -2deg)); text-decoration: none; color: var(--ink); }
.print img, .print .crop-map { display: block; width: 100%; height: auto; }
.print-caption { display: block; margin-top: 8px; font-family: var(--hand); font-weight: 700; font-size: 24px; line-height: 1.15; }
.print .tape { position: absolute; top: -14px; left: 40%; width: 100px; height: 28px; background: var(--tape); transform: rotate(3deg); }
a.print:hover, .print a:hover { color: var(--pink); }
.print > a { display: block; color: inherit; text-decoration: none; }
.photo-credit { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.photo-credit a { color: inherit; }
.photo-credit a:hover { color: var(--pink); }

/* Port day essentials */
.essentials { display: flex; flex-direction: column; gap: 24px; }
.essentials .sheet-head { margin-bottom: 0; }
.ess-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; align-items: start; }
.ess-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ess-col h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--slab); font-weight: 700; font-size: 22px; line-height: 1.2; }
.ess-col p { margin: 0; font-size: 15px; }
.ess-icon { flex: none; fill: none; stroke: var(--lagoon); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ess-piers { display: flex; flex-direction: column; gap: 10px; }
.ess-pier { background: var(--sea); padding: 10px 12px; font-size: 15px; }
.ess-pier strong { display: block; font-size: 16px; }
.ess-note { color: var(--ink-soft); }
.ess-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.ess-table caption { text-align: left; font-weight: 700; font-size: 14px; padding-bottom: 4px; }
.ess-table tr { border-top: 1px solid #c9d6e0; }
.ess-table tr:last-child { border-bottom: 1px solid #c9d6e0; }
.ess-table th { text-align: left; font-weight: 400; padding: 6px 12px 6px 0; }
.ess-table td { text-align: right; font-weight: 700; padding: 6px 0; }
.ess-scrawl { font-size: 22px; transform: rotate(-1deg); transform-origin: left; }
.ess-facts { gap: 20px; }
.ess-facts > div { display: flex; flex-direction: column; gap: 6px; }
.ess-heads { border: 2px solid var(--pink); background: #fdf1f5; padding: 14px 18px 16px; }
.ess-heads h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-family: var(--slab); font-weight: 700; font-size: 22px; color: var(--pink); }
.ess-heads .ess-icon { stroke: var(--pink); }
.ess-heads ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ess-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid #c9d6e0; padding-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* Plan your day */
.plans { display: flex; flex-direction: column; gap: 20px; }
.plans-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.plans-head h2 { margin: 0; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 10px; background: var(--paper); box-shadow: var(--shadow); padding: 22px 22px 20px; border-top: 6px solid var(--lagoon); }
.plan-2 { border-top-color: var(--pink); }
.plan-3 { border-top-color: var(--purple); }
.plan-when { margin: 0; font-weight: 800; font-size: 14px; color: var(--lagoon); }
.plan-2 .plan-when { color: var(--pink); }
.plan-3 .plan-when { color: var(--purple); }
.plan h3 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: 23px; line-height: 1.15; }
.plan ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.plan-book { margin: auto 0 0; padding-top: 10px; border-top: 1px solid #c9d6e0; font-size: 14px; color: var(--ink-soft); }
.plan-book strong { color: var(--ink); }
.plans-foot { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* Guides */
.ess-guides { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 15px; }
.ess-guides span { font-weight: 700; }
.guides-head h1 { margin: 0 0 8px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); box-shadow: var(--shadow); padding: 24px; text-decoration: none; color: var(--ink); border-top: 6px solid var(--lagoon); }
.guide-card:nth-child(3n+2) { border-top-color: var(--pink); }
.guide-card:nth-child(3n) { border-top-color: var(--purple, #6a4c93); }
.guide-card h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.guide-card p { margin: 0; font-size: 16px; }
.guide-go { margin-top: auto; font-weight: 800; color: var(--lagoon); }
.guide-card:hover h2, .guide-card:hover .guide-go { color: var(--pink); }
.guide-sheet { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.guide-sheet h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; }
.guide-sheet .lede { margin: 0; }
.guide-section h2 { margin: 18px 0 8px; font-size: 26px; }
.guide-section p { margin: 0 0 10px; }
.guide-section ul { margin: 0 0 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.guide-sheet .ess-foot { margin-top: 18px; }

/* Visitor tips */
.tips { display: flex; flex-direction: column; gap: 22px; }
.tips-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.tips-head h2 { margin: 0; }
.tips-head p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.tips-empty { margin: 0; font-size: 17px; }
.tip-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.tip-card { position: relative; margin: 0; background: #fffdf6; padding: 22px 22px 18px; box-shadow: 0 8px 22px rgba(29, 53, 87, 0.14); transform: rotate(var(--tilt, -1deg)); display: flex; flex-direction: column; gap: 12px; }
.tip-card::before { content: ''; position: absolute; top: -12px; left: 38%; width: 80px; height: 24px; background: var(--tape); transform: rotate(3deg); }
.tip-card blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.tip-card figcaption { font-size: 14px; color: var(--ink-soft); }
.tip-card figcaption strong { color: var(--ink); }
.tip-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 32px; align-items: start; }
.tip-form-intro { display: flex; flex-direction: column; gap: 10px; }
.tip-form-intro h3 { margin: 0; font-family: var(--slab); font-weight: 700; font-size: 26px; line-height: 1.15; }
.tip-form-intro p { margin: 0; font-size: 15px; }
.tip-form-intro .note-inline { font-size: 23px; }
.tip-rules { color: var(--ink-soft); font-size: 14px !important; }
.tip-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tip-fields label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 15px; }
.tip-fields textarea, .tip-fields input[type=text], .tip-fields select { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 0 10px; min-height: 44px; width: 100%; box-sizing: border-box; }
.tip-fields textarea { padding: 10px; resize: vertical; }
.tip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.tip-when { border: 0; margin: 0; padding: 0; min-width: 0; }
.tip-when legend { padding: 0 0 4px; font-weight: 700; font-size: 15px; }
.tip-when span { display: flex; gap: 8px; }
.tip-when select { flex: 1 1 0; min-width: 0; padding: 0 6px !important; }
.tip-fields .optional { font-weight: 400; }
.tip-fields .tip-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; }
.tip-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.tip-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 14px; color: var(--ink-soft); }
.btn-pink { background: var(--pink); border-color: var(--pink); color: #fff; }
.tip-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tip-msg { margin: 0; padding: 10px 14px; font-weight: 700; font-size: 15px; }
.tip-ok { background: var(--lagoon-tint); color: var(--lagoon); }
.tip-err { background: #fdf1f5; color: var(--pink); border: 2px solid var(--pink); }

/* Admin */
.admin h2 { margin-top: 32px; }
.admin-tip { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #c9d6e0; padding: 16px 0; }
.admin-tip label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
.admin-tip input, .admin-tip textarea { font: inherit; font-weight: 400; border: 2px solid var(--ink); border-radius: 4px; padding: 8px; }
.admin-meta { margin: 0; font-size: 14px; color: var(--ink-soft); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Signature days ashore */
.signature h2 { margin: 0 0 22px; }
.sig-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 28px; }
.print.sig .print-caption { font-size: 22px; }
.sig-port { display: block; font-size: 14px; font-weight: 700; color: var(--lagoon); }

/* Map crops */
.crop-map .sea { fill: var(--sea); }
.land { fill: var(--land); stroke: var(--land-edge); stroke-width: 0.9; stroke-linejoin: round; }
.crop-dot { fill: var(--ink); }
.crop-pin { fill: var(--pink); stroke: #fff; }
.crop-label { fill: var(--ink); font-family: var(--sans); font-weight: 800; stroke: #fff; paint-order: stroke; stroke-linejoin: round; }

/* ---- Home ---- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-top: 16px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-prints { position: relative; height: 430px; }
.hero-prints .print { position: absolute; }
.print-a { left: 2%; top: 18px; width: 64%; }
.print-b { right: 0; top: 160px; width: 56%; }
.print-b .tape { background: rgba(194, 37, 92, 0.35); left: auto; right: 18%; transform: rotate(-4deg); }

.picker { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 480px; }
.picker label { font-weight: 700; font-size: 15px; }
.picker-row { display: flex; gap: 8px; }
.picker select { flex: 1; min-width: 0; min-height: 48px; font: inherit; font-weight: 500; padding: 0 12px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); }

.map-section { scroll-margin-top: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 700; margin: 0; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.key-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.key-dep { border-radius: 3px; background: var(--purple); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--purple); }
.map-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
/* The map scales with its sheet; below 820px wide it scrolls sideways instead. */
.map { position: relative; width: 100%; min-width: 820px; aspect-ratio: 1120 / 740; margin: 0 auto; background: var(--sea); overflow: hidden; }
.map-land { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.sea-name { position: absolute; font-family: var(--hand); font-weight: 600; font-size: 36px; color: var(--sea-ink); pointer-events: none; }
.sea-name-big { font-size: 44px; }
.map .note { position: absolute; font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--pink); pointer-events: none; white-space: nowrap; }
.map .note-small { font-size: 22px; }
.map .off-map { pointer-events: auto; text-decoration: none; transform: rotate(-2deg); }
.map .off-map:hover, .map .off-map:focus-visible { text-decoration: underline; }
.inset-box { position: absolute; border: 2px dashed var(--pink); border-radius: 6px; pointer-events: none; }
.inset { position: absolute; z-index: 3; background: var(--sea); border-radius: 4px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--pink), 0 10px 24px rgba(29, 53, 87, 0.25); }
.inset-name { position: absolute; left: 14px; bottom: 10px; font-family: var(--hand); font-weight: 700; font-size: 26px; line-height: 1; color: var(--sea-ink); pointer-events: none; }
.map-hint { display: none; margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }

.pin { position: absolute; width: 0; height: 0; text-decoration: none; z-index: 1; }
.pin::after { content: ''; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; }
.pin-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; transition: transform 0.12s; }
.pin-dep .pin-dot { border-radius: 3px; background: var(--purple); }
.inset .pin-dot { left: -7px; top: -7px; width: 14px; height: 14px; }
.pin:hover, .pin:focus-visible, .pin.is-active { z-index: 10; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot, .pin.is-active .pin-dot { transform: scale(1.3); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(194, 37, 92, 0.35); }
.pin:focus-visible { outline: none; }
.pin-label { position: absolute; white-space: nowrap; font-size: 13px; font-weight: 800; color: var(--ink); text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.inset .pin-label { font-size: 14px; }
.pin-dep .pin-label { color: var(--purple); }
.pin-r { left: 11px; top: -10px; }
.pin-l { right: 11px; top: -10px; }
.pin-a { left: 0; bottom: 9px; transform: translateX(-50%); }
.pin-b { left: 0; top: 9px; transform: translateX(-50%); }
.pin-bl { right: -4px; top: 9px; }

.map-card {
  position: absolute;
  z-index: 20;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: #fff;
  padding: 12px 14px;
  border-top: 4px solid var(--lagoon);
  box-shadow: 0 8px 22px rgba(29, 53, 87, 0.25);
  text-decoration: none;
  color: var(--ink);
}
.map-card[hidden] { display: none; }
.map-card.is-tender { border-top-color: var(--pink); }
.map-card.is-dep { border-top-color: var(--purple); }
.map-card-name { font-family: var(--slab); font-weight: 700; font-size: 20px; line-height: 1.1; }
.map-card-country { font-size: 13px; color: var(--ink-soft); }
.map-card-known { font-size: 14px; }
.map-card-go { font-size: 14px; font-weight: 800; color: var(--pink); }
.map-card:hover .map-card-go { text-decoration: underline; }

.port-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 40px; }
.index-col h3 { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); scroll-margin-top: 16px; }
.port-index ul { list-style: none; margin: 0; padding: 0; }
.port-index li { border-bottom: 1px solid var(--rule-soft); }
.port-index li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 700; }
.port-index .badge-dock { font-size: 12px; padding: 0 6px; }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; padding-top: 28px; border-top: 2px solid var(--ink); }
.how h2 { font-size: 32px; }
.how p { margin: 0; display: flex; gap: 12px; }
.check { flex: none; }
.check path { fill: none; stroke: var(--pink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

.hero-simple { padding-top: 48px; display: flex; flex-direction: column; gap: 16px; }

/* ---- Port page ---- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--ink-soft); }
main > .breadcrumb + .port-hero { margin-top: 28px; }
.breadcrumb a { color: var(--ink-soft); }
.port-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 44px; align-items: start; }
.print-large { margin-top: 12px; }
.port-hero-text { display: flex; flex-direction: column; gap: 16px; }
.port-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: var(--ink-soft); }
.ashore { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: #fff; padding: 16px; box-shadow: 0 6px 18px rgba(29, 53, 87, 0.10); }
.ashore .crop-map { flex: none; }
.ashore p { margin: 0; font-size: 16px; flex: 1 1 240px; }
.ashore strong { display: block; font-family: var(--slab); font-size: 19px; }

.finder { display: flex; flex-direction: column; }
.finder-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 8px; }
#finder label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; }
#finder input { min-height: 44px; font: inherit; padding: 0 10px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); min-width: 170px; }
.optional { font-weight: 400; }
.summary { font-size: 15px; color: var(--ink-soft); margin: 6px 0 14px; }
.finder-note, .disclosure { font-size: 14px; color: var(--ink-soft); margin: 16px 0 0; }
.disclosure { margin-top: 6px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 0 18px; }
.scope { display: inline-flex; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; max-width: 100%; }
.scope-btn { min-height: 44px; padding: 0 16px; border: 0; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; }
.scope-btn + .scope-btn { border-left: 2px solid var(--ink); }
.scope-btn[aria-pressed='true'] { background: var(--ink); color: #fff; }
.toolbar .scope { flex: 0 0 auto; }
.toolbar:has(.scope) .chips { flex: 1 0 100%; order: 2; }
.toolbar:has(.scope) .toolbar-extras { order: 1; }
.toolbar-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.sort select { min-height: 40px; font: inherit; font-weight: 500; padding: 0 10px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); }
.jump-link { font-weight: 700; font-size: 15px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 2px solid var(--rule); border-radius: 99px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip-signature { background: var(--pink-tint); border-color: #e7a9be; }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-weight: 500; opacity: 0.75; margin-left: 2px; }

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.tour { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.tour-media { position: relative; aspect-ratio: 16 / 9; background: #cfe7ee; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 13px; font-weight: 800; border-radius: 99px; padding: 3px 10px; }
.badge-wf { background: var(--lagoon-tint); color: var(--lagoon); }
.badge-shore { background: #fff; color: var(--ink); }
.tour-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.kicker { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--pink); }
.tour-body h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 6px; }
.tour-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.tag { color: var(--lagoon); font-weight: 700; }
.details-link { align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.details-link:hover { color: var(--pink); }
.tour-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { margin: 0; font-size: 24px; font-weight: 800; }
.price small { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-right: 4px; }
.tour-foot .btn { min-height: 44px; padding: 0 16px; }
.source { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }
.show-more { grid-column: 1 / -1; justify-self: center; }
.results-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-soft); }
.loading, .empty { color: var(--ink-soft); margin: 0; }
.error-box { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--warn-tint); padding: 16px 20px; border-radius: 6px; }
.error-box p { margin: 0; color: var(--warn); }

.partner-section { background: #fff; border: 2px dashed #9fb3c6; padding: 26px 28px; scroll-margin-top: 16px; }
.partner-section h2 { font-size: 30px; }
.partner-section.seg { margin-top: 24px; }
.partner-section.seg .btn { white-space: normal; height: auto; min-height: 48px; padding: 10px 20px; text-align: center; }
.partner-section [data-gyg-widget] { min-height: 120px; margin: 12px 0; }
.partner-link { font-weight: 700; }

.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; }
.guide h2 { line-height: 1.1; grid-column: 1 / -1; }
.guide-note h3 { margin-bottom: 6px; }
.guide-note p { margin: 0; }
.guide-note .note-inline { margin-top: 10px; font-size: 23px; }

.nearby { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.nearby h2 { font-size: 24px; }
.nearby p { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }

/* ---- Legal and other text pages ---- */
.prose { max-width: 820px; margin: 16px auto 0; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 16px; }
.prose h2 { font-size: 24px; margin: 28px 0 8px; }
.prose p, .prose li { max-width: 70ch; }
.prose li { margin-bottom: 6px; }
.prose .meta { color: var(--ink-soft); font-size: 14px; }
.prose .lede { margin-bottom: 16px; }
mark.todo { background: var(--warn-tint); color: var(--warn); padding: 0 4px; border-radius: 4px; }

/* ---- Tour details dialog ---- */
.details-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(29, 53, 87, 0.3);
  display: none;
  flex-direction: column;
}
.details-dialog[open] { display: flex; }
.details-dialog::backdrop { background: rgba(29, 53, 87, 0.45); }
.details-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--rule-soft); }
.details-head h2 { font-size: 26px; }
.details-close { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 99px; background: var(--ground); color: var(--ink); font-size: 24px; line-height: 1; }
.details-close:hover { background: var(--rule-soft); }
.details-body { overflow-y: auto; padding: 8px 24px 16px; }
.details-section { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.details-section:last-child { border-bottom: 0; }
.details-section h3 { font-family: var(--sans); font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.details-section h4 { font-size: 14px; font-weight: 800; margin: 8px 0 4px; }
.details-section ul, .details-section ol { margin: 4px 0; padding-left: 20px; }
.details-section li { margin-bottom: 4px; }
.details-text { white-space: pre-line; margin: 0 0 8px; }
.details-note { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.details-facts { padding-top: 12px; }
.inc-exc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.inc li::marker { content: '✓  '; color: var(--lagoon); }
.exc li::marker { content: '✕  '; color: var(--ink-soft); }
.stops li { margin-bottom: 10px; }
.stops .details-text { margin-bottom: 2px; }
.details-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 24px 18px; border-top: 1px solid var(--rule-soft); }
.details-foot .source { margin: 0; flex: 1 1 220px; }

/* ---- Smaller screens ---- */
@media (max-width: 760px) {
  .wrap, .site-header { padding-left: 16px; padding-right: 16px; }
  .sheet { padding: 22px 18px; }
  .hero-prints { height: auto; }
  .hero-prints .print-a { position: relative; left: 0; top: 0; width: 88%; margin: 14px auto 0; }
  .hero-prints .print-b { display: none; }
  .map-hint { display: block; }
}
@media (max-width: 560px) {
  .site-header nav { gap: 4px 18px; font-size: 15px; }
  .logo span { font-size: 24px; }
  .details-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .details-head, .details-body, .details-foot { padding-left: 18px; padding-right: 18px; }
  .inc-exc { grid-template-columns: 1fr; }
  .toolbar { display: block; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 10px; padding: 0 18px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .toolbar-extras { justify-content: space-between; margin-bottom: 10px; }
  #finder label, #finder input { width: 100%; }
  .finder-head form { width: 100%; }
  .scope { display: flex; width: 100%; margin-bottom: 12px; }
  .scope-btn { flex: 1; }
  .picker-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .pin-dot { transition: none; }
}
