:root {
  color-scheme: dark;
  --bg: #080d12;
  --bg-elevated: #0d141b;
  --surface: #111b24;
  --surface-2: #162331;
  --surface-3: #1b2a38;
  --line: rgba(191, 213, 230, 0.16);
  --line-strong: rgba(218, 232, 243, 0.26);
  --ink: #f4f8fb;
  --ink-strong: #ffffff;
  --muted: #9fb1c0;
  --muted-strong: #c7d4de;
  --green: #25d084;
  --green-rgb: 37 208 132;
  --amber: #f6b84b;
  --amber-rgb: 246 184 75;
  --red: #ff6472;
  --red-rgb: 255 100 114;
  --gray: #a8b4bf;
  --gray-rgb: 168 180 191;
  --blue: #70b7ff;
  --blue-strong: #9bd0ff;
  --teal: #31d6c2;
  --teal-rgb: 49 214 194;
  --focus: #8ecbff;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --state: var(--gray);
  --state-rgb: var(--gray-rgb);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(112, 183, 255, 0.08), transparent 320px),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 72px
    ),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--blue-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.info-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(112, 183, 255, 0.16), rgba(8, 13, 18, 0.92) 48%),
    var(--bg-elevated);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.86);
  backdrop-filter: blur(18px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand,
.source-link {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 780;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 208, 132, 0.95), rgba(112, 183, 255, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(37, 208, 132, 0.16);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  background: rgba(8, 13, 18, 0.9);
}

.brand-mark::before {
  width: 4px;
  height: 14px;
  left: 12px;
  top: 7px;
  transform: skewX(-18deg);
}

.brand-mark::after {
  width: 14px;
  height: 4px;
  left: 7px;
  top: 12px;
  transform: skewX(-18deg);
}

.source-link {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.source-link:hover,
.brand:hover {
  color: var(--ink-strong);
}

.status-hero {
  position: relative;
  isolation: isolate;
  padding: 46px 0 52px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgb(var(--state-rgb) / 0.22), rgba(13, 20, 27, 0.82) 34%, rgba(8, 13, 18, 0.96)),
    var(--bg-elevated);
}

.status-hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--state), transparent 72%);
  opacity: 0.92;
}

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  gap: 36px;
  align-items: start;
}

.status-main {
  min-width: 0;
}

.status-kicker {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
}

.status-kicker .eyebrow {
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgb(var(--state-rgb) / 0.42);
  border-radius: 999px;
  color: var(--ink-strong);
  background: rgb(var(--state-rgb) / 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  font-weight: 840;
}

.state-label::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 0 5px rgb(var(--state-rgb) / 0.16);
  content: "";
}

h1,
h2 {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.05rem);
}

.lead {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.status-explanation {
  max-width: 740px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgb(var(--state-rgb) / 0.24);
  border-left: 4px solid var(--state);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(8, 13, 18, 0.42);
  font-weight: 660;
}

.driver-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.driver {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
  font-weight: 720;
}

.driver::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.driver-positive::before {
  background: var(--teal);
}

.driver-caution::before {
  background: var(--amber);
}

.driver-stress::before {
  background: var(--red);
}

.driver-data::before {
  background: var(--gray);
}

.driver-label,
.driver-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}

.driver-detail {
  color: var(--muted-strong);
  font-weight: 620;
}

.status-facts,
.threshold-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.status-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(13, 20, 27, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.status-facts div,
.threshold-list div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.status-facts div:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.status-facts div:first-child,
.status-facts div:nth-child(2) {
  background: rgb(var(--state-rgb) / 0.09);
  border-color: rgb(var(--state-rgb) / 0.24);
}

.status-facts dt,
.threshold-list dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.status-facts dd,
.threshold-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 1.08rem;
  font-weight: 780;
}

.state-use_flexible_now {
  --state: var(--teal);
  --state-rgb: var(--teal-rgb);
}

.state-normal {
  --state: var(--green);
  --state-rgb: var(--green-rgb);
}

.state-partial {
  --state: var(--amber);
  --state-rgb: var(--amber-rgb);
}

.state-reduce {
  --state: var(--amber);
  --state-rgb: var(--amber-rgb);
}

.state-strong_reduce {
  --state: var(--red);
  --state-rgb: var(--red-rgb);
}

.state-unknown {
  --state: var(--gray);
  --state-rgb: var(--gray-rgb);
}

.section-band {
  padding: 64px 0;
  background: rgba(8, 13, 18, 0.86);
}

