/* ==========================================================================
   ayr2air — design system
   "Ayrshire to Air" — cheap returns from Prestwick (PIK)

   Dependency-free on purpose: no webfonts, no CDN, no framework. An archive
   has to keep working when the network does not.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

/* --- tokens --------------------------------------------------------------- */
:root {
  /* Night-sky ramp. The hero rides this; the card deck sits on --bg-solid so
     boarding-pass notches can be cut cleanly out of the card edge. */
  --sky-950:#030c15; --sky-900:#061522; --sky-850:#082031;
  --sky-800:#0a2740; --sky-700:#0e3554; --sky-600:#134a72;

  --bg:          var(--sky-950);
  --bg-solid:    #071b2b;
  --surface:     #0c2637;
  --surface-2:   #103147;
  --surface-hi:  #163d57;

  --ink-0:#f3f9fe; --ink-1:#d3e3f0; --ink-2:#9db4c8; --ink-3:#6d879c;
  --line:rgba(255,255,255,.10); --line-2:rgba(255,255,255,.20);

  --accent:#4cc4f5;        /* sky / horizon */
  --accent-2:#7dd3fc;
  --sun:#ffb454;           /* warm sun */
  --sun-2:#ffd08a;
  --ok:#4ade80;
  --warn:#fbbf24;

  --price:var(--sun);

  --radius:18px; --radius-sm:12px; --radius-pill:999px;
  --shadow-1:0 1px 2px rgba(0,0,0,.28), 0 8px 24px -12px rgba(0,0,0,.55);
  --shadow-2:0 2px 4px rgba(0,0,0,.32), 0 20px 48px -18px rgba(0,0,0,.7);

  --pad:18px;
  --maxw:1180px;
  --notch:var(--bg-solid);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease:cubic-bezier(.22,.61,.36,1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg:#eef5fb;
  --bg-solid:#e8f1f9;
  --surface:#ffffff;
  --surface-2:#f4f8fc;
  --surface-hi:#e9f2f9;

  --ink-0:#08192a; --ink-1:#1d3450; --ink-2:#4c6a86; --ink-3:#7794ad;
  --line:rgba(8,25,42,.10); --line-2:rgba(8,25,42,.20);

  --accent:#0b7fb5; --accent-2:#0e93d0;
  --sun:#c2710a; --sun-2:#a85f05;
  --price:#b45309;

  --shadow-1:0 1px 2px rgba(11,42,66,.08), 0 8px 24px -14px rgba(11,42,66,.28);
  --shadow-2:0 2px 6px rgba(11,42,66,.10), 0 20px 44px -20px rgba(11,42,66,.35);
  color-scheme: light;
}

/* --- base ----------------------------------------------------------------- */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
h1, h2, h3 { color: var(--ink-0); line-height: 1.12; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.018em; }
h3 { font-size: 1.05rem; }
p  { color: var(--ink-2); }
strong { color: var(--ink-0); font-weight: 650; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link {
  position:absolute; left:12px; top:-48px; z-index:100;
  background:var(--surface-hi); color:var(--ink-0);
  padding:.6rem 1rem; border-radius:var(--radius-sm);
  transition:top .18s var(--ease);
}
.skip-link:focus { top:12px; }

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- top bar -------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(4px)) { .topbar { background: var(--bg-solid); } }
.topbar__in { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; letter-spacing: -.03em; font-size: 1.16rem;
  color: var(--ink-0); text-decoration: none; white-space: nowrap;
}
.brand__mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--sun));
  color: #04131f; font-size: 15px;
  box-shadow: 0 4px 14px -6px var(--accent);
}
.brand small { font-weight: 600; color: var(--ink-3); letter-spacing: 0; font-size: .72rem; }
.topbar__spacer { flex: 1; }

/* --- pills / badges ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .3em .7em; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--ink-2);
  background: var(--surface);
}
.pill--live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.pill--arch { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill--live .dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.45; transform:scale(.82);} }

/* --- icon button ---------------------------------------------------------- */
.iconbtn {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 11px; cursor: pointer;
  background: var(--surface); color: var(--ink-1);
  border: 1px solid var(--line);
  transition: background .16s var(--ease), transform .16s var(--ease), border-color .16s var(--ease);
}
.iconbtn:hover { background: var(--surface-hi); border-color: var(--line-2); transform: translateY(-1px); }
.iconbtn:active { transform: translateY(0); }

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(2.2rem, 5vw, 3.4rem);
  background:
    radial-gradient(120% 90% at 78% 8%,  color-mix(in srgb, var(--sun) 26%, transparent) 0%, transparent 55%),
    radial-gradient(100% 80% at 12% 100%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 58%),
    linear-gradient(168deg, var(--sky-900) 0%, var(--sky-850) 38%, var(--sky-800) 72%, var(--sky-700) 100%);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .hero {
  background:
    radial-gradient(120% 90% at 78% 8%,  color-mix(in srgb, var(--sun) 20%, transparent) 0%, transparent 55%),
    radial-gradient(100% 80% at 12% 100%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 58%),
    linear-gradient(168deg, #dcebf7 0%, #e8f2fa 45%, #f3f8fd 100%);
}
/* faint horizon glow */
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent);
}
.hero__grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent-2);
  margin-bottom: .9rem;
}
html[data-theme="light"] .eyebrow { color: var(--accent); }
.eyebrow::before { content:""; width:26px; height:2px; background: currentColor; border-radius:2px; }
.hero h1 { margin-bottom: .75rem; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero__lede { font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 46ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin-top: 1.4rem; }
.fact {
  display: inline-flex; align-items: baseline; gap: .4em;
  padding: .42em .8em; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 66%, transparent);
  border: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-2);
}
.fact b { color: var(--ink-0); font-weight: 700; }

