/* Resvex
   One typeface (Archivo) whose width does the work: narrow where numbers are
   dense, wide where one number matters. Colour means one thing only, which
   way a price moved. Everything else is ink, paper and petrol. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --wash: #f2f6f6;
  --line: #dfe8e9;
  --ink: #0e2a30;
  --ink-2: #45606a;
  --ink-3: #5d747a;
  --band: #0d4a57;
  --on-band: #f3f8f8;
  --band-2: #a6cbd1;
  --link: #0f6173;
  --up: #0a7a4f;
  --down: #c13a1a;
  --up-wash: #e3f3ec;
  --down-wash: #fbe9e4;
  --shadow: 0 12px 40px rgb(14 42 48 / 0.16);
  /* two series on one chart: identity, not direction */
  --cat-1: #1f6fb2;
  --cat-2: #c2780e;
  /* parts of a whole: one hue, biggest part strongest */
  --sh-1: #0d4a57;
  --sh-2: #1f6b7b;
  --sh-3: #3f8c9c;
  --sh-4: #72b0bd;
  --sh-5: #a9d2d9;
  --sh-0: #dbe4e5;
  /* the thin strip above the header that carries the Serenity 3D logo (white) */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* the page's side margins, for blocks that run out to the screen edge */
  --gutter-l: clamp(16px, 4vw, 40px);
  --gutter-r: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #071a1e;
    --wash: #0d262c;
    --line: #1b3940;
    --ink: #e8f1f2;
    --ink-2: #a9c0c4;
    --ink-3: #86a0a5;
    --band: #0f4d5b;
    --link: #6cc4d6;
    --up: #15ac7d;
    --down: #f4573a;
    --up-wash: #0d3328;
    --down-wash: #45201a;
    --shadow: 0 12px 40px rgb(0 0 0 / 0.5);
    --cat-1: #4f8fd0;
    --cat-2: #c58327;
    --sh-1: #9bd6e1;
    --sh-2: #6bb4c2;
    --sh-3: #46909f;
    --sh-4: #2c6d7b;
    --sh-5: #1d4f5b;
    --sh-0: #1b3940;
    }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #071a1e;
  --wash: #0d262c;
  --line: #1b3940;
  --ink: #e8f1f2;
  --ink-2: #a9c0c4;
  --ink-3: #86a0a5;
  --band: #0f4d5b;
  --link: #6cc4d6;
  --up: #15ac7d;
  --down: #f4573a;
  --up-wash: #0d3328;
  --down-wash: #45201a;
  --shadow: 0 12px 40px rgb(0 0 0 / 0.5);
  --cat-1: #4f8fd0;
  --cat-2: #c58327;
  --sh-1: #9bd6e1;
  --sh-2: #6bb4c2;
  --sh-3: #46909f;
  --sh-4: #2c6d7b;
  --sh-5: #1d4f5b;
  --sh-0: #1b3940;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
abbr[title] { text-decoration: none; }
img, svg { display: block; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.875em; overflow-wrap: anywhere; }
b { font-weight: 650; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.num { font-variant-numeric: tabular-nums; font-stretch: 94%; }
.quiet { color: var(--ink-2); font-size: 0.875rem; }
.quiet a + a { margin-left: 0.9em; }

/* ------------------------------------------------------------- header */

.top { border-bottom: 1px solid var(--line); }
.top-row {
  display: grid;
  grid-template-columns: auto auto minmax(170px, 1fr) auto;
  grid-template-areas: "brand nav search tools";
  align-items: center;
  gap: 10px 22px;
  min-height: 64px;
  padding-block: 10px;
}

.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-size: 1.375rem; font-weight: 720; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1; }
.mark-bg { fill: var(--band); }
.mark-bar { fill: var(--on-band); }

.nav { grid-area: nav; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a[aria-current="page"] { color: var(--paper); background: var(--ink); }

.search { grid-area: search; position: relative; width: 100%; max-width: 280px; justify-self: end; }
.search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--wash); color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input:focus-visible { outline-offset: 0; border-radius: 999px; background: var(--paper); }
.search-icon { position: absolute; left: 14px; top: 12px; color: var(--ink-3); pointer-events: none; }

.tools { grid-area: tools; display: flex; align-items: center; gap: 8px; }

.pop {
  position: absolute; z-index: 30; background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px;
}
.pop-title { font-size: 0.8125rem; color: var(--ink-2); padding: 6px 10px 4px; }

.search-pop { top: 46px; left: 0; right: 0; min-width: 280px; }
.search-pop a, .picker-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); text-decoration: none; text-align: left;
}
.search-pop a[aria-selected="true"], .search-pop a:hover, .picker-list button[aria-selected="true"], .picker-list button:hover { background: var(--wash); }
.hit-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit-code { color: var(--ink-3); font-size: 0.875rem; }
.hit-note { margin-left: auto; color: var(--ink-3); font-size: 0.8125rem; white-space: nowrap; }
.pop-empty { padding: 10px; color: var(--ink-2); font-size: 0.9375rem; }

.menu { position: relative; }
.menu summary {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 14px; border: 1px solid var(--line);
  border-radius: 999px; list-style: none; cursor: pointer; white-space: nowrap; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--wash); }
