/* style.css - Crypto Connection pool site (v2, 08/11/2026).
 * Look: the hardware of a mining rig. Aluminium grey background, graphite text, circuit-board teal for actions,
 * LED amber only for "live" states. Barlow Semi Condensed for headings and readouts, Barlow for text (self-hosted,
 * SIL Open Font License, see fonts/OFL.txt). No inline styles anywhere (the site CSP is style-src 'self').
 * 18/11/2026: language menu (12 languages) instead of the row of flags; Barlow latin-ext and vietnamese subsets.
 * 19/11/2026: miners map of the home page (one colour per coin). */

/* Barlow subsets (18/11/2026, @fontsource 5.3): latin, latin-ext (Polish...) and vietnamese; Cyrillic, Chinese and Korean use the
   system fonts of the fallback list */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #eef1f2;      /* aluminium */
  --panel: #ffffff;
  --ink: #1d2329;     /* graphite */
  --mut: #58636d;     /* steel (AA on --bg and --panel) */
  --line: #d5dbdf;
  --acc: #0e6e5c;     /* circuit-board teal: links, buttons, chart */
  --acc2: #0a5547;
  --led: #1fa45a;     /* LED green: live states only (Julien 09/11/2026: green instead of amber) */
  --ok: #1f7a4d; --warn: #a15c07; --bad: #b42318;
  --code: #e4e9eb;
  --shroud: #2a3138;  /* GPU card body */
  --shroud-ink: #e9edef;
  --rail: #9aa5ae;    /* frame extrusions */
  --hh: 0px;          /* height of the sticky header, set by app.js */
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c; --panel: #1b2126; --ink: #e4e8ea; --mut: #98a3ac; --line: #2c343b;
    --acc: #3fbfa3; --acc2: #6ad3bb; --led: #4ade80;
    --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --code: #20272d;
    --shroud: #262e35; --shroud-ink: #e4e8ea; --rail: #4a545c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--text); -webkit-text-size-adjust: 100%; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc2); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.top { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 6; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 21px/1 var(--display); letter-spacing: .01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.logo { width: 72px; height: 36px; flex: none; }
.lg-frame { fill: none; stroke: currentColor; stroke-width: 2; }
.lg-leg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lg-card { fill: currentColor; }
.lg-fan { fill: var(--panel); }
.lg-led { fill: var(--led); }
nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
nav a { color: var(--mut); font: 600 16px/1 var(--display); padding: 9px 10px; border-radius: 6px; }
nav a:hover { color: var(--ink); background: var(--bg); text-decoration: none; }
nav a.on { color: var(--ink); background: var(--bg); box-shadow: inset 0 -2px 0 var(--acc); }

/* language menu (inline SVG flags, see LANGS in app.js): button with the current flag and code, grid of the languages */
.langs { position: relative; display: flex; align-items: center; }
.langbtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  color: var(--ink); font: 600 15px/1 var(--display); letter-spacing: .03em; cursor: pointer; }
.langbtn:hover, .langbtn[aria-expanded="true"] { border-color: var(--acc); }
.langbtn .caret { color: var(--mut); font-size: 12px; }
.langbtn svg, .langopt svg { width: 24px; height: 16px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); display: block; }
.langmenu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  width: min(380px, calc(100vw - 32px)); padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18); }
.langmenu[hidden] { display: none; }
.langopt { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink);
  font: 15px/1.25 var(--text); text-align: left; cursor: pointer; }
.langopt:hover, .langopt:focus-visible { background: var(--bg); }
.langopt.on { background: var(--bg); box-shadow: inset 3px 0 0 var(--acc); font-weight: 600; }
@media (max-width: 380px) { .langmenu { grid-template-columns: 1fr; } }
/* Korean breaks lines between words (spaces), not inside them */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

/* shortcut bar under the header: coin chips + sections of the page */
.jump { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: var(--hh); z-index: 5; }
.jumpin { display: flex; align-items: center; gap: 6px; min-height: 44px; overflow-x: auto; scrollbar-width: thin; }
.jumpin:empty { min-height: 0; }
.jump:has(.jumpin:empty) { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: 600 14px/1.4 var(--display); cursor: pointer; }
.chip:hover { border-color: var(--acc); color: var(--ink); text-decoration: none; }
.chip.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.jlabel { color: var(--mut); font-size: 14px; white-space: nowrap; margin-left: 8px; }
.jsep { width: 1px; align-self: stretch; margin: 10px 4px; background: var(--line); flex: none; }
button.jbtn { white-space: nowrap; border: 0; background: transparent; color: var(--acc); font: 600 14px/1.4 var(--display); padding: 4px 8px; border-radius: 6px; cursor: pointer; }
button.jbtn:hover { background: var(--panel); color: var(--acc2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rail); flex: none; }
.dot.live { background: var(--led); box-shadow: 0 0 0 3px color-mix(in srgb, var(--led) 25%, transparent); }

