/* supdawg — one stylesheet, no build step. Sections below follow the
   ribbon UX DOM contract (docs/plans/ribbon-ux.md, section 3). */

/* ---------- fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f4f7f9;
  --bg-2: #ffffff;
  --fg: #101a21;
  --fg-2: #4d5d68;
  --muted: #7d8b95;
  --line: #dde4e9;
  --line-2: #eef2f5;
  --accent: #0e7a8a;
  --accent-fg: #ffffff;
  --great: #1f9d5c;
  --good: #64b544;
  --marginal: #d9a521;
  --poor: #e0682f;
  --avoid: #b8352f;
  --night: #c9d3da;
  --rain: #4aa3df;
  --sun: #f5c542;
  --heat-a: 0.42;
  --shadow: 0 8px 28px rgba(16, 26, 33, 0.10), 0 1px 3px rgba(16, 26, 33, 0.06);
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Theme follows the OS only - no data-theme attribute, no toggle. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1216;
    --bg-2: #121b21;
    --fg: #e9eff2;
    --fg-2: #a9b7c0;
    --muted: #6f7f8a;
    --line: #223038;
    --line-2: #182229;
    --accent: #3ec1d3;
    --accent-fg: #06161a;
    --great: #2fc06f;
    --good: #8fd15a;
    --marginal: #f0bd3d;
    --poor: #f0824a;
    --avoid: #e5514a;
    --night: #22303a;
    --rain: #5db4ec;
    --sun: #f7cf5a;
    --heat-a: 0.34;
    --shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-feature-settings: "tnum" 1, "cv11" 1; line-height: 1.4; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* Box-shadow, not outline, so the ring follows each button's own border-radius. */
button:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.mono { font-family: var(--mono); }