.menu-label { color: var(--ink-2); }
.menu[open] summary .chev { transform: rotate(180deg); }
.menu-pop { right: 0; top: 46px; width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-grid a { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-grid a span { color: var(--ink-2); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-grid a:hover { background: var(--wash); }
.menu-grid a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.menu-grid a[aria-current="true"] span { color: inherit; opacity: 0.8; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--ink-2);
}
.icon-btn:hover { background: var(--wash); color: var(--ink); }

/* the maker's mark, at the end of the header tools */
.maker {
  display: inline-flex; align-items: center; height: 40px; margin-left: 6px; padding-left: 16px;
  border-left: 1px solid var(--line); color: var(--ink-2); fill: currentColor; transition: color 0.15s;
}
.maker:hover, .maker:focus-visible { color: var(--ink); }
.maker svg { display: block; height: 28px; width: auto; overflow: visible; }
.maker .maker-full { aspect-ratio: 198 / 56; }
.maker .maker-cube { aspect-ratio: 48.5 / 55; height: 28px; display: none; }
@media (forced-colors: active) { .maker { fill: CanvasText; } }
@media (max-width: 1319px) { .maker .maker-full { display: none; } .maker .maker-cube { display: block; } }
@media (max-width: 720px) { .maker { height: 44px; margin-left: 2px; padding-left: 12px; } }
@media (max-width: 379px) { .maker { display: none; } }

@media (max-width: 1240px) {
  .top-row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand search tools" "nav nav nav"; gap: 10px 14px; }
  .search { max-width: none; }
  .nav { margin-inline: -6px; }
}

/* ------------------------------------------------------------- ticker */

.ticker { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--wash); font-size: 0.875rem; }
.ticker-view {
  flex: 1; min-width: 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 96s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker-list li { flex: none; }
.ticker-list a {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 9px 20px; line-height: 18px;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.ticker-list a:hover b, .ticker-list a:focus-visible b { text-decoration: underline; }
.ticker-list a:focus-visible { outline-offset: -3px; }
.ticker-list b { color: var(--ink); font-weight: 600; }
.ticker-list .num { border-radius: 4px; padding-inline: 2px; }
.ticker-pause {
  flex: none; display: grid; place-items: center; width: 40px; height: 36px; margin-right: calc(var(--gutter-r) - 12px);
  border: 0; border-left: 1px solid var(--line); background: none; color: var(--ink-3);
}
.ticker-pause:hover { color: var(--ink); }
.ticker-pause .i-play, .ticker.is-paused .ticker-pause .i-pause { display: none; }
.ticker.is-paused .ticker-pause .i-play { display: block; }
@media (pointer: coarse) { .ticker-list a { padding-block: 11px; } .ticker-pause { height: 40px; width: 44px; } }

/* --------------------------------------------------------------- band */

.band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--band);
  color: var(--on-band);
  padding-block: clamp(22px, 3.6vw, 44px) clamp(18px, 2.6vw, 30px);
  --up: #6ee0b5;
  --down: #ffa08c;
  --s-ink: var(--on-band);
  --s-soft: var(--band-2);
  --s-line: color-mix(in srgb, var(--on-band) 36%, var(--band));
  --s-hover: var(--on-band);
}
.band a { color: var(--on-band); }
.band :focus-visible { outline-color: var(--on-band); }
.band-title { font-size: 1.0625rem; font-weight: 500; color: var(--band-2); margin-bottom: 10px; }

.sentence {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.3em;
  font-size: clamp(1.625rem, 5.4vw, 3.25rem); line-height: 1.14; font-weight: 640; font-stretch: 112%; letter-spacing: -0.02em;
  color: var(--s-ink, var(--ink));
}
.s-side { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.22em; max-width: 100%; }
.s-num, .s-asset {
  box-sizing: content-box; height: 1.2em; padding: 0 0.03em; margin: 0; border: 0; border-radius: 0;
  border-bottom: 0.055em solid var(--s-line, var(--line)); background: none; color: inherit;
  font: inherit; line-height: 1.2; letter-spacing: inherit;
}
.s-num { field-sizing: content; min-width: 1.1ch; max-width: 100%; }
.s-asset { display: inline-flex; align-items: baseline; gap: 0.16em; }
.s-asset .logo, .s-asset .chev { align-self: center; }
.s-num:hover, .s-asset:hover, .s-num:focus-visible, .s-asset:focus-visible { border-bottom-color: var(--s-hover, var(--ink)); }
.s-num:focus-visible, .s-asset:focus-visible { outline-offset: 0.08em; }
.s-asset .chev { width: 0.3em; height: 0.3em; color: var(--s-soft, var(--ink-3)); }
.s-eq { color: var(--s-soft, var(--ink-3)); font-weight: 400; }

.band > .wrap { position: relative; z-index: 1; }

/* the pair's last 7 days, drawn in once behind the sentence */
.band-line {
  position: absolute; z-index: 0; left: 0; bottom: 0; width: 100%; height: 76%; pointer-events: none;
  animation: band-reveal 1.8s cubic-bezier(0.25, 0.7, 0.2, 1) 0.15s both;
}
.band-line.is-empty { display: none; }
.bl-line { fill: none; stroke: var(--band-2); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0.4; }
.bl-area { fill: var(--band-2); opacity: 0.06; }
@media (max-width: 720px) { .bl-line { opacity: 0.3; } .bl-area { opacity: 0.045; } }
@keyframes band-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.band-week .chg { font-weight: 600; }

/* prices that are kept current */
.live { display: inline-flex; align-items: center; gap: 8px; }
.quiet .live { margin-left: 4px; }
.live-dot { position: relative; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: live-ping 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes live-ping { from { transform: scale(1); opacity: 0.55; } 70%, to { transform: scale(3.4); opacity: 0; } }
.is-stale .live-dot { background: var(--ink-3); }
.is-stale .live-dot::after { display: none; }

.band .s-num.tick-up { animation: band-tick-up 1.8s ease-out; }
.band .s-num.tick-down { animation: band-tick-down 1.8s ease-out; }
@keyframes band-tick-up { from { color: var(--up); border-bottom-color: var(--up); } }
@keyframes band-tick-down { from { color: var(--down); border-bottom-color: var(--down); } }

.band-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: clamp(16px, 2.4vw, 28px); color: var(--band-2); font-size: 0.9375rem; }
.band-meta a { text-decoration-color: color-mix(in srgb, var(--on-band) 50%, transparent); }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line);
  border-radius: 999px; background: none; color: inherit; font-size: 0.9375rem; white-space: nowrap;
}
.chip:hover { background: var(--wash); }
.band .chip { border-color: var(--s-line); color: var(--on-band); }
.band .chip:hover { background: color-mix(in srgb, var(--on-band) 12%, transparent); }

/* asset picker (a modal dialog) */
.picker {
  width: min(440px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); margin-top: 12vh; padding: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.picker::backdrop { background: rgb(7 26 30 / 0.45); }
.picker[open] { display: flex; flex-direction: column; gap: 8px; }
.picker h2 { font-size: 1rem; font-weight: 600; padding: 2px 4px; }
.picker input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash);
}
.picker-list { overflow-y: auto; display: grid; gap: 2px; min-height: 80px; }

/* ------------------------------------------------------------ sections */

.page { padding-block: clamp(24px, 4vw, 44px) clamp(40px, 6vw, 72px); }
.page > * + * { margin-top: clamp(28px, 4vw, 48px); }
.page.narrow > * { max-width: 820px; }
.page-head h1, .coin-id h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 680; font-stretch: 108%; letter-spacing: -0.02em; }
.page-head > * + * { margin-top: 12px; }
h2 { font-size: 1.125rem; font-weight: 650; font-stretch: 104%; letter-spacing: -0.01em; }

.lede { font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.4; max-width: 46em; }
.lede .chg { font-weight: 650; }
.lede-2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: 1rem; margin-top: 10px; }
.lede-2 b { color: var(--ink); }

.summary { padding-block: clamp(22px, 3.4vw, 40px) 0; }

.breadth .up { fill: var(--up); }
.breadth .down { fill: var(--down); }
.breadth .flat { fill: var(--line); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); padding-block: clamp(24px, 3.4vw, 40px) 0; }
.trio h2 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.mini a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 72px; align-items: center; gap: 10px; height: 38px; color: var(--ink); text-decoration: none; }
.mini a:hover .mini-name { text-decoration: underline; }
.mini-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.mini-price { color: var(--ink-2); font-size: 0.9375rem; }
.mini-chg { text-align: right; font-size: 0.9375rem; }
.more { margin-top: 6px; font-size: 0.9375rem; }
/* on phones and small tablets the three lists become one row you swipe through */
@media (max-width: 900px) {
  .trio { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .trio::-webkit-scrollbar { display: none; }
  .trio.wrap { padding-inline: 0; }
  .trio > div { flex: 0 0 min(86%, 400px); scroll-snap-align: start; padding-left: clamp(16px, 4vw, 40px); }
  .trio > div:last-child { flex-basis: min(100%, 440px); padding-right: clamp(16px, 4vw, 40px); }
  .trio { scroll-padding-left: 0; }
}

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 8px; }
.market { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }

/* -------------------------------------------------------------- change */