.section-band.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d151d;
}

.two-column,
.content-grid,
.info-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 40px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    var(--surface);
}

.info-grid h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.info-grid p {
  margin: 12px 0 0;
  color: var(--muted-strong);
}

.copy-block,
.content-grid > div:first-child,
.narrow {
  color: var(--muted-strong);
}

.copy-block p,
.content-grid p,
.narrow p {
  margin: 0 0 16px;
  font-size: 1.04rem;
}

.safety-note {
  padding: 16px;
  border: 1px solid rgba(112, 183, 255, 0.24);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(112, 183, 255, 0.08);
  font-weight: 660;
}

.threshold-list {
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.section-heading {
  margin-bottom: 24px;
}

.production-band {
  background:
    linear-gradient(180deg, #0a1118, #0f1822);
}

.section-heading p:not(.eyebrow) {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted-strong);
}

.production-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.production-metrics div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.production-metrics div:nth-child(1),
.production-metrics div:nth-child(2) {
  border-color: rgba(112, 183, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(112, 183, 255, 0.12), rgba(255, 255, 255, 0.025)),
    var(--surface);
}

.production-metrics dt {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.production-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-size: 1.16rem;
  font-weight: 840;
}

.mix-bar {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 26px;
  overflow: visible;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.mix-fill {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
}

.mix-segment {
  position: relative;
  display: block;
  width: 0;
  min-width: 0;
  transition: width 180ms ease;
}

.mix-segment.is-first-visible {
  border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);
}

.mix-segment.is-last-visible {
  border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
}

.mix-segment.is-first-visible.is-last-visible {
  border-radius: calc(var(--radius) - 1px);
}

.mix-tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  z-index: 4;
  left: 0;
  max-width: min(260px, calc(100vw - 32px));
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-strong);
  background: #05090d;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
  white-space: nowrap;
}

