:root {
  --outer-void: #040403;
  --ink: #0c0c0b;
  --soot: #161614;
  --obsidian: #1e1e1a;
  --ash: #5b5852;
  --concrete: #8c877d;
  --bone: #d6d0c4;
  --paper: #ede8df;
  --paper-bright: #ffffff;
  --rust: #8a3b24;

  /* Lore & Terminal Color Tokens */
  --phosphor: #00ff66;
  --amber: #ffb000;
  --hazard-crimson: #ff2a2a;
  --cyan-terminal: #00f0ff;

  --rule: 2px solid var(--bone);
  --hairline: 1px solid var(--ash);
  --hairline-bone: 1px solid var(--bone);

  --display: "Anton", "Impact", sans-serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* Zero border-radius enforced site-wide */
}

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

body {
  color: var(--bone);
  background: var(--outer-void);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- 1530PX MAXIMUM BROAD SHEET FRAME ---------- */
.site-frame {
  max-width: 1530px;
  width: 100%;
  margin: 0 auto;
  background: var(--ink);
  min-height: 100vh;
  position: relative;
  border-left: 1px solid rgba(91, 88, 82, 0.45);
  border-right: 1px solid rgba(91, 88, 82, 0.45);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
}

::selection {
  background: var(--bone);
  color: var(--ink);
}

/* ---------- GRAIN OVERLAY ---------- */
.grain-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  filter: url(#grain);
  opacity: 0.09;
  background: #fff;
  mix-blend-mode: overlay;
  animation: grain-shake 0.6s steps(3) infinite;
}

@keyframes grain-shake {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-2%, 1%);
  }
  66% {
    transform: translate(1%, -2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ---------- CRT SCANLINES OVERLAY ---------- */
.scanlines {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.45) 50%);
  background-size: 100% 4px;
}

body.crt-active .scanlines {
  display: block;
}

body.crt-active {
  text-shadow: 0 0 1px rgba(214, 208, 196, 0.4);
}

/* ---------- GLYPHS & UTILITIES ---------- */
.glyph-symbol {
  font-family: var(--mono);
  color: var(--concrete);
}

.blink {
  color: var(--hazard-crimson);
  animation: terminal-blink 1.4s steps(1) infinite;
}

.blink-green {
  color: var(--phosphor);
  animation: terminal-blink 1.4s steps(1) infinite;
}

.blink-amber {
  color: var(--amber);
  animation: terminal-blink 1.4s steps(1) infinite;
}

@keyframes terminal-blink {
  50% {
    opacity: 0;
  }
}

.kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--concrete);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--bone);
  color: var(--ink);
  border: var(--rule);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ash);
  transition:
    transform 0.1s,
    box-shadow 0.1s,
    background 0.1s,
    color 0.1s;
}

.btn:hover {
  background: var(--ink);
  color: var(--bone);
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ash);
}

.btn:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.btn--sm {
  font-size: 1.1rem;
  padding: 0.5rem 0.9rem;
  gap: 0.8rem;
  box-shadow: 4px 4px 0 var(--ash);
}

.btn--sm:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ash);
}

.btn--outline {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--bone);
  box-shadow: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.8rem;
  text-transform: uppercase;
}

.btn--outline:hover {
  background: var(--bone);
  color: var(--ink);
  transform: none;
  box-shadow: none;
}

/* ---------- 00. GLOBAL MASTHEAD & TOPBAR ---------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem clamp(1rem, 2.5vw, 2rem);
  border-bottom: var(--hairline);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--concrete);
  background: var(--soot);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar__edition {
  color: var(--bone);
  font-weight: 700;
}

.topbar__date {
  color: var(--bone);
}

.topbar__price {
  color: var(--ash);
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-toggle {
  background: transparent;
  border: 1px solid var(--ash);
  color: var(--concrete);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 0.18rem 0.5rem;
  cursor: pointer;
  transition: all 0.12s;
}

.control-toggle:hover {
  border-color: var(--bone);
  color: var(--bone);
}

.control-toggle.is-active {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
  font-weight: 700;
}

.control-toggle--optimist.is-active {
  background: #ffcc00;
  color: #111;
  border-color: #ffcc00;
}

/* ---------- PRIMARY BRAND MASTHEAD (COMPACT BROADSHEET HEADER) ---------- */
.masthead {
  padding: 0.75rem clamp(1rem, 2.5vw, 2rem);
  border-bottom: var(--rule);
  background: var(--ink);
  position: relative;
}

.masthead__brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.masthead__identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  display: inline-flex;
  align-items: baseline;
  gap: 0.22em;
  margin: 0;
  white-space: nowrap;
}

.title__line {
  display: inline-block;
}

.title__line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone);
}

.masthead__deck {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  border-left: 1px solid var(--ash);
  padding-left: 1.25rem;
}

.tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.05;
  color: var(--paper-bright);
}

.masthead__subdeck {
  font-size: 10.5px;
  color: var(--concrete);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.status-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 9.5px;
  color: var(--bone);
  margin-top: 0.1rem;
}

.status-box--masthead {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ash);
  background: var(--soot);
  font-size: 10px;
  margin-top: 0;
}

.masthead__telemetry-badge {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.25rem;
  border: 1px solid var(--ash);
  padding: 0.55rem 0.75rem;
  background: #121210;
}

.masthead__telemetry-badge--sidebar {
  border-bottom: 2px solid var(--bone);
  margin-bottom: 0.45rem;
}

.badge-header-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.badge-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--concrete);
  text-transform: uppercase;
}

.badge-master-val {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hazard-crimson);
  letter-spacing: -0.03em;
  text-align: right;
}

.badge-status-pill {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--hazard-crimson);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-details {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 9.5px;
  color: var(--concrete);
  border-top: 1px solid var(--ash);
  padding-top: 0.25rem;
  width: 100%;
}

.badge-details strong {
  color: var(--bone);
}

/* ---------- THE DYSTOPIA FINANCIAL TICKER ---------- */
.dystopia-ticker-wrap {
  border-bottom: 1px solid var(--ash);
  background: var(--soot);
  overflow-x: clip;
  position: relative;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  z-index: 90;
}

.ticker-strip {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.25rem 0;
  animation: marquee 45s linear infinite;
  gap: 2rem;
}

.ticker-strip:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border: 1px solid transparent;
  transition: all 0.1s;
}

.ticker-item:hover {
  border-color: var(--concrete);
  background: var(--ink);
}

.ticker-symbol {
  font-weight: 700;
  color: var(--bone);
}

.ticker-name {
  color: var(--concrete);
}

.ticker-val {
  font-weight: 700;
}

/* Dystopia increase framed as "bullish" hedge-fund logic */
.ticker-val.bullish-up {
  color: var(--phosphor);
}

.ticker-val.bullish-amber {
  color: var(--amber);
}

.ticker-tag {
  font-size: 9px;
  padding: 0.1rem 0.35rem;
  background: rgba(0, 255, 102, 0.12);
  color: var(--phosphor);
  border: 1px solid rgba(0, 255, 102, 0.3);
  text-transform: uppercase;
}

/* Terminal Tooltip ("Hover-State Receipts") */
.ticker-item .ticker-receipt {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  min-width: 290px;
  background: var(--ink);
  border: 1px solid var(--bone);
  padding: 0.8rem;
  box-shadow: 6px 6px 0 var(--ash);
  white-space: normal;
  text-align: left;
  line-height: 1.4;
  color: var(--concrete);
  font-size: 11px;
  margin-top: 0.3rem;
}

.ticker-item:hover .ticker-receipt {
  display: block;
}

