/* DatacentersX - SiliconPlans network skeleton (AustinIO structure, cool mineral ground, teal brand).
   Layout: sticky head with dropdown nav, hero with signature art, data strip, sticky contents sidebar
   with section highlighting, color-banded tables, Record section.
   Two color systems carry meaning: stack layers (data-l) and coherence steps (data-coh). */

:root {
  --bg: #F1F3F2;
  --bg-2: #E5E9E7;
  --panel: #FFFFFF;
  --line: #CCD3D0;
  --line-soft: #DDE2E0;
  --fg: #131918;
  --fg-2: #3C4644;
  --fg-3: #69736F;
  --head: #0B4F4A;
  --link: #0E6B65;
  --brand: #0D9488;
  --hero: #E8ECEA;
  --grid: rgba(11,79,74,.06);
  /* stack layers */
  --l-chip: #7B4FC9;
  --l-compute: #2F5BB7;
  --l-network: #C0364F;
  --l-cooling: #0A86A8;
  --l-power: #B97B05;
  --l-campus: #5E6B73;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1110; --bg-2: #121918; --panel: #171F1E; --line: #2C3836; --line-soft: #222C2A;
    --fg: #E6EEEC; --fg-2: #AEBBB8; --fg-3: #7F8C89; --head: #8FE3D6; --link: #5EEAD4; --brand: #2DD4BF;
    --hero: #0A0F0E; --grid: rgba(143,227,214,.05);
    --l-chip: #A98BF0; --l-compute: #7AA2F0; --l-network: #F07A8E; --l-cooling: #4CC6E6; --l-power: #EDB23A; --l-campus: #9AA8B0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1110; --bg-2: #121918; --panel: #171F1E; --line: #2C3836; --line-soft: #222C2A;
  --fg: #E6EEEC; --fg-2: #AEBBB8; --fg-3: #7F8C89; --head: #8FE3D6; --link: #5EEAD4; --brand: #2DD4BF;
  --hero: #0A0F0E; --grid: rgba(143,227,214,.05);
  --l-chip: #A98BF0; --l-compute: #7AA2F0; --l-network: #F07A8E; --l-cooling: #4CC6E6; --l-power: #EDB23A; --l-campus: #9AA8B0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- stack-layer system ---------- */
[data-l="chip"] { --sc: var(--l-chip); }
[data-l="compute"] { --sc: var(--l-compute); }
[data-l="network"] { --sc: var(--l-network); }
[data-l="cooling"] { --sc: var(--l-cooling); }
[data-l="power"] { --sc: var(--l-power); }
[data-l="campus"] { --sc: var(--l-campus); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sc); margin-right: 8px; vertical-align: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }

