/* 3dtoolbox.uk shared theme: black, red and brushed steel. Loaded after each tool's own styles and only
   recolours that tool's dark-mode tokens (each page has <html data-theme="dark">). Looks only.
   Selectors start with html:root so they beat the tools' own dark rules wherever those sit in the page. */
html:root[data-theme="dark"] {
  color-scheme: dark;
  /* backgrounds */
  --bg: #0b0c0e; --paper: #0b0c0e;
  --panel: #16181b; --card: #16181b;
  --field: #1e2125; --chip: #212429;
  --line: #2f343a;
  --view: #111316; --stage: #0e1012; --stage-2: #1a1d21;
  --bed: #15171a; --bed-grid: #2a2e34; --sky: #121417;
  /* text */
  --ink: #f1f2f4; --ink-soft: #a9adb4; --muted: #a9adb4;
  /* accents: red replaces the old amber, blue and gold */
  --accent: #e0202e; --accent-ink: #ffffff; --accent-soft: #3a1216;
  --amber: #e0202e; --amber-deep: #ff4b55;
  --royal: #ff4b55; --gold: #e0202e; --gold-ink: #ffffff;
  --focus: #ff6b73;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 36px -22px rgba(0,0,0,.9);
}
html:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 380px at 90% -140px, rgba(224,32,46,.22), rgba(224,32,46,0) 70%),
    radial-gradient(700px 340px at -10% -60px, rgba(185,190,198,.08), rgba(185,190,198,0) 70%),
    var(--bg, var(--paper, #0b0c0e));
  background-attachment: fixed;
}
/* brushed-steel buttons, as on the home page */
html:root[data-theme="dark"] .coffee {
  color: #15171a; border: 1px solid #5d636b; border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #dfe2e6 38%, #8f949c 52%, #c9cdd3 70%, #f2f3f5 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 14px -8px rgba(0,0,0,.9);
  filter: none;
}
html:root[data-theme="dark"] .coffee:hover { color: #15171a; background: linear-gradient(180deg, #ffffff 0%, #e8eaed 38%, #a2a7ae 52%, #d6d9dd 70%, #ffffff 100%); }
/* Hype Chain viewer was navy */
html:root[data-theme="dark"] .viewer { background: radial-gradient(120% 90% at 50% 20%, #26292e 0%, #0d0e10 100%); }

/* ---------- 2026 overhaul: a calmer, more grown-up look ----------
   Sentence-case type in Archivo and Public Sans, quiet chrome, red kept as an accent only. */
html:root[data-theme="dark"] {
  --display: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --stage: #cbc9c4; --stage-2: #b9b7b1;
}
html:root[data-theme="dark"] body { background: var(--bg, #0f1012); background-attachment: scroll; }
html:root[data-theme="dark"] h1 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: 1.05; text-transform: none; font-size: clamp(30px, 4.2vw, 42px); }
html:root[data-theme="dark"] h1 em { color: inherit; font-style: normal; }
html:root[data-theme="dark"] h2, html:root[data-theme="dark"] h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; text-transform: none; }
html:root[data-theme="dark"] .eyebrow, html:root[data-theme="dark"] .tag { text-transform: none; letter-spacing: .02em; }
html:root[data-theme="dark"] .num { font-family: var(--display); font-weight: 600; background: transparent; color: var(--ink); border: 1px solid var(--line); }
html:root[data-theme="dark"] .card, html:root[data-theme="dark"] .step { border-radius: 8px; }
/* plain outline button instead of brushed chrome */
html:root[data-theme="dark"] .coffee, html:root[data-theme="dark"] .coffee:hover {
  color: var(--ink) !important; background: transparent !important; border: 1px solid #3a3f46 !important; box-shadow: none !important; filter: none !important; font-weight: 500;
}
html:root[data-theme="dark"] .coffee:hover { border-color: #5a6068 !important; }
/* Amazon hardware links (19 Nov 2026) */
a.tbx-shop { display: inline-block; font-size: 12px; line-height: 1.5; color: var(--amber-deep, #ff4b55); border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; margin: 2px 4px 0 0; text-decoration: none; white-space: nowrap; }
a.tbx-shop:hover { background: var(--chip, rgba(255,255,255,.06)); }
/* site bar: flat, no brushed metal */
html .tbx-bar { background: #0f1012 !important; border-bottom: 1px solid #26292e !important; }
html .tbx-bar .tbx-name { text-transform: none !important; letter-spacing: .01em !important; font-size: 13px !important; }