.ticker-receipt__title {
  color: var(--bone);
  font-weight: 700;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 0.2rem;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.ticker-receipt__source {
  color: var(--amber);
  margin-top: 0.4rem;
  font-size: 9px;
}

/* ---------- THE "DON'T LOOK UP" DISSONANCE BAR ---------- */
.dissonance-bar {
  border-bottom: 1px solid var(--ash);
  display: grid;
  grid-template-rows: auto auto;
}

.dissonance-track {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.09em;
}

.dissonance-track--baseline {
  background: #11100e;
  border-bottom: 1px solid var(--ash);
  color: var(--bone);
}

.dissonance-track--public {
  background: var(--ink);
  color: var(--concrete);
}

.dissonance-label {
  flex-shrink: 0;
  padding: 0.28rem 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 9.5px;
  border-right: 1px solid var(--ash);
  width: 175px;
}

.dissonance-track--baseline .dissonance-label {
  background: #1c1a17;
  color: var(--hazard-crimson);
}

.dissonance-track--public .dissonance-label {
  background: #131311;
  color: var(--concrete);
}

.dissonance-content {
  display: flex;
  align-items: center;
  padding: 0.28rem 1rem;
  overflow: hidden;
  white-space: nowrap;
  animation: marquee-slow 60s linear infinite;
  gap: 2.2rem;
}

.dissonance-track:hover .dissonance-content {
  animation-play-state: paused;
}

@keyframes marquee-slow {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.dissonance-content span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- PORTAL JUMP NAV (HIGH-FOCUS CATEGORY SUBNAVIGATION) ---------- */
.portal-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  border-top: 1px solid var(--bone);
  border-bottom: var(--rule);
  background: var(--soot);
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portal-nav::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.portal-nav__links {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: stretch;
  gap: 0;
}

.nav-link {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  border-right: 1px solid var(--ash);
  border-bottom: 3px solid transparent;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:first-child {
  border-left: 1px solid var(--ash);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link--active {
  color: var(--paper-bright);
  background: #22211d;
  border-bottom-color: var(--amber);
}

.nav-link .nav-sec {
  color: var(--amber);
  font-weight: 700;
  font-size: 11.5px;
}

.portal-nav__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.portal-nav__status-tag {
  color: var(--phosphor);
  font-weight: 700;
  white-space: nowrap;
}

.portal-nav__about-btn {
  font-size: 10px;
  padding: 4px 8px;
  white-space: nowrap;
}

.portal-nav__cta {
  display: flex;
  align-items: center;
  padding: 0.45rem 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.portal-nav__cta .btn--sm {
  font-size: 1.05rem;
  padding: 0.48rem 1rem;
  gap: 0.6rem;
  box-shadow: 3px 3px 0 var(--ash);
}

/* ---------- OPTIMIST FILTER BANNER ---------- */
.optimist-banner {
  display: none;
  background: #ffcc00;
  color: #0c0c0b;
  padding: 0.75rem 1.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 2px solid #000;
  text-align: center;
}

body.optimist-active .optimist-banner {
  display: block;
}

/* Optimist Active State on whole portal */
body.optimist-active .blur-in-optimist,
body.optimist-active .editorial-visual,
body.optimist-active .system-card__visual {
  filter: blur(8px) grayscale(100%);
  user-select: none;
}

body.optimist-active .spin-headline {
  text-decoration: none !important;
  color: #111 !important;
  background: #ffcc00;
  padding: 0.2rem 0.5rem;
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

body.optimist-active .baseline-headline {
  opacity: 0.25;
  font-size: 0.9em;
}

body.optimist-active .bread-circuses-module {
  background: #1a1a0f !important;
  border-color: #ffcc00 !important;
}

/* ---------- 12-COLUMN MAIN BROAD SHEET GRID ---------- */
.broadsheet-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  background: var(--ash); /* Acts as the 1px grid hair border */
  gap: 1px;
  border-bottom: var(--rule);
}

.grid-cell {
  background: var(--ink);
  position: relative;
}

/* ---------- § 01. PRIMARY IMPACT (COMPACT BROADSHEET HERO) ---------- */
.primary-impact__main {
  grid-column: span 8;
  padding: clamp(1rem, 2vw, 1.65rem) clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.primary-impact__rail {
  grid-column: span 4;
  padding: clamp(1rem, 2vw, 1.65rem) clamp(1rem, 2vw, 1.65rem);
  background: var(--soot);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.section-header-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 0.45rem;
  margin-bottom: 0.85rem;
}

.section-h {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.section-meta-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-byline {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--concrete);
  text-transform: uppercase;
}

.section-status {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--hazard-crimson);
  font-weight: 700;
}

/* Headline (Broadsheet Lead Scale) */
.dual-headline-wrap {
  margin-bottom: 1rem;
}

.baseline-headline {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.2vw, 2.95rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: var(--paper-bright);
  text-transform: uppercase;
}

/* 2-Column Internal Newspaper Split for Lead Story */
.primary-impact__lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1.5rem;
  align-items: start;
}

.primary-impact__story-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--ash);
  padding-right: 1.5rem;
}

.primary-impact__visual-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lead-standfirst {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  line-height: 1.5;
  color: #f7f3ea;
  border-left: 2px solid var(--amber);
  padding-left: 0.85rem;
  margin-bottom: 0.85rem;
}

.dateline {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
  margin-right: 0.35rem;
}

/* Stark Graphic Container */
.editorial-visual {
  position: relative;
  margin: 1rem 0;
  border: 1px solid var(--ash);
  background: #080807;
  overflow: hidden;
}

.editorial-visual--hero {
  margin: 0;
}

.editorial-visual__graphic,
.editorial-visual img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(140%) brightness(95%);
  mix-blend-mode: screen;
  transition: filter 0.25s ease;
}

.editorial-visual--hero .editorial-visual__graphic {
  max-height: 240px;
}

.editorial-visual:hover img {
  filter: grayscale(100%) contrast(160%) brightness(105%);
}

.editorial-visual__graphic-fallback {
  width: 100%;
  display: block;
  background: #080807;
}

.editorial-visual__graphic-fallback svg {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(140%) brightness(95%);
  mix-blend-mode: screen;
}

.editorial-visual__caption {
  padding: 0.4rem 0.7rem;
  background: var(--soot);
  border-top: 1px solid var(--ash);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  font-family: var(--font-mono, monospace);
  color: var(--concrete);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

/* Compact Executive Dossier Brief Box under Hero Graphic */
.impact-brief-box {
  border: 1px solid var(--ash);
  background: var(--soot);
}

.impact-brief-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-bottom: 1px solid var(--ash);
  background: #121210;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
}

.impact-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ash);
}

.impact-brief-item {
  background: var(--ink);
  padding: 0.5rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.impact-brief-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--concrete);
  text-transform: uppercase;
}

.impact-brief-val {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--bone);
}

.impact-brief-val--alert {
  color: var(--hazard-crimson);
}

/* Compact Visual Module for Bento Grid Cards */
.system-card__visual {
  position: relative;
  margin: 0.8rem 0 1rem 0;
  border: 1px solid var(--ash);
  background: #080807;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 160px;
  display: flex;
  flex-direction: column;
}

.system-card__visual img,
.system-card__visual .editorial-visual__graphic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(140%) brightness(95%);
  mix-blend-mode: screen;
  transition:
    filter 0.2s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover .system-card__visual img,
.system-card:hover .system-card__visual svg {
  filter: grayscale(100%) contrast(165%) brightness(105%);
  transform: scale(1.02);
}

.system-card__visual .editorial-visual__graphic-fallback {
  height: 100%;
  display: flex;
}

.system-card__visual .editorial-visual__graphic-fallback svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    filter 0.2s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card__visual-caption {
  padding: 0.35rem 0.6rem;
  background: var(--soot);
  border-top: 1px solid var(--ash);
  font-size: 9px;
  letter-spacing: 0.12em;
  font-family: var(--font-mono, monospace);
  color: var(--concrete);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.lead-synthesis {
  display: grid;
  gap: 0.75rem;
  font-family: var(--sans);
  color: var(--paper);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.lead-synthesis p {
  color: var(--paper);
}

.lead-synthesis p strong {
  color: var(--paper-bright);
  font-weight: 700;
}

.lead-synthesis p em {
  color: var(--amber);
  font-style: italic;
}

.redacted-inline {
  background: var(--bone);
  color: var(--bone);
  cursor: pointer;
  padding: 0 0.2rem;
  user-select: none;
  transition:
    background 0.1s,
    color 0.1s;
}

.redacted-inline:hover,
.redacted-inline.is-revealed {
  background: rgba(255, 42, 42, 0.18);
  color: var(--hazard-crimson);
}

.impact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--ash);
  padding-top: 0.85rem;
}

.btn--compact {
  font-size: 1.05rem;
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  box-shadow: 3px 3px 0 var(--ash);
}

/* Context Rail Styling (Dystopia Index Sidebar & Telemetry) */
.rail-block {
  border-bottom: 1px solid var(--ash);
  padding-bottom: 0.9rem;
}

.rail-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.rail-header-row .rail-title {
  margin-bottom: 0;
}

.rail-live-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--phosphor);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.rail-title {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Compact "Latest Items" Feed (Sidebar Ledger Style) */
.latest-ledger-wrap {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ash);
}

/* Clean Single-Column Short Links List (Following Design System §07 Ticker Item) */
.shortlinks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortlinks-item {
  border: 1px dashed var(--ash);
  padding: 20px;
  background: var(--ink);
  transition:
    border-color 0.12s,
    background 0.12s;
}

.shortlinks-item:hover {
  border-color: var(--bone);
  background: var(--soot);
}

.shortlinks-kicker {
  display: block;
  font-size: 10px;
  color: var(--phosphor);
  font-weight: 700;
}

.shortlinks-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.15;
  margin: 8px 0;
  color: var(--bone);
}

.shortlinks-title a {
  color: var(--bone);
  text-decoration: none;
}

.shortlinks-title a:hover {
  color: var(--amber);
}

.shortlinks-excerpt {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--concrete);
  line-height: 1.45;
  margin: 0 0 12px 0;
}

.shortlinks-footer {
  display: block;
  font-size: 10px;
  color: var(--amber);
}

.ledger-table.ledger-table--compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ledger-table.ledger-table--compact th {
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid var(--bone);
  background: #121210;
  color: var(--concrete);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 9px;
  text-transform: uppercase;
}

.ledger-row.ledger-row--compact td {
  padding: 0.55rem 0.65rem;
  vertical-align: top;
}

.ledger-row.ledger-row--compact:last-child {
  border-bottom: none;
}

.ledger-row.ledger-row--compact .ledger-docket {
  display: block;
  font-size: 9px;
  line-height: 1.2;
  color: var(--concrete);
  margin-bottom: 0.15rem;
}

.ledger-row.ledger-row--compact .ledger-entity {
  display: block;
  font-size: 10px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ledger-headline.ledger-headline--compact {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--paper-bright);
  margin-bottom: 0;
}

.ledger-row.ledger-row--compact .ledger-action {
  font-size: 0.95rem;
  vertical-align: middle;
}

/* Unified Composite & Dystopia Index Components in Right Sidebar */
.dystopia-index-unified {
  display: flex;
  flex-direction: column;
}

.sidebar-dystopia-index {
  display: grid;
  gap: 0.4rem;
}

.dystopia-index-card {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--ash);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}

.dystopia-index-card:hover,
.dystopia-index-card:focus-visible {
  border-color: var(--bone);
  background: #141412;
  outline: none;
}

.dystopia-index-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.dystopia-index-card__id {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.dystopia-index-card .ticker-symbol {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--paper-bright);
  letter-spacing: 0.08em;
}

