/* The testnet demo's two pages, /demo and /demo/proofs: served by the demo site only (copied by make-static.sh), so nothing the app serves changes.
   Halide (owner, 31 Oct 2026), from the kit the other pages use (ui.css): the theme's tokens, radius 0, hairline borders, clipped corner buttons,
   Geist and Geist Mono; the Campaigns page's filter buttons, switch and layout button; testnet marked amber and dashed, as the network label is.
   Breakpoints of these pages: 760 px (phone rows) and 900 px (the three cards). */
.page.dpage { max-width: none; padding: 0 clamp(16px, 4vw, 56px); animation: none; }
.dwrap { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 80px; display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 48px); }

/* the testnet label: the network label of the Halide pages (amber, dashed, a square pip), then DEMO in the quiet mono */
.dk2 { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; }
.dk2 .tn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px dashed var(--warn); color: var(--warn); font: 600 12px var(--fm); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.dk2 .tn::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; background: currentColor; }
.dk2 .dm { font: 500 12px var(--fm); letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }

/* /demo: the head and the three cards */
.dhero { display: flex; flex-direction: column; gap: 18px; }
.dh1 { margin: 0; max-width: 1000px; font: var(--hw) clamp(36px, 5vw, 64px)/1.02 var(--fd); letter-spacing: var(--htrack); text-transform: var(--hcase, uppercase); color: var(--ink); text-wrap: balance; }
.dlede { margin: 0; max-width: 660px; font: 400 clamp(16px, 1.3vw, 19px)/1.6 var(--fb); color: var(--mut); text-wrap: pretty; }
.dcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .dcards { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
.dc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 32px); border-radius: 0; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.dc:hover { border-color: var(--line2); }
/* the primary card: an ink edge and the accent square of the Halide cards, its label in the accent */
.dc.one { border-color: var(--ink); }
.dc.one::after { content: ""; position: absolute; right: 18px; top: 18px; width: 10px; height: 10px; background: var(--acc2); }
.dc-k { font: 500 12px var(--fm); letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.dc.one .dc-k { color: var(--acc2); font-weight: 600; }
.dc h2 { margin: 0; font: var(--hw) clamp(22px, 2.2vw, 26px)/1.1 var(--fd); letter-spacing: -.02em; text-transform: var(--hcase, uppercase); color: var(--ink); }
.dc.one h2 { font-size: clamp(26px, 2.8vw, 32px); }
.dc p { margin: 0; font: 400 15px/1.6 var(--fb); color: var(--mut); }
.dc .sp { flex: 1; }
/* buttons: the kit's outlined button, and the filled one with the clipped corner for the primary action */
.dbtn { align-self: flex-start; min-height: 52px; padding: 0 22px; border-radius: 0; clip-path: var(--clip); border: 1px solid var(--line2); background: none; color: var(--ink);
  font: 600 15px var(--fb); letter-spacing: var(--btrack); text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s, filter .18s; }
.dbtn:hover { color: var(--ink); transform: translateY(-2px); background: rgba(var(--ov), .07); border-color: var(--ink); }
.dbtn:active { transform: scale(.97); }
.dbtn.pri { border: 0; background: var(--acc); color: var(--aink); }
.dbtn.pri:hover { color: var(--aink); background: var(--acc); box-shadow: 0 14px 34px var(--glow); filter: brightness(1.06); }

/* /demo/proofs: head, filters, list and grid */
.pintro { display: flex; flex-direction: column; gap: 16px; }
.pback { align-self: flex-start; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--mut); font: 500 12px var(--fm); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; transition: color .2s; }
.pback:hover { color: var(--ink); }
.ph1 { margin: 0; font: var(--hw) clamp(34px, 4.6vw, 58px)/1.02 var(--fd); letter-spacing: var(--htrack); text-transform: var(--hcase, uppercase); color: var(--ink); text-wrap: balance; }
.pintro .dlede { max-width: 640px; }
.ptools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* All, Passed, Failed: the Campaigns page's square buttons; the chosen one in ink */
.pchips { display: flex; gap: 6px; flex-wrap: wrap; }
.page .pchip { min-height: 44px; margin: 0; padding: 0 14px; border-radius: 0; border: 1px solid var(--line2); background: transparent; color: var(--ink); font: 500 12px var(--fm); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.page .pchip:hover { border-color: var(--ink); background: rgba(var(--ov), .08); color: var(--ink); transform: none; }
.page .pchip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pright { display: flex; gap: 8px; align-items: center; }
/* the types: the Campaigns page's Mainnet | Testnet switch */
.pseg { display: flex; border: 1px solid var(--line2); border-radius: 0; padding: 0; }
.page .pseg button { min-height: 42px; margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--mut); font: 500 12px var(--fm); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.page .pseg button:hover { background: rgba(var(--ov), .08); color: var(--ink); transform: none; }
.page .pseg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
/* the layout button: the Campaigns page's square button */
.page .pview { width: 44px; height: 44px; min-height: 44px; flex: none; margin: 0; padding: 0; border-radius: 0; border: 1px solid var(--line2); background: transparent; display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.page .pview:hover { border-color: var(--ink); background: rgba(var(--ov), .08); color: var(--ink); }
.page .pview:active { transform: scale(.96); }
.pview svg rect { rx: 0; }
/* square tags: the type, and what the recount should say in the pass or fail colour */
.ptype { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 0; font: 500 11px var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.pdesc { font: 400 14px/1.55 var(--fb); color: var(--mut); text-wrap: pretty; }
.pexp { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border: 1px solid currentColor; border-radius: 0; background: none; font: 600 12px var(--fm); letter-spacing: .06em; white-space: nowrap; }
.pexp.pass { color: var(--pass); }
.pexp.fail { color: var(--fail); }
.pacts { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
/* Recount: the filled clipped button; Campaign and Capability card: the kit's quiet underlined links */
.prc { min-height: 44px; padding: 0 18px; border-radius: 0; clip-path: var(--clip); background: var(--acc); color: var(--aink); font: 600 13px var(--fb); letter-spacing: var(--btrack); text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: transform .18s, box-shadow .18s, filter .18s; }
.prc:hover { color: var(--aink); transform: translateY(-2px); box-shadow: 0 14px 34px var(--glow); filter: brightness(1.06); }
.prc:active { transform: scale(.97); }
.plk { min-height: 44px; display: inline-flex; align-items: center; font: 500 12px var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.plk:hover { color: var(--ink); }
/* list view: one square panel with hairline rows */
.plist { border-radius: 0; background: var(--card); border: 1px solid var(--line); padding: 0 clamp(16px, 2.6vw, 28px); }
.prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.prow { padding-left: var(--rowpad); padding-right: var(--rowpad); } /* inner room in the rows, as every ruled list (--rowpad in ui.css: 16 px from 760 px; owner, 1 Nov 2026) */
.pn { font: 500 14px var(--fm); color: var(--mut); align-self: start; padding-top: 3px; }
.pmain { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ptl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ptl b { font: var(--hw) 19px/1.2 var(--fd); letter-spacing: -.015em; text-transform: var(--hcase, uppercase); color: var(--ink); }
.prow .pacts { justify-content: flex-end; }
/* grid view: square cards with hairlines, as the Campaigns cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 0; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.pcard:hover { border-color: var(--ink); }
.pchead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pchead .pn { padding-top: 0; }
.pcard > b { font: var(--hw) 20px/1.15 var(--fd); letter-spacing: -.015em; text-transform: var(--hcase, uppercase); color: var(--ink); }
.pcard .pdesc { flex: 1; }
.pcard .pacts { gap: 6px 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.pnone { padding: 32px 0; text-align: center; font: 400 14px var(--fb); color: var(--mut); }
.pfoot { margin: 0; font: 400 13px/1.6 var(--fb); color: var(--mut); }
@media (max-width: 759px) {
  .page .pseg button { min-height: 44px; }
  .prow { grid-template-columns: 32px minmax(0, 1fr); }
  .prow .pacts { grid-column: 2; justify-content: flex-start; }
  .pexp, .pdesc, .ptl b { white-space: normal; overflow-wrap: anywhere; } /* a long line wraps inside the screen (owner, 31 Oct 2026) */
}
/* phones (owner, 22 Oct 2026): both filter rows fit inside 360 px with no sideways scrolling. The list or grid button moves up next to All,
   Passed and Failed; the second row holds only the four types; buttons and text are smaller (tap targets stay 44 px high) */
@media (max-width: 759px) {
  .ptools { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "chips view" "types types"; align-items: center; gap: 10px 8px; }
  .pright { display: contents; }
  .pchips { grid-area: chips; flex-wrap: nowrap; gap: 4px; min-width: 0; }
  .page .pchip { padding: 0 8px; font-size: 11px; letter-spacing: .08em; }
  .pseg { grid-area: types; justify-self: start; max-width: 100%; }
  .page .pseg button { padding: 0 8px; font-size: 11px; letter-spacing: .08em; }
  .page .pview { grid-area: view; }
}
