/* The Shag Harbour Incident — the atlas style, from a copy of the Tunnels of Halifax page (itself from the Lunenburg Rebellion,
   the Bluenose and the Shipwrecks atlas, dist/NSshipwrecks/style.css). Tokens: ATLAS-PAGE-CONTRACT section 4. This page's own
   rules are at the end. */
:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #e6e9e1;
  background: #081820;
  font-synthesis: none;
  --muted: #9bafb3;
  --amber: #e8ba7b;
  --rival: #8fb0bd;
  --line: #81989935;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.4; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #f4d19d; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #10212a; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }
main { max-width: 1800px; margin: auto; }

.masthead { margin: 0 4.5%; padding: 25px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.wordmark { letter-spacing: 0.16em; font-size: 12px; }
.wordmark span { color: #6d878c; margin: 0 12px; }
.masthead nav { display: flex; gap: 24px; color: var(--muted); }
.intro { padding: 42px 4.5% 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.eyebrow { font-size: 12px; letter-spacing: 0.19em; color: var(--amber); font-weight: 400; margin: 0 0 15px; }
.eyebrow b { font-weight: 400; color: #8fa6ad; margin-right: 10px; } /* the section's number */
h1 { font: normal clamp(40px, 4.5vw, 78px) / 1.05 Georgia, serif; letter-spacing: -0.04em; margin: 0; }
h1 em { font-weight: 400; color: #c6d4cf; }
h2 { font: normal 32px/1.15 Georgia, serif; letter-spacing: -0.02em; margin: 0; }
.dek { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; max-width: 340px; }
.to-top { margin: 28px 0 0; text-align: right; font-size: 12px; letter-spacing: 0.15em; }
.to-top a { color: var(--muted); }
.to-top a:hover { color: var(--amber); }
.about .to-top { grid-column: 1 / -1; }
.atlas > .to-top { margin: 6px 2% 14px; }

/* the section rail (ATLAS-PAGE-CONTRACT section 5): under the title, sticks to the top, lights the section you are in */
.rail { position: sticky; top: 0; z-index: 5; margin: 0 2% 26px; border: 1px solid var(--line); background: #081820f2; backdrop-filter: blur(6px); display: flex; align-items: stretch; }
.rail-strip { flex: 1; min-width: 0; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.rail-strip::-webkit-scrollbar { display: none; }
.rail-strip.dragging { cursor: grabbing; scroll-behavior: auto; }
.rail-strip.more-right { mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.rail-strip.more-left { mask-image: linear-gradient(90deg, transparent, #000 56px); }
.rail-strip.more-left.more-right { mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.rail-arrow { flex: none; width: 34px; border: 0; background: transparent; color: var(--amber); font: 22px/1 Georgia, serif; padding: 0 0 4px; }
.rail-arrow.left { border-right: 1px solid var(--line); }
.rail-arrow.right { border-left: 1px solid var(--line); }
.rail-arrow:disabled { color: #3f5a62; cursor: default; opacity: 1; }
.rail-arrow:hover:not(:disabled) { background: #0f2630; }
.rail .k { padding: 14px 18px; font-size: 12px; letter-spacing: 0.19em; color: var(--amber); border-right: 1px solid var(--line); white-space: nowrap; display: flex; align-items: center; }
.rail a { padding: 12px 16px 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #b6c3c3; white-space: nowrap; border-bottom: 2px solid transparent; display: flex; gap: 8px; align-items: baseline; }
.rail a i { font-style: normal; color: #6d878c; font-size: 11px; font-variant-numeric: tabular-nums; }
.rail a.on { color: #fff1cf; border-bottom-color: var(--amber); }
.rail a.on i { color: var(--amber); }
.rail a:hover, .rail a:focus-visible { color: var(--amber); outline-offset: -4px; }
.rail .up { margin-left: auto; border-left: 1px solid var(--line); color: var(--muted); display: none; }
.rail.stuck .up { display: flex; } /* Top appears only once the rail has stuck and there is somewhere to go back to */
.rail.stuck { box-shadow: 0 10px 30px #04101a99; }
[id] { scroll-margin-top: 64px; }
@media (max-width: 700px) {
  .rail .k { display: none; }
  .rail .up span { display: none; }
  .rail .up { padding: 12px 12px 10px; }
}

/* the stage: the atlas map box */
.atlas { margin: 0 2%; border: 1px solid var(--line); background: #0a1c25; position: relative; }
.map-topline { position: absolute; z-index: 1; top: 22px; left: 28px; right: 28px; display: flex; justify-content: space-between; letter-spacing: 0.15em; font-size: 12px; color: #a4b6b9; pointer-events: none; }
.map-topline span:last-child { margin-right: 28px; text-align: right; }
.atlas-body { display: flex; }
.map-stage { flex: 1; min-width: 0; height: clamp(460px, 48vw, 740px); position: relative; overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
#stage-hover { position: absolute; z-index: 2; background: #0b2029f0; border: 1px solid #78919477; color: #dbe4df; padding: 9px 12px; font-size: 12px; line-height: 1.5; pointer-events: none; max-width: 260px; }
#stage-hover[hidden] { display: none; }
#stage-hover b { color: #fff1cf; font-weight: 400; }
.map-note { position: absolute; left: 28px; bottom: 25px; font: italic 19px/1.6 Georgia, serif; color: #c2cfca; pointer-events: none; }
.map-note span { font: 12px Arial, sans-serif; color: #9aafb4; }
.map-loading { position: absolute; left: 0; right: 0; top: 46%; margin: 0; text-align: center; font: italic 18px Georgia, serif; color: var(--muted); pointer-events: none; }
.map-loading[hidden] { display: none; }
.side-log { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: #081820; contain: size; }
.log-head { padding: 20px 20px 12px; border-bottom: 1px solid var(--line); }
.log-head .eyebrow { margin: 0 0 6px; }
.log-head span { font-size: 12px; color: var(--muted); line-height: 1.5; }
#record-list { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 6px 0; list-style: none; }
#record-list li[hidden] { display: none; }
#record-list li { position: relative; display: flex; align-items: baseline; gap: 9px; padding: 7px 16px 7px 20px; color: #c6d1cd; font-size: 13px; line-height: 1.4; --heat: 0; background: rgb(232 186 123 / calc(var(--heat) * 0.1)); cursor: pointer; }
#record-list .text { flex: 1; min-width: 0; color: color-mix(in srgb, #fff1cf calc(var(--heat) * 100%), #c6d1cd); }
#record-list .text small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.5; margin-top: 2px; }
#record-list .t { display: block; color: color-mix(in srgb, #e8ba7b calc(var(--heat) * 100%), #9bafb3); font-size: 11px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
#record-list i, .log-key i { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--amber); display: inline-block; position: relative; top: -1px; }
#record-list .chips { display: block; margin-top: 4px; }
#record-list .tag { display: inline-block; margin: 0 6px 0 0; font-size: 10px; letter-spacing: 0.12em; color: #8fa6ad; text-decoration: none; }
#record-list a.tag:hover { color: var(--amber); }
.log-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 12px 20px 14px; border-top: 1px solid var(--line); font-size: 12px; color: #b6c3c3; }
.log-key span { display: flex; align-items: center; gap: 6px; }
.legend { display: flex; align-items: center; gap: 12px 28px; padding: 16px 28px; border-top: 1px solid var(--line); font-size: 12px; color: #b6c3c3; flex-wrap: wrap; }
.legend > span { display: flex; align-items: center; gap: 9px; }
.legend-note { margin-left: auto; color: #849da5; font-size: 12px; }
.legend i { display: inline-block; width: 8px; height: 8px; flex-shrink: 0; }
.map-style { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 28px 16px; font-size: 12px; color: #b6c3c3; }
.map-style > span { margin-right: 4px; letter-spacing: 0.1em; text-transform: uppercase; }
.map-style button { min-height: 32px; padding: 5px 11px; background: transparent; border: 1px solid #58737a; color: #dbe5de; font-size: 12px; }
.map-style button[aria-pressed="true"] { border-color: var(--amber); background: #1a2f36; color: #fff1cf; }
.filter-note { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* the clock: the atlas transport bar */
.timeline { padding: 27px 4.5% 30px; }
.time-heading { display: flex; align-items: center; gap: 44px; }
.year-wrap { display: flex; flex-direction: column; }
.year-wrap .eyebrow { font-size: 12px; margin: 0 0 4px; color: var(--muted); }
#day-clock { font: normal 69px/0.98 Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; color: #f1cf9c; white-space: nowrap; }
.count-wrap { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 35px; }
.count-wrap strong { font-size: 31px; font-weight: 400; font-variant-numeric: tabular-nums; }
.count-wrap span, .coverage > span { font-size: 12px; color: var(--muted); margin-top: 8px; }
.coverage { margin-left: auto; display: flex; flex-direction: column; text-align: right; max-width: 380px; }
.coverage strong { font-size: 22px; font-weight: 400; }
.transport { display: flex; align-items: center; gap: 20px; margin-top: 25px; }
.transport button { min-height: 44px; border: 0; }
.primary { background: var(--amber); color: #10212a; min-width: 108px; padding: 12px 22px; }
.replay { background: transparent; color: #b2c0c1; font-size: 18px; padding: 8px; }
.replay span { font-size: 12px; margin-left: 4px; }
.track { flex: 1; padding-top: 17px; min-width: 0; }
input[type="range"] { width: 100%; display: block; margin: 0; height: 6px; appearance: none; background: linear-gradient(to right, var(--amber) var(--progress, 0%), #37505b var(--progress, 0%)); border-radius: 0; cursor: pointer; touch-action: pan-y; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border: 2px solid #f3d4a5; border-radius: 50%; background: #ebbd7c; box-shadow: 0 0 12px #d9ab6840; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: var(--amber); border: 1px solid #f3d4a5; border-radius: 50%; }
.ticks { display: block; position: relative; height: 16px; margin-top: 12px; color: #8fa6ad; font-size: 12px; }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
#clock-state { font-size: 12px; color: var(--muted); min-width: 118px; text-align: right; }
#motion-note, #clock-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; line-height: 1.7; max-width: 110ch; }
#motion-note[hidden] { display: none; }

/* the story */
.story { padding: 44px 4.5% 10px; border-top: 1px solid var(--line); margin: 30px 2% 0; }
.story-head { margin-bottom: 26px; }
.story-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 36px; align-items: start; }
.story-grid.two { grid-template-columns: 1fr 1fr; }
.story-copy p { font-size: 15px; line-height: 1.8; color: #d5dcd6; margin: 0 0 16px; max-width: 62ch; }
.story-copy p.small, p.small { font-size: 13px; color: var(--muted); }
.story-copy a, .disagree a { color: var(--amber); }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #0a1c25; }
.photo figcaption { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.photo figcaption a { color: #b6c3c3; text-decoration: underline; text-decoration-color: #58737a; }
.photo-pair { display: grid; gap: 18px; align-content: start; }
table.facts, table.series { width: 100%; border-collapse: collapse; font-size: 13px; }
table caption { text-align: left; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber); padding: 10px 0 10px; }
table.facts th { text-align: left; font-weight: 400; color: var(--muted); padding: 7px 0; border-top: 1px solid var(--line); width: 40%; }
table.facts td { padding: 7px 0; border-top: 1px solid var(--line); color: #e6e9e1; font-variant-numeric: tabular-nums; }
table.series th { text-align: left; font-weight: 400; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
table.series td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: #d5dcd6; }
table.series td:first-child { color: #f1cf9c; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.series.list td:first-child { white-space: normal; }
.ledger { border: 1px solid var(--line); padding: 22px 24px; }
.ledger .eyebrow { margin-bottom: 14px; }
.disagree { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.disagree li { break-inside: avoid; font-size: 15px; line-height: 1.8; color: #d5dcd6; padding: 0 0 16px; }
.disagree strong { color: #fff1cf; font-weight: 400; font-family: Georgia, serif; font-size: 17px; }
.verdict { margin: 0 0 26px; padding: 4px 0 0 28px; border-left: 2px solid var(--amber); }
.verdict p { font: italic 24px/1.45 Georgia, serif; color: #fff1cf; margin: 0 0 14px; max-width: 30ch; }
.verdict footer { font-size: 13px; color: var(--muted); padding: 0; margin: 0; border: 0; display: block; line-height: 1.6; }

/* about and footer, from the atlas */
.about { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; padding: 48px 4.5% 30px; margin: 30px 2% 0; border-top: 1px solid var(--line); }
.about p { font-size: 14px; line-height: 1.8; color: #cfd7d2; margin: 0 0 14px; }
.about strong { font-weight: 400; color: #fff1cf; }
.method-link { color: var(--amber); font-size: 13px; }
footer { display: flex; justify-content: space-between; gap: 40px; padding: 30px 4.5% 50px; margin: 0 2%; border-top: 1px solid var(--line); font-size: 12px; color: #93a9ae; line-height: 1.9; }
footer a { color: #b6c3c3; }
footer a:hover { color: var(--amber); }
footer p { margin: 0; }
footer p:last-child { text-align: right; letter-spacing: 0.15em; white-space: nowrap; }
footer p:last-child span { letter-spacing: 0; font: italic 15px Georgia, serif; color: #c2cfca; }

/* the data method page */
.doc { margin: 0 4.5%; padding: 36px 0 60px; display: grid; grid-template-columns: 220px minmax(0, 76ch); gap: 40px 56px; }
.doc-head { grid-column: 1 / -1; max-width: 76ch; }
.doc-head h1 { font-size: clamp(36px, 4vw, 56px); }
.doc .lead { font: italic 19px/1.6 Georgia, serif; color: #c2cfca; margin: 18px 0 0; }
.toc { position: sticky; top: 20px; align-self: start; font-size: 13px; }
.toc p { margin: 0 0 10px; letter-spacing: 0.15em; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 18px; line-height: 1.9; color: #b6c3c3; }
.doc article p, .doc article li { font-size: 15px; line-height: 1.8; color: #d5dcd6; }
.doc article p { margin: 0 0 16px; }
.doc article h2 { font-size: 26px; margin: 36px 0 14px; color: #fff1cf; }
.doc article ul, .doc article ol { padding-left: 20px; margin: 0 0 16px; }
.doc article code { font-size: 13px; color: #f1cf9c; }
.doc article a { color: var(--amber); }
.doc article table { margin: 0 0 20px; }
.doc article em { color: #e6e9e1; }
.doc article .src-note { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

@media (max-width: 1100px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 900px) {
  .intro { flex-direction: column; align-items: start; }
  .dek { max-width: none; }
  .dek br { display: none; }
  .atlas-body { flex-direction: column; }
  .side-log { width: auto; border-left: 0; border-top: 1px solid var(--line); contain: none; max-height: 340px; }
  .map-stage { flex: none; height: clamp(380px, 96vw, 600px); }
  .map-topline span:last-child { display: none; }
  .time-heading { flex-wrap: wrap; gap: 24px; }
  .coverage { margin-left: 0; text-align: left; }
  .story-grid, .story-grid.two { grid-template-columns: 1fr; }
  .story-copy p, .verdict p, #clock-note { max-width: none; } /* copy fills the width when the layout stacks */
  .disagree { columns: 1; }
  footer { flex-direction: column; }
  footer p:last-child { text-align: left; white-space: normal; }
  .masthead nav { flex-direction: column; gap: 6px; text-align: right; }
  .legend-note { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .transport { flex-wrap: wrap; }
  .track { flex-basis: 100%; order: 3; }
  #clock-state { margin-left: auto; }
  #day-clock { font-size: 44px; }
  .count-wrap { padding-left: 20px; }
  .map-note { font-size: 15px; left: 16px; bottom: 14px; }
  .map-note br, .map-note span { display: none; }
  .ticks .minor { display: none; }
  .map-topline { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- The Shag Harbour Incident (9 October 2026): three kinds of record, and the story told later ---- */
/* the record's dots: solid = a 1967 record read for this page; half = a 1967 record known from a later quotation;
   hollow grey-blue = told later */
#record-list .q67 i, .log-key .half { background: linear-gradient(90deg, var(--amber) 50%, transparent 50%); border: 1px solid var(--amber); }
#record-list .later i, .log-key .hollow { background: transparent; border: 1px solid var(--rival); }
#record-list .later .t { color: color-mix(in srgb, #cfe0e6 calc(var(--heat) * 100%), #8fb0bd); }
#record-list .tag.one { color: #c9a76f; }
/* the legend's symbols */
.legend .rec { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px #edb36666; }
.legend .placed { width: 12px; height: 12px; border: 1px dashed var(--amber); border-radius: 50%; }
.legend .light { width: 10px; height: 10px; border-radius: 50%; background: #fff1cf; box-shadow: 0 0 10px #fff1cfaa; }
.legend .told { width: 26px; height: 0; border-top: 2px dashed var(--rival); }
.legend .boat { width: 14px; height: 6px; background: #c2cfca; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
/* the clock's label changes with the clock: the date on the night, the year afterwards */
.year-wrap .eyebrow#clock-label { min-width: 15ch; }
/* 05 how the story grew: two figures drawn to scale from data/growth.v1.json, over the table */
.growth { border: 1px solid var(--line); background: #0a1c25; padding: 20px 22px 14px; }
.growth svg { display: block; width: 100%; height: auto; }
.growth .cap { font-size: 13px; color: #b6c3c3; line-height: 1.65; margin: 12px 0 0; }
.growth .cap b { font-weight: 400; }
.growth .cap b.rec { color: var(--amber); }
.growth .cap b.told { color: var(--rival); }
.growth + .growth { margin-top: 18px; }
td .kind { display: block; font-size: 11px; letter-spacing: 0.1em; color: #8fa6ad; margin-top: 4px; }
td .kind.rec { color: #c9a76f; }
td .kind.told { color: var(--rival); }
.story-grid.wide-left { grid-template-columns: 1.25fr 1fr; }
.scan { max-width: 520px; }
@media (max-width: 900px) { .story-grid.wide-left { grid-template-columns: 1fr; } .scan { max-width: none; } }

/* atlas control dock: essential playback controls stay attached above the map */
.timeline.docked {
  display: grid;
  grid-template-columns: 108px 48px minmax(150px, 0.72fr) minmax(270px, 1.55fr) minmax(220px, 0.9fr);
  grid-template-rows: auto auto;
  gap: 5px 18px;
  align-items: center;
  margin: 0;
  padding: 15px 28px 17px;
  border-bottom: 1px solid var(--line);
  background: #0b2028;
}
.timeline.docked .time-heading,
.timeline.docked .transport { display: contents; }
.timeline.docked .year-wrap { grid-column: 3; grid-row: 1; min-width: 0; }
.timeline.docked .year-wrap .eyebrow { margin-bottom: 3px; }
.timeline.docked #year,
.timeline.docked #day-clock,
.timeline.docked #race-clock { font-size: clamp(30px, 2.8vw, 43px); line-height: 0.95; white-space: nowrap; }
.timeline.docked .count-wrap {
  grid-column: 3;
  grid-row: 2;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
}
.timeline.docked .count-wrap strong { font-size: 18px; }
.timeline.docked .count-wrap span { margin: 0; }
.timeline.docked .coverage {
  grid-column: 5;
  grid-row: 1 / 3;
  align-self: center;
  margin: 0;
  max-width: none;
}
.timeline.docked .coverage strong { font-size: 18px; }
.timeline.docked .primary {
  grid-column: 1;
  grid-row: 1 / 3;
  min-width: 108px;
  min-height: 46px;
}
.timeline.docked .replay {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 44px;
  min-height: 44px;
  padding: 7px;
  border: 1px solid #58737a;
}
.timeline.docked .replay span { display: none; }
.timeline.docked .track {
  grid-column: 4;
  grid-row: 1;
  width: 100%;
  padding-top: 10px;
}
.timeline.docked #clock-state,
.timeline.docked #play-state,
.timeline.docked #race-state {
  grid-column: 4;
  grid-row: 2;
  min-width: 0;
  text-align: left;
}
.timeline.docked > .small,
.timeline.docked > #clock-note {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}
.timeline.docked > .to-top { display: none; }

@media (max-width: 1000px) {
  .timeline.docked { display: block; padding: 16px 20px 18px; }
  .timeline.docked .time-heading { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
  .timeline.docked .transport { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
  .timeline.docked .year-wrap { min-width: 145px; }
  .timeline.docked .count-wrap { padding-left: 20px; border-left: 1px solid var(--line); }
  .timeline.docked .coverage { width: 100%; padding-top: 10px; border-top: 1px solid var(--line); text-align: left; }
  .timeline.docked .track { flex: 1 1 320px; order: 3; padding-top: 8px; }
  .timeline.docked #clock-state,
  .timeline.docked #play-state,
  .timeline.docked #race-state { margin-left: auto; text-align: right; }
}

@media (max-width: 560px) {
  .timeline.docked { padding: 14px 16px 16px; }
  .timeline.docked .time-heading { align-items: flex-start; gap: 10px 16px; }
  .timeline.docked .year-wrap { min-width: 130px; }
  .timeline.docked #year,
  .timeline.docked #day-clock,
  .timeline.docked #race-clock { font-size: 36px; }
  .timeline.docked .count-wrap { padding-left: 16px; }
  .timeline.docked .coverage strong { font-size: 16px; }
  .timeline.docked .transport { margin-top: 12px; }
  .timeline.docked .primary { min-width: 92px; min-height: 44px; }
  .timeline.docked .track { flex-basis: 100%; margin: 0; }
}


/* 02 the reel: Joel's YouTube video behind a click-to-load facade (copied from the Pumpkin People page, 14 October 2026) */
.film { position: relative; margin: 0 2%; padding: 64px 2.5% 24px; border: 1px solid var(--line); }
.film-body { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
.film-frame { aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #0a1c25; display: grid; overflow: hidden; }
.film-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.film-button { position: relative; display: block; padding: 0; border: 0; background: #0a1c25; color: #e6e9e1; }
.film-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-button:disabled { cursor: default; opacity: 1; }
.film-button:disabled img { filter: saturate(0.75) brightness(0.8); }
.film-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 22px; background: #081820e8; border: 1px solid var(--line); font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; white-space: nowrap; color: var(--amber); }
.film-button:not(:disabled) .film-cta { background: var(--amber); color: #10212a; border-color: var(--amber); }
.film-button:not(:disabled):hover .film-cta { background: #fff1cf; }
.film-copy h2 { margin: 0 0 18px; }
.film-copy p { font-size: 15px; line-height: 1.8; color: #d5dcd6; margin: 0 0 16px; }
.film-copy p.small { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .film-body { grid-template-columns: 1fr; }
  .film-copy p { max-width: none; }
  .film-cta { white-space: normal; text-align: center; width: max-content; max-width: 86%; }
}
/* the reel: a vertical (9:16) film beside its copy */
.film.short { margin-top: 22px; }
.film.short .film-body { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.film.short .film-frame { aspect-ratio: 9 / 16; width: 100%; max-width: 300px; }
.film.short .film-button { width: 100%; height: 100%; cursor: pointer; }
/* The copy fills its column at every width (Joel, 13 October 2026). */
.film.short .film-copy p { max-width: none; }
.film.short .method-link { display: inline-block; margin-top: 4px; }
@media (max-width: 900px) {
  .film.short .film-body { grid-template-columns: 1fr; }
  .film.short .film-frame { max-width: 280px; }
}

/* 09 the coin: its two sides side by side, on the page ground (the pictures have clear corners) */
.coin-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.coin-pair .photo img { width: 100%; height: auto; background: none; border: 0; } /* no frame: a square box would show round the coin's rounded corners */
@media (max-width: 520px) { .coin-pair { gap: 12px; } }

/* 09 the coin's face: under black light; on hover (mouse) or a tap, click, Enter or Space (aria-pressed), in normal light
   (Joel, 14 October 2026). Hover only where the device can hover, so a phone's "sticky" hover never holds it after a second tap. */
.coin-swap { position: relative; display: block; width: 100%; max-width: 300px; padding: 0; border: 0; background: none; cursor: pointer; }
.coin-swap img { display: block; width: 100%; height: auto; border: 0; background: none; }
.coin-swap .coin-day { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.coin-swap[aria-pressed="true"] .coin-day { opacity: 1; }
@media (hover: hover) { .coin-swap:hover .coin-day { opacity: 1; } }
.coin-swap:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .coin-swap .coin-day { transition: none; } }
