@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-600.woff2?v=4fac2313143b") format("woff2");
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-700.woff2?v=9e423e0cebec") format("woff2");
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-800.woff2?v=c8e125e6d035") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2?v=3b646991d300") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2?v=0717336fb31f") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2?v=8960851d691c") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2?v=3c5a451f9ec2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2?v=756026ff72eb") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600.woff2?v=c4d3deb734a2") format("woff2");
}

html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  --bg: #070E1A; --bg2: #0E1B2E; --bg3: #0A1628;
  --ink: #EAF2FF; --ink2: #8FA6C4; --ink3: #7690B0;
  --line: rgba(0,212,255,0.16); --line2: rgba(0,212,255,0.09);
  --brand: #2B7CFF; --brandInk: #4D93FF; --cyan: #00D4FF; --onCyan: #041019;
  --tex: url("../assets/texture-binary-dark.jpg?v=1206e160f739");
  --texOp: 0.31; --texSize: cover; --texRep: no-repeat; --texPos: center; --texBlend: normal; --texFilter: none;
  --bandBg: #0A1628; --bandLine: rgba(0,212,255,0.16);
  --heroOv: linear-gradient(100deg, rgba(10,22,40,0.58) 0%, rgba(10,22,40,0.28) 26%, rgba(10,22,40,0.08) 52%, transparent 78%);
  --chip: rgba(0,212,255,0.08);
  --shadow: 0 1px 0 rgba(255,255,255,0.03);
  --good: #7BE3A0;
  --bad: #F07178;
  background: #070E1A;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body[data-bwg="light"] {
  --bg: #F2F7FF; --bg2: #FFFFFF; --bg3: #E6F3FF;
  --ink: #0A1628; --ink2: #1B2A3D; --ink3: #3A4D66;
  --line: #D8E5F6; --line2: #E9F0FA;
  --brand: #0066FF; --brandInk: #0057DB; --cyan: #006E98; --onCyan: #FFFFFF;
  --tex: url("../assets/texture-binary-light.jpg?v=6bf914155aa3");
  --texOp: 0.65; --texSize: cover; --texRep: no-repeat; --texPos: center; --texBlend: multiply; --texFilter: none;
  --bandBg: #DCEAFB; --bandLine: #B4CFEE;
  --heroOv: linear-gradient(100deg, rgba(242,247,255,0.92) 0%, rgba(242,247,255,0.62) 18%, rgba(242,247,255,0.28) 40%, rgba(242,247,255,0.06) 62%, transparent 82%);
  --chip: rgba(0,102,255,0.06);
  --shadow: 0 1px 2px rgba(10,22,40,0.05);
  --good: #17945A;
  --bad: #C23B3B;
  background: #F2F7FF;
}
a { color: var(--brandInk); text-decoration: none; }
a:hover { color: var(--cyan); }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--onCyan);
  font-family: Archivo, sans-serif;
  font-weight: 700;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
::selection { background: var(--brand); color: #fff; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.ticker { border-bottom: 1px solid var(--line2); background: var(--bg3); flex-shrink: 0; }
.ticker-inner { display: flex; align-items: center; gap: 16px; min-height: 40px; padding: 6px 0; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.tick-bin { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; color: var(--cyan); white-space: nowrap; }
.tick-tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.tick-status {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 2px; flex-shrink: 0; line-height: 1.15; text-align: right;
}
.tick-meta { font-size: 10px; letter-spacing: 0.12em; color: var(--ink3); white-space: nowrap; }
.ticker-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: 8px;
}
.ticker-account {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--ink2); max-width: 18ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ticker-account:hover { color: var(--ink); }
.ticker-signout {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--ink3); white-space: nowrap;
}
.ticker-signout:hover { color: var(--ink); }
.ticker-pro {
  height: 28px; padding: 0 14px; font-size: 12.5px;
}
header.chrome { position: sticky; top: 0; z-index: 30; flex-shrink: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.chrome-inner { height: 52px; display: flex; align-items: center; gap: 18px; position: relative; }
.chrome-panel { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.chrome-panel-primary { display: flex; align-items: center; gap: inherit; flex: 1; min-width: 0; }
.chrome-spacer { flex: 1; min-width: 0; }
.wordmark { display: flex; align-items: center; gap: 2px; flex-shrink: 0; color: inherit; }
.wordmark img { width: 36px; height: 36px; object-fit: contain; margin-bottom: -2px; }
.wordmark span { font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.wordmark .ai { color: var(--brand); }
nav.main { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
nav.main a {
  font-family: Archivo, sans-serif; font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em; padding: 14px 0; border-bottom: 2px solid transparent;
  white-space: nowrap; color: var(--ink2);
}
nav.main a.on { color: var(--ink); border-bottom-color: var(--brand); }
nav.main a:hover { color: var(--brandInk); }
.icon-btn {
  width: 38px; height: 38px; padding: 0; justify-content: center; gap: 0;
}
.icon-btn .mode-icon { width: 16px; height: 16px; display: block; }
body[data-bwg="light"] .mode-icon-moon { display: none; }
body:not([data-bwg="light"]) .mode-icon-sun { display: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 38px; padding: 0; flex-shrink: 0;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brandInk); }
.nav-toggle-bars {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 16px; height: 14px;
}
.nav-toggle-bars span {
  display: block; height: 2px; width: 100%; border-radius: 1px; background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
body.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-scrim {
  display: none; position: fixed; inset: 0; z-index: 35;
  background: rgba(4, 12, 24, 0.55); border: 0; padding: 0; cursor: pointer;
}
.nav-scrim[hidden] { display: none !important; }
body.nav-open .nav-scrim { display: block; }
body.nav-open { overflow: hidden; }
.pill { height: 38px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink2); flex-shrink: 0; }
.pill:hover { border-color: var(--brand); color: var(--brandInk); }
button.pill[hidden] { display: none !important; }
.pill.on { border-color: var(--brand); color: var(--brandInk); background: var(--chip); }
.pill:disabled { opacity: 0.45; cursor: default; }
[data-copy][contenteditable="true"] { cursor: text; }
[data-copy][contenteditable="true"]:focus {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 55%, transparent);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); display: block; }
.account { font-family: Archivo, sans-serif; font-size: 14.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
.account:hover { color: var(--ink); }
button.account { display: inline; }
button.account[hidden], a.account[hidden] { display: none !important; }
.pro-cta {
  height: 38px; display: flex; align-items: center; padding: 0 20px;
  background: var(--brand); color: #fff !important; border-radius: 999px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 14.5px;
  white-space: nowrap; flex-shrink: 0;
}
.pro-cta:hover { background: var(--cyan); color: var(--onCyan) !important; }
.hero { position: relative; overflow: hidden; background: var(--bandBg); border-bottom: 1px solid var(--bandLine); }
.hero-tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--tex);
  background-size: var(--texSize);
  background-repeat: var(--texRep);
  background-position: var(--texPos);
  mix-blend-mode: var(--texBlend);
  filter: var(--texFilter);
  opacity: var(--texOp);
}
.hero-ov { position: absolute; inset: 0; background: var(--heroOv); pointer-events: none; }
/* Light: keep titles readable over busy binary without a solid blue slab */
body[data-bwg="light"] .hero h1,
body[data-bwg="light"] .hero .h1,
body[data-bwg="light"] .section-head-on-hero h1,
body[data-bwg="light"] .band-copy h2,
body[data-bwg="light"] .video-copy h2 {
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 0 28px rgba(242,247,255,0.95);
}

.hero-inner { position: relative; padding: 52px 32px 40px; }
/* Section pages (not the News lead): same band height regardless of copy length. */
.hero:not(.hero-lead) {
  min-height: 254px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero:not(.hero-lead) .hero-inner { width: 100%; box-sizing: border-box; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
h1, .h1 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.04em; }
.dek { margin: 20px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--ink2); max-width: 62ch; }
.layout { display: grid; gap: 36px; padding: 36px 0 80px; }
.side h2, .feed-head h2 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.feed-kicker { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-top: 6px; }
.chip { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink3); background: var(--chip); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 12px; }
.feed-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.empty { margin-top: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 48px 28px 40px; text-align: center; box-shadow: var(--shadow); }
.empty img { width: 132px; height: 132px; object-fit: contain; }
.empty h3 { margin: 18px 0 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.empty p { margin: 12px auto 0; max-width: 44ch; font-size: 15.5px; line-height: 1.6; color: var(--ink2); }
.card { margin-top: 36px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 28px; max-width: 440px; }
.card h1 { font-size: 34px; }
label { display: block; font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin: 18px 0 8px; }
input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg3); color: var(--ink); font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 15px; }
.primary { margin-top: 22px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-family: Archivo, sans-serif; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.note { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink2); }
.flash { display: none; margin-top: 14px; font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--good); }
.flash.on { display: block; }
footer { border-top: 1px solid var(--line); padding: 22px 0 36px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  h1, .h1 { font-size: 40px; }
  .hero:not(.hero-lead) { min-height: 314px; }
}

