/* ============================================================ bzminer.com
   One stylesheet. Dark by default; a light palette follows the OS.
   ------------------------------------------------------------------ */

:root {
    --bg:          #0a0c0f;
    --bg-alt:      #0e1116;
    --panel:       #12161c;
    --panel-2:     #171c23;
    --line:        #222932;
    --line-soft:   #1a2029;

    --text:        #dfe5ec;
    --text-strong: #ffffff;
    --muted:       #8c98a6;

    /* --accent fills (buttons, markers); --accent-text is the same brand colour
       tuned to stay readable as text on whatever the page background is. */
    --accent:      #f3b31c;
    --accent-text: #f3b31c;
    --accent-soft: rgba(243, 179, 28, 0.12);
    --accent-line: rgba(243, 179, 28, 0.35);
    --accent-ink:  #12100a;

    --ok:          #5fd39a;
    --info:        #6fb2f2;

    --nvidia:      #76b900;
    --amd:         #f4565c;
    --intel:       #4d9dd8;
    --apple:       #b6bcc4;
    --cpu:         #c48ce0;

    --radius:      14px;
    --radius-sm:   9px;
    --wrap:        1180px;

    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --mono:        'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg:          #ffffff;
        --bg-alt:      #f6f7f9;
        --panel:       #ffffff;
        --panel-2:     #f2f4f7;
        --line:        #e2e6ec;
        --line-soft:   #eceff3;

        --text:        #2b3440;
        --text-strong: #0d1117;
        --muted:       #63707e;

        --accent:      #9c6900;
        --accent-text: #7d5600;
        --accent-soft: rgba(156, 105, 0, 0.10);
        --accent-line: rgba(156, 105, 0, 0.30);
        --accent-ink:  #ffffff;

        --ok:          #0f6e49;
        --info:        #1f6fc4;

        --nvidia:      #456e00;
        --amd:         #b3151b;
        --intel:       #1f6fa8;
        --apple:       #5b6472;
        --cpu:         #7d47a0;
    }
}

/* ------------------------------------------------------------- reset */

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--text-strong);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

code, pre { font-family: var(--mono); font-size: .875em; }

code {
    background: var(--panel-2);
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    padding: .1em .4em;
    color: var(--text-strong);
    white-space: nowrap;
}

pre { margin: 0; }
pre code { background: none; border: 0; padding: 0; white-space: pre; }

img { max-width: 100%; height: auto; display: block; }