.mix-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mix-segment:focus-visible {
  z-index: 5;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.mix-segment.renewable {
  background: linear-gradient(90deg, #25d084, #75e3b0);
}

.mix-segment.nuclear {
  background: linear-gradient(90deg, #8b7cff, #b9adff);
}

.mix-segment.fossil {
  background: linear-gradient(90deg, #a5adb7, #d0d7de);
}

.mix-segment.other {
  background: linear-gradient(90deg, #f0c15c, #ffe08c);
}

.mix-legend {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.history-hero {
  padding: 52px 0 38px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(112, 183, 255, 0.13), rgba(13, 20, 27, 0.9) 44%, rgba(8, 13, 18, 0.98)),
    var(--bg-elevated);
}

.history-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: 28px;
  align-items: start;
}

.history-page h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.history-page h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(13, 20, 27, 0.72);
  box-shadow: var(--shadow);
}

.history-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.history-summary dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.history-summary dd {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.history-page-band {
  background:
    linear-gradient(180deg, #0a1118, #0c151e);
}

.history-wrap {
  width: min(940px, calc(100% - 32px));
}

.history-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.74fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.history-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted-strong);
}

.history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.legend-token {
  --state: var(--gray);
  --state-rgb: var(--gray-rgb);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgb(var(--state-rgb) / 0.28);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgb(var(--state-rgb) / 0.07);
  font-size: 0.86rem;
  font-weight: 780;
}

.legend-token span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #071018;
  background: var(--state);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.history-timeline-shell {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

.history-overview {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(4px, 1fr);
  gap: 2px;
  min-height: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.history-overview-marker {
  min-width: 4px;
  border-radius: 999px;
  background: rgb(var(--state-rgb) / 0.55);
}

.history-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-timeline::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 17px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.history-timeline-item {
  --state: var(--gray);
  --state-rgb: var(--gray-rgb);
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  opacity: 0;
  transform: translateY(8px);
  animation: history-row-in 360ms ease forwards;
  animation-delay: min(calc(var(--i) * 18ms), 420ms);
}

@keyframes history-row-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(var(--state-rgb) / 0.54);
  border-radius: 50%;
  color: #071018;
  background: var(--state);
  box-shadow: 0 0 0 5px rgb(var(--state-rgb) / 0.1);
  font-size: 0.72rem;
  font-weight: 920;
  line-height: 1;
}

.timeline-card {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--state);
  border-radius: var(--radius);
  background: rgba(8, 13, 18, 0.42);
}

.timeline-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.timeline-topline time {
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.timeline-state {
  color: var(--ink-strong);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.timeline-badge {
  padding: 3px 7px;
  border: 1px solid rgba(246, 184, 75, 0.34);
  border-radius: var(--radius);
  color: #ffe0a6;
  background: rgba(246, 184, 75, 0.08);
  font-size: 0.76rem;
  font-weight: 800;
}

.timeline-reason {
  margin: 7px 0 0;
  color: var(--muted-strong);
}

.timeline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 0 0;
}

.timeline-metrics div {
  display: inline-flex;
  min-width: 0;
  gap: 5px;
  align-items: baseline;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-metrics dt,
.timeline-metrics dd {
  margin: 0;
  font-size: 0.8rem;
}

.timeline-metrics dt {
  color: var(--muted);
  font-weight: 760;
}

.timeline-metrics dd {
  color: var(--ink);
  font-weight: 820;
}

.history-loading {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(8, 13, 18, 0.42);
}

.data-disclaimer {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #070b10;
}

.data-disclaimer p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.data-disclaimer strong {
  color: var(--muted-strong);
}

.embed-disclosure,
.nerd-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

.embed-disclosure summary,
.nerd-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.embed-disclosure summary::-webkit-details-marker,
.nerd-box summary::-webkit-details-marker {
  display: none;
}

.embed-disclosure summary::after,
.nerd-box summary::after {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-strong);
  background: var(--surface-2);
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.embed-disclosure[open] summary::after,
.nerd-box[open] summary::after {
  content: "-";
}

.embed-disclosure summary:focus-visible,
.nerd-box summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.summary-title {
  display: block;
  color: var(--ink-strong);
  font-size: clamp(1.32rem, 3vw, 2.05rem);
  font-weight: 840;
  line-height: 1.12;
}

.embed-tool {
  display: grid;
  gap: 18px;
  margin: 0 22px 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 18, 0.42);
}

.nerd-content {
  display: grid;
  gap: 18px;
  margin: 0 22px 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted-strong);
  background: rgba(8, 13, 18, 0.42);
}

.nerd-content p {
  margin: 0;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented legend {
  width: 100%;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 760;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--surface-2);
  font-weight: 760;
  cursor: pointer;
}

.segmented input:checked + span {
  color: #071018;
  background: var(--blue-strong);
  border-color: var(--blue-strong);
}

.segmented input:focus-visible + span,
button:focus-visible,
textarea:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.preview-shell {
  max-width: 780px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 12px
    ),
    #091018;
  overflow: hidden;
}

#embed-preview {
  display: block;
  width: 320px;
  height: 96px;
  max-width: 100%;
  border: 0;
  background: transparent;
}

.snippet-label {
  color: var(--muted);
  font-weight: 760;
}

.snippet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

textarea {
  width: 100%;
  min-height: 142px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #071018;
  font: 0.92rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  resize: vertical;
}

button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  color: #071018;
  background: var(--blue-strong);
  box-shadow: 0 12px 28px rgba(112, 183, 255, 0.16);
  font-weight: 820;
  cursor: pointer;
}

button:hover {
  background: #c1e2ff;
}

.copy-feedback {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
}

.info-page .info-hero {
  padding: 46px 0 34px;
  background:
    linear-gradient(135deg, rgba(49, 214, 194, 0.14), rgba(13, 20, 27, 0.88) 42%, rgba(8, 13, 18, 0.98)),
    var(--bg-elevated);
}

.info-hero-grid,
.info-split,
.embed-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.info-page h1 {
  max-width: 700px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.info-page h2 {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
}

.info-page .lead {
  margin-top: 14px;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.info-quick-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(13, 20, 27, 0.7);
  box-shadow: var(--shadow);
}

.info-quick-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.info-quick-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.info-quick-facts dd {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 800;
}

.info-section-tight {
  padding: 42px 0;
}

.info-page .info-grid article {
  padding: 18px;
}

.info-page .info-grid h2 {
  font-size: 1.22rem;
}

.info-page .info-grid p {
  margin-top: 10px;
  font-size: 0.98rem;
}

.info-split {
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  align-items: center;
}

.embed-panel {
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

.embed-panel-copy p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted-strong);
}

.embed-panel-tool {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.compact-preview {
  max-width: 366px;
  padding: 10px;
}

.compact-snippet {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.compact-snippet textarea {
  min-height: 100px;
  font-size: 0.8rem;
}

#info-nerd {
  padding: 18px;
}

.nerd-header {
  display: grid;
  gap: 8px;
  max-width: 900px;
  margin-bottom: 16px;
}

.nerd-header h2,
.nerd-header p {
  margin: 0;
}

.nerd-header p {
  color: var(--muted-strong);
}

.nerd-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.nerd-flow div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 18, 0.42);
}

