/* KatzeMiner site — a rich hero (rays, sun, halftone night, the crew fading at the edges, mine rails)
   over a readable body: three fonts, flat surfaces, numbers first. */
:root {
  --navy: #08102B;
  --orange: #EF761F;
  --rust: #A54125;
  --mustard: #FCBB23;
  --cream: #F7E7CF;
  --paper: #FFF8EC;
  --line: #E3CFAE;
  --ink: #1B1F33;
  --muted: #6B6253;
  --f-head: "Bungee", "Arial Black", sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--navy); }
body { margin: 0; font-family: var(--f-body); color: var(--ink); background: var(--cream); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); }
code { font-family: var(--f-mono); font-size: .92em; background: rgba(8,16,43,.07); padding: .05em .3em; border-radius: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-block; font-family: var(--f-head); font-size: 1rem; text-transform: uppercase; text-decoration: none;
  color: var(--navy); background: var(--mustard); border: 2px solid var(--navy); border-radius: 8px; padding: .6em 1.2em .5em;
  box-shadow: 3px 3px 0 var(--navy); }
.btn:hover { background: #ffd04f; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn.small { font-size: .8rem; padding: .45em .9em .35em; box-shadow: none; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 3px solid var(--mustard); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.top .logo img { height: 58px; width: auto; margin-bottom: -8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--cream); text-decoration: none; font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--mustard); }

/* hero (v7 look) */
.hero { position: relative; overflow: hidden; padding-top: 18px; color: var(--cream);
  background-color: var(--navy);
  background-image: radial-gradient(rgba(252,187,35,.07) 1px, transparent 1.5px), radial-gradient(ellipse at 50% -20%, rgba(239,118,31,.18), transparent 60%);
  background-size: 7px 7px, 100% 100%; }
.hero::before { content: ""; position: absolute; right: -18%; top: -40%; width: 1200px; height: 1200px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(252,187,35,.08) 0 6deg, transparent 6deg 15deg); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; align-items: end; }
.hero .copy { padding-bottom: 48px; }
.kicker { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--mustard); margin: 0; }
.hero h1 { font-family: var(--f-head); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5.4vw, 68px); line-height: .98; margin: 12px 0 16px; text-shadow: 4px 4px 0 var(--rust); }
.hero h1 em { font-style: normal; color: var(--mustard); }
.lead { font-size: 1.2rem; margin: 0 0 26px; color: #E9DCC6; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.stage { position: relative; height: 380px; }
.stage > * { position: absolute; }
.stage .sun { left: 14%; right: 6%; top: 0; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #ffd96a 0 30%, var(--mustard) 31% 58%, rgba(252,187,35,0) 58.5%), repeating-conic-gradient(rgba(252,187,35,.35) 0 5deg, transparent 5deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 71%); mask-image: radial-gradient(circle, #000 60%, transparent 71%); }
.stage .crew { left: 10%; bottom: -26px; width: 80%; height: auto; z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  filter: drop-shadow(8px 8px 0 rgba(0,0,0,.45)); }
.stage .team { z-index: 4; left: 0; top: 7%; transform: rotate(-6deg); display: flex; flex-direction: column; align-items: center;
  padding: .55em 1.1em .5em; background: var(--navy); color: var(--mustard); border: 3px solid var(--mustard); border-radius: 10px;
  outline: 2px dashed rgba(252,187,35,.55); outline-offset: -9px; box-shadow: 5px 5px 0 var(--rust); text-transform: uppercase; line-height: 1; }
.stage .team small { font-family: var(--f-mono); font-size: .62em; letter-spacing: .22em; color: var(--cream); margin-bottom: .35em; }
.stage .team b { font-family: var(--f-head); font-weight: 400; font-size: 2em; letter-spacing: .02em; text-shadow: 3px 3px 0 var(--rust); }
.stage .team i { font-family: var(--f-head); font-style: normal; font-size: .9em; letter-spacing: .5em; margin: .3em -.5em 0 0;
  color: var(--navy); background: var(--mustard); padding: .2em .6em .1em; border-radius: 3px; }
.ground { position: relative; z-index: 1; height: 46px; border-top: 4px solid #3a2617;
  background: linear-gradient(transparent 22%, #8a91a3 22% 30%, #4b5163 30% 34%, transparent 34% 66%, #8a91a3 66% 74%, #4b5163 74% 78%, transparent 78%),
    repeating-linear-gradient(90deg, transparent 0 34px, #5a361b 34px 52px, #3b2414 52px 56px) 0 15% / 100% 75% no-repeat, linear-gradient(#24170f, #120c08); }

/* sections */
main.wrap { padding-top: 44px; padding-bottom: 56px; }
h2 { font-family: var(--f-head); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3vw, 36px); line-height: 1; margin: 0; }
.block { margin-bottom: 52px; }
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--navy); padding-bottom: 10px; margin-bottom: 22px; }
.news-page .head { justify-content: center; }
.unit { font-family: var(--f-mono); color: var(--muted); margin: 0; white-space: nowrap; }
.foot { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }

/* hashrate: one Tuned block per card, two cards per row, TH/s first; No tuning is a separate table below */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards > .gpu:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
.gpu { background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; padding: 16px 18px 18px; }
.gpu h3 { font-family: var(--f-head); font-weight: 400; font-size: 1.3rem; margin: 0 0 12px; }
.gpu.soon { display: flex; flex-direction: column; justify-content: center; border-style: dashed; background: transparent; }
.gpu.soon p { font-family: var(--f-mono); color: var(--muted); margin: 0; }

/* section head: the sticker centred over the title, the unit under it, a rule with a mustard notch */
.block { position: relative; margin-top: 56px; }
main > .block:first-child { margin-top: 0; }
.pane > .btn { display: table; margin: 0 auto; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 26px; position: relative; padding-bottom: 18px; }
.sec-head img { width: 200px; height: 200px; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(4px 4px 0 rgba(8,16,43,.15)); }
.sec-head h2 { font-size: clamp(32px, 4vw, 48px); }
.sec-head .unit { margin-top: 6px; }
.sec-head.side .title { position: relative; }
.sec-head.side .title img { position: absolute; right: 100%; top: 50%; width: 68px; height: 68px; margin: -36px 14px 0 0; }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--navy); }
.sec-head::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 80px; height: 13px; margin-left: -40px; background: var(--mustard); border: 3px solid var(--navy); border-radius: 4px; z-index: 1; }
.center { text-align: center; }
.tabs { justify-content: center; }
.foot { text-align: center; }
.gpu.soon { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: center; gap: 18px; padding: 14px; }
.gpu.soon h3 { margin: 0; }