.icon { width: 20px; height: 20px; flex: none; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.muted { color: var(--muted); font-size: .925rem; }

.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

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

/* ------------------------------------------------------------ buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: .9375rem;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .12s, color .15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--text-strong); background: var(--accent-soft); }

.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }

/* ---------------------------------------------------------------- nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 62px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-strong);
    letter-spacing: -0.02em;
}
.brand b { color: var(--accent-text); font-weight: 600; }
.brand img { border-radius: 6px; }

.nav-links {
    display: flex;
    gap: 20px;
    margin-right: auto;
    font-size: .9375rem;
    color: var(--muted);
}
.nav-links a { transition: color .15s; white-space: nowrap; }
.nav-links .nav-guides { color: var(--accent-text); font-weight: 600; }
.nav-links a:hover { color: var(--text-strong); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
}
.icon-link:hover {
    color: var(--accent-text);
    background: var(--accent-soft);
    border-color: var(--accent-line);
}

.connect-panel { border-top: 1px solid var(--line); background: var(--panel); }
.connect-inner {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
}
.connect-inner label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    font-weight: 600;
}
.connect-inner input {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 11px;
    color: var(--text);
    font-family: var(--mono);
    font-size: .875rem;
    width: 190px;
}
.connect-inner input:focus { border-color: var(--accent-line); outline: none; }
.connect-note { color: var(--muted); font-size: .8125rem; padding-bottom: 9px; }

/* ------------------------------------------------------------ ad slot */

/* overflow:hidden so an ad iframe that reports a stale width cannot widen the
   page; the reserved height stops a late fill from shoving the hero down */
.ad-slot { padding-top: 16px; padding-bottom: 4px; overflow: hidden; }
.ad-slot ins.adsbygoogle { min-height: 90px; width: 100%; max-width: 100%; }
.ad-slot iframe { max-width: 100%; }

/* --------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }

.hero-glow {
    position: absolute;
    top: -260px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 620px;
    background: radial-gradient(ellipse at center, var(--accent-soft), transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.release-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 14px 5px 10px;
    font-size: .8125rem;
    color: var(--muted);
    margin-bottom: 22px;
}
.release-pill a { color: var(--accent-text); font-weight: 600; }
.release-pill .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent-text); }

.lede { font-size: 1.0625rem; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.platform-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    font-size: .875rem;
    color: var(--muted);
}
.platform-list li { display: flex; align-items: center; gap: 7px; }
.tick { color: var(--ok); font-weight: 700; }

/* ------------------------------------------------------- terminal art */

.term {
    background: #0b0e13;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
@media (prefers-color-scheme: light) {
    .term { box-shadow: 0 20px 50px rgba(15, 23, 42, .16); }
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    background: #10141a;
    border-bottom: 1px solid #1b212a;
}
.tb-dot { width: 10px; height: 10px; border-radius: 50%; background: #2b323c; }
.tb-dot:first-child { background: #d9534f; }
.tb-dot:nth-child(2) { background: #d9a441; }
.tb-dot:nth-child(3) { background: #4faa72; }
.term-title {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: .75rem;
    color: #6b7580;
}

.term-body {
    padding: 16px 18px 18px;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.65;
    color: #c9d3de;
    overflow-x: auto;
}
.c-dim    { color: #737e8c; }
.c-head   { color: #8fa0b3; }
/* the terminal panel is dark in both themes, so it keeps the dark palette */
.c-accent { color: #f3b31c; }
.c-ok     { color: #5fd39a; }
.c-info   { color: #6fb2f2; }

/* -------------------------------------------------------------- stats */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    padding-top: 0;
    padding-bottom: 0;
}
.stat {
    text-align: center;
    padding: 26px 12px;
    position: relative;
}
.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 22%;
    height: 56%;
    border-left: 1px solid var(--line);
}
.stat b {
    display: block;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-strong);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.stat span {
    font-size: .8125rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}

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

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 72ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
.section-sub { color: var(--muted); font-size: 1.0625rem; }

.eyebrow {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--accent-text);
    margin-bottom: 10px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

/* Grid items default to min-width:auto, so one unbreakable string - a stratum
   url in a <pre>, a filename - can push a track wider than its container and
   scroll the whole page sideways. Every grid child here opts out of that; the
   things that really are wide scroll inside their own box instead. */
.feature-grid > *,
.fee-grid > *,
.social-grid > *,
.notes > *,
.step-list > *,
.dl-list > *,
.split > *,
.api-row > * { min-width: 0; }

/* ----------------------------------------------------------- features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.feature { transition: border-color .18s, transform .18s; }
.feature:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feature h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .9375rem; }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent-text);
    margin-bottom: 16px;
}

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

.table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
#algo-filter {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: .9375rem;
    min-width: 280px;
}
#algo-filter:focus { border-color: var(--accent-line); outline: none; }

.legend { display: flex; gap: 6px; flex-wrap: wrap; }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.table { width: 100%; border-collapse: collapse; min-width: 900px; }

.table th, .table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.table thead th {
    background: var(--panel-2);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--panel-2); }

.coin-name { display: block; font-weight: 600; color: var(--text-strong); }
.ticker {
    display: inline-block;
    font-family: var(--mono);
    font-size: .6875rem;
    color: var(--muted);
    letter-spacing: .04em;
}
.badge-solo {
    display: inline-block;
    margin-left: 6px;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--ok);
    background: color-mix(in srgb, var(--ok) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent);
    border-radius: 999px;
    padding: 1px 8px;
    white-space: nowrap;
}

.cell-flag { white-space: nowrap; }
.cell-flag .alias { display: block; font-size: .75rem; color: var(--muted); margin-top: 5px; }

.fee {
    display: inline-block;
    font-weight: 700;
    font-size: .9375rem;
    color: var(--accent-text);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 7px;
    padding: 2px 10px;
}
.fee-none { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }

.cell-devices { min-width: 200px; }
.cell-about { color: var(--muted); font-size: .875rem; min-width: 300px; }

.chip {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 999px;
    padding: 2px 9px;
    margin: 2px 3px 2px 0;
    border: 1px solid;
    white-space: nowrap;
}
.chip-nvidia { color: var(--nvidia); border-color: color-mix(in srgb, var(--nvidia) 40%, transparent); background: color-mix(in srgb, var(--nvidia) 10%, transparent); }
.chip-amd    { color: var(--amd);    border-color: color-mix(in srgb, var(--amd) 40%, transparent);    background: color-mix(in srgb, var(--amd) 10%, transparent); }
.chip-intel  { color: var(--intel);  border-color: color-mix(in srgb, var(--intel) 40%, transparent);  background: color-mix(in srgb, var(--intel) 10%, transparent); }
.chip-apple  { color: var(--apple);  border-color: color-mix(in srgb, var(--apple) 40%, transparent);  background: color-mix(in srgb, var(--apple) 10%, transparent); }
.chip-cpu    { color: var(--cpu);    border-color: color-mix(in srgb, var(--cpu) 40%, transparent);    background: color-mix(in srgb, var(--cpu) 10%, transparent); }

.notes {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    color: var(--muted);
    font-size: .875rem;
}
.notes b { color: var(--text); }

/* -------------------------------------------------------------- split */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}
.split-copy h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); margin-bottom: 16px; }
.split-copy > p { color: var(--muted); }

.check-list { list-style: none; margin: 22px 0; padding: 0; }
.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: .9375rem;
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 4px; top: .62em;
    width: 7px; height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

.api-card h3 { font-size: 1rem; margin-bottom: 16px; }
.api-list { margin: 0; }
.api-row {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: baseline;
}
.api-row:last-of-type { border-bottom: 0; }
.api-row dt { margin: 0; }
.api-row dd { margin: 0; color: var(--muted); font-size: .8125rem; }
.api-note { margin-top: 16px; color: var(--muted); font-size: .8125rem; }

/* -------------------------------------------------------------- steps */

.step-list {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}
.step-list > li {
    counter-increment: step;
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 26px 26px 78px;
}
.step-list > li::before {
    content: counter(step);
    position: absolute;
    left: 26px; top: 26px;
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    font-size: .9375rem;
}
.step-list h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.step-list > li > p { color: var(--muted); font-size: .9375rem; }

.dl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.dl-item {
    display: block;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: border-color .15s, background .15s;
}
.dl-item:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.dl-os { display: block; font-weight: 600; color: var(--text-strong); font-size: .9375rem; }
.dl-arch { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 7px; }
.dl-item code {
    background: none;
    border: 0;
    padding: 0;
    font-size: .6875rem;
    color: var(--muted);
    white-space: normal;
    word-break: break-all;
}

/* --------------------------------------------------------- code block */

.code-block {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-top: 16px;
    overflow-x: auto;
}
.code-block.wide { margin-top: 0; margin-bottom: 30px; }
.code-block pre { color: var(--text); font-size: .8125rem; line-height: 1.7; }

.copy-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-family: inherit;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.copy-btn:hover { color: var(--text-strong); border-color: var(--accent-line); }

/* ------------------------------------------------------------ dev fee */

.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}
.fee-grid h3 { font-size: 1rem; margin-bottom: 8px; }
.fee-grid p { color: var(--muted); font-size: .9375rem; }

/* ---------------------------------------------------------- community */

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.social-card {
    display: block;
    transition: border-color .18s, transform .18s;
}
.social-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.social-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.social-card p { color: var(--muted); font-size: .9375rem; margin-bottom: 12px; }

.social-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent-text);
    margin-bottom: 16px;
}
.social-mark .icon { width: 22px; height: 22px; }

.social-handle {
    font-family: var(--mono);
    font-size: .8125rem;
    color: var(--accent-text);
    word-break: break-all;
}

/* ---------------------------------------------------------------- cta */

.cta {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: 76px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
.cta-inner > p { color: var(--muted); margin-bottom: 26px; }
.cta-inner .hero-actions { justify-content: center; }

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

.footer { border-top: 1px solid var(--line); background: var(--bg); padding: 52px 0 0; }

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: .875rem; margin-top: 14px; max-width: 40ch; }
.footer-social { display: flex; gap: 6px; margin-top: 16px; margin-left: -8px; }
.footer-col h4 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    color: var(--text);
    font-size: .9375rem;
    margin-bottom: 9px;
    transition: color .15s;
}
.footer-col a:hover { color: var(--accent-text); }

.footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    padding-bottom: 26px;
    color: var(--muted);
    font-size: .8125rem;
}
.footer-legal a:hover { color: var(--accent-text); }

/* ------------------------------------------------------- guide cards */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.guide-grid > * { min-width: 0; }
.guide-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: border-color .18s, transform .18s;
}
.guide-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.guide-card h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.guide-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.guide-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent-text);
    margin-bottom: 14px;
}
.guide-card-icon .icon { width: 17px; height: 17px; }
.guide-coins {
    font-family: var(--mono);
    font-size: .6875rem;
    color: var(--accent-text);
    letter-spacing: .04em;
    margin-bottom: 10px;
}
.guide-more { font-size: .8125rem; font-weight: 600; color: var(--accent-text); margin-top: 14px; }