.nerd-flow span {
  display: grid;
  width: 26px;
  height: 26px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 50%;
  color: #071018;
  background: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 880;
}

.nerd-flow strong {
  display: block;
  color: var(--ink-strong);
  font-size: 0.96rem;
}

.nerd-flow p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.nerd-detail {
  border-top: 1px solid var(--line);
}

#info-nerd .nerd-detail summary {
  display: block;
  min-height: 0;
  padding: 13px 0;
  color: var(--ink-strong);
  cursor: pointer;
  font-weight: 820;
  list-style: none;
}

#info-nerd .nerd-detail summary::-webkit-details-marker {
  display: none;
}

#info-nerd .nerd-detail summary::before {
  display: inline-block;
  width: 1.3em;
  color: var(--blue-strong);
  content: "+";
}

#info-nerd .nerd-detail summary::after {
  display: none;
  content: none;
}

#info-nerd .nerd-detail[open] summary::before {
  content: "-";
}

#info-nerd .nerd-detail summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.nerd-detail-body {
  display: grid;
  gap: 12px;
  padding: 0 0 14px 1.3em;
  color: var(--muted-strong);
}

.nerd-detail-body p,
.nerd-detail-body ul {
  margin: 0;
}

.nerd-detail-body ul {
  padding-left: 20px;
}

.nerd-detail-body li + li {
  margin-top: 5px;
}

.compact-thresholds {
  padding: 8px;
  background: rgba(8, 13, 18, 0.4);
}

.compact-thresholds div {
  padding: 11px;
}

.compact-thresholds dd {
  color: var(--muted-strong);
  font-size: 0.94rem;
  font-weight: 560;
}

.threshold-value {
  color: var(--ink-strong);
  font-weight: 800;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  background: #070b10;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink-strong);
}

.site-footer p a {
  display: inline-block;
  margin-left: 0.45rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-nav a {
  font-weight: 760;
}

@media (max-width: 860px) {
  .status-grid,
  .two-column,
  .content-grid,
  .info-grid,
  .info-hero-grid,
  .history-hero-grid,
  .history-intro,
  .info-split,
  .embed-panel,
  .snippet-row {
    grid-template-columns: 1fr;
  }

  .status-grid {
    align-items: start;
  }

  .production-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nerd-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-preview {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .header-wrap {
    display: grid;
    gap: 6px;
    align-items: start;
    padding: 12px 0;
  }

  .info-page .header-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-page .brand {
    min-width: 0;
    align-items: flex-start;
  }

  .info-page .brand span:last-child {
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  .site-header {
    position: static;
  }

  .status-hero {
    padding: 40px 0;
  }

  h1 {
    font-size: 1.96rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .status-main .status-kicker {
    margin-bottom: 14px;
  }

  .status-main .status-kicker .eyebrow {
    display: none;
  }

  .section-band {
    padding: 46px 0;
  }

  .info-section-tight {
    padding: 34px 0;
  }

  .info-page .info-hero {
    padding: 36px 0 30px;
  }

  .status-facts {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .status-facts div:nth-child(n + 3),
  .status-facts div:first-child,
  .status-facts div:nth-child(2) {
    grid-column: auto;
  }

  .status-facts div {
    padding: 12px;
  }

  .status-facts dd {
    font-size: 1rem;
  }

  .driver-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .driver {
    justify-content: flex-start;
  }

  .history-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .production-metrics {
    grid-template-columns: 1fr;
  }

  .embed-tool,
  .nerd-content {
    margin-inline: 14px;
    padding: 16px;
  }

  .embed-disclosure summary,
  .nerd-box summary {
    padding: 18px 16px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p a {
    display: block;
    margin: 8px 0 0;
  }

  .history-summary {
    grid-template-columns: 1fr;
  }

  .history-timeline-shell {
    padding: 12px;
  }

  .history-overview {
    grid-auto-columns: minmax(3px, 1fr);
  }

  button {
    width: 100%;
  }

  .compact-snippet {
    grid-template-columns: 1fr;
  }

  #info-nerd,
  .embed-panel {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .wrap,
  .narrow {
    width: min(100% - 24px, 1120px);
  }

  .nerd-flow {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mix-segment {
    transition: none;
  }

  .history-timeline-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