.dystopia-index-card .ticker-name {
  font-size: 9.5px;
  color: var(--concrete);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dystopia-index-card .ticker-val {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dystopia-index-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.dystopia-index-card__source {
  font-size: 8.5px;
  color: var(--ash);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dystopia-index-card .ticker-receipt {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 130;
  background: var(--ink);
  border: 1px solid var(--bone);
  padding: 0.75rem;
  box-shadow: 6px 6px 0 var(--ash);
  line-height: 1.4;
  color: var(--paper);
  font-size: 11px;
}

.dystopia-index-card:hover .ticker-receipt,
.dystopia-index-card:focus-within .ticker-receipt {
  display: block;
}

.reaction-metrics-grid {
  display: grid;
  gap: 0.45rem;
}

.metric-readout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px dashed var(--ash);
  padding-bottom: 0.25rem;
  font-size: 11px;
}

.metric-readout__label {
  color: var(--concrete);
}

.metric-readout__value {
  font-weight: 700;
  color: var(--bone);
}

.synthetic-callout-box {
  background: var(--ink);
  border: 1px solid var(--ash);
  padding: 0.75rem 0.85rem;
}

.synthetic-callout-box__title {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.synthetic-callout-box__number {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bone);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.synthetic-callout-box__copy {
  font-size: 10.5px;
  color: var(--concrete);
  line-height: 1.35;
}

/* ---------- § 02. THE LEDGER (7 COLS) ---------- */
.ledger-module {
  grid-column: span 7;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  background: var(--ink);
}

.ledger-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.ledger-table th {
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid var(--bone);
  color: var(--concrete);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 10.5px;
  text-transform: uppercase;
}

.ledger-row {
  border-bottom: 1px solid var(--ash);
  cursor: pointer;
  transition: background 0.12s ease;
}

.ledger-row:hover {
  background: var(--soot);
}

.ledger-row td {
  padding: 1.15rem 0.85rem;
  vertical-align: top;
}

.ledger-docket {
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--concrete);
  white-space: nowrap;
  display: inline-block;
}

.ledger-entity {
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  display: inline-block;
}

.ledger-thumb-cell {
  width: 96px;
}

.ledger-thumb {
  width: 84px;
  height: 56px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--ash);
  background: #080807;
  filter: grayscale(100%) contrast(140%) brightness(95%);
  transition:
    filter 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.ledger-row:hover .ledger-thumb {
  filter: grayscale(100%) contrast(165%) brightness(108%);
  border-color: var(--amber);
}

.ledger-headline {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.55vw, 1.48rem);
  color: var(--paper-bright);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
  transition: color 0.12s ease;
}

.ledger-row:hover .ledger-headline {
  color: var(--amber);
}

.ledger-effect {
  color: var(--concrete);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 0.35rem;
  line-height: 1.5;
  border-left: 2px solid var(--ash);
  padding-left: 0.65rem;
}

.ledger-action {
  text-align: right;
  color: var(--concrete);
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 0.12s ease,
    transform 0.12s ease;
}

.ledger-row:hover .ledger-action {
  color: var(--paper-bright);
  transform: translateX(4px);
}

/* ---------- § 05. BREAD & CIRCUSES (5 COLS) ---------- */
.bread-circuses-module {
  grid-column: span 5;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  background: var(--soot);
  position: relative;
  /* Hatched border pattern signaling distraction / cultural anesthesia */
  border-left: 4px solid transparent;
  border-image: repeating-linear-gradient(
      45deg,
      var(--ash),
      var(--ash) 5px,
      transparent 5px,
      transparent 10px
    )
    4;
}

.bread-circuses-list {
  display: grid;
  gap: 1.5rem;
}

.distraction-item {
  border: 1px solid var(--ash);
  padding: 1rem;
  background: var(--ink);
  transition: border-color 0.12s;
}

.distraction-item:hover {
  border-color: var(--bone);
}

.distraction-tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #ffb000;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.distraction-spin {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.55vw, 1.48rem);
  color: var(--paper-bright);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin-bottom: 0.65rem;
}

.distraction-simultaneous {
  border-top: 1px dashed var(--ash);
  padding-top: 0.65rem;
  font-size: 11px;
  color: var(--concrete);
  line-height: 1.45;
}

.distraction-simultaneous strong {
  color: var(--hazard-crimson);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  font-size: 10px;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

/* ---------- § 03. SYSTEM ARCHITECTURE (12 COLS) ---------- */
.systems-module {
  grid-column: span 12;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  background: var(--ink);
}

.systems-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ash);
  border: 1px solid var(--ash);
}

.system-card {
  background: var(--ink);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.12s;
}

.system-card:hover {
  background: var(--soot);
}

.system-card__header {
  margin-bottom: 0.8rem;
}

.system-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--ash);
  display: inline-block;
  margin-bottom: 0.6rem;
}

.system-badge--mandatory {
  border-color: var(--hazard-crimson);
  color: var(--hazard-crimson);
}

.system-badge--deployed {
  border-color: var(--phosphor);
  color: var(--phosphor);
}

.system-badge--active {
  border-color: var(--amber);
  color: var(--amber);
}

.system-title {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--bone);
  text-transform: uppercase;
}

.system-abstract {
  font-size: 12.5px;
  color: var(--paper);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.system-specs-footer {
  border-top: 1px solid var(--ash);
  padding-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  font-size: 10px;
}

.spec-pair {
  display: flex;
  flex-direction: column;
}

.spec-key {
  color: var(--ash);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.spec-val {
  color: var(--bone);
  font-weight: 600;
}

/* ---------- § 04. PHYSICAL DECAY TELEMETRY (4 COLS) ---------- */
.decay-module {
  grid-column: span 4;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
  background: var(--soot);
}

.telemetry-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.telemetry-node {
  position: relative;
  padding-left: 1.8rem;
  padding-bottom: 1.8rem;
  border-left: 1px solid var(--ash);
}

.telemetry-node:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.telemetry-node::before {
  content: "■";
  position: absolute;
  left: -5px;
  top: 0;
  font-size: 9px;
  color: var(--bone);
  background: var(--soot);
}

.telemetry-node:hover::before {
  color: var(--hazard-crimson);
}

.telemetry-coord {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--concrete);
  text-transform: uppercase;
}

.telemetry-metric {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bone);
  line-height: 1.1;
  margin: 0.2rem 0;
}

.telemetry-dispatch {
  font-size: 11.5px;
  color: var(--bone);
  line-height: 1.45;
}

/* ---------- SYNTHETIC METRICS VAULT ---------- */
.synthetics-vault {
  border-bottom: var(--rule);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #090908;
}

.synthetics-vault__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.synthetics-vault__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--bone);
}

.synthetics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.synthetic-card {
  border: 1px solid var(--ash);
  background: var(--soot);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.synthetic-card__tag {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.synthetic-card__name {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 0.8rem;
}

.synthetic-card__readout {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hazard-crimson);
  margin-bottom: 0.6rem;
}

.synthetic-card__sub {
  font-size: 11px;
  color: var(--concrete);
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Plagiarism Clock Component */
.plagiarism-clock-display {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--phosphor);
  font-size: 1.2rem;
  margin: 0.5rem 0 0.8rem;
  background: var(--ink);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--ash);
}

.plagiarism-clock-unit {
  font-size: 9px;
  color: var(--concrete);
  font-weight: 400;
  margin-right: 0.4rem;
}

.btn-reset-plagiarism {
  background: transparent;
  border: 1px solid var(--hazard-crimson);
  color: var(--hazard-crimson);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.1s;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-reset-plagiarism:hover {
  background: var(--hazard-crimson);
  color: var(--ink);
}

/* ---------- § 06. MANIFESTO & § 07. SIGNUP ---------- */
.manifesto-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  border-bottom: var(--rule);
  background: var(--ink);
}

.manifesto__label {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: var(--rule);
}

.manifesto__label h2 {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.manifesto__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 65ch;
  display: grid;
  gap: 1.2rem;
  color: var(--concrete);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.lede {
  font-family: var(--serif);
  color: var(--bone);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
  margin-bottom: 0.5rem;
}

.lede strong {
  font-weight: 400;
  font-style: italic;
  display: block;
}

.strike {
  display: block;
  color: var(--ash);
  text-decoration: line-through;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 0.08em;
}

/* § 07 Signup Module */
.signup-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: var(--rule);
  background: var(--soot);
}

.signup__brand-col {
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signup__h {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 7rem);
  line-height: 0.85;
  text-transform: uppercase;
}

.signup__h--serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.55em;
  color: var(--concrete);
  letter-spacing: -0.01em;
  text-transform: none;
}

.signup__copy {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-family: var(--sans);
  color: var(--concrete);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}

.signup__subscribe-col {
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
}

.signup__subhead-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.85rem;
}