.tier-great { --tier: var(--great); }
.tier-good { --tier: var(--good); }
.tier-marginal { --tier: var(--marginal); }
.tier-poor { --tier: var(--poor); }
.tier-avoid { --tier: var(--avoid); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  /* Dropping the reference beats pausing SMIL - it can't run if nothing clips. */
  .chart .curves .wipe { clip-path: none; }
  .days { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Naming .hdr/.title-block holds them still, so only the days crossfade. */
@view-transition {
  navigation: auto;
}

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  view-transition-name: hdr;
}
.hdr-in { width: 100%; max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.wordmark { color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.wordmark i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

main { max-width: 760px; margin: 0 auto; padding: 22px 16px 0; }

/* ---------- legacy layout (attribution page) ---------- */
.top-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
h1 { font-size: 1.75rem; margin: 0; }
h1 a { color: inherit; text-decoration: none; }
h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.subtitle { color: var(--muted); margin: 0 0 24px; }
.empty { color: var(--muted); padding: 12px 0; }

.lang-switch { font-size: 0.8rem; color: var(--muted); }
.lang-switch a { color: var(--muted); }
.lang-switch strong { color: var(--fg); }

.back { margin-top: 24px; }
.back a { color: var(--muted); text-decoration: none; }

/* Sits outside <main>, so it repeats main's width and gutters itself. */
.site-footer { max-width: 760px; margin: 40px auto 0; padding: 16px 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; line-height: 1.6; }
.site-footer a { color: var(--muted); }
.site-footer .disclaimer { margin: 0 0 6px; color: var(--fg-2); }
.list-h .saved-hint { text-transform: none; letter-spacing: 0; margin-left: 8px; opacity: 0.8; }

.credit { margin-bottom: 20px; }
.credit p { color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------- title block ---------- */
.title-block { position: relative; view-transition-name: title-block; }
.title-row { display: flex; align-items: flex-start; gap: 10px; }
.spot-btn { display: inline-flex; align-items: center; gap: 8px; text-align: left; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  border-radius: 10px; padding: 2px 6px 2px 0; min-width: 0; transition: color 160ms var(--ease); }
.spot-btn:hover { color: var(--accent); }
.spot-btn .chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform 220ms var(--ease), color 160ms var(--ease); margin-top: 3px; }
.title-block[data-open="true"] .spot-btn .chev { transform: rotate(180deg); color: var(--accent); }
.spot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; margin-top: 1px;
  transition: color 160ms var(--ease), background 160ms var(--ease), transform 220ms var(--ease); }
.star[hidden] { display: none; }
.star:hover { background: var(--line-2); color: var(--fg); }
.star svg { width: 20px; height: 20px; }
.star[aria-pressed="true"] { color: var(--marginal); }
.star[aria-pressed="true"] svg path { fill: currentColor; }
.star.pop { transform: scale(1.25); }
.gps[aria-pressed="true"] { color: var(--accent); }
.gps.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sub { margin: 4px 0 0; color: var(--fg-2); font-size: 14px; min-height: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tier, var(--muted)); flex: none; }
.sub b { color: var(--fg); font-weight: 600; }

/* Narrow screens: two wrapped lines beat "Amsterda..." next to the thumbnail. */
@media (max-width: 560px) {
  .spot-btn { font-size: 23px; align-items: flex-start; }
  .spot-btn .chev { margin-top: 5px; }
  .spot-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
  .map-thumb { width: 50px; height: 50px; border-radius: 12px; }
}

/* ---------- map thumbnail + panel ---------- */
.map-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: var(--shadow); transition: transform 180ms var(--ease), border-color 160ms var(--ease); }
.map-thumb:hover { transform: scale(1.04); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.map-thumb[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.map-thumb .tiles { position: absolute; width: 512px; height: 512px; display: grid; grid-template-columns: 256px 256px; }
.map-thumb .tiles img { width: 256px; height: 256px; display: block; }
.map-thumb .thumb-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -92%); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4)); }
@media (prefers-color-scheme: dark) { .map-thumb .tiles { filter: brightness(0.82) saturate(0.85); } }
.map-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms var(--ease); }
.map-panel > div { overflow: hidden; }
.map-card { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--ease), transform 220ms var(--ease); }
.title-block[data-map="true"] .map-panel { grid-template-rows: 1fr; }
.title-block[data-map="true"] .map-card { opacity: 1; transform: none; }
.map { width: 100%; aspect-ratio: 4 / 3; max-height: 420px; background: var(--bg); }
@media (prefers-color-scheme: dark) { .map .leaflet-tile-pane { filter: brightness(0.82) saturate(0.85); } }
.map-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line-2); font-size: 13px; min-height: 48px; }
.map-hint { color: var(--muted); }
.map-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.map-name:empty { display: none; }
.map-hint[hidden] { display: none; }
.map-go { flex: none; padding: 8px 14px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 13px; }
.map-go[hidden] { display: none; }
.leaflet-container { font-family: inherit; }
.picker-pin { background: none; border: none; }

/* ---------- switcher ---------- */
.switcher { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 220ms var(--ease); }
.switcher > div { overflow: hidden; }
.switcher-card { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--ease), transform 220ms var(--ease); }
.title-block[data-open="true"] .switcher { grid-template-rows: 1fr; }
.title-block[data-open="true"] .switcher-card { opacity: 1; transform: none; }
.search-wrap { position: relative; padding: 10px; }
.search-wrap svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search { width: 100%; padding: 11px 12px 11px 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.list { display: grid; }
.list:empty { display: none; }
/* Rows are <a>, so the switcher navigates without JS - hence the link reset. */
.row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 14px; font-size: 14px; border-top: 1px solid var(--line-2); transition: background 120ms var(--ease);
  color: inherit; text-decoration: none; }
.row:hover, .row.active { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.row .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .ty { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.row .rm { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); margin: -4px -6px -4px 0; }
.row .rm:hover { background: color-mix(in srgb, var(--avoid) 14%, transparent); color: var(--avoid); }
.list-h { padding: 10px 14px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; border-top: 1px solid var(--line-2); }
.units { display: flex; gap: 6px; padding: 6px 14px 12px; }
.unit { padding: 4px 12px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--fg-2); }
.unit:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.unit.on { background: color-mix(in srgb, var(--accent) 9%, transparent); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.hint { padding: 8px 14px 10px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-2); }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips:empty { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: 13px; font-weight: 500; color: var(--fg-2);
  text-decoration: none; transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); max-width: 220px; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--tier, var(--muted)); flex: none; }