.guide-subhead {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin: 38px 0 14px;
}
.guide-grid-articles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.guide-card-article { flex-direction: row; gap: 14px; align-items: flex-start; padding: 18px; }
.guide-card-article .guide-card-icon { margin: 0; flex: none; }
.guide-card-article h3 { font-size: 1rem; }
.guide-card-article p { margin: 0; font-size: .875rem; }

/* ------------------------------------------------------- guide pages */

.guide-page { padding: 34px 0 80px; }
.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 60px;
    align-items: start;
}
.guide-main { max-width: 78ch; min-width: 0; }
.guide-main h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.guide-main .lede { margin-bottom: 26px; max-width: none; }
.guide-main h2 { font-size: 1.5rem; margin: 50px 0 14px; scroll-margin-top: 84px; }
.guide-main h3 { font-size: 1.125rem; margin: 30px 0 10px; scroll-margin-top: 84px; }
.guide-main h4 { font-size: 1rem; margin: 0 0 6px; }
.guide-main ul, .guide-main ol { padding-left: 1.35em; margin: 0 0 1em; }
.guide-main li { margin-bottom: .45em; }
.guide-main li > ul { margin-top: .45em; }
.guide-main .code-block { margin: 14px 0 18px; }
.guide-main .code-block pre { font-size: .8125rem; }
.guide-main .muted { margin-top: -6px; }
/* inline code in prose wraps - a stratum url should not widen the column */
.guide-main code { white-space: normal; overflow-wrap: anywhere; }
.guide-main pre code { white-space: pre; }
.guide-main a:not(.btn):not(.guide-nav-link) { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 2px; }
.guide-main a:not(.btn):not(.guide-nav-link):hover { text-decoration-color: var(--accent-text); }

