/* CoinWarz site styles (non-critical, loaded async).
   Critical above-the-fold styles are inlined in _Layout.cshtml. */

/* ---------- Theme tokens (mirror _Layout.cshtml for async CSS) ---------- */
:root, [data-theme="dark"] {
    --header-bg: rgba(11, 14, 20, .92);
    --shadow: rgba(0, 0, 0, .28);
    --shadow-strong: rgba(0, 0, 0, .35);
    --spotlight-bg-end: rgba(28, 34, 48, .6);
    --accent-tint: rgba(247, 147, 26, .12);
    --accent-tint-strong: rgba(247, 147, 26, .15);
    --accent-border: rgba(247, 147, 26, .4);
    --accent-border-soft: rgba(247, 147, 26, .45);
    --accent-glow: rgba(247, 147, 26, .12);
    --accent-glow-strong: rgba(247, 147, 26, .3);
    --chart-grid: rgba(40, 48, 68, .9);
    --rank-silver: #b0b8c8;
    --rank-bronze: #c68a4a;
    --scroll-thumb: rgba(151, 160, 181, .35);
    --scroll-thumb-hover: rgba(151, 160, 181, .55);
    --scroll-fade: var(--surface);
}
[data-theme="light"] {
    --header-bg: rgba(245, 247, 251, .94);
    --shadow: rgba(20, 25, 37, .1);
    --shadow-strong: rgba(20, 25, 37, .16);
    --spotlight-bg-end: rgba(238, 241, 247, .92);
    --accent-tint: rgba(232, 133, 15, .1);
    --accent-tint-strong: rgba(232, 133, 15, .14);
    --accent-border: rgba(232, 133, 15, .35);
    --accent-border-soft: rgba(232, 133, 15, .4);
    --accent-glow: rgba(232, 133, 15, .1);
    --accent-glow-strong: rgba(232, 133, 15, .22);
    --chart-grid: rgba(212, 218, 230, .95);
    --rank-silver: #8a93a8;
    --rank-bronze: #a87238;
    --scroll-thumb: rgba(92, 101, 120, .35);
    --scroll-thumb-hover: rgba(92, 101, 120, .55);
    --scroll-fade: var(--surface);
}

.theme-toggle:focus-visible, .nav-toggle:focus-visible, .nav-search__toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Header coin search ---------- */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search__toggle { flex-shrink: 0; }
.nav-search__panel {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; right: 0; top: calc(100% + .45rem); z-index: 80;
    width: min(22rem, calc(100vw - 2rem));
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-search.is-open .nav-search__panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-search__input {
    width: 100%; padding: .62rem .85rem; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text); font: inherit; font-size: .9rem;
    box-shadow: 0 10px 28px var(--shadow-strong);
}
.nav-search__input::placeholder { color: var(--muted); }
.nav-search__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.nav-search__results {
    margin-top: .35rem; max-height: min(60vh, 22rem); overflow: auto;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
    box-shadow: 0 12px 32px var(--shadow-strong);
}
.nav-search__empty { margin: 0; padding: .85rem 1rem; font-size: .84rem; }
.nav-search__group { padding: .65rem .85rem .7rem; border-top: 1px solid var(--border); }
.nav-search__group:first-child { border-top: 0; }
.nav-search__coin { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .35rem; }
.nav-search__sym {
    font-size: .78rem; font-weight: 800; color: var(--accent); letter-spacing: .03em;
    padding: .12rem .4rem; border-radius: 999px; background: var(--accent-tint); border: 1px solid var(--accent-border-soft);
}
.nav-search__name { font-size: .88rem; font-weight: 700; color: var(--text); }
.nav-search__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .12rem; }
.nav-search__link {
    display: block; padding: .32rem .45rem; border-radius: 7px; font-size: .82rem; font-weight: 600;
    color: var(--muted); text-decoration: none;
}
.nav-search__link:hover, .nav-search__link:focus-visible {
    color: var(--accent-2); background: var(--surface-2); text-decoration: none; outline: none;
}
@media (max-width: 899px) {
    /* Anchor dropdown to full header bar — toggle sits left of theme/menu buttons,
       so a viewport-wide panel positioned from the toggle overflows off-screen left. */
    .nav-search { position: static; }
    .nav-search__panel {
        left: 0; right: 0; width: auto;
        top: calc(100% + .45rem);
    }
}
@media (min-width: 900px) {
    .nav-search.is-open .nav-search__toggle { border-color: var(--accent); color: var(--accent); }
}