/* ---------- page ---------- */
main.wrap { padding-top: 30px; padding-bottom: 48px; min-height: 60vh; }
h1 { font: 700 36px/1.1 var(--display); margin: 0 0 8px; letter-spacing: .005em; }
h2 { font: 600 23px/1.2 var(--display); margin: 0 0 12px; }
h3 { font: 600 18px/1.25 var(--display); margin: 18px 0 8px; }
.lead { color: var(--mut); margin: 0 0 24px; max-width: 68ch; }
p { max-width: 75ch; }
.sec { margin: 0 0 36px; scroll-margin-top: calc(var(--hh) + 60px); }
.sec > h2 { padding-left: 12px; border-left: 4px solid var(--acc); }
.sub { scroll-margin-top: calc(var(--hh) + 60px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.note { color: var(--mut); font-size: 14px; }
.err { color: var(--bad); }
.empty { color: var(--mut); padding: 10px 0; }
.back { display: inline-block; margin-bottom: 10px; font: 600 15px/1 var(--display); }

/* home hero: name + address lookup, then the rig */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 16px 32px; align-items: end; margin-bottom: 18px; }
.hero h1 { font-size: 46px; margin: 0; }
.hero .tagline { color: var(--mut); margin: 8px 0 0; max-width: 56ch; }   /* 13/11/2026: line under the name (SEO) */
.lookup label { display: block; font: 600 16px/1.3 var(--display); margin-bottom: 6px; }
.lookup .row { display: flex; gap: 8px; }
.lookup input { flex: 1; min-width: 0; }

/* the rig: one GPU card per pool, in an open frame */
.rig { margin: 0 0 40px; }
.rail { height: 12px; border-radius: 3px; background: var(--rail);
  background-image: radial-gradient(circle at 50% 50%, var(--bg) 0 2px, transparent 2.5px); background-size: 40px 12px; background-position: 20px 0; }
/* balanced rows (Julien 11/11/2026: no card left alone on a second row): app.js sets --cols so that the rows hold the
   same number of cards (5 pools on a wide screen: one row of 5, like the 5 cards of the rig; narrower: 3 + 2), the
   last row is centred */
.slots { --cols: 4; --gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); padding: 14px 10px; }
.slots > .gpu { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
/* narrow cards (5 in a row): smaller fans and text so that every figure stays on one line */
.slots.narrow .fans { padding: 12px 10px 4px; }
.slots.narrow .fan { width: 62px; height: 62px; }
.slots.narrow .plate { padding: 6px 12px 12px; }
.slots.narrow .plate .name b { font-size: 20px; }
.slots.narrow .plate .name span { font-size: 13px; }
.slots.narrow .plate .algo { font-size: 13px; }
.slots.narrow .plate dl { font-size: 13px; gap: 2px 6px; }
.slots.narrow .state { font-size: 13px; }
/* "Share of the network" has a short form for the narrow cards */
.plate dt .ls { display: none; }
.slots.narrow .plate dt .lf { display: none; }
.slots.narrow .plate dt .ls { display: inline; }
.gpu { display: flex; flex-direction: column; color: var(--shroud-ink); background: var(--shroud); border-radius: 6px; overflow: hidden;
  border: 1px solid var(--shroud); }
.gpu:hover { text-decoration: none; color: var(--shroud-ink); border-color: var(--acc); }
.gpu:focus-visible { outline-offset: 3px; }
.bracket { height: 10px; background: var(--rail); background-image: repeating-linear-gradient(90deg, transparent 0 10px, var(--shroud) 10px 22px); background-size: 100% 4px; background-repeat: no-repeat; background-position: 0 3px; }
.fans { display: flex; justify-content: space-around; padding: 14px 14px 6px; }
.fan { width: 78px; height: 78px; }
.fan-ring { fill: none; stroke: color-mix(in srgb, var(--shroud-ink) 30%, transparent); stroke-width: 3; }
.fan-blades path { fill: color-mix(in srgb, var(--shroud-ink) 62%, transparent); }
.fan-blades .fan-box { fill: transparent; }
.fan-hub { fill: var(--shroud); stroke: color-mix(in srgb, var(--shroud-ink) 45%, transparent); stroke-width: 3; }
.gpu.spin .fan-blades { transform-box: fill-box; transform-origin: center; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* fans are the mining indicator Julien asked for: with "reduce motion" (Windows: Animation effects off) they keep turning, slowly */
@media (prefers-reduced-motion: reduce) { .gpu.spin .fan-blades { animation-duration: 6s; } }
.plate { padding: 8px 16px 14px; flex: 1; display: flex; flex-direction: column; }
.plate .name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.plate .name b { font: 700 22px/1.1 var(--display); }
.plate .name span { font: 500 15px/1 var(--display); opacity: .75; }
.plate .algo { font-size: 14px; opacity: .75; margin-bottom: 8px; }
.plate dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
/* one line per figure: a long label is cut with "…" rather than pushing its row onto two lines */
.plate dt { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.state { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font: 600 14px/1.3 var(--display); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--rail); flex: none; }
.gpu.live .led { background: var(--led); box-shadow: 0 0 8px var(--led); }
.gpu.free { background: transparent; border: 2px dashed var(--rail); color: var(--mut); justify-content: center; min-height: 220px; padding: 18px; }
.gpu.free:hover { color: var(--mut); border-color: var(--acc); }
.gpu.free b { font: 600 20px/1.2 var(--display); color: var(--ink); }

/* readout: the figures of a pool, like an instrument panel */
.readout { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cell { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.cell .k { color: var(--mut); font-size: 14px; }
.cell .v { font: 600 28px/1.15 var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; overflow-wrap: anywhere; }
.cell .n { color: var(--mut); font-size: 13px; margin-top: 2px; }
.cell .v .u { font-size: .55em; margin-left: .3em; white-space: nowrap; letter-spacing: .02em; }
.panel > p:first-child, .sync p { margin-top: 0; }
.sync p:last-of-type { margin-bottom: 0; }
.sync { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--warn); border-radius: 8px; background: var(--panel); }
.bar-sync { height: 8px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar-sync span { display: block; height: 100%; background: var(--warn); width: 0; }

/* tables */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
th { color: var(--mut); font-weight: 600; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.nw, th.nw { white-space: nowrap; }
.scroll { overflow-x: auto; }
.tablebox { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.mono { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 99px; font-size: 13px; border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: var(--ok); } .tag.warn { color: var(--warn); border-color: var(--warn); } .tag.bad { color: var(--bad); border-color: var(--bad); }
tr.go { cursor: pointer; }
tr.go:hover td { background: var(--bg); }
.coinname { font: 600 17px/1.2 var(--display); }

pre.cmd { background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; overflow-x: auto; margin: 6px 0 12px; }
pre.cmd code { font-family: var(--mono); font-size: 13px; }

/* forms */
.form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
input, select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); font: inherit; }
.form input, .form select { flex: 1; min-width: 220px; }
input::placeholder { color: var(--mut); opacity: .85; }
.btn, .form button { padding: 10px 18px; border-radius: 6px; border: 0; background: var(--acc); color: #fff; font: 600 16px/1.2 var(--display); cursor: pointer; white-space: nowrap; }
.btn:hover, .form button:hover { background: var(--acc2); color: #fff; text-decoration: none; }
@media (prefers-color-scheme: dark) { .btn, .form button { color: #0b1512; } .btn:hover, .form button:hover { color: #0b1512; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; align-items: center; }
.filters .chip { font-size: 14px; }
.count { color: var(--mut); font-size: 14px; margin: 0 0 8px; }
.collapsed tr.more { display: none; }
.linkbtn { border: 0; background: none; color: var(--acc); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

canvas.chart { width: 100%; height: 200px; display: block; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:first-child { border-top: 0; }
details summary { cursor: pointer; font: 600 18px/1.3 var(--display); }
.foot { color: var(--mut); font-size: 14px; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid var(--line); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.files { list-style: none; margin: 0 0 8px; padding: 0; }
.files li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; }
.files .dl { flex: none; }
.fmeta { min-width: 0; flex: 1; }
.fname { font-weight: 600; word-break: break-all; }
ul.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 22px; }
ul.feats li { padding-left: 24px; position: relative; }
ul.feats li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 2px; background: var(--acc); }
ol.steps { padding-left: 24px; margin: 0; } ol.steps > li { margin-bottom: 12px; padding-left: 4px; }
ol.steps > li::marker { font: 700 18px var(--display); color: var(--acc); }
ul.links { padding-left: 18px; margin: 8px 0 0; } ul.links li { margin-bottom: 4px; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { position: static; }
  .bar { gap: 8px 12px; padding-top: 8px; padding-bottom: 6px; }
  .brand { flex: 1; font-size: 19px; }
  nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 2px; margin: 0 -6px; }
  nav a { white-space: nowrap; padding: 8px; }
  h1 { font-size: 30px; }
  .hero h1 { font-size: 32px; }
  .lookup .row { flex-direction: column; }
  /* phone: each card lies on its side, fans on the left, readings on the right */
  .slots { --gap: 10px; padding: 10px 6px; }
  .slots > .gpu { flex-basis: 100%; }
  .gpu { display: grid; grid-template-columns: auto 1fr; }
  .bracket { grid-column: 1 / -1; }
  .fans { flex-direction: column; justify-content: center; gap: 8px; padding: 10px 4px 10px 12px; }
  .fan { width: 56px; height: 56px; }
  .plate { padding: 10px 14px 12px; }
  .plate .name b { font-size: 20px; }
  .gpu.free { display: flex; min-height: 0; padding: 14px 16px; }
  .cell .v { font-size: 24px; }
  .files li { flex-direction: column; gap: 8px; }
  th, td { padding: 8px; font-size: 14px; }
}

/* coin logos (config.js logo): on a light round tile so dark or red logos stay readable on every background */
.clogo { width: 1.3em; height: 1.3em; border-radius: 50%; background: #fff; padding: .12em; box-sizing: border-box; object-fit: contain; vertical-align: -.28em; margin-right: .4em; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
h1 .clogo { width: 1.1em; height: 1.1em; vertical-align: -.18em; }
.plate .name b .clogo { width: 1.25em; height: 1.25em; vertical-align: -.25em; }
.chip .clogo { width: 1.25em; height: 1.25em; margin-right: .3em; vertical-align: -.3em; }
/* header logo: the fans of the graphics card turn (slowly when the visitor asks for reduced motion) */
.logo .lfan { transform-box: fill-box; transform-origin: center; animation: spin 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .logo .lfan { animation-duration: 8s; } }
/* block notifications (top right) */
#toasts { position: fixed; top: calc(var(--hh, 64px) + 10px); right: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 6px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid #f2a516; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); padding: 10px 8px 10px 12px; font: 600 15px/1.3 var(--display); animation: toastin .25s ease-out; }
.toast a { display: flex; align-items: center; gap: 2px; color: inherit; text-decoration: none; flex: 1; }
.toast a:hover { text-decoration: underline; }
.toast .tclose { border: 0; background: none; color: var(--mut); font-size: 20px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.toast.out { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .3s; }
@keyframes toastin { from { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast.out { transition: none; } }
@media (max-width: 600px) { #toasts { top: auto; bottom: 16px; left: 16px; right: 16px; max-width: none; } }

/* status page (#/status) and luck history (12/11/2026) */
.stbanner { border: 1px solid var(--line); border-left: 6px solid var(--ok); border-radius: 8px; background: var(--panel); padding: 14px 18px; margin: 0 0 28px; }
.stbanner.warn { border-left-color: var(--warn); } .stbanner.bad { border-left-color: var(--bad); }
.stbanner p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.stbanner b { font: 600 22px/1.2 var(--display); }
.stbanner .dot { width: 12px; height: 12px; background: var(--warn); }
.stbanner.bad .dot { background: var(--bad); }
.stbanner .dot.live { background: var(--led); }
.stbanner ul { margin: 10px 0 0; padding-left: 20px; }
.stbanner li { margin-bottom: 3px; } .stbanner li.bad { color: var(--bad); } .stbanner li.warn { color: var(--warn); }
.stgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.stcard { padding: 4px 18px 8px; }
.stcard.warn { border-top: 3px solid var(--warn); } .stcard.bad { border-top: 3px solid var(--bad); } .stcard.ok { border-top: 3px solid var(--ok); }
.stcard h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 600 20px/1.2 var(--display); margin: 12px 0 6px; }
.stcard h3 a { color: var(--ink); }
.strow { display: grid; grid-template-columns: 112px 1fr; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.strow:last-child { border-bottom: 0; }
.strow .k { color: var(--mut); font-size: 14px; padding-top: 1px; }
.strow .v { overflow-wrap: anywhere; min-width: 0; }
.strow .k { min-width: 0; }
.strow .v .tag { margin: 0 4px 3px 0; }
.strow .sub { color: var(--mut); font-size: 14px; }
.cell .v .good { color: var(--ok); } .cell .v .low { color: var(--warn); }
.luckbox { margin-top: 14px; }
.luckbox h3 { margin: 0 0 8px; font: 600 17px/1.2 var(--display); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--mut); font-size: 13px; margin: 8px 0 0; }
.legend .li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.legend .lg.ok { background: var(--ok); } .legend .lg.warn { background: var(--warn); } .legend .lg.bad { background: var(--bad); }
.legend .lg.dash { height: 0; width: 16px; border-radius: 0; border-top: 2px dashed var(--ink); }
#lucktip { min-height: 1.4em; margin: 6px 0 0; }
@media (max-width: 640px) {
  .stgrid { grid-template-columns: 1fr; }
  .strow { grid-template-columns: 1fr; gap: 2px; }
  .stcard { padding: 2px 14px 6px; }
}

/* 12/11/2026: red warning box with an example of the Daler user name (Julien): FAQ, My stats, Get started,
   Downloads, Daler page (not the home page) */
.alertbox { border: 2px solid var(--bad); border-left-width: 6px; border-radius: 6px; padding: 12px 14px; margin: 12px 0 18px;
  background: color-mix(in srgb, var(--bad) 7%, transparent); }
.alertbox p { margin: 5px 0; }
.alertbox .ab-title { color: var(--bad); font-weight: 700; font-size: 16px; margin-top: 0; }
.alertbox .ab-lbl { font-weight: 600; }
.alertbox code { font-size: 13px; word-break: break-all; padding: 1px 5px; border-radius: 3px; }
.alertbox .ab-ok { color: var(--ok); border: 1px solid var(--ok); }
.alertbox .ab-bad { color: var(--bad); border: 1px solid var(--bad); text-decoration: line-through; }

/* 19/11/2026: miners map of the home page (countries of the miners of the last 24 hours, one colour per coin) */
.geo { padding: 14px 16px; }
.geolead { margin: 0 0 10px; color: var(--mut); }
.geolead b { color: var(--ink); white-space: nowrap; }
.geolegend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.gfil { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px;
  background: var(--panel); color: var(--ink); font: 600 14px/1.4 var(--display); cursor: pointer; }
.gfil:hover { border-color: var(--acc); }
.gfil.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); background: var(--bg); }
.gfil:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.gfil .sub { color: var(--mut); font-weight: 500; }
.gsw { width: 10px; height: 10px; flex: none; display: inline-block; vertical-align: -1px; }
.geomap { margin: 0 -4px; }
.geomap svg { display: block; width: 100%; height: auto; }
.geomap .ct { fill: var(--line); stroke: var(--panel); stroke-width: 0.5; }
.geomap .ct.on { fill: var(--acc); fill-opacity: 0.25; cursor: pointer; }
.geomap .ct.on:hover, .geomap .ct.on.sel { fill-opacity: 0.45; }
.geomap .gdot { cursor: pointer; }
.geomap .gdot path { stroke: var(--panel); stroke-width: 0.8; }
.geomap .gring { fill: none; stroke: var(--panel); stroke-width: 1.5; }
.geomap .gdot:hover .gring, .geomap .gdot.sel .gring { stroke: var(--ink); stroke-width: 2; }
.geoinfo { min-height: 1.55em; margin: 8px 0 6px; font-weight: 600; }
.geolist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 14px; }
.geoitem { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.geoitem:hover, .geoitem.sel { background: var(--bg); }
.geoitem:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.gcoins { display: inline-flex; flex-wrap: wrap; gap: 2px 10px; }
.gcoin { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); font-size: 14px; white-space: nowrap; }
@media (max-width: 560px) { .geomap { margin: 0 -10px; } }