/* ---------- header and nav ---------- */
.head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.head__in { display: flex; align-items: center; gap: 28px; height: 64px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); white-space: nowrap; }
.logo svg { width: 28px; height: 28px; }
.logo__word { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.logo__word span { color: var(--brand); }

.nv { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nv-item { position: relative; }
.nv-top { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 20px 9px; box-shadow: inset 0 -2px 0 transparent; transition: color .15s, box-shadow .15s; }
.nv-top::after { content: ""; width: 5px; height: 5px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); opacity: .5; }
.nv-top:hover, .nv-item:hover .nv-top, .nv-item:focus-within .nv-top, .nv-top[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--brand); }
.nv-panel { position: absolute; top: 100%; left: -12px; min-width: 250px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--brand); border-radius: 0 0 6px 6px; padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; box-shadow: 0 18px 36px -20px rgba(19,25,24,.35); }
.nv-item:hover .nv-panel, .nv-item:focus-within .nv-panel { opacity: 1; visibility: visible; transform: none; }
.nv-panel ul { list-style: none; margin: 0; padding: 0; }
.nv-panel a { display: block; padding: 6px 18px; font-size: 14.5px; color: var(--fg-2); text-decoration: none; white-space: nowrap; border-left: 2px solid transparent; }
.nv-panel a:hover, .nv-panel a:focus-visible { color: var(--fg); background: var(--bg-2); border-left-color: var(--brand); }
.nv-h { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding: 12px 18px 4px; }
.nv-panel > div:first-child > .nv-h:first-child { padding-top: 2px; }
.nv-item--mega { position: static; }
.nv-panel--mega { left: 16px; right: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; padding: 16px 8px 18px; }
.nv-panel--mega .nv-h:first-child { padding-top: 2px; }
.nv-item:not(.nv-item--mega):nth-last-child(-n+2) .nv-panel { left: auto; right: -12px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); font: 500 14px var(--body); padding: 6px 12px; cursor: pointer; }

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--hero); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-block: 56px 32px; }
.hero h1 { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 750; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 20px; max-width: 15ch; }
.hero__sub { font-size: clamp(17px, 1.5vw, 19px); color: var(--fg-2); max-width: 54ch; margin: 0; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--fg); color: var(--bg); background: var(--fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.hero__map svg { display: block; width: 100%; height: auto; }


.meta { position: relative; border-top: 1px solid var(--line); }
.meta__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meta__c { padding: 16px 20px; border-left: 1px solid var(--line); }
.meta__c:first-child { border-left: 0; padding-left: 0; }
.meta__v { font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; }
.meta__v em { font-style: normal; color: var(--fg-3); font-size: 13px; }

/* ---------- home sections ---------- */
.sec { padding-block: 72px; border-bottom: 1px solid var(--line-soft); }
.sec__k { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--head); display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.sec__k::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.sec h2 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.015em; color: var(--fg); margin: 0 0 12px; max-width: 28ch; }
.sec__lede { color: var(--fg-2); max-width: 64ch; margin: 0 0 36px; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--panel); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pillar--wide { grid-column: span 2; }
.pillar h3 { font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 650; font-size: 21px; margin: 0; }
.pillar h3 a { color: var(--fg); text-decoration: none; }
.pillar h3 a:hover { color: var(--link); }
.pillar p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.pillar ul { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; }
.pillar svg { width: 40px; height: 40px; color: var(--head); }

.starts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.start { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 20px 20px 22px; text-decoration: none; color: var(--fg); transition: border-color .15s, transform .15s; }
.start:hover, .start:focus-visible { border-color: var(--brand); transform: translateY(-2px); }
.start h3 { font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 650; font-size: 19px; margin: 8px 0 6px; }
.start p { margin: 0; color: var(--fg-2); font-size: 15px; }

.book { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; }
.book__cover { width: 120px; aspect-ratio: 2 / 3; border-radius: 3px; background: linear-gradient(160deg, #1B1815 0%, #3A2418 60%, var(--brand) 140%); color: #F5F3EF; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 700; font-size: 14px; line-height: 1.1; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.book h3 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 700; font-size: 24px; margin: 6px 0 8px; }
.book p { margin: 0 0 14px; color: var(--fg-2); max-width: 62ch; }

/* ---------- tables (shared) ---------- */
.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.tbl caption { text-align: left; padding: 12px 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--fg-3); padding: 10px 16px; background: var(--bg-2); }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.tbl td.num { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr[data-l] td:first-child { border-left: 4px solid var(--sc); font-weight: 600; }
.tbl tr.ph td { color: var(--fg-3); font-style: italic; }

/* ---------- interior page ---------- */
.dp-hero { position: relative; background: var(--hero); border-bottom: 1px solid var(--line); overflow: hidden; }
.dp-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.dp-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 40px 36px; }
.crumb { font-size: 14px; color: var(--fg-3); }
.crumb a { color: var(--fg-3); }
.dp-hero h1 { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 750; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -.02em; margin: 14px 0 10px; }
.dp-hero__anchor { font-family: var(--mono); font-size: 13px; color: var(--fg-3); margin: 0 0 18px; }
.dp-hero__thesis { font-size: 18px; color: var(--fg-2); margin: 0; max-width: 58ch; }
.dp-hero__thesis strong { color: var(--fg); }
.dp-hero__art svg { display: block; width: 100%; max-width: 460px; height: auto; margin-left: auto; }

.strip { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.strip__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.strip__c { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.strip__c:first-child { border-left: 0; padding-left: 0; }
.strip__v { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }

.dp-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-block: 48px 80px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--fg-3); margin: 0 0 10px; }
.toc ol, .toc ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 4px; }
.toc a { color: var(--fg-2); text-decoration: none; display: block; padding: 2px 0 2px 12px; border-left: 2px solid var(--line-soft); }
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--fg); border-left-color: var(--brand); }
.toc .here { display: block; padding: 2px 0 2px 12px; border-left: 2px solid var(--sc, var(--head)); font-weight: 600; }
.toc ul a { border-left-color: transparent; }

