/* Active research page layout, figures, matrices, reasoning tabs, and metric popovers */
summary::-webkit-details-marker{display:none;}
.experiment-heading h3 small{font:400 12px var(--font);margin-left:10px;color:var(--muted);}
@media print{.finding-explanation>p{display:block;}}

.study-prose{margin:12px 0 22px;max-width:none;width:100%;}
.study-prose p{margin:0;color:color-mix(in srgb,var(--text) 92%,var(--bg));font:400 clamp(16px,1.15vw,17px)/1.64 var(--font);max-width:none;}
.study-prose p + p{margin-top:.9em;}
.experiment-heading .study-prose p strong{font-weight:700;color:var(--text);margin-right:0;}
.study-prose ul{margin:.85em 0 0;padding-left:1.25em;max-width:none;color:var(--text);font:400 clamp(16px,1.15vw,17px)/1.62 var(--font);}
.study-prose li + li{margin-top:.55em;}
.study-prose li strong{font-weight:700;color:var(--text);margin-right:0;}
.study-prose code,.blog-tldr code{font:500 .83em/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;padding:1px 5px;border-radius:4px;background:color-mix(in srgb,var(--text) 8%,transparent);color:var(--text);}
.finding-story{margin:4px 0 14px;padding:0;}
.finding-story p{margin:0;color:var(--muted);font:400 16.5px/1.58 var(--editorial);}
.finding-story p + p{margin-top:.72em;}
.finding-story strong{color:var(--text);font-weight:700;}
.traces-page-title{margin:0 0 10px;font:400 clamp(32px,3.6vw,44px)/1.15 var(--editorial);letter-spacing:-.02em;color:var(--text);}
.featured-pill{display:inline-flex;align-items:center;min-height:32px;padding:5px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font:500 12.5px/1.3 var(--font);text-decoration:none;transition:border-color .18s,color .18s,background .18s;}
.featured-pill:hover{color:var(--text);border-color:var(--scene-blue);}
.featured-pill[aria-current="true"]{color:var(--scene-ink);border-color:var(--scene-blue);background:color-mix(in srgb,var(--scene-blue) 14%,var(--bg));}

@media(max-width:900px){.findings-primary .life-halves{grid-template-columns:minmax(0,1fr);}}

