/* The harbour now (partials/ferry-card.njk), the live harbour on the harbour
   movements page and the race pages, which name this file in their front
   matter's `stylesheets` so site.css stays inside its weight budget. The card is the shipping
   card's shape; the maps run to its edges on a phone, as the course maps do;
   each vessel is a red arrow with a white edge, faded when its position is
   old; and each row of a list keeps the age of its position in a column of
   its own, so the ages line up. The crossings of the page's course are a
   line a leg under the maps, each leg's number and name in bold, wrapping
   anywhere a long mark's name needs to on a phone. On a race page the one
   map is the course map with the vessels over it, keyed as the course maps
   are (Greg asked on 7 November 2026). */
.live-card { background: var(--card); border: 1px solid var(--canvas-2); border-top: 3px solid var(--emblem); padding: .8rem 1rem .6rem; margin: 1.25rem 0; max-width: 46rem; }
.live-card h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.live-card p { margin: .3rem 0 0; }
.live-status { font-size: .95rem; }
.live-summary { font-size: .95rem; font-weight: 600; color: var(--navy-2); }
.live-card [hidden] { display: none; }
.live-map { margin: 1rem 0 0; }
.live-map figcaption { margin: 0 0 .35rem; }
.live-map h3 { display: inline; margin: 0; font-size: 1.05rem; }
.live-sub { font-size: .9rem; color: var(--slate); }
.live-map .map { margin-inline: -1rem; width: calc(100% + 2rem); max-width: none; border-inline: 0; }
.vsl path, .vsl circle { fill: var(--emblem); stroke: #FFF; }
.vsl.is-stale { opacity: .45; }
/* A ship over 100 m or a cruise ship, navy; a pilot vessel, red and white
   as the pilot's flag; the speed bar and the dashed path ahead in the
   vessel's own colour. */
.vsl-ship path, .vsl-ship circle { fill: var(--navy); }
.vsl-pilot path, .vsl-pilot circle { stroke: var(--navy); }
.vsl-pilot .vsl-pw, .vsl-pilot circle { fill: #FFF; }
.vsl-pilot .vsl-pr { fill: var(--emblem); }
.vsl-pilot circle { stroke: var(--emblem); }
.vsl .vsl-speed { fill: none; stroke: var(--emblem); stroke-linecap: round; }
.vsl-ship .vsl-speed { stroke: var(--navy); }
.vsl-path { fill: none; stroke: var(--emblem); opacity: .8; }
.vsl-path-ship { stroke: var(--navy); }
.live-club rect { fill: var(--navy); stroke: #FFF; }
.map-live .lbl-club { fill: var(--navy); }
.live-key { list-style: none; margin: .45rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; color: var(--slate); }
/* On a race page the map is the course map live: its caption is the
   course's name, long enough to wrap on a phone, so the line under it
   starts a line of its own; and two keys sit under the map, the course
   map's own (site.css, .map-key) and then the vessels' key, parted by a
   hairline. */
.live-map-course .live-sub { display: block; }
.live-card .map-key { margin: .45rem 0 0; }
.live-map-course .live-key { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--canvas-2); }
.live-key li { display: flex; align-items: center; gap: .35rem; }
.live-key svg { flex: none; width: 1.5rem; height: 1.125rem; }
/* Nearest to me, as the harbour guide's button: the reader a blue dot,
   and each row's distance and bearing from them. */
.live-me circle { fill: #1E6FD9; stroke: #FFF; }
.live-locate { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .6rem 0 0; font-size: .9rem; color: var(--slate); }
.live-locate-button { background: var(--navy-2); color: var(--canvas); border: 1px solid var(--navy-2); border-radius: 2px; font: inherit; font-size: .92rem; font-weight: 600; padding: .55rem .95rem; min-height: 44px; cursor: pointer; }
.live-locate-button:hover { background: var(--navy); border-color: var(--navy); }
.live-locate-button[disabled] { opacity: .65; cursor: progress; }
.live-from { font-size: .9rem; color: var(--navy-2); font-variant-numeric: tabular-nums; }
.live-none { font-size: .9rem; color: var(--slate); }
.live-list { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--canvas-2); }
.live-row { display: flex; gap: .75rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--canvas-2); }
.live-body { min-width: 0; flex: 1; }
.live-card .live-body p { margin: 0; }
.live-name { font-size: 1rem; overflow-wrap: anywhere; }
.live-detail { font-size: .9rem; color: var(--slate); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.live-age { flex: none; min-width: 4.6rem; text-align: right; font-size: .9rem; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-row.is-stale .live-name, .live-row.is-stale .live-age { color: var(--slate); }
/* Each row's drawings (Greg asked on 8 November 2026): a dial at its
   start, north up, the vessel's mark turned to its course and, once the
   reader sorts by nearest, a blue pointer the way to look; under the words
   a speed bar in the vessel's colour and, with the reader's position, a
   distance bar in their blue, each 6rem across with a tick every 5 knots
   or every mile. An old position's mark and speed bar fade as the map's
   mark does. */
.live-dial { flex: none; align-self: flex-start; width: 1.75rem; height: 1.75rem; margin-right: -.25rem; }
.live-dial-ring { fill: none; stroke: var(--slate); stroke-opacity: .35; stroke-width: 1; }
.live-dial-north { stroke: var(--slate); stroke-width: 1.5; }
.live-dial-me path { fill: #1E6FD9; }
.live-bar { display: block; width: 6rem; height: .5rem; margin: .25rem 0 .15rem; }
.live-bar-track { fill: var(--canvas-2); }
.live-bar-fill { fill: var(--emblem); }
.live-speed-ship .live-bar-fill { fill: var(--navy); }
.live-dist .live-bar-fill { fill: #1E6FD9; }
.live-bar-ticks { stroke: var(--slate); stroke-width: 1; }
.live-row.is-stale .live-speed { opacity: .45; }
.live-cross { margin-top: 1rem; }
.live-cross h3 { margin: 0; font-size: 1.05rem; }
.live-cross-head, .live-cross-none { font-size: .95rem; }
.live-cross-list { list-style: none; margin: .4rem 0 0; padding: 0; border-top: 1px solid var(--canvas-2); }
.live-cross-leg { padding: .4rem 0; border-bottom: 1px solid var(--canvas-2); font-size: .95rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.live-keep { font-size: .95rem; margin-top: .8rem; }
.live-credit, .live-card .map-credit { font-size: .82rem; color: var(--slate); }
.map-live .lbl-place { font-weight: 600; fill: var(--slate); }
@media (min-width: 48rem) {
  .live-map .map { margin-inline: 0; width: 100%; border: 1px solid var(--canvas-2); }
}
/* The race alerts (partials/race-alerts.njk): the cards' shape, a row an
   alert, newest first: its time, its title heavier, its text beneath, and a
   left rule in the colour the maps give its vessel, red for a ferry's
   crossing and navy for a ship. A high priority alert is no louder than a
   bolder title. The topic stays on one line, to be read off and typed. */
.alerts-card { background: var(--card); border: 1px solid var(--canvas-2); border-top: 3px solid var(--emblem); padding: .8rem 1rem .6rem; margin: 1.25rem 0; max-width: 46rem; }
.alerts-card h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.alerts-card p { margin: .3rem 0 0; }
.alerts-status { font-size: .95rem; }
.alerts-list { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--canvas-2); }
.alerts-list li { padding: .45rem 0 .45rem .6rem; border: solid var(--canvas-2); border-width: 0 0 1px 3px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.alerts-list .alert-crossing { border-left-color: var(--emblem); }
.alerts-list .alert-ship { border-left-color: var(--navy); }
.alert-time { font-size: .9rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.alert-title { font-weight: 600; }
.alerts-list .is-high .alert-title { font-weight: 700; }
.alert-text { display: block; margin-top: .1rem; font-size: .9rem; }
.alerts-about, .alerts-subscribe { font-size: .9rem; color: var(--slate); }
.alerts-topic { font-weight: 600; color: var(--ink); white-space: nowrap; }