.chip small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--tier, var(--muted)); white-space: nowrap; }
.chip small:empty { display: none; }
.chip.active small { color: inherit; opacity: 0.75; }
.chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--fg); }
.chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip:active { transform: scale(0.97); }

/* ---------- days / cards ---------- */
.days { margin-top: 22px; display: grid; gap: 14px; transition: opacity 120ms var(--ease), transform 220ms var(--ease); animation: enter 260ms var(--ease) both; }
.days.leaving { opacity: 0; transform: translateY(-4px); }
.days.entering { animation: enter 260ms var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; }
@media (prefers-color-scheme: light) { .card { box-shadow: var(--shadow); } }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.day-l { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.day-l small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: color-mix(in srgb, var(--tier, var(--muted)) 16%, transparent); color: var(--tier, var(--muted)); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--tier, var(--muted)); }
.pill.none { color: var(--muted); background: var(--line-2); }
.pill .mono { font-weight: 500; }
.meta { margin: 3px 0 8px; color: var(--muted); font-size: 12px; }

/* ---------- ribbon ----------
   No JS measuring: every row (.strip/.chart/.axis/.arrows) shares one
   content width via padding on .ribbon itself, so hour columns line up
   across rows. --span/--x/--w/--y/--rot come from the server as inline
   custom properties; --n (hour count, mirrors data-n) is required on
   .ribbon for the CSS hour-stripe background below - PR4 must emit it. */
.ribbon {
  position: relative; touch-action: pan-y; outline: none; border-radius: 8px; user-select: none; -webkit-user-select: none;
  padding-right: 0;
}
@media (min-width: 560px) { .ribbon { padding-right: 68px; } }
.ribbon:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

.cond { display: flex; margin-bottom: 8px; }
.cond .cell { position: relative; flex: 1; height: 44px; margin: 0 0.5px; border-radius: 6px; overflow: hidden; }
.cond .cell::before { content: ""; position: absolute; inset: 0; background: var(--heat); opacity: var(--heat-a); }
.cond .cell.on { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 55%, transparent); }
.cond .g { position: absolute; top: 4px; left: 50%; width: 18px; height: 18px; margin-left: -9px; overflow: visible; }
.cond .cell:has(.rain:not(.maybe)) .g { top: 2px; }
.cond b { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: 600 10.5px/1 var(--mono); color: var(--fg); }
.cond .sky-sun, .cond .sky-partly, .cond .sky-cloud, .cond .sky-rain { color: var(--fg); }
.cond .g-sun { fill: var(--sun); }
.cond .g-ray { stroke: var(--sun); stroke-width: 1.3; stroke-linecap: round; }
.cond .g-cloud { fill: var(--fg-2); opacity: 0.85; }
.cond .g-cloud.dark { fill: var(--fg); opacity: 0.72; }
.cond .g-drop { stroke: var(--rain); stroke-width: 1.4; stroke-linecap: round; }
.cond .rain {
  position: absolute; bottom: 2px; left: 18%; width: 64%; height: calc(2px + var(--mm, 0) * 6px);
  background: var(--rain); border-radius: 1.5px; opacity: 0.9;
}
.cond .rain.maybe { height: 0; background: none; border-top: 1.5px dotted var(--rain); border-radius: 0; opacity: 0.75; }