.dp-sec { padding-bottom: 52px; margin-bottom: 52px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 96px; }
.dp-sec:last-child { border-bottom: 0; }
.dp-sec h2 { font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; color: var(--head); margin: 0 0 10px; }
.dp-sec__lede { font-size: 18.5px; color: var(--fg); margin: 0 0 18px; max-width: 62ch; }
.dp-sec p { max-width: 68ch; }
.dp-sec ul { max-width: 66ch; padding-left: 20px; }
.dp-sec li { margin-bottom: 6px; }
.dp-sec .tscroll { margin: 22px 0; }
.note { border-left: 4px solid var(--sc, var(--head)); background: var(--panel); padding: 14px 18px; border-radius: 0 6px 6px 0; margin: 18px 0; max-width: 68ch; }
.note p { margin: 0; }
.related { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.record dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 20px; margin: 0; font-size: 15.5px; }
.record dt { color: var(--fg-3); }
.record dd { margin: 0; }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: 14.5px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--fg-3); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--fg-2); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot__note { color: var(--fg-3); margin: 12px 0 0; max-width: 34ch; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13.5px; }

/* ---------- back to top ---------- */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--fg-2); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s, color .2s, border-color .2s; }
.totop[data-show] { opacity: 1; visibility: visible; transform: none; }
.totop:hover { color: var(--brand); border-color: var(--brand); }
.totop svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nv-top { padding: 20px 6px; font-size: 13.5px; }
}
@media (max-width: 1000px) {
  .burger { display: block; }
  .nv { display: none; }
  .nv[data-open] { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); gap: 0; }
  .nv-item, .nv-item--mega { position: static; }
  .nv-top { display: block; padding: 10px 0; font-size: 16px; box-shadow: none !important; }
  .nv-top::after, .nv-panel, .nv-item:hover .nv-panel, .nv-item:focus-within .nv-panel { display: none; }
  .hero__in, .dp-hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__map svg { max-width: 560px; margin: 0 auto; }
  .dp-hero__art svg { max-width: 360px; margin: 0; }
  .dp-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; display: none; }
  .strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip__c:nth-child(4) { border-left: 0; padding-left: 0; }
  .strip__c:nth-child(n+4) { border-top: 1px solid var(--line); }
  .starts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pillars, .starts { grid-template-columns: minmax(0, 1fr); }
  .pillar--wide { grid-column: auto; }
  .meta__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta__c:nth-child(3) { border-left: 0; padding-left: 0; }
  .meta__c:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__c:nth-child(4) { border-left: 1px solid var(--line); padding-left: 18px; }
  .strip__c:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip__c:nth-child(n+3) { border-top: 1px solid var(--line); }
  .book { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .record dl { grid-template-columns: 1fr; gap: 2px; }
  .record dd { margin-bottom: 10px; }
  .sec { padding-block: 52px; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .001ms !important; } }

/* ---------- DatacentersX additions ---------- */
.nv-panel--mega4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo svg .lg-frame { stroke: var(--fg-3); }
.logo svg .lg-unit { fill: var(--fg-3); }
.logo svg .lg-on { fill: var(--brand); }

