/* CryptoCoinUS — site styles
   Layout: navy ticker band, white masthead, single 1160px column; tools use a two-panel (inputs | results) grid. */
:root {
  --bg: #F3F5FA;
  --surface: #FFFFFF;
  --sunken: #EEF1F7;
  --ink: #0B1B3F;
  --muted: #56637F;
  --line: #D9DFEB;
  --navy: #00205A;
  --navy-2: #0A2E78;
  --on-navy: #FFFFFF;
  --red: #C30F29;
  --red-ink: #FFFFFF;
  --up: #12804A;
  --down: #C30F29;
  --warn-bg: #FFF6E0;
  --warn-ink: #6B4A00;
  --focus: #3D6BE0;
  --tile: #FFFFFF;
  --band: #00205A;
  --band-ink: #DCE5F7;
  --shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 8px 24px rgba(11, 27, 63, .06);
  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081226; --surface: #0F1D3A; --sunken: #0B1730; --ink: #E8EDF8; --muted: #9AA8C7; --line: #22335A;
    --navy: #8FB0F5; --navy-2: #A9C2F8; --on-navy: #081226; --red: #FF5A6E; --red-ink: #1A0408; --up: #4CCB8A; --down: #FF7484;
    --warn-bg: #2E2410; --warn-ink: #F3D58A; --focus: #8FB0F5; --band: #050D1E; --band-ink: #C9D5EE;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081226; --surface: #0F1D3A; --sunken: #0B1730; --ink: #E8EDF8; --muted: #9AA8C7; --line: #22335A;
  --navy: #8FB0F5; --navy-2: #A9C2F8; --on-navy: #081226; --red: #FF5A6E; --red-ink: #1A0408; --up: #4CCB8A; --down: #FF7484;
  --warn-bg: #2E2410; --warn-ink: #F3D58A; --focus: #8FB0F5; --band: #050D1E; --band-ink: #C9D5EE;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
.num, table { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--band); color: var(--band-ink); font-size: 14px; overflow: hidden; white-space: nowrap; border-bottom: 3px solid var(--red); }
.ticker-track { display: inline-flex; gap: 28px; padding-block: 7px; padding-left: 16px; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { color: inherit; text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; }
.ticker b { color: #fff; font-weight: 700; letter-spacing: .02em; }
.ticker .up { color: #5EE19A; } .ticker .down { color: #FF8C99; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
}

/* ---------- Masthead ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.mast { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
html { scroll-padding-top: 120px; }
.mast .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 7px; background: var(--tile); padding: 2px; }
.word { font-family: var(--font-display); font-weight: 800; font-size: 23px; letter-spacing: -.01em; color: var(--navy); line-height: 1; }
.word b { color: var(--red); font-weight: 800; }
.word small { font-size: .7em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav summary { font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover { background: var(--sunken); color: var(--ink); }
.nav > a.on, .nav details.on summary { box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav details { position: relative; }
.nav summary::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0 3px 8px; }
.menu { position: absolute; top: calc(100% + 8px); left: -8px; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.menu a:hover { background: var(--sunken); }
.menu .ico { width: 20px; height: 20px; color: var(--navy); flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 16px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-red { background: var(--red); color: var(--red-ink); }
.btn-red:hover { filter: brightness(1.08); color: var(--red-ink); }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-2); color: var(--on-navy); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { font-size: 14px; padding: 7px 12px; border-radius: 8px; }
.mast .btn { margin-left: 8px; }
.burger { display: none; margin-left: auto; }
.burger summary { list-style: none; cursor: pointer; padding: 8px; border-radius: 8px; }
.burger summary::-webkit-details-marker { display: none; }
.burger svg { width: 26px; height: 26px; color: var(--ink); display: block; }
.mobile-nav { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 110px); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.mobile-nav a { padding: 10px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .sub { padding-left: 18px; font-weight: 400; font-size: 15px; }
@media (max-width: 960px) {
  .nav, .mast .btn { display: none; }
  .burger { display: block; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 5.2vw, 50px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin: 0 0 8px; }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 12px 0 0; }
.section { padding-block: 44px 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.page-head { padding-block: 36px 8px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* ---------- Panels & cards ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 22px; }
.flagbar { height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--navy) 0 50%, var(--red) 50% 100%); }
.grid { display: grid; gap: 16px; }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); min-width: 0; }
a.card:hover { border-color: var(--navy); color: var(--ink); box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 30px; height: 30px; color: var(--navy); }
.card .meta { font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.pill.live { color: var(--up); } .pill.snap { color: var(--red); } .pill.est { color: var(--muted); }
.pill.partner { color: var(--navy); }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.disclose { font-size: 14px; color: var(--muted); border-left: 3px solid var(--red); padding: 4px 0 4px 12px; margin: 14px 0; max-width: 80ch; }

/* ---------- Hero ---------- */
.hero { padding-block: 40px 12px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 15px; color: var(--muted); }
.hero-facts b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--ink); }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 14px 18px; display: grid; gap: 2px; min-width: 0; }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat b { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.stat small { font-size: 14px; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; }
.data th, .data td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data th:first-child, .data td:first-child { text-align: left; }
.data .l { text-align: left; }
.data thead th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunken); position: sticky; top: 0; }
.data thead th[data-sort] { cursor: pointer; user-select: none; }
.data thead th[data-sort]:hover { color: var(--ink); }
.data thead th.sorted::after { content: " ↓"; }
.data thead th.sorted.asc::after { content: " ↑"; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: var(--sunken); }
.data .rank { color: var(--muted); width: 1%; }
.coin-cell { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.coin-cell small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.coin-img { border-radius: 50%; flex: none; }
.coin-initials { display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; background: hsl(var(--h) 55% 42%); }
.spark { display: block; }
.spark .spark-line { stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark.up .spark-line { stroke: var(--up); } .spark.down .spark-line { stroke: var(--down); }
.spark .spark-fill { opacity: .1; }
.spark.up .spark-fill { fill: var(--up); } .spark.down .spark-fill { fill: var(--down); }
.spark-empty { display: inline-block; width: 120px; height: 2px; background: var(--line); vertical-align: middle; }
.table-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.input, select.input, textarea.input { font: inherit; font-size: 17px; color: var(--ink); background: var(--sunken); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
.input:focus { outline: none; border-color: var(--focus); }
select.input { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { color: #0B1B3F; background: #fff; }
.input-big { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.prefix > .input { padding-left: 28px; }
.suffix { position: relative; }
.suffix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.suffix > .input { padding-right: 34px; }
.seg { display: inline-flex; background: var(--sunken); border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 12px; border-radius: 7px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.check { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

/* ---------- Tool layout ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-form { padding: 22px; display: grid; gap: 16px; }
.tool-out { padding: 22px; display: grid; gap: 18px; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.big-result { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; overflow-wrap: anywhere; }
.big-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv > div { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.kv span { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kv b { font-size: 19px; font-family: var(--font-display); font-weight: 700; overflow-wrap: anywhere; }
.kv.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kv.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .kv, .kv.k4, .kv.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.status-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.explain { max-width: 75ch; }
.explain h2 { margin: 36px 0 10px; font-size: 26px; }
.explain h3 { margin: 22px 0 6px; }
.explain p, .explain li { color: var(--ink); }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .line-a { stroke: var(--navy); stroke-width: 2.2; fill: none; }
.chart .line-b { stroke: var(--red); stroke-width: 2.2; fill: none; stroke-dasharray: 5 4; }
.chart .area-a { fill: var(--navy); opacity: .08; }
.chart .hover-line { stroke: var(--muted); stroke-dasharray: 3 3; }
.chart .dot-a { fill: var(--navy); } .chart .dot-b { fill: var(--red); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; background: var(--navy); }
.legend i.b { background: var(--red); }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; box-shadow: var(--shadow); white-space: nowrap; }
.chart-box { position: relative; }

/* Converter widget */
.conv { display: grid; gap: 16px; }
.conv-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.combo { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1.5px solid var(--line); border-radius: 10px; background: var(--sunken); overflow: hidden; }
.combo:focus-within { border-color: var(--focus); }
.combo input, .combo output { font-family: var(--font-display); font-weight: 700; font-size: 24px; padding: 10px 12px; background: transparent; border: 0; color: var(--ink); outline: none; min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.combo select { font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); background-color: transparent; border: 0; border-left: 1.5px solid var(--line); padding: 0 30px 0 10px; appearance: none; cursor: pointer; max-width: 110px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; }
.combo select option { color: #0B1B3F; background: #fff; }
.swap { width: 46px; height: 50px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.swap:hover { border-color: var(--navy); }
.swap svg { width: 22px; height: 22px; }
.conv-rate { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: 15px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.conv-rate b { color: var(--ink); }
.linkbtn { font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; }
.conv { container-type: inline-size; }
@container (max-width: 520px) {
  .conv-row { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); height: 42px; }
}
@media (max-width: 560px) {
  .conv-row { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); height: 42px; }
}

/* Exchange cards */
.xlist { display: grid; gap: 12px; }
.xrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.xrow.na { opacity: .55; }
.xrow h3 { font-size: 21px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.xrow .sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.xrow .cost { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.xrow .actions { display: grid; gap: 6px; justify-items: end; }
.xrow .rankno { font-family: var(--font-display); font-weight: 800; color: var(--muted); font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.facts b { color: var(--ink); font-weight: 600; }
.yes { color: var(--up); font-weight: 700; } .no { color: var(--muted); }
@media (max-width: 820px) {
  .xrow { grid-template-columns: 1fr 1fr; }
  .xrow > :first-child { grid-column: 1 / -1; }
  .xrow .actions { grid-column: 1 / -1; justify-items: stretch; grid-template-columns: 1fr 1fr; }
}
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.proscons ul { margin: 8px 0 0; padding-left: 20px; }
.proscons li { margin-bottom: 6px; }

/* Articles */
.article { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 300px); gap: 48px; align-items: start; padding-block: 28px 0; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--sunken); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prose blockquote, .prose .callout { margin: 0 0 22px; padding: 14px 18px; border-left: 4px solid var(--navy); background: var(--surface); border-radius: 0 10px 10px 0; }
.prose .callout.warn { border-left-color: var(--red); }
.prose .callout p:last-child { margin-bottom: 0; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 15px; margin-top: 14px; }
.aside { position: sticky; top: 130px; display: grid; gap: 16px; }
.aside h3 { font-size: 17px; }
.aside ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.aside a { text-decoration: none; display: flex; gap: 8px; align-items: center; padding: 6px 0; font-weight: 600; }
.aside .ico { width: 20px; height: 20px; }
@media (max-width: 980px) { .article { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* Newsletter + footer */
.newsletter { margin-top: 56px; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: center; }
.newsletter h2 { color: inherit; }
.newsletter p { margin: 6px 0 0; opacity: .85; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter .input { flex: 1 1 200px; background: var(--surface); }
.newsletter .flash { grid-column: 1 / -1; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.flash { padding: 10px 14px; border-radius: 10px; font-weight: 600; background: var(--sunken); color: var(--ink); }
.flash.err { color: var(--down); }
.foot { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Coin page */
.coin-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.coin-head h1 { font-size: clamp(30px, 4.5vw, 44px); }
.coin-price { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; }
.coin-price b { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 20px; align-items: start; margin-top: 22px; }
@media (max-width: 900px) { .coin-layout { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 4px; }
.range { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.range-bar { height: 6px; border-radius: 3px; background: var(--sunken); position: relative; }
.range-bar i { position: absolute; top: -4px; width: 4px; height: 14px; border-radius: 2px; background: var(--navy); }

/* Misc */
.empty { padding: 28px; text-align: center; color: var(--muted); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.legal { max-width: 75ch; }
.legal h2 { font-size: 24px; margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.7; }

/* Partner call-out boxes */
.partner-box { padding: 18px; display: grid; gap: 14px; }
.partner-box-head { display: flex; gap: 12px; align-items: flex-start; }
.partner-box-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--sunken); display: grid; place-items: center; color: var(--navy); }
.partner-box-ico .ico { width: 22px; height: 22px; }
.partner-box h3 { font-size: 18px; }
.partner-box-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.partner-box-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.partner-chip { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.partner-chip:hover { border-color: var(--navy); color: var(--ink); }
.partner-chip b { font-size: 16px; }
.partner-chip span { font-size: 14px; color: var(--muted); }
.partner-chip i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--red); margin-top: 4px; }
.partner-box-foot { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.partner-box-foot a { font-weight: 600; }
.aside .partner-box-list { grid-template-columns: 1fr; }
.vs-table td, .vs-table th { white-space: normal; min-width: 120px; }
.vs-table td:first-child { min-width: 150px; }
