/* Foundation pages: /foundation/, /foundation/transparency and /psoq. Loaded after components.css
   (and reading.css on the reading pages). Colours come only from tokens.css. The legacy pages drew
   these with inline <style> blocks and style= attributes, which the CSP forbids. */

/* /foundation/ ---------------------------------------------------------------------------------- */
.fd-notice { margin-top: 1.6rem; max-width: 40rem; font-size: var(--t-small); }
.fd-sub {
  margin: 1.8rem 0 0.8rem; font-family: var(--mono); font-size: var(--t-label); font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink);
}
.fd-addr { font-style: normal; }
.panel .steps { margin-top: 0.4rem; }
.panel .steps p { margin: 0; color: var(--muted); }
.panel .quote + p { margin-top: 1.2rem; }

/* Fig. 7, the quantum horizon (inline SVG, drawn in ink). The "now" sweep and the ping run only
   without reduced motion (components.css stops .anim under reduced motion and while the scene is
   paused); otherwise the sweep stays hidden and the figure is still. */
/* not .fig: the scene readout takes a chapter's first .fig as the name of its formation */
.qh-cap { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; line-height: 1.7; color: var(--muted-2); max-width: 40rem; }
.qh-fig svg { width: 100%; max-width: 560px; margin-inline: auto; }
.qh-axis { stroke: var(--rule); stroke-width: 1; fill: none; }
.qh-grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.8; fill: none; }
.qh-pq { stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qh-ec { stroke: var(--muted); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qh-ec-broken { stroke: var(--muted); stroke-width: 1.4; fill: none; stroke-dasharray: 2 5; opacity: 0.55; }
.qh-qday { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 5; opacity: 0.5; fill: none; }
.qh-band { stroke: var(--ink); stroke-width: 1; opacity: 0.5; fill: none; }
.qh-fill { fill: var(--ink); opacity: 0.045; }
.qh-dot { fill: var(--ink); }
.qh-arrow { fill: var(--ink); opacity: 0.65; }
.qh-t { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; fill: var(--muted); }
.qh-t.s { fill: var(--ink); }
.qh-t.sm { font-size: 9.5px; letter-spacing: 0.08em; }
.qh-now { opacity: 0; }
.qh-now line { stroke: var(--ink); stroke-width: 1.4; }
.qh-now circle { fill: var(--ink); }
.qh-ping { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .qh-now { animation: qh-sweep 8s ease-in-out infinite; }
  .qh-ping { animation: qh-ping 4.5s ease-out infinite; }
}
@keyframes qh-sweep { 0% { transform: translateX(0); opacity: 0; } 14% { opacity: 0.5; } 86% { opacity: 0.5; } 100% { transform: translateX(198px); opacity: 0; } }
@keyframes qh-ping { 0% { r: 3; opacity: 0.55; } 70% { opacity: 0; } 100% { r: 18; opacity: 0; } }

/* /foundation/transparency ---------------------------------------------------------------------- */
.burn { border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); background: var(--paper-2); padding: 1.6rem clamp(1rem, 3vw, 1.8rem) 1.8rem; margin: 0 0 1.5rem; }
.burn-clock-row { padding-bottom: 1.2rem; border-bottom: 1px solid var(--muted-2); }
.burn-clock { font-family: var(--mono); font-weight: 500; font-size: clamp(2.4rem, 11vw, 5.5rem); line-height: 1; letter-spacing: 0; color: var(--accent-ink); margin: 0.6rem 0 0.5rem; }
.burn-when { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.burn-amount { font-weight: 800; font-stretch: 108%; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.01em; margin: 1.4rem 0 1rem; color: var(--ink); }
.burn-amount small { display: block; font-family: var(--mono); font-weight: 400; font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }
.prose .burn p.burn-sub { font-size: var(--t-small); color: var(--muted); }
.burn .video { margin-bottom: 0; }

/* the supply-share bar: a static SVG; the fills were style= attributes on the legacy page */
.burn-fig { margin: 2rem 0 0; }
.burn-fig svg.burn-bar { display: block; width: 100%; height: 56px; }
.b-public { fill: var(--ink); fill-opacity: 0.22; }
.b-pool { fill: var(--ink); fill-opacity: 0.1; }
.b-project { fill: var(--ink); fill-opacity: 0.45; }
.b-burned { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.burn-fig .b-split { stroke: var(--paper-2); stroke-width: 1.5; }
.burn-legend { list-style: none; margin: 0.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1.8rem; font-family: var(--mono); font-size: 0.74rem; color: var(--ink); }
.burn-legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.burn-legend svg { flex: none; width: 1rem; height: 1rem; }
.burn-legend .b-pool { stroke: var(--muted-2); stroke-width: 0.6; }
.burn-legend .b-burned { stroke-width: 1; }

/* account tables: three columns on wide screens; one account per block on a phone */
.accounts td { color: var(--muted); }
.accounts .id { font-size: 0.78rem; }
@media (max-width: 640px) {
  .accounts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .accounts, .accounts tbody, .accounts tr, .accounts th, .accounts td { display: block; width: 100%; }
  .accounts tr { border-bottom: 1px solid var(--rule); padding: 0.4rem 0; }
  .accounts tr:last-child { border-bottom: 0; }
  .accounts th, .accounts td { border-bottom: 0; padding: 0.3rem 1rem; }
}
.prose .callout p { margin: 0 0 0.6rem; }
.callout .id { font-size: 0.78rem; }

/* /psoq ----------------------------------------------------------------------------------------- */
.record { margin: 0 0 2rem; max-width: 48rem; }
.record .cta { margin-top: 0.9rem; }

@media print {
  .burn { background: none; }
}