.tick-health { font-size: 10px; letter-spacing: 0.12em; color: var(--good); white-space: nowrap; }
.tick-health.down { color: var(--bad); }
.alt { margin-top: 16px; font-size: 13.5px; }
.flash.err { color: var(--bad); }
/* visible email textbox — do not hide from a11y */
input[type="email"] {
  display: block;
  visibility: visible;
  opacity: 1;
  position: static;
  height: 44px;
  width: 100%;
  font-size: 16px;
  clip: auto;
  overflow: visible;
}

.stories { margin-top: 0; display: flex; flex-direction: column; }
.stories article, .story, .feed-row {
  display: grid;
  grid-template-columns: 70px 1fr 132px;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line2);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}
.feed-row:hover .feed-title { color: var(--brandInk); }
.feed-time .time {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; color: var(--cyan);
  white-space: pre-line;
}
.feed-time .read {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--ink3); margin-top: 4px;
}
.feed-src { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.feed-src .source {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.feed-src .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink3); display: block; }
.feed-src .cluster { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--ink3); }
.feed-src .badge, .kind {
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan);
  border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px;
  display: inline-block;
}
.kind-news { color: var(--brandInk); background: transparent; }
.kind-original { color: var(--cyan); background: transparent; }
.feed-title, .stories h3, .story h3, .stories h3 a, .story h3 a {
  display: block; margin: 0;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 22px;
  line-height: 1.2; letter-spacing: -0.025em; color: var(--ink);
  text-wrap: pretty; max-width: none;
}
.feed-title:hover, .stories h3 a:hover, .story h3 a:hover { color: var(--brandInk); }
.feed-sum, .story-dek {
  margin: 9px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink2);
  max-width: 68ch; text-wrap: pretty;
}
.synopsis-btn {
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brandInk);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.synopsis-btn:hover, .synopsis-btn:focus-visible { border-color: var(--brand); color: var(--brandInk); }
[data-admin-only][hidden] { display: none !important; }
body.synopsis-open { overflow: hidden; }
.synopsis-pop {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.synopsis-pop[hidden] { display: none !important; }
.synopsis-scrim { position: absolute; inset: 0; background: rgba(8, 10, 16, 0.62); }
.synopsis-panel {
  position: relative; width: min(640px, 100%); max-height: min(78vh, 720px);
  overflow: auto; background: var(--bg2); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
.synopsis-panel .kicker { margin-bottom: 8px; }
.synopsis-panel h2 { margin: 0 48px 14px 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.synopsis-panel h2 a { color: inherit; }
.synopsis-panel h2 a:hover { color: var(--brandInk); }
.synopsis-body p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.synopsis-read {
  display: inline-block; margin-top: 6px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brandInk);
}
.synopsis-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.synopsis-close:hover { border-color: var(--brand); color: var(--brandInk); }
.feed-thumb {
  height: 92px; border-radius: 8px; border: 1px solid var(--line);
  background-color: var(--bg2);
  background-size: cover; background-position: center;
  background-image: repeating-linear-gradient(135deg, var(--line2) 0 8px, transparent 8px 16px);
}
.story-meta {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink3);
}
.story-meta a { color: var(--brandInk); }

.article-page { padding: 0; max-width: none; }
.article-page h1 {
  margin: 0;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 46px;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.topics-page { padding: 8px 0 40px; }
.topics-page h1 {
  margin: 0 0 8px;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.topics-page .topic-row { margin: 18px 0; }
.topics-page h2 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; }
.topics-page h2 a { color: inherit; }
.topics-page h2 a:hover { color: var(--cyan); }
.chip a, a.chip { color: inherit; text-decoration: none; }


/* BA-31 + flare — extra chrome + placeholder pages */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.account-nav { margin-left: 4px; }
.topics-bar { border-bottom: 1px solid var(--line2); background: var(--bg); }
.topics-bar-inner {
  display: flex; align-items: center; gap: 8px; height: 50px;
  overflow: hidden;
}
.topics-bar-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink3); margin-right: 8px; flex-shrink: 0; }
.topics-bar-chips {
  display: flex; gap: 8px; align-items: center;
  flex: 1 1 0; width: 0; min-width: 0;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.topics-bar-chips .chip, .topics-bar-chips a.chip { flex: 0 0 auto; }
.topics-bar-all {
  flex: 0 0 auto; background: var(--bg); padding-left: 10px;
  position: relative; z-index: 1;
}
.topics-bar-chips .chip, .topics-bar-chips a.chip {
  padding: 6px 13px; border-radius: 999px; white-space: nowrap; font-size: 13px;
  font-weight: 500; color: var(--ink2); background: var(--chip); border: 1px solid transparent;
  font-family: "IBM Plex Sans", system-ui, sans-serif; letter-spacing: 0;
}
.topics-bar-chips .chip:hover { border-color: var(--brand); color: var(--ink); }
.topics-bar-chips .chip.on { border-color: var(--brand); color: var(--ink); background: var(--chip); cursor: pointer; }
.topics-live { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--cyan); white-space: nowrap; }

.hero-lead-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  padding: 40px 0 0;
  align-items: start;
}
.lead-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lead-badge {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--onCyan);
  background: var(--cyan); padding: 5px 9px; border-radius: 4px;
}
.lead-cover { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--ink2); }
.hero-lead-main h1, .hero-lead-main .lead-title {
  display: block; margin: 0;
  font-family: Archivo, sans-serif; font-weight: 800; font-size: 36px;
  line-height: 1.08; letter-spacing: -0.03em; color: var(--ink);
  text-wrap: balance; max-width: none;
}
.hero-lead-main .lead-title:hover { color: var(--brandInk); }
.lead-split {
  --lead-image-height: 300px;
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: start;
}
.lead-image {
  height: var(--lead-image-height);
  margin-bottom: 40px;
  border-radius: 12px; border: 1px solid var(--line);
  background-color: var(--bg2); background-size: cover; background-position: center;
}
.agent-tldr {
  position: relative;
  padding: 2px 0 2px 16px;
}
.agent-tldr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: var(--lead-image-height);
  background: var(--cyan);
}
.agent-tldr .kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
.agent-tldr ul { margin: 0; padding-left: 16px; font-size: 13.5px; line-height: 1.65; color: var(--ink2); }
.agent-tldr .chips { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.agent-tldr .chips span {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--ink2);
  border: 1px solid var(--line); padding: 4px 8px; border-radius: 4px;
}
.bit-brief {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 8px; box-shadow: var(--shadow);
}
.bit-brief-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.bit-brief-head img { width: 62px; height: 62px; object-fit: contain; margin: -8px 0 -8px -6px; }
.bit-brief-head h2 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.bit-brief-head p { margin: 4px 0 0; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); }
.bit-brief-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bit-brief-list a, .bit-brief-list li {
  display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line2);
  font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ink);
}
.bit-brief-list a:hover { opacity: 0.75; color: inherit; }
.bit-brief-list .mono { color: var(--cyan); font-size: 11px; font-weight: 600; padding-top: 2px; flex-shrink: 0; }
.brief-link {
  display: block; padding: 14px 0 16px; border-top: 1px solid var(--line2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brandInk);
}