/* hero perks */
.perks { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: -10px 0 26px; }
.perks li { font-family: var(--f-mono); font-weight: 600; font-size: .9rem; color: var(--navy); background: var(--mustard); border: 2px solid var(--navy); border-radius: 99px; padding: .25em .9em; }

/* docs / community */
.info-page { max-width: 820px; padding-top: 20px; }
.info-page .center { font-size: 1.15rem; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; color: var(--navy);
  background: var(--paper); border: 2px solid var(--navy); border-radius: 12px; padding: 22px 14px; box-shadow: 4px 4px 0 var(--navy); }
.link b { font-family: var(--f-head); font-weight: 400; font-size: 1.3rem; }
.link span { color: var(--muted); }
.link em { font-style: normal; font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; border: 2px dashed var(--navy); border-radius: 4px; padding: .1em .5em; margin-top: 8px; }
.link.soon { box-shadow: none; border-style: dashed; }
.sec-head.contact { margin-top: 56px; }
.contact-note { margin-top: 22px; color: var(--muted); }

/* No tuning (for rent): its own card after the GPU cards, same look; one row per point, the GPU named on the first */
.t.rent tbody th { white-space: nowrap; }
.t.rent tr.first > * { border-top: 1px solid var(--navy); }
.t.rent tbody tr:first-child > * { border-top: 0; }
.t.rent tbody th:empty, .t.rent tr:has(+ tr.first) > * { border-bottom: 0; }
.t td.w { color: var(--navy); }
.t .set { font-size: .85rem; }
.t th.set { font-size: .74rem; }
.t { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: .95rem; }
.t caption { text-align: left; font-family: var(--f-body); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; padding: 0 0 6px; }
.t.tuned caption { color: var(--rust); }
.t.rent caption { color: var(--rust); }
.t.rent caption small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: .72rem; margin-left: .4em; }
.t th { text-align: right; font-weight: 400; font-size: .74rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: 4px 6px; }
.t td { text-align: right; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--muted); vertical-align: middle; }
.t th:first-child, .t td:first-child { text-align: left; padding-left: 0; }
.t tbody th { font-family: var(--f-body); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); border-bottom: 1px solid var(--line); padding: 7px 6px 7px 0; vertical-align: middle; }
.t tr.power th { color: var(--rust); }
.t td.v { font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.t td small { font-size: .7rem; color: var(--muted); margin-left: .35em; }
.t tr:last-child td, .t tr:last-child th { border-bottom: 0; }

/* tuning: the --oc-profile goals and levels under the Pearl tables, one flag explained in two rows */
.tuning { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: 44px auto 0; max-width: 1000px; }
.tuning h3 { font-family: var(--f-head); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); text-transform: uppercase; margin: 0; }
.tuning .lead { font-size: 1.3rem; margin: 0 0 8px; color: var(--ink); max-width: none; }
.tuning .label { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 12px 0 0; }
.tuning ul { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.goals li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--paper);
  border: 2px solid var(--navy); border-radius: 12px; padding: 22px 16px; }