.strip { display: flex; align-items: center; height: 16px; margin-bottom: 4px; }
.seg { flex: var(--span); height: 8px; border-radius: 2px; background: var(--tier); opacity: 0.62; }
.seg.win {
  height: 16px; border-radius: 5px; opacity: 1; display: flex; align-items: center; justify-content: center;
  container-type: inline-size;
}
.seg.win b { display: none; font-size: 10px; font-weight: 600; color: #06161a; white-space: nowrap; padding: 0 6px; }
@container (min-width: 62px) { .seg.win b { display: inline; } }

.chart {
  position: relative;
  background-image: repeating-linear-gradient(
    to right,
    color-mix(in srgb, var(--fg) 4%, transparent) 0,
    color-mix(in srgb, var(--fg) 4%, transparent) calc(100% / var(--n, 12)),
    transparent calc(100% / var(--n, 12)),
    transparent calc(200% / var(--n, 12))
  );
}
.chart .curves { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 400; overflow: visible; }
.chart .curves .guides line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .curves .tier-col { fill: var(--tier); opacity: 0.32; }
.chart .curves .gust-band { fill: var(--fg); opacity: 0.07; }
.chart .curves .gust-line { fill: none; stroke: var(--fg-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.chart .curves .wind-line { fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; opacity: 0.85; }

.guide-labels { position: absolute; inset: 0; pointer-events: none; }
.guide-labels span {
  position: absolute; top: var(--y); left: 100%; margin-left: 8px; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--tier); opacity: 0.85; white-space: nowrap;
}
@media (max-width: 559px) {
  .guide-labels span {
    left: 4px; margin-left: 0; font-size: 9px; opacity: 0.7;
    /* Halo, not a box: ported from the prototype's SVG paint-order:stroke trick - HTML
       text can't stroke, so a stack of same-color blurred shadows fakes an opaque one. */
    text-shadow: 0 0 2px var(--bg-2), 0 0 2px var(--bg-2), 0 0 2px var(--bg-2), 0 0 2px var(--bg-2);
  }
}

.key { position: absolute; top: 4px; right: 4px; display: flex; gap: 10px; pointer-events: none; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.k-wind::before, .k-gust::before { content: ""; display: inline-block; width: 14px; margin-right: 4px; vertical-align: middle; border-top: 2px solid var(--fg); }
.k-gust::before { border-top: 1px dashed var(--fg-2); }

.now { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.now::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--accent); }
.now b { position: absolute; top: -16px; left: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--accent); white-space: nowrap; }

.col-hi { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); background: var(--fg); opacity: 0.05; pointer-events: none; }

.cursor { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; pointer-events: none; }
.cursor::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1.5px; background: var(--fg); opacity: 0.55; }
.cursor i { position: absolute; top: var(--y); left: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--fg); }

.axis { display: flex; margin-top: 6px; }
.axis span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.arrows { display: flex; margin-top: 2px; }
.arrows span { flex: 1; display: flex; justify-content: center; }
.arrows span svg { width: 12px; height: 12px; color: var(--muted); transform: rotate(var(--rot)); }

/* Fixed detail strip under each chart. Never covers the curve, always in the same place. */
.detail { margin-top: 6px; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--tier, var(--muted)) 9%, transparent);
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; line-height: 1.3; min-height: 36px; transition: background 160ms var(--ease); }
.detail .tm { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.detail .vd { font-weight: 700; color: var(--tier); }
.detail .it { display: inline-flex; align-items: center; gap: 5px; color: var(--fg-2); }
.detail .it .mono { color: var(--fg); font-weight: 500; }
.detail .it .ar { width: 12px; height: 12px; color: var(--fg-2); flex: none; transform: rotate(var(--rot)); }
.detail .why { color: var(--muted); font-size: 12px; }
.detail .why:empty { display: none; }
@media (max-width: 560px) { .detail { font-size: 12.5px; gap: 3px 10px; } .detail .why { flex-basis: 100%; } }

/* ---------- skeleton / error ---------- */
.skel { height: 262px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(100deg, var(--bg-2) 30%, color-mix(in srgb, var(--bg-2) 70%, var(--fg) 6%) 50%, var(--bg-2) 70%);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.err { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.err button { margin-left: 8px; padding: 6px 12px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 13px; }