.crumbs { display: flex; gap: 8px; font-size: .8125rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.guide-main .crumbs a { color: var(--muted); text-decoration: none; }
.guide-main .crumbs a:hover { color: var(--accent-text); }

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 22px 0 10px;
}
.fact { background: var(--panel); padding: 14px 16px; min-width: 0; }
.fact dt {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 5px;
}
.fact dd { margin: 0; font-size: .9375rem; color: var(--text-strong); }

.callout {
    display: flex;
    gap: 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
    background: var(--panel);
    padding: 12px 16px;
    margin: 16px 0 20px;
    font-size: .9375rem;
}
.callout > div { min-width: 0; }
.callout-label {
    flex: none;
    min-width: 3.6em;
    padding-top: .3em;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--info);
}
.callout-tip  { border-left-color: var(--ok); }
.callout-tip  .callout-label { color: var(--ok); }
.callout-warn { border-left-color: var(--accent); }
.callout-warn .callout-label { color: var(--accent-text); }
.callout p:last-child { margin: 0; }

.table-scroll { overflow-x: auto; margin: 12px 0 20px; }
.prose-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-scroll .prose-table { min-width: 560px; }
.prose-table th, .prose-table td {
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.prose-table thead th { font-size: .6875rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.prose-table tbody th { color: var(--text-strong); font-weight: 600; }
.prose-table tbody tr:last-child th, .prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table td { color: var(--text); }

.os-tabs {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    margin: 18px 0 28px;
    overflow: hidden;
}
.os-tab-bar { display: flex; flex-wrap: wrap; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.os-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    font-size: .9rem;
    padding: 12px 18px;
    cursor: pointer;
    transition: color .15s;
}
.os-tab:hover { color: var(--text-strong); }
.os-tab.is-active { color: var(--accent-text); border-bottom-color: var(--accent); }
.os-panel { padding: 22px 24px 20px; }
.os-panel[hidden] { display: none; }
.os-panel > p:last-child { margin-bottom: 0; }
.os-note { margin-bottom: 18px; }
.os-note > .callout { margin-top: 0; }

.steps-list { list-style: none; counter-reset: st; padding: 0; margin: 0 0 18px; }
.steps-list > li { counter-increment: st; position: relative; padding-left: 44px; margin-bottom: 22px; }
.steps-list > li::before {
    content: counter(st);
    position: absolute;
    left: 0; top: 0;
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent-text);
    font-weight: 700;
    font-size: .8125rem;
}
.steps-list h4 { margin-top: 3px; }
.steps-list .code-block { margin-top: 10px; }

.guide-aside { position: sticky; top: 84px; min-width: 0; }
.toc-box h4, .aside-card h4 {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 12px;
}
#guide-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
#guide-toc a {
    display: block;
    padding: 5px 0 5px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: .875rem;
    color: var(--muted);
    transition: color .15s, border-color .15s;
}
#guide-toc a:hover { color: var(--text-strong); }
#guide-toc a.is-current { color: var(--accent-text); border-left-color: var(--accent); }
.aside-card {
    margin-top: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.aside-card p { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.aside-card p a { color: var(--accent-text); }

.guide-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 56px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}
.guide-nav-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    transition: border-color .15s;
}
.guide-nav-link span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.guide-nav-link b { color: var(--text-strong); }
.guide-nav-link.next { text-align: right; }
.guide-nav-link:hover { border-color: var(--accent-line); }