.layout { display: grid; gap: 48px; padding: 24px 0 0; }
.layout-news {
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "feed rail";
  align-items: start;
}
.feed-col { min-width: 0; grid-area: feed; }
.news-rail {
  grid-area: rail;
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 76px;
}
.feed-head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; scroll-margin-top: 64px; }
.feed-head h2 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.feed-search {
  min-width: 148px; max-width: 200px; flex: 0 0 auto;
  height: 26px; padding: 0 11px; gap: 8px;
}
.feed-search i { width: 11px; height: 11px; border-width: 1.4px; }
.feed-search input { height: 24px; font-size: 11px; }
.feed-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 24px 0 12px; margin-top: 8px;
  border-top: 1px solid var(--line2);
}
.feed-pager[hidden] { display: none; }
.feed-pager-size {
  display: flex; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3);
}
.feed-pager-size select {
  height: 36px; padding: 0 32px 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background-color: var(--bg2);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%238FA6C4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6 6l4.5-4.5'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: none;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.feed-pager-size select:hover { border-color: var(--brand); }
body[data-bwg="light"] .feed-pager-size select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%235A6B84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6 6l4.5-4.5'/></svg>");
}
.feed-pager-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.feed-pager-btn {
  width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg2); color: var(--ink); cursor: pointer;
}
.feed-pager-btn svg { width: 16px; height: 16px; display: block; }
.feed-pager-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brandInk); }
.feed-pager-btn:disabled { opacity: 0.35; cursor: default; }
.feed-pager-label {
  min-width: 11ch; text-align: center;
  font-size: 11px; letter-spacing: 0.08em; color: var(--ink2);
}
.rail-card {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rail-card.tight { padding: 0; }
.rail-card-head {
  padding: 16px 18px 12px; border-bottom: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: space-between;
}
.rail-card-head strong { font-family: Archivo, sans-serif; font-weight: 800; font-size: 15px; }
.rail-kicker { font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.rail-card h3 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.mini-bench-chart { padding: 8px 10px 12px; min-height: 140px; }
.mini-bench-chart svg { display: block; width: 100%; height: auto; }
.aa-icon-link { display: flex; align-items: center; }
.aa-icon-link img { width: 18px; height: 18px; display: block; }
.rail-more { display: block; padding: 12px 18px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brandInk); }
.guide-mini { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.guide-mini img { width: 46px; height: 46px; object-fit: contain; margin: -6px 0 -6px -4px; }
.guide-mini .sub { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); }
.guide-list a {
  display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line2);
  font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--ink);
}
.guide-list a:hover { color: var(--brandInk); }
.guide-list .lvl { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; color: var(--cyan); flex-shrink: 0; }
.rail-news {
  border: 1px solid var(--brand); border-radius: 14px; background: var(--bg3);
  padding: 12px 16px 16px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch;
}
.rail-news img.wave {
  position: static; display: block;
  width: auto; height: 176px; max-width: 100%;
  margin: 4px auto 10px;
  opacity: 1; pointer-events: none;
  object-fit: contain; object-position: center bottom;
  align-self: center;
}
.rail-news h3 { font-size: 19px; line-height: 1.15; max-width: none; position: relative; z-index: 1; }
.newsletter-form {
  margin-top: 14px; display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 100%; position: relative; z-index: 1;
}
.newsletter-form input { width: 100%; height: 38px; }
.newsletter-form .primary { margin-top: 0; width: 100%; height: 38px; border-radius: 8px; }
.newsletter-status { margin: 0; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.wear-bit { display: flex; gap: 12px; align-items: center; }
.wear-bit img { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.wear-bit p { margin: 3px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.wear-bit a { display: inline-block; margin-top: 8px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brandInk); }

.page-pad { padding: 36px 32px 80px; }
.hero-with-mascot { display: flex; align-items: center; gap: 20px; }
.hero-mascot { width: 140px; height: 140px; object-fit: contain; flex-shrink: 0; margin: -10px 0 -10px -8px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter {
  font-family: Archivo, sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--ink2); background: transparent; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--line); white-space: nowrap; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.filter.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.view-pills { display: flex; gap: 6px; }
.view-pills button {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 5px 11px; border-radius: 999px;
  color: var(--ink2); border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.view-pills button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-search {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); min-width: 220px;
}
.page-search i {
  width: 14px; height: 14px; border: 1.6px solid var(--ink3); border-radius: 50%;
  display: block; flex-shrink: 0;
}
.page-search:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.page-search input {
  flex: 1; border: 0; background: transparent; color: var(--ink); min-width: 0; height: 36px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; outline: none;
}
.page-search input::placeholder { color: var(--ink3); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.guide-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.guide-card-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--line2); }
.guide-card-head .level {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--onCyan); background: var(--cyan); padding: 4px 8px; border-radius: 3px; margin-right: 8px;
}
.guide-card-head h3 { margin: 10px 0 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.025em; }
.guide-card-head p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.guide-card-list > a {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 14px 20px;
  border-bottom: 1px solid var(--line2); color: inherit;
}
.guide-card-list > a:last-child { border-bottom: 0; }
.guide-grid:not(.is-searching) .guide-card:not(.expanded) .guide-card-list > a:nth-child(n+5) {
  display: none;
}
.guide-more {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
}
.guide-grid.is-searching .guide-more { display: none; }
.guide-card-list > a:hover { background: var(--chip); }
.guide-card-list > a strong { display: block; font-family: Archivo, sans-serif; font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; }
.guide-card-list > a .mono { display: block; margin-top: 5px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2); }
.guide-updated { display: block; margin-top: 4px; color: var(--ink2); }
.guide-card-list > a > .mono { padding-top: 2px; color: var(--ink3); }
#page-guides .filter-row { margin-bottom: 22px; }
#page-guides .page-search { max-width: 360px; }
.track-link { display: block; padding: 14px 20px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brandInk); }
.updates { margin-top: 48px; }
.update-row {
  display: grid; grid-template-columns: 90px 1fr 160px 110px; gap: 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line2);
}
a.update-row { color: inherit; text-decoration: none; }
a.update-row:hover strong { color: var(--brandInk); }
.update-row .cyan { color: var(--cyan); }
.update-row strong { font-family: Archivo, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }

.ref-index-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink3); margin: 0 0 12px;
}
.ref-search { width: min(420px, 100%); margin: 0 0 16px; }
.ref-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.ref-index a, .ref-index button {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink2); background: var(--bg2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; white-space: nowrap; cursor: pointer;
}
.ref-index a:hover, .ref-index button:hover { color: var(--brandInk); border-color: var(--brand); }
.ref-index button.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.ref-glossary { max-width: none; }
.ref-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.ref-card.ref-term {
  box-sizing: border-box;
  height: 188px; display: flex; flex-direction: column;
  margin: 0; padding: 16px 18px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg2); box-shadow: var(--shadow);
  overflow: hidden; color: inherit; cursor: pointer;
  scroll-margin-top: 120px;
}
.ref-card.ref-term[hidden] { display: none !important; }
.ref-card.ref-term:hover, .ref-card.ref-term:focus-visible {
  border-color: var(--brand); color: inherit;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.ref-card.ref-term.term-target {
  outline: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent);
  background: color-mix(in srgb, var(--cyan) 8%, var(--bg2));
}
.ref-cat {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); flex-shrink: 0;
}
.ref-card.ref-term h2 {
  margin: 6px 0 0; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 20px; letter-spacing: -0.03em; line-height: 1.15;
  flex-shrink: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ref-card.ref-term .ref-aka {
  display: block; margin-top: 4px; flex-shrink: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ref-preview {
  margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1; min-height: 0;
}
.ref-empty { margin: 0 0 22px; }
.ref-tabs { margin: 0 0 22px; }
.ref-tabs .filter { text-decoration: none; color: var(--ink2); }
.ref-tabs .filter.on { color: var(--bg); }
.ref-cmd-meta { margin: 0 0 16px; }
.ref-cmd-head { margin: 0 0 22px; }
.ref-cmd-head h2 {
  margin: 8px 0 0; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 28px; letter-spacing: -0.03em;
}
.ref-cmd-head .ref-aka { margin-top: 6px; }
.ref-cmd-head p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; max-width: 62ch; }
.ref-cmd-head a { font-size: 13.5px; }
.ref-cmd-block { margin: 0 0 28px; }
.ref-cmd-block h3 {
  margin: 0 0 12px; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 18px; letter-spacing: -0.02em;
}
.ref-example {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
  padding: 16px 18px 14px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.ref-example-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ref-example-bar strong { font-family: Archivo, sans-serif; font-weight: 700; font-size: 15px; }
.ref-example-copy {
  margin-left: auto; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--ink2); cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
}
.ref-example-copy:hover { border-color: var(--brand); color: var(--brandInk); }
.ref-example pre {
  margin: 0; padding: 12px 14px; overflow-x: auto;
  background: var(--bg3); border-radius: 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; line-height: 1.5; color: var(--ink);
  white-space: pre;
}
.ref-example .note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.ref-flag-new {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; margin-left: 8px;
}
.ref-table.ref-cmd-table td:first-child { white-space: nowrap; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.ref-table.ref-cmd-table td:nth-child(2) { color: var(--ink2); font-size: 13px; }
.ref-pop {
  box-sizing: border-box;
  width: min(720px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: min(86vh, 920px);
  margin: auto;
  padding: 22px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: auto;
}
.ref-pop::backdrop { background: rgba(7, 14, 26, 0.62); }
body[data-bwg="light"] .ref-pop::backdrop { background: rgba(10, 22, 40, 0.32); }
.ref-pop-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ref-pop-bar .ref-cat { flex: 1; }
.ref-pop-close {
  margin-left: auto; height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--ink2); cursor: pointer;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
}
.ref-pop-close:hover { border-color: var(--brand); color: var(--brandInk); }
.ref-pop h2 {
  margin: 0; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 32px; letter-spacing: -0.03em; line-height: 1.15;
}
.ref-pop .ref-aka {
  display: block; margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3);
}
.ref-pop-body p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink); }
.ref-pop-body ul { margin: 12px 0 0; padding: 0 0 0 1.15em; }
.ref-pop-body li { margin: 6px 0; font-size: 16px; line-height: 1.6; }
.ref-table {
  width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14.5px;
}
.ref-table th, .ref-table td {
  text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line2);
  vertical-align: top; line-height: 1.45;
}
.ref-table th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3);
  font-weight: 600;
}
.ref-table code, .ref-pop-body code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.92em; background: var(--chip); padding: 1px 5px; border-radius: 4px;
}
.term-target {
  outline: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent);
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
}

