:root { --ink: #153239; --muted: #52696d; --line: #dbe5e5; --green: #176957; }
.live-page { color: var(--ink); }
.live-header { display: flex; align-items: center; gap: 2rem; padding: 1rem 1.5rem; background: white; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.3rem; font-weight: 800; color: var(--green); text-decoration: none; white-space: nowrap; }
.brand span { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.event-heading { flex: 1; min-width: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .65rem; font-weight: 700; color: var(--green); margin: 0 0 .2rem; }
.event-heading h1 { font-size: 1.2rem; margin: 0; overflow-wrap: anywhere; }
.live-status { font-size: .8rem; padding: .5rem .75rem; border-radius: 2rem; background: #eef4f3; margin: 0; }
.live-status[data-state=live] { color: #106349; background: #e0f3e9; }
.live-status[data-state=error] { color: #8a3d16; background: #fff0df; }
.live-main { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent; }
.map-panel { position: relative; min-width: 0; }
#map { height: calc(100dvh - 90px); min-height: 420px; width: 100%; background: #dce8e7; z-index: 0; }
.map-controls { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .4rem .6rem; background: white; }
.map-controls button, .map-controls label { margin: 0; font-size: .8rem; padding: .65rem .75rem; background: white; border: 1px solid #a8bdbc; border-radius: .35rem; box-shadow: 0 2px 5px #15323915; }
.map-controls label { display: flex; align-items: center; gap: .4rem; }
.map-controls input { margin: 0; padding: 0; accent-color: var(--green); }
.boat-panel { padding: 1.3rem; background: white; border-left: 1px solid var(--line); max-height: calc(100dvh - 130px); overflow: auto; }
.boat-panel h2 { margin: 0; font-size: 1rem; display: flex; justify-content: space-between; }
#boat-count { color: var(--green); background: #edf4f1; border-radius: 1rem; padding: .1rem .5rem; }
.boat-help, #empty-state { font-size: .8rem; line-height: 1.6; color: var(--muted); }
.boat-list { list-style: none; padding: 0; margin: 1rem 0; }
.boat-list li { border-left: 4px solid var(--green); margin-bottom: .6rem; background: #f5f8f7; border-radius: .3rem; }
.boat-list button { width: 100%; border: 0; text-align: left; background: transparent; padding: .7rem; margin: 0; color: var(--ink); }
.boat-list button strong { display: block; font-size: .9rem; }
.boat-category, .report-age { display: block; font-size: .75rem; line-height: 1.6; color: var(--muted); }
.boat-list .stale { background: #f5f5f5; opacity: .65; }
.boat-icon { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 2px 3px #0006); }
/* Small thin rowing shell (38px long: live-model.js sizes trails from this) turned by --turn: blunt stern left,
   pointed bow right at 0deg. The bow number sits upright just above the hull, outside it. */
.bow-marker { position: relative; top: -11px; display: flex; justify-content: center; width: 38px; height: 10px; font: 700 11px/11px system-ui,sans-serif; color: #102a43; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; white-space: nowrap; }
.bow-marker::before { content: ""; position: absolute; left: 0; top: 11px; width: 38px; height: 10px; background: var(--boat, #14775b); transform: rotate(var(--turn, 0deg));
    clip-path: polygon(0% 40%, 6% 28%, 18% 18%, 30% 15%, 70% 15%, 84% 22%, 93% 38%, 100% 50%, 93% 62%, 84% 78%, 70% 85%, 30% 85%, 18% 82%, 6% 72%, 0% 60%); }
.map-key { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .7rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.map-key span { border-top: 3px dashed; padding-top: .3rem; }
.start-key { color: #14775b; } .checkpoint-key { color: #ae6716; } .finish-key { color: #b3304b; }
.privacy-note, .map-links { font-size: .7rem; line-height: 1.6; color: var(--muted); }
.map-links a { color: var(--green); }
.tile-status, .map-notice { position: absolute; z-index: 500; left: .8rem; right: .8rem; bottom: 2rem; background: #fff6dc; padding: .7rem; font-size: .8rem; border-radius: .3rem; }
button:focus-visible, a:focus-visible, input:focus-visible, .leaflet-marker-icon:focus-visible { outline: 3px solid #277dc7; outline-offset: 3px; }
@media (max-width: 700px) {
    .live-header { gap: .8rem; padding: .8rem; flex-wrap: wrap; }
    .brand { font-size: 1.1rem; }
    .event-heading h1 { font-size: 1rem; }
    .live-status { width: 100%; box-sizing: border-box; border-radius: .3rem; padding: .35rem .6rem; }
    .live-main { display: block; }
    #map { height: 62dvh; min-height: 340px; }
    .boat-panel { max-height: none; padding: 1rem; border-left: 0; border-top: 1px solid var(--line); }
    .map-controls { gap: .3rem; }
    .map-controls button, .map-controls label { font-size: .75rem; padding: .6rem; }
}