.chg { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.chg.flat { color: var(--ink-3); }

/* --------------------------------------------------------------- table */

.coins { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.coins th, .coins td { height: 56px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 400; text-align: left; }
.coins .num { text-align: right; }
.coins thead th { height: 42px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); background: var(--paper); }
.coins thead a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; }
.coins thead a:hover { color: var(--ink); text-decoration: underline; }
.coins thead th[aria-sort] { color: var(--ink); font-weight: 650; }
.coins thead th[aria-sort] a::after { content: ""; border: 4px solid transparent; }
.coins thead th[aria-sort="descending"] a::after { border-top-color: currentColor; margin-top: 4px; }
.coins thead th[aria-sort="ascending"] a::after { border-bottom-color: currentColor; margin-bottom: 4px; }
.coins tbody tr:hover > * { background: var(--wash); }

.c-star { width: 44px; padding-right: 0 !important; }
.c-rank { width: 48px; color: var(--ink-2); }
.c-coin a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; max-width: 100%; }
.c-coin a:hover .coin-name { text-decoration: underline; }
.coin-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.coin-sym { color: var(--ink-3); font-size: 0.875em; font-weight: 400; font-stretch: 94%; }
.c-price { font-weight: 550; }
.c-spark { width: 144px; }
.c-spark svg { margin-left: auto; }
thead .c-spark { text-align: right !important; }

.spark path { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; stroke: var(--ink-3); }
.spark.up path { stroke: var(--up); }
.spark.down path { stroke: var(--down); }

.star { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); }
.star svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.star:hover { background: var(--wash); color: var(--ink); }
.star[aria-pressed="true"] { color: var(--ink); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.star-big { width: auto; height: 36px; display: inline-flex; gap: 6px; padding: 0 14px 0 10px; border: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-2); }

@keyframes tick-up { from { background: var(--up-wash); } }
@keyframes tick-down { from { background: var(--down-wash); } }
.coins td.tick-up, .ticker .tick-up { animation: tick-up 1.4s ease-out; }
.coins td.tick-down, .ticker .tick-down { animation: tick-down 1.4s ease-out; }

@media (min-width: 1101px) {
  .coins thead th { position: sticky; top: 0; z-index: 2; }
}
@media (max-width: 1100px) {
  .coins .c-vol { display: none; }
  .table-scroll { overflow-x: auto; margin-inline: calc(-1 * clamp(16px, 4vw, 40px)); padding-inline: clamp(16px, 4vw, 40px); }
  .split-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .coins .c-h1 { display: none; }
}

