/* garlicoin.org: network data and charts: status, supply, mining, node, activity, uptime, market, api, dev, tipbot, history, report, changes, admin.
   Loaded after /assets/site.css by the pages that need it (their <head> links it). Split out of site.css on
   2026-10-21: keep a rule here only if just these pages use it; anything shared goes in site.css. */

/* ---------- tipbot ---------- */
.commands { display: grid; gap: 14px; }
.command { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.command:first-child { border-top: 0; padding-top: 0; }
.command p { color: var(--muted); }
@media (max-width: 640px) {
  .command { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- home: four services in a 2x2 grid ---------- */
.services.services-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .services.services-4 { grid-template-columns: minmax(0, 1fr); }
}
.charts { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-card { margin: 0; position: relative; }
.chart-card figcaption { margin-bottom: 12px; }
.chart-card figcaption .card-title { margin-bottom: 2px; }
.chart { position: relative; width: 100%; min-height: 210px; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.chart .tick.strong { fill: var(--ink); font-weight: 700; }
.chart .mark { fill: var(--chart); transition: opacity .1s; }
.chart .mark.on { opacity: .75; }
.chart .target { stroke: var(--ink); stroke-width: 1; opacity: .55; }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--chart); opacity: .1; }
.chart .dot { fill: var(--chart); stroke: var(--card); stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart-tip {
  position: absolute;
  transform: translateY(-100%);
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 2;
}
.chart-tip strong { font-weight: 800; }
.chart-table { margin-top: 10px; font-size: .9rem; }
.chart-table summary { cursor: pointer; color: var(--gold-text); font-weight: 700; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: left; padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.chart-table th { color: var(--muted); font-weight: 700; }
@media (max-width: 860px) {
  .charts { grid-template-columns: minmax(0, 1fr); }
}
.chart .halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
/* ---------- status chart range ---------- */
.range-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: -8px; }
.range-tabs button {
  font: inherit; font-size: .9rem; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
.range-tabs button:hover { background: var(--gold-soft); }
.range-tabs button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: transparent; }
/* network agreement card */
.health-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.health-list li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.health-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); transform: translateY(-1px); }
.health-list li.ok::before { background: var(--ok); }
.health-list li.bad::before { background: var(--bad); }
.health-list li.bad { color: var(--bad); font-weight: 700; }
/* big-number grids (supply, mining) */
.figures { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figures .stat-hero { grid-row: auto; }
@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures .stat-hero { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .figures { grid-template-columns: minmax(0, 1fr); }
}
/* progress bar */
.meter { height: 14px; border-radius: 999px; background: var(--gold-soft); overflow: hidden; margin: 12px 0 8px; border: 1px solid var(--line); }
.meter > span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
table.data tr.current td { font-weight: 800; color: var(--ink); background: var(--gold-soft); }
.share-bar { display: inline-block; vertical-align: middle; height: 8px; border-radius: 999px; background: var(--chart); margin-right: 8px; min-width: 2px; }
/* API reference */
.endpoints { display: grid; gap: 18px; }
.endpoint { padding-top: 18px; border-top: 1px solid var(--line); }
.endpoint:first-child { padding-top: 0; border-top: 0; }
.endpoint-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.endpoint p { color: var(--muted); }
#datadir .addr { word-break: normal; overflow-wrap: anywhere; }
table.data tr.current td:first-child { border-radius: 8px 0 0 8px; }
table.data tr.current td:last-child { border-radius: 0 8px 8px 0; }
table.data tr.current td:first-child { padding-left: 8px; }
.cell-sub { display: none; }
.share-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--gold-soft); overflow: hidden; min-width: 40px; }
.share-track .share-bar { display: block; height: 100%; margin: 0; min-width: 3px; }
.share-pct { flex: none; min-width: 3.6em; text-align: right; }
/* mining: tall hero next to a 2x2 of small figures */
.figures-tall-hero .stat-hero { grid-row: span 2; justify-content: center; }
@media (max-width: 860px) {
  /* node: one two-column layout, no gap under the shorter column */
  .node-layout > .side { display: contents; }
  .node-layout #setup { order: 1; }
  .node-layout #config { order: 2; }
  .node-layout #datadir { order: 3; }
  .node-layout #systemd { order: 4; }
  .node-layout > .side > .card { order: 5; }
  .node-layout { gap: 16px; }
  .figures-tall-hero .stat-hero { grid-row: auto; }
}
@media (max-width: 640px) {
  /* figures two per row */
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .figures .stat-hero { grid-column: 1 / -1; }
  .figures:has(.stat-hero) > .stat:last-child:nth-child(even),
  .figures:not(:has(.stat-hero)) > .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .figures .stat { padding: 16px; }
  .figures .stat .label { font-size: .7rem; }
  .figures .stat-sub { font-size: .82rem; }
  table.data .col-block, table.data .col-date { display: none; }
  #pools table.data td:first-child { white-space: normal; }
  .share-track { min-width: 24px; }
  .cell-sub { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
}
.stat-value .unit { font-size: .6em; letter-spacing: .02em; }
.page-head .callout-chat { margin-top: 16px; font-size: .95rem; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; padding-bottom: 14px; }
.toc a { font-weight: 700; color: var(--gold-text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
table.data.ref-table th, table.data.ref-table td { white-space: normal; }
table.data.ref-table tbody th { width: 22%; font-weight: 800; color: var(--ink); padding-right: 16px; }
table.data.ref-table td { padding-right: 12px; }
.vectors { gap: 10px; }
.vectors li { display: grid; gap: 2px; }
.node-map { position: relative; aspect-ratio: 1000 / 394.4; margin: 14px 0 6px; }
.node-land { position: absolute; inset: 0; background: var(--line);
  -webkit-mask: url(/assets/img/world.svg?v=2) center / 100% 100% no-repeat; mask: url(/assets/img/world.svg?v=2) center / 100% 100% no-repeat; }
.node-dots { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node-dots circle { fill: var(--gold); fill-opacity: .8; stroke: var(--gold-deep); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.node-countries { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.node-countries li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.node-countries .nc-name { flex: 0 0 44%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-countries strong { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.node-countries .nc-more { color: var(--muted); }
.node-foot { margin-top: 12px; }
@media (max-width: 640px) {
  .node-countries { grid-template-columns: minmax(0, 1fr); }
  table.data.ref-table tbody th { width: 34%; }
  table.data.ref-table thead { display: none; }
  table.data.ref-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  table.data.ref-table th, table.data.ref-table td { display: block; width: auto; border: 0; padding: 2px 0; }
  table.data.ref-table tbody th { width: auto; }
  table.data.ref-table td + td::before { content: "Testnet: "; color: var(--muted); font-weight: 700; }
}
/* ---- round 4 (2026-10-17): halving, activity, pool history, real supply, uptime, decoder, redeem ---- */
.charts.charts-1 { grid-template-columns: minmax(0, 1fr); }
.chart .col.on .mark { opacity: .75; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
#pool-history .shelf-head .range-tabs { margin: 0; }
.halving-hero { text-align: center; display: grid; justify-items: center; gap: 4px; padding-top: 28px; padding-bottom: 28px;
  background: linear-gradient(135deg, var(--hero-bg), var(--card)); }
.halving-hero .label { margin: 0; }
.hv-count { margin: 4px 0 0; font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 600; font-size: clamp(2.4rem, 9vw, 4.4rem); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.hv-unit { display: block; font-size: 1rem; font-family: "Nunito", system-ui, sans-serif; font-weight: 700; color: var(--muted); }
.hv-time { margin: 8px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--gold-text); }
.hv-meter { width: min(100%, 520px); }
.halving-hero .hero-actions { justify-content: center; margin-top: 10px; }
.hv-compare .stat-hero { grid-column: auto; }
.hv-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hv-timeline li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; font-size: .93rem; }
.hv-timeline .hv-n { font-weight: 800; color: var(--muted); text-align: right; }
.hv-timeline .hv-date { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hv-timeline li.next { background: var(--gold-soft); font-weight: 800; }
.hv-timeline li.next .hv-n { color: var(--gold-text); }
.hv-timeline li.future { color: var(--muted); }
.up-services { display: grid; gap: 20px; }
.up-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.up-head .card-title { margin: 0; }
.up-days { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 34px; }
.up-days span { border-radius: 3px; background: var(--ok); }
.up-days span.some { background: var(--gold); }
.up-days span.bad { background: var(--bad); }
.up-days span.none { background: var(--line); }
.up-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.up-pct { margin: 8px 0 0; }
@media (max-width: 640px) {
  .hv-timeline li { grid-template-columns: 1.6em 1fr; }
  .hv-timeline .hv-date { grid-column: 2; }
  .up-days { gap: 2px; height: 28px; }
}
.chart .col .dot { opacity: 0; }
.chart .col.on .dot { opacity: 1; }
/* ================= 2026-10-17: /market/ ================= */
.mk-hero { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.mk-price { margin: 4px 0 6px; font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mk-sats { font-size: .45em; color: var(--muted); font-weight: 700; margin-left: 6px; white-space: nowrap; }
.mk-facts { display: grid; gap: 10px 24px; margin: 0; }
.mk-hero .mk-facts { grid-template-columns: repeat(3, auto); }
.mk-facts dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.mk-facts dd { margin: 2px 0 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-facts dd small { font-weight: 600; color: var(--muted); font-size: .85rem; }
.mk-method { grid-column: 1 / -1; margin: 0; }
.mk-markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 18px; }
.mk-markets .card { margin: 0; }
.mk-market .mk-facts { grid-template-columns: 1fr 1fr; margin: 14px 0 18px; }
.mk-calc { margin: 14px 0; gap: 10px; }
.mk-calc select { flex: 0 1 auto; }
.mk-out { font-size: 1.05rem; line-height: 1.5; min-height: 3em; }
.mk-book td { padding-top: 5px; padding-bottom: 5px; }
.mk-book tr.ask td:first-child { color: var(--bad); font-weight: 700; }
.mk-book tr.bid td:first-child { color: var(--ok); font-weight: 700; }
.mk-book tr.mk-mid td { text-align: center; color: var(--muted); font-size: .85rem; background: var(--gold-soft); border-radius: 8px; padding: 6px; }
#ch-price .range-tabs { margin: 0 0 12px; }
#mk-book-card .range-tabs { margin: 0 0 8px; }
.chart.chart-vol { min-height: 130px; }
.chart-sub { margin: 14px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 800; }
@media (max-width: 720px) {
  .mk-hero { grid-template-columns: minmax(0, 1fr); }
  .mk-hero .mk-facts { grid-template-columns: 1fr 1fr; }
}
/* mining page: miner cards */
.miner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
/* the game list is built by play.js: keep "Good to know" below the fold until then */
/* the same for other lists the page's script fills in (uptime's services, the market's exchanges): the text under
   them used to show first and then jump down a whole screen */
.up-services:empty, .mk-markets:empty { min-height: 100vh; }
@media (min-width: 1001px) {
  /* home, Spend GRLC: the Marketplace and shop tiles are hidden while their lists are empty; the rest share the row */
  .fun-grid.spend-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
.hv-compare [data-h="day-now"], .hv-compare [data-h="day-next"] { min-height: 2lh; }
/* /halving/ */
#r-month { min-width: 207px; }
/* /report/: the month list arrives with the data */
.report-grid:empty { min-height: 342px; }
@media (max-width: 600px) {
  .halving-hero [data-h="date"], .halving-hero [data-h="era"] { min-height: 2lh; }
  .hv-compare [data-h="day-now"], .hv-compare [data-h="day-next"] { min-height: 3lh; }
  .hv-compare [data-h="infl-sub"], #act-figures [data-a="fees30_sub"], #act-figures [data-a="busy_sub"] { min-height: 2lh; }
  #r-title { min-height: 3lh; }
  .report-grid:empty { min-height: 100vh; }
}
#electrum .health-list li { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
#electrum .health-list + p { margin-top: 12px; }
/* ---------- /report/ ---------- */
.report-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.report-tools select { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-bottom: 20px; }
.report-grid .stat-value { font-size: 1.7rem; }
.report-nt .stat-value { color: var(--muted); font-size: 1.1rem; }
/* ================= 2026-10-19: /history/ timeline ================= */
.hist-chain { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-size: .85em; font-weight: 800; white-space: nowrap; }
.hist-year { position: relative; margin: 26px 0 0; }
.hist-y { margin: 0 0 10px; font-size: 1.6rem; }
.hist-list { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--gold); display: grid; gap: 12px; }
.hist-list li { position: relative; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.hist-list li::before { content: ""; position: absolute; left: -27px; top: 20px; width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 3px solid var(--gold); }
.hist-list li.chain::before { background: var(--gold); }
.hist-list li.big { border-color: var(--gold); background: var(--gold-soft); }
.hist-list time { font-weight: 800; color: var(--muted); font-size: .92rem; }
.hist-list li.chain time::after { content: " ⛓"; }
@media (max-width: 640px) {
  .hist-list li { grid-template-columns: 1fr; }
}
/* /changes/: what's new */
.change-when { margin: 0 0 2px; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
/* /admin/: the private overview */
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ad-kpi { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ad-kpi strong { font-size: 1.35rem; }
.ad-kpi span { font-size: .85rem; color: var(--muted); }
.ad-kpi.bad { border-color: #e6b3ae; }
.ad-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 22px; }
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .92rem; }
.ad-list li { overflow-wrap: anywhere; }
.ad-rank { margin: 0; padding-left: 1.4em; font-size: .9rem; }
.ad-rank li span { overflow-wrap: anywhere; }
.ad-rank li strong { float: right; margin-left: 8px; }
.ad-pre { white-space: pre-wrap; font-size: .78rem; max-height: 220px; overflow: auto; background: var(--bg, #fbf5e6); padding: 10px; border-radius: 10px; }
.admin .chart-card { margin: 10px 0; }
/* /admin/ controls */
.ad-switches { display: grid; gap: 8px; margin-bottom: 8px; }
.ad-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.ad-switch.bad { border-color: #e6b3ae; color: #b3261e; }
.ad-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-in { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; flex: 1 1 160px; }