.signup__subhead-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.signup__instructions {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--paper);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.signup-form,
.signup__form {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

.signup-form__row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.signup-input,
.signup__input {
  flex: 1 1 340px;
  min-width: 240px;
  background: var(--ink);
  border: var(--rule);
  color: var(--bone);
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  padding: 0.85rem 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}

.signup-input::placeholder,
.signup__input::placeholder {
  color: var(--ash);
  opacity: 0.75;
  font-family: var(--mono);
  font-size: 0.9em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signup-input:hover,
.signup__input:hover {
  border-color: var(--paper-bright);
}

.signup-input:focus,
.signup__input:focus {
  outline: none;
  border-color: var(--hazard-crimson);
  box-shadow:
    4px 4px 0 var(--hazard-crimson),
    0 0 16px rgba(255, 42, 42, 0.25);
  background: #11110f;
}

.signup-input:disabled,
.signup__input:disabled {
  background: var(--outer-void);
  border-color: var(--phosphor);
  color: var(--phosphor);
  opacity: 0.85;
  cursor: not-allowed;
}

.signup-btn,
.signup__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.signup-btn:hover,
.signup__btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.honeypot-field {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.signup-feedback,
.signup__feedback {
  margin-top: 1.25rem;
  padding: 14px 18px;
  border: 1px solid var(--phosphor);
  border-left: 4px solid var(--phosphor);
  background: rgba(0, 255, 102, 0.06);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--phosphor);
  text-transform: uppercase;
  display: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.signup-disclaimer,
.signup__fine {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
}

@media (max-width: 900px) {
  .signup-section {
    grid-template-columns: 1fr;
  }
  .signup__brand-col {
    border-right: none;
    border-bottom: var(--rule);
  }
}

@media (max-width: 680px) {
  .signup-form__row {
    flex-direction: column;
    gap: 12px;
  }
  .signup-input,
  .signup__input,
  .signup-btn,
  .signup__btn {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ---------- 07. COLOPHON & FOOTER ---------- */
.footer {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer__big {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.85;
  color: var(--soot);
  -webkit-text-stroke: 1px var(--ash);
  user-select: none;
}

.footer__meta {
  display: grid;
  gap: 0.4rem;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ash);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.6rem;
  justify-content: flex-end;
}

.footer__links a {
  color: var(--concrete);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.footer__links a:hover {
  color: var(--bone);
  text-decoration: underline;
}

/* ---------- INTERACTIVE FULL DOSSIER DRAWER / MODAL ---------- */
.dossier-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 11, 0.85);
  backdrop-filter: blur(4px);
  justify-content: flex-end;
}

.dossier-modal.is-open {
  display: flex;
}

.dossier-drawer {
  width: min(920px, 100vw);
  height: 100vh;
  background: var(--ink);
  border-left: var(--rule);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.8);
  animation: slide-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.dossier-header {
  padding: 1.2rem 1.8rem;
  border-bottom: var(--rule);
  background: var(--soot);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dossier-classification {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--hazard-crimson);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dossier-close-btn {
  background: transparent;
  border: 1px solid var(--bone);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
}

.dossier-close-btn:hover {
  background: var(--bone);
  color: var(--ink);
}

.dossier-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  flex: 1;
}

.dossier-docket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 11px;
  color: var(--concrete);
  border-bottom: 1px solid var(--ash);
  padding-bottom: 1rem;
  margin-bottom: 1.8rem;
}

.dossier-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--bone);
}

.dossier-lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: #f7f3ea;
  line-height: 1.35;
  margin-bottom: 2rem;
  border-left: 2px solid var(--bone);
  padding-left: 1.2rem;
}

.dossier-text {
  display: grid;
  gap: 1.4rem;
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.7;
}

.dossier-text p {
  color: var(--paper);
}

.dossier-text strong {
  color: var(--paper-bright);
  font-weight: 700;
}

.dossier-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border: 1px solid var(--ash);
}

.dossier-specs-table th,
.dossier-specs-table td {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ash);
  font-size: 11px;
}

.dossier-specs-table th {
  background: var(--soot);
  color: var(--bone);
  text-align: left;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dossier-footer {
  padding: 1.5rem 1.8rem;
  border-top: 1px solid var(--ash);
  background: var(--soot);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1024px) {
  .broadsheet-grid {
    grid-template-columns: 1fr;
  }

  .primary-impact__main,
  .primary-impact__rail,
  .ledger-module,
  .bread-circuses-module,
  .systems-module,
  .decay-module {
    grid-column: span 1 !important;
  }

  .systems-bento-grid {
    grid-template-columns: 1fr;
  }

  .synthetics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation Menu: Horizontal touch scrolling */
  .portal-nav,
  .wireframe-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0 0.5rem;
    gap: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
  }

  .portal-nav::-webkit-scrollbar,
  .wireframe-nav::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }

  .portal-nav__links {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    align-items: stretch;
  }

  .nav-link {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.75rem 0.95rem;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .portal-nav__meta {
    display: flex !important;
    align-items: center;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0 0.5rem;
    margin-left: 0.5rem !important;
    gap: 8px;
  }

  .portal-nav__status-tag {
    white-space: nowrap !important;
    font-size: 10.5px;
  }

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

  .topbar__left,
  .topbar__controls {
    width: 100%;
    justify-content: space-between;
  }

  .masthead__deck {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--ash);
    padding-top: 0.5rem;
    width: 100%;
  }

  .masthead__telemetry-badge {
    width: 100%;
  }

  .primary-impact__lead-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .primary-impact__story-col {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--ash);
    padding-bottom: 1.25rem;
  }

  .manifesto-section {
    grid-template-columns: 1fr;
  }

  .manifesto__label {
    border-right: 0;
    border-bottom: 1px solid var(--ash);
  }

  .synthetics-grid {
    grid-template-columns: 1fr;
  }

  .footer__meta {
    text-align: left;
  }

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

  .dissonance-label {
    width: 140px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain,
  .blink,
  .blink-green,
  .blink-amber,
  .ticker-strip,
  .dissonance-content {
    animation: none !important;
  }
}

/* ---------- COMPACT ARTICLE TOPBAR (DIRECT URL VIEW) ---------- */
.article-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--bone);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--soot);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.article-topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.article-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bone);
  text-decoration: none;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--bone);
  background: var(--ink);
  transition: all 0.15s ease;
}

.article-topbar__back:hover {
  background: var(--bone);
  color: var(--ink);
}

.article-topbar__sep {
  color: var(--ash);
}

.article-topbar__edition {
  color: var(--concrete);
  font-size: 11px;
}

.article-topbar__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
}

.article-topbar__status-text {
  font-weight: 600;
  letter-spacing: 0.18em;
}

.article-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.article-btn-action {
  background: transparent;
  border: 1px solid var(--ash);
  color: var(--concrete);
  padding: 0.35rem 0.75rem;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}

.article-btn-action:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* ---------- DEDICATED ARTICLE POST LAYOUT ---------- */
.article-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 1px;
  background: var(--ash); /* Hairline exposed grid cell separators */
  border-bottom: 1px solid var(--ash);
  flex: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.article-main {
  background: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
}

.article-sidebar {
  background: var(--soot);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1px solid var(--ash);
}

.article-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--ash);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-post__kicker {
  color: var(--amber);
  font-weight: 700;
}

.article-post__classification {
  color: var(--concrete);
}

.article-post__title,
.single-post-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--paper-bright); /* High-contrast white */
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.headline-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.headline-link:hover {
  color: var(--amber);
}

.article-post__byline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  background: var(--soot);
  border: 1px solid var(--ash);
  margin-bottom: 2rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--concrete);
}

.article-post__byline-bar strong {
  color: var(--bone);
}

.article-post__lead,
.post-standfirst,
.article-excerpt {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
  line-height: 1.6;
  color: #f7f3ea; /* High contrast off-white Work Sans excerpt */
  border-left: 3px solid var(--amber);
  padding-left: 1.3rem;
  margin-bottom: 2.2rem;
}

.article-post__body,
.post-body,
.article-body,
#art-body {
  display: grid;
  gap: 1.4rem;
  max-width: 78ch;
  font-family: var(--sans);
  color: var(--bone);
}

.article-post__body p,
.post-body p,
.article-body p,
#art-body p {
  font-family: var(--sans);
  color: var(--paper); /* High contrast readable Work Sans body text */
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  margin: 0;
}

.article-post__body p strong,
.article-post__body li strong,
.post-body p strong,
.post-body li strong {
  color: var(--paper-bright);
  font-weight: 700;
}

.article-post__body p em,
.article-post__body li em,
.post-body p em,
.post-body li em {
  color: var(--amber);
  font-style: italic;
}

.article-post__body h2,
.post-body h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 1.4rem 0 0.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ash);
}

/* Small subheaders restricted to IBM Plex Mono */
.article-post__body h3,
.article-post__body h4,
.article-post__body h5,
.article-post__body h6,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.subhead,
.subheader,
.small-subheader {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-post__body h3,
.post-body h3,
.article-body h3 {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bone);
  margin: 1.3rem 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-post__body h3::before,
.post-body h3::before,
.article-body h3::before {
  content: "■";
  color: var(--amber);
  font-size: 0.8em;
}

.article-post__body h4,
.article-post__body h5,
.article-post__body h6,
.post-body h4,
.post-body h5,
.post-body h6,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--amber);
  margin: 1.1rem 0 0.2rem;
}

.article-post__body blockquote,
.post-body blockquote {
  margin: 0.8rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--soot);
  border-left: 3px solid var(--amber);
  border-top: 1px solid var(--ash);
  border-right: 1px solid var(--ash);
  border-bottom: 1px solid var(--ash);
}

.article-post__body blockquote p,
.post-body blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--bone);
}

.article-post__body blockquote p em,
.post-body blockquote p em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--concrete);
  display: block;
  margin-top: 0.6rem;
}

.article-post__body ul,
.article-post__body ol,
.post-body ul,
.post-body ol {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.5rem;
  font-family: var(--sans);
  color: var(--paper);
  font-size: 15.5px;
  line-height: 1.7;
}

.article-post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  border: 1px solid var(--ash);
  background: var(--ink);
  font-family: var(--mono);
}

.article-post__body th,
.article-post__body td {
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--ash);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.article-post__body th {
  background: var(--soot);
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.article-post__body td {
  color: var(--paper);
}

.article-post__body td strong {
  color: var(--bone);
  font-weight: 700;
}

.article-post__body code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  background: #080807;
  padding: 0.15rem 0.4rem;
  border: 1px dashed var(--ash);
  word-break: break-all;
}

