/* Add-on for js/welcome-fill.js: welcome tab coin cards + Latest blocks (JD, 2026-12-03). All classes start wf-. */
/* While the cards are on the page, hide room.js's own hero, SHA-256 / Scrypt strips, how-to-join steps and the "# welcome" header. */
.pane.wf-on > .wl-hero, .pane.wf-on > .pt-row, .pane.wf-on > .wl-steps { display: none }
/* The welcome cards took over pool-stats: its sidebar entry is hidden (the view still opens from "Full pool stats →"). */
html.wf-nostats .chans li:has(> button[data-key="v:stats"]) { display: none }
.stage:has(#stage > .pane.wf-on) > #stageHead { display: none }
.wf-welcome.wf-failed { display: none }

.wf-welcome .sec { display: flex; align-items: baseline; justify-content: space-between; margin: var(--sp-5) 0 var(--sp-3) }
.wf-welcome .sec:first-child { margin-top: 0 }
.wf-welcome .sec.wf-right { justify-content: flex-end }
.wf-welcome .sec h2 { margin: 0; font: 600 var(--fs-section) var(--font-display); color: var(--text) }
.wf-welcome .sec a { color: var(--accent-text); font-size: var(--fs-small); text-decoration: none }
.wf-welcome .sec a:hover { text-decoration: underline }

.wf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) }
.wf-card { padding: var(--sp-4) var(--sp-5); display: flex; flex-direction: column; border-top: 2px solid var(--cc) }
.wf-bch { --cc: var(--coin-bch) } .wf-btc { --cc: var(--coin-btc) } .wf-ltc { --cc: var(--coin-ltc) }
.wf-head { display: flex; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-4) }
.wf-head h3 { margin: 0; font: 600 18px var(--font-display); color: var(--text); flex: 1; min-width: 0 }
.wf-icons { display: flex; flex: none } .wf-icons img + img { margin-left: -10px }
.wf-tag { font: 500 var(--fs-label) var(--font-display); color: var(--gold); border: 1px solid var(--gold-line); border-radius: var(--r-round); padding: 2px 10px; white-space: nowrap }
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-4); flex: 1 }
.wf-k { font: 500 11px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-2) }
.wf-ps { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; align-items: baseline }
.wf-ps dt { color: var(--text-muted); font-size: var(--fs-small) }
.wf-ps dd { margin: 0; font: 500 15px var(--font-mono); color: var(--text) }
.wf-ps-big dd { font-size: 18px }
.wf-big { font: 500 22px var(--font-mono); color: var(--text); line-height: 1.25 }
.wf-big small { font-size: var(--fs-label); color: var(--text-muted) }
.wf-wrap { font-size: 18px } .wf-dot { color: var(--text-faint) }
.wf-usd { margin-top: 4px; font-size: var(--fs-small); color: var(--gold) }

.wf-blocks { padding: 0; overflow: hidden }
.wf-btop { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line) }
.wf-btop b { font: 600 15px var(--font-display); color: var(--text) } .wf-btop span { color: var(--text-muted); font-size: var(--fs-small) }
.wf-filter { display: flex; gap: 6px; flex-wrap: wrap }
.wf-filter button { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-muted); border-radius: var(--r-round); padding: 3px 12px; font-size: var(--fs-label); cursor: pointer }
.wf-filter button[aria-pressed=true] { color: var(--text); border-color: var(--accent-line) }
.wf-scroll { overflow-x: auto }
.wf-blocks table { width: 100%; border-collapse: collapse; font-size: var(--fs-small) }
.wf-blocks th { text-align: left; font: 500 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line) }
.wf-blocks td { padding: 10px var(--sp-4); border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text) }
.wf-blocks tr:last-child td { border-bottom: 0 } .wf-blocks tbody tr:hover { background: var(--surface-2) }
.wf-num, .wf-mono { font-family: var(--font-mono); font-weight: 500 } .wf-muted { color: var(--text-muted) !important }
.wf-hlink { color: var(--accent-text); text-decoration: none } .wf-hlink:hover { text-decoration: underline }
.wf-coin { display: inline-flex; align-items: center; gap: 8px; font-weight: 600 }
.wf-pill { font-size: var(--fs-label); border: 1px solid var(--line-strong); border-radius: var(--r-round); padding: 1px 9px; color: var(--text-muted) } .wf-pill.pool { color: var(--text) }
.wf-st { font-size: var(--fs-label); border-radius: var(--r-round); padding: 2px 9px; color: var(--text-muted); background: var(--surface-2) }
.wf-st.ok { color: var(--success); background: var(--success-wash) }
.wf-st.paid { color: var(--gold); background: var(--gold-wash) }
.wf-st.bad { color: var(--danger); background: var(--danger-wash) }
.wf-note { padding: var(--sp-4); margin: 0 }
.wf-more { display: block; width: 100%; text-align: center; padding: var(--sp-3); color: var(--accent-text); font-size: var(--fs-small); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer }
.wf-more:hover { background: var(--surface-2) } .wf-more[disabled] { opacity: .6; cursor: wait }

/* Stack the cards when the centre panel (not the window) is too narrow for three. */
.wf-welcome { container-type: inline-size }
@container (max-width: 880px) { .wf-row { grid-template-columns: 1fr } }
@media (max-width: 600px) { .wf-card { padding: var(--sp-4) } .wf-big { font-size: 19px } .wf-hide { display: none } }