/* --- boarding pass -------------------------------------------------------- */
.pass {
  position: relative;
  background: linear-gradient(158deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: var(--pad);
  display: flex; flex-direction: column;
}
.pass--feature { padding: calc(var(--pad) + 6px); }
.pass__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pass__label {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-3);
}
.pass__route {
  display: flex; align-items: center; gap: .6rem;
  margin-top: .5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink-0);
}
.pass__code { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.03em; }
.pass__code--to { color: var(--sun); }
.pass__plane { color: var(--accent); opacity: .85; }
.pass__dest { color: var(--ink-2); font-weight: 600; font-size: .95rem; margin-top: .15rem; }

.pass__price { text-align: right; flex: none; }
.pass__from { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.pass__amt {
  font-size: clamp(1.6rem, 4.4vw, 2.35rem);
  font-weight: 800; letter-spacing: -.035em;
  color: var(--price); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pass__amt .cur { font-size: .56em; font-weight: 750; vertical-align: .45em; margin-right: .02em; }
.pass__amt .dec { font-size: .58em; font-weight: 750; vertical-align: .16em; }
.pass__code--word {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: -.01em; text-transform: uppercase;
}

/* perforation: dashed rule + two notches bitten out of the card edge */
.pass__perf { position: relative; height: 26px; margin: 14px calc(var(--pad) * -1) 12px; }
.pass__perf::before, .pass__perf::after {
  content: ""; position: absolute; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--notch);
}
.pass__perf::before { left: -12px; }
.pass__perf::after  { right: -12px; }
.pass__perf i {
  position: absolute; left: 18px; right: 18px; top: 12px;
  border-top: 2px dashed var(--line-2);
}
.pass--feature .pass__perf { margin-inline: calc((var(--pad) + 6px) * -1); }
/* The hero is a gradient, so a flat-coloured notch would not match it. The
   feature card keeps the tear line but drops the bites; the deck cards sit on
   --bg-solid, where the notches land perfectly. */
.hero .pass__perf::before, .hero .pass__perf::after { display: none; }
.hero .pass__perf i { left: 0; right: 0; }

.pass__meta { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.pass__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: 12px;
}
.pass__dates { font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pass__note { font-size: .78rem; color: var(--ink-3); }

.tag {
  display: inline-block; padding: .22em .58em; border-radius: 6px;
  font-size: .66rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  border: 1px solid currentColor;
}
.tag--escape     { color: var(--accent-2); }
.tag--long-break { color: var(--sun); }
.tag--weekend    { color: var(--ok); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .6em 1.05em; border-radius: 11px; cursor: pointer;
  font-size: .9rem; font-weight: 650; text-decoration: none;
  border: 1px solid var(--line-2); background: var(--surface-hi); color: var(--ink-0);
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--sun)));
  color: #04131f; border-color: transparent; font-weight: 750;
}
html[data-theme="light"] .btn--primary { color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { padding: .42em .75em; font-size: .82rem; border-radius: 9px; }

/* --- notice --------------------------------------------------------------- */
.notice {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .85rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .88rem; line-height: 1.5;
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  background: color-mix(in srgb, var(--warn) 11%, transparent);
  color: var(--ink-1);
}
.notice__icon { flex: none; font-size: 1.05rem; line-height: 1.35; }
.notice strong { color: var(--warn); }
.notice--info {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.notice--info strong { color: var(--accent-2); }

/* --- sections ------------------------------------------------------------- */
.section { padding: clamp(2.2rem, 4.5vw, 3.4rem) 0; }
.section--solid { background: var(--bg-solid); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section__head p { margin-top: .35rem; font-size: .95rem; }

/* --- destination deck ----------------------------------------------------- */
.deck { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.deck--special { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 14px; }

a.pass { text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
a.pass:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--accent); }
a.pass:hover .pass__code--to { color: var(--accent-2); }
a.pass:hover .pass__go { color: var(--ink-0); gap: .7em; }

.pass__go {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .85rem; font-weight: 650; color: var(--accent-2);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.pass__flag { font-size: 1.15rem; line-height: 1; }

.pass--special { background: linear-gradient(158deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); }
.pass--weekend { background: linear-gradient(158deg, color-mix(in srgb, var(--sun) 20%, var(--surface)), var(--surface)); }

/* --- controls ------------------------------------------------------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad);
}
.controls { display: flex; flex-direction: column; gap: 1.1rem; }
.control { display: flex; flex-direction: column; gap: .55rem; }
.control > label, .control__legend {
  font-size: .72rem; font-weight: 750; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3);
}
.segmented { display: flex; flex-wrap: wrap; gap: 7px; }
.seg {
  padding: .42em .85em; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: .86rem; font-weight: 600;
  transition: all .16s var(--ease);
}
.seg:hover { border-color: var(--accent); color: var(--ink-0); }
.seg[aria-pressed="true"] {
  background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--sun)));
  color: #04131f; border-color: transparent; font-weight: 750;
}
html[data-theme="light"] .seg[aria-pressed="true"] { color: #fff; }
.seg[disabled] { opacity: .38; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field input, .field select {
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: .5em .7em; font-size: .9rem;
  color: var(--ink-0); width: 100%; min-width: 0;
}
.field input::placeholder { color: var(--ink-3); }
.control__row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); align-items: end; }

/* --- stats ---------------------------------------------------------------- */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.stat__k { font-size: .7rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3); }
.stat__v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink-0); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.stat__v--price { color: var(--price); }
.stat__s { font-size: .8rem; color: var(--ink-3); margin-top: .1rem; }

/* --- table ---------------------------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
caption { text-align: left; padding: 14px 16px 0; color: var(--ink-3); font-size: .85rem; }
th, td { padding: .68rem .8rem; text-align: left; white-space: nowrap; }
thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2);
  font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--line-2);
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.price { font-weight: 750; color: var(--price); }
.price--best { color: var(--ok); }
th button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .35em;
  font: inherit; color: inherit; letter-spacing: inherit;
}
th button:hover { color: var(--ink-0); }
th button .arrow { opacity: .3; font-size: .8em; }
th[aria-sort="ascending"]  button .arrow,
th[aria-sort="descending"] button .arrow { opacity: 1; color: var(--accent); }
td a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
td a:hover { text-decoration: underline; }

.empty { padding: 2.4rem 1rem; text-align: center; color: var(--ink-3); }

/* --- chart ---------------------------------------------------------------- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--surface-hi); border: 1px solid var(--line-2);
  border-radius: 9px; padding: .4em .6em; font-size: .78rem;
  box-shadow: var(--shadow-1); white-space: nowrap;
  transform: translate(-50%, -125%); opacity: 0; transition: opacity .12s;
}
.chart__tip[data-show="1"] { opacity: 1; }
.chart__tip b { color: var(--price); font-variant-numeric: tabular-nums; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .8rem; font-size: .8rem; color: var(--ink-3); }
.chart__legend span { display: inline-flex; align-items: center; gap: .4em; }
.swatch { width: 14px; height: 3px; border-radius: 2px; flex: none; }

/* --- explainer ------------------------------------------------------------ */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--pad);
}
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .9rem; }
.card__icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-2); font-size: 1rem; margin-bottom: .75rem;
}
details.faq { border-top: 1px solid var(--line); padding-top: 1rem; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--ink-0); font-size: 1rem; }
details.faq summary::marker { color: var(--accent); }
details.faq > *:not(summary) { margin-top: .7rem; font-size: .92rem; color: var(--ink-2); }

/* --- footer --------------------------------------------------------------- */
.foot {
  margin-top: auto; padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  background: var(--bg-solid);
  font-size: .86rem; color: var(--ink-3);
}
.foot__in { display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; align-items: center; justify-content: space-between; }
.foot a { color: var(--accent-2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* --- misc ----------------------------------------------------------------- */
.loading { display: flex; align-items: center; gap: .6rem; color: var(--ink-3); padding: 2rem 0; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeIn .45s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 720px) {
  :root { --pad: 15px; }
  .topbar__in { height: 56px; }
  .brand small { display: none; }
  .section__head { align-items: flex-start; }
  /* table becomes stacked cards */
  .tablewrap { border: 0; background: transparent; overflow: visible; }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); margin-bottom: 10px; padding: 6px 4px;
  }
  tbody tr:hover { background: var(--surface); }
  td { display: flex; justify-content: space-between; gap: 1rem; text-align: right; padding: .42rem .8rem; }
  td::before {
    content: attr(data-th); text-align: left;
    font-size: .7rem; font-weight: 750; letter-spacing: .09em;
    text-transform: uppercase; color: var(--ink-3); flex: none;
  }
  td.num { text-align: right; }
  .chart__legend { gap: .6rem; }
}