.article-post__callout {
  margin-top: 2.5rem;
  border: 1px dashed var(--hazard-crimson);
  padding: 20px;
  background: rgba(255, 42, 42, 0.04);
}

.article-post__callout-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.article-post__callout-title {
  color: var(--hazard-crimson);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-post__callout-badge {
  background: var(--hazard-crimson);
  color: var(--ink);
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-post__callout-body {
  font-size: 12px;
  color: var(--concrete);
  margin: 0;
  line-height: 1.55;
}

.article-post__quote {
  margin: 2.2rem 0;
  padding: 1.5rem 1.8rem;
  background: var(--soot);
  border-left: 4px solid var(--hazard-crimson);
  border-top: 1px solid var(--ash);
  border-bottom: 1px solid var(--ash);
  border-right: 1px solid var(--ash);
}

.article-post__quote-text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: #f7f3ea;
  margin-bottom: 0.8rem;
}

.article-post__quote-author {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--concrete);
}

.article-post__sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ash);
}

.article-post__sources-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1rem;
}

.article-post__sources-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.article-post__sources-list li {
  font-size: 12px;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.article-post__sources-list li::before {
  content: "→";
  color: var(--amber);
  flex-shrink: 0;
}

.article-post__sources-list a {
  color: var(--bone);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.article-post__sources-list a:hover {
  color: var(--paper-bright);
}

.article-post__hash {
  margin-top: 2rem;
  padding: 0.8rem 1rem;
  background: #080807;
  border: 1px dashed var(--ash);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--concrete);
}

.article-post__hash code {
  color: var(--amber);
  font-family: var(--mono);
}

.article-nav-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.4rem clamp(1rem, 3vw, 2.5rem);
  background: var(--soot);
  border-top: 1px solid var(--ash);
}

.article-nav-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--ash);
  background: var(--ink);
  transition: all 0.15s ease;
}

.article-nav-strip a:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    border-left: none;
    border-top: 1px solid var(--ash);
  }
}

/* ==========================================================================
   RESPONSIVE VIDEO & IFRAME EMBEDS (YOUTUBE / VIMEO / OSINT FEEDS)
   Scale embeds to match container width while maintaining proper aspect ratio
   ========================================================================== */

/* Universal box-sizing for media elements */
.article-body iframe,
.article-post__body iframe,
.post-body iframe,
.single-post iframe,
.article-main iframe,
#art-body iframe,
.video-embed,
.video-wrapper,
.responsive-embed,
.responsive-video {
  box-sizing: border-box;
}

/* Standalone / unwrapped iframes in article content */
.article-body iframe,
.article-post__body iframe,
.post-body iframe,
.single-post iframe,
.article-main iframe,
#art-body iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 1.8rem 0;
  border: 1px solid var(--hairline-bone, var(--ash));
  background: var(--soot);
}

/* HTML5 native video elements */
.article-body video,
.article-post__body video,
.post-body video,
.single-post video,
.article-main video,
#art-body video {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.8rem 0;
  border: 1px solid var(--hairline-bone, var(--ash));
  background: #000;
}

/* Responsive Embed Utility Container (16:9 Standard) */
.video-embed,
.video-wrapper,
.responsive-embed,
.responsive-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.8rem 0;
  background: #000;
  border: 1px solid var(--hairline-bone, var(--ash));
  overflow: hidden;
  display: block;
}

/* Fluid scaling of embedded elements within wrapper */
.video-embed iframe,
.video-embed video,
.video-embed object,
.video-embed embed,
.video-wrapper iframe,
.video-wrapper video,
.video-wrapper object,
.video-wrapper embed,
.responsive-embed iframe,
.responsive-embed video,
.responsive-embed object,
.responsive-embed embed,
.responsive-video iframe,
.responsive-video video,
.responsive-video object,
.responsive-video embed {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
}

/* Aspect ratio variations */
.video-embed--4-3,
.responsive-embed--4-3 {
  aspect-ratio: 4 / 3;
}

.video-embed--21-9,
.responsive-embed--21-9 {
  aspect-ratio: 21 / 9;
}

.video-embed--1-1,
.responsive-embed--1-1 {
  aspect-ratio: 1 / 1;
}

.video-embed--9-16,
.responsive-embed--9-16 {
  aspect-ratio: 9 / 16;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Progressive Fallback for legacy environments lacking CSS aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .video-embed,
  .video-wrapper,
  .responsive-embed,
  .responsive-video {
    padding-top: 56.25%;
    height: 0;
  }
  .video-embed--4-3,
  .responsive-embed--4-3 {
    padding-top: 75%;
  }
  .video-embed--21-9,
  .responsive-embed--21-9 {
    padding-top: 42.85%;
  }
  .video-embed--1-1,
  .responsive-embed--1-1 {
    padding-top: 100%;
  }
  .video-embed--9-16,
  .responsive-embed--9-16 {
    padding-top: 177.77%;
  }
}

/* Framed video container with dossier telemetry caption */
.video-frame {
  margin: 2rem 0;
  border: 1px solid var(--hairline-bone, var(--ash));
  background: var(--soot);
}

.video-frame .video-embed,
.video-frame .video-wrapper,
.video-frame .responsive-embed,
.video-frame .responsive-video {
  margin: 0;
  border: none;
}

.video-frame__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0.6rem 1rem;
  background: #080807;
  border-top: 1px solid var(--ash);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--concrete);
  letter-spacing: 0.05em;
}

.video-frame__title {
  color: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.video-frame__status {
  color: var(--phosphor);
  font-size: 10px;
  font-weight: 700;
}

/* Print Styling */
@media print {
  .topbar__controls,
  .article-topbar,
  .portal-nav,
  .grain,
  .scanlines,
  .btn,
  .article-btn-action,
  .article-nav-strip,
  .ticker-strip,
  .dissonance-bar,
  .article-sidebar {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .article-layout,
  .article-main,
  .grid-cell,
  .primary-impact__rail,
  .bread-circuses-module,
  .decay-module,
  .synthetic-card {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    padding: 0 !important;
  }

  .article-post__title {
    color: #000000 !important;
  }

  .article-post__lead,
  .article-post__body p,
  .lead-synthesis p {
    color: #111111 !important;
  }
}

/* ========================================================
   WIREFRAME PAPER LAYOUT SPECIFICATION (OCT 31 2026)
   ======================================================== */

.wireframe-container {
  width: 100%;
  margin: 0 auto;
}

/* Centered Masthead */
.masthead--wireframe {
  padding: clamp(1.2rem, 3vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  text-align: center;
  border-bottom: var(--rule);
  background: var(--ink) url(/static/assets/images/header-bg.webp) center -18rem;
  background-size: cover;
}

.masthead__brand-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto;
}

.title--wireframe {
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
  margin: 0;
}

.masthead__deck--wireframe {
  border-left: none;
  padding-left: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* Wireframe Portal Nav */
.wireframe-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: var(--rule);
  background: var(--soot);
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 80;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wireframe-nav::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

/* Row 1: Hero Story + Dystopia Index Chart Box (70/30 split) */
.wireframe-row-1 {
  display: grid;
  grid-template-columns: 7fr 3fr;
  border-bottom: var(--rule);
  background: var(--ash);
  gap: 1px;
}

.wireframe-hero {
  background: var(--ink);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
}

.wireframe-hero__top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--concrete);
  border-bottom: 1px solid var(--ash);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
}

.wireframe-hero__date {
  font-family: var(--mono);
  color: var(--concrete);
}

.wireframe-hero__badge {
  background: rgba(255, 176, 0, 0.12);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wireframe-hero__headline {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.wireframe-hero__headline a {
  color: var(--bone);
  text-decoration: none;
  transition: color 0.12s;
}

.wireframe-hero__headline a:hover {
  color: var(--amber);
}

.wireframe-hero__body-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1.4rem;
  align-items: start;
}

.wireframe-hero__figure {
  margin: 0;
  border: 1px solid var(--ash);
  background: var(--soot);
}

.wireframe-hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(135%);
}

.wireframe-hero__fallback {
  aspect-ratio: 4 / 3;
  background: var(--soot);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--concrete);
  font-size: 11px;
  text-align: center;
  padding: 1rem;
}

.wireframe-hero__caption {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  font-size: 9.5px;
  color: var(--concrete);
  border-top: 1px solid var(--ash);
  background: var(--soot);
}

.wireframe-hero__text-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wireframe-hero__excerpt {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper-bright);
  margin: 0;
}

.wireframe-hero__synthesis {
  font-size: 12px;
  line-height: 1.6;
  color: var(--concrete);
}

.wireframe-hero__action-row {
  margin-top: 0.6rem;
  display: flex;
  justify-content: flex-end;
}

.btn--read-full {
  font-size: 1.15rem;
  padding: 0.55rem 1.15rem;
  box-shadow: 4px 4px 0 var(--ash);
}

/* Dystopia Index Framed Chart Box */
.wireframe-dystopia-box {
  background: var(--soot);
  padding: clamp(1.2rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid var(--ash);
  height: 100%;
  min-height: 0;
}

.dystopia-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dystopia-box__title {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  letter-spacing: 0.08em;
  color: var(--bone);
  margin: 0;
}

.dystopia-box__score {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  color: var(--hazard-crimson);
  border: 1px solid var(--hazard-crimson);
  padding: 0.15rem 0.6rem;
  background: rgba(255, 42, 42, 0.08);
  line-height: 1;
  letter-spacing: 0.05em;
}

.dystopia-box__score-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dystopia-box__ticker-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.45rem;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

/* Stock Index Session Strip */
.dystopia-stock-strip {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: #0d0d0c;
  border: 1px solid var(--ash);
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.9rem;
  gap: 0.35rem 0.5rem;
  flex-wrap: wrap;
}

.dystopia-stock-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--mono);
}

