/* Node Star site theme (v7). Loaded after each page's own styles.
   Maps every page's color and font variables onto the shared design system. */
html:root {
  /* surfaces */
  --bg: #0e0f0c; --bg2: #15160f; --bg3: #1c1e17; --bg4: #23251d;
  --surface: #15160f; --surface2: #1c1e17;
  --navy: #0e0f0c; --navy2: #15160f; --navy3: #1c1e17; --navy-mid: #15160f; --navy-card: #1c1e17;
  --card: #15160f; --panel: #1c1e17;
  /* text */
  --text: #f0f0e8; --text2: #c9cabd; --text3: #a3a596; --text-muted: #a3a596;
  --white: #f0f0e8; --white-dim: #c9cabd; --muted: #a3a596; --dim: #a3a596;
  /* lines */
  --border: rgba(238,238,228,0.10); --border2: rgba(238,238,228,0.20); --navy-border: rgba(238,238,228,0.12);
  /* accents: one signal color */
  --amber: #d4de3e; --amber2: #e2ea6a; --amber-lt: #e2ea6a;
  --amber-dim: rgba(212,222,62,0.12); --amber-dim2: rgba(212,222,62,0.22);
  --teal: #d4de3e; --teal2: #e2ea6a; --teal-dim: rgba(212,222,62,0.12); --teal-dim2: rgba(212,222,62,0.22);
  --accent: #d4de3e; --accent2: #e2ea6a; --accent-dim: rgba(212,222,62,0.12); --accent-dim2: rgba(212,222,62,0.22);
  --gold: #d4de3e; --gold-dim: rgba(212,222,62,0.12);
  --cyan: #d4de3e; --cyan-dim: rgba(212,222,62,0.12);
  --proto-accent: #d4de3e; --proto-dim: rgba(212,222,62,0.12);
  --red-accent: #d4de3e;
  /* type */
  --serif: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}
/* Light "paper" build guides become dark like the rest of the site */
html:root[data-ns-paper] {
  --paper: #0e0f0c; --paper2: #15160f;
  --ink: #f0f0e8; --ink2: #c9cabd; --ink3: #a3a596;
  --rule: rgba(238,238,228,0.12); --rule2: rgba(238,238,228,0.22);
  --red: #d4de3e; --orange: #d4de3e;
}
html:root body { -webkit-font-smoothing: antialiased; }

/* Headlines: heavy, tight Archivo like the homepage */
html:root h1, html:root h2 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800; font-stretch: 90%; letter-spacing: -0.03em;
  text-wrap: balance;
}
html:root h3, html:root h4 { font-family: 'Archivo', system-ui, sans-serif; text-wrap: balance; }
/* The single colored italic word becomes a lighter second voice */
html:root h1 em, html:root h2 em, html:root h1 i, html:root h2 i {
  font-style: normal !important; font-weight: 400 !important; color: #c9cabd !important;
}
html:root p { text-wrap: pretty; }

/* No short accent rules in front of labels */
.cover-label::before, .hero-label::before, .tool-spotlight-label::before,
.landing-eyebrow::before, .eyebrow::before, .hero-eyebrow::before, .hero-eyebrow::after,
.section-label::before, .section-label::after, .cert-label::before { display: none !important; }

/* Links and selection */
::selection { background: rgba(212,222,62,0.35); color: #fff; }
html:root :focus-visible { outline: 2px solid #d4de3e; outline-offset: 3px; }

/* Wide tables scroll inside their own box on phones instead of pushing the page sideways */
@media (max-width: 760px) {
  html:root .ns-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  html:root .ns-table-wrap > table { min-width: 100%; }
}
@media (max-width: 760px) {
  html:root pre, html:root .code-block, html:root .terminal { max-width: 100%; overflow-x: auto; }
  html:root :has(> .arch-box), html:root :has(> .micron-pane), html:root :has(> .node + .arrow) { max-width: 100%; overflow-x: auto; }
  html:root .step-content { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 760px) {
  html:root p code, html:root li code, html:root td code, html:root .note code, html:root div > code { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
  html:root, html:root body { overflow-x: clip; }
}

/* The brand name is always written "Node Star", never all caps */
html:root .footer-brand strong { text-transform: none; letter-spacing: 0.04em; }