/* coherence steps: a single-hue ramp, darker = more tightly coupled */
[data-coh="0"] { --cc: color-mix(in srgb, var(--brand) 32%, var(--panel)); }
[data-coh="1"] { --cc: color-mix(in srgb, var(--brand) 45%, var(--panel)); }
[data-coh="2"] { --cc: color-mix(in srgb, var(--brand) 72%, var(--panel)); }
[data-coh="3"] { --cc: var(--brand); }
[data-coh="4"] { --cc: var(--head); }
.coh-legend .dot { background: var(--cc); }
.tbl tr[data-coh] td:first-child { border-left: 6px solid var(--cc); font-weight: 600; }

/* scale ladder (home hero art) */
.ld-axis { stroke: var(--line); stroke-width: 1; }
.ld-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 4; }
.ld-tick { font-family: var(--mono); font-size: 11px; fill: var(--fg-3); }
.ld-name { font-family: var(--body); font-size: 14px; font-weight: 600; fill: var(--fg); }
.ld-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; fill: var(--fg-3); }
.ld-bar { fill: color-mix(in srgb, var(--cc) 70%, transparent); stroke: var(--cc); stroke-width: 1.2; transition: fill .15s; }
.ld-row:hover .ld-bar, .ld-row:focus-visible .ld-bar { fill: var(--cc); }
.ld-row:hover .ld-name, .ld-row:focus-visible .ld-name { fill: var(--link); }
.ld-row { outline: none; }
.ld-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; fill: var(--fg-3); }

/* rack elevation (interior hero art) */
.rk-frame { fill: var(--panel); stroke: var(--fg-3); stroke-width: 1.4; }
.rk-u { stroke: var(--panel); stroke-width: 1.5; }
.rk-u--compute { fill: color-mix(in srgb, var(--l-compute) 75%, var(--panel)); }
.rk-u--switch { fill: color-mix(in srgb, var(--l-network) 75%, var(--panel)); }
.rk-u--power { fill: color-mix(in srgb, var(--l-power) 70%, var(--panel)); }
.rk-led { fill: var(--panel); opacity: .85; }
.rk-pipe { fill: none; stroke: var(--l-cooling); stroke-width: 3; stroke-linecap: round; }
.rk-pipe--ret { stroke-dasharray: 5 4; }
.rk-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--fg-2); }
.rk-label--on { fill: var(--fg); font-weight: 600; }
.rk-lead { stroke: var(--fg-3); stroke-width: 1; }

/* US-made share bars in platform tables */
.us-bar { display: inline-block; width: 120px; height: 10px; vertical-align: 0; background: color-mix(in srgb, var(--fg-3) 15%, transparent); border-radius: 2px; overflow: hidden; margin-right: 8px; }
.us-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--brand); }
.us-bar--ph i { width: 100%; background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--fg-3) 45%, transparent) 0 3px, transparent 3px 6px); }

/* sister-site band */
.sis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.start[data-l] { border-top: 3px solid var(--sc); }
@media (max-width: 1000px) { .sis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nv-panel--mega4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sis { grid-template-columns: minmax(0, 1fr); } }
.pillar--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .pillar--full { grid-column: auto; } }

/* stack diagram (Stack hub and child pages) */
[data-l="soft"] { --sc: var(--fg-3); }
.sk-el { outline: none; }
.sk-box { fill: color-mix(in srgb, var(--sc) 12%, var(--panel)); stroke: color-mix(in srgb, var(--sc) 55%, var(--line)); stroke-width: 1.2; transition: fill .15s; }
.sk-t { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; fill: var(--fg-2); pointer-events: none; }
.sk-el:hover .sk-box, .sk-el:focus-visible .sk-box { fill: color-mix(in srgb, var(--sc) 30%, var(--panel)); }
.sk-el.is-on .sk-box { fill: var(--sc); stroke: var(--sc); }
.sk-el.is-on .sk-t { fill: var(--panel); font-weight: 600; }
.sk-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; fill: var(--fg-3); }
.sk-hub .sk-box { fill: color-mix(in srgb, var(--sc) 28%, var(--panel)); stroke: var(--sc); }