.dystopia-stock-item__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--concrete);
  text-transform: uppercase;
}

.dystopia-stock-item__value {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.04em;
}

.dystopia-box__chart-wrap {
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  background: var(--ink);
  border: 1px solid var(--ash);
  position: relative;
  display: flex;
  flex-direction: column;
}

.dystopia-box__chart-container {
  display: flex;
  width: 100%;
  height: auto;
  align-items: stretch;
}

.dystopia-axis--y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.35rem;
  border-right: 1px solid var(--ash);
  background: #090908;
  flex-shrink: 0;
}

.dystopia-axis--y .dystopia-axis__label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--bone);
  opacity: 0.85;
  text-transform: uppercase;
  white-space: nowrap;
}

.dystopia-box__chart-canvas {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  position: relative;
}

.dystopia-chart {
  width: 100%;
  height: auto;
  display: block;
}

.dystopia-box__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--concrete);
  border-top: 1px solid var(--ash);
  padding-top: 0.65rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.dystopia-box__label {
  display: block;
  letter-spacing: 0.1em;
  font-size: 9.5px;
}

.dystopia-box__val {
  font-weight: 700;
}

/* Grouped Daily Breakdown Feed */
.dystopia-daily-breakdown {
  margin-top: 1rem;
  border-top: 1px solid var(--ash);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dystopia-daily-breakdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ash);
  text-transform: uppercase;
}

.dystopia-daily-breakdown__title {
  color: var(--concrete);
  font-weight: 600;
}

.dystopia-daily-breakdown__meta {
  color: var(--ash);
}

.dystopia-daily-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.dystopia-daily-feed::-webkit-scrollbar {
  width: 4px;
}

.dystopia-daily-feed::-webkit-scrollbar-track {
  background: var(--ink);
}

.dystopia-daily-feed::-webkit-scrollbar-thumb {
  background: var(--ash);
}

.dystopia-day-card {
  border: 1px solid rgba(214, 208, 196, 0.2);
  background: rgba(14, 14, 12, 0.75);
}

.dystopia-day-card__header {
  padding: 0.35rem 0.55rem;
  background: #141412;
  border-bottom: 1px solid rgba(214, 208, 196, 0.12);
  font-family: var(--mono);
}

.dystopia-day-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.dystopia-day-card__date {
  font-size: 10px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.08em;
}

.dystopia-day-card__badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dystopia-day-card__stats {
  font-size: 8.5px;
  color: var(--concrete);
  letter-spacing: 0.06em;
}

.dystopia-day-card__articles {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dystopia-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(214, 208, 196, 0.06);
  font-family: var(--mono);
  font-size: 9.5px;
  gap: 0.5rem;
}

.dystopia-article-row:last-child {
  border-bottom: none;
}

.dystopia-article-row__left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
}

.dystopia-article-row__time {
  color: var(--ash);
  font-size: 8.5px;
  flex-shrink: 0;
}

.dystopia-article-row__title {
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.dystopia-article-row__title:hover {
  color: var(--phosphor);
  text-decoration: underline;
}

.dystopia-article-row__right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.dystopia-article-row__pillar {
  font-size: 8px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ash);
  color: var(--concrete);
  letter-spacing: 0.04em;
}

.dystopia-article-row__score {
  font-weight: 700;
  font-size: 10px;
}

.dystopia-article-row__delta {
  font-size: 8.5px;
  opacity: 0.9;
}

/* Row 2: Two-Column Article List & Category Sections */
.wireframe-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--rule);
  background: var(--ash);
  gap: 1px;
}

.category-sections-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: clamp(2.5rem, 4vw, 4rem);
  margin: clamp(2rem, 3.5vw, 3.5rem) 0;
}

.topic-group-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.topic-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  border-bottom: 1px solid var(--ash);
  padding: 0.9rem 1.6rem;
}

.topic-filter-bar__left {
  display: flex;
  align-items: center;
}

.topic-filter-bar__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--bone);
  transition: color 0.12s ease;
}

.topic-filter-bar__link:hover,
.topic-filter-bar__link:visited:hover {
  color: var(--amber);
}

.topic-filter-bar__link:visited {
  color: var(--bone);
}

.topic-filter-bar__tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
}

.topic-filter-bar__title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: inherit;
}

.topic-filter-bar__action {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--phosphor);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.05);
  transition: all 0.12s ease;
}

.topic-filter-bar__action:hover {
  background: rgba(0, 255, 102, 0.18);
  border-color: var(--phosphor);
  color: var(--phosphor);
}

.topic-filter-bar__action:visited {
  color: var(--phosphor);
}

.category-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--rule);
  background: var(--ash);
  gap: 1px;
}

.category-triple-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: var(--rule);
  background: var(--ash);
  gap: 1px;
}

.category-col--triple {
  background: var(--ink);
  display: flex;
  flex-direction: column;
}

.category-col--triple .wireframe-card {
  padding: 1.25rem 1.35rem;
}

.category-col--triple .category-section__header {
  padding: 1.1rem 1.35rem;
}

.category-col--triple .category-section__title {
  font-size: clamp(1.1rem, 1.35vw, 1.45rem);
}

.category-col--triple .wireframe-card__split {
  grid-template-columns: 105px 1fr;
  gap: 1rem;
}

.category-col--triple .wireframe-card__title {
  font-size: clamp(1.2rem, 1.35vw, 1.45rem);
}

