/* Bundled by Vite AFTER styles.css/unlocks.css so it wins the cascade (was in public/ and loaded first, see Oct 12 QA). */
/* gbt.fyi restyle (Oct 12, 2026): minimal, "barely there", light blueprint accents.
   Black / white / gray only. One family (IBM Plex Sans) + its mono (IBM Plex Mono) for numbers,
   canister ids and principals. Self-hosted fonts (/fonts, SIL OFL), no external CDN.
   Loaded LAST on every page; overrides styles.css + unlocks.css without touching markup. */
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root, body, body[class] {
  --bg: #000000;
  --raised: #070707;
  --fg: #e8e8e8;
  --strong: #ffffff;
  --muted: #8c8c8c;
  --faint: #5c5c5c;
  --line: #1f1f1f;
  --line-2: #2c2c2c;
  --grid: rgba(255, 255, 255, 0.028);
  --accent: #e8e8e8;
  --ink: #000000;
  --glow: transparent;
  --sans: "Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Base + blueprint grid (very faint, fixed so it never "moves" with content) */
html, body, body[class] { background-color: var(--bg); color: var(--fg); }
body[class] {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 400;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}
::selection { background: #ffffff; color: #000000; }
a { color: var(--fg); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg); }
strong, b { font-weight: 600; color: var(--strong); }

body[class] .glow { display: none; }
body[class] .accent-bar { height: 1px; background: var(--line-2); }

/* Header: thin, quiet */
body[class] .site-header { background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body[class] .nav { padding: 0.55rem 1.25rem; }
body[class] .brand strong { font-family: var(--mono); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; }
body[class] .brand span { font-size: 0.8rem; color: var(--faint); }
body[class] .nav-links a { min-height: 40px; padding: 0 0.6rem; border-radius: 0; font-size: 0.82rem; color: var(--muted); background: none; }
body[class] .nav-links a:hover { color: var(--strong); background: none; }
body[class] .nav-links a[aria-current="page"] { color: var(--strong); background: none; box-shadow: inset 0 -1px 0 var(--strong); }

/* Type: one family, light weights, generous space */
body[class] .display { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; color: var(--strong); }
body[class] h1.display { font-size: clamp(2.3rem, 5.2vw, 3.4rem); }
body[class] .section-head h2, body[class] .paper h2, body[class] .status-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
body[class] .paper h1 { font-size: clamp(2.3rem, 5vw, 3.2rem); }
body[class] .paper h2 { font-size: 1.55rem; }
body[class] .rule h2 { font-size: 1.3rem; font-weight: 500; }
body[class] .lede { font-size: 1.05rem; color: var(--muted); }
body[class] .muted, body[class] .paper p, body[class] .paper li { color: var(--muted); }
body[class] .section { padding: 5rem 0; }

/* Small technical labels (mono, uppercase, wide tracking) */
body[class] .label, body[class] .kicker, body[class] .eyebrow, body[class] .rule .idx, body[class] .status .tag,
body[class] .unlock-step .idx, body[class] .pledge-form label, body[class] caption.label, body[class] .pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
body[class] .kicker::before, body[class] p.label::before { content: "— "; color: var(--line-2); }
body[class] .rule .idx { font-size: 0.72rem; }
body[class] .pill { background: none; border: 1px solid var(--line-2); border-radius: 0; padding: 0.1rem 0.45rem; color: var(--muted); }

/* Numbers, canister ids, principals: monospace, tabular */
body[class] .num, body[class] td.num, body[class] .mono, body[class] .id, body[class] code, body[class] .meta dd,
body[class] .calc-out dd, body[class] .pledge-count, body[class] .ids li, body[class] .sheet td, body[class] .data-table td:not(:first-child),
body[class] .split p, body[class] .supply .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
body[class] .supply .num { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 400; color: var(--strong); }
body[class] .calc-out dd { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 400; }
body[class] .mono { font-size: 0.86em; }
body[class] code { font-size: 0.86em; color: var(--fg); }

/* Rules, cards, panels: hairlines only, square corners, no shadows/gradients/hover lift */
body[class] .supply, body[class] .epoch, body[class] .pledge-form, body[class] .unlock-step, body[class] .unlock-calc,
body[class].ops .card, body[class] .callout, body[class] .split, body[class] .weights {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 0;
  box-shadow: none;
}
body[class] .epoch:hover, body[class].ops .card:hover { transform: none; box-shadow: none; border-color: var(--faint); }
body[class] .callout { border-left: 1px solid var(--fg); color: var(--fg); }
body[class] .split div + div, body[class] .weights span:first-child { background: transparent; color: var(--strong); }
body[class] .split div + div { border-left: 1px solid var(--line-2); }
body[class] .split div + div .label { color: var(--faint); }
body[class] .weights { height: 2.6rem; }
body[class] .weights span { background: transparent; color: var(--muted); font-family: var(--mono); font-size: 0.75rem; border-left: 1px solid var(--line-2); }
body[class] .weights span:first-child { box-shadow: inset 0 -2px 0 var(--strong); font-weight: 500; }
body[class] .rules, body[class] .rule, body[class] .status, body[class] .status li, body[class] .paper section,
body[class] .defs, body[class] .ids, body[class] .defs div, body[class] .ids li, body[class] .site-footer,
body[class] .pledge-list, body[class] .pledge-list li { border-color: var(--line); }

/* Blueprint corner ticks on panels */
body[class] .supply, body[class] .pledge-form, body[class] .unlock-calc { position: relative; }
body[class] .supply::before, body[class] .pledge-form::before, body[class] .unlock-calc::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px;
  border-top: 1px solid var(--fg); border-left: 1px solid var(--fg); pointer-events: none;
}
body[class] .supply::after, body[class] .pledge-form::after, body[class] .unlock-calc::after {
  content: ""; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px;
  border-bottom: 1px solid var(--fg); border-right: 1px solid var(--fg); pointer-events: none;
}

/* Buttons: quiet, square */
body[class] .btn, body[class].ops button {
  min-height: 40px; padding: 0 1rem; border-radius: 0; font-family: var(--sans); font-weight: 500; font-size: 0.86rem;
  background: var(--strong); color: #000000; border: 1px solid var(--strong); box-shadow: none; transform: none;
}
body[class] .btn:hover, body[class].ops button:hover:not(:disabled) { background: #d4d4d4; border-color: #d4d4d4; color: #000; transform: none; box-shadow: none; }
body[class] .btn.ghost, body[class].ops button.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
body[class] .btn.ghost:hover, body[class].ops button.ghost:hover:not(:disabled) { background: transparent; color: var(--strong); border-color: var(--fg); }
body[class] .btn:disabled, body[class] .btn[disabled] { opacity: 0.35; }
body[class] .btn:disabled:hover { background: var(--strong); border-color: var(--strong); }

/* Inputs */
body[class] input, body[class] textarea, body[class] select,
body[class] .pledge-form input, body[class] .pledge-form textarea, body[class] .cl-field input,
body[class] .unlock-calc input, body[class] .unlock-calc select {
  background: transparent; color: var(--strong); border: 1px solid var(--line-2); border-radius: 0; font-family: var(--sans);
}
body[class] .cl-field input { font-family: var(--mono); font-size: 0.86rem; }
body[class] input:focus, body[class] textarea:focus, body[class] select:focus { outline: none; border-color: var(--fg); }

/* Tables: clean, hairline, mono numerals */
body[class] .data-table, body[class] .sheet { font-size: 0.88rem; }
body[class] .data-table th, body[class] .data-table td, body[class] .sheet th, body[class] .sheet td { border-bottom: 1px solid var(--line); padding: 0.55rem 0.9rem 0.55rem 0; }
body[class] .data-table th, body[class] .sheet th { font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
body[class] .data-table td.num { font-weight: 400; color: var(--strong); }
body[class] .data-table td:first-child { color: var(--muted); }

/* Charts (unlock ramps / timelines): thin and gray */
body[class] .unlock-ramp { height: 0.55rem; border-radius: 0; background: transparent; border-color: var(--line-2); }
body[class] .tl span, body[class] .key { border-radius: 0; }
body[class] .tl .tl-bar, body[class] .key-bar { background: linear-gradient(90deg, #3a3a3a, #e8e8e8); }
body[class] .unlocks .loyalty-table td:last-child { background: transparent; color: var(--strong); border-radius: 0; box-shadow: inset 0 -1px 0 var(--strong); font-weight: 500; }

/* Footer */
body[class] .site-footer { margin-top: 4rem; }
body[class] .site-footer .wrap { font-size: 0.8rem; color: var(--faint); font-family: var(--mono); letter-spacing: 0.04em; }

/* Ops board mono blocks */
body[class].ops .mono { background: transparent; border: 1px solid var(--line); border-radius: 0; font-family: var(--mono); }

@media (max-width: 640px) {
  body[class] { font-size: 15px; background-size: 32px 32px; }
  body[class] .section { padding: 3.25rem 0; }
  body[class] .nav-links a { padding: 0 0.45rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Fixes: labels may carry canister ids/principals, so never force uppercase on them */
body[class] .label { text-transform: none; letter-spacing: 0.06em; }
body[class] .split div + div p, body[class] .split div + div { color: var(--strong); }
/* Stacked .rule articles outside a .rules grid (receipts, claim, log) are plain sections */
body[class] main > .rule, body[class] main > article.rule { border-right: 0; padding-left: 0; padding-right: 0; }
@media (min-width: 800px) { body[class] main > .rule { padding: 2.5rem 0; } }

/* Homepage pledge call-to-action (form lives on /pledge since Oct 12) */
body[class] .pledge-cta { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between; padding-top: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
body[class] .pledge-cta h2 { margin: 0.6rem 0 0; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
body[class] .pledge-cta p.muted { margin: 0.6rem 0 0; max-width: 34rem; }

/* Mobile: whitepaper tables must not push the page sideways */
@media (max-width: 640px) {
  body[class] .sheet { display: block; overflow-x: auto; font-size: 0.8rem; -webkit-overflow-scrolling: touch; }
  body[class] .sheet th, body[class] .sheet td { padding-right: 0.75rem; white-space: nowrap; }
  body[class] .sheet th { letter-spacing: 0.06em; }
  body[class] .data-table td:not(:first-child) { font-size: 0.8rem; }
}

/* Pay pages: the split values ("Invoice" / "+10%") read as values, not fine print */
body[class] .split p.display { font-size: 1.35rem; }

/* ---- 2026-11 P0/P1 fixes ---- */
/* Phone margins: .hero/.section padding shorthands were resetting .wrap's side gutter (text touched the screen edge). */
body[class] .wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
body[class] .hero > * { min-width: 0; }
@media (max-width: 899px) { body[class] .hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  body[class] .supply { padding-left: 1rem; padding-right: 1rem; }
  body[class] .supply .split p.display { font-size: 1.1rem; }
}
/* Phone nav: one row that scrolls sideways instead of two wrapped rows */
@media (max-width: 640px) {
  body[class] .nav { flex-wrap: nowrap; }
  body[class] .brand span { display: none; }
  body[class] .nav-links { min-width: 0; flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  body[class] .nav-links::-webkit-scrollbar { display: none; }
  body[class] .nav-links a { white-space: nowrap; }
}
/* Accessibility: skip link, visible keyboard focus, readable faint text (was #5c5c5c, 3.2:1 on black) */
.skip-link { position: absolute; left: 0.75rem; top: -3rem; z-index: 100; padding: 0.6rem 0.9rem; background: #fff; color: #000; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }
:root, body, body[class] { --faint: #8a8a8a; }
body[class] a:focus-visible, body[class] button:focus-visible, body[class] select:focus-visible,
body[class] input:focus-visible, body[class] textarea:focus-visible, body[class] summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body[class] .site-footer a { display: inline-block; padding: 0.35rem 0; }
