/* /halving (src/pages/halving.js, public/static/halving.js). Phone redesign 7 Nov: countdown first, coin cards, 44 px taps. */
.pg-hvm .hvm .lead { margin-bottom: 0; }
@media (max-width: 900px) { .pg-hvm .hw-store > .hw-aside { order: 2; } }   /* the tools menu after the answer on phones */
.hvm-ci { display: inline-block; flex: none; vertical-align: middle; border-radius: 50%; object-fit: contain; }
.hvm-cb { display: inline-grid; place-items: center; background: #64748b; color: #fff; font-size: 11px; font-weight: 700; }
.hvm-grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .hvm-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }

/* the countdown */
.hvm-hero { background: #13243a; color: #fff; border-radius: 18px; padding: 14px 14px 16px; }
.hvm-hero .hvm-ci { background: #fff; padding: 2px; box-sizing: border-box; }   /* dark logos (LTC, HNS) on navy */
.hvm-pk { margin: 0 0 6px; font-size: 13px; color: #b8c4d3; }
.hvm-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 6px; margin: 0 0 14px; }
.hvm-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 2px; border-radius: 12px;
  border: 1.5px solid #2d4566; background: #1f3450; color: #dbe4ef; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hvm-pick small { font-size: 11px; font-weight: 500; color: #9fb0c4; }
.hvm-pick[aria-pressed="true"] { border-color: #fb923c; background: #2a3a52; color: #fff; box-shadow: 0 0 0 2px rgb(251 146 60 / .25); }
.hvm-pick:focus-visible, .hvm-btn:focus-visible { outline: 3px solid #fb923c; outline-offset: 2px; }
.hvm-hero h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 20px; line-height: 1.2; color: #fff; }
.hvm-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hvm-clock div { display: grid; justify-items: center; padding: 8px 2px 6px; border-radius: 12px; background: #24395a; }
.hvm-clock b { font-size: 30px; line-height: 1.05; font-weight: 700; color: #fb923c; font-variant-numeric: tabular-nums; }
.hvm-clock small { font-size: 12px; color: #c3cedb; }
.hvm-when { margin: 10px 0 0; font-size: 15px; color: #dbe4ef; }
.hvm-reward { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #0d1a2b; font-size: 15px; }
.hvm-reward .k { width: 100%; font-size: 13px; color: #b8c4d3; }
.hvm-reward s { color: #9fb0c4; text-decoration-thickness: 1.5px; }
.hvm-reward b { font-size: 20px; color: #fff; }
.hvm-era { margin: 12px 0 0; }
.hvm-bar { display: block; height: 10px; border-radius: 5px; background: #2d4566; overflow: hidden; }
.hvm-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #fb923c, #ffc56b); }
.hvm-era-t { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; font-size: 13px; color: #c3cedb; }
.hvm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 12px 0 0; }
.hvm-facts div { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid #2d4566; }
.hvm-facts dt { font-size: 12px; color: #9fb0c4; }
.hvm-facts dd { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hvm-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.hvm-acts[hidden] { display: none; }
.hvm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #3a5577;
  background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hvm-btn:active { background: #24395a; }
.hvm-toast { margin: 8px 0 0; font-size: 13px; color: #9fe6c3; }
.hvm-toast:empty { display: none; }

/* what it means for miners */
.hvm-miners { padding: 16px; border: 1px solid hsl(var(--border)); border-radius: 16px; background: hsl(var(--card)); }
.hvm-miners h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 19px; line-height: 1.25; }
.hvm-miners h3 { margin: 18px 0 8px; font-size: 16px; }
.hvm-srow { display: grid; grid-template-columns: minmax(84px, auto) 1fr auto; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; }
.hvm-sbar { height: 12px; border-radius: 6px; background: hsl(var(--muted)); box-shadow: inset 0 0 0 1px hsl(var(--border)); overflow: hidden; }
.hvm-sbar i { display: block; height: 100%; background: var(--green-500); transition: width .3s; }
.hvm-srow.after .hvm-sbar i { background: #fb923c; }
.hvm-srow b { font-variant-numeric: tabular-nums; }
.hvm-note { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: hsl(var(--muted-foreground)); }
.hvm-f { display: block; margin: 16px 0 0; }
.hvm-lab { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.hvm-help { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: hsl(var(--muted-foreground)); }
.hvm-box { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 1.5px solid hsl(var(--field-border)); border-radius: 12px; background: hsl(var(--card)); }
.hvm-box:focus-within { border-color: var(--pos); box-shadow: 0 0 0 3px rgb(34 197 94 / .18); }
.hvm-box input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 16px; }
.hvm-box .suf { color: hsl(var(--muted-foreground)); font-size: 15px; white-space: nowrap; }
.hvm-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.hvm-chip { min-height: 48px; padding: 4px 6px; border-radius: 12px; border: 1.5px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.15; text-align: center; cursor: pointer; }
.hvm-chip small { display: block; font-size: 11px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.hvm-chip[aria-pressed="true"] { border-color: var(--pos); background: var(--green-100); }
.hvm-best { list-style: none; margin: 0; padding: 0; border: 1px solid hsl(var(--border)); border-radius: 14px; overflow: hidden; }
.hvm-best li + li { border-top: 1px solid hsl(var(--border)); }
.hvm-best li[hidden] { display: none; }
.hvm-best a { display: grid; grid-template-columns: 22px 52px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 64px; padding: 8px 12px; color: inherit; text-decoration: none; }
.hvm-best a:hover .nm { text-decoration: underline; }
.hvm-best .rk { font-size: 13px; font-weight: 700; text-align: center; color: hsl(var(--muted-foreground)); }
.hvm-best .ph { display: grid; place-items: center; width: 52px; height: 39px; border-radius: 8px; background: #f4f6f8; overflow: hidden; }
.hvm-best .ph img { width: 52px; height: 39px; object-fit: contain; }
.hvm-best .nm { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.hvm-best .pf { display: inline-block; margin-top: 2px; border-radius: 6px; font-size: 16px; font-weight: 700; white-space: nowrap; color: var(--pos); font-variant-numeric: tabular-nums; }
.hvm-best .pf.neg { color: var(--neg); }
.hvm-best .pf small { font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.hvm-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; }
@keyframes hvm-fl { from { background: #fff3b0; } to { background: transparent; } }
.hvm-flash { animation: hvm-fl .6s ease-out; }

/* every coin with a schedule: cards */
.hvm-coins { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.hvm-coin { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); overflow: hidden; }
.hvm-coin.is-on { border-color: #fb923c; box-shadow: 0 0 0 2px rgb(251 146 60 / .25); }
.hvm-coin-b { display: block; width: 100%; padding: 12px 12px 10px; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.hvm-coin-b:focus-visible { outline: 3px solid #fb923c; outline-offset: -3px; }
.hvm-ctop { display: flex; align-items: center; gap: 10px; }
.hvm-ctop .nm { flex: 1; min-width: 0; }
.hvm-ctop .nm b { display: block; font-size: 16px; line-height: 1.2; }
.hvm-ctop .nm span, .hvm-ctop .dl span { font-size: 13px; color: hsl(var(--muted-foreground)); }
.hvm-ctop .dl { text-align: end; line-height: 1.1; }
.hvm-ctop .dl b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hvm-cmid { display: block; margin-top: 8px; font-size: 14px; }
.hvm-cmid > span { color: hsl(var(--muted-foreground)); }
.hvm-cmid b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hvm-coin .hvm-bar { margin-top: 8px; height: 6px; background: hsl(var(--muted)); box-shadow: inset 0 0 0 1px hsl(var(--border)); }
.hvm-coin .hvm-era-t { margin-top: 4px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.hvm-coin-l { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-top: 1px solid hsl(var(--border)); font-size: 14px; font-weight: 600; }
:root[data-theme="dark"] .hvm-best .ph { background: #e9edf1; }
:root[data-theme="dark"] .hvm-chip[aria-pressed="true"] { background: var(--green-100); }
@media (min-width: 641px) { .hvm-clock b { font-size: 40px; } .hvm-hero { padding: 18px 18px 20px; } }
@media (max-width: 380px) { .hvm-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .hvm-flash { animation: none; } .hvm-sbar i { transition: none; } }
@media print { .hvm-acts, .hvm-chips { display: none; } }