/* hub hero diagrams */
.hb-el { outline: none; }
.hb-box { fill: color-mix(in srgb, var(--sc, var(--brand)) 14%, var(--panel)); stroke: color-mix(in srgb, var(--sc, var(--brand)) 65%, var(--line)); stroke-width: 1.2; transition: fill .15s; }
.hb-el:hover .hb-box, .hb-el:focus-visible .hb-box { fill: color-mix(in srgb, var(--sc, var(--brand)) 34%, var(--panel)); }
.hb-box--solid { fill: var(--sc); stroke: var(--sc); }
.hb-t { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--fg); pointer-events: none; }
.hb-t--sm { font-size: 9.5px; fill: var(--fg-2); letter-spacing: .04em; }
.hb-t--inv { fill: var(--panel); font-weight: 600; }
.hb-num { font-family: var(--mono); font-size: 18px; font-weight: 600; fill: var(--sc); pointer-events: none; }
.hb-link { fill: none; stroke: color-mix(in srgb, var(--sc, var(--fg-3)) 60%, var(--line)); stroke-width: 2; }
.hb-link--dash { stroke-dasharray: 4 4; }
.hb-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; fill: var(--fg-3); }
.hb-axis { stroke: var(--line); stroke-width: 1; }
.hb-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 2 4; }
.hb-dot { fill: color-mix(in srgb, var(--sc) 60%, var(--panel)); stroke: var(--sc); stroke-width: 1.4; transition: fill .15s; }
.hb-el:hover .hb-dot, .hb-el:focus-visible .hb-dot { fill: var(--sc); }
.hb-bar { fill: color-mix(in srgb, var(--sc) 55%, var(--panel)); stroke: var(--sc); stroke-width: 1.2; }
.hb-bar--open { fill: none; stroke-dasharray: 4 3; }
.hb-ring { stroke: var(--panel); stroke-width: 3; }
dl.gloss { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 22px; margin: 0; max-width: 72ch; font-size: 15.5px; }
dl.gloss dt { font-weight: 600; scroll-margin-top: 96px; }
dl.gloss dd { margin: 0; color: var(--fg-2); }
@media (max-width: 640px) { dl.gloss { grid-template-columns: 1fr; gap: 2px; } dl.gloss dd { margin-bottom: 10px; } }
.dg-line { fill: none; stroke: var(--fg-3); stroke-width: 1.2; }
.dg-thin { fill: none; stroke: color-mix(in srgb, var(--sc, var(--fg-3)) 55%, var(--line)); stroke-width: 1; }
.dg-pipe { fill: none; stroke: var(--sc); stroke-width: 2.5; stroke-linecap: round; }
.dg-dash { stroke-dasharray: 5 4; }
.dg-wall { fill: var(--panel); stroke: var(--fg-3); stroke-width: 1.4; }
.dg-zone { fill: color-mix(in srgb, var(--sc) 9%, var(--panel)); stroke: color-mix(in srgb, var(--sc) 70%, var(--line)); stroke-width: 1.3; }
.dg-solid { fill: color-mix(in srgb, var(--sc) 80%, var(--panel)); stroke: var(--panel); stroke-width: 1; }
.dg-arrow { fill: var(--fg-3); }

