/* BVI Breeze — layout: single column of sections; forecast chart + legend side by side on wide screens. */
:root {
  --bg: #eef3f4;
  --surface: #ffffff;
  --fg: #10232b;
  --muted: #566b72;
  --line: #d6e1e4;
  --grid: #e7eef0;
  --sea: #1b7fa6;
  --sea-soft: rgba(27, 127, 166, 0.18);
  --deep: #0f3a4a;
  --night: rgba(15, 58, 74, 0.06);
  --night-strong: rgba(15, 58, 74, 0.16);
  /* Header: original deep teal */
  --topbar: #0f3a4a;
  --topbar-fg: #f2f6f7;
  --topbar-dim: rgba(242, 246, 247, 0.75);
  --topbar-line: rgba(255, 255, 255, 0.25);
  --topbar-hover: rgba(255, 255, 255, 0.1);
  --topbar-rule: transparent;
  --unit-on-bg: #f2f6f7;
  --unit-on-fg: #0f3a4a;
  --nav-accent: #f2c230;
  --footer: #0f3a4a;
  --footer-fg: #e4eef1;
  --footer-dim: #a9c4cc;
  /* Wind legend colours (same in both themes) */
  --w-red: #d4482b;
  --w-yellow: #f2c230;
  --w-green: #5cbf3c;
  --w-brown: #7a4a21;
  --w-grey: #9a9a9a;
  --ok: #2f9e5b;
  --off: #a0a9ad;
  --sun: #e39a1c;
  /* Forecast lines on Current conditions */
  --fc-blend: #10232b;
  /* Wave parts */
  --swell1: #1f5fbf;
  --swell2: #8a4fd1;
  --chop: #0f8f86;
  --fc-gfs: #2563c9;
  --fc-ifs: #7a3fc4;
  --fc-icon: #c0368a;
  --fc-gdps: #0f8f86;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1418; --surface: #111f25; --fg: #e4edef; --muted: #8fa3aa; --line: #22363d; --grid: #1a2c33;
    --sea: #4fb3d9; --sea-soft: rgba(79, 179, 217, 0.2); --night: rgba(255, 255, 255, 0.035); --night-strong: rgba(255, 255, 255, 0.09);
    --fc-blend: #e4edef; --swell1: #6ea1ff; --swell2: #c09cf5; --chop: #3fd0c2;  --fc-gfs: #6ea1ff; --fc-ifs: #b48cf0; --fc-icon: #f07ab8; --fc-gdps: #3fd0c2; --topbar: #07161c; --topbar-fg: #f2f6f7; --topbar-dim: rgba(242,246,247,0.75); --topbar-line: rgba(255,255,255,0.25); --topbar-hover: rgba(255,255,255,0.1); --topbar-rule: transparent; --unit-on-bg: #f2f6f7; --unit-on-fg: #0f3a4a; --nav-accent: #f2c230; --footer: #07161c; --footer-fg: #dce8eb; --footer-dim: #8fa3aa; --off: #5d6b70; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1418; --surface: #111f25; --fg: #e4edef; --muted: #8fa3aa; --line: #22363d; --grid: #1a2c33;
  --sea: #4fb3d9; --sea-soft: rgba(79, 179, 217, 0.2); --night: rgba(255, 255, 255, 0.035); --night-strong: rgba(255, 255, 255, 0.09);
  --fc-blend: #e4edef; --swell1: #6ea1ff; --swell2: #c09cf5; --chop: #3fd0c2;  --fc-gfs: #6ea1ff; --fc-ifs: #b48cf0; --fc-icon: #f07ab8; --fc-gdps: #3fd0c2; --topbar: #07161c; --topbar-fg: #f2f6f7; --topbar-dim: rgba(242,246,247,0.75); --topbar-line: rgba(255,255,255,0.25); --topbar-hover: rgba(255,255,255,0.1); --topbar-rule: transparent; --unit-on-bg: #f2f6f7; --unit-on-fg: #0f3a4a; --nav-accent: #f2c230; --footer: #07161c; --footer-fg: #dce8eb; --footer-dim: #8fa3aa; --off: #5d6b70; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 15px; line-height: 1.5;
}
a { color: var(--sea); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar); color: var(--topbar-fg); box-shadow: inset 0 -3px 0 var(--topbar-rule); }
.topbar-inner, .page, .footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.wordmark { font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark b { font-weight: 850; font-stretch: 118%; }
.wordmark em { font-style: normal; font-weight: 400; }

.units { display: inline-flex; border: 1px solid var(--topbar-line); border-radius: 999px; padding: 3px; gap: 2px; }
.units button {
  appearance: none; border: 0; background: transparent; color: var(--topbar-fg);
  font: 600 13px/1 var(--body); padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.units button:hover { background: var(--topbar-hover); }
.units button[aria-checked="true"] { background: var(--unit-on-bg); color: var(--unit-on-fg); }
.units button:focus-visible { outline: 2px solid var(--w-yellow); outline-offset: 2px; }

/* ---- Sections ---- */
.page { padding-block: 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 22px; margin: 0; text-wrap: balance; }
.section-head h2 .muted { font-weight: 400; font-stretch: 100%; font-size: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.chart-card { padding: 8px 4px 4px; }
.chart { width: 100%; }
.chart-wind { height: 360px; }
.chart-wave { height: 320px; }
.chart-tide { height: 240px; }
.station-chart { height: 230px; touch-action: pan-y; cursor: grab; }
.station-chart.dragging { cursor: grabbing; }
.station-chart.dragging .highcharts-tooltip, .station-chart.dragging .highcharts-crosshair { visibility: hidden; }
.cc-wrap { position: relative; }
.cc-live { position: absolute; top: 6px; right: 8px; z-index: 5; appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; cursor: pointer; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.cc-live:hover { border-color: var(--muted); }
.cc-live[hidden] { display: none; }
.cc-hint { margin: 2px 0 0; text-align: right; font-size: 12px; }

/* ---- Live stations ---- */
.station-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.station-name { font-weight: 600; font-size: 16px; margin: 0; }
.station-name a { color: inherit; text-decoration: none; }
.station-name a:hover { text-decoration: underline; }
.station-meta { color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pill.off::before { background: var(--off); }
.readout { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.readout .arw { width: 44px; height: 44px; flex: none; }
.readout .speed { font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.readout .speed small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.readout .detail { display: grid; font-size: 13px; color: var(--muted); }
.readout .detail strong { color: var(--fg); font-weight: 600; }
.station-cam { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }

.offline { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.offline:empty { display: none; }

/* ---- Forecast + legend ---- */
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.legend .arw { width: 22px; height: 22px; flex: none; }
.legend .range { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.legend-note { margin: 0; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* Legend bar above the forecast chart */
.legend-bar { display: grid; gap: 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.legend li { font-size: 13px; gap: 6px; }
.legend .arw { width: 18px; height: 18px; }

/* Range selector in section headings */
.range-slot { margin-right: auto; }
.range { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; background: var(--surface); }
.range button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.range button:hover { color: var(--fg); }
.range button[aria-checked="true"] { background: var(--fg); color: var(--surface); }
.range button:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
/* Light divider between the buttons in a group, hidden next to the selected one */
.range button + button { position: relative; }
.range button + button::before { content: ''; position: absolute; left: -2px; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.range button[aria-checked="true"]::before, .range button[aria-checked="true"] + button::before { display: none; }
.section-head h2 + .range-slot { margin-left: 4px; }
.section-head .head-note { flex-basis: 100%; order: 101; }
/* Next kite sessions: title, area buttons and the drag/close tools on one line */
.section-head #session-area { margin-left: auto; align-self: center; }
.section-head #session-area ~ .panel-tools { margin-left: 0; }
@media (max-width: 640px) {
  /* Too narrow for one line: title and tools first, the area buttons below */
  .section-head #session-area { order: 100; flex-basis: 100%; margin-left: 0; }
  .section-head #session-area ~ .panel-tools { margin-left: auto; }
}

/* Station tabs */
.station-card { padding: 0; overflow: hidden; }
.station-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--bg); scrollbar-width: thin; }
.station-tab { display: flex; align-items: center; flex: none; border-right: 1px solid var(--line); }
.tab-btn {
  appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 13px var(--body);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; white-space: nowrap;
}
.tab-btn .arw { width: 18px; height: 18px; flex: none; }
.tab-btn .tab-speed { font-variant-numeric: tabular-nums; color: var(--fg); }
.tab-btn[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: inset 0 -3px 0 var(--sea); }
.tab-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.station-tab .item-tools { padding-right: 8px; }
.editing .station-tab.is-hidden { display: flex !important; }
.station-body { padding: 14px; }
.station { display: grid; gap: 8px; }

/* Arrows inside Highcharts data labels */
.hc-arrow { display: block; line-height: 0; }
.hc-arrow svg { display: block; }

/* Tooltip */
.tip { font-family: var(--body); font-size: 13px; line-height: 1.45; min-width: 150px; }
.tip b { font-weight: 600; }
.tip .tip-time { color: var(--muted); margin-bottom: 2px; }
.tip .tip-row { display: flex; justify-content: space-between; gap: 14px; }

/* ---- Day table (sun + tides) ---- */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; font-size: 13px; }
.day h3 { margin: 0; font-size: 14px; }
.day dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.day dt { color: var(--muted); }
.day dd { margin: 0; text-align: right; }
.day .tides { border-top: 1px solid var(--line); padding-top: 6px; }

/* ---- Current conditions ---- */
.cc-foot { display: grid; gap: 6px; padding: 0 14px 12px; }
.model-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.model-btns:empty { display: none; }
.model-btn { appearance: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 12.5px/1 var(--body); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.model-swatch { flex: none; opacity: 0.45; }
.model-btn:hover { border-color: var(--muted); color: var(--fg); }
.model-btn[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
.model-btn[aria-pressed="true"] .model-swatch { opacity: 1; }
.model-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
.cc-key { margin: 0; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.cc-key span { display: inline-block; width: 18px; height: 0; margin-left: 8px; }
.cc-key span:first-child { margin-left: 0; }
.key-live { border-top: 3px solid; border-image: linear-gradient(90deg, var(--w-red), var(--w-yellow), var(--w-green)) 1; }
.key-gust { border-top: 2px dotted var(--w-grey); }
.key-fc { border-top: 2px dashed var(--muted); }
.station-tab.is-offline .tab-name { color: var(--muted); }

/* ---- Windguru ---- */
.model-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.model-pick select { font: 500 13px var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; max-width: 220px; }

/* ---- Sun markers on the tide chart ---- */
.sun-mark { display: inline-flex; flex-direction: column; align-items: center; font-size: 10.5px; line-height: 1.1; color: var(--muted); font-variant-numeric: tabular-nums; }
.sun-mark svg { display: block; }
.dt-icon { display: inline-block; vertical-align: -4px; margin-right: 4px; }
.dt-icon svg { width: 16px; height: 16px; }

/* ---- Webcams ---- */
.cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.cam { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--deep); aspect-ratio: 16 / 9; color: #fff; text-decoration: none; border: 1px solid var(--line); }
.cam img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cam:hover img { transform: scale(1.03); }
.cam-cap { position: absolute; inset: auto 0 0 0; display: grid; padding: 18px 10px 7px; font-size: 12px; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,0.72)); }
.cam-cap b { font-size: 13.5px; }
.cam-down img { visibility: hidden; }
.cam-down::after { content: "Snapshot unavailable"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; opacity: 0.7; }
.cam:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ---- Cruise ships ---- */
.cruise-card { display: grid; gap: 10px; }
.cruise-card p { margin: 0; }
.ships { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ship { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ship:last-child { border-bottom: 0; }
.ship-main, .ship-time { display: grid; }
.ship-main .muted, .ship-time .muted { font-size: 12.5px; }
.ship-time { text-align: right; font-variant-numeric: tabular-nums; }
.ship-in-port .ship-status { background: color-mix(in srgb, var(--w-green) 22%, transparent); color: var(--fg); }
.ship-departed { opacity: 0.6; }
@media (max-width: 560px) { .ship { grid-template-columns: minmax(0, 1fr) auto; } .ship-status { grid-column: 2; grid-row: 1; justify-self: end; } .ship-time { grid-column: 1 / -1; text-align: left; grid-auto-flow: column; justify-content: start; gap: 10px; } }
.ships-next { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12.5px; padding-top: 8px; border-top: 1px solid var(--line); }
.chip { background: var(--grid); border-radius: 999px; padding: 4px 9px; font-variant-numeric: tabular-nums; }


.windguru { overflow-x: auto; min-height: 120px; }
.wg-card { padding: 8px 4px 4px; }
.wg-aligned { position: relative; overflow: hidden; }
.wg-clip { position: absolute; top: 0; overflow: hidden; }
.wg-clip iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }

/* ---- Edit mode ---- */
.edit-controls { display: flex; gap: 6px; }
.edit-toggle, .edit-reset {
  appearance: none; font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--topbar-line); background: transparent; color: var(--topbar-fg);
}
.edit-toggle[aria-pressed="true"] { background: var(--w-yellow); border-color: var(--w-yellow); color: #10232b; }
.edit-toggle:focus-visible, .edit-reset:focus-visible { outline: 2px solid var(--w-yellow); outline-offset: 2px; }
.edit-banner {
  background: var(--w-yellow); color: #10232b; font-size: 13px; font-weight: 500;
  padding-block: 8px; text-align: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.item-tools { display: none; align-items: center; gap: 4px; order: -1; flex: none; }
.editing .item-tools { display: inline-flex; }
/* Section tools sit at the right of each heading and are always available */
.panel-tools { display: inline-flex; order: 99; margin-left: auto; align-self: center; }
.panel-tools .move-btn { display: none; }
.editing .panel-tools .move-btn { display: inline-block; }
.close-btn { border-color: transparent; background: transparent; color: var(--muted); font-size: 14px; padding: 5px 8px; }
.close-btn:hover { color: var(--fg); border-color: var(--line); }
.panel-tools .grip { opacity: 0.55; }
.panel:hover .panel-tools .grip, .panel-tools .grip:focus { opacity: 1; }
.editing .close-btn[aria-pressed="true"] { background: var(--fg); color: var(--surface); }
.hidden-bar { max-width: 1180px; margin: -20px auto 24px; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.hidden-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius); }
.chip-btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: 600 12.5px/1 var(--body); padding: 7px 10px; border-radius: 999px; cursor: pointer; }
.chip-btn:hover { border-color: var(--muted); }
.link-btn { appearance: none; border: 0; background: none; color: var(--sea); font: 600 12.5px var(--body); cursor: pointer; margin-left: auto; }
.chip-btn:focus-visible, .link-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
.grip { cursor: grab; font-size: 18px; line-height: 1; color: var(--muted); padding: 4px 6px; border-radius: 6px; user-select: none; touch-action: none; }
.grip:hover { background: var(--grid); color: var(--fg); }
.tool-btn {
  appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 6px; cursor: pointer;
}
.tool-btn:hover { border-color: var(--muted); }
.tool-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
.vis-btn[aria-pressed="true"] { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.editing .panel { outline: 1px dashed var(--line); outline-offset: 8px; border-radius: 4px; }
.editing .section-head { justify-content: flex-start; }
.editing .station-top { justify-content: flex-start; }
.editing .station-top .pill { margin-left: auto; }
.is-hidden { display: none !important; }
.editing .is-hidden { display: grid !important; opacity: 0.4; }
.editing .is-hidden .item-tools { opacity: 1; }
.drag-ghost { opacity: 0.35; }
.drag-chosen { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ---- Page nav ---- */
.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 12px; }
.nav a { color: var(--topbar-dim); text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 10px; border-radius: 6px; }
.nav a:hover { color: var(--topbar-fg); background: var(--topbar-hover); }
.nav a[aria-current="page"] { color: var(--topbar-fg); box-shadow: inset 0 -2px 0 var(--nav-accent); border-radius: 0; }
@media (max-width: 720px) {
  .nav { order: 3; width: 100%; margin: 0; }
}

/* ---- Kiting locations ---- */
.wind-now { font-size: 14px; }
.kite-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
@media (max-width: 900px) { .kite-layout { grid-template-columns: minmax(0, 1fr); } }
.map-card { padding: 0; overflow: hidden; display: grid; }
.map { height: min(72vh, 720px); min-height: 420px; width: 100%; }
@media (max-width: 900px) { .map { height: 60vh; min-height: 340px; } }
.map-key { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; font-size: 12.5px; border-top: 1px solid var(--line); }
.map-key span { display: inline-flex; align-items: center; gap: 6px; }
.map-key i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.key-on { background: color-mix(in srgb, var(--w-green) 55%, transparent); border: 1px solid var(--w-green); }
.key-off { background: rgba(138, 151, 156, 0.3); border: 1px solid #8a979c; }
.key-closed { background: color-mix(in srgb, var(--w-red) 30%, transparent); border: 1px solid var(--w-red); }

.kite-marker { appearance: none; border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 4px; cursor: pointer; font: inherit; }
.kite-marker .pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); background: #8a979c; flex: none; }
.kite-marker.state-on .pin { background: var(--w-green); }
.kite-marker.state-closed .pin { background: var(--w-red); }
.kite-marker .pin-label {
  font-size: 12px; font-weight: 600; color: #10232b; background: rgba(255,255,255,0.92);
  padding: 2px 6px; border-radius: 4px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.kite-marker .pin-label { display: none; }
.show-labels .kite-marker .pin-label, .kite-marker.selected .pin-label, .kite-marker:hover .pin-label, .kite-marker:focus-visible .pin-label { display: inline; }
.kite-marker.selected { z-index: 2; }
.kite-marker.selected .pin { transform: scale(1.25); border-color: var(--w-yellow); }
.kite-marker.selected .pin-label { background: var(--w-yellow); }
.kite-marker:focus-visible { outline: 2px solid var(--w-yellow); outline-offset: 2px; border-radius: 4px; }

.flow-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.flow-toggle { appearance: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 12.5px/1 var(--body); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.flow-toggle::before { content: ""; width: 16px; height: 0; border-top: 2px solid currentColor; border-radius: 2px; }
.flow-toggle[aria-pressed="true"] { color: var(--fg); border-color: var(--fg); }
.flow-toggle:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
.stn-marker { display: flex; align-items: center; gap: 3px; text-decoration: none; color: #10232b; z-index: 3; }
.stn-pin { width: 26px; height: 26px; border-radius: 6px; background: #10232b; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.45); border: 2px solid #fff; }
.stn-pin .arw { width: 20px; height: 20px; }
.stn-off { width: 8px; height: 8px; border-radius: 50%; background: #8a979c; }
.stn-label { font-size: 12px; background: rgba(255,255,255,0.94); padding: 2px 6px; border-radius: 4px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,0.25); font-variant-numeric: tabular-nums; }
.stn-offline .stn-label { color: #566b72; }
.stn-marker:focus-visible { outline: 2px solid var(--w-yellow); outline-offset: 2px; border-radius: 6px; }
.key-station { background: #10232b; border: 1px solid #fff; outline: 1px solid #10232b; }
.spot-panel { display: grid; gap: 10px; align-content: start; max-height: min(78vh, 800px); overflow-y: auto; }
@media (max-width: 900px) { .spot-panel { max-height: none; } }
.spot-panel p { margin: 0; }
.spot-panel h4 { margin: 8px 0 0; font-size: 14px; }
.panel-title { margin: 0; font-family: var(--display); font-stretch: 105%; font-size: 19px; }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.spot-row {
  appearance: none; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.spot-row:hover { border-color: var(--muted); }
.spot-row:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
.spot-row-main { display: grid; min-width: 0; }
.spot-row-main .muted { font-size: 12.5px; }
.spot-row-badges { display: grid; gap: 4px; justify-items: end; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #8a979c; }
.dot-on { background: var(--w-green); }
.dot-closed { background: var(--w-red); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 999px; white-space: nowrap; background: var(--grid); color: var(--muted); }
.badge-on { background: color-mix(in srgb, var(--w-green) 22%, transparent); color: var(--fg); }
.badge-closed { background: color-mix(in srgb, var(--w-red) 22%, transparent); color: var(--fg); }
.badge-caution { background: color-mix(in srgb, var(--w-yellow) 35%, transparent); color: var(--fg); }
.back-btn { appearance: none; border: 0; background: none; color: var(--sea); font: 600 13px var(--body); cursor: pointer; padding: 0; justify-self: start; }
.spot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rose { width: 120px; height: 120px; flex: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.status-note { padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.status-closed { background: color-mix(in srgb, var(--w-red) 16%, transparent); }
.status-caution { background: color-mix(in srgb, var(--w-yellow) 25%, transparent); }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.windows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.windows li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.guide-note { max-width: 90ch; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---- Footer ---- */
.footer { background: var(--footer); color: var(--footer-fg); font-size: 13.5px; margin-top: 8px; }
.footer a { color: var(--footer-fg); }
.footer-inner { padding-block: 32px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 24px; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 24px 40px; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-cols { grid-template-columns: minmax(0, 1fr); } }
.footer h2 { margin: 0 0 8px; font: 600 11.5px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--footer-dim); }
.footer p { margin: 0; max-width: 60ch; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand .brand { color: var(--footer-fg); }
.footer-brand .wordmark { font-size: 22px; }
.footer-brand p { color: var(--footer-dim); }
.footer-sources li { color: var(--footer-dim); }
.footer-sources b { color: var(--footer-fg); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.14); color: var(--footer-dim); font-size: 12.5px; }

@media (max-width: 560px) {
  .wordmark { font-size: 20px; }
  .units button { padding: 6px 9px; }
  .chart-wind { height: 320px; }
  .readout .speed { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* "Direction good for" line under the live readout */
.good-for { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--w-green) 18%, transparent); margin-left: auto; }
.now-head { align-items: center; justify-content: flex-start; }
.now-head .panel-tools { margin-left: 0; }
.now-head .good-for:empty + .panel-tools { margin-left: auto; }
.good-for:empty { display: none; }
.good-for a { color: var(--fg); font-weight: 600; }
.good-for.none { background: var(--grid); color: var(--muted); }

/* Compass rose on the kiting map */
.compass-rose { margin: 10px 0 0 10px; pointer-events: none; display: grid; justify-items: center; gap: 2px; opacity: 0.8; }
.compass-rose .rose-spin { width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.82); box-shadow: 0 1px 6px rgba(0,0,0,0.25); }
.compass-rose svg { display: block; overflow: visible; }
.rose-ring { fill: none; stroke: #10232b; stroke-width: 1.2; opacity: 0.55; }
.rose-ring.thin { stroke-width: 0.6; opacity: 0.35; }
.rose-tick { stroke: #10232b; stroke-width: 1.2; opacity: 0.7; }
.rose-label { font: 600 7.5px var(--body); fill: #3d5058; text-anchor: middle; dominant-baseline: central; }
.rose-label.mid { font-size: 8.5px; fill: #10232b; }
.rose-label.major { font: 800 12px var(--display); fill: #10232b; }
.rose-star.dark { fill: #10232b; }
.rose-star.light { fill: #fff; stroke: #10232b; stroke-width: 0.6; }
.rose-wind-arrow { stroke: #10232b; stroke-width: 0.8; }
.rose-caption { font-size: 12px; background: rgba(255,255,255,0.92); color: #10232b; padding: 2px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.rose-caption:empty { display: none; }
.compass-rose svg { width: 120px; height: 120px; }
@media (max-width: 560px) { .compass-rose .rose-spin { width: 90px; height: 90px; } .compass-rose svg { width: 90px; height: 90px; } }

/* Cruise ships in port, in the Current conditions heading */
.ships-now { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--fg); text-decoration: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums; }
.ships-now span { margin-left: 4px; }
.ships-now .ship-ico { color: var(--deep); flex: none; }
.ships-now.none { color: var(--muted); font-weight: 500; }
.ships-now.none .ship-ico { color: var(--muted); }
.ships-now:hover { border-color: var(--muted); }
.ships-now:focus-visible { outline: 2px solid var(--sea); outline-offset: 1px; }
:root[data-theme="dark"] .ships-now .ship-ico { color: var(--fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ships-now .ship-ico { color: var(--fg); } }

/* Wind-strength tint on the "Direction good for" pill, same colours as the arrows */
.good-for { display: inline-flex; align-items: center; gap: 7px; min-width: 0; flex: 0 1 auto; }
.now-head { flex-wrap: nowrap; }
.now-head h2, .now-head #now-updated, .now-head .ships-now, .now-head .panel-tools { flex: none; }
@media (max-width: 900px) {
  /* Narrow screens: title and the drag/close tools share the first line, everything else wraps below */
  .now-head { flex-wrap: wrap; }
  .now-head h2 { order: 0; flex: 1 1 auto; }
  .now-head .panel-tools { order: 1; margin-left: auto; }
  .now-head #now-updated { order: 2; }
  .now-head .ships-now { order: 3; }
  .now-head .good-for { order: 4; margin-left: 0; flex-basis: 100%; }
}
.gf-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--w-grey); }
.good-for.band-w-red { background: color-mix(in srgb, var(--w-red) 18%, transparent); }
.good-for.band-w-red .gf-dot { background: var(--w-red); }
.good-for.band-w-yellow { background: color-mix(in srgb, var(--w-yellow) 30%, transparent); }
.good-for.band-w-yellow .gf-dot { background: var(--w-yellow); }
.good-for.band-w-green { background: color-mix(in srgb, var(--w-green) 22%, transparent); }
.good-for.band-w-green .gf-dot { background: var(--w-green); }
.good-for.band-w-brown { background: color-mix(in srgb, var(--w-brown) 22%, transparent); }
.good-for.band-w-brown .gf-dot { background: var(--w-brown); }
.gf-strength { color: var(--muted); white-space: nowrap; }
.now-head .good-for { border-radius: 14px; }
.good-for.none { background: var(--grid); color: var(--muted); }
.range-flag { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--w-yellow) 35%, transparent); }

/* Upcoming cruise days: cards like the Tide and sun times tables */
.ships-next { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ships-next-h { margin: 0; font-size: 14px; }
.cruise-day { align-content: start; }
.cruise-day-sum { margin: -2px 0 0; font-size: 12.5px; }
.day .cruise-ship { border-top: 1px solid var(--line); padding-top: 6px; }
.cruise-ship .ship-name { color: var(--fg); font-weight: 600; }
.cruise-ship .ship-where { grid-column: 1 / -1; font-size: 12px; }
.cruise-ship .ship-where + dd { display: none; }

/* ---- Learning to kite (draft) ---- */
.learn-intro { margin: 0; max-width: 68ch; }
.schools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.school { display: grid; gap: 10px; align-content: start; }
.school h3 { margin: 0; font-family: var(--display); font-stretch: 105%; font-size: 18px; }
.school p { margin: 0; }
.school-head { display: grid; gap: 2px; }
.school-where { font-size: 13px; color: var(--muted); }
.school-where::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); margin-right: 6px; }
.school-where a { color: inherit; }
.school-link { font-weight: 600; font-size: 14px; justify-self: start; }

/* Keep the footer at the bottom of short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
.tab-btn .tab-unit { color: var(--muted); font-weight: 500; font-size: 12px; }

/* Today's cruise card: status badge next to the berth */
.cruise-ship .ship-status { margin-left: 4px; vertical-align: 1px; }
.cruise-ship.ship-in-port .ship-status { background: color-mix(in srgb, var(--w-green) 22%, transparent); color: var(--fg); }
.cruise-ship.ship-departed { opacity: 0.6; }
.cruise-day h3 .muted { font-weight: 500; }
.blend-swatch { display: inline-block; width: 24px; height: 0; border-top: 3px solid; border-image: linear-gradient(90deg, var(--w-red), var(--w-yellow), var(--w-green)) 1; }
.fc-foot { padding-top: 4px; }

/* Forecast accuracy on the model buttons */
.model-acc { font-weight: 500; font-size: 11.5px; color: var(--muted); margin-left: 2px; font-variant-numeric: tabular-nums; }
.model-btn.is-best .model-acc { color: var(--fg); font-weight: 600; }
.acc-note { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.acc-note b { color: var(--fg); font-weight: 600; }

/* Next kite sessions: one bordered tile per spot */
.sessions-card { padding: 12px; }
.sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.session { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 13px;
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 8px; background: var(--bg); color: inherit; text-decoration: none; }
.session:hover { border-color: var(--muted); }
.session:hover b { text-decoration: underline; }
.session:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.session-dot { width: 10px; height: 10px; border-radius: 50%; }
.session-main, .session-when { display: grid; min-width: 0; }
.session-main .muted, .session-when .muted { font-size: 12.5px; }
.session-when { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.sessions p { margin: 0; }
.sessions-none { grid-column: 1 / -1; padding: 8px 2px 0; border-top: 1px solid var(--line); }
.judge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }

/* ---- Best months to kite ---- */
.heat-card { padding: 0; overflow: hidden; }
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 760px; }
.heat th, .heat td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.heat thead th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--surface); }
.heat tbody th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; padding-left: 14px; }
.heat tbody th[scope="row"] a { color: var(--fg); text-decoration: none; }
.heat tbody th[scope="row"] a:hover { text-decoration: underline; }
.heat tbody th[scope="row"] .muted { display: block; font-weight: 400; font-size: 11.5px; }
.heat .heat-group th { text-align: left; padding: 10px 14px 6px; font-size: 12.5px; background: var(--bg); }
.heat td { color: var(--fg); min-width: 46px; }
.heat-key { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); }
.heat-key i { width: 160px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--w-green) 6%, var(--surface)), color-mix(in srgb, var(--w-green) 85%, var(--surface))); border: 1px solid var(--line); }
.climate-series { display: grid; gap: 14px; }
.series-card { display: grid; gap: 10px; }
.series-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.series-head h3 { margin: 0; font-family: var(--display); font-stretch: 105%; font-size: 18px; }
.series-chart { height: 280px; }
.roses { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 720px) { .roses { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.roses figure { margin: 0; display: grid; justify-items: center; gap: 2px; font-size: 11.5px; }
.roses figcaption { display: grid; justify-items: center; line-height: 1.2; }
.mini-rose { width: 54px; height: 54px; }
.mini-rose.empty { display: grid; place-items: center; color: var(--muted); }
.about-card { display: grid; gap: 10px; }
.about-card p { margin: 0; max-width: 75ch; }

.offline-banner { background: var(--w-yellow); color: #10232b; font-size: 13px; font-weight: 500; text-align: center; padding: 8px max(16px, env(safe-area-inset-left, 0px)); }

/* ---- Gallery ---- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.video { display: grid; gap: 8px; align-content: start; }
.video-play { position: relative; display: block; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: var(--deep); width: 100%; }
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.video-play:hover img { transform: scale(1.03); }
.video-play:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 58px; height: 40px; transform: translate(-50%, -50%); border-radius: 10px; background: rgba(15, 58, 74, 0.85); }
.play-icon::after { content: ""; position: absolute; left: 24px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-meta { display: grid; gap: 2px; font-size: 14px; }
.video-meta .muted { font-size: 12.5px; }
.photos { columns: 3 280px; column-gap: 14px; }
.photo { break-inside: avoid; margin: 0 0 14px; display: grid; gap: 6px; }
.photo-open { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; }
.photo-open img { width: 100%; height: auto; display: block; transition: transform .3s; }
.photo-open:hover img { transform: scale(1.02); }
.photo-open:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.photo figcaption { display: grid; gap: 1px; font-size: 13.5px; }
.photo figcaption a { color: var(--fg); }
.photo-credit { font-size: 11.5px; color: var(--muted); }
.photo-credit a { color: var(--muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 15, 20, 0.92); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 48px max(56px, env(safe-area-inset-right, 0px)) 16px max(56px, env(safe-area-inset-left, 0px)); gap: 10px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #e4edef; font-size: 14px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.lightbox figcaption .photo-credit, .lightbox figcaption .photo-credit a { color: #a9c4cc; }
.lb-close, .lb-nav { position: fixed; border: 0; background: rgba(255,255,255,0.12); color: #fff; cursor: pointer; border-radius: 999px; font: 600 22px/1 var(--body); }
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 40px; height: 40px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--w-yellow); }
@media (max-width: 560px) { .lightbox figure { padding: 56px 12px 16px; } .lb-nav { top: auto; bottom: 12px; transform: none; } }

/* Area buttons above the kiting map */
.map-areas { display: flex; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.map-areas .range, #session-area .range { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.map-areas .range button, #session-area .range button { white-space: nowrap; }

/* Waves: parts, area switch and forecast table */
.wave-arrow { display: inline-flex; flex-direction: column; align-items: center; font: 600 10px/1.1 var(--body); }
.wave-note { margin: 2px 12px 8px; }
.wave-table-card { padding: 0; overflow: hidden; }
.wave-table-wrap { overflow-x: auto; max-height: 560px; overflow-y: auto; }
.wave-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.wave-table th, .wave-table td { padding: 7px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wave-table thead th { position: sticky; top: 0; background: var(--surface); font-size: 12px; color: var(--muted); font-weight: 600; z-index: 1; }
.wave-table tbody th[scope="row"] { font-weight: 600; width: 80px; }
.wave-table .wt-day th { background: var(--bg); font-size: 12.5px; padding: 8px 12px; position: sticky; top: 33px; }
.wt-arrow { display: inline-block; vertical-align: -4px; margin-right: 6px; }
.wt-arrow .arw { width: 16px; height: 16px; }
.wt-key { display: inline-block; width: 16px; height: 0; border-top: 3px solid; margin-right: 6px; vertical-align: 3px; }

/* Live updates on Current conditions */
.readout-arrow { display: inline-flex; }
.readout-arrow .arw { transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.readout-arrow path { transition: fill 0.9s; }
.speed-num { display: inline-block; min-width: 1.2ch; font-variant-numeric: tabular-nums; }
.pill.pulse::before { animation: live-pulse 1.4s ease-out 2; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) { .readout-arrow .arw { transition: none; } .pill.pulse::before { animation: none; } }



.tip-swatch { display: inline-block; vertical-align: -1px; margin-right: 6px; }
.tip-swatch .arw { width: 14px; height: 14px; vertical-align: -2px; }
span.tip-swatch { display: inline-block; margin-right: 6px; }