.goals li.pick { border-width: 3px; box-shadow: 5px 5px 0 var(--mustard); }
.goals b { font-family: var(--f-head); font-weight: 400; font-size: 1.7rem; color: var(--navy); }
.goals li.hot b { color: var(--rust); }
.goals span { font-size: 1.05rem; }
.goals code { margin-top: 6px; background: var(--navy); color: var(--mustard); border-radius: 6px; padding: .35em .75em; }
.goals em { position: absolute; top: -13px; font-style: normal; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--rust); color: var(--paper); border-radius: 4px; padding: .2em .8em; }
.levels li { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid var(--navy); border-radius: 12px; padding: 14px 16px; }
.levels code { background: none; padding: 0; font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.levels li.pick { background: var(--navy); color: var(--cream); }
.levels li.pick code { color: var(--mustard); }
.levels li.hot code { color: var(--rust); }
.levels small { font-family: var(--f-body); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); opacity: .8; }
.tuning .ex { font-size: 1.05rem; margin: 10px 0 0; }
.tuning .ex code { background: var(--navy); color: var(--mustard); border-radius: 6px; padding: .25em .6em; }
.tuning .note { color: var(--muted); margin: 0; }
.tuning ul.levels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .tuning ul { grid-template-columns: minmax(0, 1fr); gap: 14px; } .tuning ul.levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .goals li.pick { margin-top: 6px; } }