/* ---------- Site header & primary nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header .wrap { position: relative; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; }

@media (max-width: 899px) {
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
        background: var(--header-bg); border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 28px var(--shadow);
        backdrop-filter: blur(10px);
    }
    .main-nav.open { padding: .65rem 1rem 1rem; }
    .nav-list { display: grid; gap: .15rem; }
    .nav-sep { display: none; }
    .nav-dropdown__menu { padding: .15rem 0 .15rem .75rem; }
    .nav-dropdown__menu .nav-link { font-size: .86rem; padding-left: .85rem; }
    .nav-link--summary { list-style: none; }
    .nav-link--summary::-webkit-details-marker { display: none; }
    .nav-link--summary::after {
        content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .35rem;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-1px); opacity: .65; transition: transform .15s ease;
    }
    .nav-dropdown[open] > .nav-link--summary::after { transform: rotate(-135deg) translateY(1px); }
}

@media (min-width: 900px) {
    .nav-list {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
        gap: .1rem .05rem;
    }
    .nav-sep {
        width: 1px; height: 1.1rem; margin: 0 .2rem; background: var(--border); align-self: center;
    }
    .nav-group { position: relative; }
    .nav-dropdown { position: relative; }
    .nav-link--summary {
        list-style: none; cursor: pointer; user-select: none;
    }
    .nav-link--summary::-webkit-details-marker { display: none; }
    .nav-link--summary::after {
        content: ""; display: inline-block; width: .4rem; height: .4rem; margin-left: .3rem;
        border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-1px); opacity: .55; transition: transform .15s ease;
    }
    .nav-dropdown[open] > .nav-link--summary::after { transform: rotate(-135deg) translateY(1px); }
    .nav-dropdown.is-active > .nav-link--summary { color: var(--accent); background: var(--accent-tint); }
    .nav-dropdown__menu {
        list-style: none; margin: 0; padding: .35rem; min-width: 10.5rem;
        position: absolute; top: calc(100% + .35rem); left: 0; z-index: 70;
        background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
        box-shadow: 0 10px 28px var(--shadow-strong);
        display: none; gap: .1rem;
    }
    .nav-dropdown[open] .nav-dropdown__menu,
    .nav-dropdown:hover .nav-dropdown__menu,
    .nav-dropdown:focus-within .nav-dropdown__menu { display: grid; }
    .nav-dropdown.nav-dropdown--hover-lock:hover .nav-dropdown__menu { display: none; }
    .nav-dropdown__menu .nav-link { font-size: .84rem; }
}

.nav-link--summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

body.nav-open { overflow: hidden; }

/* ---------- Coin nav strip (header) ---------- */
.coin-strip-wrap {
    overflow: hidden;
    padding: .2rem 0 .65rem;
}
.coin-strip {
    display: flex; flex-wrap: nowrap; align-items: stretch; gap: .35rem;
    width: 100%; max-width: 100%; padding: .1rem 0;
}
.coin-chip {
    flex-shrink: 0;
    display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
    padding: .35rem .55rem; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); min-width: 4.5rem; text-align: center;
}
.coin-chip[hidden] { display: none !important; }
.coin-chip:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }
.coin-chip.is-active { border-color: var(--accent); background: var(--accent-tint); }
.coin-chip.is-active .coin-chip__sym { color: var(--accent); }
.coin-chip--more {
    min-width: 3.75rem; border-style: dashed; border-color: var(--accent-border-soft);
    background: var(--surface-2); justify-content: center;
}
.coin-chip--more:hover { background: var(--accent-tint); border-color: var(--accent); text-decoration: none; }
.coin-chip--more.is-active {
    border-style: solid; border-color: var(--accent); background: var(--accent-tint);
}
.coin-chip--more.is-active .coin-chip__sym { color: var(--accent); }
.coin-chip__sym { font-size: .82rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.coin-chip__price, .coin-chip__count {
    font-size: .72rem; font-weight: 700; color: var(--accent-2);
    font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap;
}
.coin-chip__count { color: var(--muted); }
.coin-chip--more:hover .coin-chip__count, .coin-chip--more.is-active .coin-chip__count { color: var(--accent-2); }

@media (max-width: 899px) {
    .coin-strip { gap: .25rem; }
    .coin-chip { min-width: 3.35rem; padding: .28rem .35rem; }
    .coin-chip--more { min-width: 2.85rem; padding: .28rem .35rem; }
    .coin-chip__sym { font-size: .74rem; }
    .coin-chip__price, .coin-chip__count { font-size: .64rem; }
}
.section { margin: 0 0 2rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.muted { color: var(--muted); }
.text-pos { color: var(--pos); }
.text-neg { color: var(--neg); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

@media (min-width: 680px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 0 .5rem; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.chart-links { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Home hero panel ---------- */
.home-hero {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(130% 130% at 100% 0%, rgba(247, 147, 26, .16), transparent 55%),
        linear-gradient(180deg, var(--surface), var(--surface-2));
    overflow: hidden;
}
.home-hero .eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .9rem;
    padding: .3rem .7rem; border-radius: 999px; background: var(--accent-tint);
    color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.home-hero h1 { max-width: 20ch; margin: 0 0 .75rem; }
.home-hero .lead { color: var(--muted); font-size: 1.08rem; line-height: 1.6; max-width: 64ch; margin: 0 0 1.4rem; }
.home-hero .lead strong { color: var(--text); }
.accent-text { color: var(--accent); }

/* Hero two-column layout with Profit-per-Watt spotlight */
.home-hero__grid { display: grid; gap: 1.5rem; align-items: stretch; grid-template-columns: 1fr; }
@media (min-width: 880px) { .home-hero__grid { grid-template-columns: 1.5fr 1fr; } }
.home-hero__main { display: flex; flex-direction: column; }
.home-hero__main .hero-actions { margin-top: auto; }

.home-hero__spotlight { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem;
    border-radius: 14px; border: 1px solid var(--accent-border); color: var(--text);
    background: linear-gradient(165deg, rgba(247, 147, 26, .14), var(--spotlight-bg-end));
    box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 36px var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease; }
.home-hero__spotlight:hover { text-decoration: none; transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--accent-glow-strong), 0 16px 44px var(--shadow-strong); }
.spotlight-badge { align-self: flex-start; padding: .2rem .6rem; border-radius: 999px;
    background: var(--accent); color: #1a1205; font-size: .72rem; font-weight: 800;
    letter-spacing: .03em; text-transform: uppercase; }
.spotlight-name { margin-top: .5rem; font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.spotlight-maker { color: var(--muted); font-size: .85rem; }
.spotlight-ppw { display: flex; align-items: baseline; gap: .25rem; margin: .5rem 0;
    font-size: 2rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.spotlight-ppw__unit { font-size: .9rem; font-weight: 700; color: var(--muted); }
.spotlight-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
    padding-top: .75rem; border-top: 1px solid var(--border); }
.spotlight-meta .k { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.spotlight-meta .v { font-weight: 700; font-size: .95rem; }
.spotlight-cta { margin-top: .85rem; color: var(--accent-2); font-size: .85rem; font-weight: 700; }

/* Profit-per-Watt comparison explainer */
.ppw-section__foot {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
    gap: .75rem 1.25rem; margin-top: 1.25rem;
}
.ppw-section__link { white-space: nowrap; }
.ppw-compare {
    display: grid; gap: 1rem; align-items: stretch; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .ppw-compare { grid-template-columns: 1fr auto 1fr; gap: 1.15rem; } }
.ppw-compare__card {
    padding: 1.15rem 1.2rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface); display: flex; flex-direction: column; gap: .75rem;
}
.ppw-compare__card--win {
    border-color: var(--accent-border);
    background: linear-gradient(165deg, rgba(247, 147, 26, .1), var(--surface));
    box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 32px var(--shadow);
}
.ppw-compare__header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.ppw-compare__tag {
    color: var(--text); font-size: .82rem; font-weight: 800; letter-spacing: .02em;
}
.ppw-compare__tag--win { color: var(--accent); }
.ppw-compare__role {
    padding: .15rem .5rem; border-radius: 999px; background: var(--surface-2);
    color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.ppw-compare__role--win {
    background: var(--accent-tint); color: var(--accent);
}
.ppw-compare__profit-match {
    display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
    padding: .55rem .7rem; border-radius: 10px; border: 1px dashed var(--border); background: var(--surface-2);
}
.ppw-compare__profit-match--win { border-color: var(--accent-border-soft); background: rgba(247, 147, 26, .08); }
.ppw-compare__profit-match-label { color: var(--muted); font-size: .78rem; font-weight: 600; }
.ppw-compare__profit-match-value { font-size: .95rem; font-weight: 800; color: var(--text); }
.ppw-compare__facts { margin: 0; display: grid; gap: .45rem; }
.ppw-compare__fact { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.ppw-compare__fact dt { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 600; }
.ppw-compare__fact dd { margin: 0; font-size: .92rem; font-weight: 800; color: var(--text); }
.ppw-compare__hero-metric {
    display: flex; flex-direction: column; gap: .2rem; padding: .7rem .75rem; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface-2);
}
.ppw-compare__hero-metric--win {
    border-color: var(--accent-border); background: var(--accent-tint);
}
.ppw-compare__hero-label {
    color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.ppw-compare__hero-value { font-size: 1.15rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.ppw-compare__hero-metric--win .ppw-compare__hero-value { color: var(--accent); }
.ppw-compare__hero-unit { font-size: .78rem; font-weight: 700; color: var(--muted); margin-left: .15rem; }
.ppw-compare__hero-metric--win .ppw-compare__hero-unit { color: var(--accent-2); opacity: .85; }
.ppw-compare__meter { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; }
.ppw-compare__meter-label {
    display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
    color: var(--muted); font-size: .74rem; font-weight: 600;
}
.ppw-compare__bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.ppw-compare__bar span { display: block; height: 100%; border-radius: inherit; background: var(--muted); opacity: .55; }
.ppw-compare__bar--win span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 1; }
.ppw-compare__vs { display: grid; place-items: center; padding: .25rem 0; }
.ppw-compare__vs-ring {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--muted); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
}
.ppw-compare__win-flag {
    align-self: flex-start; padding: .22rem .6rem; border-radius: 999px;
    background: var(--accent-tint-strong); color: var(--accent); font-size: .72rem; font-weight: 800;
    letter-spacing: .02em;
}
.ppw-compare__note { margin: 0; max-width: 62ch; line-height: 1.6; }
.leaderboard .ppw { color: var(--accent); font-weight: 800; }

/* ---------- Home leaderboard ---------- */
.home-leaderboard .section-head--leaderboard {
    align-items: end;
}
.home-leaderboard .section-head__main { min-width: 0; }
.home-leaderboard .section-head__main .eyebrow {
    display: inline-flex; padding: .3rem .7rem; border-radius: 999px;
    background: var(--accent-tint); color: var(--accent); font-size: .76rem; font-weight: 700;
    letter-spacing: .03em;
}
.home-leaderboard__cta { flex-shrink: 0; white-space: nowrap; }
.home-leaderboard__panel {
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    background: var(--surface); box-shadow: 0 8px 24px var(--shadow);
}
.home-leaderboard__table { min-width: 680px; margin: 0; }
.home-leaderboard__table thead th {
    position: sticky; top: 0; z-index: 1; background: var(--surface-2);
}
.home-leaderboard__table .rank { width: 3rem; text-align: center; }
.home-leaderboard__table th:nth-child(2),
.home-leaderboard__table .hw-name { text-align: left; }
.home-leaderboard__table tbody tr:last-child td { border-bottom: none; }
@media (max-width: 599px) {
    .home-leaderboard .section-head--leaderboard { grid-template-columns: 1fr; }
    .home-leaderboard__cta { grid-column: 1; grid-row: auto; width: 100%; }
}

/* ---------- Miners page ---------- */
.miners-hero .eyebrow { display: inline-flex; margin: 0 0 .75rem; padding: .3rem .7rem; border-radius: 999px;
    background: var(--accent-tint); color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.miners-lead { max-width: 68ch; margin: 0 0 1.25rem; line-height: 1.6; }
.miners-lead strong { color: var(--text); }

.miners-filter { padding: 1.1rem 1.2rem; margin-top: .5rem; }
.miners-filter__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .miners-filter__grid { grid-template-columns: 1fr minmax(180px, 220px) auto; } }
.miners-filter__submit { display: flex; align-items: flex-end; }
.miners-filter .preset-row { margin: .85rem 0 0; padding-top: .85rem; border-top: 1px solid var(--border); }
.miners-filter .preset-label { color: var(--muted); font-size: .78rem; font-weight: 600; margin-right: .25rem; }
.preset-btn.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }

.miners-spotlight { display: block; padding: 1.25rem; border-radius: 14px;
    border: 1px solid var(--accent-border); color: var(--text); text-decoration: none;
    background: linear-gradient(165deg, rgba(247, 147, 26, .14), var(--spotlight-bg-end));
    box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 36px var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease; }
.miners-spotlight:hover { text-decoration: none; transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--accent-glow-strong), 0 16px 44px var(--shadow-strong); }
.miners-spotlight__grid { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 560px) {
    .miners-spotlight--has-image .miners-spotlight__grid {
        display: grid; grid-template-columns: auto 1fr; align-items: stretch; gap: 1.25rem;
    }
}
.miners-spotlight__media { display: flex; align-items: stretch; justify-content: center; min-height: 0; }
.miners-spotlight__content { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.miners-spotlight__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
    border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 560px) {
    .miners-spotlight--has-image .miners-spotlight__img {
        width: auto; height: 100%; max-width: 220px; aspect-ratio: unset; object-fit: contain;
    }
}

.miners-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem;
    color: var(--muted); font-size: .88rem; }
.miners-summary__dot { opacity: .5; }

.miners-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.miners-table { min-width: 720px; margin: 0; }
.miners-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.miners-table .ppw { color: var(--accent); font-weight: 800; }
.miners-table .miners-coin { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.miners-table .miners-actions { text-align: right; }

.miners-row--gold { background: var(--accent-tint); }
.miners-row--silver { background: rgba(192, 192, 192, .08); }
[data-theme="light"] .miners-row--silver { background: rgba(138, 147, 168, .1); }
.miners-row--bronze { background: rgba(205, 127, 50, .08); }
[data-theme="light"] .miners-row--bronze { background: rgba(168, 114, 56, .1); }

.rank-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
    font-size: .78rem; font-weight: 800; line-height: 1; }
.rank-badge--1 { background: var(--accent); color: #1a1205; }
.rank-badge--2 { background: var(--rank-silver); color: #1a1205; }
.rank-badge--3 { background: var(--rank-bronze); color: #1a1205; }

.btn-sm { padding: .35rem .65rem; font-size: .78rem; border-radius: 8px; }

/* ---------- Home news & learn ---------- */
.home-editorial__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .home-editorial__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.home-editorial__col .section-head h3 { font-size: 1.25rem; }
.home-editorial__feed { display: grid; gap: .75rem; }
.home-editorial__posts { display: grid; gap: .85rem; }
.home-feed-item { padding: .9rem 1rem; }
.home-feed-item h4 { font-size: 1rem; margin: 0; line-height: 1.35; }
.home-feed-item h4 a { color: var(--text); }
.home-feed-item h4 a:hover { color: var(--accent-2); }
.home-learn-item { display: flex; flex-direction: column; gap: .4rem; padding: .9rem 1rem; }
.home-learn-item:hover { border-color: var(--accent); }
.home-learn-item h4 { font-size: 1rem; margin: 0; line-height: 1.35; }
.home-learn-item h4 a { color: var(--text); }
.home-learn-item h4 a:hover { color: var(--accent-2); }
.home-learn-item .excerpt { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.hero-stats { display: grid; gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem;
    border-top: 1px solid var(--border); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat { display: flex; flex-direction: column; gap: .2rem; }
.hero-stat .k { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.hero-stat .v { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero-stat .v.accent { color: var(--accent); }
.hero-stat .s { color: var(--muted); font-size: .76rem; }
.hero-stat--link { text-decoration: none; color: inherit; padding: .85rem .9rem; transition: border-color .15s ease, transform .15s ease; }
.hero-stat--link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.hero-stat--link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Section headers ---------- */
.section-head {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 1.25rem; row-gap: .5rem; align-items: end; margin: 0 0 1rem;
}
.section-head > h2,
.section-head > h3 { margin: 0; grid-column: 1; grid-row: 1; }
.section-head > .lead-sub {
    margin: 0; grid-column: 1; grid-row: 2;
    color: var(--muted); font-size: .92rem; max-width: 72ch;
}
.section-head__main {
    grid-column: 1; grid-row: 1 / -1; display: flex; flex-direction: column;
    align-items: flex-start; gap: .5rem; min-width: 0;
}
.section-head__main h2,
.section-head__main h3,
.section-head__main .lead-sub { margin: 0; }
.section-head__main .lead-sub { color: var(--muted); font-size: .92rem; max-width: 72ch; }
.section-head > .more,
.section-head > .btn,
.section-head > a.btn { grid-column: 2; grid-row: 1 / -1; align-self: end; }
.section-head .more { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.section-foot { margin: 1rem 0 0; text-align: right; }
.section-foot .more { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* ---------- Feature navigation tiles ---------- */
.feature-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.feature-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow); }
.feature-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
    background: var(--accent-tint); color: var(--accent); }
.feature-ico svg { width: 22px; height: 22px; }
.feature-card h3 { margin: .2rem 0 0; font-size: 1.05rem; color: var(--text); }
.feature-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.feature-card .cta { margin-top: auto; padding-top: .4rem; color: var(--accent-2); font-size: .85rem; font-weight: 700; }

/* ---------- How-it-works steps ---------- */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem;
    grid-template-columns: 1fr; }
@media (min-width: 620px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-card .step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
    background: var(--accent); color: #1a1205; font-weight: 800; font-size: .82rem; margin-bottom: .6rem; }
.step-card strong { display: block; margin-bottom: .3rem; color: var(--text); }
.step-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* ---------- Metric cards ---------- */
.metric { display: flex; flex-direction: column; gap: .25rem; }
.metric .label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.metric .value { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.metric .sub { color: var(--muted); font-size: .85rem; }

/* The headline Profit-per-Watt "WOW" metric. */
.metric-ppw { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-glow-strong), 0 8px 30px var(--accent-tint); }
.metric-ppw .value { color: var(--accent); }
.badge-ppw { display: inline-block; padding: .15rem .5rem; border-radius: 999px;
    background: var(--accent-tint-strong); color: var(--accent); font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Coin grid (home) ---------- */
.coin-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .coin-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .coin-grid { grid-template-columns: repeat(5, 1fr); } }
.coin-card { display: flex; flex-direction: column; gap: .35rem; padding: .9rem; }
.coin-card:hover { border-color: var(--accent); text-decoration: none; }
.coin-card .sym { font-weight: 800; color: var(--text); }
.coin-card .nm { color: var(--muted); font-size: .82rem; }
.coin-card .price { font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.coins-page__meta { margin: -.5rem 0 1rem; font-size: .9rem; }

/* ---------- Tool catalog pages (calculators / charts) ---------- */
.catalog-hero { padding-bottom: .25rem; }
.catalog-hero__lead { max-width: 62ch; margin: .65rem 0 0; font-size: .98rem; line-height: 1.6; }
.catalog-hero__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.catalog-pill {
    display: inline-flex; align-items: center; padding: .28rem .65rem; border-radius: 999px;
    border: 1px solid var(--accent-border); background: var(--accent-tint); color: var(--accent);
    font-size: .78rem; font-weight: 800; letter-spacing: .02em;
}
.catalog-pill--muted { border-color: var(--border); background: var(--surface-2); color: var(--muted); }
.catalog-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
    margin-top: .75rem; margin-bottom: 1.25rem;
    padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.catalog-search {
    display: flex; align-items: center; gap: .65rem; flex: 1 1 16rem; max-width: 28rem; margin: 0;
    padding: 0 .85rem; min-height: 44px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface-2);
}
.catalog-search:focus-within {
    outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.catalog-search__icon {
    flex-shrink: 0; width: 18px; height: 18px; color: var(--muted);
}
.catalog-search__input {
    width: 100%; min-width: 0; padding: .55rem 0; border: none; background: transparent;
    color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums;
}
.catalog-search__input:focus { outline: none; }
.catalog-search__input::placeholder { color: var(--muted); opacity: .85; }
.catalog-toolbar__status { margin: 0; font-size: .86rem; white-space: nowrap; }
.catalog-grid {
    display: grid; gap: .85rem; grid-template-columns: 1fr; margin-bottom: 0;
}
@media (min-width: 560px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }
.catalog-card {
    display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.05rem; min-height: 100%;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.catalog-card[hidden] { display: none !important; }
.catalog-card:hover {
    border-color: var(--accent); text-decoration: none; transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--shadow);
}
.catalog-card__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.catalog-card__sym {
    display: inline-flex; padding: .18rem .55rem; border-radius: 999px;
    background: var(--accent-tint); color: var(--accent); font-size: .78rem; font-weight: 800;
}
.catalog-card__algo {
    font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.catalog-card__name { margin: 0; font-size: 1.02rem; line-height: 1.25; color: var(--text); }
.catalog-card__stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .75rem; margin-top: .15rem;
}
.catalog-card__stat { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.catalog-card__stat .k { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.catalog-card__stat .v { font-size: .92rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card__stat .v.accent { color: var(--accent-2); }
.catalog-card__cta { margin-top: auto; padding-top: .35rem; color: var(--accent-2); font-size: .86rem; font-weight: 700; }
.catalog-empty { margin: 1.25rem 0 0; text-align: center; }
.catalog-foot {
    display: flex; flex-wrap: wrap; gap: .55rem; align-items: center;
    margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid var(--border);
}

/* ---------- Homepage SEO / FAQ ---------- */
.steps-list { margin: 0; padding-left: 1.25rem; display: grid; gap: .65rem; max-width: 70ch; color: var(--muted); }
.steps-list strong { color: var(--text); }
.faq-list { display: grid; gap: .65rem; max-width: 72ch; }
.faq-list--full { max-width: none; width: 100%; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; width: 100%; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; display: inline; }
.faq-a { margin: .75rem 0 0; color: var(--muted); line-height: 1.55; }
.coin-facts caption { caption-side: top; text-align: left; padding-bottom: .5rem; }
table.coin-facts th, table.coin-facts td { vertical-align: middle; }
.coin-facts__tools { width: 1%; white-space: nowrap; text-align: right; }
.coin-facts__dropdown { position: relative; display: inline-block; }
.coin-facts__menu-btn {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
    padding: .38rem .7rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2);
    font-size: .78rem; font-weight: 700; color: var(--text); line-height: 1.2; user-select: none;
}
.coin-facts__menu-btn::-webkit-details-marker { display: none; }
.coin-facts__menu-btn::marker { content: ''; }
.coin-facts__menu-btn::after {
    content: ''; width: .38rem; height: .38rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); opacity: .65;
}
.coin-facts__dropdown[open] > .coin-facts__menu-btn {
    border-color: var(--accent); background: var(--accent-tint); color: var(--accent);
}
.coin-facts__menu {
    position: fixed; z-index: 40; min-width: 11.5rem; margin: 0; padding: .35rem; list-style: none;
    border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
    box-shadow: 0 10px 28px var(--shadow);
}
.coin-facts__menu a {
    display: block; padding: .48rem .65rem; border-radius: 6px; color: var(--text);
    font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.coin-facts__menu a:hover { background: var(--accent-tint); color: var(--accent-2); text-decoration: none; }

/* ---------- Legal pages (Terms, Privacy) ---------- */
.legal-page { max-width: 72ch; }
.legal-page__header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.legal-page__header h1 { margin: 0; }
.contact-page__intro { margin: .75rem 0 0; color: var(--muted); line-height: 1.65; }
.contact-form { margin-top: 1.25rem; position: relative; }
.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.contact-form__message { min-height: 9rem; resize: vertical; font-family: inherit; }
.contact-form .btn[disabled] { opacity: .72; cursor: not-allowed; }
.contact-alert { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 10px; line-height: 1.55; }
.contact-alert--success { border: 1px solid rgba(46, 204, 113, .35); background: rgba(46, 204, 113, .12); color: var(--text); }
.contact-alert--error { border: 1px solid rgba(255, 92, 92, .35); background: rgba(255, 92, 92, .1); color: var(--text); }
.contact-alert--error:empty { display: none; }
.field-error { color: var(--neg); font-size: .82rem; line-height: 1.4; }
.legal-page__section { margin: 0 0 1.35rem; }
.legal-page__section h2 { margin: 0 0 .55rem; font-size: 1.05rem; line-height: 1.35; }
.legal-page__section p { margin: 0; color: var(--muted); line-height: 1.65; }
.legal-page__section p + p { margin-top: .85rem; }
.legal-page__section a { text-decoration: underline; }

/* ---------- Bitcoin halving page ---------- */
.halving-hero__head { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 760px) { .halving-hero__head { grid-template-columns: 1fr minmax(220px, 280px); } }
.halving-eyebrow { margin: 0 0 .35rem; color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.halving-lead { max-width: 62ch; margin: 0; }
.halving-price-card { display: flex; flex-direction: column; gap: .25rem; }
.halving-price-card .label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.halving-price-card .value { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.halving-price-card .value.accent { color: var(--accent); }
.halving-price-card .sub { color: var(--muted); font-size: .82rem; }

.halving-countdown-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; }
.halving-countdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 560px) { .halving-countdown { grid-template-columns: repeat(4, 1fr); } }
.halving-countdown__unit { text-align: center; padding: 1rem .75rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.halving-countdown__value { display: block; font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1.1; }
.halving-countdown__label { display: block; margin-top: .35rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

.halving-cycle__meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .88rem; color: var(--muted); }
.halving-cycle__bar { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.halving-cycle__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.halving-cycle__detail { margin: .65rem 0 0; font-size: .88rem; }

.halving-reward-shift { padding: 1.1rem 1.2rem; }
.halving-reward-shift--next { margin-top: 1rem; }

.halving-date-prediction__intro { max-width: 72ch; margin: 0 0 1.1rem; line-height: 1.55; }

.halving-date-card {
    display: flex; flex-direction: column; align-items: center; gap: 1.35rem;
    padding: clamp(1.35rem, 4vw, 2rem) clamp(1rem, 4vw, 2.25rem);
    text-align: center;
}
.halving-date-card__lead { margin: 0; color: var(--muted); font-size: .92rem; max-width: 34ch; line-height: 1.45; }
.halving-date-card__primary {
    display: flex; align-items: stretch; justify-content: center; gap: .85rem; width: 100%; max-width: 34rem;
}
.halving-date-card__accent {
    flex: 0 0 5px; width: 5px; border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.halving-date-card__when { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; text-align: left; }
.halving-date-card__date {
    margin: 0; font-size: clamp(1.45rem, 4.5vw, 2rem); font-weight: 800; line-height: 1.15;
    color: var(--accent); font-variant-numeric: tabular-nums;
}
.halving-date-card__time { margin: 0; font-size: .88rem; }

.halving-blocktime { width: 100%; max-width: 34rem; padding-top: .35rem; }
.halving-blocktime__track {
    position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
    align-items: end; padding: 0 .15rem 1.35rem;
}
.halving-blocktime__track::before {
    content: ""; position: absolute; left: 8%; right: 8%; bottom: .62rem; height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent), var(--border)); border-radius: 999px;
}
.halving-blocktime__marker {
    position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .45rem;
}
.halving-blocktime__date { font-size: .82rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.halving-blocktime__tick {
    width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent;
    border-top: 9px solid var(--muted);
}
.halving-blocktime__seconds { font-size: .82rem; color: var(--muted); font-weight: 600; }
.halving-blocktime__marker.is-active .halving-blocktime__date { color: var(--text); font-size: .88rem; }
.halving-blocktime__marker.is-active .halving-blocktime__tick { border-top-color: var(--accent); transform: scale(1.15); }
.halving-blocktime__marker.is-active .halving-blocktime__seconds { color: var(--accent); font-weight: 800; font-size: .92rem; }
.halving-blocktime__label {
    margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}

.halving-reward-shift__values { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .75rem; }
.halving-reward-shift__box { flex: 1 1 140px; padding: .85rem 1rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.halving-reward-shift__box--current, .halving-reward-shift__box--next { border-color: var(--accent-border-soft); box-shadow: 0 0 0 1px var(--accent-glow); }
.halving-reward-shift__box .k { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.halving-reward-shift__box .v { font-size: 1.35rem; font-weight: 800; }
.halving-reward-shift__box .v.accent { color: var(--accent); }
.halving-reward-shift__arrow { font-size: 1.5rem; color: var(--muted); font-weight: 700; }

.halving-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem;
    grid-template-columns: repeat(2, 1fr); }
@media (min-width: 680px) { .halving-timeline { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .halving-timeline { grid-template-columns: repeat(6, 1fr); } }
.halving-timeline__item { padding: .85rem .75rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.halving-timeline__item.is-current { border-color: var(--accent); background: var(--accent-tint); }
.halving-timeline__item.is-next { border-style: dashed; border-color: var(--accent-2); }
.halving-timeline__reward { display: block; font-weight: 800; font-size: .95rem; margin-bottom: .25rem; }
.halving-timeline__label { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; }

.halving-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.halving-table { min-width: 560px; }


/* ---------- Layout helpers ---------- */
.calc-form { display: flex; flex-direction: column; gap: 1.25rem; }
.calc-workspace {
    display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 760px) {
    .calc-workspace { grid-template-columns: minmax(240px, 280px) 1fr; }
    .calc-presets {
        position: sticky; top: .75rem; align-self: start;
        height: min(640px, calc(80vh - 1.5rem));
        max-height: min(640px, calc(80vh - 1.5rem));
    }
}
@media (max-width: 759px) {
    .calc-results-panel { order: -1; }
    .calc-presets {
        height: min(42vh, 320px);
        max-height: min(42vh, 320px);
    }
}
.calc-presets {
    display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden;
}
.calc-presets__head {
    display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
    padding: .85rem 1rem .75rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.calc-presets__title { font-size: .85rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.calc-presets__count {
    font-size: .68rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums;
    padding: .12rem .42rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.calc-presets__search-wrap { padding: .6rem .75rem 0; flex-shrink: 0; }
.calc-presets__search {
    padding: .48rem .65rem; font-size: .84rem; background: var(--bg);
    border-color: color-mix(in srgb, var(--border) 85%, transparent);
}
.calc-presets__search::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.calc-presets__search:focus { background: var(--surface-2); }
.calc-presets__scroll {
    position: relative; flex: 1 1 0; min-height: 0;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
    color-scheme: dark;
}
[data-theme="light"] .calc-presets__scroll { color-scheme: light; }
.calc-presets__scroll::-webkit-scrollbar { width: 5px; }
.calc-presets__scroll::-webkit-scrollbar-track { background: transparent; margin: .25rem 0; }
.calc-presets__scroll::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb); border-radius: 999px;
    border: 1px solid transparent; background-clip: padding-box;
}
.calc-presets__scroll::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
.calc-presets__scroll::before,
.calc-presets__scroll::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.1rem; z-index: 1;
    pointer-events: none; opacity: 0; transition: opacity .18s ease;
}
.calc-presets__scroll::before {
    top: 0;
    background: linear-gradient(to bottom, var(--scroll-fade) 15%, transparent);
}
.calc-presets__scroll::after {
    bottom: 0;
    background: linear-gradient(to top, var(--scroll-fade) 15%, transparent);
}
.calc-presets__scroll[data-can-scroll-up="true"]::before { opacity: 1; }
.calc-presets__scroll[data-can-scroll-down="true"]::after { opacity: 1; }
.calc-presets__list {
    padding: .15rem .35rem .15rem 0;
}
.calc-presets__empty {
    margin: 0; padding: 1rem; text-align: center; font-size: .82rem; color: var(--muted);
}
.calc-preset-item[hidden] { display: none !important; }
.calc-preset-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
    width: 100%; padding: .58rem .85rem .58rem 1rem; margin: 0 0 1px;
    border: none; border-radius: 8px; background: transparent; color: var(--text);
    text-align: left; cursor: pointer; transition: background .15s ease, box-shadow .15s ease;
}
.calc-preset-item:last-child { margin-bottom: 0; }
.calc-preset-item:hover { background: var(--surface-2); }
.calc-preset-item.is-active {
    background: var(--accent-tint); box-shadow: inset 3px 0 0 var(--accent);
}
.calc-preset-item__name {
    width: 100%; font-size: .82rem; font-weight: 700; line-height: 1.28;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.calc-preset-item__maker {
    font-size: .7rem; color: var(--muted); line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.calc-preset-item__meta { font-size: .7rem; color: color-mix(in srgb, var(--muted) 92%, var(--text)); font-weight: 600; }
.calc-presets__foot {
    display: block; flex-shrink: 0; padding: .62rem 1rem; border-top: 1px solid var(--border);
    font-size: .8rem; font-weight: 700; color: var(--accent-2); text-align: center;
    transition: color .15s ease, background .15s ease;
}
.calc-presets__foot:hover { color: var(--accent); text-decoration: none; background: var(--surface-2); }
.calc-results-panel { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.calc-inputs {
    display: grid; gap: 1rem; grid-template-columns: 1fr;
}
.calc-inputs--sidebar {
    display: flex; flex-direction: column; gap: 0;
}
.calc-inputs-sidebar { padding: 0; overflow: hidden; min-height: 0; }
.calc-inputs-card { padding: 0; overflow: hidden; }
.calc-inputs__head {
    display: flex; flex-direction: column; gap: .25rem;
    padding: .85rem 1rem .75rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.calc-inputs__title { font-size: .85rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.calc-inputs__hint { margin: 0; font-size: .78rem; line-height: 1.4; }
.calc-inputs__fields {
    display: grid; gap: .85rem; grid-template-columns: 1fr;
    padding: .85rem 1rem 1rem;
}
@media (min-width: 760px) {
    .calc-inputs-sidebar { position: sticky; top: .75rem; align-self: start; }
    .calc-inputs--sidebar .calc-inputs__fields { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
    .calc-form--no-miners .calc-inputs-sidebar { order: -1; }
    .calc-form--no-miners .calc-results-panel { order: 0; }
}
@media (min-width: 560px) {
    .calc-inputs:not(.calc-inputs--sidebar) .calc-inputs__fields {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}
.calc-inputs .field { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.field label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.field .input-row { display: flex; gap: .4rem; }
.input, select.input, textarea.input {
    width: 100%; padding: .65rem .75rem; border-radius: 10px; background: var(--surface-2);
    border: 1px solid var(--border); color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums;
}
.input:focus, select.input:focus, textarea.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input-suffix { display: inline-flex; align-items: center; padding: 0 .6rem; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.preset-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.preset-btn { padding: .4rem .65rem; font-size: .82rem; border-radius: 8px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); cursor: pointer; }
.preset-btn:hover { border-color: var(--accent); }

.results { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 520px) { .results { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tables (hardware rankings) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: .7rem .6rem; text-align: right; border-bottom: 1px solid var(--border); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .rank { color: var(--muted); font-weight: 700; }
table.data .hw-name { font-weight: 700; color: var(--text); }
table.data .hw-name a { color: var(--text); }
table.data .hw-name a:hover { color: var(--accent-2); text-decoration: none; }
table.data .hw-maker { display: block; margin-top: .12rem; font-size: .74rem; font-weight: 500;
    color: var(--muted); opacity: .8; line-height: 1.3; }
table.data .ppw { color: var(--accent); font-weight: 800; }

/* ---------- Hardware detail ---------- */
.hw-detail { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .hw-detail { grid-template-columns: minmax(240px, 360px) 1fr; } }
.hw-detail__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.hw-detail__placeholder { display: flex; align-items: center; justify-content: center; width: 100%;
    aspect-ratio: 3 / 2; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--surface-2); color: var(--muted); }
.hw-detail__placeholder-label { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hw-detail__info h1 { margin: 0 0 .35rem; }
.hw-detail__maker { margin: 0 0 1rem; }
.hw-detail__buy { margin: 1rem 0 0; }
.pill { display: inline-block; margin-right: .35rem; padding: .12rem .45rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.pill-ok { background: color-mix(in srgb, var(--pos) 18%, transparent); color: var(--pos); }
.pill-accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.hw-vendors__table .pill { margin-bottom: .2rem; }
.hw-vendors__row--preferred { background: color-mix(in srgb, var(--pos) 6%, transparent); }
.hw-vendors__row--best-roi { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.spec-list { display: grid; gap: .55rem; margin: 0; }
.spec-list__row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0;
    border-bottom: 1px solid var(--border); }
.spec-list__row dt { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 600; }
.spec-list__row dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Charts ---------- */
.chart-wrap { position: relative; width: 100%; }
.chart-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.chart-controls { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }
.chart-controls .btn.is-active {
  background: var(--accent);
  color: #1a1205;
  border-color: var(--accent);
}
.chart-controls .btn.is-active:hover { filter: brightness(1.05); }
.chart-empty { color: var(--muted); padding: 2rem 1rem; text-align: center; }
.chart-tooltip { position: absolute; pointer-events: none; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 8px; padding: .4rem .6rem; font-size: .82rem; color: var(--text); transform: translate(-50%, -120%); display: none; }

/* ---------- Notices ---------- */
.notice { padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.notice.warn { border-color: var(--accent-border); color: var(--accent-2); background: var(--accent-tint); }

/* ---------- News feed ---------- */
.block-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem;
    border-radius: 999px; background: var(--accent-tint); color: var(--accent);
    font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; }
.feed-block-group { display: grid; gap: .65rem; }
.feed-block-group__head { display: grid; gap: .2rem; }
.feed-block-group__title { margin: 0; font-size: 1rem; }
.feed-block-group__time { margin: 0; font-size: .85rem; }
.feed { display: grid; gap: .75rem; }
.feed-item { display: grid; gap: .35rem; padding: 1rem; }
.feed-item:hover { border-color: var(--accent); }
.feed-item h2, .feed-item h3 { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.feed-item h2 a, .feed-item h3 a { color: var(--text); }
.feed-item h2 a:hover, .feed-item h3 a:hover { color: var(--accent-2); }
.feed-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .8rem; }
.feed-meta .src { color: var(--accent-2); font-weight: 600; }
.feed-item p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.feed-pager { display: grid; gap: .65rem; padding-top: .25rem; border-top: 1px solid var(--border); }
.feed-pager__summary { margin: 0; font-size: .88rem; }
.feed-pager__actions { justify-content: space-between; }

/* ---------- Learn / Blog ---------- */
.post-list { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; gap: .5rem; padding: 0; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--surface-2); }
.post-card .pc-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.post-card h2 { font-size: 1.05rem; margin: 0; }
.post-card h2 a { color: var(--text); }
.post-card .excerpt { color: var(--muted); font-size: .9rem; }
.sponsored-tag { align-self: flex-start; padding: .12rem .5rem; border-radius: 6px;
    background: var(--accent-tint-strong); color: var(--accent-2); font-size: .7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em; }

.article { max-width: 72ch; }
.article-header { margin-bottom: 1.25rem; }
.article-meta { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.article-hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius);
    border: 1px solid var(--border); margin: 1rem 0; }
.article-body { font-size: 1.05rem; line-height: 1.7; }
.article-body h2, .article-body h3 { margin-top: 1.6rem; }
.article-body p { margin: 0 0 1rem; }
.article-body img { border-radius: 10px; }
.article-body a { text-decoration: underline; }
.article-embed--ppw {
    margin: 1.75rem 0 2rem;
    max-width: min(56rem, calc(100vw - 2rem));
    width: 100%;
}
@media (min-width: 900px) {
    .article-embed--ppw {
        margin-left: 50%;
        transform: translateX(-50%);
    }
}

/* ---------- Retired PoW landing page ---------- */
.retired-pow__eyebrow { display: inline-flex; margin: 0 0 .75rem; padding: .3rem .7rem; border-radius: 999px;
    background: var(--accent-tint); color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.retired-pow__lead { max-width: 68ch; margin: 0; line-height: 1.65; color: var(--muted); }
.retired-pow__lead strong { color: var(--text); }

/* ---------- Multi-coin compare page ---------- */
.compare-lead { max-width: 68ch; margin: 0 0 1rem; line-height: 1.6; }
.compare-lead strong { color: var(--text); }
.compare-form { padding: 1.2rem 1.25rem; }
.compare-algo-scroll {
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; margin-top: .5rem;
    scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent;
}
.compare-algo-scroll::-webkit-scrollbar { height: 6px; }
.compare-algo-scroll::-webkit-scrollbar-track { background: transparent; }
.compare-algo-scroll::-webkit-scrollbar-thumb {
    background: var(--scroll-thumb); border-radius: 999px;
    border: 1px solid transparent; background-clip: padding-box;
}
.compare-algo-scroll::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
.compare-algo-grid {
    display: flex; flex-wrap: nowrap; gap: .85rem; width: max-content; max-width: 100%;
    padding: .15rem .1rem .35rem;
}
.compare-algo {
    flex: 0 0 auto; width: min(240px, 78vw); margin: 0;
    padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.compare-algo .field { margin-bottom: .65rem; }
.compare-algo .field:last-child { margin-bottom: 0; }
.compare-algo legend { padding: 0 .25rem; font-weight: 700; font-size: .88rem; color: var(--accent); }
.compare-form__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.compare-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table { min-width: 880px; }
.compare-table .ppw { color: var(--accent); font-weight: 800; }
.compare-sort { color: var(--text); font-weight: 700; text-decoration: none; }
.compare-sort:hover { color: var(--accent-2); text-decoration: none; }
.compare-row--partial { opacity: .72; }
.compare-actions { text-align: right; white-space: nowrap; }

/* ---------- Calculator hardware table ---------- */
/* ---------- Deployment miner filters (calculator + miners) ---------- */
.deploy-toolbar { padding: .9rem 1rem; margin-bottom: 1rem; }
.deploy-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.deploy-filter__sep {
    width: 1px; height: 1.25rem; margin: 0 .1rem; background: var(--border); flex-shrink: 0;
}
@media (max-width: 520px) {
    .deploy-filter__sep { display: none; }
}
.deploy-filter__btn {
    display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .72rem;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2);
    color: var(--text); font-size: .8rem; font-weight: 700; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.deploy-filter__btn:hover { border-color: var(--accent); color: var(--accent-2); }
.deploy-filter__btn.is-active {
    border-color: var(--accent); background: var(--accent-tint); color: var(--accent);
}
.deploy-filter__count {
    font-size: .68rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums;
    padding: .08rem .38rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--border);
}
.deploy-filter__btn.is-active .deploy-filter__count { color: var(--accent); border-color: var(--accent-border-soft); }
.deploy-hint { margin: .65rem 0 0; font-size: .82rem; line-height: 1.45; max-width: 72ch; }
.deploy-status {
    display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
    margin: .75rem 0 0; min-height: 1.6rem;
}
.deploy-toolbar + .table-scroll + .deploy-status,
.deploy-toolbar + .table-scroll ~ .deploy-status { margin-top: .85rem; }
.deploy-status__text { font-size: .78rem; color: var(--muted); }
.deploy-show-all { padding: .25rem .55rem; font-size: .76rem; }
.deploy-empty { margin-top: .75rem; }
.deploy-badge {
    display: inline-block; padding: .18rem .48rem; border-radius: 999px; font-size: .68rem;
    font-weight: 800; letter-spacing: .02em; white-space: nowrap; border: 1px solid var(--border);
}
.deploy-badge--ac110120 { background: rgba(46, 204, 113, .12); color: var(--pos); border-color: rgba(46, 204, 113, .35); }
.deploy-badge--ac200240 { background: rgba(52, 152, 219, .12); color: #6cb6ff; border-color: rgba(52, 152, 219, .35); }
[data-theme="light"] .deploy-badge--ac200240 { color: #2563eb; }
.deploy-badge--ac380415 { background: rgba(155, 89, 182, .12); color: #c39bd3; border-color: rgba(155, 89, 182, .35); }
[data-theme="light"] .deploy-badge--ac380415 { color: #7c3aed; }
.deploy-badge--ac480 { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-border-soft); }
.calc-hardware__lead { max-width: 72ch; margin: 0 0 1rem; }
.calc-hw-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); }
.calc-hw-table { min-width: 720px; }
.calc-hw-table__actions { text-align: right; white-space: nowrap; }

.crumbs { color: var(--muted); font-size: .85rem; margin: 0 0 .75rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* ---------- HTTP error pages (404 / 500) ---------- */
.error-page {
    text-align: center;
    padding: 2.5rem 0 3.5rem;
    max-width: 38rem;
    margin: 0 auto;
}
.error-page__code {
    margin: 0 0 .35rem;
    font-size: clamp(3.5rem, 14vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.error-page__title {
    margin: 0 0 .75rem;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
}
.error-page__message {
    margin: 0 auto 1.25rem;
    max-width: 32ch;
    font-size: 1.02rem;
}
.error-page__path {
    margin: 0 0 1rem;
    font-size: .9rem;
}
.error-page__path-code {
    display: inline-block;
    margin-top: .35rem;
    padding: .35rem .55rem;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: .82rem;
    word-break: break-all;
}
.error-page__ref {
    margin: 0 0 1.5rem;
    font-size: .82rem;
}
.error-page__ref code {
    font-size: .8rem;
    color: var(--text);
}
.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: center;
}
.error-page--server .error-page__icon {
    display: flex;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
    opacity: .85;
}
.error-page__code--soft {
    font-size: clamp(2rem, 8vw, 3rem);
    opacity: .45;
    margin-bottom: .5rem;
}

/* ---------- Display ad slots ---------- */
.ad-leaderboard {
    display: flex;
    justify-content: center;
    padding: .75rem 0 1.25rem;
}
.ad-slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-inline: auto; overflow: hidden;
}
.ad-slot--leaderboard { width: min(320px, 100%); min-height: 100px; }
@media (min-width: 768px) {
    .ad-slot--leaderboard { width: min(728px, 100%); min-height: 90px; }
}
.ad-slot--medium-rectangle { width: 300px; max-width: 100%; min-height: 250px; }
.ad-inline {
    display: flex; justify-content: center; margin: 1.25rem 0;
}
/* ---------- Per-coin tool navigation ---------- */
.coin-tool-nav {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem;
    padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface);
}
.coin-tool-nav__head { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .65rem; }
.coin-tool-nav__coin { font-size: .88rem; font-weight: 700; color: var(--text); }
.coin-tool-nav__block { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.coin-tool-nav__block .mono { font-weight: 800; color: var(--text); }
.coin-tool-nav__sym {
    display: inline-flex; padding: .1rem .4rem; border-radius: 999px;
    background: var(--accent-tint); color: var(--accent); font-size: .72rem; font-weight: 800;
}
.coin-tool-nav__list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem;
}
.coin-tool-nav__link {
    display: inline-flex; padding: .42rem .72rem; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface-2); color: var(--text); font-size: .82rem; font-weight: 700;
    text-decoration: none; white-space: nowrap;
}
.coin-tool-nav__link:hover { border-color: var(--accent); color: var(--accent-2); text-decoration: none; }
.coin-tool-nav__link.is-active {
    border-color: var(--accent); background: var(--accent-tint); color: var(--accent);
}

/* ---------- Home Bitcoin tools spotlight ---------- */
.btc-tools-grid {
    display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .btc-tools-grid { grid-template-columns: repeat(3, 1fr); } }
.btc-tool-card {
    display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.15rem;
    text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.btc-tool-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.btc-tool-card h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.btc-tool-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; flex: 1; }
.btc-tool-card .cta { color: var(--accent-2); font-weight: 700; font-size: .88rem; margin-top: .35rem; }
.btc-tool-card--primary { border-color: var(--accent-border); background: linear-gradient(145deg, var(--surface) 0%, var(--accent-tint) 100%); }
.btc-tool-card__tag {
    align-self: flex-start; padding: .15rem .5rem; border-radius: 999px;
    background: var(--accent); color: #1a1205; font-size: .68rem; font-weight: 800; text-transform: uppercase;
}

/* ---------- Chart page enrichment ---------- */
.chart-page-head__block { margin: -.15rem 0 .35rem; font-size: .95rem; }
.chart-page-head__lead { max-width: 72ch; margin: 0; }
.section-tight { margin-top: .75rem; }
.card-title { margin: 0 0 .5rem; font-size: 1rem; }
.network-cycle__blocks { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: .85rem; font-size: .82rem; }
.network-cycle__progress { margin-bottom: .5rem; }
.network-cycle__meta {
    display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .4rem;
    font-size: .84rem; color: var(--muted);
}
.network-cycle__bar {
    height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden;
}
.network-cycle__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.network-cycle__estimate { margin: .65rem 0 0; font-size: 1rem; }
.metric-change-grid {
    display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 680px) { .metric-change-grid { grid-template-columns: repeat(4, 1fr); } }
.metric-change-card { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem; }
.metric-change-card .label { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.metric-change-card .value { font-size: 1.15rem; font-weight: 800; }
.content-block { max-width: 72ch; }
.content-block h2 { margin-bottom: .65rem; }
.calc-lead { max-width: 72ch; }
.calc-disclaimer { margin: .75rem 0 0; font-size: .84rem; max-width: 72ch; }
.calc-forecast-table { min-width: 520px; }