.section-head { display: flex; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.section-head h1 { font-size: 44px; }
.stat-row { display: flex; gap: 28px; padding-bottom: 6px; }
#bench-stats { margin: 0 0 18px; padding-bottom: 0; }
.stat-row.compact { gap: 20px; }
.stat-v { font-family: Archivo, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.stat-row .mono { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-top: 4px; }

.bench-charts {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.68fr); gap: 22px;
  align-items: start; margin-top: 8px;
}
.bench-panel {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
  padding: 16px 18px 14px; box-shadow: var(--shadow); min-width: 0;
}
.bench-panel .story-dek { margin: 10px 2px 0; }
.bench-note { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--ink3); }
.arena-panel { margin-top: 0; }
.arena-note { margin: 12px 2px 0; font-size: 13px; line-height: 1.45; color: var(--ink3); }
.arena-list { list-style: none; margin: 8px 0 0; padding: 0; }
.arena-row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line2); }
.arena-rank { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink3); }
.arena-name { font-weight: 650; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arena-score { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink); }
.good { color: var(--good) !important; }
.bench-foot { padding: 16px 4px 8px; display: flex; align-items: center; gap: 16px; }
.bench-foot .muted { color: var(--ink3); }
.bench-aside { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.bench-aside .rail-card { margin-top: 0; }
.chart-ph {
  height: 180px; border-radius: 8px; border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg, var(--line2) 0 9px, transparent 9px 18px);
  display: flex; align-items: flex-end; padding: 10px; font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3);
}
.bench-chart-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.bench-chart-head .rail-kicker { margin-bottom: 0; }
.aa-mark { display: block; flex: 0 0 auto; }
.aa-mark img { height: 18px; width: auto; display: block; }
body:not([data-bwg="light"]) .aa-logo-on-light { display: none; }
body:not([data-bwg="light"]) .aa-logo-on-dark { display: block; }
body[data-bwg="light"] .aa-logo-on-dark { display: none; }
body[data-bwg="light"] .aa-logo-on-light { display: block; }
.bench-chart { position: relative; min-height: 160px; }
.bench-chart svg { display: block; width: 100%; height: auto; }
.bench-chart .axis,
.mini-bench-chart .axis { fill: none; stroke: var(--line); stroke-width: 1; }
.bench-chart .tick,
.mini-bench-chart .tick { fill: var(--ink3); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.bench-chart .hbar-track,
.mini-bench-chart .hbar-track { fill: var(--line2); }
.bench-chart .hbar { cursor: pointer; }
.bench-chart .hbar-label,
.mini-bench-chart .hbar-label { fill: var(--ink); font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; }
.bench-chart .hbar-value,
.mini-bench-chart .hbar-value { fill: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.bench-chart .hbar:hover .hbar-bar { filter: brightness(1.12); }
.mini-bench-chart .hbar-label { font-size: 11px; }
.mini-bench-chart .hbar-value { font-size: 10px; }
.rail-mascot { display: flex; gap: 12px; align-items: flex-start; }
.rail-mascot img { flex-shrink: 0; width: 110px; height: 88px; margin: -10px 0 0 -14px; object-fit: contain; }
.rail-cta { border-color: var(--brand); background: var(--bg3); }
.btn {
  display: inline-block; margin-top: 12px; height: 36px; padding: 0 16px; line-height: 36px;
  background: var(--brand); color: #fff !important; border-radius: 6px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 13.5px;
  cursor: pointer; border: 0;
}
.btn:hover { background: var(--cyan); color: var(--onCyan) !important; }
.btn.ghost {
  background: transparent; color: var(--ink2) !important; border: 1px solid var(--line);
  line-height: 34px; height: 36px;
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brandInk) !important; }
.btn.danger { color: var(--bad) !important; }

.cart-ph {
  margin-left: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2);
  padding: 16px 20px; min-width: 160px;
}
.cart-ph .mono { font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 8px; display: block; }
.cart-total { font-family: Archivo, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.merch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product {
  display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
  overflow: hidden; box-shadow: var(--shadow); color: inherit;
}
.product:hover { border-color: var(--brand); }
.product-art {
  position: relative; height: 236px; border-bottom: 1px solid var(--line2);
  background-color: var(--bg3);
  background-size: cover; background-position: center;
  background-image: repeating-linear-gradient(135deg, var(--line2) 0 10px, transparent 10px 20px);
  display: flex; align-items: flex-end; padding: 12px;
}
.product-art .badge {
  position: absolute; top: 12px; left: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--onCyan);
  background: var(--cyan); padding: 3px 7px; border-radius: 3px;
}
.product-art .mono { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); }
.product-body { padding: 16px 17px 18px; }
.product-body strong { font-family: Archivo, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.product-body p { margin: 4px 0 0; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.product-meta { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line); display: block; }
.merch-pro {
  margin-top: 40px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.merch-pro img { flex-shrink: 0; object-fit: contain; margin: -8px 0; }
.promise { border-left: 1px solid var(--line); padding-left: 20px; }
.promise .mono { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); margin-bottom: 5px; }
.promise strong { font-size: 14px; }

.account-head {
  display: flex; align-items: center; gap: 18px; padding-bottom: 24px;
  border-bottom: 2px solid var(--ink); margin-bottom: 28px;
}
.account-head h1, .account-head .h1 { font-size: 34px; margin: 0; }
.avatar {
  width: 62px; height: 62px; border-radius: 50%; background: var(--bg3);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--brandInk); font-size: 17px;
}
.account-layout { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 40px; }
.account-tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.account-tabs a, .account-tabs button {
  text-align: left; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; border: 1px solid transparent;
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 14.5px;
  letter-spacing: -0.01em; background: transparent; color: var(--ink);
}
.account-tabs a.on, .account-tabs button.on { background: var(--chip); color: var(--brandInk); border-color: var(--brand); }
.account-tabs .n { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; color: var(--ink3); }
.pro-pill {
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--onCyan);
  background: var(--cyan); padding: 4px 8px; border-radius: 3px;
}
.week-card {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg2); padding: 14px;
}
.week-card .stat-v { font-size: 22px; }
.account-panels { display: flex; flex-direction: column; gap: 18px; }
.account-panels .rail-card { margin-top: 0; }
.plan-line { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { margin-top: 0; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; font-size: 14.5px; color: var(--ink2);
}
.toggle {
  width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; position: relative; display: inline-block;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink3);
}
.toggle.on { background: var(--brand); border-color: var(--brand); }
.toggle.on::after { left: auto; right: 3px; background: #fff; }
.toggle:disabled { opacity: 0.45; cursor: not-allowed; }
.account-table .toggle { margin-top: 2px; }
.api-key { margin: 10px 0 0; font-size: 12px; color: var(--ink2); word-break: break-all; }
.admin-pill {
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--onCyan);
  background: var(--brand); padding: 4px 8px; border-radius: 3px;
}
.account-tabs .sub {
  margin-left: 18px; font-size: 13.5px; font-weight: 500; padding: 8px 12px;
}
.account-tabs-group {
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
  padding: 18px 12px 6px; margin-top: 8px; border-top: 1px solid var(--line);
}
.account-field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.account-field label {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink3);
}
.account-field input, .account-field textarea, .account-field select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg3); color: var(--ink);
}
.account-field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.account-field textarea { min-height: 88px; resize: vertical; }
.api-key-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.8fr); gap: 12px; }
.api-key-once {
  margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--cyan); border-radius: 8px;
  background: var(--chip);
}
.api-key-once code {
  display: block; margin: 10px 0; padding: 10px 12px; border-radius: 6px;
  background: var(--bg3); color: var(--ink); word-break: break-all;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px;
}
.account-table tr.is-off { opacity: 0.55; }
@media (max-width: 720px) {
  .api-key-form { grid-template-columns: 1fr; }
}
.admin-toolbar {
  display: flex; flex-direction: column; gap: 10px; margin: 12px 0 8px;
}
.admin-search {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg3);
}
.admin-search i {
  width: 14px; height: 14px; border: 1.6px solid var(--ink3); border-radius: 50%;
  display: block; flex-shrink: 0;
}
.admin-search:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.admin-search input {
  flex: 1; border: 0; background: transparent; color: var(--ink); min-width: 0; height: 36px;
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; outline: none;
}
.admin-search input::placeholder { color: var(--ink3); }
.admin-filter-stack { display: flex; flex-direction: column; gap: 8px; }
.admin-pills { flex-wrap: wrap; }
.admin-table-wrap { overflow-x: auto; margin-top: 8px; }
.admin-sources-table td strong, .admin-articles-table td a { font-weight: 650; }
.source-url {
  font-size: 11px; color: var(--ink3); margin-top: 4px; word-break: break-all;
}
.account-table input {
  width: 100%; min-width: 140px; font: inherit; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); color: var(--ink);
}
.account-table tr.is-off td { opacity: 0.55; }
.account-table .btn { margin-top: 0; cursor: pointer; border: 0; }
.account-table .btn.ghost { border: 1px solid var(--line); }
.admin-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 4px;
}
.admin-toggle-copy { display: flex; flex-direction: column; gap: 4px; padding-right: 16px; }
.admin-toggle-copy .note { margin: 0; }
.admin-host-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.admin-host-add { display: flex; gap: 8px; margin: 8px 0 12px; }
.admin-host-add input {
  flex: 1; font: inherit; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg3); color: var(--ink);
}
.admin-host-add .btn { margin-top: 0; }
.admin-host-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.admin-host-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg3);
}
.admin-host-chip .btn { margin-top: 0; height: 30px; line-height: 28px; padding: 0 10px; font-size: 12px; }
.admin-source-list { max-height: 420px; overflow: auto; }
.admin-article-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 14px;
}
.admin-article-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg3);
  overflow: hidden; display: flex; flex-direction: column; min-width: 0;
}
.admin-article-card.is-off { opacity: 0.62; }
.admin-article-thumb {
  display: block; height: 148px; background-color: var(--bg2);
  background-size: cover; background-position: center;
  background-image: repeating-linear-gradient(135deg, var(--line2) 0 8px, transparent 8px 16px);
}
.admin-article-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.admin-article-title {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 17px;
  line-height: 1.25; letter-spacing: -0.02em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
a.admin-article-title:hover { color: var(--brandInk); }
.admin-article-dek {
  margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.admin-article-link { display: flex; gap: 8px; align-items: center; }
.admin-article-link input {
  flex: 1; min-width: 0; font: inherit; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--ink);
}
.admin-article-link .btn, .admin-article-actions .btn { margin-top: 0; }
.admin-article-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.source-text-panel {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--bg2);
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.hall-corpus-item { border-top: 1px solid var(--line2); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.hall-corpus-item h4 { margin: 0; font-size: 15px; line-height: 1.3; }
.admin-trash-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.admin-trash-card .admin-article-thumb { height: 100%; min-height: 140px; }
[data-trash-list] { display: flex; flex-direction: column; gap: 14px; }
[data-trash-list] > .rail-kicker, [data-trash-list] > h3 { margin: 0; }
[data-trash-list] > .note { margin: 0; }
.account-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.account-table th, .account-table td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line2);
  vertical-align: top;
}
.account-table th {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink3); font-weight: 600;
}
.account-table .row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pref-chips button {
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--ink); cursor: pointer;
}
.pref-chips button.on { background: var(--chip); color: var(--brandInk); border-color: var(--brand); }
.account-flash { margin-top: 12px; font-size: 13.5px; color: var(--ink2); }
.account-flash.err { color: #c0392b; }
.spark { width: 100%; height: 120px; display: block; }
.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.usage-span { grid-column: 1 / -1; }
.usage-block h4 {
  margin: 14px 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
  font-weight: 600;
}
.usage-chart { width: 100%; height: 120px; display: block; }
.usage-chart .grid { stroke: var(--line); stroke-width: 1; }
.usage-chart .stroke {
  fill: none; stroke: var(--brand); stroke-width: 2.25;
  stroke-linejoin: round; stroke-linecap: round;
}
.usage-chart .stroke.cyan { stroke: var(--cyan); }
.usage-chart .area { fill: var(--brand); opacity: 0.16; }
.usage-chart .area.cyan { fill: var(--cyan); }
.usage-scale {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink3); margin-top: 4px;
}
.usage-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 6px; }
.usage-legend span {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink3);
}
.usage-legend i {
  display: inline-block; width: 14px; height: 3px; margin-right: 6px;
  vertical-align: middle; background: var(--brand); border-radius: 2px;
}
.usage-legend i.cyan { background: var(--cyan); }
.usage-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.usage-bar {
  display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto;
  gap: 8px; align-items: center;
}
.usage-bar-label, .usage-bar-n {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.usage-bar-n { text-align: right; }
.usage-bar-track {
  display: block; height: 10px; background: var(--line2); border-radius: 999px; overflow: hidden;
}
.usage-bar-fill {
  display: block; height: 100%; background: var(--brand); border-radius: 999px;
}
.stat-grid.usage-stats { grid-template-columns: repeat(3, 1fr); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 22px; }
.stat-grid .v { font-family: Archivo, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.stat-grid .k {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink3); margin-top: 4px;
}
.edit-bar { display: flex; gap: 8px; margin-top: 8px; }
.edit-bar button {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg3);
  color: var(--ink2); cursor: pointer;
}
.edit-bar button:hover { border-color: var(--brand); color: var(--brandInk); }
.preview-body {
  max-height: 280px; overflow: auto; white-space: pre-wrap; font-size: 13.5px;
  line-height: 1.55; color: var(--ink2); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px; background: var(--bg3); margin: 10px 0;
}
/* BA-37 — Publishing panel uses live article chrome (scroll), not raw body dump */
.publishing-preview {
  max-height: min(70vh, 720px); overflow: auto; margin: 10px 0;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 16px;
  background: var(--bg);
}
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 10px 0 0; padding: 8px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg2);
}
.editor-btn {
  font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink2); cursor: pointer;
}
.editor-btn:hover { border-color: var(--brand); color: var(--brandInk); }
.rail-card[data-dirty="true"] .editor-toolbar {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}
.publishing-preview h1[contenteditable="true"],
.publishing-preview .lede[contenteditable="true"],
.publishing-preview .article-body[contenteditable="true"],
.article-page h1[contenteditable="true"],
.article-page .lede[contenteditable="true"],
.article-page .article-body[contenteditable="true"],
.feed-title[contenteditable="true"],
.feed-sum[contenteditable="true"],
.desk-card .title[contenteditable="true"],
.desk-card .desk-dek[contenteditable="true"] {
  outline: none; border-radius: 6px;
}
.publishing-preview h1[contenteditable="true"]:focus,
.publishing-preview .lede[contenteditable="true"]:focus,
.publishing-preview .article-body[contenteditable="true"]:focus,
.article-page h1[contenteditable="true"]:focus,
.article-page .lede[contenteditable="true"]:focus,
.article-page .article-body[contenteditable="true"]:focus,
.lead-title[contenteditable="true"]:focus,
.hero-lead .dek[contenteditable="true"]:focus,
.feed-title[contenteditable="true"]:focus,
.feed-sum[contenteditable="true"]:focus,
.desk-card .title[contenteditable="true"]:focus,
.desk-card .desk-dek[contenteditable="true"]:focus {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 55%, transparent);
}
.live-site-editor-chrome {
  margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg2);
}
.live-site-editor-chrome[data-dirty="true"],
.feed-row[data-dirty="true"],
.desk-card[data-dirty="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
}
.live-site-save-row { margin-top: 8px; align-items: center; gap: 12px; }
.live-card-edit-bar {
  flex-wrap: wrap; align-items: flex-start;
}
.live-card-toolbar {
  width: 100%; margin: 0 0 6px; padding: 6px;
}
.live-thumb-edit { cursor: pointer; position: relative; }
.live-thumb-edit::after {
  content: "Edit image"; position: absolute; left: 8px; bottom: 8px;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 7px; border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink2);
  border: 1px solid var(--line); pointer-events: none;
}
.desk-card-editing { cursor: default; }
.desk-card-editing:hover { border-color: var(--line); }
.lead-title[contenteditable="true"],
.hero-lead .dek[contenteditable="true"] { cursor: text; }
.feed-sum[data-placeholder]:empty::before,
.desk-dek[data-placeholder]:empty::before,
.lede[data-placeholder]:empty::before {
  content: attr(data-placeholder); color: var(--ink3); pointer-events: none;
}
.article-body mark {
  background: color-mix(in srgb, var(--cyan) 35%, transparent);
  color: inherit; padding: 0 0.12em; border-radius: 2px;
}
.article-body pre {
  margin: 20px 0 0; padding: 14px 16px; overflow-x: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
}
.article-body pre code {
  display: block; font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px; line-height: 1.55; color: var(--ink); white-space: pre;
}
.article-body :not(pre) > code {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.86em;
  background: var(--chip); color: var(--ink); padding: 0.12em 0.38em;
  border-radius: 4px; border: 1px solid var(--line2);
}
.article-body img {
  display: block; max-width: 100%; height: auto; margin: 16px 0 0;
  border-radius: 10px; border: 1px solid var(--line);
}
.publishing-preview.article-page { padding: 8px 12px 16px; }
.publishing-preview .crumb { padding: 6px 0 0; }
.publishing-preview .article-layout {
  display: block; max-width: none; margin: 0; padding: 8px 0 0; gap: 0;
}
.publishing-preview .article-main { max-width: none; }
.publishing-preview h1 {
  margin: 0; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 32px; letter-spacing: -0.03em; line-height: 1.08;
}
.publishing-preview .article-hero { height: 200px; }
.publishing-preview .article-aside { position: static; top: auto; }
@media (max-width: 900px) {
  .publishing-preview { max-height: min(65vh, 560px); }
  .publishing-preview h1 { font-size: 26px; }
  .publishing-preview .article-hero { height: 160px; }
}
.range-chips { display: flex; gap: 8px; margin: 8px 0 16px; }
.range-chips button {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink2); cursor: pointer;
}
.range-chips button.on { border-color: var(--brand); color: var(--brandInk); background: var(--chip); }
body.site-editing .feed-row { position: relative; }

