
  /* ---------- heading and actions ---------- */
  .dock-head { padding-top: clamp(20px, 3vw, 34px); }
  .dock-head .breadcrumb { margin-bottom: 14px; text-align: left; }
  .dock-title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: clamp(18px, 2.6vw, 28px); }
  .dock-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.2rem, 5.4vw, 4.6rem); letter-spacing: -0.015em; line-height: 1.04; margin: 0; text-wrap: balance; color: var(--ink); overflow-wrap: anywhere; }
  .dock-title-row .meta { margin: 8px 0 0; font-family: var(--font-serif); color: var(--ink-soft); font-size: 1.05rem; text-align: left; }
  .dock-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 8px; }
  .dock-acts form { margin: 0; }
  .act {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--ink); font: inherit; font-size: 0.86rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .act svg { width: 16px; height: 16px; flex: none; }
  .act:hover { border-color: var(--accent); background: #fffaf5; }
  .act:active { transform: scale(0.97); }
  .favorite-btn.active { color: var(--amber); border-color: var(--amber); }
  .favorite-btn.active svg { fill: var(--amber); }

  /* ---------- the stage: one big framed photo, swipeable, with its story on it ---------- */
  .dock-stage { --stage-h: clamp(440px, calc(100dvh - 290px), 780px); position: relative; border-radius: 28px; overflow: hidden; background: #07111f; color: var(--white); isolation: isolate; box-shadow: 0 26px 60px rgba(var(--navy-rgb), 0.22); }
  .stage-track { position: relative; display: flex; height: var(--stage-h); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; outline-offset: -4px; }
  .stage-track::-webkit-scrollbar { display: none; }
  .stage-track:focus-visible { outline: 3px solid var(--white); }
  /* the photo is shown clear: the caption sits in its own strip under it (only when the photo has something to say), with no fade over the picture */
  .stage-slide { --cap-h: 0px; position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; }
  .stage-slide:has(.cap-title) { --cap-h: 116px; }
  .stage-slide img.fg { position: absolute; inset: 0 0 var(--cap-h) 0; width: 100%; height: calc(100% - var(--cap-h)); object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
  .stage-slide .bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(34px) saturate(1.1); opacity: 0.8; }
  .stage-slide.portrait img.fg { object-fit: contain; }
  .stage-hit { position: absolute; inset: 0 0 var(--cap-h) 0; z-index: 1; border: 0; padding: 0; background: transparent; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
  .stage-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--cap-h); box-sizing: border-box; padding: 12px 250px 12px clamp(18px, 2.4vw, 30px); background: #07111f; pointer-events: none; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; overflow: hidden; }
  .stage-slide:not(:has(.cap-title)) .stage-cap { height: auto; top: 14px; left: 14px; right: auto; bottom: auto; padding: 0; background: none; }
  .stage-cap .cap-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.15; color: var(--white); text-wrap: balance; overflow-wrap: anywhere; }
  .stage-cap .cap-story { margin-top: 0; font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.45; max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: rgba(255,255,255,0.92); overflow-wrap: anywhere; }
  .badge-top { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--bronze-light); color: var(--on-bronze-light); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; }
  .badge-top svg { width: 11px; height: 11px; }
  /* kind 3 photos (a view near the dock, not the dock): a small tag, like a credit */
  .nearby-chip { padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(var(--navy-rgb), 0.62); color: var(--white); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }
  .stage-ctl { position: absolute; z-index: 4; right: clamp(14px, 2vw, 22px); bottom: clamp(14px, 2vw, 22px); display: flex; align-items: center; gap: 12px; }
  .stage-count { font-size: 0.84rem; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255,255,255,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
  .stage-btns { display: inline-flex; gap: 8px; }
  .stage-round, .stage-full {
    height: 44px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-pill); background: rgba(7,17,31,0.5); color: var(--white); cursor: pointer; backdrop-filter: blur(8px);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .stage-round { width: 44px; padding: 0; }
  .stage-full { padding: 0 18px; font-size: 0.86rem; font-weight: 600; }
  .stage-round svg, .stage-full svg { width: 18px; height: 18px; }
  .stage-round:hover:not(:disabled), .stage-full:hover { background: rgba(7,17,31,0.85); border-color: var(--bronze-light); }
  .stage-round:active:not(:disabled), .stage-full:active { transform: scale(0.95); }
  .stage-round:disabled { opacity: 0.35; cursor: default; }
  .stage-round:focus-visible, .stage-full:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
  .stage-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.18); }
  .stage-progress span { display: block; height: 100%; width: 100%; background: var(--bronze-light); transform: scaleX(0.07); transform-origin: left; }
  /* the photo credit: a small (i) at the top right of each photo opens it in a popover (<details>, works without the script; client/dock.ts closes it
     on Escape and on a click outside). Option A of design-options/dock-credits, owner 2026-11-16. */
  .pi { position: absolute; z-index: 5; top: 10px; right: 10px; }
  .pi-btn { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .pi-btn::-webkit-details-marker { display: none; }
  .pi-btn span { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7); background: rgba(7,17,31,0.72); color: var(--white); font: 700 0.92rem/26px var(--font-sans); text-align: center; transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1); }
  .pi-btn:hover span, .pi[open] .pi-btn span { background: rgba(7,17,31,0.95); border-color: var(--bronze-light); }
  .pi-btn:active span { scale: 0.92; }
  .pi-btn:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; box-shadow: 0 0 0 2px var(--navy); }
  .pi-panel { position: absolute; top: 46px; right: 0; width: max-content; max-width: min(320px, calc(100vw - 72px)); margin: 0; padding: 12px 14px; border-radius: var(--radius-md); background: var(--white); color: var(--ink); font: 400 0.86rem/1.5 var(--font-sans); overflow-wrap: anywhere; transition: transform 0.16s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.14s ease; }
  @starting-style { .pi[open] .pi-panel { opacity: 0; transform: translateY(-4px); } }
  .pi-panel a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; touch-action: manipulation; }
  .pi-panel a:hover { color: var(--accent-dark); }
  .pi-panel a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 3px; }
  @media (prefers-reduced-motion: reduce) { .pi-btn span, .pi-panel { transition: none; } }

  /* ---------- the filmstrip: big thumbnails, a click opens the viewer on that photo ---------- */
  .rail-wrap { position: relative; padding-top: 18px; }
  .stage-rail {
    display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 8px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }
  .stage-rail::-webkit-scrollbar { display: none; }
  .stage-rail.at-start { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%); }
  .stage-rail.at-end { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 100%); }
  .stage-rail.at-start.at-end { -webkit-mask-image: none; mask-image: none; }
  .rail-th { position: relative; flex: none; width: clamp(150px, 17vw, 214px); aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface-tint); cursor: pointer; scroll-snap-align: center; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1); }
  .rail-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .rail-th .badge-top { position: absolute; top: 8px; right: 8px; padding: 2px 8px; font-size: 0.66rem; }
  .rail-th:hover { transform: translateY(-3px); }
  .rail-th:active { transform: scale(0.97); }
  .rail-th.on { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--accent); }
  .rail-btn { position: absolute; top: calc(50% + 9px); margin-top: -24px; z-index: 2; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(var(--navy-rgb), 0.2); transition: transform 0.12s cubic-bezier(0.23, 1, 0.32, 1); touch-action: manipulation; }
  .rail-btn svg { width: 20px; height: 20px; }
  .rail-btn.l { left: -8px; } .rail-btn.r { right: -8px; }
  .rail-btn:hover { border-color: var(--accent); } .rail-btn:active { transform: scale(0.94); }
  .rail-btn[hidden] { display: none; }
  @media (hover: none) { .rail-btn { display: none; } }

  .no-photo-yet {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    border: 1.5px dashed var(--border); border-radius: 28px; padding: 64px 16px;
    text-align: center; color: var(--ink-soft);
  }

  /* ---------- the body: the story beside the facts and the map ---------- */
  .dock-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 6vw, 72px); padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 88px); align-items: start; }
  .dock-main > section + section { margin-top: clamp(40px, 5vw, 60px); }
  /* the map around the dock runs the full width of the page content, under the story and the facts (owner, 2026-10-26); the other docks nearby go back to the story column */
  .dock-around { padding-block: 0 clamp(36px, 5vw, 60px); }
  .dock-body-2 { padding-top: 0; }
  .dock-sticky { display: grid; gap: 28px; }
  /* the card is about 880 px tall: it only sticks on a screen tall enough to show all of it, otherwise its lower part could never be reached */
  @media (min-height: 940px) { .dock-sticky { position: sticky; top: 24px; } }
  .sec-h { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.01em; margin: 0 0 14px; color: var(--ink); text-wrap: balance; }
  .dock-body p.desc { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.05rem, 1.3vw, 1.14rem); line-height: 1.8; color: var(--ink-prose-strong); max-width: 44rem; margin: 0 0 1.1rem; text-align: left; }
  .dock-body p.desc-source { font-family: var(--font-sans); font-size: 0.75rem; line-height: 1.6; color: var(--ink-soft); margin: -4px 0 0; max-width: 44rem; }
  .crowd .crowd-form { margin: 14px 0 0; }
  .crowd .btn-outline { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; touch-action: manipulation; }
  .crowd .btn-outline:hover { border-color: var(--accent); color: var(--accent-text); }
  .crowd .btn-outline:active { scale: 0.97; }
  .crowd .btn-outline:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .desc-source a, .map-caption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .story { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface-tint); max-width: 44rem; }
  .story strong { display: block; font-family: var(--font-serif); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
  .story p { margin: 6px 0 0; font-family: var(--font-serif); font-size: 1rem; line-height: 1.7; color: var(--ink-prose-strong); white-space: pre-line; overflow-wrap: anywhere; }

  /* around the dock: one ledger row, not a grid of identical cards */
  .around-vibe { font-family: var(--font-serif); color: var(--ink-soft); margin: 0 0 18px; max-width: 44rem; line-height: 1.6; }
  .around-vibe strong { color: var(--ink); }
  .ledger { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; gap: 18px 36px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .ledger li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-width: 0; }
  .ledger .around-icon { grid-row: span 2; width: 26px; height: 26px; color: var(--accent-text); }
  .ledger .n { font-family: var(--font-serif-bare); font-weight: 600; font-size: 1.55rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
  .ledger .l { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.3; max-width: 11ch; }
  .around-extras { margin: 14px 0 0; padding-inline-start: 1.1rem; font-size: 0.92rem; display: flex; flex-direction: column; gap: 4px; }

  .facts { margin: 0; display: grid; }
  .facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
  .facts > div:first-child { border-top: 1px solid var(--border); }
  .facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
  .facts dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .facts a { color: var(--ink); text-decoration-color: var(--border); text-underline-offset: 3px; }
  .facts a:hover { color: var(--accent-text); }
  .mini-map { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .dock-map { height: clamp(14rem, 28vw, 18rem); width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
  .map-caption { margin: 0; font-size: 0.75rem; color: var(--ink-soft); }
  .dock-pin { background: none; border: none; }
  .dock-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(11, 37, 69, 0.35)); }

  .near-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 16px; align-items: start; }
  /* Rows of every card line up (name, frame, place) through subgrid, so a taller invitation does not leave the photo cards shorter. */
  .near-grid .nc { min-width: 0; display: grid; grid-row: span 3; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; row-gap: 0; }
  .near-grid a { display: block; color: inherit; text-decoration: none; border-radius: var(--radius-lg); }
  /* The photo frame is at least 3 : 2 (its ::before) and stretches to its subgrid row; the photo is laid over it (absolute), so the photo never sizes the row.
     A percentage height on the img inside the subgrid made WebKit (Safari, every iPhone browser) size the row from the photo: frames over 1,100 px tall
     with the photo blown up and cropped (docs/plans/photo-quality-phones.md). */
  .near-grid .frame { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-tint); }
  .near-grid a.frame::before { content: ""; display: block; padding-top: 66.6667%; }
  .near-grid img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--border); transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); }
  .near-grid a.frame:hover img { transform: scale(1.04); }
  .near-grid h3 { margin: 0 0 8px; font-family: var(--font-serif); font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; }
  .near-grid h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .near-grid p { margin: 8px 0 0; font-size: 0.84rem; color: var(--ink-soft); font-family: var(--font-sans); }
  /* A neighbour with no photo: a tinted 3 : 2 frame (growing if the text needs room) with a round camera button and a small link to the dock. */
  .near-grid .frame.ph { width: 100%; aspect-ratio: 3 / 2; height: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px 12px; gap: 0; overflow: visible; box-sizing: border-box; background: rgba(var(--bronze-rgb), 0.07); }
  .near-grid .frame.ph p { margin: 0; overflow-wrap: anywhere; }
  .near-grid .cam { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px; color: var(--accent-text); touch-action: manipulation; }
  .near-grid .cam .ico { display: grid; width: 52px; height: 52px; padding: 13px; box-sizing: border-box; border-radius: 50%; background: var(--white); border: 1px solid var(--card-line); color: var(--accent-text); flex: none; transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
  .near-grid .cam-l { font-size: 0.88rem; font-weight: 600; line-height: 1.2; }
  .near-grid .cam:hover .ico { transform: translateY(-2px); border-color: var(--accent-text); }
  .near-grid .cam:hover .cam-l { text-decoration: underline; text-underline-offset: 3px; }
  .near-grid .cam:active .ico { scale: 0.94; }
  .near-grid .ph-s { font-size: 0.8rem; line-height: 1.3; color: var(--ink-soft); }
  .near-grid .ph-view { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 0.8rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; touch-action: manipulation; border-radius: var(--radius-sm); }
  .near-grid .ph-view:hover { color: var(--ink); }
  .near-grid .ph-view:active { scale: 0.96; }
  @media (prefers-reduced-motion: reduce) { .near-grid img, .near-grid .cam .ico { transition: none; } .near-grid a.frame:hover img, .near-grid .cam:hover .ico { transform: none; } }

  /* ---------- the viewer: full screen, swipe, zoom, keyboard, rating ---------- */
  html.vw-lock { overflow: hidden; scrollbar-gutter: stable; }
  .vw {
    --vw-bg: #07111f; --vw-line: rgba(255,255,255,0.14); --vw-fade: 1; --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    position: fixed; inset: 0; z-index: var(--z-lightbox); display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: var(--vw-bg); color: #e8eef5;
    opacity: 0; transition: opacity 0.2s var(--ease-out); padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain;
  }
  .vw[hidden] { display: none; }
  .vw.show { opacity: var(--vw-fade); }
  .vw-main { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
  .vw-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; pointer-events: none; background: linear-gradient(180deg, rgba(7,17,31,0.7), rgba(7,17,31,0)); }
  .vw-bar > * { pointer-events: auto; }
  .vw-count { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: rgba(232,238,245,0.85); font-variant-numeric: tabular-nums; }
  .vw-bar-actions { display: flex; gap: 8px; }
  .vw-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--vw-line); border-radius: 50%; background: rgba(7,17,31,0.55); color: var(--white); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 0.15s var(--ease-out); }
  .vw-btn svg { width: 20px; height: 20px; }
  .vw-btn:hover:not(:disabled) { background: rgba(7,17,31,0.85); border-color: var(--bronze-light); }
  .vw-btn:active:not(:disabled) { transform: scale(0.94); }
  .vw-btn:focus-visible, .vw-thumb:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
  .vw-btn:disabled { opacity: 0.3; cursor: default; }
  .vw-btn[aria-pressed="true"] { background: var(--bronze-light); border-color: var(--bronze-light); color: var(--on-bronze-light); }
  .vw-stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; outline: none; overscroll-behavior: contain; }
  .vw-slide { height: 100%; min-width: 100%; display: grid; place-items: center; transition: transform 0.25s var(--ease-out); padding: 56px 72px 12px; box-sizing: border-box; }
  .vw-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; cursor: zoom-in; transition: opacity 0.22s var(--ease-out), transform 0.28s var(--ease-out); }
  .vw-prev, .vw-next { position: absolute; top: 50%; margin-top: -22px; z-index: 2; }
  .vw-prev { left: 14px; } .vw-next { right: 14px; }
  .vw.zoomed .vw-stage { overflow: auto; touch-action: pan-x pan-y; cursor: zoom-out; }
  .vw.zoomed .vw-slide { display: block; width: max-content; height: max-content; padding: 0; transition: none; }
  .vw.zoomed .vw-img { max-width: none; max-height: none; height: calc(var(--vw-stage-h) * 2); border-radius: 0; cursor: zoom-out; }
  .vw.zoomed .vw-prev, .vw.zoomed .vw-next { display: none; }
  .vw-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent; overscroll-behavior-x: contain; }
  .vw-thumbs[hidden] { display: none; }
  .vw-thumb { flex: none; width: 88px; height: 60px; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; opacity: 0.55; scroll-snap-align: center; background: #12253f; touch-action: manipulation; transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out); }
  .vw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .vw-thumb:hover { opacity: 0.85; }
  .vw-thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--bronze-light); }
  .vw-side { display: flex; flex-direction: column; border-left: 1px solid var(--vw-line); padding: 64px 28px 28px; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #0d213d, #0a1930); min-height: 0; }
  .vw-leader { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.82rem; font-weight: 600; color: var(--bronze-light); margin-bottom: 10px; }
  .vw-leader[hidden], .vw-by[hidden], .vw-caption[hidden], .vw-credit[hidden], .vw-rate[hidden] { display: none; }
  .vw-leader svg { width: 14px; height: 14px; }
  .vw-title { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.15; color: var(--white); text-wrap: balance; overflow-wrap: anywhere; }
  .vw-by { margin: 8px 0 0; font-family: var(--font-sans); font-size: 0.9rem; color: #b8c7d6; overflow-wrap: anywhere; }
  .vw-by strong { color: var(--white); font-weight: 600; }
  .vw-by a { color: inherit; text-decoration: underline; text-underline-offset: 2px; touch-action: manipulation; }
  .vw-by a:hover strong { text-decoration: underline; }
  .vw-credit a:not([target]) { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .vw-place { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: var(--bronze-light); font-family: var(--font-serif); font-size: 1rem; }
  .vw-place svg { width: 16px; height: 16px; flex: none; }
  .vw-caption { margin: 16px 0 0; font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.65; color: #cfdbe7; overflow-wrap: anywhere; white-space: pre-line; }
  .vw-credit { margin: 16px 0 0; font-size: 0.8rem; line-height: 1.55; color: #9fb0c3; }
  .vw-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .vw-login { display: inline-block; color: var(--bronze-light); font-family: var(--font-serif); font-size: 1.05rem; text-decoration: underline; text-underline-offset: 3px; }
  .vw-rate { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--vw-line); }
  .vw-rate-h { margin: 0 0 14px; font-family: var(--font-serif); font-size: 1.02rem; color: var(--white); }
  .vw-rate-h[hidden] { display: none; }
  .vw-rate-msg { min-height: 1.3em; margin: 10px 0 0; font-size: 0.84rem; color: var(--bronze-light); }
  .vw-rate-err { margin: 0; font-size: 0.84rem; color: #ffb4a8; }
  .vw-rate-err:empty { display: none; }
  .vw-rate .instant, .vw-rate .instant * { transition: none !important; }

  /* the rating: ten dots on a half circle. Hover or the arrow keys preview, a click or Enter sends it. */
  .r2-arc { position: relative; width: 100%; padding-top: 60%; }
  .r2-arc[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
  .r2-pip { position: absolute; width: 13%; aspect-ratio: 1; padding: 0; transform: translate(-50%, -50%); border: 1.5px solid rgba(255,255,255,0.3); border-radius: 50%; background: rgba(255,255,255,0.05); color: #dbe5ef; font: 600 0.9rem var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation; transition: transform 0.16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
  .r2-pip::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--bronze-light); opacity: 0; transform: scale(0.8); transition: opacity 0.18s var(--ease-out), transform 0.22s var(--ease-out); transition-delay: calc(var(--k, 0) * 16ms); }
  .r2-pip span { position: relative; }
  .r2-pip.on::before { opacity: 1; transform: none; }
  .r2-pip.on { color: var(--on-bronze-light); border-color: var(--bronze-light); }
  .r2-pip.cur { box-shadow: 0 0 0 3px #0b1a33, 0 0 0 5px var(--bronze-light); }
  .r2-pip:active { transform: translate(-50%, -50%) scale(0.94); }
  .r2-pip:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
  @media (hover: hover) and (pointer: fine) { .r2-pip:hover { transform: translate(-50%, -50%) scale(1.14); border-color: var(--bronze-light); } .r2-pip:hover:active { transform: translate(-50%, -50%) scale(0.98); } }
  .r2-pip:nth-of-type(1) { --k: 0; left: 9.00%; top: 92.00%; }
  .r2-pip:nth-of-type(2) { --k: 1; left: 11.47%; top: 68.06%; }
  .r2-pip:nth-of-type(3) { --k: 2; left: 18.59%; top: 47.00%; }
  .r2-pip:nth-of-type(4) { --k: 3; left: 29.50%; top: 31.38%; }
  .r2-pip:nth-of-type(5) { --k: 4; left: 42.88%; top: 23.06%; }
  .r2-pip:nth-of-type(6) { --k: 5; left: 57.12%; top: 23.06%; }
  .r2-pip:nth-of-type(7) { --k: 6; left: 70.50%; top: 31.38%; }
  .r2-pip:nth-of-type(8) { --k: 7; left: 81.41%; top: 47.00%; }
  .r2-pip:nth-of-type(9) { --k: 8; left: 88.53%; top: 68.06%; }
  .r2-pip:nth-of-type(10) { --k: 9; left: 91.00%; top: 92.00%; }
  .r2-read { position: absolute; left: 50%; top: 66%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; pointer-events: none; text-align: center; }
  .r2-num { font-family: var(--font-serif-bare); font-weight: 500; font-size: 3.4rem; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
  .r2-read.preview .r2-num { color: var(--bronze-light); }
  .r2-word { font-family: var(--font-serif); font-size: 0.98rem; color: #cfdbe7; }
  .r2-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.74rem; color: #8fa3b7; }
  .rt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--vw-line); opacity: 0; transform: translateY(6px); transition: opacity 0.2s var(--ease-out), transform 0.22s var(--ease-out); }
  .rt-foot.in { opacity: 1; transform: none; }
  .rt-done { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 600; color: var(--bronze-light); }
  .rt-done svg { width: 16px; height: 16px; flex: none; }
  .rt-next { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px 0 18px; border: 0; border-radius: var(--radius-pill); background: var(--white); color: var(--navy); font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; touch-action: manipulation; transition: transform 0.14s var(--ease-out); }
  .rt-next svg { width: 16px; height: 16px; }
  .rt-next:active { transform: scale(0.97); }
  .rt-next:focus-visible, .vw-login:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
  @media (hover: hover) and (pointer: fine) { .rt-next:hover { background: var(--bronze-light); } }

  /* ---------- tablet and phone ---------- */
  @media (max-width: 960px) {
    .dock-body { grid-template-columns: minmax(0, 1fr); }
    .dock-sticky { position: static; }
    .dock-stage { --stage-h: clamp(440px, calc(64svh + 110px), 740px); border-radius: 22px; }
    .stage-slide:has(.cap-title) { --cap-h: 156px; }
    .stage-cap { padding: 12px 18px 62px; justify-content: flex-start; }
    .stage-slide:not(:has(.cap-title)) .stage-cap { padding: 0; }
    .stage-cap .cap-story { display: none; }
    .stage-ctl { left: 14px; right: 14px; justify-content: space-between; }
    .stage-full span { display: none; }
    .stage-full { width: 44px; padding: 0; }
  }
  @media (max-width: 900px) {
    .vw { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .vw-slide { padding: 52px 8px 6px; }
    .vw-prev, .vw-next { display: none; }
    .vw-side { max-height: 48dvh; border-left: 0; border-top: 1px solid var(--vw-line); padding: 18px 18px 22px; }
    .vw-title { order: 1; } .vw-leader { order: 0; } .vw-by { order: 2; margin-top: 4px; }
    .vw-rate { order: 3; margin-top: 16px; padding-top: 16px; }
    .vw-place { order: 4; } .vw-caption { order: 5; } .vw-credit { order: 6; }
    .vw-thumb { width: 64px; height: 44px; }
    .r2-arc { padding-top: 54%; max-width: 360px; margin-inline: auto; }
  }
  @media (max-width: 520px) {
    .rail-th { width: 150px; }
    .dock-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  }
  @media (prefers-reduced-motion: reduce) {
    .vw, .vw-img, .vw-slide, .vw-rate *, .vw-rate *::before { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  }

  /* names around the dock (owner chose option A "panel over the map", design-options/dock-around-3, 2026-11-04). Without the script (no .is-live) the
     section is plain content: the counts per kind, then the list. client/around.ts sets .is-live: the map, the legend at its bottom left, the list a panel
     that slides in over the right of the map (.is-open); on a phone the legend and the list sit under the map, in the page. */
  .ar { min-width: 0; }
  .ar [hidden] { display: none !important; }
  .ar-lead { color: var(--ink-soft); margin: 0 0 16px; max-width: 44rem; line-height: 1.6; }
  .ar-counts { margin: 18px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
  /* from the tiles (flag AROUND_TILES): the note that part of the circle has no tile, the count circles on the map */
  .ar-partial { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-tint); border: 1px solid var(--border); color: var(--ink); font-size: 0.92rem; max-width: 44rem; }
  /* the card: its outline is the card group's (components.css) */
  .ar-card { position: relative; min-width: 0; border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
  .ar-stage { position: relative; min-width: 0; }
  .ar-map { display: none; position: relative; min-width: 0; background: #e9efe9; }
  .ar-maperr { margin: 0; padding: 12px 14px; font-size: 0.85rem; color: var(--notice-text); border-top: 1px solid var(--border); }

  /* the legend: without the script a plain line of counts; with it "On the map", the filter */
  .ar-legend { padding: 10px 10px 8px; border-bottom: 1px solid var(--border); }
  .ar-lh-t { margin: 0; min-height: 28px; display: flex; align-items: center; padding: 0 6px 4px; font: 700 0.72rem/1.2 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
  /* the head of the legend and, with the script, its fold button (the whole legend folds down to the head; owner, 2026-11-16) */
  .ar-lhead { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
  .ar-lhead .ar-lh-t { min-width: 0; }
  .ar-ltog { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin: -4px -4px -4px 0; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(11, 37, 69, 0.08); }
  .ar-ltog:hover { border-color: var(--border); background: rgba(var(--navy-rgb), 0.04); }
  .ar-ltog:active { scale: 0.95; }
  .ar-ltog:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 0; }
  .ar-ltog svg { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
  .ar-legend.is-shut .ar-ltog svg { transform: rotate(180deg); }
  .ar-legend.is-shut .ar-lh-t { padding-bottom: 0; }
  .ar-lbody { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease; }
  @starting-style { .ar-lbody { opacity: 0; transform: translateY(6px); } }
  .ar-kinds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
  .ar-ck { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px; border-radius: var(--radius-sm); color: var(--ink); font: 600 0.9rem/1.2 var(--font-sans); }
  label.ar-ck { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(11, 37, 69, 0.08); }
  label.ar-ck:hover:not(.is-none) { background: rgba(var(--navy-rgb), 0.045); }
  label.ar-ck:active:not(.is-none) { background: rgba(var(--navy-rgb), 0.08); }
  .ar-ck:has(input:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 0; }
  .ar-ck input { appearance: none; -webkit-appearance: none; flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--ink-soft); border-radius: 4px; background: var(--white); cursor: inherit; }
  .ar-ck input:focus-visible { outline: none; }
  .ar-ck input:checked { border-color: var(--navy); background: var(--navy); }
  .ar-ck input:checked::before { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); rotate: -45deg; }
  .ar-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--white); }
  .ar-ico svg { width: 17px; height: 17px; display: block; }
  .ar-ck-i { width: 24px; height: 24px; }
  .ar-ck-i svg { width: 14px; height: 14px; }
  .ar-ck-l { min-width: 0; }
  .ar-ck-n { margin-left: auto; padding-left: 6px; color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; }
  .ar-ck:has(input:not(:checked)) .ar-ck-i, .ar-ck:has(input:not(:checked)) .ar-ck-l { opacity: 0.55; }
  .ar-ck.is-none { cursor: default; color: var(--ink-soft); }
  .ar-ck.is-none input { border-color: var(--border); background: #f4f2ec; }
  .ar-ck.is-none .ar-ck-i, .ar-ck.is-none .ar-ck-l, .ar-ck.is-none .ar-ck-n { opacity: 0.45; }
  .ar-lslot:empty { display: none; }
  .ar-fixed { display: none; list-style: none; margin: 6px 0 0; padding: 8px 6px 0; border-top: 1px solid var(--border); gap: 6px; color: var(--ink-soft); font: 400 0.82rem/1.3 var(--font-sans); }
  .ar-fixed li { display: flex; align-items: center; gap: 10px; }
  .ar-mk-dock { width: 12px; height: 12px; margin: 0 6px 0 9px; rotate: 45deg; border-radius: 2px; background: var(--accent); }
  .ar-mk-ring { width: 22px; height: 22px; margin-left: 4px; border: 1.5px dashed var(--accent); border-radius: 50%; }
  /* SHOW ALL, the full-width button of the legend */

  /* the list */
  .ar-panel { display: flex; flex-direction: column; min-width: 0; background: var(--white); }
  .ar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--border); }
  .ar-head:focus { outline: none; }
  .ar-head:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
  .ar-status { margin: 0; min-width: 0; font: 600 0.92rem/1.3 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; text-wrap: balance; }
  .ar-tools { display: flex; align-items: center; gap: 6px; flex: none; }
  .ar-tools:empty { display: none; }
  .ar-ibtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--ink); cursor: pointer; touch-action: manipulation; }
  .ar-ibtn:hover { border-color: var(--border); background: rgba(var(--navy-rgb), 0.04); }
  .ar-ibtn:active { scale: 0.95; }
  .ar-ibtn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 0; }
  .ar-plist { position: relative; list-style: none; margin: 0; padding: 0; min-width: 0; flex: 1; min-height: 0; } /* relative: keeps the screen-reader text of the rows inside a list that scrolls */
  .ar-li { border-top: 1px solid var(--border); min-width: 0; }
  .ar-li:first-child { border-top: 0; }
  .ar-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 0; background: var(--white); color: var(--ink); font: inherit; text-align: left; }
  button.ar-row { cursor: pointer; touch-action: manipulation; }
  .ar-row .ar-ico { margin-top: 2px; }
  .ar-rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
  .ar-name { font: 600 0.96rem/1.35 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
  a.ar-name { text-decoration: underline; text-decoration-color: rgba(var(--navy-rgb), 0.3); text-underline-offset: 3px; }
  a.ar-name:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
  .ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--ink-soft); font: 400 0.84rem/1.45 var(--font-sans); font-variant-numeric: tabular-nums; }
  .ar-dist { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
  .ar-dir { display: inline-flex; color: var(--ink); }
  .ar-dirt { font-size: 0.76rem; font-weight: 600; color: var(--ink); }
  .ar-dir-0 svg { rotate: 0deg; } .ar-dir-1 svg { rotate: 45deg; } .ar-dir-2 svg { rotate: 90deg; } .ar-dir-3 svg { rotate: 135deg; }
  .ar-dir-4 svg { rotate: 180deg; } .ar-dir-5 svg { rotate: 225deg; } .ar-dir-6 svg { rotate: 270deg; } .ar-dir-7 svg { rotate: 315deg; }
  button.ar-row:hover, .ar-li.is-hot .ar-row { background: rgba(var(--navy-rgb), 0.035); }
  button.ar-row:hover .ar-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  button.ar-row:active { background: rgba(var(--navy-rgb), 0.07); }
  .ar-row:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
  .ar-li.is-active .ar-row { background: rgba(var(--bronze-rgb), 0.07); box-shadow: inset 3px 0 0 var(--accent); }
  .ar-open { padding: 0 14px 12px 58px; }
  .ar-osm { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--accent-text); font: 600 0.86rem/1.2 var(--font-sans); text-decoration: underline; text-underline-offset: 3px; }
  .ar-osm:hover { color: var(--accent-dark); }
  .ar-osm:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 4px; }
  .ar-ext { display: inline-flex; }
  .ar-foot { padding: 10px 14px; border-top: 1px solid var(--border); }
  .ar-tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font: 600 0.88rem/1.2 var(--font-sans); font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation; }
  .ar-tbtn:hover { border-color: var(--accent); color: var(--accent-text); }
  .ar-tbtn:active { scale: 0.97; }
  .ar-tbtn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  .ar-moreb { width: 100%; }
  .ar-none { padding: 18px 14px; color: var(--ink-soft); font-size: 0.92rem; }
  .ar-none p { margin: 0 0 10px; }

  /* the map's own buttons: the "whole circle" button and the "List N" control */
  .ar-mapbtn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); cursor: pointer; touch-action: manipulation; }
  .ar-mapbtn:hover { border-color: var(--accent); color: var(--accent-text); }
  .ar-mapbtn:active { scale: 0.95; }
  .ar-mapbtn:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  .ar-listctl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font: 600 0.88rem/1.2 var(--font-sans); box-shadow: 0 1px 3px rgba(11, 37, 69, 0.14); cursor: pointer; touch-action: manipulation; transition: transform 0.12s cubic-bezier(0.22, 1, 0.36, 1); }
  .ar-listctl:hover { border-color: var(--accent); color: var(--accent-text); }
  .ar-listctl:active { scale: 0.97; }
  .ar-listctl:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  .ar-listctl-n { color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; }
  .ar-p .leaflet-container { font: inherit; background: #e9efe9; }
  .ar-p .leaflet-bar { border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius-sm); overflow: hidden; }
  .ar-p .leaflet-bar a { width: 36px; height: 36px; line-height: 34px; color: var(--ink); border-bottom-color: var(--border); }
  .ar-p .leaflet-bar a:hover { background: #f6f4ef; }
  .ar-p .leaflet-bar a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -2px; }
  .ar-p .leaflet-control-attribution { font: 400 0.7rem/1.4 var(--font-sans); background: rgba(255, 255, 255, 0.85); }
  .ar-p .leaflet-popup-content-wrapper { border-radius: var(--radius-md); box-shadow: 0 2px 12px rgba(11, 37, 69, 0.18); }
  .ar-p .leaflet-popup-content { margin: 12px 16px; font: 400 0.9rem/1.4 var(--font-sans); }
  .ar-p .leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 20px; line-height: 30px; }

  /* with the script: the map, the legend over its bottom left, the list a panel over its right */
  .ar-p.is-live .ar-map { display: block; height: clamp(460px, 44vw, 580px); }
  .ar-p.is-live .ar-kinds { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .ar-p.is-live .ar-fixed { display: grid; }
  @media (min-width: 761px) {
    .ar-p.is-live .ar-legend { position: absolute; z-index: 800; left: 12px; bottom: 28px; width: 232px; max-width: calc(100% - 24px); padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); box-shadow: 0 1px 3px rgba(11, 37, 69, 0.12); }
    .ar-p.is-live .ar-legend.is-shut { width: auto; }
    .ar-p.is-live .ar-panel { position: absolute; z-index: 1001; top: 0; right: 0; bottom: 0; width: 380px; max-width: 70%; border-left: 1px solid var(--border); box-shadow: -2px 0 10px rgba(11, 37, 69, 0.08); transform: translateX(24px); opacity: 0; visibility: hidden; transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, visibility 0s linear 0.24s; }
    .ar-p.is-live.is-open .ar-panel { transform: none; opacity: 1; visibility: visible; transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, visibility 0s; }
    .ar-p.is-live .ar-plist { overflow-y: auto; overscroll-behavior: contain; }
    /* while the panel is open the map's own controls on the right (the List control, the layers, the credit) sit beside it */
    .ar-p.is-live.is-open .leaflet-right { right: min(380px, 70%); }
  }
  @media (max-width: 760px) {
    .ar-p.is-live .ar-map { height: clamp(300px, 88vw, 400px); }
    .ar-p.is-live .ar-legend { border-bottom: 0; border-top: 1px solid var(--border); padding: 8px 10px; }
    .ar-p.is-live .ar-fixed { display: flex; flex-wrap: wrap; gap: 4px 16px; }
    .ar-ltog { width: 44px; height: 44px; margin: -8px -6px -8px 0; }
    /* on a phone the list is part of the page, under the legend: a short fade and lift when it opens, no scroll box of its own */
    .ar-p.is-live .ar-panel { display: none; border-top: 1px solid var(--border); transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease; }
    .ar-p.is-live.is-open .ar-panel { display: flex; }
    @starting-style { .ar-p.is-live.is-open .ar-panel { opacity: 0; transform: translateY(8px); } }
    .ar-listctl-l { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the word stays in its name */
    .ar-listctl { padding: 6px 12px; }
  }
  /* the map could not be loaded: the legend and the list stay as plain content */
  .ar-p.no-map .ar-panel { border-top: 1px solid var(--border); }
  @media (prefers-reduced-motion: reduce) {
    .ar-listctl, .ar-p.is-live .ar-panel, .ar-p.is-live.is-open .ar-panel, .ar-ltog svg, .ar-lbody { transition: none; }
    .ar-p.is-live .ar-panel { transform: none; }
  }
  .ar-clu { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--white); background: var(--navy); color: var(--white); font: 700 0.85rem/1 var(--font-sans); font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(11, 37, 69, 0.35); cursor: pointer; transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
  .ar-clu.ar-c-attractions { background: #6d3a9c; }
  .ar-clu.ar-c-beaches { background: #17657a; }
  .ar-clu.ar-c-hotels { background: #8a4a1f; }
  .ar-pin-wrap:hover .ar-clu, .ar-pin-wrap:focus-visible .ar-clu { transform: scale(1.1); }
  .ar-far .ar-pin { opacity: 0.85; }
  @media (prefers-reduced-motion: reduce) { .ar-clu { transition: none; } }
  /* "Sources and credits": one closed <details> at the bottom of the dock page with every credit line (option A of design-options/dock-credits, owner 2026-11-16) */
  .dock-credits { margin-top: 24px; }
  .srcs { border-top: 1px solid var(--border); }
  .srcs summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 0; font: 600 0.95rem/1.3 var(--font-sans); color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(11, 37, 69, 0.08); }
  .srcs summary::-webkit-details-marker { display: none; }
  .srcs summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink-soft); border-radius: 50%; font-weight: 700; line-height: 1; transition: transform 0.16s cubic-bezier(0.23, 1, 0.32, 1); }
  .srcs[open] summary::before { content: "\2212"; transform: rotate(180deg); }
  .srcs summary:hover { color: var(--accent-text); }
  .srcs summary:hover::before { border-color: var(--accent); }
  .srcs summary:active::before { scale: 0.92; }
  .srcs summary:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: var(--radius-sm); }
  .srcs-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; padding: 4px 0 22px; font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); transition: transform 0.18s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.16s ease; }
  @starting-style { .srcs[open] .srcs-body { opacity: 0; transform: translateY(-4px); } }
  .srcs-body > div { min-width: 0; }
  .srcs-body h3 { margin: 0 0 6px; font: 700 0.72rem/1.3 var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
  .srcs-body p { margin: 0 0 8px; overflow-wrap: anywhere; text-wrap: pretty; }
  .srcs-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; touch-action: manipulation; }
  .srcs-body a:hover { color: var(--accent-text); }
  .srcs-body a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 3px; }
  @media (max-width: 760px) { .srcs-body { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
  @media (prefers-reduced-motion: reduce) { .srcs summary::before, .srcs-body { transition: none; } }
  .ar-p .ar-pin { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--white); }
  .ar-p .ar-pin svg { width: 20px; height: 20px; display: block; }
  /* the three kind colours: the list, the legend, the pins and the count circles */
  .ar-c-attractions { background: #6d3a9c; }
  .ar-c-beaches { background: #17657a; }
  .ar-c-hotels { background: #8a4a1f; }
  /* pins: the Leaflet wrapper is positioned by Leaflet with a transform, so the look and the pop go on the inner element */
  .ar-pin-wrap { background: none; border: 0; }
  .ar-pin-wrap .ar-pin { border: 2px solid var(--white); box-shadow: 0 2px 6px rgba(11, 37, 69, 0.35); transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
  .ar-pin-wrap.is-hot .ar-pin, .ar-pin-wrap.is-active .ar-pin { transform: scale(1.28); }
  .ar-pin-wrap.is-active .ar-pin { box-shadow: 0 0 0 3px var(--accent), 0 2px 6px rgba(11, 37, 69, 0.35); }
  .ar-pin-wrap:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 50%; }
  .ar-dockpin { display: block; width: 18px; height: 18px; border-radius: 4px; transform: rotate(45deg); background: var(--accent); border: 2px solid var(--white); box-shadow: 0 2px 6px rgba(11, 37, 69, 0.45); }
  .ar-pop { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 15rem; }
  .ar-pop-n { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
  .ar-pop .ar-osm { margin-top: 2px; }
  .ar-far-t { white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { .ar-pin-wrap .ar-pin { transition: none; } }

  /* ---------- Facts: the Facilities row (owner 2026-11-16, option B of design-options/dock-facilities/; its Call ahead action was removed, owner 2026-11-16) ---------- */
  .fac-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
  .fac-i { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--ink-prose); white-space: nowrap; }
  .fac-i svg { width: 16px; height: 16px; flex: none; color: var(--ink-soft); }