.category-section__header {
  padding: 1.25rem 1.6rem;
  border-bottom: 1px solid var(--ash);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-section__title {
  font-family: var(--display) !important;
  font-size: clamp(1.2rem, 1.7vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

.category-section__title a,
.category-section__link,
.category-section__link:link,
.category-section__link:visited,
.category-section__link:active,
.category-section__title a:link,
.category-section__title a:visited,
.category-section__title a:active {
  color: var(--bone) !important;
  text-decoration: none !important;
  font-family: var(--display) !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  transition: color 0.12s ease;
}

.category-section__title a:hover,
.category-section__link:hover {
  color: var(--amber) !important;
  text-decoration: none !important;
}

.category-section__number {
  color: var(--hazard-crimson);
  font-family: var(--display) !important;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.category-section__name {
  color: inherit !important;
  font-family: var(--display) !important;
  text-decoration: none !important;
}

.category-section__articles {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.category-col--empty {
  background: #0d0d0c;
  display: flex;
  flex-direction: column;
}

.category-section__header--empty {
  border-bottom: 1px dashed var(--ash);
  padding: 1.15rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-section__empty-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ash);
}

.category-section__empty-badge {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ash);
  border: 1px solid var(--ash);
  padding: 2px 6px;
}

.category-section__empty {
  padding: 2rem 1.6rem;
  color: var(--ash);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.category-section__empty-text {
  margin: 0;
  color: var(--ash);
}

.wireframe-col {
  background: var(--ink);
  display: flex;
  flex-direction: column;
}

.wireframe-card {
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--ash);
  transition: background 0.1s;
}

.wireframe-card:hover {
  background: #141412;
}

.wireframe-card--last {
  border-bottom: none;
}

.wireframe-card__split {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.wireframe-card__thumb-col {
  border: 1px solid var(--ash);
  background: var(--soot);
  line-height: 0;
}

.wireframe-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(130%);
}

.wireframe-card__kicker {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.wireframe-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.wireframe-card__datetime {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
}

.wireframe-card__time-sep {
  color: var(--ash);
  font-weight: 400;
}

.wireframe-card__date {
  color: var(--amber);
}

.wireframe-card__time {
  color: var(--amber);
}

.wireframe-card__title {
  font-family: var(--serif) !important;
  font-size: clamp(1.35rem, 1.55vw, 1.65rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.wireframe-card__title a,
.wireframe-card__title a:link,
.wireframe-card__title a:visited,
.wireframe-card__title a:active {
  color: var(--bone);
  text-decoration: none;
  font-family: var(--serif) !important;
  transition: color 0.12s;
}

.wireframe-card__title a:hover {
  color: var(--amber);
  text-decoration: none;
}

.wireframe-card__desc {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--concrete);
  line-height: 1.45;
  margin: 0;
}

.wireframe-card__text-only {
  display: flex;
  flex-direction: column;
}

/* Full Width Videos Section Divider */
.wireframe-videos-divider {
  border-bottom: var(--rule);
  background: var(--ink);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.wireframe-videos-divider__title {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-align: center;
  text-transform: uppercase;
}

/* Row 3: Videos Two-Column Split */
.wireframe-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--rule);
  background: var(--ash);
  gap: 1px;
}

.wireframe-video-col {
  background: var(--ink);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.wireframe-video__header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 0.55rem;
  margin-bottom: 1.2rem;
}

.wireframe-video__heading {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--bone);
  margin: 0;
  letter-spacing: 0.04em;
}

.wireframe-video__status {
  font-size: 10px;
  color: var(--hazard-crimson);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.wireframe-video__body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.wireframe-video__media-box {
  border: 1px solid var(--ash);
  background: var(--soot);
  line-height: 0;
}

.wireframe-video__media-box .video-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.wireframe-video__media-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.wireframe-video__info-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wireframe-video__kicker {
  font-size: 9.5px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.wireframe-video__title {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.12;
  margin: 0;
}

.wireframe-video__title a {
  color: var(--bone);
  text-decoration: none;
  transition: color 0.12s;
}

.wireframe-video__title a:hover {
  color: var(--amber);
}

.wireframe-video__desc {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--concrete);
  line-height: 1.45;
  margin: 0;
}

.wireframe-video__action {
  color: var(--phosphor);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.wireframe-video__action:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .category-triple-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .wireframe-row-1,
  .wireframe-row-2,
  .wireframe-row-3,
  .category-pair-row,
  .category-triple-row {
    grid-template-columns: 1fr;
  }
  .wireframe-hero__body-split,
  .wireframe-video__body {
    grid-template-columns: 1fr;
  }
  .wireframe-dystopia-box {
    border-left: none;
    border-top: 1px solid var(--ash);
  }
  .category-col--empty {
    display: none;
  }
}

/* ---------- PRODUCTION LOCKSCREEN OVERLAY ---------- */
body.lockscreen-active {
  overflow: hidden !important;
  height: 100vh;
}

.lockscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 4, 3, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.lockscreen__container {
  max-width: 680px;
  width: 100%;
  background: var(--ink);
  border: 2px solid var(--bone);
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(255, 176, 0, 0.12);
  padding: 40px 32px;
  position: relative;
  text-align: center;
}

.lockscreen__badge {
  display: inline-block;
  background: var(--soot);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.lockscreen__title {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--bone);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(214, 208, 196, 0.15);
}

.lockscreen__subtitle {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.lockscreen__desc {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--concrete);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 28px;
}

.lockscreen__telemetry {
  background: var(--outer-void);
  border: 1px solid var(--ash);
  padding: 14px 18px;
  text-align: left;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--bone);
}

.lockscreen__telemetry-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(91, 88, 82, 0.4);
  padding: 2px 0;
}

.lockscreen__telemetry-row:last-child {
  border-bottom: none;
}

.lockscreen__status--ok {
  color: var(--phosphor);
  font-weight: 700;
}

.lockscreen__status--warn {
  color: var(--amber);
  font-weight: 700;
}

.lockscreen__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.lockscreen__override {
  width: 100%;
  max-width: 440px;
}

.lockscreen__form {
  display: flex;
  gap: 8px;
}

.lockscreen__input {
  flex: 1;
  background: var(--outer-void);
  border: 1px solid var(--ash);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
}

.lockscreen__input:focus {
  border-color: var(--bone);
}

.lockscreen__btn {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--bone);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lockscreen__btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.lockscreen__msg {
  font-size: 11px;
  font-family: var(--mono);
  margin-top: 6px;
  min-height: 16px;
}

.lockscreen__msg.error {
  color: var(--hazard-crimson);
}

.lockscreen__msg.success {
  color: var(--phosphor);
}

.lockscreen__api-bar {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-family: var(--mono);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.lockscreen__api-link {
  color: var(--phosphor);
  text-decoration: none;
  border-bottom: 1px dotted var(--phosphor);
}

.lockscreen__api-link:hover {
  background: var(--phosphor);
  color: var(--ink);
}

.lockscreen.unlocked {
  display: none !important;
}

/* ========================================================
   UTILITIES & TEMPLATE STYLING
   ======================================================== */

/* --- 1. Text Colors & Utilities --- */
.text-amber { color: var(--amber) !important; }
.text-phosphor { color: var(--phosphor) !important; }
.text-hazard { color: var(--hazard-crimson) !important; }
.text-bone { color: var(--bone) !important; }
.text-concrete { color: var(--concrete) !important; }
.text-ash { color: var(--ash) !important; }
.text-paper { color: var(--paper) !important; }

.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }

.font-bold { font-weight: 700 !important; }
.font-normal { font-weight: 400 !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

.glyph-sep { margin: 0 0.4rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-6 { margin-top: 6px !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-48 { margin-top: 48px !important; }
.mt-60 { margin-top: 60px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-6 { margin-bottom: 6px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-48 { margin-bottom: 48px !important; }
.mb-60 { margin-bottom: 60px !important; }
.mb-64 { margin-bottom: 64px !important; }

.btn--full-width {
  width: 100% !important;
}

.btn--justify-between {
  justify-content: space-between !important;
}

/* --- 2. Error Page (404.html) --- */
.error-page {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
  font-family: var(--mono);
}

.error-box {
  border: 2px solid var(--hazard-crimson);
  padding: 48px;
  background: rgba(255, 42, 42, 0.05);
}

.error-badge {
  font-size: 11px;
  color: var(--hazard-crimson);
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
}

.error-title {
  font-family: var(--display);
  font-size: 64px;
  color: var(--bone);
  margin: 16px 0;
}

.error-desc {
  font-size: 14px;
  color: var(--concrete);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* --- 3. Masthead, Topbar & Footer (base.html, header.html) --- */
.masthead-brand-link {
  text-decoration: none;
  color: inherit;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topbar__year-progress {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar__sep {
  color: var(--ash);
}

.topbar__right {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 11px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar__link {
  text-decoration: none;
  font-weight: 700;
}

.topbar__link--amber {
  color: var(--amber);
}

.topbar__link--phosphor {
  color: var(--phosphor);
}

.global-footer {
  margin-top: 60px;
  padding: 40px 20px;
  border-top: 2px solid var(--bone);
  background: var(--soot);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--concrete);
}

.global-footer__inner {
  max-width: 1530px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.global-footer__logo {
  color: var(--bone);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 1px;
  display: block;
}

.global-footer__desc {
  margin-top: 6px;
}

.global-footer__nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.global-footer__link {
  color: var(--bone);
  text-decoration: none;
}

.global-footer__link:hover {
  color: var(--amber);
}

.global-footer__link--phosphor {
  color: var(--phosphor);
}

/* --- 4. Index & Video Elements (index.html) --- */
.video-empty-notice {
  padding: 1rem;
  color: var(--concrete);
}

/* --- 5. Article & Post Rails (article.html, post.html) --- */
.article-topbar__cat-link {
  color: var(--phosphor);
  text-decoration: none;
  font-weight: 700;
}

.rail-empty-notice {
  border: 1px dashed var(--ash);
  padding: 16px;
  background: var(--ink);
  font-size: 11px;
  color: var(--concrete);
}

.rail-category-list {
  display: grid;
  gap: 8px;
}

.rail-category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--ash);
  background: var(--ink);
  color: var(--bone);
  text-decoration: none;
  font-size: 11px;
  transition: border-color 0.12s;
}

.rail-category-link:hover,
.rail-category-link--active {
  border-color: var(--amber);
  color: var(--amber);
}

.rail-category-link__prefix {
  color: var(--concrete);
  margin-right: 6px;
}

.rail-category-link__arrow {
  color: var(--amber);
}

/* --- 6. About Page (about.html) --- */
.about-page {
  max-width: 1530px;
  margin: 40px auto;
  padding: 0 24px;
  font-family: var(--mono);
}

.about-header {
  border-bottom: 2px solid var(--bone);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.about-header__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.about-header__tag {
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 1px;
}

.about-header__title {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1.0;
  margin: 8px 0;
  color: var(--bone);
}

.about-header__lead {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--paper);
  max-width: 780px;
  margin-top: 8px;
}

.about-directive-box {
  border: 1px solid var(--hazard-crimson);
  padding: 14px 20px;
  background: rgba(255, 42, 42, 0.05);
  font-size: 11px;
}

.about-directive-box__title {
  display: block;
  color: var(--hazard-crimson);
  font-weight: 700;
  margin-bottom: 4px;
}

.about-directive-box__item {
  display: block;
  color: var(--bone);
}

.about-directive-box__item--highlight {
  display: block;
  color: var(--phosphor);
  font-weight: 700;
}

.about-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 11px;
  border-bottom: 1px solid var(--hairline-bone);
  padding-bottom: 12px;
}

.about-nav__link {
  color: var(--bone);
  text-decoration: none;
}

.about-nav__sep {
  color: var(--ash);
}

.about-nav__current {
  color: var(--concrete);
}

.about-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

.about-section-heading {
  font-family: var(--display);
  font-size: 32px;
  color: var(--amber);
  margin-bottom: 16px;
}

.about-copy {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-quote {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--paper);
  border-left: 3px solid var(--amber);
  padding-left: 18px;
  margin: 0 0 16px;
}

.about-coverage {
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}

.about-coverage__title {
  font-family: var(--display);
  font-size: 24px;
  color: var(--bone);
  margin-bottom: 20px;
}

.about-coverage__grid {
  display: grid;
  gap: 16px;
}

.about-card {
  border: 1px solid var(--hairline-bone);
  padding: 16px;
  background: var(--soot);
}

.about-card__title {
  color: var(--amber);
  display: block;
  font-size: 13px;
}

.about-card__desc {
  font-size: 12px;
  color: var(--concrete);
  margin-top: 4px;
}

.about-sidebar {
  border-left: 1px solid var(--hairline-bone);
  padding-left: 32px;
}

@media (max-width: 900px) {
  .about-sidebar {
    border-left: none;
    border-top: 1px solid var(--hairline-bone);
    padding-left: 0;
    padding-top: 32px;
  }
}

.about-sidebar__header {
  border-bottom: 2px solid var(--bone);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.about-sidebar__title {
  font-family: var(--display);
  font-size: 18px;
  color: var(--bone);
}

.about-spec-item {
  margin-bottom: 24px;
}

.about-spec-item__label {
  display: block;
  font-size: 10px;
  color: var(--concrete);
  margin-bottom: 4px;
}

.about-spec-item__val {
  font-size: 13px;
  color: var(--bone);
}

.about-spec-item__val--phosphor {
  font-size: 13px;
  color: var(--phosphor);
  font-weight: 700;
}

.about-spec-item__val--amber {
  font-size: 13px;
  color: var(--amber);
}

.about-sidebar__action {
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

/* --- 7. Design System Page (design_system.html) --- */
.ds-page {
  max-width: 1530px;
  margin: 40px auto;
  padding: 0 24px;
  font-family: var(--mono);
}

.ds-header {
  border-bottom: 2px solid var(--bone);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.ds-header__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.ds-header__tag {
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 1px;
}

.ds-header__title {
  font-family: var(--display);
  font-size: 54px;
  line-height: 1.0;
  margin: 8px 0;
  color: var(--bone);
}

.ds-header__lead {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--paper);
  max-width: 750px;
  margin-top: 6px;
}

.ds-directives {
  border: 1px solid var(--bone);
  padding: 14px 20px;
  background: var(--soot);
  font-size: 11px;
  min-width: 240px;
}

.ds-directives__label {
  display: block;
  color: var(--concrete);
  margin-bottom: 4px;
}

.ds-directives__item {
  display: block;
  color: var(--phosphor);
  font-weight: 700;
}

.ds-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline-bone);
  padding-bottom: 16px;
  margin-bottom: 48px;
  font-size: 11px;
}

.ds-nav__link {
  color: var(--bone);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid var(--ash);
}

.ds-nav__link:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.ds-section {
  margin-bottom: 64px;
}

.ds-section__header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.ds-section__title {
  font-family: var(--display);
  font-size: 28px;
  color: var(--amber);
}

.ds-section__desc {
  font-size: 12px;
  color: var(--concrete);
}

.ds-demo-panel {
  border: 1px solid var(--hairline-bone);
  padding: 24px;
  background: var(--ink);
  margin-bottom: 24px;
}

.ds-demo-panel--padded {
  padding: 32px;
}

.ds-guide-box {
  background: var(--soot);
  border-left: 3px solid var(--amber);
  padding: 16px 20px;
  font-size: 12px;
  color: var(--bone);
}

.ds-guide-box--spacious {
  margin-bottom: 24px;
}

.ds-guide-box__text {
  margin: 6px 0 0;
  color: var(--concrete);
  line-height: 1.6;
}

.ds-tokens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ds-token-card {
  border: 1px solid var(--hairline-bone);
  padding: 12px;
  background: var(--ink);
}

.ds-token-card--soot {
  background: var(--soot);
}

.ds-token-card__swatch {
  height: 48px;
  margin-bottom: 8px;
}

.ds-token-card__name {
  color: var(--bone);
  display: block;
}

.ds-token-card__desc {
  font-size: 11px;
  color: var(--concrete);
}

.ds-swatch--ink {
  background: #0c0c0b;
  border: 1px solid #333;
}

.ds-swatch--soot {
  background: #161614;
  border: 1px solid #333;
}

.ds-swatch--bone {
  background: #d6d0c4;
}

.ds-swatch--phosphor {
  background: #00ff66;
}

.ds-swatch--amber {
  background: #ffb000;
}

.ds-swatch--hazard {
  background: #ff2a2a;
}

.ds-type-block {
  margin-bottom: 32px;
  border-bottom: 1px dashed var(--ash);
  padding-bottom: 20px;
}

.ds-type-block--last {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.ds-type-block__label {
  font-size: 10px;
  color: var(--amber);
  font-family: var(--mono);
  letter-spacing: 0.1em;
}

.ds-type-block__display {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1.0;
  margin: 8px 0;
  color: var(--bone);
}

.ds-type-block__serif {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  line-height: 1.35;
  color: var(--paper);
  margin: 8px 0;
}

.ds-type-block__sans-lead {
  font-family: var(--sans);
  font-size: 18px;
  font-style: normal;
  line-height: 1.55;
  color: #f7f3ea;
  border-left: 3px solid var(--amber);
  padding-left: 14px;
  margin: 10px 0 14px;
}

.ds-type-block__sans-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
  margin: 8px 0;
}

.ds-type-block__mono-h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 10px 0 6px;
}

.ds-type-block__mono-body {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--concrete);
  margin: 4px 0 8px;
}

.ds-type-block__meta {
  font-size: 11px;
  color: var(--concrete);
}

.ds-atmosphere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .ds-atmosphere-grid {
    grid-template-columns: 1fr;
  }
}

.ds-atmosphere-card {
  border: 1px solid var(--hairline-bone);
  padding: 20px;
  background: var(--soot);
}

.ds-atmosphere-card__title {
  color: var(--bone);
  display: block;
  margin-bottom: 8px;
}

.ds-atmosphere-card__desc {
  font-size: 12px;
  color: var(--concrete);
  margin-bottom: 12px;
}

.ds-code-snippet {
  background: var(--ink);
  border: 1px solid var(--ash);
  padding: 12px;
  font-size: 11px;
  color: var(--phosphor);
  overflow-x: auto;
  margin-bottom: 12px;
}

.ds-code-snippet--paper {
  color: var(--paper);
}

.ds-masthead-preview {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ds-masthead-title {
  margin: 0;
}

.ds-masthead-line {
  font-family: var(--display);
  font-size: 72px;
  letter-spacing: 2px;
  color: var(--bone);
}

.ds-masthead-line--outline {
  -webkit-text-stroke: 1.5px var(--bone);
  color: transparent;
  margin-left: 12px;
}

.ds-masthead-tagline {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--paper);
  margin: 0;
}

.ds-masthead-sub {
  font-size: 12px;
  color: var(--concrete);
  margin-top: 4px;
}

.ds-portal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--bone);
  padding-bottom: 12px;
}

.ds-portal-nav__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ds-portal-nav__link {
  color: var(--bone);
  text-decoration: none;
  font-size: 12px;
}

.ds-portal-nav__link--active {
  color: var(--amber);
  font-weight: 700;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 4px;
}

.ds-portal-nav__prefix {
  color: var(--concrete);
}

.ds-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ds-telemetry-card {
  border: 1px solid var(--bone);
  padding: 16px;
  background: var(--soot);
}

.ds-telemetry-card--composite {
  border: 2px solid var(--hazard-crimson);
  padding: 16px;
  background: rgba(255, 42, 42, 0.05);
}

.ds-telemetry-card__label {
  font-size: 10px;
  font-weight: 700;
  display: block;
}

.ds-telemetry-card__value {
  font-family: var(--display);
  font-size: 32px;
  color: var(--bone);
  line-height: 1.1;
}

.ds-telemetry-card__value--large {
  font-size: 42px;
}

.ds-telemetry-card__status {
  font-size: 10px;
  color: var(--concrete);
}

.ds-cards-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .ds-cards-grid {
    grid-template-columns: 1fr;
  }
}

.ds-card-preview {
  border: 1px solid var(--hairline-bone);
  padding: 24px;
  background: var(--soot);
}

.ds-card-preview__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}

.ds-card-preview__meta-tag {
  color: var(--amber);
  font-weight: 700;
}

.ds-card-preview__meta-docket {
  color: var(--concrete);
}

.ds-card-preview__title {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.ds-card-preview__link {
  color: var(--bone);
  text-decoration: none;
}

.ds-card-preview__desc {
  font-size: 13px;
  color: var(--paper);
  line-height: 1.5;
  margin-bottom: 16px;
}

.ds-card-preview__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.ds-card-preview__byline {
  color: var(--concrete);
}

.ds-ticker-preview {
  border: 1px dashed var(--ash);
  padding: 20px;
  background: var(--ink);
}

.ds-ticker-preview__kicker {
  font-size: 10px;
  color: var(--phosphor);
  font-weight: 700;
}

.ds-ticker-preview__title {
  font-family: var(--display);
  font-size: 18px;
  margin: 8px 0;
  color: var(--bone);
}

.ds-ticker-preview__desc {
  font-size: 11px;
  color: var(--concrete);
  line-height: 1.4;
  margin-bottom: 12px;
}

.ds-ticker-preview__date {
  font-size: 10px;
  color: var(--amber);
}

.ds-callout-classified {
  border: 1px dashed var(--hazard-crimson);
  padding: 20px;
  background: rgba(255, 42, 42, 0.04);
  margin-bottom: 20px;
}

.ds-callout-classified__header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.ds-callout-classified__tag {
  color: var(--hazard-crimson);
  font-size: 12px;
  font-weight: 700;
}

.ds-callout-classified__badge {
  background: var(--hazard-crimson);
  color: var(--ink);
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
}

.ds-callout-classified__text {
  font-size: 12px;
  color: var(--concrete);
  margin: 0;
  line-height: 1.5;
}

.ds-callout-pullquote {
  border-left: 3px solid var(--amber);
  padding-left: 20px;
  margin-bottom: 24px;
}

.ds-callout-pullquote__quote {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--bone);
  line-height: 1.4;
  margin: 0;
}

.ds-callout-pullquote__author {
  display: block;
  font-size: 11px;
  color: var(--concrete);
  margin-top: 8px;
}

.ds-buttons-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--hairline-bone);
  padding: 24px;
  background: var(--ink);
  margin-bottom: 24px;
}

.ds-btn-outline {
  background: none;
  border: 1px solid var(--bone);
  color: var(--bone);
  padding: 6px 14px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
}

.ds-btn-outline:hover {
  background: var(--bone);
  color: var(--ink);
}

.ds-btn-outline--amber {
  border-color: var(--amber);
  color: var(--amber);
}

.ds-btn-outline--amber:hover {
  background: var(--amber);
  color: var(--ink);
}

.ds-btn-outline--phosphor {
  border-color: var(--phosphor);
  color: var(--phosphor);
}

.ds-btn-outline--phosphor:hover {
  background: var(--phosphor);
  color: var(--ink);
}

.ds-video-frame-container {
  max-width: 800px;
  margin: 0 auto;
}

.ds-video-preview-tag {
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}

.ds-video-caption-feed {
  color: var(--amber);
}