.desk { max-width: 1320px; margin: 0 auto; padding: 56px 32px 8px; }
.desk-head { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.desk-head h2 { margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.desk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 28px; }
.desk-card {
  display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2);
  overflow: hidden; box-shadow: var(--shadow); color: inherit;
}
.desk-card:hover { border-color: var(--brand); }
.desk-art {
  height: 168px; border-bottom: 1px solid var(--line);
  background-color: var(--bg3); background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 12px;
}
.desk-body { padding: 18px; }
.desk-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.desk-meta .kind-cyan {
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--onCyan);
  background: var(--cyan); padding: 3px 7px; border-radius: 3px;
}
.desk-body .title {
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 19px;
  line-height: 1.22; letter-spacing: -0.025em; color: var(--ink); text-wrap: pretty;
}
.desk-body p { margin: 9px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }

.video-band {
  position: relative; overflow: hidden; margin-top: 64px;
  border-top: 1px solid var(--bandLine); border-bottom: 1px solid var(--bandLine);
  background: var(--bandBg); color: var(--ink);
}
.video-band > .hero-tex, .video-band > .hero-ov { z-index: 0; }
.video-band-inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto; padding: 34px 32px 38px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.section-head-on-hero {
  margin: 0; padding-bottom: 0; border-bottom: 0;
  width: 100%;
}
.video-frame {
  position: relative; border-radius: 12px; overflow: hidden; background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(10,22,40,0.06);
}
.video-frame video { display: block; width: 100%; height: auto; }
.sound-btn {
  position: absolute; right: 12px; bottom: 12px; height: 34px; padding: 0 14px;
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(6px);
  border: 1px solid #C9DCF3; border-radius: 999px; cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #0A1628;
}
.sound-btn:hover { border-color: #0066FF; color: #0057DB; }
.sound-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: #C9DCF3; }
.sound-btn.on .dot { background: #00A8D8; }
.band-copy .rule { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.band-copy .rule i { width: 26px; height: 2px; background: var(--cyan); display: block; }
.band-copy .rule span {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan);
}
.band-copy h2 {
  margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 38px;
  line-height: 1.05; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance;
}
.band-copy p { margin: 16px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink2); max-width: 46ch; }
.band-ctas { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.band-ctas .primary-pill {
  height: 42px; display: flex; align-items: center; padding: 0 22px;
  background: #0066FF; color: #fff !important; border-radius: 999px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 14.5px;
}
.band-ctas .primary-pill:hover { background: #0A1628; }
.band-ctas .ghost-pill {
  height: 42px; display: flex; align-items: center; padding: 0 20px;
  border: 1px solid #C9DCF3; border-radius: 999px;
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 14.5px; color: #0A1628;
}
.band-ctas .ghost-pill:hover { border-color: #0066FF; color: #0057DB; }

.crumb {
  max-width: 1320px; margin: 0 auto; padding: 26px 32px 0;
  display: flex; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.crumb .sep { color: var(--ink3); font-weight: 400; }
.article-layout {
  max-width: 1320px; margin: 0 auto; padding: 22px 32px 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start;
}
.article-main { max-width: 760px; }
.article-main .lede { margin: 18px 0 0; font-size: 19px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.byline-row {
  display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.article-hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.article-hero-link:hover .article-hero,
.article-hero-link:focus-visible .article-hero {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.article-hero {
  margin: 28px 0 0; height: 380px; border-radius: 12px; border: 1px solid var(--line);
  background-color: var(--bg2); background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 16px;
  position: relative; overflow: hidden;
}
.article-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.tldr-box {
  margin: 28px 0 0; border: 1px solid var(--line); border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0; background: var(--bg2); padding: 12px 20px;
}
.tldr-box .kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan);
}
.tldr-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin: 0; padding: 6px 0; border: 0; background: transparent;
  color: inherit; cursor: pointer; text-align: left;
}
.tldr-chevron {
  font-family: "IBM Plex Mono", monospace; font-size: 16px; line-height: 1;
  color: var(--cyan); width: 1.2em; text-align: center;
}
.tldr-panel { display: none; padding: 4px 0 8px; }
.tldr-acc[data-open="true"] .tldr-panel { display: block; }
.tldr-box ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.7; color: var(--ink2); }
.article-body p { margin: 20px 0 0; font-size: 17px; line-height: 1.72; color: var(--ink2); text-wrap: pretty; }
.article-body p:first-child { margin-top: 8px; }
.article-body h2 {
  margin: 34px 0 0; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 27px; letter-spacing: -0.03em; color: var(--ink);
}
.article-body h3 {
  margin: 26px 0 0; font-family: Archivo, sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em; color: var(--ink);
}
.article-body a { color: var(--cyan); text-decoration: none; }
.article-body a:hover { text-decoration: underline; }
.article-body ul { margin: 16px 0 0; padding-left: 20px; font-size: 17px; line-height: 1.72; color: var(--ink2); }
.article-body li { margin: 8px 0 0; }
.article-body sup { font-size: 0.72em; line-height: 0; position: relative; top: -0.35em; margin-left: 1px; }
.article-body sup a { color: var(--brandInk, var(--cyan)); font-weight: 600; }
.made-box {
  margin: 40px 0 0; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg3); padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.made-box img { width: 78px; height: 78px; object-fit: contain; flex-shrink: 0; margin: -6px 0 0 -8px; }
.related { margin: 44px 0 0; padding-top: 26px; border-top: 2px solid var(--ink); }
.related h2 { margin: 0 0 20px; font-family: Archivo, sans-serif; font-weight: 800; font-size: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.related-card {
  display: block; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 16px; color: inherit;
}
.related-card:hover { border-color: var(--brand); }
.article-aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 22px; }
.share-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-pills span, .cite-btn {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  background: transparent; cursor: pointer;
}
.cite-btn[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.cite-wrap { position: relative; }
.cite-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 8;
  width: min(340px, 78vw); padding: 14px 16px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.cite-pop .kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
.cite-pop ol {
  margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: var(--ink2);
}
.cite-pop li { margin: 6px 0 0; }
.cite-pop a { color: var(--cyan); text-decoration: none; word-break: break-word; }
.cite-pop a:hover { text-decoration: underline; }
.ref-sources-label {
  margin: 22px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan);
}
.ref-sources { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.ref-sources a { color: var(--cyan); }

.articles-hero-row { display: flex; align-items: flex-end; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.articles-hero-row h1 { font-size: 44px; }
.articles-hero-row img { width: 104px; height: 104px; object-fit: contain; margin-bottom: -10px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; padding: 8px 0 40px; }
.featured-art {
  height: 260px; border-radius: 12px; border: 1px solid var(--line);
  background-color: var(--bg2); background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 14px;
}
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 34px; border-top: 1px solid var(--line); }
#articles-list.article-list {
  display: flex; flex-direction: column; gap: 0;
  padding-top: 22px; border-top: 1px solid var(--line);
}
#articles-list.article-list .desk-card { display: none; }
.merch-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line); border-radius: 14px; background: var(--bg2);
  padding: 48px 28px; text-align: center;
}
.merch-empty img { width: 96px; height: 96px; object-fit: contain; }
.merch-empty h3 {
  margin: 12px 0 0; font-family: Archivo, sans-serif; font-weight: 800;
  font-size: 22px; letter-spacing: -0.025em;
}
.merch-empty p { margin: 10px auto 0; max-width: 42ch; font-size: 14.5px; line-height: 1.5; color: var(--ink2); }

/* The visible section grows so a short page (Guides) pins this band to the
   viewport bottom instead of leaving it mid-page. */
body > div[id^="page-"]:not([hidden]) { flex: 1 0 auto; }
.close-band {
  position: relative; overflow: hidden; margin-top: 56px; flex-shrink: 0;
  border-top: 1px solid var(--bandLine); background: var(--bandBg); color: var(--ink);
}
.close-band > .hero-tex, .close-band > .hero-ov { z-index: 0; }
.close-inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto; padding: 40px 32px 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px; row-gap: 16px; align-items: center;
}
.close-media { grid-column: 1 / span 2; }
.close-band .band-copy { grid-column: 3 / span 2; }
.close-media .video-frame { height: 100%; }
.close-media video { display: block; width: 100%; height: auto; }
.close-band .band-copy h2 { font-size: clamp(28px, 3vw, 38px); }
.close-band .band-copy p { max-width: none; }
#page-news[hidden] ~ .close-band { margin-top: 72px; border-top-color: var(--line); background: var(--bg3); }
#page-news[hidden] ~ .close-band .close-media,
#page-news[hidden] ~ .close-band .band-copy { display: none; }
#page-news[hidden] ~ .close-band .close-inner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 8px;
}
footer {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  margin: 0; border: 0; border-top: 1px solid var(--bandLine); background: transparent;
  position: relative; z-index: 1; overflow: hidden; padding: 12px 0 14px;
  text-transform: none; letter-spacing: normal;
  font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 15px; color: var(--ink2);
}
.footer-tex {
  position: absolute; inset: 0; background-image: var(--tex);
  background-size: var(--texSize); background-repeat: var(--texRep);
  background-position: var(--texPos); mix-blend-mode: var(--texBlend);
  opacity: calc(var(--texOp) * 0.55); pointer-events: none;
}
.footer-grid {
  grid-column: 1 / -1;
  position: relative; margin: 0; padding: 12px 0 4px;
  display: flex; flex: 1 1 280px; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  border: 0;
}
.footer-lead {
  display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0;
}
#page-news[hidden] ~ .close-band .footer-grid { padding-top: 0; }
#page-news[hidden] ~ .close-band footer { padding-top: 16px; padding-bottom: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin: 0; }
.footer-lead img { width: 36px; height: 36px; object-fit: contain; margin: 0; }
.footer-brand span { font-family: Archivo, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.035em; color: var(--ink); text-transform: none; line-height: 1; }
.footer-lead > p { display: none; }
.footer-col h3 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.footer-col a { display: inline; font-size: 13.5px; color: var(--ink2); margin: 0; text-transform: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bar {
  grid-column: auto;
  position: relative; max-width: none; margin: 0 0 0 auto; padding: 0;
  border: 0; display: flex; align-items: center; gap: 16px;
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink3);
  text-transform: none;
}
.footer-x, .x-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg2); color: var(--ink);
  font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: none;
}
.footer-x:hover, .x-btn:hover { border-color: var(--brand); color: var(--brandInk); }
.footer-bar .footer-x { height: 28px; font-size: 11px; }
.footer-bar-gap { flex: 1; }
.brief-archive { list-style: none; margin: 28px 0 0; padding: 0; }
.brief-archive li { padding: 16px 0; border-bottom: 1px solid var(--line2); }
.brief-archive a { display: inline-block; font-family: Archivo, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brief-archive a:hover { color: var(--brandInk); }
.brief-archive .mono { display: block; margin-bottom: 6px; color: var(--ink2); font-size: 12px; letter-spacing: 0.04em; }
.brief-archive p { margin: 8px 0 0; color: var(--ink2); line-height: 1.5; }
@media (max-width: 640px) {
  .close-band .footer-bar { flex-wrap: wrap; row-gap: 8px; }
  .footer-bar-gap { display: none; }
}

/* HTML class aliases from the live template port */
.desk-band { padding-top: 56px; padding-bottom: 8px; }
.desk-kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3);
}
.desk-all {
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brandInk);
}
.sound-toggle {
  position: absolute; right: 12px; bottom: 12px; height: 34px; padding: 0 14px;
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(6px);
  border: 1px solid #C9DCF3; border-radius: 999px; cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #0A1628;
}
.sound-toggle:hover { border-color: #0066FF; color: #0057DB; }
.sound-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: #C9DCF3; display: block; }
.sound-toggle[aria-pressed="true"] .dot { background: #00A8D8; }
.video-copy .video-eyebrow, .band-copy .rule {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.video-copy .video-eyebrow i, .band-copy .rule i { width: 26px; height: 2px; background: #00A8D8; display: block; }
.video-copy .video-eyebrow span, .band-copy .rule span {
  font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #0057DB;
}
.video-copy h2 {
  margin: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 38px;
  line-height: 1.05; letter-spacing: -0.035em; color: #0A1628; text-wrap: balance;
}
.video-copy p { margin: 16px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink2); max-width: 46ch; }
.video-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-pill.primary, .band-ctas .primary-pill {
  height: 42px; display: flex; align-items: center; padding: 0 22px;
  background: #0066FF; color: #fff !important; border-radius: 999px;
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 14.5px;
}
.btn-pill.primary:hover, .band-ctas .primary-pill:hover { background: #0A1628; }
.btn-pill.ghost, .band-ctas .ghost-pill {
  height: 42px; display: flex; align-items: center; padding: 0 20px;
  border: 1px solid #C9DCF3; border-radius: 999px;
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 14.5px; color: #0A1628;
}
.btn-pill.ghost:hover, .band-ctas .ghost-pill:hover { border-color: #0066FF; color: #0057DB; }
.hang-inner { direction: ltr; }
.site-footer { margin-top: 72px; }
.footer-wordmark { display: flex; align-items: center; gap: 2px; margin-bottom: 14px; }
.footer-wordmark img { width: 54px; height: 54px; object-fit: contain; margin-bottom: -6px; }
.footer-wordmark span { font-family: Archivo, sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -0.035em; color: var(--ink); }
.footer-wordmark .ai { color: var(--brand); }
.footer-brand p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink2); max-width: 32ch; }
.footer-col-head {
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin: 0 0 14px;
}
.footer-col { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.close-band .footer-grid > .footer-col:nth-child(2) { flex: 1; justify-content: space-evenly; }
.close-band .footer-grid > .footer-col:nth-child(3) { flex: 0 0 auto; margin-left: 8px; }
.product-art[style*="background-image"] { background-size: cover; background-position: center; }

/* Hide home right-rail cards before they squash the feed / lead */
@media (max-width: 1200px) {
  .bit-brief,
  .news-rail {
    display: none !important;
  }
  .hero-lead-inner,
  .layout-news {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "feed";
  }
}

@media (max-width: 1100px) {
  .hero-lead-inner, .bench-charts, .guide-grid, .merch-grid, .account-layout, .admin-form-grid, .admin-host-cols, .admin-trash-card, .layout-news,
  .desk-grid, .video-band-inner, .article-layout, .featured-grid, .article-grid, .lead-split {
    grid-template-columns: 1fr;
  }
  .close-band .close-inner { grid-template-columns: 1fr; }
  .close-media, .close-band .band-copy, .close-band footer { grid-column: 1 / -1; }
  #page-news[hidden] ~ .close-band .close-inner { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .update-row { grid-template-columns: 70px 1fr; }
  .update-row span:nth-child(3), .update-row span:nth-child(4) { display: none; }
  .bench-charts { grid-template-columns: 1fr; }
  .hero-with-mascot { flex-wrap: wrap; }
  .cart-ph { margin-left: 0; }
  #page-reference .wrap { padding-left: 16px; padding-right: 16px; }
  #page-reference .page-pad { padding: 24px 16px 64px; }
  .page-search { min-width: 0; width: 100%; }
  .ref-table { font-size: 14px; display: block; overflow-x: auto; }
  .ref-pop { width: min(720px, calc(100vw - 20px)); padding: 18px 18px 24px; }
  .ref-pop h2 { font-size: 26px; }
  .hero-lead-main .lead-title, .hero-lead-main h1 { font-size: 32px; }
  .feed-row, .stories article, .story { grid-template-columns: 1fr; }
  .feed-thumb { display: none; }
}
@media (max-width: 1100px) {
  .admin-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ref-grid { grid-template-columns: 1fr; }
  .admin-article-grid { grid-template-columns: 1fr; }
}

/* BA-48 Microsoft OAuth */
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--ink3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
a.oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--ink);
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
a.oauth:hover { border-color: var(--brand); color: var(--brandInk); }
a.oauth.microsoft,
a.oauth.google { margin-top: 0; gap: 10px; }
.auth-card a.oauth + a.oauth { margin-top: 10px; }

body.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.auth-page header.chrome { flex-shrink: 0; }
.legal-doc {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 48px 32px 80px;
}
.legal-doc h1 { font-size: 42px; margin: 0 0 12px; }
.legal-doc .dek { margin: 0 0 36px; color: var(--ink2); font-size: 17px; line-height: 1.45; }
.legal-doc h2 {
  font-family: Archivo, sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
}
.legal-doc p, .legal-doc li { color: var(--ink2); font-size: 15.5px; line-height: 1.55; }
.legal-doc ul { padding-left: 1.2em; margin: 0 0 8px; }
.legal-doc li { margin: 0 0 8px; }
.legal-doc code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
}
.legal-agree { margin-top: 18px !important; line-height: 1.45; }
.auth-foot a { color: inherit; }
.auth-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 20px 64px;
  isolation: isolate;
}
.auth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tex);
  background-size: var(--texSize);
  background-repeat: var(--texRep);
  background-position: center;
  mix-blend-mode: var(--texBlend);
  opacity: calc(var(--texOp) * 0.35);
  pointer-events: none;
  z-index: 0;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
}
.auth-card-head { text-align: center; }
.auth-card-head img { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 8px; display: block; }
.auth-card-head .eyebrow { margin-bottom: 10px; }
.auth-card h1 { font-size: 32px; letter-spacing: -0.035em; text-align: center; }
.auth-card .dek {
  margin: 10px auto 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink2);
  max-width: 36ch;
  text-align: center;
}
.auth-card .flash { margin: 16px 0 0; text-align: center; }
.auth-card .oauth { margin-top: 22px; }
.auth-card .primary { width: 100%; margin-top: 22px; }
.auth-card .alt { text-align: center; }
.auth-card .forgot { text-align: right; margin: 8px 0 0; font-size: 13px; }
.auth-card .forgot a { color: var(--ink2); }
.auth-card .forgot a:hover { color: var(--brandInk); }
.field-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--ink3); }
.auth-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  text-align: center;
}
@media (max-width: 640px) {
  .auth-stage { padding: 28px 16px 40px; align-items: flex-start; }
  .auth-card { padding: 28px 20px 24px; }
  .auth-card h1 { font-size: 28px; }
}