/* download */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { font: 600 1rem var(--f-body); border: 2px solid var(--navy); background: var(--paper); color: var(--navy); border-radius: 8px; padding: .45em 1em; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--mustard); }
.pane { background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; padding: 18px; }
.pane pre { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 14px 16px; margin: 16px 0 0; overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.pane pre code { background: none; padding: 0; color: inherit; }
.pane pre b { color: var(--mustard); font-weight: 600; }
.pane ol { margin: 14px 0 0; padding-left: 1.3em; }
.pane ol li { margin: 4px 0; }
.pane > pre:first-child, .pane > ol:first-child { margin-top: 0; }

/* devfee: the big gag card, taped on like a poster, with a stamp */
.fee { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  margin: 72px 0 24px; padding: 34px; border-radius: 18px; background:
    repeating-linear-gradient(-45deg, rgba(8,16,43,.05) 0 14px, transparent 14px 28px), var(--paper);
  border: 3px solid var(--navy); box-shadow: 8px 8px 0 var(--navy); }
.fee-pic { position: relative; margin: 0; transform: rotate(-2deg); }
.fee-pic img { width: 100%; border: 3px solid var(--navy); border-radius: 12px; box-shadow: 6px 6px 0 rgba(8,16,43,.25); background: var(--cream); }
.fee-pic .tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px; transform: rotate(4deg);
  background: rgba(252,187,35,.75); border: 1px solid rgba(8,16,43,.2); z-index: 2; }
.fee-copy .stamp { display: inline-block; font-family: var(--f-head); font-size: clamp(64px, 9vw, 120px); line-height: 1; margin: 0;
  color: var(--rust); border: 6px double var(--rust); border-radius: 14px; padding: .05em .25em 0; transform: rotate(-6deg);
  text-shadow: 3px 3px 0 rgba(252,187,35,.8); }
.fee-copy h2 { font-size: clamp(34px, 4vw, 52px); margin: 18px 0 14px; }
.fee-copy .joke { font-size: 1.45rem; font-weight: 800; line-height: 1.3; margin: 0 0 14px; }
.fee-copy .fact { font-size: 1rem; color: var(--muted); margin: 0; max-width: 34ch; }

/* 404 */
body.lost { background: var(--navy); color: var(--cream); text-align: center; }
body.lost main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
body.lost img { width: 240px; }
body.lost h1 { font-family: var(--f-head); font-weight: 400; font-size: 96px; line-height: 1; margin: 0; color: var(--mustard); text-shadow: 4px 4px 0 var(--rust); }
body.lost p { font-size: 1.2rem; margin: 0 0 14px; }