/* energy-model families (campus rankings) */
[data-e="btm"] { --ec: color-mix(in srgb, var(--l-power) 62%, var(--fg)); }
[data-e="gas"] { --ec: var(--l-power); }
[data-e="grid"] { --ec: var(--l-compute); }
[data-e="nuc"] { --ec: var(--l-chip); }
[data-e="ren"] { --ec: var(--brand); }
.e-legend .dot { background: var(--ec); }
.tbl tr[data-e] td:first-child { border-left: 4px solid var(--ec); font-weight: 600; }
.cb-plan { fill: color-mix(in srgb, var(--ec) 22%, transparent); stroke: var(--ec); stroke-width: 1; }
.cb-live { fill: var(--ec); }
.cb-name { font-family: var(--body); font-size: 13px; font-weight: 500; fill: var(--fg); }
.cb-val { font-family: var(--mono); font-size: 11px; fill: var(--fg-2); }
.cb-row { transition: opacity .15s; }
.is-off { opacity: .15; }
tr.is-off { opacity: .3; }
.sw--planbar { background: color-mix(in srgb, var(--fg-3) 22%, transparent); }
.sw--livebar { background: var(--fg-2); border-color: var(--fg-2); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 14px; }
.chip { font: 500 14px var(--body); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg-2); cursor: pointer; }
.chip:hover { border-color: var(--fg-3); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .dot { margin-right: 6px; background: var(--ec); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl--dense { font-size: 14px; }
.tbl--dense td, .tbl--dense th { padding: 9px 11px; }
.tbl .sub { display: block; font-size: 12.5px; color: var(--fg-3); font-weight: 400; margin-top: 2px; }
.tbl td.num .sub { white-space: normal; font-family: var(--body); max-width: 160px; margin-left: auto; }
[data-e="nd"] { --ec: var(--fg-3); }
/* tenant colors (Colossus family) */
[data-t="anthropic"] { --tc: var(--l-network); }
[data-t="grok"] { --tc: var(--l-compute); }
[data-t="mixed"] { --tc: var(--l-chip); }
[data-t="nd"] { --tc: var(--l-campus); }
[data-t="power"] { --tc: var(--l-power); }
.t-legend .dot { background: var(--tc); }
.tbl tr[data-t] td:first-child { border-left: 4px solid var(--tc); font-weight: 600; }
.cx-bld { fill: color-mix(in srgb, var(--tc) 30%, var(--panel)); stroke: var(--tc); stroke-width: 1.6; transition: fill .15s; }
.cx-el:hover .cx-bld, .cx-el:focus-visible .cx-bld { fill: color-mix(in srgb, var(--tc) 55%, var(--panel)); }
.cx-bld--plan { fill: none; stroke-dasharray: 5 4; }
.cx-river { fill: none; stroke: color-mix(in srgb, var(--l-cooling) 40%, transparent); stroke-width: 14; stroke-linecap: round; }
.cx-line { fill: none; stroke: var(--fg-3); stroke-width: 1.2; stroke-dasharray: 6 4; }
.cx-road { fill: none; stroke: var(--line); stroke-width: 3; }
.cx-wire { fill: none; stroke: var(--l-power); stroke-width: 2; stroke-dasharray: 3 3; }
.cx-el { outline: none; }
/* flow diagram (Stargate) */
.fl-rib { fill: color-mix(in srgb, var(--sc) 28%, transparent); stroke: none; transition: fill .15s; }
.fl-el:hover .fl-rib { fill: color-mix(in srgb, var(--sc) 50%, transparent); }
.fl-node { fill: var(--sc); }
.fl-site { fill: var(--fg-3); }
.fl-rib--dash { fill: none; stroke: var(--sc); stroke-width: 1.2; stroke-dasharray: 4 3; }
.halo { paint-order: stroke; stroke: var(--hero); stroke-width: 4px; stroke-linejoin: round; }

/* Table filters (chips and search), shared pattern with AustinIO */
.ex-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.ex-filters .k { margin: 0 4px 0 0; min-width: 96px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.ex-chip { font: 500 14px var(--body); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg-2); cursor: pointer; }
.ex-chip:hover { border-color: var(--fg-3); color: var(--fg); }
.ex-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ex-note { font-size: 14px; color: var(--fg-3); margin: 10px 0 0; }
.dcx-search { display: inline-flex; align-items: center; gap: 8px; }
.dcx-search input { font: 15px var(--body); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); min-width: 260px; }
@media (max-width: 640px) { .ex-filters .k { min-width: 0; width: 100%; } .dcx-search { width: 100%; flex-wrap: wrap; } .dcx-search input { min-width: 0; width: 100%; flex: 1 1 100%; } }
.book__img { display: block; width: 120px; height: auto; border-radius: 3px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.nowrap { white-space: nowrap; }
.us-bar--sm { width: 64px; }