/* Responsive chrome — progressive desktop + real mobile drawer */
/* ≤1400: drop mascot early to free chrome width */
@media (max-width: 1400px) {
  .wordmark img { display: none; }
  .chrome-inner, .chrome-panel, .chrome-panel-primary { gap: 14px; }
  nav.main { gap: 18px; }
}

/* ≤1280: tighten; hide search + secondary ticker before controls collide */
@media (max-width: 1280px) {
  .wrap { padding: 0 24px; }
  .chrome-inner, .chrome-panel, .chrome-panel-primary { gap: 12px; }
  nav.main { gap: 14px; }
  .tick-tag { display: none; }
  .ticker-inner { gap: 14px; }
  .ticker-pro { padding: 0 14px; }
  .tick-meta { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }
}

/* Mid desktop: further tighten gaps */
@media (max-width: 1240px) {
  .chrome-inner, .chrome-panel, .chrome-panel-primary { gap: 10px; }
  nav.main { gap: 12px; }
}

/*
 * Hamburger / drawer by 1200px — full inline nav + Sign in + mode + Get Pro
 * must not overlap. Mascot hidden whenever hamburger is active.
 */
@media (max-width: 1200px) {
  .wrap { padding: 0 16px; }
  .chrome-inner {
    height: 48px;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .wordmark img { display: none; }
  .wordmark span { font-size: 22px; }
  .nav-toggle { display: inline-flex; }
  .chrome-panel {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 40;
    width: min(320px, 88vw);
    max-width: 100vw;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 72px 20px 28px;
    background: var(--bg);
    border-left: 1px solid var(--line);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.28);
    transform: translateX(110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.22s ease, visibility 0.22s ease;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Keep closed off-canvas panel out of scrollWidth calculations */
    contain: layout paint;
  }
  .chrome-panel-primary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    gap: 0;
    min-width: 0;
    width: 100%;
  }
  body.nav-open .chrome-panel {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .chrome-spacer { display: none; }
  nav.main {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  nav.main a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line2);
    font-size: 16px;
  }
  nav.main a.on {
    border-bottom-color: var(--line2);
    box-shadow: inset 3px 0 0 var(--brand);
    padding-left: 10px;
  }
  /* account / sign-out / mode / edit live in .ticker-actions, not the drawer */
  .ticker-inner { gap: 10px; min-height: 44px; }
  .ticker-actions .icon-btn { width: 32px; height: 32px; }
  .ticker-actions .pill:not(.icon-btn) { height: 32px; padding: 0 10px; font-size: 10px; }
  .tick-tag { display: none; }
  .ticker-pro { height: 26px; padding: 0 12px; font-size: 12px; }
  .ticker-account { max-width: 14ch; }
  .topics-bar-inner { height: 46px; gap: 6px; }
  .topics-bar-label { display: none; }
  .topics-live { display: none; }
  .topics-bar-all { flex-shrink: 0; }
  .tick-bin { letter-spacing: 0.1em; }
  .pro-cta { padding: 0 14px; height: 36px; font-size: 13.5px; }
  .pill { height: 36px; padding: 0 12px; }
}