.finding-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.finding-foot .model-logo {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
}
:root[data-theme="dark"] .model-logo-mono {
  filter: invert(1) brightness(1.08);
}
.failure-modes-index {
  margin: 22px 0 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.fm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.fm-card {
  display: flex;
  flex-direction: column;
  padding: 14px 15px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-top: 2.5px solid var(--misalignment-ink, #c93b52);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 62%, var(--surface));
  scroll-margin-top: 96px;
}
.fm-card.fm-env {
  border-top-color: #087781;
}
:root[data-theme="dark"] .fm-card.fm-env {
  border-top-color: #83d4db;
}
.fm-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.fm-card-head h4 {
  margin: 0;
  font: 700 15.5px/1.3 var(--font);
  color: var(--text);
}
.fm-tag {
  font: 600 10px/1.2 var(--font);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--misalignment-ink, #c93b52);
  white-space: nowrap;
}
.fm-card.fm-env .fm-tag { color: #087781; }
:root[data-theme="dark"] .fm-tag { color: #f0a0ae; }
:root[data-theme="dark"] .fm-card.fm-env .fm-tag { color: #83d4db; }
.fm-scene {
  margin: 0 0 10px;
  padding: 6px 4px 4px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 82%, var(--surface));
}
.fm-scene svg {
  display: block;
  width: 100%;
  height: auto;
}
.fm-card p {
  margin: 0 0 11px;
  font: 460 13.8px/1.52 var(--font);
  color: color-mix(in srgb, var(--text) 90%, var(--bg));
}
.fm-card code {
  font: 600 .86em/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
}
.fm-card .finding-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  font: 600 12px/1.3 var(--font);
}
.fm-card .finding-foot a {
  color: color-mix(in srgb, var(--text) 86%, var(--bg));
  text-decoration: none;
}
.fm-card .finding-foot a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 1020px) {
  .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fm-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Section 3 & shared matrix accent */
.results-section {
  --results-accent: #087781;
  scroll-margin-top: 84px;
}
:root[data-theme="dark"] .results-section {
  --results-accent: #83d4db;
}
.results-section .life-phase.p3 {
  color: var(--results-accent);
}

.results-matrix-block {
  margin: 8px 0 28px;
}
.results-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 0 0 12px;
}
.results-subhead h3 {
  margin: 0;
  font: 700 clamp(19px, 1.55vw, 22px)/1.25 var(--editorial);
  letter-spacing: -0.012em;
  color: var(--text);
}
.results-subhead small {
  font: 400 13px/1.4 var(--font);
  color: var(--muted);
}
.results-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-card, var(--line));
  border-radius: var(--radius-card, 10px);
  background: var(--surface-card, color-mix(in srgb, var(--bg) 55%, var(--surface)));
}
.results-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font: 400 13px/1.35 var(--font);
}
.results-matrix th,
.results-matrix td {
  padding: 11px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  text-align: center;
  vertical-align: middle;
}
.results-matrix thead th {
  padding: 13px 12px;
  font: 600 11px/1.3 var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-bottom: 1px solid var(--line);
}
.results-matrix thead th.group-task {
  color: color-mix(in srgb, var(--misalignment-ink, #9b3b49) 85%, var(--text));
}
.results-matrix thead th.group-env {
  color: var(--results-accent);
}
.results-matrix thead th:first-child,
.results-matrix tbody th {
  text-align: left;
  padding-left: 20px;
  padding-right: 16px;
  white-space: nowrap;
}
.results-matrix thead th:last-child,
.results-matrix tbody td:last-child {
  padding-left: 14px;
  padding-right: 20px;
}
.results-matrix tbody th a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13.5px/1.25 var(--font);
  color: var(--text);
  text-decoration: none;
}
.results-matrix tbody th a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.results-matrix tbody tr:last-child th,
.results-matrix tbody tr:last-child td {
  border-bottom: 0;
}
.results-matrix tbody tr:hover {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
.results-matrix tbody tr.family-start th,
.results-matrix tbody tr.family-start td {
  border-top: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.dl-hint {
  margin: 8px 0 0;
  text-align: center;
  font: 500 12.5px/1.4 var(--font);
  color: var(--muted);
}
.cell-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 11.5px/1.3 var(--font);
  font-style: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s ease, border-color .12s ease;
}
.cell-pill:hover { transform: translateY(-1px); text-decoration: none; }
.cell-heat {
  background: color-mix(in srgb, #c93b52 calc(10% + var(--heat, 0.5) * 34%), transparent);
  border: 1px solid color-mix(in srgb, #c93b52 calc(24% + var(--heat, 0.5) * 44%), transparent);
  color: color-mix(in srgb, #8c172c calc(55% + var(--heat, 0.5) * 45%), var(--text));
}
:root[data-theme="dark"] .cell-heat {
  background: color-mix(in srgb, #f07b90 calc(10% + var(--heat, 0.5) * 32%), transparent);
  border-color: color-mix(in srgb, #f07b90 calc(24% + var(--heat, 0.5) * 44%), transparent);
  color: #ffd0d8;
}
.cell-both {
  background: color-mix(in srgb, #c93b52 20%, transparent);
  border: 1px solid color-mix(in srgb, #c93b52 48%, transparent);
  color: #a82038;
}
:root[data-theme="dark"] .cell-both {
  background: color-mix(in srgb, #f07b90 22%, transparent);
  border-color: color-mix(in srgb, #f07b90 50%, transparent);
  color: #ffb8c4;
}
.cell-one {
  background: color-mix(in srgb, #d9822b 16%, transparent);
  border: 1px solid color-mix(in srgb, #d9822b 42%, transparent);
  color: #9e5608;
}
:root[data-theme="dark"] .cell-one {
  background: color-mix(in srgb, #efbd72 18%, transparent);
  border-color: color-mix(in srgb, #efbd72 44%, transparent);
  color: #f6cf92;
}
.cell-form {
  background: color-mix(in srgb, #285c8c 16%, transparent);
  border: 1px solid color-mix(in srgb, #285c8c 42%, transparent);
  color: #1f4f7d;
}
:root[data-theme="dark"] .cell-form {
  background: color-mix(in srgb, #94c5f5 18%, transparent);
  border-color: color-mix(in srgb, #94c5f5 44%, transparent);
  color: #b7dafc;
}
.cell-held {
  background: color-mix(in srgb, #1a8754 16%, transparent);
  border: 1px solid color-mix(in srgb, #1a8754 42%, transparent);
  color: #146c43;
}
:root[data-theme="dark"] .cell-held {
  background: color-mix(in srgb, #74d99f 16%, transparent);
  border-color: color-mix(in srgb, #74d99f 42%, transparent);
  color: #98e6b8;
}
.cell-scale {
  background: color-mix(in srgb, #c97a16 17%, transparent);
  border: 1px solid color-mix(in srgb, #c97a16 46%, transparent);
  color: #8f4e04;
}
:root[data-theme="dark"] .cell-scale {
  background: color-mix(in srgb, #f2b966 18%, transparent);
  border-color: color-mix(in srgb, #f2b966 46%, transparent);
  color: #f8cf8d;
}
.cell-total {
  font: 600 12px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  white-space: nowrap;
}
.results-matrix tfoot th,
.results-matrix tfoot td {
  border-top: 1.5px solid var(--line);
  border-bottom: 0;
  background: color-mix(in srgb, var(--text) 3.5%, var(--bg));
  font: 600 11.5px/1.35 var(--font);
  color: var(--text);
  padding: 12px 12px;
}
.results-matrix tfoot th {
  text-align: left;
  padding-left: 20px;
  padding-right: 16px;
}
.results-matrix tfoot td:last-child {
  padding-left: 14px;
  padding-right: 20px;
}
.results-matrix tfoot small {
  display: block;
  font: 400 10.5px/1.25 var(--font);
  color: var(--muted);
}
.cell-none {
  color: color-mix(in srgb, var(--muted) 55%, transparent);
  font: 400 12px/1 var(--font);
}
.results-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 4px 0 11px;
  font: 400 12.5px/1.4 var(--font);
  color: var(--muted);
}
.results-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.results-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 28px;
}
.results-figure {
  margin: 0;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}
.results-figure-title {
  margin: 0 0 3px;
  font: 600 16px/1.3 var(--font);
  color: var(--text);
}
.results-figure-sub {
  margin: 0 0 10px;
  font: 400 12.5px/1.4 var(--font);
  color: var(--muted);
}
.results-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.results-figure figcaption {
  margin-top: 10px;
  font: 400 12.5px/1.48 var(--font);
  color: var(--muted);
}
.results-figure figcaption strong {
  color: var(--text);
  font-weight: 600;
}
.chart-axis { stroke: color-mix(in srgb, var(--text) 24%, transparent); stroke-width: 1; }
.chart-grid { stroke: color-mix(in srgb, var(--text) 10%, transparent); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-label { font: 500 12px/1 var(--font); fill: color-mix(in srgb, var(--text) 72%, var(--bg)); }
.chart-model { font: 600 12.5px/1 var(--font); fill: var(--text); }
.chart-val { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; fill: var(--text); }
.chart-bar-high { fill: #c93b52; }
.chart-bar-mid { fill: #c97a16; }
.chart-bar-low { fill: #1a8754; }
.chart-line-cap { fill: none; stroke: #c93b52; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-all { fill: none; stroke: #285c8c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-grad { fill: none; stroke: #c97a16; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-solo { fill: none; stroke: #1a8754; stroke-width: 2; stroke-dasharray: 5 4; }
:root[data-theme="dark"] .chart-bar-high { fill: #f07b90; }
:root[data-theme="dark"] .chart-bar-mid { fill: #f2b966; }
:root[data-theme="dark"] .chart-bar-low { fill: #74d99f; }
:root[data-theme="dark"] .chart-line-cap { stroke: #f07b90; }
:root[data-theme="dark"] .chart-line-all { stroke: #94c5f5; }
:root[data-theme="dark"] .chart-line-grad { stroke: #f2b966; }
:root[data-theme="dark"] .chart-line-solo { stroke: #74d99f; }
@media (max-width: 900px) {
  .results-figures { grid-template-columns: minmax(0, 1fr); }
}

.blog-tldr a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px;
}
.blog-tldr a:hover {
  text-decoration-color: currentColor;
}

/* Full-width TL;DR + two-column SwarmForm / SwarmHarm settings overview */
.hero .hero-layout {
  padding-block: 14px 8px;
}
#motivation.overview {
  padding-top: 8px;
}
#panel-swarmform {
  padding-top: 6px;
}
.hero-copy .emergence-title {
  width: min(100%, 540px);
  aspect-ratio: 470 / 87;
  margin: 0 auto;
  transform: none;
}
sup.cite {
  font: 600 10.5px/1 var(--font);
  margin-left: 1px;
  vertical-align: super;
}
sup.cite a {
  color: var(--scene-blue, #285c8c);
  text-decoration: none;
}
:root[data-theme="dark"] sup.cite a { color: #94c5f5; }
sup.cite a:hover { text-decoration: underline; }
.blog-references li:target {
  background: color-mix(in srgb, var(--scene-blue, #285c8c) 14%, transparent);
  border-radius: 4px;
  padding: 2px 6px;
}
@media (max-width: 760px) {
  .hero .hero-layout { padding-block: 10px 6px; }
  .hero-copy .emergence-title { width: min(100%, 400px); margin: 0 auto; }
}
.blog-tldr {
  width: 100%;
  max-width: none;
  margin: 14px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3.5px solid var(--scene-blue, #285c8c);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 64%, var(--bg));
  text-align: left;
}
.blog-tldr-label {
  display: inline-block;
  margin: 0 8px 0 0;
  padding: 2px 7px;
  border-radius: 4px;
  font: 700 11px/1.3 var(--font);
  letter-spacing: .07em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--scene-blue, #285c8c) 14%, transparent);
  color: var(--scene-blue, #285c8c);
  vertical-align: 1px;
}
:root[data-theme="dark"] .blog-tldr-label {
  background: color-mix(in srgb, #94c5f5 16%, transparent);
  color: #94c5f5;
}
.blog-tldr p {
  margin: 0;
  font: 480 clamp(15px, 1.1vw, 16.2px)/1.62 var(--font);
  color: var(--text);
}
.tldr-rqs {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font: 470 clamp(14.5px, 1.05vw, 15.6px)/1.56 var(--font);
  color: var(--text);
}
.tldr-rqs li::marker {
  font: 700 14.5px/1 var(--font);
  color: var(--rq1-accent);
}
.tldr-rqs li:nth-child(1)::marker,
.tldr-rqs li:nth-child(1) > strong,
.tldr-rqs li:nth-child(1) > strong a { color: var(--rq1-accent); }
.tldr-rqs li:nth-child(2)::marker,
.tldr-rqs li:nth-child(2) > strong,
.tldr-rqs li:nth-child(2) > strong a { color: var(--rq2-accent); }
.tldr-rqs li:nth-child(3)::marker,
.tldr-rqs li:nth-child(3) > strong,
.tldr-rqs li:nth-child(3) > strong a { color: var(--rq3-accent); }
.tldr-rqs li > strong a { text-decoration: none; }
.tldr-rqs li > strong a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tldr-rqs strong { font-weight: 700; color: var(--text); }
.tldr-rqs code {
  font: 600 .86em/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
}
.tldr-summary {
  margin: 11px 0 0 !important;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  font: 480 clamp(14.5px, 1.05vw, 15.6px)/1.58 var(--font) !important;
  color: var(--text) !important;
}
.blog-prose {
  margin: 0 0 24px;
  max-width: none;
  width: 100%;
}
.blog-prose p {
  margin: 0;
  max-width: none;
  font: 480 clamp(15.5px, 1.12vw, 16.5px)/1.65 var(--font);
  color: var(--text);
}
.blog-prose p + p {
  margin-top: 0.9em;
}
.blog-prose strong {
  font-weight: 700;
  color: var(--text);
}
.blog-prose code {
  font: 600 .85em/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
}
.blog-prose h3 {
  margin: 0 0 10px;
  font: 700 clamp(20px, 1.65vw, 23px)/1.25 var(--editorial);
  letter-spacing: -0.012em;
  color: var(--text);
}
.rq-block {
  margin: 28px 0 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.rq-block:first-of-type {
  margin-top: 18px;
  padding-top: 20px;
}
.rq-heading {
  margin: 0 0 12px;
  font: 700 clamp(21px, 1.75vw, 25px)/1.25 var(--editorial);
  letter-spacing: -0.014em;
  color: var(--text);
}
.results-figure-solo {
  max-width: 780px;
  margin: 22px auto 26px;
}
.prose-figure-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 24px 32px;
  align-items: stretch;
  margin: 14px 0 28px;
}
.prose-figure-split.split-fig-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}
.prose-figure-split .blog-prose {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.prose-figure-split .results-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.prose-figure-split .results-figure svg {
  margin: auto 0;
}
.wb-lead-p {
  margin: 0;
  font: 460 15px/1.62 var(--font);
  color: var(--text);
}
.wb-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--border-card) 85%, transparent);
}
.wb-mini-stats div {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-inset);
  border: 1px solid color-mix(in srgb, var(--border-card) 75%, transparent);
}
.wb-mini-stats dt {
  font: 500 11px/1.25 var(--font);
  color: var(--muted);
  margin-bottom: 3px;
}
.wb-mini-stats dd {
  margin: 0;
  font: 700 13.5px/1.25 var(--font);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.wb-mini-stats dd small {
  font: 500 11px/1.2 var(--font);
  color: var(--muted);
}
@media (max-width: 560px) {
  .wb-mini-stats { grid-template-columns: 1fr; }
}
.section-bridge {
  margin: 24px 0 14px;
  font: 480 clamp(15.5px, 1.12vw, 16.5px)/1.65 var(--font);
  color: var(--text);
}
.section-bridge strong { font-weight: 700; color: var(--text); }
.section-bridge code {
  font: 600 .85em/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: var(--text);
}
@media (max-width: 900px) {
  .prose-figure-split,
  .prose-figure-split.split-fig-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .prose-figure-split.split-fig-left .blog-prose { order: -1; }
}
.blog-tldr strong {
  font-weight: 700;
  color: var(--text);
}
.blog-tldr .tldr-hl {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--scene-red, #c93b52) 65%, transparent);
  text-underline-offset: 3px;
}
.blog-tldr .tldr-hl-blue {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--scene-blue, #285c8c) 65%, transparent);
  text-underline-offset: 3px;
}
.blog-tldr .tldr-hl-teal {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--rq3-accent, #248a7a) 68%, transparent);
  text-underline-offset: 3px;
}
.settings-chain-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font: 700 18px/1 var(--font);
  user-select: none;
}
.settings-chain-arrow .arrow-down { display: none; }
.detection-hero-wrap {
  margin-top: 14px;
  padding: 14px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 62%, var(--surface));
  text-align: left;
}
.detection-hero-lead {
  margin: 0 0 10px;
  font: 480 14px/1.5 var(--font);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
}
.detection-hero-lead strong {
  color: var(--text);
  font-weight: 700;
}
.detection-hero-wrap #dl-loop {
  margin-block: 4px;
}
.detection-hero-wrap .dl-hint {
  margin: 6px 0 0;
}
.findings-primary .finding {
  grid-row: span 3;
  padding: 14px 16px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-top: 2px solid var(--finding-ink, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}
.findings-primary .phase-findings {
  gap: 14px 18px;
  margin-top: 16px;
}
.findings-primary .finding-heading {
  margin: 0 0 8px;
}
.findings-primary .finding-story {
  margin: 0 0 12px;
}
.findings-primary .finding-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
@media (max-width: 960px) {
  .settings-chain-arrow { height: 22px; }
  .settings-chain-arrow .arrow-right { display: none; }
  .settings-chain-arrow .arrow-down { display: inline; }
}
.setting-card {
  display: flex;
  flex-direction: column;
  padding: 13px 16px 12px;
  border: 1px solid var(--line);
  border-top: 2.5px solid var(--scene-blue, #285c8c);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}
.setting-card-harm {
  border-top-color: var(--scene-red, #c93b52);
}
.setting-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.setting-card-eyebrow {
  font: 650 10.5px/1.2 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--scene-blue, #285c8c);
}
.setting-card-harm .setting-card-eyebrow {
  color: var(--scene-red, #c93b52);
}
:root[data-theme="dark"] .setting-card-eyebrow { color: #94c5f5; }
:root[data-theme="dark"] .setting-card-harm .setting-card-eyebrow { color: #f0a0ae; }
.setting-card h2 {
  margin: 0;
  font: 400 20px/1.15 var(--editorial);
  color: var(--text);
}
.setting-card-summary {
  margin: 8px 0 0;
  font: 480 13.5px/1.48 var(--font);
  color: color-mix(in srgb, var(--text) 84%, var(--bg));
}
.setting-card-summary strong {
  color: var(--text);
  font-weight: 600;
}
.setting-flow {
  margin: 0;
  padding: 6px 4px 4px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 78%, var(--surface));
}
.setting-flow svg {
  display: block;
  width: 100%;
  height: auto;
}
.flow-curve {
  fill: none;
  stroke: color-mix(in srgb, var(--scene-blue, #285c8c) 62%, var(--muted));
  stroke-width: 1.7;
  stroke-linecap: round;
}
.setting-card-harm .flow-curve {
  stroke: color-mix(in srgb, var(--scene-red, #c93b52) 62%, var(--muted));
}
.flow-link {
  fill: none;
  stroke: color-mix(in srgb, var(--scene-blue, #285c8c) 55%, var(--muted));
  stroke-width: 1.4;
  stroke-linecap: round;
}
.setting-card-harm .flow-link {
  stroke: color-mix(in srgb, var(--scene-red, #c93b52) 55%, var(--muted));
}
.flow-stage {
  fill: color-mix(in srgb, var(--text) 3%, var(--bg));
  stroke: color-mix(in srgb, var(--text) 14%, transparent);
  stroke-width: 1;
}
.flow-box-dashed {
  fill: none;
  stroke: color-mix(in srgb, var(--muted) 55%, transparent);
  stroke-dasharray: 3.5 3;
  stroke-width: 1.1;
}
.flow-paper {
  fill: var(--bg);
  stroke: color-mix(in srgb, var(--scene-blue, #285c8c) 70%, transparent);
  stroke-width: 1.3;
}
.setting-card-harm .flow-paper {
  stroke: color-mix(in srgb, var(--scene-red, #c93b52) 70%, transparent);
}
.flow-risk {
  fill: color-mix(in srgb, var(--scene-red, #c93b52) 18%, var(--bg));
  stroke: color-mix(in srgb, var(--scene-red, #c93b52) 70%, transparent);
  stroke-width: 1.2;
}
.flow-risk-text {
  font: 600 9.5px/1 var(--font);
  fill: var(--scene-red, #c93b52);
}
:root[data-theme="dark"] .flow-risk-text { fill: #ffb8c4; }
.flow-hub {
  fill: color-mix(in srgb, var(--surface) 88%, var(--bg));
  stroke: color-mix(in srgb, #f59e0b 62%, var(--line));
  stroke-width: 1.2;
}
.flow-hub-bar {
  fill: color-mix(in srgb, #f59e0b 20%, var(--bg));
}
.flow-hub-tag {
  font: 700 7.6px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  fill: #d97706;
}
:root[data-theme="dark"] .flow-hub-tag { fill: #fcd34d; }
.flow-hub-row {
  font: 500 7.3px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  fill: var(--muted);
}
.flow-hub-row-bad {
  font: 600 7.3px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  fill: var(--scene-red, #c93b52);
}
:root[data-theme="dark"] .flow-hub-row-bad { fill: #fda4af; }
.flow-safe {
  fill: color-mix(in srgb, #1a8754 16%, var(--bg));
  stroke: color-mix(in srgb, #1a8754 62%, transparent);
  stroke-width: 1.1;
}
.flow-safe-text {
  font: 600 8.8px/1 var(--font);
  fill: #13653f;
}
:root[data-theme="dark"] .flow-safe-text { fill: #86efac; }
.flow-pill-blue {
  fill: color-mix(in srgb, var(--scene-blue, #285c8c) 16%, var(--bg));
  stroke: color-mix(in srgb, var(--scene-blue, #285c8c) 62%, transparent);
  stroke-width: 1.1;
}
.flow-pill-blue-text {
  font: 600 8.6px/1 var(--font);
  fill: var(--scene-blue, #285c8c);
}
:root[data-theme="dark"] .flow-pill-blue-text { fill: #93c5fd; }
.flow-title {
  font: 600 11px/1 var(--font);
  fill: var(--text);
}
.flow-sub {
  font: 400 9.8px/1 var(--font);
  fill: var(--muted);
}

.failure-modes-intro {
  grid-column: 1 / -1;
  margin: 0 0 -8px;
}
.failure-modes-intro h3 {
  margin: 0 0 8px;
  font: 700 clamp(20px, 1.65vw, 23px)/1.25 var(--editorial);
  letter-spacing: -0.012em;
  color: var(--text);
}
.failure-modes-intro p {
  margin: 0;
  max-width: none;
  font: 480 clamp(15.5px, 1.12vw, 16.5px)/1.62 var(--font);
  color: var(--text);
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
}
.reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--formation-ink, #285c8c), var(--results-accent, #2f6c8a), var(--misalignment-ink, #c93b52));
}

/* Interactive matrix controls */
.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 12px 0 10px;
}
.matrix-control-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.matrix-control-label {
  font: 600 11.5px/1.2 var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.matrix-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 100%;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 3.5%, var(--bg));
}
.matrix-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 12px/1.2 var(--font);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background .14s ease, color .14s ease;
}
.matrix-seg button:hover {
  color: var(--text);
}
.matrix-seg button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.results-figure rect {
  transition: width .24s ease;
}

/* Worked Case Study: Anatomy of Scale-Induced Norm Contagion */
.case-study-box {
  margin: 28px 0 30px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--misalignment-ink, #c93b52) 4%, var(--bg));
}
.case-study-head {
  margin-bottom: 16px;
}
.case-study-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font: 600 11px/1.2 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--misalignment-ink, #a82038);
}
.case-study-head h3 {
  margin: 0 0 6px;
  font: 700 clamp(20px, 1.65vw, 23px)/1.25 var(--editorial);
  letter-spacing: -0.012em;
  color: var(--text);
}
.case-study-head p {
  margin: 0;
  font: 400 15.5px/1.58 var(--editorial);
  color: color-mix(in srgb, var(--text) 86%, var(--bg));
}
.cot-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.cot-step {
  display: flex;
  flex-direction: column;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 72%, var(--surface));
}
.cot-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font: 600 11px/1.2 var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cot-step-hold .cot-step-tag { color: #146c43; }
:root[data-theme="dark"] .cot-step-hold .cot-step-tag { color: #98e6b8; }
.cot-step-shift .cot-step-tag { color: #8f4e04; }
:root[data-theme="dark"] .cot-step-shift .cot-step-tag { color: #f8cf8d; }
.cot-step-break .cot-step-tag { color: #a82038; }
:root[data-theme="dark"] .cot-step-break .cot-step-tag { color: #ffb8c4; }
.cot-step h4 {
  margin: 0 0 6px;
  font: 600 13.5px/1.3 var(--font);
  color: var(--text);
}
.cot-quote {
  flex: 1 1 auto;
  margin: 0;
  padding: 8px 10px;
  border-left: 2.5px solid color-mix(in srgb, var(--text) 28%, transparent);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border-radius: 0 6px 6px 0;
  font: 440 13.5px/1.55 var(--font);
  font-style: normal;
  color: var(--text);
}
.cot-step p.cot-note {
  margin: 0;
  font: 400 12.5px/1.45 var(--font);
  color: var(--muted);
}
.cot-corroboration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.cot-mini {
  font: 400 13.5px/1.5 var(--editorial);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
}
.cot-mini strong {
  font: 600 12.5px/1.3 var(--font);
  color: var(--text);
}
.evidence-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.evidence-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: 600 12px/1.25 var(--font);
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.evidence-tab .model-logo {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  object-fit: contain;
}
.evidence-tab:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 35%, transparent);
}
.evidence-tab[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
:root[data-theme="dark"] .evidence-tab[aria-selected="true"] .model-logo-openai,
:root[data-theme="dark"] .evidence-tab[aria-selected="true"] .model-logo-mono {
  filter: none;
}
:root[data-theme="light"] .evidence-tab[aria-selected="true"] .model-logo-openai,
:root[data-theme="light"] .evidence-tab[aria-selected="true"] .model-logo-mono {
  filter: invert(1);
}
.model-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  vertical-align: baseline;
}
.model-inline .model-logo {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  object-fit: contain;
  transform: translateY(1px);
}
.evidence-meta .model-inline {
  font-family: var(--font);
  font-size: 12.5px;
  gap: 5px;
}
.results-matrix tbody th > img.model-logo {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 6px;
}
.evidence-panel[hidden] { display: none; }
.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 12px;
  font: 500 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}
.evidence-meta a {
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.evidence-rule {
  margin: -4px 0 12px;
  font: 400 13.5px/1.45 var(--font);
  color: color-mix(in srgb, var(--text) 82%, var(--bg));
}
.evidence-rule strong {
  color: var(--text);
  font-weight: 600;
}
.evidence-rule code {
  font: 500 .86em/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 1px 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.verdict-bar {
  margin-top: 12px;
  padding: 9px 12px;
  border-left: 3px solid var(--misalignment-ink, #c93b52);
  border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--misalignment-ink, #c93b52) 7%, var(--bg));
  font: 400 13px/1.48 var(--font);
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
.verdict-bar-safe {
  border-left-color: #1a8754;
  background: color-mix(in srgb, #1a8754 8%, var(--bg));
}
.verdict-bar strong {
  color: var(--text);
  font-weight: 650;
}
.wb-report-hl {
  background: rgba(200, 42, 68, 0.11);
  color: #b42318;
  font-weight: 700;
  padding: 0 3px;
  border-radius: 3px;
  text-decoration: none;
}
:root[data-theme="dark"] .wb-report-hl {
  background: rgba(244, 114, 132, 0.16);
  color: #fda4af;
}

/* 3.2 Whistleblow 229-call Intent & False-Positive Breakdown Bar */
.wb-breakdown-card {
  margin: 0 0 18px;
  padding: 15px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 56%, var(--surface));
}
.wb-breakdown-bar {
  display: flex;
  width: 100%;
  height: 26px;
  border-radius: 7px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 13px;
  font: 650 11.5px/26px var(--font);
  font-variant-numeric: tabular-nums;
}
.wb-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}
.wb-seg-help {
  background: color-mix(in srgb, #6e7f96 38%, var(--surface));
  color: var(--text);
}
.wb-seg-fp {
  background: color-mix(in srgb, #d97a2b 42%, var(--surface));
  color: #ffe3c4;
}
html[data-theme="light"] .wb-seg-fp {
  color: #6b3004;
}
.wb-seg-pool {
  background: color-mix(in srgb, #2fad9d 40%, var(--surface));
  color: #d8faf4;
}
html[data-theme="light"] .wb-seg-pool {
  color: #0e4f47;
}
.wb-seg-peer {
  background: #22c58b;
  color: #073322;
  font-weight: 700;
  min-width: 6px;
}
.wb-breakdown-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  font: 440 12.8px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
}
.wb-breakdown-legend dt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 2px;
}
.wb-breakdown-legend dd {
  margin: 0;
  color: var(--muted);
}
.wb-breakdown-legend dd strong {
  color: var(--text);
  font-weight: 650;
}
.wb-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: 0 0 9px;
  font-style: normal;
}
.wb-dot-help { background: #6e7f96; }
.wb-dot-fp { background: #d97a2b; }
.wb-dot-pool { background: #2fad9d; }
.wb-dot-peer { background: #22c58b; }
@media (max-width: 760px) {
  .wb-breakdown-legend {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Structured Key Setup bullet points inside each section overview */
.study-prose .setup-bullets {
  margin: 0;
  padding-left: 1.25em;
  display: grid;
  gap: 8px;
  font: 440 15.5px/1.6 var(--font);
  color: color-mix(in srgb, var(--text) 90%, var(--bg));
}
.study-prose .setup-bullets li::marker {
  color: var(--muted);
}
.study-prose .setup-bullets strong {
  color: var(--text);
  font-weight: 650;
}

/* 1.1 Real-world benchmark channel parallels & practical implication strip */
.channel-implications {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 56%, var(--surface));
}
.channel-imp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.channel-imp-item {
  padding: 13px 15px 12px;
}
.channel-imp-item + .channel-imp-item {
  border-left: 1px solid var(--line);
}
.channel-imp-item h4 {
  margin: 0 0 5px;
  font: 650 13.5px/1.3 var(--font);
  color: var(--text);
}
.channel-imp-item p {
  margin: 0;
  font: 440 12.8px/1.5 var(--font);
  color: color-mix(in srgb, var(--text) 82%, var(--bg));
}
.channel-imp-item code {
  font: 500 12px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  padding: 1px 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.channel-imp-takeaway {
  margin: 0;
  padding: 11px 15px 12px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--formation-ink, #285c8c);
  background: color-mix(in srgb, var(--formation-ink, #285c8c) 8%, var(--bg));
  font: 440 13.2px/1.52 var(--font);
  color: color-mix(in srgb, var(--text) 90%, var(--bg));
}
.channel-imp-takeaway strong {
  color: var(--text);
  font-weight: 650;
}
.bench-cluster-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--text) 3%, var(--bg));
  font: 500 12.5px/1.35 var(--font);
  color: var(--muted);
}
.bench-cluster-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bench-cluster-stat strong {
  color: var(--text);
  font-weight: 650;
}
.bench-cluster-total {
  margin-left: auto;
  padding-left: 12px;
  border-left: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  color: var(--text);
}
.bench-audit-table {
  width: 100%;
  border-collapse: collapse;
  font: 450 13.5px/1.5 var(--font);
}
.bench-audit-table th,
.bench-audit-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.bench-audit-table thead th {
  padding: 10px 12px;
  font: 600 12.5px/1.25 var(--font);
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-bottom: 1px solid var(--line);
}
.bench-audit-table th:first-child,
.bench-audit-table tbody th {
  padding-left: 16px;
}
.bench-audit-table th:last-child,
.bench-audit-table td:last-child {
  padding-right: 16px;
}
.bench-audit-table tbody tr:hover {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
.bench-audit-table tbody tr.bench-cluster-row,
.bench-audit-table tbody tr.bench-cluster-row:hover {
  background: color-mix(in srgb, var(--text) 5%, var(--bg));
}
.bench-audit-table tbody tr.bench-cluster-row th {
  padding: 8px 16px;
  font: 650 12px/1.35 var(--font);
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: normal;
}
.bench-audit-table tbody tr.bench-cluster-row .sf-ch-dot {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 8px;
}
.bench-audit-table tbody tr:last-child th,
.bench-audit-table tbody tr:last-child td {
  border-bottom: 0;
}
.bench-audit-table tbody th {
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  width: 1%;
}
.bench-audit-table td {
  color: color-mix(in srgb, var(--text) 86%, var(--bg));
}
.bench-audit-table td code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  background: color-mix(in srgb, var(--text) 7%, var(--bg));
}
.bench-audit-table td.bench-ch-cell {
  white-space: nowrap;
  width: 1%;
  line-height: 1.4;
}
.bench-ch-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  margin: 2px 4px 2px 0;
  border-radius: 999px;
  font: 600 11px/1.3 var(--font);
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.bench-ch-pill + .bench-ch-pill {
  margin-left: 0;
}
.bench-ch-pill.is-sock {
  color: #8cc2f7;
  background: color-mix(in srgb, #2d74c4 18%, var(--bg));
  border-color: color-mix(in srgb, #2d74c4 45%, var(--line));
}
.bench-ch-pill.is-files {
  color: #f0c674;
  background: color-mix(in srgb, #d9a13b 18%, var(--bg));
  border-color: color-mix(in srgb, #d9a13b 45%, var(--line));
}
.bench-ch-pill.is-mem {
  color: #7ee0d2;
  background: color-mix(in srgb, #1d8f82 20%, var(--bg));
  border-color: color-mix(in srgb, #1d8f82 48%, var(--line));
}
html[data-theme="light"] .bench-ch-pill.is-sock {
  color: #1c5591;
  background: color-mix(in srgb, #2d74c4 11%, var(--bg));
}
html[data-theme="light"] .bench-ch-pill.is-files {
  color: #8a5d0b;
  background: color-mix(in srgb, #d9a13b 14%, var(--bg));
}
html[data-theme="light"] .bench-ch-pill.is-mem {
  color: #0f685e;
  background: color-mix(in srgb, #1d8f82 12%, var(--bg));
}
.bench-audit-table td.bench-fix {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.bench-audit-table td.bench-pr-cell {
  white-space: nowrap;
}
.bench-audit-table td.bench-pr-cell .bench-pr-link + .bench-pr-link {
  margin-left: 4px;
}
.bench-pr-link,
.bench-src-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--formation-ink, #285c8c) 45%, var(--line));
  background: color-mix(in srgb, var(--formation-ink, #285c8c) 12%, var(--bg));
  color: #8cc2f7;
  font: 600 12px/1.3 var(--font);
  text-decoration: none;
  white-space: nowrap;
}
html[data-theme="light"] .bench-pr-link,
html[data-theme="light"] .bench-src-link {
  color: #1c5591;
}
.bench-pr-link:hover,
.bench-src-link:hover {
  background: color-mix(in srgb, var(--formation-ink, #285c8c) 22%, var(--bg));
}
.bench-audit-note {
  margin: 10px 2px 0;
  font: 450 12.5px/1.55 var(--font);
  color: var(--muted);
}
.bench-pr-merged {
  border-color: color-mix(in srgb, #2e9e64 48%, var(--line));
  background: color-mix(in srgb, #2e9e64 14%, var(--bg));
  color: #7ee3aa;
}
html[data-theme="light"] .bench-pr-merged {
  color: #146c43;
}
@media (max-width: 820px) {
  .bench-cluster-total {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .channel-imp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .channel-imp-item + .channel-imp-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* 1.3 Self-organization comparison cards (Prompted vs Unprompted swarming) */
.sf-settings-list {
  margin: 0 0 18px;
}
.org-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 56%, var(--surface));
}
.org-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 118px;
  margin: 2px 0 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 72%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.org-edge-bi {
  stroke: #5ea5ec;
  stroke-width: 1.8;
  opacity: .85;
}
.org-edge-dir {
  stroke: #8c9db5;
  stroke-width: 1.8;
  opacity: .85;
}
.org-edge-soft {
  stroke: color-mix(in srgb, var(--text) 24%, transparent);
  stroke-width: 1.3;
  stroke-dasharray: 4 3;
}
.org-shared-box {
  fill: color-mix(in srgb, #4a9ae8 16%, var(--bg));
  stroke: color-mix(in srgb, #4a9ae8 55%, var(--line));
  stroke-width: 1.2;
}
.org-shared-lbl {
  fill: var(--text);
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.org-node-flat {
  fill: color-mix(in srgb, #4a9ae8 22%, var(--surface));
  stroke: #5ea5ec;
  stroke-width: 1.6;
}
.org-node-lead {
  fill: color-mix(in srgb, #e0a94f 22%, var(--surface));
  stroke: #e0a94f;
  stroke-width: 1.6;
}
.org-node-sub {
  fill: color-mix(in srgb, var(--text) 10%, var(--surface));
  stroke: color-mix(in srgb, var(--text) 42%, var(--line));
  stroke-width: 1.4;
}
.org-node-txt {
  fill: var(--text);
  font: 650 11px/1 var(--font);
}
@media (max-width: 820px) {
  .org-compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 2.1 Table-like 2x3 Failure Modes Matrix (Eval / Env left header column) */
.fm-matrix {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 56%, var(--surface));
}
.fm-matrix-row {
  display: grid;
  grid-template-columns: 80px repeat(3, minmax(0, 1fr));
}
.fm-matrix-row + .fm-matrix-row {
  border-top: 1px solid var(--line);
}
.fm-row-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  text-align: center;
  font: 700 13px/1.2 var(--font);
  letter-spacing: .02em;
}
.fm-row-label small {
  font: 500 10.5px/1.2 var(--font);
  color: var(--muted);
  letter-spacing: 0;
}
.fm-row-eval .fm-row-label {
  background: color-mix(in srgb, var(--misalignment-ink, #c93b52) 10%, var(--surface));
  color: #f08e9e;
}
html[data-theme="light"] .fm-row-eval .fm-row-label {
  color: #a61d36;
}
.fm-row-env .fm-row-label {
  background: color-mix(in srgb, var(--formation-ink, #285c8c) 12%, var(--surface));
  color: #8cc2f7;
}
html[data-theme="light"] .fm-row-env .fm-row-label {
  color: #1c5591;
}
.fm-cell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 10px 12px 11px;
  min-width: 0;
  container-type: inline-size;
}
.fm-cell + .fm-cell {
  border-left: 1px solid var(--line);
}
.fm-cell h4 {
  margin: 0 0 6px;
  min-height: 1.25em;
  font: 650 14.5px/1.25 var(--font);
  color: var(--text);
}
.fm-cell .fm-scene {
  display: grid;
  align-content: center;
  gap: 5px;
  margin: 0 0 7px;
  padding: 8px 9px;
  color: var(--text);
  font: 500 13px/1.3 var(--font);
}
.fm-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fm-actors {
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: 0 0 46px;
  width: 46px;
  text-align: center;
}
.fm-actors span { font: 550 11px/1.2 var(--font); }
.fm-actors:has(img:nth-of-type(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex-basis: 46px;
  width: 46px;
  gap: 2px;
}
.fm-actors:has(img:nth-of-type(2)) img { width: 100%; }
.fm-actors:has(img:nth-of-type(4)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex-basis: 46px;
  width: 46px;
  gap: 2px;
}
.fm-actors:has(img:nth-of-type(4)) img { width: 100%; }
.fm-actors img { width: 38px; height: auto; }
.fm-box {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 12px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.fm-box > * { display: block; }
.fm-box strong { font-size: 12.5px; }
.fm-box > span + span { margin-top: 1px; }
.fm-box .fm-batch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 6px 0;
}
.fm-batch span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.fm-batch span::before {
  content: "";
  flex: 0 0 9px;
  height: 12px;
  border: 1px solid var(--muted);
  border-radius: 1px;
  background: linear-gradient(var(--muted), var(--muted)) 1px 4px / 5px 1px no-repeat,
              linear-gradient(var(--muted), var(--muted)) 1px 7px / 4px 1px no-repeat;
}
.fm-box-risk {
  background: var(--misalignment-fill);
  border-color: var(--misalignment-line);
  color: var(--rq2-accent);
}
.fm-box-safe { color: var(--rq3-accent); }
.fm-sequence::before {
  content: "↓";
  grid-row: 2;
  justify-self: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.fm-comparison .fm-stage + .fm-stage {
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.fm-cell p {
  margin: 0;
  min-height: 2.8em;
  font: 440 12.5px/1.38 var(--font);
  color: color-mix(in srgb, var(--text) 82%, var(--bg));
  text-wrap: pretty;
}
@container (max-width: 270px) {
  .fm-stage:has(.fm-batch) { flex-direction: column; align-items: stretch; }
  .fm-stage:has(.fm-batch) .fm-actors { flex: none; width: 48px; align-self: center; }
  .fm-actors:has(img:nth-of-type(4)) { flex-basis: 68px; }
}
@media (max-width: 900px) {
  .fm-matrix-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .fm-row-label {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fm-cell + .fm-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 900px) {
  .cot-timeline,
  .cot-corroboration { grid-template-columns: minmax(0, 1fr); }
}

/* Implications & Open Questions + References & BibTeX */
.implications-block {
  margin: 28px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.implications-block h3 {
  margin: 0 0 14px;
  font: 400 23px/1.25 var(--editorial);
  color: var(--text);
}
.implications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}
.implication-card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}
.implication-num {
  display: inline-block;
  margin-bottom: 6px;
  font: 600 11px/1.2 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--results-accent, #2f6c8a);
}
.implication-card h4 {
  margin: 0 0 7px;
  font: 600 14.5px/1.32 var(--font);
  color: var(--text);
}
.implication-card p {
  margin: 0;
  font: 400 14.5px/1.55 var(--editorial);
  color: color-mix(in srgb, var(--text) 86%, var(--bg));
}
@media (max-width: 900px) {
  .implications-grid { grid-template-columns: minmax(0, 1fr); }
}

.blog-references {
  margin: 28px 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.blog-references h3 {
  margin: 0 0 10px;
  font: 700 clamp(19px, 1.55vw, 22px)/1.25 var(--editorial);
  letter-spacing: -0.012em;
  color: var(--text);
}
.blog-references ol {
  margin: 0 0 18px;
  padding-left: 20px;
  font: 460 14px/1.58 var(--font);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
}
.blog-references li + li { margin-top: 5px; }
.blog-references a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}

.citation-block {
  margin: 22px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.citation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.citation-head h3 {
  margin: 0;
  font: 700 clamp(19px, 1.55vw, 22px)/1.25 var(--editorial);
  letter-spacing: -0.012em;
  color: var(--text);
}
.citation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, var(--bg));
  color: var(--text);
  font: 550 12.5px/1.25 var(--font);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cite-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: .82;
}
.cite-btn:hover {
  border-color: color-mix(in srgb, var(--text) 38%, var(--line));
  background: color-mix(in srgb, var(--text) 7%, var(--surface));
}
.cite-btn-zotero {
  border-color: color-mix(in srgb, #cc2936 42%, var(--line));
  background: color-mix(in srgb, #cc2936 8%, var(--surface));
}
.cite-btn-zotero svg {
  color: #e0525e;
  opacity: 1;
}
html[data-theme="light"] .cite-btn-zotero svg {
  color: #b51f2c;
}
.cite-btn-zotero:hover {
  border-color: color-mix(in srgb, #cc2936 65%, var(--line));
  background: color-mix(in srgb, #cc2936 14%, var(--surface));
}
.bibtex-code {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 56%, var(--surface));
  overflow-x: auto;
  font: 450 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
.bibtex-code code {
  font: inherit;
  background: none;
  padding: 0;
  color: inherit;
}
.citation-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 9px 0 0;
  font: 450 12.5px/1.45 var(--font);
  color: var(--muted);
}
.citation-status {
  font-weight: 600;
  color: var(--rq3-accent, #248a7a);
}

.sf-model-details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 52%, var(--surface));
}
.sf-model-details > summary {
  padding: 9px 13px;
  font: 550 13px/1.35 var(--font);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sf-model-details > summary::-webkit-details-marker { display: none; }
.sf-model-details > summary::after {
  content: "+";
  font: 600 15px/1 var(--font);
  color: var(--muted);
}
.sf-model-details[open] > summary::after { content: "-"; }
.sf-model-details[open] > summary {
  border-bottom: 1px solid var(--line);
}
.sf-model-details-body {
  padding: 12px 13px 10px;
}
.results-matrix td.cell-total small {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 900px) {
  .failure-modes-index { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; padding-top: 20px; }
}

/* Comprehensive mobile layout optimization (phones <= 680px) */
html, body { overflow-x: clip; }
@media (max-width: 680px) {
  .site-header .nav-inner {
    position: relative;
    padding-block: 8px;
    gap: 6px;
  }
  #primary-navigation {
    gap: 4px 12px;
    justify-content: center;
    font-size: 13.5px;
  }
  .site-header:has(.subpage-theme-toggle) #primary-navigation {
    padding-right: 34px;
  }
  .site-header .subpage-theme-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  .hero-copy .emergence-title {
    width: min(100%, 300px);
  }
  .blog-tldr {
    margin-top: 10px;
    padding: 13px 14px;
  }
  .blog-tldr p { font-size: 15.5px; line-height: 1.52; }
  .tldr-rqs { font-size: 14.5px; line-height: 1.46; padding-left: 18px; gap: 6px; }
  .tldr-summary { font-size: 14.5px !important; line-height: 1.48 !important; }
  .blog-prose p { font-size: 15.5px; line-height: 1.56; }
  .setting-card { padding: 11px 12px 10px; }
  .setting-card h2 { font-size: 18px; }
  .setting-card-summary { font-size: 12.5px; line-height: 1.42; }
  .failure-modes-index { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; padding-top: 20px; }
  .matrix-controls { gap: 10px; }
  .matrix-control-group { width: 100%; gap: 6px; }
  .matrix-seg { width: 100%; }
  .matrix-seg button { padding: 6px 8px; font-size: 11.5px; }
  .results-matrix-scroll {
    -webkit-overflow-scrolling: touch;
  }
  .results-matrix thead th:first-child,
  .results-matrix tbody th,
  .results-matrix tfoot th {
    position: sticky;
    left: 0;
    z-index: 2;
    background: color-mix(in srgb, var(--bg) 94%, var(--surface));
    box-shadow: 2px 0 6px rgba(0, 0, 0, .18);
  }
  .results-matrix th, .results-matrix td { padding: 9px 10px; font-size: 12px; }
  .results-matrix thead th:first-child, .results-matrix tbody th, .results-matrix tfoot th { padding-left: 14px; padding-right: 12px; }
  .results-matrix thead th:last-child, .results-matrix tbody td:last-child, .results-matrix tfoot td:last-child { padding-right: 14px; }
  .bench-audit-table th, .bench-audit-table td { padding: 10px 12px; font-size: 12.5px; }
  .bench-audit-table th:first-child, .bench-audit-table tbody th { padding-left: 14px; }
  .bench-audit-table th:last-child, .bench-audit-table td:last-child { padding-right: 14px; }
  .bench-audit-table thead { display: none; }
  .bench-audit-table, .bench-audit-table tbody { display: block; width: 100%; }
  .bench-audit-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  }
  .bench-audit-table tbody tr.bench-cluster-row {
    display: block;
    padding: 0;
  }
  .bench-audit-table tbody tr.bench-cluster-row th {
    display: block;
    padding: 9px 14px;
    border: 0;
  }
  .bench-audit-table tbody tr:not(.bench-cluster-row) th,
  .bench-audit-table tbody tr:not(.bench-cluster-row) td {
    display: block;
    padding: 0;
    border: 0;
  }
  .bench-audit-table tbody tr:not(.bench-cluster-row) th {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: 13.5px;
    white-space: normal;
  }
  .bench-audit-table tbody tr:not(.bench-cluster-row) td.bench-pr-cell {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }
  .bench-audit-table tbody tr:not(.bench-cluster-row) td.bench-ch-cell {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    white-space: normal;
  }
  .bench-audit-table tbody tr:not(.bench-cluster-row) td.bench-ch-cell .bench-ch-pill + .bench-ch-pill {
    margin-left: 0;
  }
  .bench-audit-table tbody tr:not(.bench-cluster-row) td:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 12.5px;
    line-height: 1.48;
  }
  .bench-audit-table tbody tr:not(.bench-cluster-row) td code {
    white-space: normal;
    word-break: break-word;
  }
  .results-figure { padding: 12px 10px 11px; }
  .case-study-box { padding: 14px 13px 15px; margin: 20px 0 22px; }
  .evidence-tabs { grid-template-columns: 1fr; gap: 6px; }
  .evidence-tab { font-size: 11.5px; padding: 6px 9px; }
  .cot-step { padding: 12px; }
  .dl-cell { overflow: hidden; }
  .dl-labels { max-width: 100%; }
}

/* Clear RQ subsection headers, finding lists outside tables, RQ3 whistleblower block, and metric definition popovers */
.rq-subsection {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
  scroll-margin-top: 86px;
}
.rq-subhead {
  margin: 0 0 12px;
  font: 700 clamp(19px, 1.8vw, 23px)/1.25 var(--editorial);
  letter-spacing: -.015em;
  color: var(--text);
}
.rq-findings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 18px 0 22px;
}
.rq-finding-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 78%, var(--bg));
}
.rq-finding-item h4 {
  margin: 0 0 6px;
  font: 700 14.5px/1.3 var(--font);
  color: var(--text);
}
.rq-finding-item p {
  margin: 0;
  font: 460 13.8px/1.52 var(--font);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
}
@media (max-width: 900px) {
  .rq-findings-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.wb-callout {
  margin: 16px 0 24px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--scene-blue, #285c8c) 38%, var(--line));
  border-left: 3px solid var(--scene-blue, #285c8c);
  border-radius: 10px;
  background: color-mix(in srgb, var(--scene-blue, #285c8c) 6%, var(--surface));
}
.wb-callout-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font: 600 11px/1.4 var(--font);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--scene-blue, #285c8c);
  background: color-mix(in srgb, var(--scene-blue, #285c8c) 14%, var(--bg));
}
:root[data-theme="dark"] .wb-callout-badge { color: #94c5f5; }
.wb-callout p {
  margin: 0;
  font: 460 15px/1.6 var(--font);
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
.wb-callout p + p { margin-top: 10px; }

.metric-term {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 1px;
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: help;
  text-decoration: underline dotted color-mix(in srgb, currentColor 52%, transparent) 1.5px;
  text-underline-offset: 3px;
  border-radius: 3px;
  transition: color .14s ease, background .14s ease, text-decoration-color .14s ease;
}
.metric-term:hover,
.metric-term:focus-visible,
.metric-term[aria-expanded="true"] {
  color: var(--scene-blue, #285c8c);
  text-decoration-color: currentColor;
  background: color-mix(in srgb, var(--scene-blue, #285c8c) 11%, transparent);
  outline: none;
}
:root[data-theme="dark"] .metric-term:hover,
:root[data-theme="dark"] .metric-term:focus-visible,
:root[data-theme="dark"] .metric-term[aria-expanded="true"] {
  color: #94c5f5;
}
.metric-popover {
  position: fixed;
  z-index: 1200;
  max-width: calc(100vw - 24px);
  padding: 12px 14px 13px;
  border: 1px solid color-mix(in srgb, var(--text) 20%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 97%, var(--bg));
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}
.metric-popover[hidden] { display: none; }
.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.mp-tag {
  font: 600 10.5px/1.2 var(--font);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--scene-blue, #285c8c);
}
:root[data-theme="dark"] .mp-tag { color: #94c5f5; }
.mp-close {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 4px;
  font: 600 16px/1 var(--font);
  color: var(--muted);
  cursor: pointer;
}
.mp-close:hover { color: var(--text); }
.mp-title {
  margin: 0 0 5px;
  font: 700 14.5px/1.3 var(--font);
  color: var(--text);
}
.mp-body {
  margin: 0 0 7px;
  font: 460 13px/1.5 var(--font);
  color: color-mix(in srgb, var(--text) 90%, var(--bg));
}
.mp-unit {
  margin: 0;
  font: 500 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
}
.mp-jump {
  display: inline-block;
  margin-top: 8px;
  font: 600 12px/1.3 var(--font);
  color: var(--scene-blue, #285c8c);
  text-decoration: none;
}
:root[data-theme="dark"] .mp-jump { color: #94c5f5; }
.mp-jump:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Unified visual design system (Gemini Frontend Design audit)
   - Strict 2-font pairing (ET Book headings + Inter tabular-nums body/data)
   - Consistent 3-size body scale & sentence-case labels (no tracked ALL CAPS)
   - Unified surface & border grammar (zero nested card-in-card cages)
   - Balanced 3-part RQ accent triad (Form blue / Harm crimson / Whistleblower teal) */
:root {
  --rq1-accent: #245c92;
  --rq2-accent: #a82c42;
  --rq3-accent: #196e64;
  --surface-card: color-mix(in srgb, var(--surface) 78%, var(--bg));
  --surface-inset: color-mix(in srgb, var(--text) 3.5%, var(--bg));
  --border-card: color-mix(in srgb, var(--line) 82%, transparent);
  --radius-card: 10px;
}
:root[data-theme="dark"] {
  --rq1-accent: #68aee8;
  --rq2-accent: #e5798c;
  --rq3-accent: #5ec7b6;
}

/* Harmonized 3-part RQ header & section title colors */
#primary-navigation .nav-rq3 { color: var(--rq3-accent); }
.life-phase.p1 { color: var(--rq1-accent); }
.life-phase.p2 { color: var(--rq2-accent); }
.results-section .life-phase.p3 { color: var(--rq3-accent); }

/* Clean tabular-nums Inter for inline code & data — no jarring grey boxes in prose */
body {
  font-variant-numeric: tabular-nums;
}
.study-prose code,
.blog-tldr code,
.blog-prose code,
.section-bridge code,
.rq-finding-item code,
.fm-card code,
.wb-callout code,
.evidence-rule code {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.94em;
  font-variant-numeric: tabular-nums;
  padding: 0 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}

/* Strict 3-size body scale across all prose, cards, tables, and captions */
.blog-tldr p,
.tldr-rqs,
.study-prose p,
.blog-prose p,
.section-bridge,
.wb-callout p {
  font-family: var(--font) !important;
  font-size: 16px !important;
  line-height: 1.64 !important;
  font-weight: 460;
}
.tldr-summary {
  font-size: 16px !important;
  line-height: 1.62 !important;
}
.rq-subhead,
.results-subhead h3,
.case-study-head h3,
#limitations h3,
#references h3 {
  font-family: var(--editorial);
  font-weight: 700;
  font-size: clamp(19px, 1.65vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.014em;
  color: var(--text);
}

/* Sentence-case UI labels, table headers, and metadata (zero tracked ALL CAPS) */
.blog-toc-label,
.setting-card-eyebrow,
.fm-tag,
.results-matrix thead th,
.matrix-control-label,
.cot-step-tag,
.mp-tag {
  text-transform: none !important;
  letter-spacing: 0.005em !important;
}
.setting-card-eyebrow,
.fm-tag {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
}
.results-matrix thead th {
  font-size: 12.5px;
  font-weight: 600;
}
.matrix-control-label {
  font-size: 12.5px;
  font-weight: 600;
}
.results-matrix td,
.results-matrix tfoot td,
.cell-pill,
.chart-val {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}

/* Unified surface & border grammar — eliminate nested card-in-card borders */
.blog-tldr,
.setting-card,
.detection-hero-wrap,
.rq-finding-item,
.fm-card,
.results-figure,
.case-study-box,
.wb-callout {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
}
.blog-tldr {
  border-left: 3px solid var(--rq1-accent);
}
.setting-card-form {
  border-top: 2px solid var(--rq1-accent);
}
.setting-card-harm {
  border-top: 2px solid var(--rq2-accent);
}
.wb-callout {
  border-left: 3px solid var(--rq3-accent);
  background: color-mix(in srgb, var(--rq3-accent) 5%, var(--surface-card));
}
.wb-callout-title {
  margin: 0 0 8px;
  font: 650 14.5px/1.35 var(--font);
  color: var(--rq3-accent);
}
.fm-scene {
  border: 0;
  border-radius: 8px;
  background: var(--surface-inset);
  padding: 8px 6px 6px;
}
.fm-card-head {
  min-height: 24px;
  align-items: baseline;
}
.fm-card-head h4 {
  font-size: 14.6px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.cot-step {
  border: 1px solid color-mix(in srgb, var(--border-card) 85%, transparent);
  background: var(--surface-inset);
}
.wb-quote-card {
  margin: 0 0 12px;
  padding: 16px 18px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--rq3-accent) 32%, var(--border-card));
  border-left: 3px solid var(--rq3-accent);
  background: var(--surface-inset);
}
.wb-quote-card blockquote {
  margin: 0;
  font: 460 14.5px/1.62 var(--font);
  color: color-mix(in srgb, var(--text) 94%, var(--bg));
}
.chart-line-wb { fill: none; stroke: var(--rq3-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-wb-ag { fill: none; stroke: var(--rq3-accent); stroke-width: 1.8; stroke-dasharray: 4 3; stroke-linecap: round; }
.chart-line-base { fill: none; stroke: #c93b52; stroke-width: 1.8; stroke-dasharray: 5 3; opacity: 0.72; }
.wb-delta-neg { color: #7fe3a8; font-weight: 600; }
:root[data-theme="light"] .wb-delta-neg { color: #13653f; }
.wb-delta-flat { color: var(--muted); }
.wb-qa-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 11px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 460;
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
.wb-qa-list li::marker {
  color: var(--rq3-accent);
}
.wb-qa-list li strong:first-child {
  color: var(--text);
  font-weight: 700;
}
.wb-qa-list code {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.94em;
  padding: 0 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
}
.tldr-findings {
  margin: 6px 0 4px;
  padding-left: 1.15em;
  display: grid;
  gap: 3px;
  list-style: disc;
  font-size: 14.8px;
  line-height: 1.5;
  font-weight: 450;
  color: color-mix(in srgb, var(--text) 84%, var(--bg));
}
.tldr-findings li::marker {
  color: var(--muted);
}
.tldr-findings strong {
  color: var(--text);
  font-weight: 650;
}
.blog-tldr .tldr-summary {
  margin: 4px 0 2px;
  font: 450 14.8px/1.56 var(--font);
  color: color-mix(in srgb, var(--text) 85%, var(--bg));
}
.blog-tldr .tldr-summary strong {
  color: var(--text);
  font-weight: 650;
}
.blog-tldr .tldr-rqs {
  gap: 11px;
}

/* SwarmForm quantitative results & Appendix A construct validity */
.sf-summary-banner {
  margin: 10px 0 14px;
  padding: 12px 16px;
  border-radius: var(--radius-card, 10px);
  border: 1px solid var(--border-card, var(--line));
  border-left: 3px solid var(--rq1-accent, #285c8c);
  background: color-mix(in srgb, var(--rq1-accent, #285c8c) 6%, var(--surface-card, var(--bg)));
  font: 400 14.5px/1.55 var(--editorial);
  color: var(--text);
}
.sf-summary-banner strong {
  color: var(--text);
}
.sf-pill {
  min-width: 78px;
}
.cv-model-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13.5px/1.25 var(--font);
  color: var(--text);
}
.cv-meta {
  font: 500 12.5px/1.3 var(--font);
  color: var(--muted);
  white-space: nowrap;
}
.cv-matrix {
  min-width: 820px;
}
.cv-matrix th,
.cv-matrix td {
  padding: 8px 7px;
}
.matrix-seg button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sf-status-note {
  margin: 8px 0 0;
  font: 400 12.5px/1.45 var(--font);
  color: var(--muted);
}
.sf-scale-label {
  margin: 0 0 8px;
  font: 600 12.5px/1.3 var(--font);
  color: var(--muted);
}
.sf-pop-sub {
  font-weight: 400;
  color: var(--muted);
}

/* Airy editorial spacing, scannable Hero pillars, and comfortable reading measure */
.hero-overview {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 0;
  text-align: left;
}
.hero-lead-prose {
  width: 100%;
  max-width: none;
  margin: 0 0 22px;
}
.why-matters-box {
  margin: 22px 0 0;
  padding: 16px 20px;
  border: 1px solid color-mix(in srgb, var(--rq1-accent) 26%, var(--border-card));
  border-left: 3.5px solid var(--rq1-accent);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--rq1-accent) 5%, var(--surface-card));
}
.why-matters-box .why-matters-title {
  margin: 0 0 6px;
  font: 700 15px/1.3 var(--font);
  color: var(--rq1-accent);
}
.why-matters-box p {
  margin: 0;
  font: 450 15.5px/1.65 var(--font);
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
.hero-lead-prose p {
  margin: 0;
  font: 460 16.5px/1.76 var(--font);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
}
.hero-lead-prose p + p {
  margin-top: 16px;
}
.hero-lead-prose strong {
  color: var(--text);
  font-weight: 700;
}
.tldr-p1 { border-top-color: var(--rq1-accent); }
.tldr-p2 { border-top-color: var(--rq2-accent); }
.tldr-p3 { border-top-color: var(--rq3-accent); }
.tldr-pillar .tldr-hl-blue,
.bench-audit-table .tldr-hl-blue {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--rq1-accent) 68%, transparent);
  text-underline-offset: 3px;
}

.detection-hero-wrap {
  width: 100%;
  max-width: none;
  margin-top: 44px;
  padding: 26px 28px 22px;
}
.detection-hero-lead {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  font: 460 15.5px/1.68 var(--font);
}

/* Generous chapter & subsection whitespace + full-width aligned prose */
section.life-half {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.experiment-heading .life-phase {
  margin-bottom: 20px;
}
.study-prose,
.section-bridge,
.sf-settings-list,
.sh-settings-list,
.sf-takeaway-note {
  width: 100%;
  max-width: none;
}
.study-prose p,
.section-bridge {
  line-height: 1.76 !important;
}
.sh-settings-list {
  margin: 18px 0 0;
}
.sf-settings-list {
  margin: 12px 0 28px;
}
.sf-takeaway-note {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
}
.sf-takeaway-note > p {
  margin: 0 0 12px;
  font: 600 15.5px/1.5 var(--font);
  color: var(--text);
}
.sf-takeaway-note .sf-settings-list {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.rq-subsection {
  margin-top: 36px;
  padding-top: 0;
  border-top: 0;
}
.rq-subhead {
  margin: 0 0 12px;
}
.section-bridge {
  margin: 10px 0 18px;
}
.results-matrix-block {
  margin: 16px 0 24px;
}
.matrix-controls {
  margin-bottom: 12px;
}
.channel-check-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
}
.ch-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ch-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: 600 12.5px/1.2 var(--font);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ch-check-pill .ch-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--line) 95%, var(--muted));
  background: transparent;
  color: transparent;
  font: 700 10.5px/1 var(--font);
  font-style: normal;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ch-check-pill[aria-pressed="true"] {
  color: var(--text);
  border-color: color-mix(in srgb, var(--rq1-accent) 45%, var(--line));
  background: color-mix(in srgb, var(--rq1-accent) 8%, var(--bg));
}
.ch-check-pill[aria-pressed="true"] .ch-tick {
  background: var(--rq1-accent);
  border-color: var(--rq1-accent);
  color: #ffffff;
}
.ch-check-pill.is-files[aria-pressed="true"] {
  border-color: color-mix(in srgb, #d9a13b 55%, var(--line));
  background: color-mix(in srgb, #d9a13b 12%, var(--bg));
}
.ch-check-pill.is-files[aria-pressed="true"] .ch-tick {
  background: #b8821c;
  border-color: #b8821c;
}
.ch-check-pill.is-sock[aria-pressed="true"] {
  border-color: color-mix(in srgb, #2d74c4 52%, var(--line));
  background: color-mix(in srgb, #2d74c4 11%, var(--bg));
}
.ch-check-pill.is-sock[aria-pressed="true"] .ch-tick {
  background: #2563ab;
  border-color: #2563ab;
}
.ch-check-pill.is-mem[aria-pressed="true"] {
  border-color: color-mix(in srgb, #0f766e 50%, var(--line));
  background: color-mix(in srgb, #14b8a6 11%, var(--bg));
}
.ch-check-pill.is-mem[aria-pressed="true"] .ch-tick {
  background: #0f766e;
  border-color: #0f766e;
}
.ch-check-pill.is-fm[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--rq2-accent) 46%, var(--line));
  background: color-mix(in srgb, var(--rq2-accent) 8%, var(--bg));
}
.ch-check-pill.is-fm[aria-pressed="true"] .ch-tick {
  background: var(--rq2-accent);
  border-color: var(--rq2-accent);
}
.st-pill[data-def] {
  cursor: help;
}
.wb-rank-legend .metric-term,
.hf-stk-leg .metric-term {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ch-check-pill:hover {
  border-color: color-mix(in srgb, var(--text) 35%, var(--line));
}
.results-legend {
  margin: 0 0 16px;
}

/* Airy separated two-card grid in 1.3 */
.org-compare-grid {
  gap: 20px;
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

/* Extra breathing room inside 2.1, 2.2, 2.3, 3.1, 3.3 cards */
.fm-matrix {
  margin: 22px 0 42px;
}
.case-study-box {
  padding: 26px 28px;
  margin: 22px 0 34px;
}
.case-study-box .case-study-head {
  margin-bottom: 14px;
}
.case-study-box .evidence-meta {
  margin: 0 0 12px;
}
.case-study-box .evidence-rule {
  margin: 0 0 18px;
}
.case-study-box .evidence-tabs {
  margin: 0 0 18px;
}
.case-study-box .cot-timeline {
  gap: 18px;
  margin-bottom: 18px;
}
.case-study-box .cot-step {
  padding: 16px 18px;
}
.case-study-box .verdict-bar {
  padding: 14px 16px;
  line-height: 1.62;
}
.wb-breakdown-card {
  padding: 24px 26px;
  margin: 20px 0 32px;
}
.wb-breakdown-legend {
  margin-top: 18px;
  gap: 16px 26px;
}
.wb-qa-list {
  gap: 15px;
}
.prose-figure-split {
  gap: 28px 36px;
  margin: 22px 0 36px;
}
@media (max-width: 680px) {
  section.life-half {
    margin-top: 36px;
    padding-top: 28px;
  }
  .rq-subsection {
    margin-top: 28px;
    padding-top: 0;
    scroll-margin-top: 96px;
  }
  .hero-lead-prose {
    margin-bottom: 24px;
  }
  .hero-lead-prose p {
    font-size: 15.5px;
    line-height: 1.68;
  }
  .detection-hero-wrap {
    margin-top: 30px;
    padding: 18px 16px 16px;
  }
  .sf-takeaway-note {
    padding: 16px 18px;
  }
  .case-study-box {
    padding: 18px 16px;
  }
  .wb-breakdown-card {
    padding: 18px 16px;
  }
  .matrix-seg button {
    flex: 1 1 auto;
    text-align: center;
  }
}

.cell-wb-legend {
  background: rgba(25, 110, 100, 0.14);
  color: #11524a;
  border: 1px solid rgba(25, 110, 100, 0.34);
}
:root[data-theme="dark"] .cell-wb-legend {
  background: rgba(47, 173, 157, 0.24);
  color: #8de3d6;
  border-color: rgba(47, 173, 157, 0.45);
}
@media (max-width: 680px) {
  .matrix-seg button {
    flex: 1 1 auto;
    text-align: center;
  }
  .rq-subsection {
    scroll-margin-top: 106px;
  }
}

/* Paired N = 4 / N = 8 sub-columns in SwarmForm Table 1 */
.sf-paired-matrix thead tr.sf-group-row th {
  padding-top: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.sf-paired-matrix thead tr.sf-group-row th[rowspan="2"] {
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.sf-paired-matrix thead tr.sf-sub-row th,
.sf-paired-matrix thead tr.sf-sub-row th:first-child {
  padding-top: 6px;
  padding-bottom: 10px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.sf-paired-matrix .sf-col-group,
.sf-paired-matrix .sf-group-start {
  border-left: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.sf-paired-matrix th,
.sf-paired-matrix td {
  padding: 10px 8px;
}
.sf-paired-matrix thead tr.sf-group-row th:first-child,
.sf-paired-matrix tbody th {
  padding-left: 20px;
  padding-right: 16px;
}
.sf-paired-matrix td:last-child,
.sf-paired-matrix thead tr.sf-sub-row th:last-child {
  padding-right: 18px;
}
.sf-pill-compact {
  min-width: 52px;
  padding: 4px 8px;
  font-size: 12px;
}

/* Diagram-first setup schematic (Section 1), 1.3 topology visuals, heatmap scale ramps, and 2.3 escalation strip */
.setup-schematic {
  margin: 26px 0 8px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
}
.setup-schematic svg {
  display: block;
  width: 100%;
  height: auto;
}
.sch-box {
  fill: var(--bg);
  stroke: var(--border-card);
  stroke-width: 1.2;
}
.sch-box-blue {
  fill: color-mix(in srgb, var(--rq1-accent) 6%, var(--bg));
  stroke: color-mix(in srgb, var(--rq1-accent) 36%, var(--border-card));
}
.sch-box-red {
  fill: color-mix(in srgb, var(--rq2-accent) 6%, var(--bg));
  stroke: color-mix(in srgb, var(--rq2-accent) 36%, var(--border-card));
}
.sch-box-amber {
  fill: color-mix(in srgb, #c2781e 6%, var(--bg));
  stroke: color-mix(in srgb, #c2781e 38%, var(--border-card));
}
.sch-sandbox {
  fill: var(--surface-inset);
  stroke: color-mix(in srgb, var(--line) 95%, transparent);
  stroke-width: 1.1;
  stroke-dasharray: 4 3;
}
.sch-pill {
  fill: color-mix(in srgb, var(--rq1-accent) 13%, var(--bg));
  stroke: color-mix(in srgb, var(--rq1-accent) 44%, var(--border-card));
  stroke-width: 1.2;
}
.sch-pill-safe {
  fill: rgba(26, 135, 84, 0.11);
  stroke: rgba(26, 135, 84, 0.34);
  stroke-width: 1.1;
}
:root[data-theme="dark"] .sch-pill-safe {
  fill: rgba(56, 178, 114, 0.14);
  stroke: rgba(56, 178, 114, 0.38);
}
.sch-pill-red {
  fill: rgba(188, 36, 62, 0.10);
  stroke: rgba(188, 36, 62, 0.36);
  stroke-width: 1.1;
}
:root[data-theme="dark"] .sch-pill-red {
  fill: rgba(224, 86, 108, 0.16);
  stroke: rgba(224, 86, 108, 0.42);
}
.sch-pill-amber {
  fill: rgba(194, 120, 30, 0.11);
  stroke: rgba(194, 120, 30, 0.36);
  stroke-width: 1.1;
}
:root[data-theme="dark"] .sch-pill-amber {
  fill: rgba(224, 152, 62, 0.16);
  stroke: rgba(224, 152, 62, 0.42);
}
.sch-head {
  fill: var(--text);
  font: 650 13.5px/1.2 var(--font);
}
.sch-head-blue { fill: var(--rq1-accent); }
.sch-head-red { fill: var(--rq2-accent); }
.sch-head-amber { fill: #9a5508; }
:root[data-theme="dark"] .sch-head-amber { fill: #f2bd76; }
:root[data-theme="dark"] .sch-head-white { fill: #fff; }
.sch-sub {
  fill: var(--muted);
  font: 450 11px/1.2 var(--font);
}
.sch-lbl {
  fill: var(--text);
  font: 600 11px/1.2 var(--font);
}
.sch-lbl-blue {
  fill: var(--rq1-accent);
  font: 650 11px/1.2 var(--font);
}
.sch-safe-txt {
  fill: #13653f;
  font: 650 11px/1.2 var(--font);
}
:root[data-theme="dark"] .sch-safe-txt { fill: #84e4ae; }
.sch-red-txt {
  fill: #8f152c;
  font: 650 11px/1.2 var(--font);
}
:root[data-theme="dark"] .sch-red-txt { fill: #ffadb9; }
.sch-amber-txt {
  fill: #8a430c;
  font: 650 11.5px/1.2 var(--font);
}
:root[data-theme="dark"] .sch-amber-txt { fill: #f6cb94; }
.cascade-schematic { margin: 14px 0 22px; }
.cas-n-safe {
  fill: rgba(26, 135, 84, 0.15);
  stroke: rgba(26, 135, 84, 0.55);
  stroke-width: 1.5;
}
:root[data-theme="dark"] .cas-n-safe {
  fill: rgba(56, 178, 114, 0.22);
  stroke: rgba(56, 178, 114, 0.65);
}
.cas-n-bad {
  fill: rgba(188, 36, 62, 0.85);
  stroke: rgba(140, 18, 40, 0.95);
  stroke-width: 1.5;
}
.cas-txt-safe { fill: #13653f; font: 700 12px/1 var(--font); }
:root[data-theme="dark"] .cas-txt-safe { fill: #84e4ae; }
.cas-txt-bad { fill: #ffffff; font: 700 13px/1 var(--font); }

/* Explicit agent <-> account roster and 4-step mimicry cards */
.agent-roster-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-inset);
  border: 1px solid color-mix(in srgb, var(--border-card) 85%, transparent);
}
.roster-lead {
  font: 600 12px/1.3 var(--font);
  color: var(--muted);
  margin-right: 4px;
}
.roster-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font: 500 11.8px/1.25 var(--font);
  border: 1px solid transparent;
}
.roster-chip strong { font-weight: 700; }
.roster-chip em { font-style: normal; opacity: 0.85; }
.roster-first {
  background: rgba(188, 36, 62, 0.14);
  border-color: rgba(188, 36, 62, 0.36);
  color: #8a1428;
}
:root[data-theme="dark"] .roster-first {
  background: rgba(224, 86, 108, 0.22);
  border-color: rgba(224, 86, 108, 0.45);
  color: #ffc2cc;
}
.roster-mimic {
  background: rgba(194, 120, 30, 0.12);
  border-color: rgba(194, 120, 30, 0.34);
  color: #824208;
}
:root[data-theme="dark"] .roster-mimic {
  background: rgba(224, 152, 62, 0.18);
  border-color: rgba(224, 152, 62, 0.42);
  color: #f8cf96;
}
.roster-hold {
  background: rgba(26, 135, 84, 0.12);
  border-color: rgba(26, 135, 84, 0.34);
  color: #13653f;
}
:root[data-theme="dark"] .roster-hold {
  background: rgba(56, 178, 114, 0.18);
  border-color: rgba(56, 178, 114, 0.42);
  color: #8ce8b4;
}
.cot-timeline-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cot-step-first .cot-step-tag { color: #b0223a; }
:root[data-theme="dark"] .cot-step-first .cot-step-tag { color: #ffb4c0; }
.cot-action-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 11px;
  border-left: 2.5px solid rgba(188, 36, 62, 0.55);
  background: color-mix(in srgb, var(--rq2-accent) 6%, var(--surface-inset));
  border-radius: 0 6px 6px 0;
  font: 500 12.5px/1.45 var(--font);
  color: var(--text);
}
.cot-step .cot-note {
  margin: 10px 0 0;
  font: 420 12.5px/1.5 var(--font);
  color: var(--muted);
}
@media (max-width: 780px) {
  .cot-timeline-4 { grid-template-columns: 1fr; }
}
.sch-pill-txt {
  fill: var(--text);
  font: 650 12px/1.2 var(--font);
}
.sch-arrow {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.sch-bi {
  fill: none;
  stroke: var(--rq1-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.org-mini-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  border-radius: 8px;
  background: var(--surface-inset);
  border: 1px solid color-mix(in srgb, var(--border-card) 80%, transparent);
}
.org-svg-lbl {
  fill: var(--muted);
  font: 600 10.5px/1 var(--font);
}
.org-svg-lbl-hi { fill: var(--rq1-accent); }
.org-n-soft {
  fill: color-mix(in srgb, var(--text) 16%, var(--bg));
  stroke: color-mix(in srgb, var(--text) 42%, var(--line));
  stroke-width: 1.2;
}
.org-n-hub {
  fill: var(--rq1-accent);
  stroke: var(--bg);
  stroke-width: 2;
}
.org-hub-lines line {
  stroke: var(--rq1-accent);
  stroke-opacity: 0.55;
  stroke-width: 1.6;
}

/* Micro color-scale ramps in heatmap legends */
.heat-ramp {
  display: inline-block;
  width: 54px;
  height: 10px;
  border-radius: 999px;
  vertical-align: middle;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
}
.ramp-blue { background: linear-gradient(90deg, rgba(86,156,232,0.12), #1d5fa8); }
.ramp-red { background: linear-gradient(90deg, rgba(218,92,112,0.14), #ac1a32); }
.ramp-teal { background: linear-gradient(90deg, rgba(20,122,110,0.14), #147a6e); }

/* 2.3 Visual escalation progression strip */
.case-study-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}
.escalation-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
}
.esc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.esc-step strong { font: 700 15px/1.2 var(--font); }
.esc-step small { font: 550 11.5px/1.3 var(--font); opacity: 0.88; margin-top: 3px; white-space: nowrap; text-align: center; }
.esc-safe { background: rgba(26,135,84,0.08); border-color: rgba(26,135,84,0.24); color: #166534; }
:root[data-theme="dark"] .esc-safe { background: rgba(56,178,114,0.12); border-color: rgba(56,178,114,0.30); color: #86efac; }
.esc-mid { background: rgba(200,58,82,0.06); border-color: rgba(200,58,82,0.22); color: #9f1239; }
:root[data-theme="dark"] .esc-mid { background: rgba(220,84,106,0.10); border-color: rgba(220,84,106,0.28); color: #fda4af; }
.esc-high { background: rgba(200,58,82,0.12); border-color: rgba(200,58,82,0.34); color: #9f1239; }
:root[data-theme="dark"] .esc-high { background: rgba(220,84,106,0.18); border-color: rgba(220,84,106,0.40); color: #fecdd3; }
.esc-max { background: rgba(200,58,82,0.19); border-color: rgba(180,32,58,0.52); color: #881337; }
:root[data-theme="dark"] .esc-max { background: rgba(220,84,106,0.26); border-color: rgba(244,114,132,0.58); color: #ffe4e6; }
.esc-arr { color: var(--muted); font: 700 14px/1 var(--font); text-align: center; }
.esc-link {
  margin-left: auto;
  font: 600 13px/1.3 var(--font);
  color: var(--rq1-accent);
  text-decoration: none;
  white-space: nowrap;
}
.esc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) {
  .setup-schematic { padding: 12px 10px; }
  .escalation-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .esc-step { flex: 1 1 88px; padding: 8px 6px; }
  .esc-link { margin-left: 0; }
}

/* Interactive SwarmForm 3-Channel Sandbox Explorer (inspired by covert-agents.com/#/channels) */
.sf-channel-explorer {
  margin: 24px 0 8px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  background: var(--surface-card);
}
.sf-ch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.sf-dot-files { background: #d9a13b; }
.sf-dot-sock { background: #2d74c4; }
.sf-dot-mem { background: #1d8f82; }
.sf-step-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: var(--bg);
  color: var(--muted);
  font: 600 11.5px/1.2 var(--font);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.sf-step-pill[aria-pressed="true"] {
  background: var(--rq1-accent);
  border-color: var(--rq1-accent);
  color: #ffffff;
}
.sf-step-sep { color: var(--muted); font: 600 12px/1 var(--font); }
.sf-card-host {
  border-style: dashed;
  background: var(--surface-inset);
  align-items: center;
  text-align: center;
}
.sf-card-b.is-lit {
  border-color: #157a6e;
  box-shadow: 0 4px 18px rgba(21, 122, 110, 0.14);
}
.sf-card-hdr {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}
.sf-card-hdr strong {
  display: block;
  font: 650 13px/1.25 var(--font);
  color: var(--text);
}
.sf-card-hdr span {
  display: block;
  font: 450 11px/1.25 var(--font);
  color: var(--muted);
}
.sf-card-hdr-center {
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.sf-lock-tag {
  margin-left: auto;
  font-size: 13px;
  opacity: 0.72;
}
.sf-card-lead {
  margin: 0 0 9px;
  font: 450 12.5px/1.45 var(--font);
  color: var(--text);
}
.sf-code-box {
  margin: 0 0 10px;
  padding: 10px 11px;
  border-radius: 7px;
  background: var(--surface-inset);
  border: 1px solid color-mix(in srgb, var(--border-card) 85%, transparent);
  font: 500 10.8px/1.52 var(--mono);
  color: var(--text);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1 1 auto;
}
.sf-card-foot {
  margin: 0;
  font: 500 11px/1.35 var(--font);
  color: var(--muted);
}
.sf-host-visual {
  width: 100%;
  max-width: 215px;
  margin: 4px auto 8px;
}
.sf-host-visual svg { display: block; width: 100%; height: auto; }
.sf-verify-pill {
  padding: 5px 9px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--rq1-accent) 10%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--rq1-accent) 30%, transparent);
  color: var(--rq1-accent);
  font: 600 11px/1.35 var(--font);
  margin-bottom: 6px;
}
.sf-hash-line {
  margin: 0;
  font: 500 10.5px/1.35 var(--mono);
  color: var(--muted);
}
@media (max-width: 560px) {
  .sf-channel-explorer { padding: 14px 12px; }
}

/* Smooth reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Review figures use a common 0–100% scale and show the exact data on demand. */
.review-subhead, .rate-plot .plot-caption { font-size:1.05rem; font-weight:700; line-height:1.4; margin:0 0 .35rem; }
.result-details { margin:.7rem 0; }
.result-details > summary { width:fit-content; cursor:pointer; color:var(--muted); font-size:.85rem; font-weight:600; }
.result-details[open] > summary { margin-bottom:.75rem; }
.result-details.hero-result { margin:.3rem 0 0; }
.hero-finding-link { display:inline-block; width:fit-content; margin:.3rem 0 0; color:var(--muted); font-size:.85rem; font-weight:600; text-decoration:none; }
.hero-finding-link:hover, .hero-finding-link:focus-visible { color:var(--text); text-decoration:underline; text-underline-offset:3px; }
.rate-plot { --plot-primary:#2866ad; --plot-secondary:#54859c; margin:1.25rem 0; padding:1.3rem 1.5rem; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.rate-plot.failure-plot { --plot-primary:#ae3751; }
.rate-plot.reporting-plot { --plot-primary:#167669; --plot-secondary:#697aa5; }
[data-theme="dark"] .rate-plot { --plot-primary:#75aff6; --plot-secondary:#9bc7d1; }
[data-theme="dark"] .failure-plot { --plot-primary:#f08da0; }
[data-theme="dark"] .reporting-plot { --plot-primary:#61c7b6; --plot-secondary:#aab9e7; }
.plot-scope, .plot-legend, .plot-control, .plot-value { font-size:.82rem; line-height:1.45; }
.plot-scope { margin:.3rem 0 .75rem; color:var(--muted); }
.plot-control { display:inline-flex; align-items:center; gap:.5rem; margin:.5rem 0 0; font-weight:600; }
.plot-control select, .plot-download { font:inherit; color:inherit; border:1px solid var(--line); background:var(--surface); border-radius:5px; padding:.3rem .6rem; }
.plot-legend { display:flex; gap:.45rem 1rem; flex-wrap:wrap; margin:.45rem 0 .75rem; }
.series-0 { --series:var(--plot-primary); }
.series-1 { --series:var(--plot-secondary); }
.series-2 { --series:var(--plot-tertiary, #172554); }
.plot-legend span::before { display:inline-block; content:""; width:1em; height:.55em; border-radius:2px; background:var(--series); margin-right:.38rem; vertical-align:0; }
.plot-legend .series-1::before, .series-1 .plot-fill { background:repeating-linear-gradient(115deg,var(--series) 0 3px,transparent 3px 4px); }
/* Distinct solid 3-step blue gradient for Formation N = 4 -> N = 8 -> N = 16 */
.rate-plot.formation-plot {
  --plot-primary: #60a5fa;
  --plot-secondary: #1d4ed8;
  --plot-tertiary: #172554;
}
[data-theme="dark"] .rate-plot.formation-plot {
  --plot-primary: #bae6fd;
  --plot-secondary: #38bdf8;
  --plot-tertiary: #2563eb;
}
.formation-plot .plot-legend .series-1::before,
.formation-plot .series-1 .plot-fill,
.formation-plot .plot-legend .series-2::before,
.formation-plot .series-2 .plot-fill {
  background: var(--series);
}
#whistleblow-effect-plot {
  --plot-primary: #d46a7e;
  --plot-secondary: #167669;
}
[data-theme="dark"] #whistleblow-effect-plot {
  --plot-primary: #f08da0;
  --plot-secondary: #4fd1b5;
}
#whistleblow-effect-plot .plot-legend .series-1::before,
#whistleblow-effect-plot .plot-fill.series-1 {
  background: var(--series);
}
#whistleblow-effect-plot .plot-band.plot-band-prog {
  grid-template-columns: minmax(0, 1fr) 9.8em;
}
.formation-plot .plot-row {
  padding: .28rem 0;
}
.formation-plot .plot-bands {
  gap: 3px;
}
.formation-plot .plot-track {
  height: 7px;
  border-radius: 99px;
}
.formation-plot .plot-fill {
  border-radius: 99px;
}
.rate-plot .plot-rows { list-style:none; padding:0; margin:0; }
.rate-plot .plot-row { display:grid; grid-template-columns:minmax(8rem, 13.5rem) minmax(0,1fr); gap:.9rem; align-items:center; margin:0; padding:.52rem 0; border-top:1px solid var(--line); }
.plot-label { display:inline-flex; align-items:center; gap:6px; font-size:.82rem; line-height:1.25; white-space:nowrap; }
.plot-label .model-logo { flex-shrink:0; margin-right:0; }
.plot-bands { display:grid; gap:.1rem; }
.plot-band { display:grid; grid-template-columns:minmax(0,1fr) 3.65em; align-items:center; gap:.45rem; }
.plot-band.plot-band-prog { grid-template-columns:minmax(0,1fr) 13.6em; gap:.75rem; }
.plot-band.plot-band-frac { grid-template-columns:minmax(0,1fr) 8.6em; gap:.55rem; }
.plot-value.plot-value-frac { font-size:.78rem; white-space:nowrap; }
.plot-track { display:block; overflow:hidden; height:.5rem; background:color-mix(in srgb,var(--muted) 12%,transparent); border-radius:2px; }
.plot-track.plot-track-prog { position:relative; height:11px; border-radius:99px; background:color-mix(in srgb,var(--muted) 14%,transparent); }
.plot-fill { display:block; height:100%; background:var(--series); }
.plot-fill.plot-fill-prog { position:absolute; left:0; top:0; bottom:0; border-radius:99px; transition:width .25s ease; }
.plot-fill.plot-fill-prog.has-step-edge { box-shadow:1.5px 0 0 var(--surface, var(--bg)); }
.plot-value { text-align:right; font-variant-numeric:tabular-nums; }
.plot-value.plot-value-prog { font-size:.78rem; font-weight:600; color:var(--text); white-space:nowrap; }
@media (max-width:600px) {
  .plot-band.plot-band-prog { grid-template-columns:minmax(0,1fr) 11.4em; gap:.4rem; }
  .plot-value.plot-value-prog { font-size:.72rem; }
}
.plot-download { margin-top:.8rem; font-size:.78rem; cursor:pointer; }
@media (max-width:600px) {
  .rate-plot { padding:.8rem; }
  .rate-plot .plot-row { grid-template-columns:minmax(5rem, 35%) minmax(0,1fr); gap:.45rem; }
}

.centralization-track { position:relative; display:block; height:.45rem; margin:.45rem 0 .1rem; background:color-mix(in srgb,var(--muted) 16%,transparent); border-radius:2px; }
.centralization-track i { position:absolute; inset-block:0; background:currentColor; border-radius:2px; }

/* Hero intro subheads (Background, Research questions) */
.hero-lead-prose .hero-subhead {
  margin: 34px 0 6px;
  font: 700 19px/1.3 var(--font);
  letter-spacing: normal;
  text-wrap: wrap;
  color: var(--text);
}
.hero-lead-prose .hero-subhead + p {
  margin-top: 0;
}

/* Unified structured experimental setting cards (Sections 1, 2, 3) */
.setting-card {
  margin: 14px 0 18px;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.setting-p1 { border-top: 3px solid var(--rq1-accent); }
.setting-p2 { border-top: 3px solid var(--rq2-accent); }
.setting-p3 { border-top: 3px solid var(--rq3-accent); }
.setting-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 16px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--line);
}
.setting-kicker {
  font: 700 12px/1.2 var(--font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.setting-p1 .setting-kicker { color: var(--rq1-accent); }
.setting-p2 .setting-kicker { color: var(--rq2-accent); }
.setting-p3 .setting-kicker { color: var(--rq3-accent); }
.setting-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.setting-chips span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font: 500 12px/1.35 var(--font);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
}
.setting-chips strong {
  font-weight: 700;
  color: var(--text);
}
.setting-chips code {
  font-size: 11px;
  padding: 0 2px;
}
.setting-card .setting-brief {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
}
.setting-card .setting-brief > div {
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  align-items: stretch;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.setting-card .setting-brief > div:first-child {
  border-top: 0;
}
.setting-card .setting-brief dt {
  padding: 11px 14px 11px 16px;
  background: color-mix(in srgb, var(--surface-card) 65%, var(--bg));
  border-right: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  font: 650 13px/1.45 var(--font);
  color: var(--text);
}
.setting-card .setting-brief dd {
  padding: 11px 16px;
  font: 450 14px/1.55 var(--font);
}
.study-prose .setting-tags-list,
.setting-tags-list {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.study-prose .setting-card .setting-brief dd > .setting-tags-list:first-child,
.setting-card .setting-brief dd > .setting-tags-list:first-child {
  margin-top: 0;
}
.study-prose .setting-tags-list li,
.setting-tags-list li {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 14px;
  margin: 0;
  font: 450 13.5px/1.48 var(--font);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
}
.setting-tags-list li > .st-pill {
  justify-self: start;
}
.st-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font: 650 11.5px/1.45 var(--font);
  white-space: nowrap;
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--line) 95%, transparent);
}
.st-pill.is-files {
  color: #92600e;
  background: color-mix(in srgb, #d9a13b 15%, var(--bg));
  border-color: color-mix(in srgb, #d9a13b 42%, var(--line));
}
.st-pill.is-sock {
  color: #1d5fa7;
  background: color-mix(in srgb, #2d74c4 14%, var(--bg));
  border-color: color-mix(in srgb, #2d74c4 40%, var(--line));
}
.st-pill.is-mem,
.st-pill.is-wb {
  color: #0f766e;
  background: color-mix(in srgb, #14b8a6 14%, var(--bg));
  border-color: color-mix(in srgb, #0f766e 38%, var(--line));
}
.st-pill.is-harm {
  color: var(--rq2-accent);
  background: color-mix(in srgb, var(--rq2-accent) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--rq2-accent) 36%, var(--line));
}
.st-pill.is-pool {
  color: #475569;
  background: color-mix(in srgb, #64748b 14%, var(--bg));
  border-color: color-mix(in srgb, #64748b 36%, var(--line));
}
.st-pill.is-warn {
  color: #b45309;
  background: color-mix(in srgb, #d97706 14%, var(--bg));
  border-color: color-mix(in srgb, #d97706 38%, var(--line));
}
html[data-theme="dark"] .st-pill.is-files { color: #f0c674; }
html[data-theme="dark"] .st-pill.is-sock { color: #8cc2f7; }
html[data-theme="dark"] .st-pill.is-mem,
html[data-theme="dark"] .st-pill.is-wb { color: #5eead4; }
html[data-theme="dark"] .st-pill.is-pool { color: #cbd5e1; }
html[data-theme="dark"] .st-pill.is-warn { color: #fbbf24; }
@media (max-width: 720px) {
  .setting-card .setting-brief > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .setting-card .setting-brief dt {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    padding: 8px 14px 6px;
  }
  .setting-card .setting-brief dd {
    padding: 8px 14px 10px;
  }
}

/* Plain-language experimental setting briefs (Sections 1, 2, 3) */
.setting-brief {
  margin: 14px 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  display: grid;
  gap: 10px;
}
.setting-brief > div {
  display: grid;
  grid-template-columns: minmax(145px, 195px) minmax(0, 1fr);
  gap: 6px 18px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.setting-brief > div:first-child {
  padding-top: 0;
  border-top: 0;
}
.setting-brief dt {
  margin: 0;
  font: 650 13.5px/1.45 var(--font);
  color: var(--text);
}
.setting-brief dd {
  margin: 0;
  font: 450 14.5px/1.6 var(--font);
  color: color-mix(in srgb, var(--text) 88%, var(--bg));
}
.study-prose .setting-brief .brief-bullets,
.brief-bullets {
  margin: 6px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
  font: 450 14.5px/1.52 var(--font);
  color: color-mix(in srgb, var(--text) 90%, var(--bg));
}
.setting-brief dd > .brief-bullets:first-child {
  margin-top: 0;
}
.study-prose .setting-brief .brief-bullets li,
.brief-bullets li {
  margin: 0;
}
.study-prose .setting-brief .brief-bullets li strong,
.brief-bullets strong {
  font-weight: 650;
  color: var(--text);
}
.why-matters-box .brief-bullets {
  margin-top: 8px;
  font-size: 15px;
}
@media (max-width: 720px) {
  .setting-brief > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

/* Simpler, restrained linear transcript view (Stealing Thoughts-inspired, low-color chrome) */
.case-study-box .cot-transcript {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 14px 0 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: var(--bg);
  overflow: hidden;
}
.case-study-box .cot-transcript .cot-step {
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.case-study-box .cot-transcript .cot-step:first-child {
  border-top: 0;
}
.cot-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.cot-transcript .cot-step-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-inset);
  border: 1px solid var(--border-card);
  font: 600 11.5px/1.35 var(--font);
  color: var(--muted);
}
.cot-transcript .cot-step-first .cot-step-tag,
.cot-transcript .cot-step-break .cot-step-tag {
  color: var(--rq2-accent);
  border-color: color-mix(in srgb, var(--rq2-accent) 30%, var(--border-card));
  background: color-mix(in srgb, var(--rq2-accent) 6%, var(--bg));
}
.cot-transcript .cot-step h4 {
  margin: 0;
  font: 650 14.5px/1.35 var(--font);
  color: var(--text);
}
.cot-transcript .cot-quote {
  margin: 0 0 8px;
  padding: 10px 14px;
  border-left: 2.5px solid color-mix(in srgb, var(--text) 20%, transparent);
  background: color-mix(in srgb, var(--surface-inset) 55%, var(--bg));
  border-radius: 0 6px 6px 0;
  font: 460 14.5px/1.6 var(--font);
  color: var(--text);
}
.cot-transcript .cot-step-break .cot-quote,
.cot-transcript .cot-step-shift .cot-quote {
  border-left-color: color-mix(in srgb, var(--rq2-accent) 42%, transparent);
}
.cot-red-ul {
  background: rgba(200, 42, 68, 0.06);
  color: inherit;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
  text-decoration: underline;
  text-decoration-color: #c82a44;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:root[data-theme="dark"] .cot-red-ul {
  background: rgba(244, 114, 132, 0.12);
  text-decoration-color: #f47284;
}
.cot-green-ul {
  background: rgba(22, 135, 84, 0.06);
  color: inherit;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
  text-decoration: underline;
  text-decoration-color: #168754;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:root[data-theme="dark"] .cot-green-ul {
  background: rgba(74, 222, 128, 0.10);
  text-decoration-color: #4ade80;
}
.cot-transcript .cot-note {
  margin: 0;
  font: 450 13.5px/1.5 var(--font);
  color: var(--muted);
}
.case-study-box .agent-roster-strip {
  background: var(--surface-inset);
  border-color: var(--border-card);
}
.case-study-box .roster-chip {
  background: var(--bg);
  border: 1px solid var(--border-card);
  color: var(--text);
}
.case-study-box .roster-chip.roster-first {
  border-color: color-mix(in srgb, var(--rq2-accent) 42%, var(--border-card));
  color: var(--rq2-accent);
}
:root[data-theme="dark"] .case-study-box .roster-chip {
  background: var(--bg);
  border-color: var(--border-card);
  color: var(--text);
}
:root[data-theme="dark"] .case-study-box .roster-chip.roster-first {
  border-color: color-mix(in srgb, var(--rq2-accent) 55%, var(--border-card));
  color: var(--rq2-accent);
}
:root[data-theme="dark"] .cot-transcript .cot-step-tag {
  background: var(--surface-inset);
  border-color: var(--border-card);
  color: var(--muted);
}
:root[data-theme="dark"] .cot-transcript .cot-step-first .cot-step-tag,
:root[data-theme="dark"] .cot-transcript .cot-step-break .cot-step-tag {
  color: var(--rq2-accent);
  border-color: color-mix(in srgb, var(--rq2-accent) 45%, var(--border-card));
  background: color-mix(in srgb, var(--rq2-accent) 10%, var(--bg));
}

/* Cleaner /traces/ browser bar & collapsible filter drawer */
.traces-case-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.traces-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: 600 13.5px/1 var(--font);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.traces-nav-btn:hover:not(:disabled) {
  border-color: var(--text);
  background: var(--surface-inset);
}
.traces-nav-btn:disabled {
  opacity: .38;
  cursor: default;
}
.traces-filter-drawer {
  margin: 10px 0 18px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--surface-card);
  padding: 8px 14px;
}
.traces-filter-drawer > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 13.5px/1.4 var(--font);
  color: var(--muted);
}
.traces-filter-drawer > summary::before {
  content: "▸";
  font-size: 12px;
  transition: transform .15s;
}
.traces-filter-drawer[open] > summary::before {
  transform: rotate(90deg);
}
.traces-filter-drawer[open] > summary {
  margin-bottom: 10px;
  color: var(--text);
}
.traces-filter-drawer .traces-threat-filter,
.traces-filter-drawer .traces-model-filter {
  margin: 8px 0 4px;
}
.traces-page-title {
  font-family: var(--font) !important;
  font-weight: 700 !important;
}
.traces-hero .sub-intro {
  font-family: var(--font);
}

/* Prominent Opus solo-to-swarm quote flip callout in Section 2.2 */
.opus-flip-callout {
  margin: 16px 0 22px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--rq2-accent) 26%, var(--border-card));
  border-radius: var(--radius-card);
  background: var(--surface-card);
}
.opus-flip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
  font: 500 14px/1.4 var(--font);
  color: var(--text);
}
.opus-flip-head .model-logo {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
}
.opus-flip-head a {
  font: 600 13px/1.3 var(--font);
  color: var(--rq2-accent);
  text-decoration: none;
}
.opus-flip-head a:hover { text-decoration: underline; text-underline-offset: 2px; }
.opus-flip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.opus-flip-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 20px/1 var(--font);
  color: var(--rq2-accent);
}
.opus-flip-card {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  background: var(--bg);
}
.opus-flip-card.is-swarm {
  border-color: color-mix(in srgb, var(--rq2-accent) 36%, var(--border-card));
  background: color-mix(in srgb, var(--rq2-accent) 4%, var(--bg));
}
.opus-flip-tag {
  display: inline-block;
  margin-bottom: 6px;
  font: 650 12px/1.3 var(--font);
  color: var(--muted);
}
.opus-flip-card.is-swarm .opus-flip-tag { color: var(--rq2-accent); }
.opus-flip-card blockquote {
  margin: 0;
  font: 500 14.5px/1.55 var(--font);
  color: var(--text);
}
@media (max-width: 760px) {
  .opus-flip-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .opus-flip-arrow { transform: rotate(90deg); height: 18px; }
}

/* Early 3-Panel Headline Figure ("Main results at a glance") */
/* Figure 1: Research Questions (top row) + 3D Animated Pipeline (bottom row) */
.rq-pipeline-figure {
  margin: 16px 0 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: var(--surface-card);
  text-align: left;
}
.rq-top-strip {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.rq-top-card {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  background: var(--bg);
}
.rq-c1 { border-top: 3px solid var(--rq1-accent); }
.rq-c2 { border-top: 3px solid var(--rq2-accent); }
.rq-c3 { border-top: 3px solid var(--rq3-accent); }
.rq-top-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  text-decoration: none;
}
.rq-top-head strong {
  font: 700 13.5px/1.2 var(--font);
}
.rq-c1 .rq-top-head strong { color: var(--rq1-accent); }
.rq-c2 .rq-top-head strong { color: var(--rq2-accent); }
.rq-c3 .rq-top-head strong { color: var(--rq3-accent); }
.rq-top-head span {
  font: 600 11.5px/1.2 var(--font);
  color: var(--muted);
}
.rq-top-head:hover span { color: var(--text); text-decoration: underline; }
.rq-top-card p {
  margin: 0;
  font: 450 13.5px/1.45 var(--font);
  color: var(--text);
}
@media (max-width: 860px) {
  .rq-top-strip { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.hero-rq-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.hero-rq-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font: 450 15.5px/1.55 var(--font);
  color: var(--text);
}
.hero-rq-list .rq-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font: 700 12.5px/1.35 var(--font);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.hero-rq-list .rq-tag:hover { text-decoration: underline; }
.rq-t1 { color: var(--rq1-accent); background: color-mix(in srgb, var(--rq1-accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--rq1-accent) 30%, var(--line)); }
.rq-t2 { color: var(--rq2-accent); background: color-mix(in srgb, var(--rq2-accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--rq2-accent) 30%, var(--line)); }
.rq-t3 { color: var(--rq3-accent); background: color-mix(in srgb, var(--rq3-accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--rq3-accent) 30%, var(--line)); }
.hero-bg-prose {
  margin-top: 24px;
}
.hf-p1 { border-top: 3px solid var(--rq1-accent); }
.hf-p2 { border-top: 3px solid var(--rq2-accent); }
.hf-p3 { border-top: 3px solid var(--rq3-accent); }
.hf-jump {
  font: 600 12px/1.2 var(--font);
  color: var(--muted);
  text-decoration: none;
}
.hf-jump:hover { color: var(--text); text-decoration: underline; }
.detection-caption {
  margin: 12px 0 0 !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--muted) !important;
}
.hf-rq {
  margin: 0 0 6px;
  font: 450 13px/1.42 var(--font);
  color: var(--muted);
}
.hf-rq strong {
  color: var(--text);
  font-weight: 700;
}
.hf-blbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hf-blbl .model-logo {
  flex-shrink: 0;
  margin-right: 0;
}
.hf-btrack {
  display: flex;
  align-items: stretch;
  height: 9px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  overflow: hidden;
}
.hf-btrack i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--rq1-accent);
}
.hf-btrack.is-stacked i {
  border-radius: 0;
  flex-shrink: 0;
}
.hf-btrack.is-stacked i:first-child { border-top-left-radius: 99px; border-bottom-left-radius: 99px; }
.hf-btrack.is-stacked i:last-child { border-top-right-radius: 99px; border-bottom-right-radius: 99px; }
.hf-btrack i.is-muted {
  background: color-mix(in srgb, var(--rq1-accent) 42%, var(--muted));
}
.hf-btrack i.is-wb,
.hf-btrack.is-stacked i.wb-st-peer,
.wb-st-peer { background: #0f766e; }
html[data-theme="dark"] .hf-btrack i.is-wb,
html[data-theme="dark"] .hf-btrack.is-stacked i.wb-st-peer,
html[data-theme="dark"] .wb-st-peer { background: #2dd4bf; }
.hf-btrack.is-stacked i.wb-st-pool,
.wb-st-pool { background: #2d74c4; }
html[data-theme="dark"] .hf-btrack.is-stacked i.wb-st-pool,
html[data-theme="dark"] .wb-st-pool { background: #60a5fa; }
.hf-btrack.is-stacked i.wb-st-blk,
.wb-st-blk { background: #d97706; }
html[data-theme="dark"] .hf-btrack.is-stacked i.wb-st-blk,
html[data-theme="dark"] .wb-st-blk { background: #f59e0b; }
.hf-btrack.is-stacked i.wb-st-fp,
.wb-st-fp { background: #dc2626; }
html[data-theme="dark"] .hf-btrack.is-stacked i.wb-st-fp,
html[data-theme="dark"] .wb-st-fp { background: #f87171; }
.hf-mech-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}
.hf-mech-box {
  padding: 9px 10px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--surface-card);
}
.hf-mech-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 7px;
  font: 600 12px/1.2 var(--font);
  color: var(--text);
}
.hf-mech-hdr span {
  font: 500 11px/1.2 var(--font);
  color: var(--muted);
}
.hf-mech-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}
.hf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 6px 4px;
  min-height: 54px;
  border-radius: 6px;
  font: 600 10.5px/1.2 var(--font);
  border: 1px solid transparent;
}
.hf-node img {
  display: block;
  width: 24px;
  height: auto;
}
.hf-node small {
  display: block;
  margin-top: 2px;
  font: 700 10.5px/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.hf-node.is-ok {
  background: color-mix(in srgb, #15803d 10%, var(--bg));
  border-color: color-mix(in srgb, #15803d 32%, var(--line));
  color: var(--text);
}
.hf-node.is-warn {
  background: color-mix(in srgb, #d97706 11%, var(--bg));
  border-color: color-mix(in srgb, #d97706 34%, var(--line));
  color: var(--text);
}
.hf-node.is-bad {
  background: color-mix(in srgb, var(--rq2-accent) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--rq2-accent) 42%, var(--line));
  color: var(--rq2-accent);
}
.hf-arr {
  font: 700 12px/1 var(--font);
  color: var(--muted);
}
.hf-overload-svg {
  display: block;
  width: 100%;
  height: auto;
}
.ov-box-safe {
  fill: color-mix(in srgb, #15803d 7%, var(--bg));
  stroke: color-mix(in srgb, #15803d 28%, var(--line));
  stroke-width: 1;
}
.ov-box-bad {
  fill: color-mix(in srgb, #dc2626 6%, var(--bg));
  stroke: color-mix(in srgb, #dc2626 32%, var(--line));
  stroke-width: 1;
}
.ov-lbl-safe { fill: #15803d; font: 700 10px/1 var(--font); }
.ov-lbl-bad { fill: #b91c1c; font: 700 10px/1 var(--font); }
html[data-theme="dark"] .ov-lbl-safe { fill: #86efac; }
html[data-theme="dark"] .ov-lbl-bad { fill: #fca5a5; }
.ov-vs { fill: var(--muted); font: 600 10px/1 var(--font); }
.ov-agent {
  fill: color-mix(in srgb, var(--rq1-accent) 16%, var(--bg));
  stroke: var(--rq1-accent);
  stroke-width: 1.3;
}
.ov-ag-t { fill: var(--text); font: 700 8.5px/1 var(--font); }
.ov-ln-ok { stroke: #15803d; stroke-width: 1.6; }
.ov-arr-ok { fill: #15803d; }
.ov-sys-ok {
  fill: color-mix(in srgb, #15803d 14%, var(--bg));
  stroke: #15803d;
  stroke-width: 1.3;
}
.ov-sys-t-ok { fill: #15803d; font: 700 9.5px/1 var(--font); }
.ov-sys-s-ok { fill: #15803d; font: 600 8.5px/1 var(--font); }
html[data-theme="dark"] .ov-sys-t-ok,
html[data-theme="dark"] .ov-sys-s-ok { fill: #86efac; }
.ov-ln-bad { stroke: #dc2626; stroke-width: 1.4; stroke-dasharray: 3 2; }
.ov-burst {
  fill: #dc2626;
  stroke: #991b1b;
  stroke-width: 1.2;
}
.ov-burst-t { fill: #ffffff; font: 800 8px/1 var(--font); letter-spacing: 0.02em; }
.ov-burst-s { fill: #fee2e2; font: 700 8.5px/1 var(--font); }
.hf-stacks {
  display: grid;
  gap: 11px;
  margin: auto 0;
}
.hf-stk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font: 500 12.5px/1.25 var(--font);
  color: var(--text);
}
.hf-stk-head span { color: var(--muted); font-size: 12px; }
.hf-stk-bar {
  display: flex;
  width: 100%;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  font: 700 11px/24px var(--font);
  color: #ffffff;
}
.hf-stk-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}
.hf-seg-peer { background: #0f766e; }
.hf-seg-pool { background: #64748b; }
.hf-seg-blk { background: #d97706; }
.hf-seg-fp { background: #dc2626; }
.hf-stk-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  font: 500 11.5px/1.3 var(--font);
  color: var(--muted);
}
.hf-stk-leg span { display: inline-flex; align-items: center; gap: 4px; }
.hf-stk-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.hf-sw-peer { background: #0f766e; }
.hf-sw-pool { background: #64748b; }
.hf-sw-blk { background: #d97706; }
.hf-sw-fp { background: #dc2626; }
.hf-silence-strip {
  margin-top: 2px;
  padding: 6px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--rq3-accent) 7%, var(--surface-card));
  border: 1px solid color-mix(in srgb, var(--rq3-accent) 18%, var(--border-card));
  font: 500 11.5px/1.35 var(--font);
  color: var(--text);
}
.hf-silence-strip code {
  font-size: 11px;
  padding: 0 3px;
}

/* Section 3.1 Open Model-First Ranked Table */
.wb-rank-card {
  margin: 14px 0 12px;
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--rq3-accent);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.wb-rank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px 12px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--line);
}
.wb-rank-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font: 500 11.5px/1.3 var(--font);
  color: var(--muted);
}
.wb-rank-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wb-rank-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.wb-rank-title {
  margin: 0 0 3px;
  font: 680 15.5px/1.3 var(--font);
  color: var(--text);
}
.wb-rank-sub {
  margin: 0;
  font: 450 13px/1.45 var(--font);
  color: var(--muted);
}
.wb-rank-table {
  width: 100%;
  margin: 0;
  border: 0;
}
.wb-rank-table thead th:nth-child(2) {
  text-align: left;
}
.wb-rank-table thead th.num {
  text-align: right;
}
.wb-rank-table thead th small {
  display: block;
  font: 450 11px/1.25 var(--font);
  color: var(--muted);
  margin-top: 2px;
}
.wb-rank-table th.wb-rk-model {
  white-space: nowrap;
  text-align: left;
  font-weight: 600;
}
.wb-rk-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.wb-rank-num {
  display: inline-block;
  min-width: 18px;
  font: 650 12px/1 var(--font);
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wb-rk-barcell {
  min-width: 245px;
  width: 36%;
}
.wb-rk-barwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 10px;
}
.wb-rank-track {
  display: flex;
  align-items: stretch;
  height: 11px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
}
.wb-rank-track i {
  display: block;
  height: 100%;
  flex-shrink: 0;
}
.wb-rank-track i:first-child { border-top-left-radius: 99px; border-bottom-left-radius: 99px; }
.wb-rank-track i:last-child { border-top-right-radius: 99px; border-bottom-right-radius: 99px; }
.wb-st-missed {
  background: rgba(185, 56, 75, 0.16);
}
:root[data-theme="dark"] .wb-st-missed {
  background: rgba(244, 114, 132, 0.20);
}
.wb-st-safe {
  background: rgba(21, 128, 61, 0.15);
  box-shadow: inset 1.5px 0 0 rgba(21, 128, 61, 0.52);
}
:root[data-theme="dark"] .wb-st-safe {
  background: rgba(74, 222, 128, 0.16);
  box-shadow: inset 1.5px 0 0 rgba(74, 222, 128, 0.55);
}
.wb-rk-cnt {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  text-align: right;
  font: 700 12.5px/1.15 var(--font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wb-rk-cnt .wb-denom {
  font-weight: 450;
  color: var(--muted);
}
.wb-rk-missed {
  font: 500 11px/1 var(--font);
  color: color-mix(in srgb, var(--rq2-accent) 82%, var(--muted));
}
.wb-rank-table tbody tr.is-zero .wb-rk-cnt {
  color: var(--muted);
}
.wb-rank-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wb-bk-cell {
  font: 450 12.5px/1.35 var(--font);
  color: var(--muted);
  white-space: nowrap;
}
.wb-bk-cell strong {
  color: var(--text);
  font-weight: 650;
}

/* Unmistakable interactive toggle pills for ALL collapsible disclosures */
.result-details {
  margin: 14px 0;
}
.result-details > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 95%, var(--text));
  background: var(--surface-card);
  color: var(--text);
  font: 550 13px/1.3 var(--font) !important;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.result-details > summary::-webkit-details-marker { display: none; }
.result-details > summary::before {
  content: "▸";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  font: 600 11px/1 var(--font);
  flex-shrink: 0;
  transition: transform .16s ease, background .15s ease;
}
.result-details > summary::after {
  content: "Show";
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--muted);
  font: 600 10.5px/1.4 var(--font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.result-details > summary:hover {
  border-color: color-mix(in srgb, var(--text) 38%, var(--line));
  background: color-mix(in srgb, var(--text) 5%, var(--surface-card));
}
.result-details[open] > summary {
  margin-bottom: 12px;
  border-color: color-mix(in srgb, var(--text) 30%, var(--line));
}
.result-details[open] > summary::before {
  transform: rotate(90deg);
}
.result-details[open] > summary::after {
  content: "Hide";
}

/* Unified Typography & Spacing System:
   ET Book editorial serif for all headings; Newsreader serif for running prose & references;
   crisp Inter sans-serif for all UI, cards, toggles, and data tables;
   single unified monospace token for BibTeX & trace metadata. */
:root {
  --prose: "Newsreader", "ET Book", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* 1. Headings: exact editorial ET Book scale (matches wordmark & subpages) */
h2.life-phase {
  margin: 0 0 16px !important;
  text-wrap: pretty;
}
h2.hero-subhead,
#headline-fig-title,
h3.review-subhead,
h3.rq-subhead,
.case-study-head h3,
.blog-references h3,
.citation-head h3 {
  font-family: var(--editorial) !important;
  font-weight: 700 !important;
  letter-spacing: -0.012em !important;
  line-height: 1.25 !important;
  text-wrap: pretty;
}
h2.hero-subhead {
  margin: 0 0 12px !important;
}
h2.hero-subhead,
h3.rq-subhead {
  font-size: clamp(20px, 1.75vw, 23px) !important;
}
h3.rq-subhead {
  margin: 0 0 12px !important;
}
#headline-fig-title,
h3.review-subhead,
.case-study-head h3,
.blog-references h3,
.citation-head h3 {
  font-size: clamp(19px, 1.55vw, 21.5px) !important;
}
.hf-metric-title,
.yesno-card h4,
.fm-card h4,
.fm-matrix .fm-card h4,
.cot-transcript .cot-step h4,
.shift-panel-title,
.wb-rank-title {
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.01em !important;
}

/* 2. Running prose in Newsreader serif (matches ET Book headings); UI, cards & tables stay crisp Inter */
.hero-lead-prose > p,
.study-prose > p,
.rq-subsection > p.section-bridge,
.section-bridge,
.result-details > p:not(.results-legend),
.blog-prose > p,
.wb-qa-list > li,
.detection-hero-lead {
  font-family: var(--prose) !important;
  font-size: clamp(17px, 1.22vw, 18.5px) !important;
  font-weight: 400 !important;
  line-height: 1.62 !important;
  letter-spacing: 0 !important;
  font-optical-sizing: auto;
}
.hero-lead-prose > p:first-of-type {
  font-size: clamp(18px, 1.35vw, 20px) !important;
}
.wb-qa-list > li {
  font-size: clamp(16.5px, 1.15vw, 17.5px) !important;
}
:is(.hero-lead-prose, .study-prose, .rq-subsection, .blog-prose, .wb-qa-list, .result-details) strong {
  font-weight: 600;
}
.blog-references li {
  font-family: var(--prose) !important;
  font-size: 15.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}
.section-bridge {
  margin: 10px 0 16px !important;
}
.hf-sub,
.rq-top-card p,
.setting-card .setting-brief dd,
.setting-tags-list li,
.yesno-card li,
.yesno-card .yesno-lead,
.brief-bullets,
.brief-bullets li,
.sf-takeaway-note li,
.wb-quote-card blockquote {
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 450 !important;
  line-height: 1.55 !important;
}
.results-matrix td,
.results-matrix tbody th,
.bench-audit-table td,
.plot-scope,
.wb-rank-sub,
.shift-panel-sub,
.evidence-rule {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 450 !important;
  line-height: 1.48 !important;
}
.results-matrix tbody th,
.bench-audit-table tbody th {
  font-weight: 600 !important;
}
.plot-scope {
  margin: 4px 0 12px !important;
}
.result-details > p {
  margin: 0 0 12px !important;
  color: var(--muted);
}
.results-matrix thead th,
.bench-audit-table thead th,
.hf-metric-sub,
.results-legend,
.bench-audit-note,
.fm-card p,
.cot-transcript .cot-note,
.citation-note {
  font-family: var(--font) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
.results-matrix thead th,
.bench-audit-table thead th {
  font-weight: 600 !important;
}

/* 3. Monospace & inline code consistency */
.bibtex-code,
.bibtex-code code,
.evidence-meta {
  font-family: var(--font-mono) !important;
}
main code {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
}
main pre code,
.bibtex-code code {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-weight: 450 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.bench-audit-table td code,
.log-ev-table td code {
  font-family: var(--font-mono) !important;
  font-size: 11.5px !important;
  font-weight: 450 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  background: color-mix(in srgb, var(--text) 6%, transparent) !important;
}
.setting-chips code,
.hf-silence-strip code {
  font-family: inherit !important;
  font-size: inherit !important;
  padding: 0 !important;
  background: transparent !important;
}

/* 4. Consistent vertical rhythm, lists, and card geometry (zero section horizontal dividers) */
.hero .hero-layout {
  padding-block: 8px 4px !important;
}
.hero-overview {
  margin-top: 0 !important;
}
.lw-tldr {
  margin: 14px 0 46px !important;
}
:is(.section-bridge, .hero-lead-prose, .lw-tldr, .study-prose > p, .comp-ci-list, .setting-card .setting-brief dd) code {
  white-space: nowrap;
}
.hero-lead-prose {
  margin-bottom: 30px !important;
}
#motivation.overview {
  padding-top: 4px !important;
}
#findings.findings-primary {
  padding-bottom: 8px !important;
}
section.life-half {
  margin-top: 56px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 0 !important;
}
#panel-swarmform.life-half {
  margin-top: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top: 0 !important;
}
.rq-subsection {
  margin-top: 42px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.section-bridge {
  margin: 0 0 20px !important;
}
.rq-pipeline-figure,
.headline-figure {
  margin: 18px 0 0 !important;
  padding: 16px 18px 18px !important;
  border-radius: 12px !important;
}
.fm-matrix {
  margin: 14px 0 22px !important;
}
.shift-dashboard-wrap,
.case-study-box,
.results-matrix-block {
  margin: 14px 0 20px !important;
}
.setting-card {
  margin: 14px 0 16px !important;
  border-radius: 10px !important;
}
.wb-rank-card,
.yesno-card,
.fm-card,
.shift-dashboard > .shift-panel,
.case-study-box .cot-transcript {
  border-radius: 10px !important;
}
.study-prose .wb-qa-list,
.wb-qa-list,
.wb-qa-list.sf-settings-list {
  margin: 12px 0 16px !important;
  padding-left: 1.25em !important;
  display: grid;
  gap: 10px !important;
}
.study-prose .wb-qa-list li + li,
.wb-qa-list li + li {
  margin-top: 0 !important;
}
.blog-references {
  margin: 30px 0 16px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.blog-references ol {
  margin: 0 0 12px !important;
  padding-left: 26px !important;
}
.blog-references li + li {
  margin-top: 7px !important;
}
.citation-block {
  margin: 24px 0 8px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.implications-block,
.rq-block,
.failure-modes-index,
footer,
.site-footer,
.footer-bottom {
  border-top: 0 !important;
}
footer,
.site-footer {
  margin-top: 18px !important;
  padding-top: 12px !important;
}
.footer-bottom {
  margin-top: 10px !important;
  padding-top: 4px !important;
}
@media (max-width: 720px) {
  .dt-break {
    display: none;
  }
}
@media (max-width: 680px) {
  html {
    scroll-padding-top: 64px;
  }
  /* Sleek single-row mobile sticky header (~48px instead of 109px two-row wrap) */
  .site-header .nav-inner {
    padding-block: 6px !important;
    padding-inline: 12px !important;
    min-height: 46px;
  }
  #primary-navigation {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start !important;
    gap: 14px !important;
    font-size: 13px !important;
    padding: 2px 44px 2px 2px !important;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent calc(100% - 34px));
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent calc(100% - 34px));
  }
  #primary-navigation::-webkit-scrollbar {
    display: none;
  }
  #primary-navigation a {
    white-space: nowrap !important;
    flex: 0 0 auto;
    padding-block: 4px !important;
  }
  .site-header .subpage-theme-toggle {
    right: 10px !important;
    width: 34px !important;
    height: 34px !important;
    background: var(--bg);
    z-index: 2;
  }

  /* Compact mobile figures, setting cards, escalation strip, and charts */
  section.life-half,
  #panel-swarmform.life-half {
    margin-top: 24px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
  .rq-subsection {
    margin-top: 20px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    scroll-margin-top: 66px !important;
  }
  .rq-pipeline-figure,
  .headline-figure {
    padding: 12px 12px 14px !important;
  }
  .study-prose .setting-tags-list li,
  .setting-tags-list li {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3px !important;
  }
  /* Clean single-row 5-step escalation progression on phones (no dangling row-2 arrows) */
  .escalation-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  .escalation-strip .esc-arr {
    display: none !important;
  }
  .escalation-strip .esc-step {
    padding: 7px 2px !important;
    min-width: 0;
  }
  .escalation-strip .esc-step strong {
    font-size: 12px !important;
  }
  .escalation-strip .esc-step small {
    font-size: 8.5px !important;
    letter-spacing: -0.03em;
  }
  .results-matrix-scroll {
    -webkit-overflow-scrolling: touch;
  }
  .citation-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cite-btn {
    min-height: 36px;
  }
  /* Traces page mobile study tabs & typography consistency */
  .traces-study-filter {
    gap: 12px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .traces-study-filter::-webkit-scrollbar {
    display: none;
  }
  .traces-study-btn {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 13.5px !important;
  }
}

/* Harmonize /traces/ heading/body typography with index.html (ET Book headings + Inter body) */
.traces-page-title {
  font-family: var(--editorial) !important;
  font-weight: 700 !important;
}
.case-intro,
.case-intro p,
.case-intro .case-setup {
  font-family: var(--font) !important;
}

.wb-denom,
.wb-na {
  color: var(--muted);
  font-weight: 450;
}
.wb-cell-note {
  display: block;
  font: 450 11px/1.25 var(--font);
  color: var(--muted);
  margin-top: 1px;
}

/* Hide institution logo belt when [hidden] is set */
.institution-band[hidden],
section.institutions[hidden] {
  display: none !important;
}

/* LessWrong-style top TL;DR summary box */
.lw-tldr {
  margin: 18px 0 26px;
  padding: 18px 22px 20px;
  border: 1px solid var(--border-card);
  border-left: 3.5px solid color-mix(in srgb, var(--text) 78%, var(--bg));
  border-radius: 10px;
  background: var(--surface-card);
  text-align: left;
}
.lw-tldr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 10px;
}
.lw-tldr-title {
  margin: 0;
  font-family: var(--editorial) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--text);
}
.lw-tldr-meta {
  font: 550 12.5px/1.3 var(--font);
  color: var(--muted);
}
.lw-tldr-lead {
  margin: 0 0 12px !important;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--text);
}
.lw-tldr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.lw-tldr-list li {
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  font-family: var(--font) !important;
  font-size: 14.5px !important;
  font-weight: 450 !important;
  line-height: 1.6 !important;
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
.lw-tldr-list li:first-child {
  padding-top: 0;
  border-top: 0;
}
.lw-tldr-list strong {
  font-weight: 650;
  color: var(--text);
}
.lw-tldr-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 7px;
  padding: 1px 8px;
  border-radius: 999px;
  font: 700 11.5px/1.45 var(--font);
  text-decoration: none;
  vertical-align: 1px;
  border: 1px solid transparent;
}
.lw-tldr-tag:hover { text-decoration: underline; text-underline-offset: 2px; }
.lw-tldr-tag.t1 { color: var(--rq1-accent); background: color-mix(in srgb, var(--rq1-accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--rq1-accent) 32%, var(--line)); }
.lw-tldr-tag.t2 { color: var(--rq2-accent); background: color-mix(in srgb, var(--rq2-accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--rq2-accent) 32%, var(--line)); }
.lw-tldr-tag.t3 { color: var(--rq3-accent); background: color-mix(in srgb, var(--rq3-accent) 10%, var(--bg)); border-color: color-mix(in srgb, var(--rq3-accent) 32%, var(--line)); }
@media (max-width: 680px) {
  .lw-tldr { padding: 14px 15px 16px; margin: 14px 0 20px; }
  .lw-tldr-list li { font-size: 14px !important; }
}
.hf-btrack i.is-fm {
  background: var(--rq2-accent);
}
.hf-btrack i.is-fm-mid {
  background: color-mix(in srgb, var(--rq2-accent) 62%, var(--muted));
}
.hf-mech-contagion {
  margin-top: auto;
}

/* Section 2.3: Timestamped server-log evidence table */
.log-evidence-card {
  margin: 0 0 16px;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.log-ev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 9px 14px;
  background: var(--surface-card);
  border-bottom: 1px solid var(--line);
  font: 500 12.5px/1.4 var(--font);
  color: var(--muted);
}
.log-ev-head strong {
  color: var(--text);
  font-weight: 650;
}
.log-ev-table {
  margin: 0 !important;
  border: 0 !important;
  width: 100%;
}
.log-ev-table th,
.log-ev-table td {
  padding: 7px 12px !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  vertical-align: top;
}
.log-ev-table tbody tr.log-row-see {
  background: color-mix(in srgb, var(--rq1-accent) 5%, transparent);
}
.log-ev-table tbody tr.log-row-act {
  background: color-mix(in srgb, var(--rq2-accent) 6%, transparent);
}

/* Section 2.4: Dedicated Compositional Failure card */
.comp-failure-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.08fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 14px 0 6px;
  padding: 18px 20px;
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--rq2-accent);
  border-radius: 10px;
  background: var(--surface-card);
}
.comp-visual-col {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: var(--bg);
}
.comp-stats-col h4 {
  margin: 0 0 10px;
  font-family: var(--font) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.32 !important;
  color: var(--text);
}
.comp-ci-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.comp-ci-list li {
  display: grid;
  grid-template-columns: 92px 58px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  font: 450 13px/1.35 var(--font);
  font-variant-numeric: tabular-nums;
}
.comp-ci-list li strong {
  text-align: right;
  font-weight: 700;
  color: var(--rq2-accent);
}
.comp-ci-list li:first-child strong {
  color: #15803d;
}
:root[data-theme="dark"] .comp-ci-list li:first-child strong {
  color: #86efac;
}
.comp-ci-list li small {
  font-size: 12px;
  color: var(--muted);
}
.comp-note {
  margin: 0 !important;
  font: 450 12.5px/1.5 var(--font) !important;
  color: var(--muted);
}

/* Section 2.1 Single-agent (5 modes) vs. Multi-agent (Compositional Failure) split matrix */
.fm-matrix-split .fm-row-single,
.fm-matrix-split .fm-row-multi {
  grid-template-columns: 96px minmax(0, 1fr);
}
.fm-single-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.fm-single-grid .fm-span-2 {
  grid-column: span 2;
}
.fm-single-grid .fm-span-3 {
  grid-column: span 3;
  border-top: 1px solid var(--line);
}
.fm-single-grid .fm-row2-start {
  border-left: 0 !important;
}
.fm-cell-wide .fm-comparison-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sf-controls-inline {
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}
.sf-controls-inline .channel-check-bar {
  margin: 0;
}
.results-matrix th.group-env,
.results-matrix td[data-mech="capacity"] {
  border-left: 2px solid color-mix(in srgb, var(--line) 85%, var(--text));
}
.results-matrix th.group-env small {
  display: block;
  font: 500 10px/1.2 var(--font);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 2px;
}
.fm-cell-wide p a {
  color: var(--link-blue, #1a5fb4);
  text-decoration: underline;
  text-underline-offset: 2.5px;
  font-weight: 600;
}
.fm-cell-wide p a:hover {
  color: var(--link-blue-hover, #12478c);
}

/* Unified blue underlined style for all inline prose, trace, log, and report links */
:root {
  --link-blue: #1a5fb4;
  --link-blue-hover: #0f4488;
}
:root[data-theme="dark"] {
  --link-blue: #6eb5f7;
  --link-blue-hover: #9bd0ff;
}
.lw-tldr a:not(.lw-tldr-tag),
.hero-lead-prose a:not([href^="#ref-"]),
.study-prose a:not([href^="#ref-"]),
.setting-card a:not([href^="#ref-"]),
.brief-bullets a:not([href^="#ref-"]),
.section-bridge a:not([href^="#ref-"]),
.plot-scope a:not([href^="#ref-"]),
.esc-link,
.cot-note a,
.opus-flip-head a,
.evidence-meta a,
.finding-foot a,
.mp-jump,
.blog-references a {
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 2.5px;
  text-decoration-thickness: 1.25px;
  font-weight: 550;
}
.lw-tldr a:not(.lw-tldr-tag):hover,
.hero-lead-prose a:not([href^="#ref-"]):hover,
.study-prose a:not([href^="#ref-"]):hover,
.setting-card a:not([href^="#ref-"]):hover,
.brief-bullets a:not([href^="#ref-"]):hover,
.section-bridge a:not([href^="#ref-"]):hover,
.plot-scope a:not([href^="#ref-"]):hover,
.esc-link:hover,
.cot-note a:hover,
.opus-flip-head a:hover,
.evidence-meta a:hover,
.finding-foot a:hover,
.mp-jump:hover,
.blog-references a:hover {
  color: var(--link-blue-hover);
  text-decoration-thickness: 1.75px;
}
.bench-pr-link,
.bench-src-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.results-matrix tbody th a {
  color: var(--text);
  text-decoration: none;
}
.results-matrix tbody th a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 860px) {
  .fm-matrix-split .fm-row-single,
  .fm-matrix-split .fm-row-multi {
    grid-template-columns: minmax(0, 1fr);
  }
  .fm-single-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fm-single-grid .fm-span-2,
  .fm-single-grid .fm-span-3 {
    grid-column: span 1;
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }
  .fm-single-grid .fm-cell:first-child {
    border-top: 0;
  }
  .fm-cell-wide .fm-comparison-wide {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 820px) {
  .comp-failure-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 14px;
    gap: 14px;
  }
  .comp-ci-list li {
    grid-template-columns: 78px 50px minmax(0, 1fr);
    font-size: 12.5px;
  }
}

/* Dedicated accent color (deep violet) for Compositional Failure (multi-agent mode) */
:root {
  --comp-accent: #6d3fb8;
  --comp-ink: #4c238f;
  --comp-border: rgba(109, 63, 184, 0.34);
  --comp-tint: rgba(109, 63, 184, 0.08);
}
:root[data-theme="dark"] {
  --comp-accent: #b794f4;
  --comp-ink: #e2d4ff;
  --comp-border: rgba(183, 148, 244, 0.38);
  --comp-tint: rgba(167, 139, 250, 0.12);
}

/* Setting card badge */
.st-pill.is-comp {
  color: var(--comp-ink);
  border-color: var(--comp-border);
  background: var(--comp-tint);
}

/* 2.1 Taxonomy row & card */
.fm-matrix-split .fm-row-multi {
  border-top: 2px solid var(--comp-border);
  background: color-mix(in srgb, var(--comp-accent) 2.5%, transparent);
}
.fm-matrix-split .fm-row-multi .fm-row-label {
  color: var(--comp-ink);
  background: color-mix(in srgb, var(--comp-accent) 9%, var(--bg));
  border-right: 1px solid var(--comp-border);
}
.fm-matrix-split .fm-row-multi .fm-row-label small {
  color: var(--comp-accent);
}
.fm-cell-wide h4 {
  color: var(--comp-ink);
}
.fm-cell-wide .fm-box-risk {
  border-color: var(--comp-border);
  background: var(--comp-tint);
}
.fm-cell-wide .fm-box-risk strong {
  color: var(--comp-ink);
}
.fm-cell-wide .fm-box-risk span {
  color: color-mix(in srgb, var(--comp-ink) 88%, var(--bg));
}

/* 2.1 Failure-mode bar plot: separate violet bar for Compositional Failure */
#failure-plot .plot-row-comp {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--comp-border);
}
#failure-plot .plot-row-comp .plot-label {
  color: var(--comp-ink);
}
#failure-plot .plot-row-comp .plot-fill {
  background: var(--comp-accent) !important;
}
#failure-plot .plot-row-comp .plot-value {
  color: var(--comp-ink);
  font-weight: 700;
}

/* 2.1 Results matrix legend & Compositional column */
.ramp-violet {
  background: linear-gradient(90deg, rgba(112, 62, 194, 0.16), #6d3fb8);
}
:root[data-theme="dark"] .ramp-violet {
  background: linear-gradient(90deg, rgba(166, 118, 244, 0.20), #a78bfa);
}
.results-matrix th.group-env,
.results-matrix td[data-mech="capacity"] {
  border-left: 2px solid var(--comp-border);
  background: color-mix(in srgb, var(--comp-accent) 3.5%, transparent);
}
.results-matrix th.group-env {
  color: var(--comp-ink);
  background: color-mix(in srgb, var(--comp-accent) 8%, var(--bg));
}
.results-matrix th.group-env .metric-term {
  color: var(--comp-ink);
}
.results-matrix th.group-env small {
  color: var(--comp-accent);
}
.results-matrix tfoot td[data-mech="capacity"] {
  color: var(--comp-ink);
  background: color-mix(in srgb, var(--comp-accent) 7%, var(--bg));
}

/* 2.4 Dedicated Compositional Failure card & SVG diagram */
.comp-failure-card {
  border-top: 3px solid var(--comp-accent);
}
.comp-ci-list li:not(:first-child) {
  border-color: color-mix(in srgb, var(--comp-accent) 26%, var(--line));
}
.comp-ci-list li:not(:first-child) strong {
  color: var(--comp-ink);
}
.comp-overload-svg .ov-box-bad {
  fill: color-mix(in srgb, var(--comp-accent) 8%, var(--bg));
  stroke: var(--comp-border);
}
.comp-overload-svg .ov-lbl-bad {
  fill: var(--comp-ink);
}
.comp-overload-svg .ov-ln-bad {
  stroke: var(--comp-accent);
}
.comp-overload-svg .ov-burst {
  fill: var(--comp-accent);
  stroke: var(--comp-ink);
}
:root[data-theme="dark"] .comp-overload-svg .ov-burst {
  fill: #7c3aed;
  stroke: #c4b5fd;
}

/* Compact inline metrics strip directly above results blocks */
.results-metrics-note {
  margin: -4px 0 12px !important;
  padding: 8px 12px;
  border-left: 2.5px solid color-mix(in srgb, var(--text) 32%, var(--line));
  border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--surface-card) 70%, var(--bg));
  font: 450 13.5px/1.5 var(--font) !important;
  color: color-mix(in srgb, var(--text) 86%, var(--bg));
}
.results-metrics-note strong {
  color: var(--text);
  font-weight: 650;
}
.wb-qa-list li > .result-details {
  margin: 8px 0 2px;
}
.intro-rq-list {
  margin: 8px 0 4px;
  padding-left: 20px;
  display: grid;
  gap: 5px;
  font-family: var(--editorial);
  font-size: 17px;
  line-height: 1.62;
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
.intro-rq-list strong {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
#panel-swarmform .bench-cluster-bar {
  margin: 18px 0 16px;
}
#panel-swarmform .bench-audit-note {
  margin-top: 14px;
}
#panel-swarmform .sf-controls-inline {
  margin-bottom: 16px;
}
#swarmform-org .wb-qa-list {
  margin: 16px 0 22px;
  gap: 18px;
}

/* Mobile spacing & responsive chart/card optimization */
@media (max-width: 680px) {
  .lw-tldr {
    padding: 15px 16px 17px !important;
    margin: 12px 0 36px !important;
  }
  .hero-lead-prose {
    margin-bottom: 24px !important;
  }
  .intro-rq-list {
    font-size: 15.5px;
    line-height: 1.56;
    gap: 6px;
  }
  section.life-half,
  #panel-swarmform.life-half {
    margin-top: 38px !important;
  }
  .rq-subsection {
    margin-top: 30px !important;
  }
  /* Stack plot rows cleanly onto 2 lines so long model names never collide with bars */
  .rate-plot {
    padding: 14px 14px 12px !important;
  }
  .rate-plot .plot-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px !important;
    padding: 8px 0 !important;
  }
  .rate-plot .plot-label {
    font-size: 13.5px !important;
    white-space: normal;
  }
  .plot-band.plot-band-prog {
    grid-template-columns: minmax(0, 1fr) 10.6em !important;
    gap: 0.55rem !important;
  }
  #whistleblow-effect-plot .plot-band.plot-band-prog {
    grid-template-columns: minmax(0, 1fr) 8.4em !important;
    gap: 0.55rem !important;
  }
  .plot-value.plot-value-prog {
    font-size: 12.5px !important;
  }
  /* Clean 2-column mobile grid for 5-step Opus escalation strip (with N=32 spanning full width) */
  .escalation-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .escalation-strip .esc-arr {
    display: none !important;
  }
  .escalation-strip .esc-step {
    padding: 9px 6px !important;
  }
  .escalation-strip .esc-step:last-child {
    grid-column: span 2;
  }
  .comp-visual-3d .dl-comp {
    height: 220px !important;
  }
  .case-study-head {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px !important;
  }
}
@media (max-width: 520px) {
  .evidence-tabs {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Compact vertical trim: horizontal 3-card Sec 2.2 CoT storyboard, tighter Sec 2.1 matrix & cards, expandable Sec 3.1 zero-row summary */
@media (min-width: 821px) {
  .case-study-box .cot-transcript {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .case-study-box .cot-transcript .cot-step {
    border-top: 0 !important;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 13px 15px !important;
  }
  .case-study-box .cot-transcript .cot-step:first-child {
    border-left: 0;
  }
  .case-study-box .cot-transcript .cot-quote {
    flex: 0 0 auto !important;
  }
  .case-study-box .cot-transcript .cot-note {
    margin-top: auto;
    padding-top: 8px;
  }
}
#six-failure-modes .results-matrix tbody th,
#six-failure-modes .results-matrix tbody td {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
#six-failure-modes .fm-cell {
  padding: 11px 13px 12px !important;
}
#six-failure-modes .fm-cell h4 {
  margin-bottom: 7px !important;
}
#six-failure-modes .fm-scene {
  gap: 6px !important;
  margin-bottom: 8px !important;
}
#six-failure-modes .fm-box {
  padding: 6px 9px !important;
}
.wb-zero-toggle-row td {
  padding: 0 !important;
  border-top: 1px solid var(--line);
}
.wb-zero-toggle-btn {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 10px 16px;
  border: 0;
  background: color-mix(in srgb, var(--text) 3.5%, transparent);
  color: var(--muted);
  font: 450 12.5px/1.4 var(--font);
  text-align: left;
  cursor: pointer;
}
.wb-zero-toggle-btn:hover {
  background: color-mix(in srgb, var(--text) 6.5%, transparent);
  color: var(--text);
}
.wb-zero-toggle-btn strong {
  color: var(--text);
  font-weight: 650;
}
.wb-zt-cta {
  font: 600 12px/1.2 var(--font);
  color: var(--link-blue);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .wb-zero-toggle-btn {
    position: sticky;
    left: 0;
    width: auto;
    max-width: calc(100vw - 44px);
    padding: 10px 12px;
  }
}

/* Generous editorial breathing room for the opening Hero → TL;DR → Introduction → Figure 1 flow */
.hero {
  padding-top: 26px !important;
}
.hero-copy .emergence-title {
  margin-bottom: 24px !important;
}
.lw-tldr {
  margin: 0 0 56px !important;
  padding: 26px 30px 28px !important;
}
.lw-tldr-head {
  margin-bottom: 14px !important;
}
.lw-tldr-title {
  font-size: 20px !important;
}
.lw-tldr-lead {
  margin: 0 0 18px !important;
  font-size: 15.5px !important;
  line-height: 1.68 !important;
}
.lw-tldr-list {
  gap: 16px !important;
}
.lw-tldr-list li {
  padding-top: 16px !important;
  font-size: 15px !important;
  line-height: 1.68 !important;
}
.lw-tldr-list li:first-child {
  padding-top: 0 !important;
}
.hero-lead-prose {
  margin-bottom: 44px !important;
}
.hero-lead-prose .hero-subhead {
  margin-bottom: 14px !important;
}
.hero-lead-prose > p {
  line-height: 1.72 !important;
}
.intro-rq-list {
  list-style: none !important;
  margin: 18px 0 8px !important;
  padding: 0 !important;
  display: grid;
  gap: 11px !important;
}
.intro-rq-list li {
  margin: 0;
  padding: 0;
}
.hero-lead-prose a.intro-rq-item {
  --rq-c: var(--rq1-accent);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 18px 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--rq-c) 22%, var(--line));
  border-left: 4px solid var(--rq-c);
  background: color-mix(in srgb, var(--rq-c) 5%, var(--surface-card));
  color: var(--text) !important;
  text-decoration: none !important;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.hero-lead-prose a.intro-rq-item.rq1 { --rq-c: var(--rq1-accent); }
.hero-lead-prose a.intro-rq-item.rq2 { --rq-c: var(--rq2-accent); }
.hero-lead-prose a.intro-rq-item.rq3 { --rq-c: var(--rq3-accent); }
.hero-lead-prose a.intro-rq-item:hover {
  background: color-mix(in srgb, var(--rq-c) 9.5%, var(--surface-card));
  border-color: color-mix(in srgb, var(--rq-c) 45%, var(--line));
  transform: translateY(-1px);
  color: var(--text) !important;
  text-decoration: none !important;
}
.intro-rq-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hero-lead-prose a.intro-rq-item .intro-rq-head strong {
  font-family: var(--editorial) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--rq-c) !important;
}
.hero-lead-prose a.intro-rq-item:hover .intro-rq-head strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intro-rq-arrow {
  font: 600 15px/1 var(--font);
  color: var(--rq-c);
  opacity: 0.72;
  transition: transform 140ms ease, opacity 140ms ease;
}
.hero-lead-prose a.intro-rq-item:hover .intro-rq-arrow {
  transform: translateY(2px);
  opacity: 1;
}
.intro-rq-desc {
  font-family: var(--editorial);
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 92%, var(--bg));
}
#panel-swarmform.life-half {
  margin-top: 64px !important;
}
@media (max-width: 680px) {
  .hero {
    padding-top: 16px !important;
  }
  .hero-copy .emergence-title {
    margin-bottom: 18px !important;
  }
  .lw-tldr {
    margin: 0 0 40px !important;
    padding: 18px 18px 20px !important;
  }
  .lw-tldr-lead {
    margin: 0 0 14px !important;
    font-size: 14.5px !important;
    line-height: 1.62 !important;
  }
  .lw-tldr-list {
    gap: 13px !important;
  }
  .lw-tldr-list li {
    padding-top: 13px !important;
    font-size: 14.2px !important;
    line-height: 1.62 !important;
  }
  .hero-lead-prose {
    margin-bottom: 32px !important;
  }
  .intro-rq-list {
    margin: 14px 0 6px !important;
    gap: 10px !important;
  }
  .hero-lead-prose a.intro-rq-item {
    padding: 12px 14px 13px;
  }
  .hero-lead-prose a.intro-rq-item .intro-rq-head strong {
    font-size: 17px !important;
  }
  .intro-rq-desc {
    font-size: 15.5px;
    line-height: 1.52;
  }
  #panel-swarmform.life-half {
    margin-top: 44px !important;
  }
}