.guides-index .section-head h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); letter-spacing: -0.03em; }
.guides-index .crumbs { margin-bottom: 30px; }
.guides-index .guide-subhead { margin-top: 44px; scroll-margin-top: 84px; }
.guides-foot { margin-top: 40px; }
.guides-foot a { color: var(--accent-text); }

.row-guide {
    display: block;
    margin-top: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent-text);
    white-space: nowrap;
}
.row-guide:hover { text-decoration: underline; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(4)::before { display: none; }
    .guide-layout { grid-template-columns: 1fr; gap: 0; }
    .guide-aside { display: none; }
}

/* the anchor list is the first thing to go: below this the brand, the social
   marks and the two buttons already fill the bar */
@media (max-width: 1180px) {
    .nav-links { display: none; }
    .nav-inner { gap: 16px; }
    .nav-actions { margin-left: auto; }
}

@media (max-width: 640px) {
    /* the social marks live in the footer too, so the bar keeps the buttons */
    .nav-actions .icon-link { display: none; }
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 52px; }
    .wrap { padding: 0 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(odd)::before { display: none; }
    .stat { padding: 20px 8px; }
    .stat b { font-size: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .guide-nav { grid-template-columns: 1fr; }
    .guide-nav-link.next { text-align: left; }
    .os-panel { padding: 18px 16px; }
    .os-tab { padding: 11px 13px; font-size: .85rem; }
    .step-list > li { padding: 22px 20px 22px 20px; }
    .step-list > li::before { position: static; margin-bottom: 12px; }
    .term-body { font-size: 10px; }
    .btn-lg { padding: 12px 18px; font-size: .9375rem; }
    #algo-filter { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