/* Content overflow: collapse wide layouts before they force page scroll */
@media (max-width: 1100px) {
  .hero-lead-inner { padding: 28px 0 32px; gap: 24px; }
  .page-search { min-width: 0; width: 100%; max-width: 100%; }
  .bench-charts { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .update-row { grid-template-columns: 70px minmax(0, 1fr); }
  .agent-tldr::before { height: auto; bottom: 0; }
}

@media (max-width: 800px) {
  .usage-grid { grid-template-columns: 1fr; }
  .stat-grid.usage-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .wrap { padding: 0 14px; max-width: 100%; }
  .hero-lead-inner { padding: 24px 0 28px; }
  .hero-lead-main .lead-title, .hero-lead-main h1 { font-size: 30px; }
  .desk, .video-band-inner, .close-inner, .footer-grid, .footer-bottom,
  .articles-hero-row, .featured-grid, .article-layout {
    padding-left: 14px; padding-right: 14px;
  }
  .close-band .footer-grid { gap: 8px 16px; padding-top: 10px; padding-bottom: 0; }
  .lead-split { --lead-image-height: 160px; }
  .band-ctas { gap: 10px; }
  .topics-bar-inner { max-width: 100%; }
  .ticker-inner { gap: 10px; overflow: hidden; }
  .tick-health { overflow: hidden; text-overflow: ellipsis; }
  .feed-title, .stories h3, .story h3, .stories h3 a, .story h3 a { font-size: 18px; }
  .feed-pager-nav { margin-left: 0; }
  .card { max-width: 100%; }
  .auth-card { max-width: 100%; }
}

@media (max-width: 420px) {
  .wordmark span { font-size: 18px; }
  .pro-cta { padding: 0 12px; font-size: 12.5px; }
  .ticker-actions .icon-btn { width: 30px; height: 30px; }
  .tick-bin { font-size: 9px; letter-spacing: 0.06em; }
  .hero-lead-main .lead-title, .hero-lead-main h1 { font-size: 26px; }
}

/* Referral-link disclosure (rel="sponsored"). Plain, muted, one line. */
.affiliate-note { margin-left: 0.45em; font-size: 0.85em; color: var(--ink3); }
p.affiliate-note { display: block; margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; }

/* Homepage H1: descriptive site heading, set small above the lead story. */
.hero-lead-main .home-h1 {
  margin: 0 0 14px; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600;
  line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink2);
}

/* 404 page */
.not-found-mascot { display: block; width: 78px; height: auto; margin: 0 0 12px -6px; }