/* news page */
.news-page { max-width: 820px; min-height: 60vh; }
.post { display: grid; grid-template-columns: 300px 1fr; background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.post img { width: 100%; height: 100%; min-height: 300px; object-fit: contain; border-right: 2px solid var(--navy); }
.post > div { padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.post time { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
.post h3 { font-family: var(--f-head); font-weight: 400; font-size: 1.6rem; margin: 0; }
.post p { margin: 0 0 8px; font-size: 1.1rem; }
.post .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.alt { background: var(--paper); }

/* footer */
footer { background: var(--navy); color: #CFC3AE; padding: 28px 0 36px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
footer img { height: 44px; width: auto; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--cream); text-decoration: none; }
footer p { width: 100%; margin: 0; font-size: .9rem; }

/* tablets: one card per row */
@media (max-width: 1000px) { .cards { grid-template-columns: minmax(0, 1fr); } .cards > .gpu:last-child:nth-child(odd) { width: auto; justify-self: stretch; } }

/* phones */
@media (max-width: 760px) {
  .top nav { display: none; }
  .top .btn.small { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .copy { padding-bottom: 0; }
  .stage { height: 300px; }
  .stage .crew { left: 6%; width: 88%; }
  .stage .team { font-size: .8rem; top: 2%; }
  main.wrap { padding-top: 28px; }
  .gpu { padding: 14px 10px 14px 12px; }
  .t th, .t td { padding-left: 3px; padding-right: 3px; }
  .t td { font-size: .82rem; }
  .t td.v { font-size: 1.05rem; }
  .t td small { margin-left: .15em; font-size: .62rem; }
  .t tbody th { letter-spacing: .02em; font-size: .68rem; }
  .fee { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
  .sec-head img { width: 150px; height: 150px; }
  .sec-head.side .title img { width: 54px; height: 54px; margin: -29px 10px 0 0; }
  .links { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .post img { border-right: 0; border-bottom: 2px solid var(--navy); height: auto; min-height: 0; aspect-ratio: 1; }
}

/* footer at the bottom on short pages; on phones the nav is a second header row */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 6px; padding-bottom: 8px; row-gap: 4px; }
  .top .btn.small { margin-left: auto; }
  .top nav { display: flex; order: 3; width: 100%; margin: 0; gap: 0; justify-content: space-between; font-size: .86rem; }
  .gpu.soon { flex-direction: column; gap: 4px; }
  .top .logo img { height: 46px; margin-bottom: 0; }
}

/* coin picker over the hashrate cards */
.coins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.coins button { font: 600 1rem var(--f-body); border: 2px solid var(--navy); background: var(--paper); color: var(--navy); border-radius: 99px; padding: .45em 1.1em; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.coins button small { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; border: 1.5px dashed currentColor; border-radius: 4px; padding: 0 .35em; }
.coins button[aria-selected="true"] { background: var(--navy); color: var(--mustard); }
.coin-pane.soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px; border: 2px dashed var(--navy); border-radius: 10px; }
.coin-pane.soon[hidden] { display: none; }
.coin-pane.soon img { width: 160px; height: 160px; }
.coin-pane.soon p { font-size: 1.2rem; margin: 0; }

/* yield to apps: one sticker, then plain facts in the hashrate card look — a state strip, two modes, flags and API */
#yield .intro { max-width: 760px; margin: 0 auto 22px; text-align: center; font-size: 1.1rem; }
#yield .gpu h3 { margin-bottom: 10px; }
#yield .note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
#yield .note a { color: var(--rust); }
.yield-run { margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 3fr 4fr 2fr 3fr; border: 2px solid var(--navy); border-radius: 8px; overflow: hidden; }
.timeline li { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.timeline li + li { border-left: 2px solid var(--navy); }
.timeline b { font-family: var(--f-head); font-weight: 400; font-size: 1.15rem; text-transform: uppercase; }
.timeline span { font-size: .88rem; line-height: 1.35; }
.timeline .on { background: var(--mustard); }
.timeline .off { background: var(--navy); color: var(--cream); }
.timeline .wait { background: repeating-linear-gradient(-45deg, rgba(8,16,43,.08) 0 8px, transparent 8px 16px), var(--paper); }
.yield-modes, .yield-knobs { margin-bottom: 16px; }
.yield-knobs { margin-bottom: 0; }
.cmd { margin: 0 0 10px; }
.cmd code, .opts code { background: var(--navy); color: var(--cream); border-radius: 6px; padding: .15em .5em; font-size: .86rem; white-space: nowrap; }
.cmd small { color: var(--muted); margin: 0 .3em; }
.facts { margin: 0; padding-left: 1.1em; }
.facts li { margin: 4px 0; }
.facts li::marker { color: var(--rust); }
.t.opts td { white-space: normal; text-align: left; color: var(--ink); font-family: var(--f-body); font-size: .92rem; padding: 9px 10px 9px 0; }
.t.opts th { text-align: left; padding-right: 12px; }
.t.opts td.d { font-family: var(--f-mono); font-weight: 600; color: var(--navy); white-space: nowrap; padding-right: 16px; }
.perks { display: grid; grid-template-columns: repeat(3, max-content); }
.perks li { text-align: center; }
.perks li a { color: inherit; text-decoration: none; }
.perks li a:hover { color: var(--rust); }
@media (max-width: 760px) {
  .sec-head.side.long .title { display: flex; align-items: center; gap: 10px; }
  .sec-head.side.long .title img { position: static; margin: 0; flex: none; }
  .sec-head.side.long h2 { font-size: 26px; text-align: left; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li + li { border-left: 0; border-top: 2px solid var(--navy); }
  #yield .intro { font-size: 1rem; text-align: left; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perks li { font-size: .85rem; }
  .t.opts td { font-size: .85rem; }
  .cmd code, .opts code { font-size: .78rem; }
}

/* docs: index of cards (docs.html), each doc a page with a side menu (site/docs/*.html, built by tools/build_docs.py) */
.docs-index { max-width: 1000px; }
.docs-index .link span { font-size: .95rem; }
.doc-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.doc-menu { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--navy); padding-left: 14px; }
.doc-menu a { color: var(--muted); text-decoration: none; padding: 4px 0; font-weight: 600; }
.doc-menu a:hover { color: var(--navy); }
.doc-menu a[aria-current] { color: var(--rust); }
.doc { background: var(--paper); border: 2px solid var(--navy); border-radius: 10px; padding: 26px 32px 30px; line-height: 1.6; }
.doc h1 { font-family: var(--f-head); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; }
.doc h2 { font-family: var(--f-head); font-weight: 400; font-size: 1.35rem; margin: 30px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc a { color: var(--rust); }
.doc pre { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.45; }
.doc pre code { background: none; padding: 0; color: inherit; font-size: .88rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 10px 0 18px; display: block; overflow-x: auto; }
.doc th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 2px solid var(--navy); padding: 6px 10px 6px 0; }
.doc td { border-bottom: 1px solid var(--line); padding: 7px 10px 7px 0; vertical-align: top; }
.doc td code { white-space: nowrap; }
@media (max-width: 860px) {
  .doc-page { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 20px; }
  .doc-menu { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; border-left: 0; padding-left: 0; font-size: .9rem; }
  .doc { padding: 18px 16px 22px; }
}
/* the Tuned table has seven columns: on a phone the core lock goes under the offset */
@media (max-width: 480px) {
  .t.tuned td { font-size: .76rem; }
  .t.tuned td.v { font-size: .98rem; }
  .t.tuned td small { display: block; margin-left: 0; }
  .t.tuned tbody th { font-size: .62rem; letter-spacing: .02em; }
}

/* docs: language switch under the menu, release line under each page (B-47) */
.doc-langs { display: flex; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; }
.doc-langs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.doc-langs a[aria-current] { color: var(--rust); }
.docs-index .doc-langs { border-top: 0; margin: 0 0 6px; }
.doc-version { color: var(--muted); font-size: .85rem; margin: 26px 0 0; }
.docs-index .doc-version { margin: 0 0 14px; }

/* Benchmark details (B-53): a Details button on every hashrate row, a dialog on index.html, a page in bench.html */
.t tr[data-bench] { cursor: pointer; }
.t tr[data-bench]:hover > * { background: rgba(252,187,35,.18); }
.t td.dc { padding-right: 0; width: 1%; }
.dbtn { display: inline-block; font: 700 .68rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--navy);
  text-decoration: none; background: var(--cream); border: 1.5px solid var(--navy); border-radius: 6px; padding: .45em .6em .4em;
  box-shadow: 2px 2px 0 var(--navy); }
.dbtn:hover { background: var(--mustard); }
#bench { width: min(560px, 94vw); max-height: 92vh; border: 2px solid var(--navy); border-radius: 14px; padding: 22px 24px 20px;
  background: var(--paper); color: var(--ink); box-shadow: 6px 6px 0 var(--navy); }
#bench::backdrop { background: rgba(8,16,43,.62); }
#bench .bx { position: absolute; right: 12px; top: 10px; margin: 0; }
#bench .x { font: 400 1.6rem/1 var(--f-body); border: 0; background: none; cursor: pointer; color: var(--navy); }
.bench-body .kick { margin: 0; font: 700 .72rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.bench-body h2 { font: 400 1.6rem var(--f-head); margin: 2px 0 12px; color: var(--navy); }
.bench-body .lab { margin: 14px 0 6px; font: 800 .7rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bench-body .seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border: 2px solid var(--navy);
  border-radius: 8px; overflow: hidden; width: 100%; }
.bench-body .seg button { font: 700 .85rem var(--f-body); padding: .5em .3em; border: 0; border-right: 2px solid var(--navy); background: var(--paper);
  color: var(--navy); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.bench-body .seg button:last-child { border-right: 0; }
.bench-body .seg button[aria-pressed=true] { background: var(--navy); color: var(--mustard); }
.bench-body .seg.sm button { font-size: .78rem; padding: .4em .3em; }
.bench-body .tiles { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; }
.bench-body .tiles button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 6px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; min-width: 0; }
.bench-body .tiles .nm { font: 700 .7rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.bench-body .tiles .th { font: 600 1.05rem/1.2 var(--f-mono); color: var(--navy); }
.bench-body .tiles .tg { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 2.3em; justify-content: flex-start; }
.bench-body .tiles em { font: 700 .56rem/1.3 var(--f-body); font-style: normal; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px;
  padding: .1em .35em; white-space: normal; text-align: center; max-width: 100%; }
.bench-body .tiles em.top { background: var(--navy); color: var(--mustard); }
.bench-body .tiles em.soon { background: var(--rust); color: #fff; }
.bench-body .tiles button[aria-pressed=true] { border-color: var(--navy); background: var(--mustard); box-shadow: 2px 2px 0 var(--navy); }
.bench-body .tiles button[aria-pressed=true] .nm { color: var(--navy); }
.bench-body .big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 10px; }
.bench-body .big div { background: var(--navy); color: var(--cream); border-radius: 10px; padding: 10px 8px 8px; text-align: center; }
.bench-body .big b { display: block; font: 400 1.7rem/1.1 var(--f-head); color: var(--mustard); }
.bench-body .big span { font: 700 .68rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
.bench-body .kv th { text-align: left; color: var(--muted); font-family: var(--f-body); font-size: .78rem; font-weight: 700; text-transform: none; letter-spacing: 0; width: 34%; }
.bench-body .kv td { text-align: left; color: var(--navy); white-space: normal; font-size: .88rem; padding: 6px; }
.bench-body .kv .vf { display: inline-block; white-space: nowrap; margin-right: .6em; }
.bench-body .kv tr.gap td { color: var(--rust); font-family: var(--f-body); font-size: .8rem; }
.bench-body .meta { font-size: .76rem; color: var(--muted); margin: 6px 0 0; }
.bench-body pre.args { font: .82rem/1.5 var(--f-mono); background: var(--navy); color: var(--cream); border-radius: 8px; padding: 12px 14px; margin: 10px 0 0;
  white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; }
.bench-body .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.bench-body .cp { font-size: .9rem; padding: .5em 1.4em .4em; cursor: pointer; }
.bench-body .share { font-size: .82rem; }
.bench-body .note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
body.bench-page { background: var(--paper); }
body.bench-page main { max-width: 560px; margin: 0 auto; padding: 18px 16px 28px; }
body.bench-page .bench-body .cp { width: 100%; text-align: center; }
body.bench-page main > .note { text-align: center; margin-top: 18px; font-size: .8rem; }
body.bench-page main > .note a { color: var(--muted); }
@media (max-width: 600px) {
  .dbtn { font-size: 0; padding: 0; width: 26px; height: 26px; border-radius: 50%; box-shadow: none; background: var(--mustard); text-align: center; }
  .dbtn::before { content: "›"; font: 700 1.2rem/24px var(--f-body); }
  .t td.dc { padding-left: 2px; }
  #bench { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 88vh; padding: 18px 16px; box-shadow: none; }
  .bench-body .big b { font-size: 1.35rem; }
  .bench-body .seg button { font-size: .78rem; }
  .bench-body .tiles .th { font-size: .95rem; }
  .bench-body .tiles .tg { min-height: 2.6em; }
}
