/* CoinGree: quiet information layouts shared by every page. */
:root {
  --bg: #fafbf9;
  --bg-2: #fafbf9;
  --surface: #ffffff;
  --surface-2: #f0f3f0;
  --raise: #eef5f0;
  --line: #e1e6e2;
  --line-2: #cbd5ce;
  --text: #252b28;
  --muted: #626e66;
  --faint: #626e66;
  --brand: #1d7b4e;
  --brand-2: #196a43;
  --brand-ink: #ffffff;
  --brand-soft: #eef5f0;
  --gold: #a47e20;
  --gold-soft: #f5f0e4;
  --okx: #343d37;
  --okx-ink: #ffffff;
  --pos: #1d7b4e;
  --neg: #b64440;
  --neg-soft: #faf0ef;
  --warn: #93601e;
  --warn-soft: #f7f1e7;
  --radius: 4px;
  --radius-sm: 4px;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --header-height: 56px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #151a17; --bg-2: #151a17; --surface: #1b211d; --surface-2: #232b26; --raise: #29332c;
  --line: #303b34; --line-2: #455349; --text: #e7eee9; --muted: #a8b6ad; --faint: #a8b6ad;
  --brand: #82cda2; --brand-2: #a1dfba; --brand-ink: #15271d; --brand-soft: #233a2b;
  --gold: #d1b66c; --gold-soft: #382f1f; --okx: #ccd7d0; --okx-ink: #151a17;
  --pos: #82cda2; --neg: #ee9590; --neg-soft: #382725; --warn: #dbb47b; --warn-soft: #362e22;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
/* 中文标题只在标点和空格处换行，避免把一个词拆到两行；超长不可断的内容仍可强制换行 */
h1, h2 { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: 28px; line-height: 1.35; margin: 0 0 10px; overflow-wrap: anywhere; }
h2 { font-size: 20px; line-height: 1.5; margin: 0 0 20px; }
h3 { font-size: 16px; line-height: 1.65; margin: 24px 0 10px; }
p { margin: 0 0 20px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
code, .mono, .num { font-variant-numeric: tabular-nums; }
code { font: .9em var(--mono); overflow-wrap: anywhere; }
.num { font-family: var(--mono); }
.wrap { width: min(84%, 1200px); margin-inline: auto; }
main.wrap { padding-top: 44px; padding-bottom: 48px; min-height: 52vh; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { max-width: 960px; color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }

/* Shared header: custom dropdowns and responsive navigation. */
.top { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; gap: 32px; align-items: center; min-height: var(--header-height); }
.brand { display: inline-flex; flex: none; align-items: center; color: var(--text); white-space: nowrap; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand-art { --logo-coin: #252b28; --logo-gree: #35634c; display: block; position: relative; width: 100px; aspect-ratio: 1200 / 210; }
.brand-art svg { display: block; width: 100%; height: 100%; }
:root[data-theme="dark"] .brand-art { --logo-coin: #ffffff; --logo-gree: #a7c3b1; }
.nav { display: flex; align-self: stretch; align-items: stretch; gap: 22px; flex: 1; min-width: 0; }
.nav a { display: inline-flex; align-items: center; color: var(--text); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; padding: 12px 0; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a[aria-current] { color: var(--brand); border-color: var(--brand); }
.tools-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; color: var(--muted); }
.header-search:hover, .header-search[aria-current] { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.header-search .icon { width: 18px; height: 18px; }
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; color: inherit; }
.dropdown { position: relative; }
.dropdown summary { display: flex; align-items: center; justify-content: center; gap: 8px; list-style: none; cursor: pointer; min-height: 44px; font-size: 13px; color: var(--muted); padding: 8px; border-radius: 4px; white-space: nowrap; }
summary::-webkit-details-marker { display: none; }
.dropdown summary .icon { width: 16px; height: 16px; }
.dropdown summary .icon:last-child { width: 14px; height: 14px; transition: transform .15s; }
.dropdown[open] summary .icon:last-child { transform: rotate(180deg); }
.dropdown summary:hover, .dropdown[open] > summary { color: var(--text); background: var(--surface-2); }
.dropdown-panel, .select-options { position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; min-width: 176px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 28px #14231b12; }
.dropdown-panel a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 12px; min-height: 44px; border-radius: 4px; font-size: 13px; color: var(--text); }
.dropdown-panel a:hover { text-decoration: none; background: var(--surface-2); }
.dropdown-panel a[aria-current] { color: var(--brand); background: var(--brand-soft); }
.dropdown-panel .icon { width: 16px; height: 16px; }
.nav-exchanges { display: flex; align-items: stretch; }
.nav-exchanges > summary { min-height: var(--header-height); padding: 12px 0; color: var(--text); font-size: 14px; border-radius: 0; border-bottom: 2px solid transparent; }
.nav-exchanges > summary:hover, .nav-exchanges[open] > summary { background: transparent; color: var(--brand); }
.nav-exchanges > summary.is-current { color: var(--brand); border-color: var(--brand); }
.exchange-menu { width: 230px; left: -16px; right: auto; }
.nav .exchange-menu a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px; border: 0; }
.exchange-menu strong { font-size: 14px; font-weight: 500; }
.exchange-menu span { color: var(--muted); font-size: 12px; }
.exchange-menu .icon { grid-column: 2; grid-row: 1 / 3; color: var(--muted); }
.nav-toggle { display: none; width: 40px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--text); }
.nav-toggle:hover { background: var(--surface-2); }
.menu-close-icon, .nav-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.nav-toggle[aria-expanded="true"] .menu-close-icon { display: inline-flex; }
.nav-toggle .icon { width: 22px; height: 22px; }
.theme { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; background: transparent; border: 0; border-radius: 4px; color: var(--muted); }
.theme:hover { background: var(--surface-2); color: var(--text); }

/* Page layout and section rules. */
.crumbs { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.section { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.eyebrow { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.more > .icon { width: 14px; height: 14px; transform: rotate(-90deg); }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 48px; align-items: start; }
.with-side > *, .cols > *, .home-grid > * { min-width: 0; }
.side-sticky { display: grid; gap: 32px; padding-top: 8px; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-bottom: 32px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.home-intro.has-deadline { grid-template-columns: minmax(0, 1fr) 36%; }
.home-intro-copy { min-width: 0; }
.home-kicker { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.home-intro h1 { font-size: 44px; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 16px; }
.home-intro h1 > span { display: block; }
.home-intro .lead { margin-bottom: 24px; max-width: 680px; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.home-actions .icon { width: 18px; height: 18px; }
.home-actions .home-primary { gap: 14px; font-size: 15px; }
.home-primary > .icon, .home-deadline-more > .icon { transform: rotate(-90deg); }
.home-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; }
.home-action:hover { text-decoration: none; color: var(--brand-2); }
.home-deadline { min-width: 0; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 4px; background: var(--brand-soft); }
.home-deadline-link { display: grid; gap: 16px; padding: 22px 24px; color: var(--text); }
.home-deadline-link:hover { text-decoration: none; }
.home-deadline-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home-deadline-label { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 14px; font-weight: 500; }
.home-deadline-label .icon { width: 18px; height: 18px; }
.home-deadline h2 { font-size: 18px; font-weight: 600; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: pretty; }
.home-deadline-link:is(:hover, :focus-visible) h2 { color: var(--brand); }
.home-deadline .countdown { align-items: center; }
.home-deadline .countdown-header { display: none; }
.home-deadline .countdown-digits { gap: 10px; }
.home-deadline .countdown-part { gap: 6px; }
.home-deadline .countdown[data-phase] .countdown-part > b { min-width: 62px; height: 52px; padding-inline: 8px; font-size: 32px; color: var(--text); background: var(--bg); border-color: var(--line); }
.home-deadline .countdown:has(.countdown-days:not([hidden])) .countdown-digits { gap: 7px; }
.home-deadline .countdown:has(.countdown-days:not([hidden])) .countdown-part > b { min-width: 48px; font-size: 25px; }
.home-deadline .countdown .countdown-part > small { font-size: 11px; }
.home-deadline .countdown-sep { height: 52px; font-size: 20px; }
.home-deadline-more { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; color: var(--brand); font-size: 14px; font-weight: 500; }
.home-deadline-more .icon { width: 16px; height: 16px; }
.home-deadline.is-ended { background: var(--surface-2); border-left-color: var(--line-2); }
.home-deadline.is-ended .home-deadline-label { color: var(--muted); }
.home-deadline .countdown.is-ended .countdown-header { display: inline-flex; }
.home-ending-head { display: none; }
/* 桌面端首屏右侧已经展示最近截止的活动，列表里不再重复；窄屏卡片隐藏后改为在列表中高亮这一条 */
.home-intro.has-deadline + .home-grid .home-ending-row { display: none; }
.home-intro:not(.has-deadline) + .home-grid .live-grid > :nth-child(n+4) { display: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 30.5%; gap: 64px; align-items: start; }
.home-side { display: grid; gap: 28px; padding-left: 24px; border-left: 1px solid var(--line); }
.home-side .section-head { margin-bottom: 12px; padding-bottom: 8px; }
.home-side .section-head h2 { font-size: 17px; }
.home-side section > p { margin-bottom: 12px; }
.home-side .more { font-size: 12px; font-weight: 400; }
.home-side .tbl-scroll { margin-bottom: 12px; }
.home-side .small { font-size: 12.5px; }
.home-funding .section-head { min-height: 36px; padding-bottom: 4px; margin-bottom: 8px; }
.home-side .home-funding > p { font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
.home-funding .tbl.compact th, .home-funding .tbl.compact td { padding: 7px 10px; }
.home-funding .tbl.compact { font-size: 14px; }
.home-funding .tbl-scroll { margin-bottom: 0; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; font-size: 14px; }
.home-referrals { display: grid; gap: 14px; }
.referral-row { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.referral-head, .referral-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.referral-head { min-height: 32px; }
.referral-head strong { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.exchange-logo { display: block; flex: none; width: 20px; height: 20px; object-fit: contain; }
.exchange-label { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; vertical-align: middle; line-height: 1.65; }
.exchange-label .exchange-logo { width: 14px; height: 14px; }
.coin-label { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; white-space: nowrap; }
.coin-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.coin-initial { font: 600 10px/1 var(--sans); }
.coin-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; background: var(--surface); }
.home-funding .coin-avatar { width: 20px; height: 20px; }
.home-funding .coin-label { gap: 6px; }
:root[data-theme="dark"] .exchange-logo-binance { filter: invert(1); }
.referral-head a { font-size: 12px; white-space: nowrap; padding-block: 6px; }
.referral-code { font-size: 12px; color: var(--muted); }
.referral-code code { margin-left: 6px; color: var(--text); font: 12px var(--mono); }
.referral-code .copy { min-height: 32px; min-width: 48px; padding: 5px 0 5px 8px; font-size: 12px; }
.quick-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.quick-tools a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; font-size: 13.5px; color: var(--brand); }
.quick-tools a:nth-child(n+3) { border-top: 1px solid var(--line); }
.quick-tools a:hover { color: var(--brand); background: var(--brand-soft); border-color: var(--brand); text-decoration: none; }
.quick-tools .icon { width: 18px; height: 18px; color: var(--brand); }
.home-types .types { gap: 0 40px; padding-top: 0; }
.home-types .tile { flex-direction: row; align-items: center; gap: 10px; padding: 16px 0; min-height: 58px; color: var(--brand); }
.home-types .tile b { justify-content: flex-start; gap: 10px; }
.home-types .tile > .icon { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.home-types .tile:hover { color: var(--brand); }
.home-main .lcard h3, .home-main .feed .t a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-main .feed .meta-row .type { display: none; }
.home-main .lcard .cd { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.home-main .section-head { margin-bottom: 0; }
.home-main .section-head h2 { font-size: 19px; }
.home-main .lcard { gap: 8px 20px; padding: 20px 0; }
.home-main .lcard h3 { font-size: 16px; line-height: 1.6; font-weight: 600; }
.home-main .lcard-meta { gap: 10px; }
.home-main .lcard .countdown-part > b { min-width: 26px; height: 27px; font-size: 13px; }
.home-main .lcard .countdown-sep { height: 27px; }
.home-main .feed li { padding: 18px 0; }
.home-main .feed .t a { font-size: 15px; line-height: 1.6; font-weight: 600; text-wrap: pretty; }
.home-main .feed .meta-row { margin-top: 5px; }
.home-main .feed .countdown { display: none; }
.home-main .feed .st { align-self: center; }
.stats { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.stats > span { display: inline-flex; align-items: baseline; gap: 6px; }
.stats b { color: var(--muted); font: 500 12px/1.65 var(--sans); font-variant-numeric: tabular-nums; }


/* Referral rows: normal text, unobtrusive buttons and clear disclosures. */
.ctas { display: grid; gap: 14px; }
.ctas-h { font-size: 15px; color: var(--text); margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.copy { border: 0; padding: 8px; min-width: 62px; min-height: 44px; border-radius: 4px; background: transparent; color: var(--brand); margin-left: auto; font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: 4px; background: var(--brand); color: var(--brand-ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.btn:hover { text-decoration: none; background: var(--brand-2); }
.btn.sm { font-size: 13px; padding: 9px 18px; }
.btn.ghost { border-color: var(--line-2); color: var(--brand); background: transparent; }
.btn.ghost:hover { background: var(--brand-soft); }
.disclosure { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.mark { display: inline; font-size: 13px; color: var(--muted); }

/* Activities use flat rows, with titles allowed to wrap naturally. */
.pill { font-size: 12.5px; line-height: 1.65; color: var(--muted); white-space: nowrap; }
.pill.live { color: var(--brand); }
.pill.soon { color: var(--warn); }
.ex, .type { font-size: 12.5px; color: var(--muted); }
.live-grid { display: grid; grid-template-columns: 1fr; }
.lcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.lcard:hover { text-decoration: none; }
.lcard h3 { margin: 0; font-size: 15.5px; line-height: 1.65; font-weight: 500; }
.lcard:hover h3 { color: var(--brand); }
.lcard-meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.activity-source { display: inline-flex; align-items: center; gap: 4px; line-height: 1.65; }
.lcard .cd { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.countdown { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--text); white-space: nowrap; vertical-align: middle; }
.countdown-header { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font: 11px/1.4 var(--sans); }
.countdown-header > .icon { width: 12px; height: 12px; }
.countdown-digits { display: inline-flex; align-items: flex-start; gap: 4px; }
.countdown-part { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.countdown-part > b { display: flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--text); font: 600 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.countdown .countdown-part > small { color: var(--muted); font: 10px/1.3 var(--sans); }
.countdown-sep { display: flex; align-items: center; height: 30px; color: var(--muted); font: 13px/1 var(--mono); }
.countdown [hidden] { display: none; }
.countdown.is-urgent .countdown-header { color: var(--warn); }
.countdown.is-urgent .countdown-part > b { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-soft); }
.countdown[data-phase="upcoming"] .countdown-header { color: var(--brand); }
.countdown[data-phase="upcoming"] .countdown-part > b { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-soft); }
.countdown.is-ended .countdown-digits { display: none; }
.spec .countdown { align-items: flex-start; }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: start; gap: 10px 16px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.feed time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed .t { min-width: 0; }
.feed .t a { display: block; color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.feed .t a:hover { color: var(--brand); text-decoration: none; }
.feed .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; line-height: 1.65; }
.feed .meta-row > .ex { display: inline-flex; align-items: center; line-height: 1.65; }
.feed .st { display: flex; flex-direction: column; align-items: end; gap: 6px; text-align: right; }
.feed .st small { color: var(--muted); font-size: 12px; }
.event-status { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 8px; }
.event-status a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.event-status a[aria-current] { color: var(--brand); border-color: var(--brand); font-weight: 500; }
.event-status a:hover { color: var(--brand); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--line); margin: 0 0 28px; }
.chips a { display: inline-flex; gap: 6px; align-items: baseline; padding: 10px 0; min-height: 44px; border-bottom: 2px solid transparent; font-size: 13.5px; color: var(--muted); }
.chips a:hover { color: var(--brand); text-decoration: none; }
.chips a[aria-current] { border-color: var(--brand); color: var(--brand); }
.chips small { font-size: 11px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; margin: 28px 0; }
.empty { margin: 0; padding: 24px 0; color: var(--muted); text-align: left; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; padding-top: 16px; }
.tile { display: flex; flex-direction: column; gap: 12px; color: var(--brand); }
.tile:hover { text-decoration: none; }
.tile:hover b { text-decoration: underline; text-underline-offset: 4px; }
.tile b { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; font-weight: 500; }
.tile b small { font-size: 12px; color: var(--muted); }
.tile span { color: var(--muted); font-size: 13px; }

/* Event facts and reading surfaces. */
.panel { padding: 0; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.how { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px; }
.how li { counter-increment: step; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; }
.how li::before { content: counter(step); color: var(--brand); font-size: 14px; }
.ev-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; }
.spec { display: block; margin: 26px 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--muted); }
.spec dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.bar { height: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.timeline { margin: 8px 0 36px; }
.timeline-l { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.notes { margin-top: 32px; }
.notes .src { color: var(--muted); font-size: 12px; }
.risk { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.links-inline { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.links-inline a { font-size: 14px; }
.prose { max-width: 820px; overflow-wrap: anywhere; }
.prose p, .prose li { color: var(--text); line-height: 1.85; }
.guide .prose { max-width: 68ch; font-size: 16px; }
.guide-sidebar { position: sticky; top: calc(var(--header-height) + 24px); gap: 24px; padding-top: 0; }
.article-toc h2 { font-size: 15px; margin: 0 0 12px; }
.outline-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc-desktop .outline-list { max-height: clamp(160px, calc(100dvh - 440px), 420px); overflow-y: auto; scrollbar-width: none; }
.toc-desktop .outline-list::-webkit-scrollbar { display: none; }
.outline-list a { display: block; padding: 7px 12px; border-left: 2px solid transparent; margin-left: -1px; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.outline-list .outline-sub a { padding-left: 24px; font-size: 12px; }
.outline-list a:hover { color: var(--brand); text-decoration: none; }
.outline-list a[aria-current="location"] { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.toc-mobile { display: none; }
.prose strong { font-weight: 600; color: var(--text); }
.prose h2 { margin: 40px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 14px; margin: 24px 0; }
.prose-table-scroll { margin: 24px 0; }
.prose .prose-table-scroll table { display: table; width: 100%; margin: 0; }
.prose th, .prose td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); font-size: 13px; font-weight: 500; color: var(--muted); }
.prose blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--line-2); }
.narrow { max-width: 800px; margin: 44px 0 110px; }
.faq details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 500; list-style: none; }
.faq summary:hover { color: var(--brand); }
.faq summary > .icon { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--muted); }
.faq details[open] summary > .icon { transform: rotate(180deg); color: var(--brand); }
.faq details p { margin: 8px 0 8px; color: var(--muted); max-width: 900px; }
.qa h3 { margin: 18px 0 4px; font-size: 15px; }
.qa p { margin: 0; color: var(--muted); max-width: 760px; }
.links, .side-links { list-style: none; }
.links { padding: 0; margin: 0; }
.links a { display: block; color: var(--brand); padding: 14px 0; border-bottom: 1px solid var(--line); }
.guide-links { max-width: 820px; margin: 36px 0 8px; }
.guide-links .eyebrow { margin-bottom: 4px; }
.guide-links .links a { padding: 11px 0; }

/* Tables: normal row dividers, restrained sign colors, scroll within the page. */
.tbl-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl td a { color: var(--text); font-weight: 500; }
.tbl td a:hover { color: var(--brand); }
.tbl small { color: var(--muted); font-size: 11px; }
.tbl.compact td, .tbl.compact th { padding: 12px; }
.sortable th[data-sort] { cursor: pointer; user-select: none; }
.sortable th[data-sort]:hover { color: var(--brand); }
.sortable th[aria-sort="ascending"]::after { content: " ↑"; color: var(--brand); }
.sortable th[aria-sort="descending"]::after { content: " ↓"; color: var(--brand); }
td.h3.pos { background: color-mix(in srgb, var(--pos) 4%, transparent); }
td.h3.neg { background: color-mix(in srgb, var(--neg) 4%, transparent); }
.tbl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 22px 0 12px; }
.funding-range { margin-left: auto; }
.page-heading { position: relative; padding-right: 190px; }
.page-heading .lead { margin-bottom: 0; }
.page-updated { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; position: absolute; right: 0; top: 8px; }
.page-updated .icon { width: 14px; height: 14px; }
.funding-method > summary { padding-inline: 8px; font-size: 12px; }
.funding-method .dropdown-panel { width: min(480px, calc(100vw - 40px)); padding: 18px; }
.funding-method .lead { font-size: 13px; line-height: 1.75; margin: 0; }
.funding-toolbar { gap: 10px 16px; margin: 18px 0 10px; }
.funding-table td { padding: 8px 10px; line-height: 1.55; }
.funding-table th { padding-inline: 10px; }
.funding-table .exchange-head th { text-align: center; padding-top: 7px; padding-bottom: 3px; color: var(--text); border-bottom: 0; }
.funding-exchange { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.funding-exchange .exchange-logo { width: 14px; height: 14px; }
.funding-table .exchange-head th:nth-child(n+3), .funding-table thead tr:last-child th:nth-child(4), .funding-table td:nth-child(5), .funding-table td:last-child { border-left: 1px solid var(--line); }
.funding-table .exchange-head th[rowspan] { text-align: left; border-bottom: 1px solid var(--line); }
.funding-table .exchange-head th.num { text-align: right; }
.funding-table thead tr:last-child th { padding-top: 3px; padding-bottom: 7px; }
.funding-table tbody tr:last-child td { border-bottom-color: var(--line-2); }
.funding-search { display: flex; align-items: center; gap: 8px; width: 430px; max-width: 100%; margin: 0; }
.funding-search .filter { flex: 1; min-width: 0; width: auto; }
.funding-search .btn { flex: none; padding-inline: 12px; }
.funding-search .btn .icon { width: 16px; height: 16px; }
.search-clear { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; font-size: 13px; white-space: nowrap; }
.funding-table th a { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; color: inherit; }
.funding-table th a:hover, .funding-table th[aria-sort] { color: var(--brand); }
.funding-table th .icon { width: 12px; height: 12px; }
.funding-table th[aria-sort="ascending"] .icon { transform: rotate(180deg); }
.pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.page-control { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); font-size: 13px; white-space: nowrap; }
.page-control:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.page-control.is-disabled { color: var(--muted); opacity: .45; }
.page-control .icon { width: 14px; height: 14px; }
.page-control.prev .icon { transform: rotate(90deg); }
.page-control.next .icon { transform: rotate(-90deg); }
.page-position { color: var(--muted); text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.page-numbers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.page-numbers a, .page-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; padding: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.page-numbers a { border: 1px solid transparent; border-radius: 4px; color: var(--muted); }
.page-numbers a:hover { color: var(--brand); background: var(--surface-2); text-decoration: none; }
.page-numbers a[aria-current] { border-color: var(--line); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.filter { width: min(320px, 100%); min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); }
#funding { min-width: 1000px; }
#funding .exchange-head th:first-child, #funding td:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
#funding .exchange-head th:first-child { background: var(--surface-2); z-index: 2; }
#funding td.h3.pos { background: color-mix(in srgb, var(--pos) 2%, transparent); }
#funding td.h3.neg { background: color-mix(in srgb, var(--neg) 2%, transparent); }
#funding tbody tr:hover td { background: var(--surface-2); }

/* Two exchange snapshots and the existing data chart. */
.funding-insight { margin-top: 16px; padding: 16px 20px; background: var(--surface-2); border-left: 2px solid var(--line-2); }
.funding-insight h3 { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.funding-insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 32px; }
.funding-insight h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.65; }
.funding-insight p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }
.funding-insight .funding-insight-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.rate-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin: 32px 0 48px; }
.rate-card h2 { font-size: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rate-card .big { font-size: 30px; line-height: 1.4; font-weight: 500; font-variant-numeric: tabular-nums; margin: 20px 0 28px; }
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; text-align: right; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.chart { margin: 32px 0 48px; }
.chart h2 { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chart svg { display: block; width: 100%; height: auto; }
.chart .legend { display: flex; gap: 24px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.chart .legend i { display: inline-block; width: 16px; height: 2px; vertical-align: middle; margin-right: 8px; }
.chart text { fill: var(--muted); font: 11px var(--sans); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .zero { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }

/* Calculators retain their actual fields and automatic results. */
.tool-page, .tool-workspace { max-width: 1040px; margin-inline: auto; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 48px; align-items: start; margin: 36px 0 40px; }
.calc-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start; }
.calc-in .full { grid-column: 1 / -1; }
.advanced-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px 0 0; }
.disclosure-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclosure-section > summary { display: flex; align-items: center; gap: 10px; list-style: none; min-height: 52px; padding: 12px 0; cursor: pointer; color: var(--muted); font-size: 14px; }
.disclosure-section > summary:hover { color: var(--brand); }
.disclosure-section > summary > .icon { width: 17px; height: 17px; }
.disclosure-section > summary > .icon:last-child { margin-left: auto; width: 14px; height: 14px; }
.disclosure-section[open] > summary > .icon:last-child { transform: rotate(180deg); }
.calc-advanced { border-bottom: 0; }
.calc-notes { max-width: 820px; margin-bottom: 40px; }
.calc-notes > .prose { padding-bottom: 12px; }
.calc-notes .prose h2:first-child { margin-top: 20px; }
.custom-select, .symbol-picker { position: relative; min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 13px; min-width: 0; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); text-align: left; font-size: 15px; }
.select-trigger:hover, .select-trigger[aria-expanded="true"] { border-color: var(--brand); }
.select-trigger .icon { width: 16px; height: 16px; color: var(--muted); }
.select-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.select-options { left: 0; right: auto; width: 100%; min-width: 0; max-height: 280px; overflow-y: auto; }
.select-options.is-above { top: auto; bottom: calc(100% + 8px); }
.select-options [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 10px 12px; background: transparent; border: 0; border-radius: 4px; color: var(--text); text-align: left; font-size: 14px; cursor: pointer; }
.select-options [role="option"]:hover, .select-options [data-active] { background: var(--surface-2); }
.select-options [aria-selected="true"] { color: var(--brand); background: var(--brand-soft); }
.select-options .icon { width: 16px; height: 16px; visibility: hidden; }
.select-options [aria-selected="true"] .icon { visibility: visible; }
.select-empty { color: var(--muted); padding: 10px 12px; margin: 0; font-size: 13px; }
.symbol-picker label { margin-bottom: 12px; }
.symbol-picker .select-options { font-variant-numeric: tabular-nums; }
.calc label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; }
.calc input:not([type=checkbox]):not([type=radio]) { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); padding: 10px 14px; font-size: 16px; font-variant-numeric: tabular-nums; }
.calc input:not([type=checkbox]):not([type=radio]):hover, .filter:hover { border-color: var(--muted); }
.calc input:not([type=checkbox]):not([type=radio]):focus-visible, .filter:focus-visible, .select-trigger:focus-visible { border-color: var(--brand); }
.calc label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); min-height: 44px; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
.seg { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend { font-size: 13px; color: var(--text); padding: 0; margin-bottom: 8px; }
.seg-opts { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.seg label { position: relative; justify-content: center; align-items: center; padding: 10px; border-radius: 3px; font-size: 14px; cursor: pointer; min-height: 38px; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--brand-soft); color: var(--brand); }
.seg label.short:has(input:checked) { background: var(--neg-soft); color: var(--neg); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.readout { display: block; min-width: 0; }
.readout h2 { font-size: 19px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.readout div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.readout div:last-child { padding-bottom: 18px; }
.readout span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.readout strong { display: block; color: var(--text); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout .primary strong { font-size: 28px; font-weight: 600; color: var(--brand); }
.readout[data-fees-out] strong { font-size: 24px; font-weight: 600; }
.readout strong.pos { color: var(--pos); }
.readout strong.neg { color: var(--neg); }
.readout small { display: inline-block; margin-top: 8px; }

/* Tools and guides are text lists instead of card grids. */
.card-grid { display: grid; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--brand); padding: 24px 0; border-bottom: 1px solid var(--line); }
.card:hover { text-decoration: none; }
.card:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.card strong { font-size: 16px; font-weight: 500; }
.card span { color: var(--muted); font-size: 14px; }
.tool-list .card { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 22px; align-items: center; padding: 22px 0; }
.tool-list .card > .icon:first-child { color: var(--brand); width: 24px; height: 24px; }
.tool-list .card > .icon:last-child { color: var(--muted); width: 16px; height: 16px; }
.tool-list strong, .tool-list span { display: block; }
.tool-list span { margin-top: 5px; }
.guide-link { display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; align-items: center; gap: 16px; min-height: 72px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.guide-link strong { font-size: 15.5px; font-weight: 500; }
.guide-link .icon { width: 18px; height: 18px; color: var(--muted); }
.guide-link .icon:last-child { width: 16px; height: 16px; }
.guide-link:hover { text-decoration: none; color: var(--brand); }
.guide-link:is(:hover, :focus-visible) > .icon, .tool-list .card:is(:hover, :focus-visible) > .icon:last-child, .home-types .tile:is(:hover, :focus-visible) > .icon { color: var(--brand); }
.guide h1 { font-size: 32px; margin-bottom: 28px; }

/* Existing administration forms and tables use the same visual foundations. */
.admin-form { display: grid; gap: 24px; max-width: 1000px; }
.admin-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.admin-form label { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 13px; }
.admin-form select, .admin-form textarea, .admin-form input { min-width: 0; min-height: 44px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 15px; }
.admin-form textarea { resize: vertical; font-family: var(--mono); font-size: 14px; line-height: 1.7; }
.admin-form input:focus-visible, .admin-form textarea:focus-visible { border-color: var(--brand); }
.admin-form button { justify-self: start; }
.admin-form.panel { padding: 24px 0; border-top: 1px solid var(--line); }
.ok { color: var(--pos); }
.statgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.statgrid b { display: block; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.statgrid span { font-size: 12.5px; color: var(--muted); }

/* Footer aligned to the same content width, with a quiet legal line. */
.foot { padding: 0 0 36px; color: var(--muted); font-size: 13px; margin-top: 36px; }
.foot > .wrap { padding-top: 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.foot .brand { margin-bottom: 8px; }
.foot h4 { font-size: 14px; font-weight: 500; color: var(--text); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot li a { display: inline-flex; align-items: center; min-height: 30px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--brand); }
.foot p { max-width: 430px; font-size: 12.5px; line-height: 1.8; margin: 0 0 16px; }
.foot-legal { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 12px; }

/* List countdowns: one quiet line instead of digit tiles, so long lists stay calm. */
.cd-text { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-text.is-urgent { color: var(--warn); font-weight: 500; }
.home-main .feed .cd-text { display: none; }

/* Event page: primary actions sit right under the facts. */
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 4px 0 8px; }
.ev-actions .btn .icon { width: 15px; height: 15px; }
.ev-action { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; font-size: 14px; }
.ev-action .icon { width: 16px; height: 16px; }
.ev-action:hover { text-decoration: none; color: var(--brand-2); }
@media (min-width: 1021px) { .side-sticky.is-pinned { position: sticky; top: calc(var(--header-height) + 24px); } }
.ev-cta-inline { display: none; }
@media (max-width: 1020px) {
  .ev-cta-inline { display: block; margin: 20px 0 8px; padding: 6px 16px 2px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 4px; }
  .ev-cta-inline .referral-row { border-bottom: 0; padding-bottom: 4px; }
  .ev-cta-inline .disclosure { padding-bottom: 10px; font-size: 11.5px; }
  .side-sticky.is-pinned > .panel:first-child { display: none; }
}

/* Type pages: live block and full list get their own headings. */
.list-head { min-height: 0; margin-bottom: 0; }
.list-head h2 { font-size: 17px; }
.side-h { font-size: 16px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

/* Coin page: numbers first, narrative second. */
.stat-row { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 28px; border-block: 1px solid var(--line); }
.stat-row > div { flex: 1 1 120px; padding: 14px 20px 14px 0; }
.stat-row > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-row dt { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.stat-row dd { margin: 0; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-row dt .exchange-logo { width: 13px; height: 13px; }
.coin-summary p { color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* Guides: grouped by topic, each entry carries its one-line summary. */
.guide-topics { margin-bottom: 8px; }
.guide-group { margin-top: 40px; scroll-margin-top: calc(var(--header-height) + 20px); }
.guide-group h2 { font-size: 18px; padding-bottom: 12px; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.guide-item { display: grid; gap: 6px; align-content: start; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.guide-item strong { font-size: 15px; font-weight: 500; line-height: 1.6; }
.guide-item span { color: var(--muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.guide-item:hover { text-decoration: none; }
.guide-item strong { transition: color 150ms ease; }
.guide-item:hover strong { color: var(--brand); }
.guide-more .guide-list, .home-guides .guide-list { margin-top: 0; }

/* Exchange page: the referral block is the page's main action. */
.ex-signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 32px; max-width: 760px; margin: 24px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 4px; background: var(--brand-soft); }
.ex-signup-main { display: grid; gap: 6px; min-width: 0; }
.ex-signup-label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.ex-signup-label .exchange-logo { width: 20px; height: 20px; }
.ex-signup-code { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.ex-signup-code code { color: var(--text); font: 600 15px var(--mono); letter-spacing: .04em; }
.ex-signup-code .copy { margin-left: 0; min-height: 32px; padding: 4px 10px; }
.ex-signup .btn .icon { width: 15px; height: 15px; }
.ex-signup .disclosure { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .wrap { width: calc(100% - 80px); }
  .top-in { gap: 24px; }
  .nav { gap: 16px; }
  .home-grid, .with-side { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .home-intro { gap: 32px; }
  .home-intro h1 { font-size: 36px; }
  .home-actions { column-gap: 16px; }
  .home-deadline-link { padding: 20px; }
  .home-deadline .countdown-digits { gap: 7px; }
  .home-deadline .countdown[data-phase] .countdown-part > b { min-width: 48px; padding-inline: 5px; font-size: 25px; }
  .calc { gap: 28px; }
}
@media (max-width: 1020px) {
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-top: 0; }
  .tools-r { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; display: grid; grid-template-columns: 1fr; gap: 0; padding: 12px 0; }
  .js .nav { position: absolute; top: 100%; left: 0; right: 0; padding: 12px 40px 20px; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px #14231b0c; }
  .js .nav:not(.is-open) { display: none; }
  .js .nav-toggle { display: inline-flex; }
  .nav > a { min-height: 48px; padding: 12px; border: 0; border-radius: 4px; }
  .nav > a[aria-current] { background: var(--brand-soft); }
  .nav-exchanges { display: block; }
  .nav-exchanges > summary { min-height: 48px; justify-content: space-between; padding: 12px; border: 0; border-radius: 4px; }
  .nav-exchanges > summary.is-current { background: var(--brand-soft); }
  .exchange-menu { position: static; width: 100%; min-width: 0; margin-top: 2px; padding: 0 12px 8px; border: 0; border-radius: 0; box-shadow: none; }
  .exchange-menu a { border-left: 1px solid var(--line); }
  .home-grid, .with-side, .cols { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .home-side { padding-top: 0; padding-left: 0; border-left: 0; }
  .home-intro.has-deadline { grid-template-columns: 1fr; }
  .home-deadline { display: none; }
  .home-intro.has-deadline + .home-grid .home-ending-row { display: grid; }
  .home-main .live-grid > :nth-child(n+4) { display: none; }
  .home-main .home-ending-row { background: var(--brand-soft); border-left: 3px solid var(--brand); padding-inline: 16px; }
  .home-ending-head { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 2px; }
  .home-ending-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 12px; font-weight: 500; }
  .home-ending-head .icon { width: 16px; height: 16px; }
  .home-main .home-ending-row.is-ended { background: transparent; border-left-color: var(--line); }
  .home-ending-row.is-ended .home-ending-head > span:first-child { color: var(--muted); }
  .home-side .tbl-scroll { max-width: 600px; }
  .side-sticky { padding-top: 0; }
  .guide-sidebar { position: static; max-height: none; overflow: visible; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; margin: 0 0 28px; border-block: 1px solid var(--line); }
  .toc-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
  .toc-mobile summary .icon { width: 16px; height: 16px; color: var(--muted); }
  .toc-mobile[open] summary .icon { transform: rotate(180deg); }
  .toc-mobile nav { padding-bottom: 12px; }
  .toc-mobile .outline-list a { min-height: 44px; display: flex; align-items: center; }
  .types { gap: 24px; }
  .stats { gap: 16px; }
  .statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* 平板宽度：高亮的最近截止活动按"标签 / 标题 / 来源"三行排列，倒计时固定在右侧 */
@media (min-width: 761px) and (max-width: 1020px) {
  .home-main .home-ending-row .home-ending-head { grid-column: 1 / -1; grid-row: 1; }
  .home-main .home-ending-row h3 { grid-column: 1; grid-row: 2; }
  .home-main .home-ending-row .lcard-meta { grid-column: 1; grid-row: 3; }
  .home-main .home-ending-row .cd { grid-column: 2; grid-row: 2 / 4; }
  .home-main .home-ending-row .countdown-header { display: none; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .brand-art { width: 88px; }
  main.wrap { padding-top: 30px; padding-bottom: 24px; }
  h1 { font-size: 25px; line-height: 1.4; }
  h2 { font-size: 19px; }
  .js .nav { padding-inline: 20px; }
  .crumbs { flex-wrap: nowrap; }
  .crumbs > a { flex: none; white-space: nowrap; }
  .crumbs > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav > a, .nav-exchanges > summary { font-size: 15px; }
  .language-dropdown summary { width: 36px; gap: 0; padding: 8px; }
  .language-dropdown summary > span, .language-dropdown summary > .icon:last-child { display: none; }
  .language-dropdown summary > .icon:first-child { display: block; }
  .tools-r { gap: 2px; }
  .theme { width: 36px; }
  .header-search { width: 36px; }
  .referral-head a { min-height: 44px; display: inline-flex; align-items: center; }
  .referral-code .copy { min-height: 44px; }
  .section { margin-top: 38px; }
  .section-head { gap: 12px; }
  .more { min-height: 44px; }
  .home-intro { padding-bottom: 24px; margin-bottom: 16px; }
  .home-side { gap: 32px; }
  .home-main .live-grid > :nth-child(n+4), .home-main .feed > :nth-child(n+4) { display: none; }
  .home-main .feed time, .home-main .feed .st { display: none; }
  .home-intro { display: block; }
  .home-kicker { font-size: 12px; margin-bottom: 12px; }
  .home-intro h1 { font-size: 28px; margin-bottom: 12px; }
  .home-intro .lead { font-size: 15px; margin-bottom: 20px; }
  .home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .home-primary { grid-column: 1 / -1; }
  .home-action { font-size: 14px; }
  .home-main .stats { gap: 14px; }
  .home-main .stats > span:last-child { display: none; }
  .quick-tools { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .home-side .section-head h2 { font-size: 17px; }
  .home-side .home-referrals, .home-side tbody > :nth-child(n+4) { display: none; }
  .home-types .types { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .home-types .tile { min-height: 52px; }
  .home-types .tile b { font-size: 14px; font-weight: 400; }
  .home-types .tile span, .home-types .tile small { display: none; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .lcard { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .lcard .cd { grid-column: 1; grid-row: auto; padding: 4px 0 0; text-align: left; }
  .lcard .countdown { flex-direction: row; align-items: center; gap: 12px; }
  .lcard .countdown-header { min-width: 62px; }
  .home-main .lcard { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .home-main .lcard { padding-block: 16px; }
  .home-main .lcard h3 { grid-column: 1 / -1; }
  .home-main .lcard-meta { min-width: 0; gap: 8px; }
  .home-main .lcard .cd { grid-column: 2; grid-row: auto; padding-top: 0; text-align: right; font-size: 12px; }
  .home-main .lcard-meta { grid-column: 1; align-self: center; }
  .home-main .lcard .countdown { flex-direction: column; align-items: flex-end; gap: 5px; }
  .home-main .lcard .countdown-header { min-width: 0; }
  .home-ending-row .countdown-header { display: none; }
  .home-main .home-ending-row .countdown-part > b { color: var(--text); background: var(--bg); border-color: var(--line); }
  .feed li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .feed .st { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 14px; text-align: left; }
  .chips { gap: 4px 20px; }
  .spec div { grid-template-columns: 90px minmax(0, 1fr); gap: 16px; }
  .spec .countdown-part > b { min-width: 26px; height: 28px; font-size: 14px; }
  .spec .countdown-sep { height: 28px; }
  .rate-cards { grid-template-columns: 1fr; gap: 40px; }
  .rate-card .big { font-size: 28px; }
  .page-heading { padding-right: 0; }
  .page-updated { position: static; margin-top: 10px; }
  .funding-search { width: 100%; }
  .tbl-tools { column-gap: 8px; row-gap: 8px; }
  .funding-range { font-size: 11px; }
  .funding-table .exchange-head th[colspan] { text-align: left; }
  .funding-method .dropdown-panel { position: static; width: 100%; margin-top: 8px; }
  .funding-method[open] { flex: 1 0 100%; }
  .calc { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .calc-in { gap: 18px; }
  .advanced-fields { grid-template-columns: 1fr; }
  .tool-list .card { gap: 14px; }
  .readout { padding-top: 20px; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .guide-list { grid-template-columns: 1fr; }
  .ex-signup { grid-template-columns: 1fr; padding: 18px; }
  .ex-signup .btn { justify-self: start; }
  .stat-row > div { flex-basis: 33%; padding: 12px 12px 12px 0; }
  .stat-row > div + div { padding-left: 12px; }
  .stat-row > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat-row dd { font-size: 17px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .foot > .wrap { padding-top: 32px; }
  .foot li a { min-height: 44px; }
  .prose th, .prose td { padding: 12px; }
}
@media (max-width: 460px) {
  .calc-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-in label { justify-content: flex-end; }
  .types { grid-template-columns: 1fr; gap: 26px; }
  .statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-l { font-size: 11px; }
}
@media (max-width: 380px) {
  .calc-in { grid-template-columns: 1fr; }
  .top-in { gap: 0 4px; }
  .tools-r { gap: 0; }
  .theme { width: 32px; }
  .header-search { width: 32px; }
  .nav-toggle { width: 36px; }
  .brand-art { width: 80px; }
  .home-intro h1 { font-size: 26px; }
  .home-main .lcard-meta { grid-column: 1 / -1; }
  .home-main .lcard .cd { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .home-main .lcard .countdown { flex-direction: row; align-items: center; gap: 10px; }
}
/* Deliberate, short feedback; content itself stays still. */
::selection { background: var(--brand-soft); color: var(--text); }
.skip-link { position: absolute; top: 8px; left: 20px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: var(--brand); color: var(--brand-ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:where(a, button, summary, input, .seg label) { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
:where(.more > .icon, .guide-link > .icon:last-child, .tool-list .card > .icon:last-child, .home-types .tile > .icon) { transition: transform 180ms ease, color 150ms ease; }
.more:hover > .icon { transform: translateX(3px) rotate(-90deg); }
:where(.guide-link, .tool-list .card, .home-types .tile):hover > .icon:last-child { transform: translate(2px, -2px); }
.disclosure-section > summary > .icon:last-child, .select-trigger .icon { transition: transform 180ms ease; }
.dropdown[open] > .dropdown-panel, .select-options:not([hidden]), .js .nav.is-open { animation: panel-enter 160ms ease-out both; }
@keyframes panel-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.copy:hover, .copy[data-state="done"] { background: var(--brand-soft); }
.copy[data-state="failed"] { color: var(--neg); }
.copy:disabled { cursor: wait; opacity: .6; }
.theme[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.calc-feedback { margin: 16px 0 0; color: var(--neg); font-size: 13px; }
.readout.is-incomplete { border-top-color: var(--line-2); }
.readout.is-incomplete .primary strong { color: var(--muted); }
.calc input[aria-invalid="true"] { border-color: var(--neg); }
.tbl-scroll:focus-visible { outline-offset: 4px; }
#funding td:first-child { box-shadow: 1px 0 var(--line); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 站内搜索框 */
.search-form { display: flex; gap: 8px; margin: 12px 0 20px; max-width: 520px; }
.search-form .filter { flex: 1; width: auto; min-width: 0; }