.coins-slim th, .coins-slim td { height: 50px; }
/* two tables side by side: leave out the last column until there is room for it */
@media (max-width: 1400px) {
  .split-even .coins-slim .c-vol { display: none; }
  .split-even .coins-slim .coin-name { max-width: 15ch; }
  .split-even .coins-slim th, .split-even .coins-slim td { padding-inline: 8px; }
}
.coins-slim td { line-height: 1.3; }
.coins-slim .tag { height: 22px; padding: 0 8px; font-size: 0.75rem; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.pager a, .pager .off { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.pager a:hover { background: var(--wash); }
.pager .off { color: var(--ink-3); border-color: transparent; }
.pager-nums { display: flex; align-items: center; gap: 6px; }
.pager-nums a { padding: 0 6px; border-color: transparent; }
.pager-nums a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.pager .gap { color: var(--ink-3); }
.pager-where { display: none; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------------------------------------------------------------- logo */

.logo { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 999px; background: var(--wash); color: var(--ink-2); overflow: hidden; }
.logo-letter { font-size: 0.6875rem; font-weight: 700; line-height: 1; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.logo-s { width: 20px; height: 20px; }
.logo-m { width: 28px; height: 28px; }
.logo-m .logo-letter { font-size: 0.8125rem; }
.logo-l { width: 44px; height: 44px; }
.logo-l .logo-letter { font-size: 1.125rem; }
.logo-x { width: 0.72em; height: 0.72em; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
.logo-x .logo-letter { font-size: 0.34em; letter-spacing: 0; }
.logo-fiat { background: var(--ink); color: var(--paper); }
.logo-x.logo-fiat { background: color-mix(in srgb, currentColor 18%, transparent); color: inherit; }

/* ----------------------------------------------------------- coin page */

.coin-id { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.coin-id h1 .coin-sym { font-size: 0.55em; font-weight: 500; letter-spacing: 0; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--wash); color: var(--ink-2); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.tag-live { background: var(--up-wash); color: var(--up); }
.coin-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.figure { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; font-weight: 660; font-stretch: 108%; letter-spacing: -0.03em; }
.coin-price .chg { font-size: 1.25rem; font-weight: 650; }
.disclosure { margin-top: 12px; color: var(--ink-2); }

.note { padding: 12px 16px; border-radius: 10px; background: var(--wash); color: var(--ink-2); font-size: 0.9375rem; max-width: 60em; }
.note-warn { background: var(--down-wash); color: var(--ink); }

.moves { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.moves div { padding: 14px 16px 14px 0; }
.moves div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.moves dt { color: var(--ink-2); font-size: 0.875rem; }
.moves-chg { font-size: 1.25rem; font-weight: 650; text-align: left; }
.moves-then { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 72px); }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split-even { grid-template-columns: minmax(0, 1fr); } }

.facts { margin-top: 8px; }
.fact { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--ink-2); }
.fact dd { text-align: right; font-weight: 600; }
.fact-note { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); }

.mini-convert { margin-top: 14px; }
.mini-convert .sentence { font-size: clamp(1.5rem, 3.2vw, 2.125rem); font-stretch: 104%; --s-line: var(--ink-3); --s-soft: var(--ink-3); --s-hover: var(--ink); }
.mini-convert + .quiet { margin-top: 10px; }

.pairs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pairs a { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; white-space: nowrap; }
.pairs a:hover { background: var(--wash); }

.prose { max-width: 68ch; margin-top: 10px; }
.prose p + p { margin-top: 0.9em; }
.about-coin:empty { display: none; }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.links a { display: inline-flex; align-items: center; gap: 5px; }
.about-coin .quiet { margin-top: 12px; }

/* --------------------------------------------------------------- chart */

.chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.chart-title { font-size: 1.125rem; font-weight: 650; font-stretch: 104%; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--wash); }
.tabs button, .tabs a { height: 32px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 0.875rem; font-weight: 550; text-decoration: none; display: inline-grid; place-items: center; white-space: nowrap; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs button[aria-pressed="true"], .tabs a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(14 42 48 / 0.18); }
.chart-read { margin-top: 8px; min-height: 1.5em; color: var(--ink-2); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.chart-read b { color: var(--ink); }
.chart-plot { position: relative; height: clamp(230px, 36vw, 400px); margin-top: 4px; border-radius: 8px; touch-action: pan-y; }
.chart-plot svg { width: 100%; height: 100%; overflow: visible; }
.chart-plot.loading svg { opacity: 0.4; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink-2); padding: 20px; }
.ch-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.ch-axis { fill: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; font-stretch: 94%; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { stroke: none; opacity: 0.1; }
.chart.up .ch-line { stroke: var(--up); }
.chart.up .ch-area { fill: var(--up); }
.chart.up .ch-dot { fill: var(--up); }
.chart.down .ch-line { stroke: var(--down); }
.chart.down .ch-area { fill: var(--down); }
.chart.down .ch-dot { fill: var(--down); }
.ch-cross { stroke: var(--ink-3); stroke-width: 1; shape-rendering: crispEdges; }
.ch-dot { stroke: var(--paper); stroke-width: 2; }
.chart-facts { display: flex; flex-wrap: wrap; gap: 6px 32px; margin-top: 10px; font-size: 0.9375rem; }
.chart-facts div { display: flex; gap: 8px; }
.chart-facts dt { color: var(--ink-2); }
.chart-facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- convert */

.quick { width: 100%; border-collapse: collapse; }
.quick caption { text-align: left; font-size: 1.125rem; font-weight: 650; font-stretch: 104%; padding-bottom: 8px; }
.quick th, .quick td { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.quick thead th { font-size: 0.8125rem; color: var(--ink-2); font-weight: 500; }
.quick .num { text-align: right; }
.quick tbody th.num { text-align: left; }
.quick td { font-weight: 600; }

/* -------------------------------------------------------------- tokens */

.token-list > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.token-list > li:first-child { border-top: 1px solid var(--line); }
.token-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.token-name { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 1.125rem; }
.token-name:hover b { text-decoration: underline; }
.token-price { margin-left: auto; color: var(--ink-2); }
.contract { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 0.9375rem; }
.contract code { padding: 6px 10px; border-radius: 8px; background: var(--wash); }
.contract a { display: inline-flex; align-items: center; gap: 5px; }
.contract + .note { margin-top: 16px; }

/* --------------------------------------------------------------- about */

.about section > * + * { margin-top: 12px; }
.about p, .about dd { max-width: 68ch; }
.about-image { width: 100%; height: auto; border-radius: 16px; }
.defs div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; }
.defs dt { font-weight: 650; }
.defs dd { color: var(--ink-2); }
@media (max-width: 640px) { .defs div { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------- lists, empty */

.results a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.results a:hover b { text-decoration: underline; }
.results .quiet { margin-left: auto; }

.empty { padding: clamp(32px, 8vw, 80px) 0; max-width: 34em; }
.empty > * + * { margin-top: 10px; }
.empty h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; font-weight: 680; font-stretch: 108%; letter-spacing: -0.02em; }
.empty p:first-child { font-size: 1.25rem; font-weight: 600; }
.button { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; margin-top: 10px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; }
.button:hover { background: var(--band); color: var(--on-band); }

/* -------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); background: var(--wash); padding-block: clamp(32px, 5vw, 56px); color: var(--ink-2); font-size: 0.9375rem; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(24px, 5vw, 64px); }
.foot-brand p { margin-top: 12px; max-width: 30em; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav h2 { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { margin-top: 28px; max-width: 70em; font-size: 0.875rem; }
/* the data credit, just under the prices it belongs to */
.credit { margin-top: 12px; color: var(--ink-2); font-size: 0.8125rem; }
.credit a { color: inherit; }
main > .wrap > .credit { margin-top: 0; padding-bottom: 32px; }
.foot-legal + .foot-legal { margin-top: 8px; }
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-4 { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .foot-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-4 .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .foot-4 { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------ shared, added */

a, button, summary, input { -webkit-tap-highlight-color: transparent; }
.no-js .js-only { display: none !important; }
.only-phone { display: none; }
h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); margin-top: 24px; }
.after { margin-top: 10px; }
.narrow-list { max-width: 560px; }
.narrow-text { max-width: 46em; }

.notice { margin: 0; padding: 10px 0; background: var(--down-wash); color: var(--ink); font-size: 0.9375rem; }
.notice .wrap { display: block; }

.coin-sub { white-space: nowrap; }
.coin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.coin-actions .chip { height: 36px; }

.tabs-wide { max-width: 100%; }
.page-head .tabs { margin-top: 4px; }
.tabs a[aria-current="page"] { font-weight: 600; }

.table-tools { display: none; }
.menu-list a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-list a:hover { background: var(--wash); }
.menu-list a[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* bars */
.bar { flex: none; }
.bar-track { fill: var(--line); }
.bar-fill { fill: var(--ink-2); }
.bar-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.range { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; }
.fact-note .bar { margin: 7px 0 0 auto; }
.fact-wide dd { font-weight: 600; }

/* an amount in several currencies */
.quick-links { margin-top: 8px; }
.quick-links th a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.quick-links th a:hover span { text-decoration: underline; }

/* sectors */
.sectors .c-top { width: 110px; }
.stack { display: inline-flex; }
.stack .logo + .logo { margin-left: -6px; }
.stack .logo { box-shadow: 0 0 0 2px var(--paper); }

/* watchlist with holdings */
.watch .c-hold { white-space: nowrap; }
.hold { width: 8.5ch; min-width: 76px; height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); text-align: right; font-size: 1rem; }
.hold::placeholder { color: var(--ink-3); opacity: 1; }
.hold-sym { margin-left: 7px; color: var(--ink-3); font-size: 0.8125rem; }
.c-value { font-weight: 600; }

/* heatmap */
.heat { display: block; width: 100%; height: auto; }
.heat-grid { display: none; }
.heat-grid a { display: grid; align-content: center; justify-items: center; gap: 3px; height: 62px; border-radius: 10px; background: var(--hm); color: var(--hm-ink); text-decoration: none; line-height: 1.1; }
.heat-grid b { font-size: 0.9375rem; font-weight: 680; font-stretch: 92%; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 4px; }
.heat-grid span { font-size: 0.75rem; }
.heat-grid a:active { filter: brightness(0.94); }
.only-wide { display: inline; }
.hm-tile rect { fill: var(--hm); }
.hm-tile text { fill: var(--hm-ink); text-anchor: middle; font-weight: 680; font-stretch: 92%; pointer-events: none; }
.hm-tile .hm-pct { font-weight: 500; }
.hm-tile:hover rect, .hm-tile:focus-visible rect { stroke: var(--ink); stroke-width: 2; }
.hm-tile:focus-visible { outline: none; }
.hm-d4 { --hm: #c13a1a; --hm-ink: #ffffff; }
.hm-d3 { --hm: #dc6a4c; --hm-ink: #0e2a30; }
.hm-d2 { --hm: #eea893; --hm-ink: #0e2a30; }
.hm-d1 { --hm: #f7d9d0; --hm-ink: #0e2a30; }
.hm-0 { --hm: #e6ecec; --hm-ink: #0e2a30; }
.hm-u1 { --hm: #cfe9dc; --hm-ink: #0e2a30; }
.hm-u2 { --hm: #8fd0b0; --hm-ink: #0e2a30; }
.hm-u3 { --hm: #3fa97a; --hm-ink: #0e2a30; }
.hm-u4 { --hm: #0a7a4f; --hm-ink: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hm-d4 { --hm: #f4573a; --hm-ink: #06181c; }
  :root:not([data-theme="light"]) .hm-d3 { --hm: #b8432b; --hm-ink: #ffffff; }
  :root:not([data-theme="light"]) .hm-d2 { --hm: #7a2e20; --hm-ink: #e8f1f2; }
  :root:not([data-theme="light"]) .hm-d1 { --hm: #45201a; --hm-ink: #e8f1f2; }
  :root:not([data-theme="light"]) .hm-0 { --hm: #16343b; --hm-ink: #e8f1f2; }
  :root:not([data-theme="light"]) .hm-u1 { --hm: #12382c; --hm-ink: #e8f1f2; }
  :root:not([data-theme="light"]) .hm-u2 { --hm: #15573f; --hm-ink: #e8f1f2; }
  :root:not([data-theme="light"]) .hm-u3 { --hm: #158258; --hm-ink: #ffffff; }
  :root:not([data-theme="light"]) .hm-u4 { --hm: #15ac7d; --hm-ink: #06181c; }
}
:root[data-theme="dark"] .hm-d4 { --hm: #f4573a; --hm-ink: #06181c; }
:root[data-theme="dark"] .hm-d3 { --hm: #b8432b; --hm-ink: #ffffff; }
:root[data-theme="dark"] .hm-d2 { --hm: #7a2e20; --hm-ink: #e8f1f2; }
:root[data-theme="dark"] .hm-d1 { --hm: #45201a; --hm-ink: #e8f1f2; }
:root[data-theme="dark"] .hm-0 { --hm: #16343b; --hm-ink: #e8f1f2; }
:root[data-theme="dark"] .hm-u1 { --hm: #12382c; --hm-ink: #e8f1f2; }
:root[data-theme="dark"] .hm-u2 { --hm: #15573f; --hm-ink: #e8f1f2; }
:root[data-theme="dark"] .hm-u3 { --hm: #158258; --hm-ink: #ffffff; }
:root[data-theme="dark"] .hm-u4 { --hm: #15ac7d; --hm-ink: #06181c; }
.heat-key { display: grid; gap: 10px; }
.heat-legend { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); max-width: 540px; border-radius: 8px; overflow: hidden; }
.heat-legend li { padding: 7px 0; background: var(--hm); color: var(--hm-ink); font-size: 0.6875rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; font-stretch: 88%; white-space: nowrap; }

/* learn and legal pages */
.glossary > div { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.glossary dt { font-size: 1.0625rem; font-weight: 650; }
.glossary dd { margin-top: 4px; color: var(--ink-2); max-width: 68ch; }
.glossary > div:target { margin-inline: -12px; padding-inline: 12px; border-radius: 10px; background: var(--wash); }
.still { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--band); }
.empty .still { max-width: 420px; margin-bottom: 18px; }

/* search page */
.search-big { grid-area: auto; }
.search-big input { height: 54px; padding-left: 48px; font-size: 1.0625rem; }
.search-big .search-icon { left: 18px; top: 19px; }
[data-search-page] section h2 { margin-bottom: 6px; }
[data-search-page] [data-search-idle] > section + section { margin-top: 28px; }
[data-search-page] [data-search-idle] { margin-top: 28px; }
[data-search-page] > .search-big { margin-top: 0; }

.tabbar { display: none; }

/* -------------------------------------------------------------- phones */

@media (max-width: 720px) {
  .only-phone { display: inline; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  :root { --gutter-l: max(16px, env(safe-area-inset-left)); --gutter-r: max(16px, env(safe-area-inset-right)); }
  .wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

  /* header: brand and settings only; the pages live in the bar at the bottom */
  .top-row { grid-template-columns: 1fr auto; grid-template-areas: "brand tools"; min-height: 56px; padding-block: 8px; }
  .top .nav, .top .search { display: none; }
  .menu-label { display: none; }
  .menu summary, .icon-btn { height: 44px; }
  .icon-btn { width: 44px; }

  .tabbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; border-radius: 12px; color: var(--ink-3); text-decoration: none; font-size: 0.6875rem; font-weight: 550; line-height: 1; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.4; }
  .tabbar a:active { background: var(--wash); }

  /* menus open as sheets from the bottom, within thumb reach */
  .menu-pop { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(70px + env(safe-area-inset-bottom)); width: auto; max-height: min(66vh, 560px); border-radius: 18px; padding: 10px; }
  .menu[open]::before { content: ""; position: fixed; inset: 0; z-index: 29; background: rgb(7 26 30 / 0.4); }
  .menu-grid a { padding: 11px 10px; }
  .picker { margin-top: 5vh; max-height: calc(100dvh - 10vh); }
  .picker-list button { padding: 11px 10px; }

  /* band */
  .band { padding-block: 20px 18px; }
  .band-meta { gap: 8px 16px; font-size: 0.875rem; }
  .chip { height: 40px; }

  /* home */
  .summary { padding-top: 20px; }
  .lede-2 { font-size: 0.9375rem; }
  .trio { padding-top: 20px; }
  .mini a { height: 44px; }
  .market { padding-top: 26px; }
  .section-head { margin-bottom: 4px; }

  /* tables: every coin is a two-line row, no sideways scrolling */
  .table-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 6px; }
  .menu-sort { min-width: 0; flex: 0 1 auto; }
  .menu-sort summary { height: 40px; max-width: 100%; overflow: hidden; }
  .menu-sort summary b { overflow: hidden; text-overflow: ellipsis; }
  .menu-sort .menu-label { display: inline; }
  .table-tools .tabs { flex: none; flex-wrap: nowrap; margin-left: auto; }
  .table-tools .tabs button { height: 36px; }

  .table-scroll { overflow: visible; margin-inline: 0; padding-inline: 0; }
  .coins, .coins tbody { display: block; }
  .coins thead { display: none; }
  .coins tr {
    position: relative; display: grid; align-items: center; column-gap: 10px; min-height: 62px; padding: 9px 0; border-bottom: 1px solid var(--line);
    grid-template-columns: 20px minmax(0, 1fr) 58px minmax(88px, auto);
    grid-template-areas: "rank coin spark price" "rank coin spark chg";
  }
  .coins th, .coins td { display: block; height: auto; min-width: 0; padding: 0; border: 0; }
  .coins tbody tr:hover > * { background: none; }
  .coins tbody tr:active { background: var(--wash); }
  .coins .c-star, .coins .c-vol, .coins .c-mcap { display: none; }
  .coins .c-rank { grid-area: rank; width: auto; font-size: 0.75rem; text-align: center; color: var(--ink-3); }
  .coins .c-coin { grid-area: coin; }
  .c-coin a { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; gap: 1px 10px; align-items: center; max-width: none; line-height: 1.25; }
  .c-coin a::after { content: ""; position: absolute; inset: 0; }
  .c-coin .logo { grid-row: 1 / 3; }
  .c-coin .coin-name { max-width: none; white-space: nowrap; }
  .c-coin .coin-sub { overflow: hidden; text-overflow: ellipsis; font-size: 0.8125rem; color: var(--ink-3); }
  .c-coin .coin-sym { font-size: inherit; }
  .coin-cap { margin-left: 6px; font-variant-numeric: tabular-nums; }
  .coins .c-spark { grid-area: spark; width: auto; }
  .c-spark svg { width: 58px; height: 26px; margin: 0; }
  .coins .c-price { grid-area: price; align-self: end; font-weight: 600; }
  .coins .c-chg { grid-area: chg; align-self: start; font-size: 0.875rem; }
  .coins .c-h1, .coins .c-d7 { display: none; }
  :root[data-chg="h1"] .coins .c-d1, :root[data-chg="d7"] .coins .c-d1 { display: none; }
  :root[data-chg="h1"] .coins .c-h1, :root[data-chg="d7"] .coins .c-d7 { display: block; }

  .coins-slim tr, .sectors tr { grid-template-columns: 20px minmax(0, 1fr) minmax(88px, auto); grid-template-areas: "rank coin price" "rank coin chg"; }
  .sectors tr { grid-template-columns: minmax(0, 1fr) minmax(88px, auto); grid-template-areas: "coin price" "top chg"; row-gap: 5px; }
  .sectors .c-coin a { display: block; }
  .sectors .c-top { grid-area: top; width: auto; }
  .watch .c-spark, .watch .c-d7 { display: none !important; }

  .watch tr { grid-template-columns: 34px minmax(0, 1fr) minmax(88px, auto); grid-template-areas: "star coin price" "star coin chg" "hold hold value"; row-gap: 0; padding: 10px 0 12px; }
  .watch .c-star { display: block; grid-area: star; position: relative; z-index: 1; }
  .watch .c-hold { grid-area: hold; position: relative; z-index: 1; margin-top: 10px; padding-left: 34px; }
  .watch .c-value { grid-area: value; margin-top: 10px; align-self: center; }
  .watch .c-d1 { display: block !important; }
  .hold { width: 11ch; height: 42px; }

  .pager { margin-top: 16px; }
  .pager-nums { display: none; }
  .pager-where { display: block; }
  .pager a, .pager .off { min-width: 104px; height: 44px; }

  /* coin and convert pages */
  .page { padding-block: 22px 40px; }
  .page > * + * { margin-top: 30px; }
  .coin-price { margin-top: 14px; gap: 2px 12px; }
  .coin-price .quiet { flex-basis: 100%; }
  .star-big { height: 40px; }
  .chart-top { gap: 10px; }
  .chart .tabs { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .chart .tabs button { height: 38px; min-width: 0; padding: 0; }
  .chart-plot { height: 250px; }
  .chart-facts { gap: 6px 22px; }
  .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .moves div, .moves div + div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .moves div:nth-child(even) { padding-left: 14px; }
  .fact { gap: 12px; }
  .fact-wide { flex-direction: column; align-items: stretch; gap: 6px; }
  .fact-wide .range { justify-content: space-between; }
  .fact-wide .bar { flex: 1 1 60px; min-width: 60px; }
  .mini-convert .sentence { font-size: 1.75rem; }
  .mini-convert .s-num, .mini-convert .s-asset { padding-block: 3px; }
  .pairs a { height: 40px; }
  .quick th, .quick td { padding: 12px 0; }
  .quick-links th { padding-block: 0; }
  .quick-links th a { display: flex; min-height: 48px; }
  .token-name { min-height: 44px; }
  .star { width: 40px; height: 40px; }
  .star.star-big { width: auto; }
  .contract code { font-size: 0.8125rem; }
  .token-price { margin-left: 0; flex-basis: 100%; }
  .results a { padding: 13px 0; }

  .page-head .tabs { display: flex; flex-wrap: nowrap; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 14px; }
  .page-head .tabs::-webkit-scrollbar { display: none; }
  .page-head .tabs a { flex: none; height: 38px; min-width: 0; padding: 0 11px; border-radius: 11px; font-size: 0.8125rem; }
  .page-head .tabs-wide { width: 100%; }
  .tabs-wide a { flex: 1 0 auto; }

  .heat-wide { display: none; }
  .heat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .only-wide { display: none; }
  .heat-legend li { font-size: 0.625rem; padding: 8px 0; }

  .still { aspect-ratio: 3 / 2; }
  .empty .still { max-width: none; aspect-ratio: 2 / 1; }
  .foot { padding-block: 28px; }
}

@media (max-width: 370px) {
  .band .s-num, .band .s-asset { height: 1.3em; }
  .coins tr { grid-template-columns: 18px minmax(0, 1fr) minmax(84px, auto); grid-template-areas: "rank coin price" "rank coin chg"; }
  .coins .c-spark { display: none; }
  .sectors tr { grid-template-columns: minmax(0, 1fr) minmax(84px, auto); grid-template-areas: "coin price" "top chg"; }
  .watch tr { grid-template-columns: 34px minmax(0, 1fr) minmax(84px, auto); grid-template-areas: "star coin price" "star coin chg" "hold hold value"; }
  .brand-name { font-size: 1.25rem; }
  .tabbar a { font-size: 0.625rem; }
  .menu-sort .menu-label { display: none; }
  .table-tools .tabs button { min-width: 40px; padding: 0 9px; }
}

/* fingers need bigger targets than mouse pointers, on tablets too */
@media (pointer: coarse) {
  .tabs button, .tabs a { min-height: 40px; }
  .star { width: 40px; height: 40px; }
  .star.star-big { width: auto; }
  .pairs a { height: 40px; }
  .nav a { padding-block: 10px; }
  .search-pop a { padding-block: 11px; }
  .coins thead a { padding-block: 10px; }
  .c-coin a { min-height: 44px; }
  .mini-convert .s-num, .mini-convert .s-asset { padding-block: 5px; }
  .band .s-num, .band .s-asset { padding-block: 3px; }
  .quick-links th { padding-block: 0; }
  .quick-links th a { display: flex; min-height: 48px; }
  .links a { min-height: 40px; }
  .token-name { min-height: 44px; }
}

/* ------------------------------------------------- trends overview */

.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(28px, 4vw, 56px); }
.dash h2 { margin-bottom: 12px; }
.dash h3 { margin-top: 0; }
.dash .mini + h3 { margin-top: 16px; }
@media (max-width: 1180px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dash { grid-template-columns: minmax(0, 1fr); } }

.rows, .hist { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9375rem; }
.rows th, .rows td, .hist th, .hist td { height: 40px; padding: 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; white-space: nowrap; }
.rows th { color: var(--ink-2); }
.rows .col-label { width: 5.5rem; }
.hist .col-label { width: 8.75rem; }
.row-flex { display: flex; align-items: center; gap: 10px; }
.rows .row-flex { justify-content: space-between; gap: 12px; }
.rows td .num { color: var(--ink-2); font-size: 0.875rem; }
.rows .breadth { flex: 0 1 150px; min-width: 60px; }
.hist th { color: var(--ink-2); padding-right: 14px; text-align: right; }
.hist td .num { font-weight: 600; }
.hbar { flex: 0 1 150px; min-width: 40px; }
.row-flex > .num { flex: none; }
.hbar.up path { fill: var(--up); }
.hbar.down path { fill: var(--down); }

.share-bar { width: 100%; height: 28px; border-radius: 6px; overflow: hidden; }
.sh-1 { fill: var(--sh-1); }
.sh-2 { fill: var(--sh-2); }
.sh-3 { fill: var(--sh-3); }
.sh-4 { fill: var(--sh-4); }
.sh-5 { fill: var(--sh-5); }
.sh-0 { fill: var(--sh-0); }
.share-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin-top: 12px; font-size: 0.9375rem; }
.share-legend li { display: flex; align-items: center; gap: 8px; min-height: 30px; min-width: 0; white-space: nowrap; }
.sl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.share-legend a { color: var(--ink); text-decoration: none; }
.share-legend a:hover { text-decoration: underline; }
.share-legend b { margin-left: auto; flex: none; }
.swatch { flex: none; }

.mini-plain a { grid-template-columns: minmax(0, 1fr) auto 72px; }

/* ----------------------------------------------------- rates table */

.rates { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.rates th, .rates td { height: 56px; padding: 0 12px; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; white-space: nowrap; }
.rates thead th { height: 42px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.rates .num { text-align: right; }
.rates tbody th a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.rates tbody th a:hover .coin-name { text-decoration: underline; }
.rates td a { color: var(--ink); text-decoration: none; font-weight: 550; }
.rates td a:hover { color: var(--link); text-decoration: underline; }
.rates tbody tr:hover > * { background: var(--wash); }
.rates th:first-child, .rates td:first-child { padding-left: 0; }
.rates th:last-child, .rates td:last-child { padding-right: 0; }

/* --------------------------------------------------------- compare */

.compare-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink-2); }
.chip-pick { height: 40px; color: var(--ink); font-size: 1rem; }
.chip-pick .chev { color: var(--ink-3); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 14px; }
.cmp-legend li { display: flex; align-items: center; gap: 8px; }
.cmp-legend b { margin-left: 2px; }
.cmp-key path { fill: none; stroke-width: 3; stroke-linecap: round; }
.cmp-a { stroke: var(--cat-1); }
.cmp-b { stroke: var(--cat-2); }
.cmp-fill-a { fill: var(--cat-1); }
.cmp-fill-b { fill: var(--cat-2); }
.cmp-end { stroke: var(--paper); stroke-width: 2; }
.cmp-name { fill: var(--ink); font-size: 12px; font-weight: 650; font-stretch: 94%; }
.ch-zero { stroke: var(--ink-3); }
.cmp-sum { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-2); min-height: 1.5em; }
.cmp-table { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 8px; }
.cmp-table th, .cmp-table td { padding: 12px 0 12px 16px; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.cmp-table th:first-child { padding-left: 0; color: var(--ink-2); }
.cmp-table .num { text-align: right; }
.cmp-table td { font-weight: 600; }
.cmp-table thead th { font-weight: 650; }
.cmp-table thead a { color: var(--ink); }

/* -------------------------------------------- coin page, added blocks */

.coin-summary { margin-top: 16px; max-width: 46em; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }
.daily-plot { margin-top: 6px; max-width: 420px; border-radius: 8px; touch-action: pan-y; }
.daily-plot svg { width: 100%; height: auto; overflow: visible; }
.dc { fill: var(--hm); }
.daily-plot .dc.on { stroke: var(--ink); stroke-width: 2; }
.daily-key { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-3); font-size: 0.8125rem; }
.daily-facts { gap: 12px 32px; margin-top: 14px; }
.daily-facts div { display: block; }
.daily-facts dd { font-size: 1.125rem; }
.daily-facts .fact-note { display: block; }

.calc-line { margin-top: 12px; font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.9; max-width: 30em; }
.calc-line b { font-size: 1.15em; white-space: nowrap; }
.calc-num, .calc-line select {
  height: 1.7em; padding: 0 0.1em; border: 0; border-bottom: 2px solid var(--ink-3); border-radius: 0;
  background: none; color: var(--ink); font-weight: 650; line-height: 1.2;
}
.calc-num { field-sizing: content; width: 6ch; min-width: 3ch; max-width: 12ch; }
.calc-num:hover, .calc-line select:hover, .calc-num:focus-visible, .calc-line select:focus-visible { border-bottom-color: var(--ink); }
.calc-line select { cursor: pointer; }
.calc .quiet { margin-top: 10px; max-width: 34em; }

/* ------------------------------------------------ watchlist, added */

.alloc { max-width: 620px; }
.alloc .share-bar { margin-top: 10px; }
.backup summary { display: inline-flex; align-items: center; min-height: 40px; color: var(--link); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.backup-body { max-width: 560px; margin-top: 6px; }
.backup-body > * + * { margin-top: 10px; }
.backup-body label { display: block; font-weight: 600; margin-top: 20px; }
.backup textarea {
  display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8125rem; line-height: 1.4; resize: vertical; overflow-wrap: anywhere;
}
.backup textarea:not([readonly]) { background: var(--paper); }
.linkish { padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; }

@media (max-width: 720px) {
  .rows th, .rows td, .hist th, .hist td { height: 44px; }
  .share-legend li { min-height: 36px; }

  /* the rates table: one block per coin, its prices in two columns */
  .rates, .rates tbody { display: block; }
  .rates thead { display: none; }
  .rates tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
  .rates th, .rates td { height: auto; padding: 0; border: 0; }
  .rates tbody th { grid-column: 1 / -1; }
  .rates tbody th a { display: flex; min-height: 44px; }
  .rates td { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; min-width: 0; }
  .coins .fact-note { display: none; }
  .rates td::before { content: attr(data-code); color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; }
  .rates td a { display: inline-flex; align-items: center; min-height: 36px; overflow: hidden; text-overflow: ellipsis; }
  .rates tbody tr:hover > * { background: none; }

  .chip-pick { height: 44px; }
  .cmp-table th, .cmp-table td { padding: 12px 0 12px 10px; font-size: 0.9375rem; }
  .calc-line { line-height: 2.1; }
  .calc-num, .calc-line select { height: 1.9em; }
  .backup summary { min-height: 44px; }
}
@media (max-width: 370px) {
  .hist .col-label { width: 7.25rem; }
  .hist th { padding-right: 10px; }
  .rows .col-label { width: 4.75rem; }
  .share-legend { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .brand { min-height: 40px; }
  .rates tbody th a { min-height: 40px; }
  .cmp-table thead a { display: inline-flex; align-items: center; min-height: 40px; }
  .rates td a { min-height: 36px; display: inline-flex; align-items: center; }
  .share-legend a { display: inline-flex; align-items: center; min-height: 36px; }
}

/* ------------------------------------ the company's other projects
   Shown in a few set places and always named as ours. Until a project has a
   picture, its tile carries the name set wide on the brand colour. */

.proj-block { padding-bottom: clamp(40px, 6vw, 72px); }
.proj-block .section-head { margin-bottom: 16px; }
.proj-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(16px, 2.2vw, 28px); }
/* position: relative keeps the hidden "opens in a new tab" text inside its card, so a card scrolled off to the side cannot widen the page */
.proj { position: relative; display: grid; gap: 3px; align-content: start; color: var(--ink); text-decoration: none; }
.proj-tile { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 10px; border-radius: 12px; overflow: hidden; background: var(--band); container-type: inline-size; }
.proj-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-blank::before { content: ""; position: absolute; right: -14%; top: -36%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--on-band) 9%, transparent); }
li:nth-child(4n + 2) .proj-blank::before { right: auto; left: -20%; top: auto; bottom: -58%; width: 74%; }
li:nth-child(4n + 3) .proj-blank::before { right: 9%; top: 14%; width: 30%; }
li:nth-child(4n + 4) .proj-blank::before { right: -30%; top: 24%; width: 70%; }
.proj-word { position: absolute; left: 7cqi; right: 7cqi; bottom: 6cqi; color: var(--on-band); font-size: clamp(1.25rem, 10.5cqi, 3.25rem); font-weight: 760; font-stretch: 125%; line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.proj-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.proj-name { font-size: 1.0625rem; font-weight: 650; font-stretch: 104%; }
.proj:hover .proj-name, .proj-line:hover b { text-decoration: underline; }
.proj-kind, .proj-text { color: var(--ink-2); font-size: 0.9375rem; }
.proj-go { display: inline-flex; align-items: center; gap: 5px; color: var(--link); font-size: 0.9375rem; white-space: nowrap; }
.proj .tag, .proj-line .tag { height: 22px; padding: 0 8px; font-size: 0.75rem; }
.proj .tag { background: var(--line); }

.proj-large { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px); max-width: 1040px; }
.proj-large .proj-tile { margin-bottom: 14px; border-radius: 16px; }
.proj-large .proj-name { font-size: 1.375rem; font-stretch: 108%; letter-spacing: -0.01em; }
.proj-large .proj-text { font-size: 1rem; max-width: 34em; }
.proj-large .proj-go { margin-top: 4px; }
.proj-more { display: inline-flex; align-items: center; min-height: 32px; margin-top: 6px; font-size: 0.9375rem; }

.proj-aside, .proj-rows { max-width: 760px; }
.proj-rows { display: grid; gap: 8px; margin-top: 12px; }
.proj-line {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "dot main go" "dot by go";
  position: relative; align-items: center; gap: 1px 14px; padding: 12px 16px; border-radius: 12px; background: var(--wash); color: var(--ink); text-decoration: none;
}
.proj-dot { grid-area: dot; position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--band); color: var(--on-band); font-size: 1.0625rem; font-weight: 760; font-stretch: 125%; letter-spacing: -0.02em; }
.proj-dot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-line-main { grid-area: main; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; align-self: end; }
.proj-line-main b { font-weight: 650; }
.proj-line-kind { color: var(--ink-2); }
.proj-line-by { grid-area: by; align-self: start; color: var(--ink-2); font-size: 0.8125rem; }
.proj-line .proj-go { grid-area: go; }
.proj-line .tag { background: var(--line); }
/* in a list under its own heading the rows do not repeat whose they are */
.proj-rows .proj-line-main { grid-row: 1 / 3; align-self: center; }

@media (max-width: 1100px) {
  /* too many to sit side by side: one row that scrolls sideways */
  .proj-strip:not(.proj-large) {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r));
    padding-left: var(--gutter-l); padding-right: var(--gutter-r);
    scroll-padding-left: var(--gutter-l); scroll-padding-right: var(--gutter-r);
  }
  .proj-strip:not(.proj-large)::-webkit-scrollbar { display: none; }
  .proj-strip:not(.proj-large) > li { flex: 0 0 min(70%, 290px); scroll-snap-align: start; }
}
@media (max-width: 720px) {
  .proj-large { grid-template-columns: minmax(0, 1fr); }
  .proj { gap: 4px; }
  .proj-go { min-height: 28px; }
}
@media (max-width: 560px) {
  .proj-line { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "dot main" "dot by" "dot go"; align-items: start; padding: 14px; }
  .proj-line-main, .proj-rows .proj-line-main { grid-row: auto; align-self: auto; }
  .proj-line .proj-go { margin-top: 4px; }
}

/* a quick cross-fade between pages where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  /* nothing that loops: the ticker becomes a strip you can scroll by hand */
  .ticker-track, .live-dot::after { animation: none !important; }
  .ticker-view { overflow-x: auto; scrollbar-width: none; mask-image: none; }
  .ticker-list[aria-hidden="true"], .ticker-pause { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print { .ticker, .band-line { display: none; } }

/* --------------------------------------------------------------- news */

.news-strip { margin-block: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 48px); }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 14px 0 0; padding: 0; list-style: none; }
.news-card > a { display: block; color: var(--ink); text-decoration: none; }
.news-card .art-img, .news-thumb img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--wash);
}
.news-card-title { display: block; margin-top: 12px; font-size: 1.125rem; font-weight: 620; line-height: 1.3; text-wrap: pretty; }
.news-card > a:hover .news-card-title { text-decoration: underline; text-underline-offset: 0.15em; }
.art-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; color: var(--ink-3); font-size: 0.875rem; }
.art-meta a { color: var(--ink-2); }

.news-lead { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.news-lead .art-img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--wash); }
.news-lead h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.12; letter-spacing: -0.015em; margin: 8px 0 12px; text-wrap: balance; }
.news-lead p:not(.art-meta) { color: var(--ink-2); font-size: 1.0625rem; }
.news-lead h2 a, .news-list h2 a { color: var(--ink); text-decoration: none; }
.news-lead h2 a:hover, .news-list h2 a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-list h2 { font-size: 1.25rem; line-height: 1.25; margin: 6px 0 8px; }
.news-list p:not(.art-meta) { color: var(--ink-2); }

/* the word list under the guides on /learn */
.words { max-width: 820px; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.words > * + * { margin-top: 12px; }
.words h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; font-weight: 680; font-stretch: 108%; letter-spacing: -0.015em; }
.words h3 { margin-top: 28px; font-size: 1.125rem; font-weight: 650; }
.words p { max-width: 68ch; }

.page.article > * { max-width: 720px; }
.art-head h1 { font-size: clamp(1.875rem, 4.6vw, 2.875rem); line-height: 1.08; font-weight: 680; font-stretch: 108%; letter-spacing: -0.022em; text-wrap: balance; }
.art-head > * + * { margin-top: 14px; }
.art-head .crumbs a { color: var(--ink-2); }
.page.article > .art-img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--wash); }
.prose { font-size: 1.0625rem; line-height: 1.68; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.9em; font-size: 1.375rem; line-height: 1.25; font-weight: 650; }
.prose h3 { margin-top: 1.6em; font-size: 1.125rem; line-height: 1.3; font-weight: 650; }
.prose h2 + *, .prose h3 + * { margin-top: 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol, .art-sources ol { list-style: decimal; }
.prose li::marker, .art-sources li::marker { color: var(--ink-3); }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { padding-left: 1em; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose code { padding: 0.08em 0.3em; border-radius: 4px; background: var(--wash); font-size: 0.92em; }
.art-sources { padding-top: 24px; border-top: 1px solid var(--line); }
.art-sources h2, .art-note h2, .art-more h2 { font-size: 1.125rem; font-weight: 650; margin-bottom: 10px; }
.art-sources ol { display: grid; gap: 8px; padding-left: 1.3em; }
.art-sources .quiet { white-space: nowrap; }
.art-note { padding: 20px 22px; border-radius: 12px; background: var(--wash); color: var(--ink-2); font-size: 0.9375rem; scroll-margin-top: 16px; }
.art-note h2 { color: var(--ink); }
.art-note p + p { margin-top: 8px; }
.page.article > .art-more { max-width: none; }

@media (max-width: 860px) {
  .news-cards { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .news-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .news-card > a { display: flex; gap: 14px; align-items: flex-start; }
  .news-card .art-img { flex: none; width: 112px; border-radius: 8px; }
  .news-card-title { margin-top: 0; font-size: 1.0625rem; }
  .news-card .art-meta { padding-left: 126px; margin-top: 2px; }
  .news-lead { grid-template-columns: minmax(0, 1fr); }
  .news-list li { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
  .news-list h2 { font-size: 1.125rem; margin-top: 2px; }
}
