/* ═══════════════════════════════════════════════════════════
  EIDON - Benchmark Study
  We Gave the Same AI the Same Code. One Had Eidon. One Didn't.
  ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #F5F1E8;
  color: #0D0B1A;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1;
}

a { text-decoration: none; color: inherit; }

/* ── GRAIN OVERLAY ── */
#grain-canvas {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none; mix-blend-mode: overlay; opacity: 0.32;
}

/* ── READING PROGRESS ── */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 1000;
  background: linear-gradient(90deg, #241571 0%, #6D28D9 100%);
  width: 0%; transition: width 0.1s linear;
}


/* ══════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════ */
.blog-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 500;
  padding: 20px 56px;
  background: rgba(245,241,232,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.blog-nav-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.blog-nav.scrolled { border-bottom-color: rgba(36,21,113,0.08); }
.logo { display: flex; align-items: center; gap: 9px; }
.logo-name { font-size: 0.92rem; font-weight: 600; color: #0D0B1A; letter-spacing: -0.01em; }
.blog-nav-links { display: flex; gap: 32px; margin-left: auto; }
.blog-nav-links a { font-size: 0.84rem; color: rgba(13,11,26,0.36); transition: color 0.15s; }
.blog-nav-links a:hover { color: #0D0B1A; }
.blog-nav-links a.active { color: #241571; font-weight: 500; }
.blog-nav-cta { margin-left: auto; }
.blog-nav .btn-nav {
  font-size: 0.82rem; font-weight: 500; color: white;
  background: #241571; border: 1px solid #241571;
  border-radius: 100px; padding: 8px 18px;
  transition: background 0.15s;
}
.blog-nav .btn-nav:hover { background: #1e1185; }


/* ══════════════════════════════════════════════════════════
   STUDY LAYOUT + SIDE TOC
   ══════════════════════════════════════════════════════════ */
.study-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: stretch;
}
.study-toc {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: stretch;
}
.study-toc-inner {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 0 24px;
  border-left: 1px solid rgba(36,21,113,0.08);
}
.study-toc-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,21,113,0.3);
}
.study-toc a {
  display: block;
  padding: 8px 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(36,21,113,0.4);
  transition: color 0.15s, transform 0.15s;
}
.study-toc a:hover {
  color: #241571;
  transform: translateX(4px);
}
.study-toc a.active {
  color: #241571;
  transform: translateX(6px);
  font-weight: 600;
}
.article-body h2[id] {
  scroll-margin-top: 132px;
}


/* ══════════════════════════════════════════════════════════
  ARTICLE HEADER - full-width bordered box, grid throughout
  ══════════════════════════════════════════════════════════ */
@keyframes icon-float-1 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(4px, -12px, 0) rotate(2deg); }
}
@keyframes icon-float-2 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  35% { transform: translate3d(-6px, -10px, 0) rotate(-2deg); }
  70% { transform: translate3d(5px, -18px, 0) rotate(1.5deg); }
}
@keyframes icon-float-4 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  30% { transform: translate3d(-4px, -16px, 0) rotate(-2.5deg); }
  65% { transform: translate3d(6px, -8px, 0) rotate(1.5deg); }
}
.article-header {
  padding: 88px 24px 0;
  background: #F5F1E8;
}
.article-header-box {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(36,21,113,0.14);
  padding: 40px 48px 34px;
  background-color: #F5F1E8;
  background-image:
    linear-gradient(rgba(36,21,113,0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,21,113,0.048) 1px, transparent 1px);
  background-size: 22px 22px;
  isolation: isolate;
}
.article-header-box::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36,21,113,0.045) 0%, rgba(36,21,113,0.02) 38%, rgba(36,21,113,0) 72%);
  pointer-events: none;
  z-index: 0;
}
.header-icon {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  filter: saturate(0.9);
}
.header-icon-1 {
  width: 32px; height: 32px;
  top: 38px; right: 34px;
  opacity: 0.1;
  animation: icon-float-1 10s ease-in-out infinite;
}
.header-icon-2 {
  width: 28px; height: 28px;
  top: 118px; right: 118px;
  opacity: 0.07;
  animation: icon-float-2 12.5s ease-in-out infinite;
  animation-delay: 1.2s;
}
.header-icon-4 {
  width: 24px; height: 24px;
  bottom: 26px; right: 28px;
  opacity: 0.06;
  animation: icon-float-4 13s ease-in-out infinite;
  animation-delay: 1.8s;
}
.article-category {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #241571;
  border: 1.5px solid rgba(36,21,113,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.article-title {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  margin: 0 0 20px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.85rem, 4.8vw, 4.9rem);
  line-height: 1.01;
  letter-spacing: -0.04em;
  color: #241571;
  text-wrap: pretty;
}
.article-title em {
  font-style: italic;
  font-weight: 400;
}
.article-deck {
  position: relative;
  z-index: 1;
  max-width: 92ch;
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(36,21,113,0.56);
  text-wrap: pretty;
}
.article-deck strong { color: rgba(36,21,113,0.78); font-weight: 600; }
.article-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  font-size: 0.75rem;
  color: rgba(36,21,113,0.34);
  padding-top: 12px;
  border-top: 1px solid rgba(36,21,113,0.08);
}
.article-meta-dot { margin: 0 8px; }

/* ── Share buttons ── */
.article-share {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(36,21,113,0.10);
  background: rgba(255,255,255,0.5);
  color: rgba(36,21,113,0.44);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
  font: inherit;
  padding: 0;
}
.share-btn:hover {
  background: rgba(36,21,113,0.06);
  color: #241571;
  border-color: rgba(36,21,113,0.18);
}
.share-copy .check-icon { display: none; }
.share-copy.copied .copy-icon { display: none; }
.share-copy.copied .check-icon { display: block; color: #16a34a; }

.study-subject-row {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 0 28px;
}
.study-subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(36,21,113,0.10);
  background: rgba(255,255,255,0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.study-subject-pill:hover {
  border-color: rgba(36,21,113,0.22);
  background: rgba(255,255,255,0.7);
}
.study-subject-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.study-subject-repo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #241571;
}
.study-subject-pill svg {
  flex-shrink: 0;
  color: rgba(36,21,113,0.32);
  transition: color 0.15s;
}
.study-subject-pill:hover svg {
  color: rgba(36,21,113,0.6);
}


/* ══════════════════════════════════════════════════════════
  STUDY SUMMARY
  ══════════════════════════════════════════════════════════ */
.study-summary {
  margin: 44px 0 88px;
}
.study-summary-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 48px;
  align-items: start;
}
.study-summary-title {
  margin: 0 0 20px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0D0B1A;
}
.study-summary-copy p {
  max-width: 64ch;
  margin-bottom: 18px;
  font-size: 0.96rem;
  line-height: 1.86;
  color: rgba(13,11,26,0.56);
}
.study-summary-copy p:last-child {
  margin-bottom: 0;
}
.study-summary-table {
  padding-top: 10px;
  border-top: 1px solid rgba(13,11,26,0.09);
  border-bottom: 1px solid rgba(13,11,26,0.09);
}
.study-summary-head,
.study-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 92px;
  gap: 16px;
  align-items: baseline;
}
.study-summary-head {
  padding: 0 0 14px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13,11,26,0.3);
}
.study-summary-head span:nth-child(2) {
  color: #241571;
}
.study-summary-head span:nth-child(3) {
  color: rgba(13,11,26,0.42);
}
.study-summary-row {
  padding: 18px 0;
  border-top: 1px solid rgba(13,11,26,0.05);
}
.study-summary-metric {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(13,11,26,0.56);
}
.study-summary-value {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.44rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.study-summary-value.is-eidon {
  color: #241571;
}
.study-summary-value.is-control {
  color: rgba(13,11,26,0.38);
}


/* ══════════════════════════════════════════════════════════
   ARTICLE BODY
   ══════════════════════════════════════════════════════════ */
.article-body {
  grid-column: 1;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.article-body h2, h2.reveal {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08; letter-spacing: -0.03em;
  color: #0D0B1A; margin-bottom: 32px;
}
.article-body h3, h3.reveal {
  font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em;
  color: #0D0B1A; margin: 52px 0 16px;
}
p.reveal, .article-body > p {
  font-size: 1.01rem; line-height: 1.94;
  color: rgba(13,11,26,0.58); margin-bottom: 22px;
}
code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.85em;
  color: #241571; background: rgba(36,21,113,0.09);
  padding: 2px 6px; border-radius: 4px;
}
.prose-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px;
  margin-bottom: 48px;
}
.prose-two-col p {
  font-size: 0.96rem; line-height: 1.88;
  color: rgba(13,11,26,0.52);
}
.section-break {
  border: none; border-top: 1px solid rgba(13,11,26,0.07);
  margin: 108px 0 60px;
}
.section-label {
  display: block;
  font-size: 0.57rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(36,21,113,0.4);
  margin-bottom: 14px;
}


/* ══════════════════════════════════════════════════════════
  SETUP
  ══════════════════════════════════════════════════════════ */
.setup-wrap {
  margin: 36px 0 34px;
}
.setup-prose {
  max-width: 72ch;
  margin: 0 0 32px;
  font-size: 1rem;
  line-height: 1.84;
  color: rgba(13,11,26,0.62);
}
.setup-vsplit {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 40px;
  margin: 0 0 28px;
}
.setup-vsplit-rule {
  background: rgba(13,11,26,0.09);
}
.setup-col-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13,11,26,0.34);
}
.setup-col-with .setup-col-label {
  color: #241571;
}
.setup-col-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(13,11,26,0.66);
}
.setup-col-compression {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #241571;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.setup-col-compression-sub {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(36, 21, 113, 0.62);
  font-weight: 500;
  letter-spacing: -0.01em;
}


/* ══════════════════════════════════════════════════════════
   COMPRESSION
   ══════════════════════════════════════════════════════════ */

.compress-section { margin: 0; padding: 0 0 80px; }

.compress-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #241571;
  margin: 0 0 64px;
  text-wrap: pretty;
}
.compress-headline em { font-style: italic; }

.compress-stage {
  position: relative;
  width: 100%;
  height: 580px;
  margin: 0 0 52px;
}
#compress-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.compress-stat {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.compress-stat-in { left: 14px; bottom: 14px; }
.compress-stat-out { right: 14px; bottom: 14px; text-align: right; }
.compress-stat-n {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.compress-stat-n.dim { color: rgba(36,21,113,0.15); }
.compress-stat-n.bright { color: #241571; }
.compress-stat-l {
  font-size: 0.54rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(36,21,113,0.28);
}

.compress-dareline {
  max-width: 70ch;
  font-size: 1rem; line-height: 1.78;
  color: rgba(13,11,26,0.64);
  margin-bottom: 36px;
  text-wrap: pretty;
}
.compress-once-box {
  border: 1.5px solid rgba(36,21,113,0.1);
  border-radius: 10px;
  padding: 28px 32px;
  max-width: 72ch;
  background: rgba(36,21,113,0.018);
}
.compress-once-label {
  display: block;
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #241571; margin-bottom: 12px;
}
.compress-once-text {
  font-size: 0.95rem; line-height: 1.76;
  color: rgba(13,11,26,0.62);
}
.compress-once-text code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em; color: #241571;
  background: rgba(36,21,113,0.06);
  padding: 2px 6px; border-radius: 4px;
}

.setup-footnote {
  max-width: 82ch;
  padding-top: 18px;
  border-top: 1px solid rgba(13,11,26,0.06);
  font-size: 0.82rem;
  line-height: 1.76;
  color: rgba(13,11,26,0.48);
}

/* ══════════════════════════════════════════════════════════
  ANSWER PREVIEW + EXPAND BUTTON
  ══════════════════════════════════════════════════════════ */
.transcript-answer-preview {
  margin: 12px 20px 20px;
  font-size: 0.9rem;
  line-height: 1.76;
  color: rgba(13,11,26,0.56);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.transcript-expand-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(36,21,113,0.14);
  background: transparent;
  color: rgba(36,21,113,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.transcript-expand-btn:hover {
  background: rgba(36,21,113,0.06);
  border-color: rgba(36,21,113,0.26);
  color: #241571;
}
.transcript-expand-btn .collapse-icon { display: none; }
.transcript-answer-full { display: none; }

/* ══════════════════════════════════════════════════════════
  ANSWER MODAL — full-page overlay
  ══════════════════════════════════════════════════════════ */
.answer-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: #F5F1E8;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.answer-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.answer-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(13,11,26,0.08);
  background: rgba(245,241,232,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.answer-modal-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(13,11,26,0.38);
}
.answer-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(36,21,113,0.16);
  border-radius: 999px;
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  color: #241571;
  cursor: pointer;
  transition: background 0.12s;
}
.answer-modal-close:hover { background: rgba(36,21,113,0.05); }
.answer-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 56px 40px 100px;
}
.answer-modal-body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.86;
  color: rgba(13,11,26,0.74);
}
.answer-modal-body h2,
.answer-modal-body h3,
.answer-modal-body h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #0D0B1A;
  margin: 32px 0 14px;
}
.answer-modal-body h2 { font-size: 1.8rem; }
.answer-modal-body h3 { font-size: 1.4rem; }
.answer-modal-body h4 { font-size: 1.05rem; font-family: inherit; font-weight: 600; letter-spacing: 0; margin-top: 24px; }
.answer-modal-body p { margin: 0 0 16px; }
.answer-modal-body ul,
.answer-modal-body ol { padding-left: 24px; margin: 0 0 16px; }
.answer-modal-body li { margin-bottom: 7px; }
.answer-modal-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.82em; background: rgba(36,21,113,0.06); padding: 2px 6px; border-radius: 4px; color: #241571; }
.answer-modal-body pre { background: #111024; border-radius: 12px; padding: 22px; overflow-x: auto; margin: 0 0 20px; }
.answer-modal-body pre code { background: none; padding: 0; color: rgba(247,244,239,0.9); font-size: 0.82em; }
.answer-modal-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 0.9rem; }
.answer-modal-body th,
.answer-modal-body td { padding: 10px 14px; border-bottom: 1px solid rgba(13,11,26,0.06); text-align: left; }
.answer-modal-body th { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(13,11,26,0.36); }
.answer-modal-body blockquote { padding-left: 18px; border-left: 2px solid rgba(36,21,113,0.24); margin: 0 0 16px; color: rgba(13,11,26,0.56); font-style: italic; }
.answer-modal-body hr { border: none; border-top: 1px solid rgba(13,11,26,0.08); margin: 28px 0; }

/* ══════════════════════════════════════════════════════════
  ANSWER MODAL
  ══════════════════════════════════════════════════════════ */
.answer-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: #F5F1E8;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.answer-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.answer-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(13,11,26,0.08);
  background: rgba(245,241,232,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.answer-modal-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(13,11,26,0.42);
}
.answer-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(36,21,113,0.16);
  border-radius: 999px;
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  color: #241571;
  cursor: pointer;
  transition: background 0.12s;
}
.answer-modal-close:hover { background: rgba(36,21,113,0.05); }
.answer-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 40px 28px 80px;
}
.answer-modal-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.96rem;
  line-height: 1.84;
  color: rgba(13,11,26,0.72);
}
.answer-modal-body h2,
.answer-modal-body h3,
.answer-modal-body h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #0D0B1A;
  margin: 24px 0 12px;
}
.answer-modal-body h2 { font-size: 1.6rem; }
.answer-modal-body h3 { font-size: 1.3rem; }
.answer-modal-body h4 { font-size: 1.05rem; font-family: inherit; font-weight: 600; letter-spacing: 0; }
.answer-modal-body p { margin: 0 0 14px; }
.answer-modal-body ul,
.answer-modal-body ol { padding-left: 22px; margin: 0 0 14px; }
.answer-modal-body li { margin-bottom: 6px; }
.answer-modal-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.82em; background: rgba(36,21,113,0.06); padding: 2px 5px; border-radius: 4px; color: #241571; }
.answer-modal-body pre { background: rgba(36,21,113,0.04); border: 1px solid rgba(36,21,113,0.08); border-radius: 10px; padding: 18px; overflow-x: auto; margin: 0 0 16px; }
.answer-modal-body pre code { background: none; padding: 0; color: inherit; }
.answer-modal-body table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.88rem; }
.answer-modal-body th,
.answer-modal-body td { padding: 9px 12px; border-bottom: 1px solid rgba(13,11,26,0.06); text-align: left; }
.answer-modal-body th { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(13,11,26,0.4); }
.answer-modal-body blockquote { padding-left: 16px; border-left: 2px solid rgba(36,21,113,0.22); margin: 0 0 14px; color: rgba(13,11,26,0.56); }
.answer-modal-body hr { border: none; border-top: 1px solid rgba(13,11,26,0.08); margin: 24px 0; }

/* ══════════════════════════════════════════════════════════
  SETUP GRID - later interpretation blocks
  ══════════════════════════════════════════════════════════ */
.setup-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 36px 0 80px;
  border: 1px solid rgba(13,11,26,0.09); border-radius: 14px; overflow: hidden;
}
.setup-col { padding: 36px; }
.setup-col:first-child { border-right: 1px solid rgba(13,11,26,0.07); background: rgba(13,11,26,0.018); }
.setup-col:last-child { background: rgba(36,21,113,0.028); }
.setup-col-label {
  display: block;
  font-size: 0.57rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(13,11,26,0.06);
}
.setup-col:first-child .setup-col-label { color: rgba(13,11,26,0.42); border-bottom-color: rgba(13,11,26,0.08); }
.setup-col:last-child .setup-col-label { color: #241571; border-bottom-color: rgba(36,21,113,0.12); }
.setup-rule {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.86rem; line-height: 1.72;
  color: rgba(13,11,26,0.5);
  padding: 9px 0; border-bottom: 1px solid rgba(13,11,26,0.04);
}
.setup-rule:last-child { border-bottom: none; padding-bottom: 0; }
.setup-rule::before {
  content: '';
  flex-shrink: 0; width: 18px; height: 18px;
  border-radius: 50%; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: white;
}
.setup-rule.check { color: rgba(13,11,26,0.64); }
.setup-rule.check::before { content: '\2713'; background: #241571; }
.setup-col:first-child .setup-rule.check::before { background: rgba(13,11,26,0.72); }
.setup-rule.cross::before { content: '\2715'; background: rgba(220,38,38,0.7); }
.setup-col:last-child .setup-rule.cross::before { background: rgba(36,21,113,0.68); }


/* ══════════════════════════════════════════════════════════
  RESULTS TABLE - measured outcome
  ══════════════════════════════════════════════════════════ */
.results-table { width: 100%; border-collapse: collapse; margin: 36px 0 72px; }
.results-table thead th {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 0 0 16px;
  border-bottom: 2px solid rgba(13,11,26,0.08);
  text-align: left; color: rgba(13,11,26,0.22);
}
.results-table thead th:nth-child(2) { color: #241571; }
.results-table thead th:nth-child(3) { color: rgba(13,11,26,0.38); }
.results-table tbody td {
  padding: 20px 0; vertical-align: middle;
  border-bottom: 1px solid rgba(13,11,26,0.05);
  font-size: 0.9rem; color: rgba(13,11,26,0.46);
}
.results-table tbody td:first-child { width: 52%; }
.val-win {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem; letter-spacing: -0.025em; color: #241571; font-weight: 400;
}
.val-lose {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem; letter-spacing: -0.025em; color: rgba(13,11,26,0.42); font-weight: 400;
}
.val-correct { font-size: 0.86rem; font-weight: 600; color: #241571; }
.val-wrong   { font-size: 0.86rem; font-weight: 600; color: #9A3412; }


/* ══════════════════════════════════════════════════════════
   PAIRED ANSWER RECORD
   ══════════════════════════════════════════════════════════ */
.record-intro { max-width: 76ch; }
.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
}
.record-actions.article-actions {
  margin: 0 0 18px;
}
.record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #241571;
  background: #241571;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.record-btn:hover {
  background: #1e1185;
  border-color: #1e1185;
}
.record-btn.secondary {
  background: transparent;
  color: #241571;
  border-color: rgba(36,21,113,0.18);
}
.record-btn.secondary:hover {
  background: rgba(36,21,113,0.05);
  border-color: rgba(36,21,113,0.28);
}
.record-list {
  margin: 36px 0 80px;
  display: grid;
  gap: 16px;
}
.record-question {
  border: 1px solid rgba(13,11,26,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.24);
  overflow: hidden;
}
.record-question summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.record-question summary::-webkit-details-marker { display: none; }
.record-question[open] summary {
  border-bottom: 1px solid rgba(13,11,26,0.06);
}
.record-question-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(36,21,113,0.42);
}
.record-question summary span:nth-child(2) {
  font-size: 0.94rem;
  font-weight: 600;
  color: #0D0B1A;
}
.record-question-kicker {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13,11,26,0.28);
}
.record-panel { padding: 22px; }
.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.record-card {
  border: 1px solid rgba(13,11,26,0.07);
  border-radius: 10px;
  padding: 18px 18px 20px;
  min-width: 0;
  background: #F5F1E8;
}
.record-card.control { background: rgba(13,11,26,0.014); }
.record-card.eidon { background: rgba(36,21,113,0.024); }
.record-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.record-card.control .record-label { color: rgba(13,11,26,0.42); }
.record-card.eidon .record-label { color: #241571; }
.record-text {
  white-space: pre-wrap;
  font-size: 0.8rem;
  line-height: 1.78;
  color: rgba(13,11,26,0.58);
  text-wrap: pretty;
}


/* ══════════════════════════════════════════════════════════
   TRANSCRIPT PAGE
   ══════════════════════════════════════════════════════════ */
.transcript-header {
  padding: 88px 24px 0;
  background: #F5F1E8;
}
.transcript-header-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.transcript-header-box {
  padding: 40px 48px 42px;
}
.transcript-emblem {
  opacity: 0.11;
}
.transcript-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 180px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.transcript-side {
  position: relative;
  align-self: stretch;
}
.transcript-side-inner {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  padding: 8px 0 0 24px;
  border-left: 1px solid rgba(36,21,113,0.08);
}
.transcript-side-label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,21,113,0.3);
}
.transcript-side a {
  display: block;
  padding: 8px 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(36,21,113,0.4);
  transition: color 0.15s, transform 0.15s;
}
.transcript-side a:hover {
  color: #241571;
  transform: translateX(4px);
}
.transcript-side a.active {
  color: #241571;
  font-weight: 600;
  transform: translateX(6px);
}
.transcript-main {
  min-width: 0;
  display: grid;
  gap: 64px;
}
.transcript-main h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0D0B1A;
  margin-bottom: 18px;
}
.transcript-section {
  scroll-margin-top: 132px;
}
.transcript-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.transcript-meta-card {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(36,21,113,0.1);
  background: rgba(255,255,255,0.36);
}
.transcript-meta-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,21,113,0.42);
}
.transcript-meta-text {
  font-size: 0.86rem;
  line-height: 1.76;
  color: rgba(13,11,26,0.52);
}
.transcript-summary {
  max-width: 78ch;
  margin-bottom: 22px;
  font-size: 0.98rem;
  line-height: 1.88;
  color: rgba(13,11,26,0.58);
}
.transcript-summary:last-child {
  margin-bottom: 0;
}
.transcript-summary-compact {
  max-width: 34ch;
  margin-bottom: 0;
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(13,11,26,0.48);
}
.transcript-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.transcript-section-head h2 {
  margin-bottom: 0;
}
.transcript-block {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(13,11,26,0.08);
  background: #111024;
  box-shadow: 0 28px 48px rgba(13,11,26,0.14);
}
.transcript-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 32%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.transcript-block.eidon {
  border-color: rgba(108,87,255,0.26);
}
.transcript-block.control {
  border-color: rgba(184,163,136,0.18);
}
.transcript-block-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.transcript-block-label {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.transcript-block.eidon .transcript-block-label {
  color: rgba(185,176,255,0.82);
}
.transcript-block.control .transcript-block-label {
  color: rgba(235,222,205,0.72);
}
.transcript-block-title {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F7F4EF;
}
.transcript-block-note {
  align-self: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: rgba(247,244,239,0.76);
}
.transcript-pre {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 22px 24px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.84;
  color: rgba(247,244,239,0.88);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 1040px;
  overflow: auto;
  background: transparent;
}
.transcript-pre.transcript-loading {
  color: rgba(247,244,239,0.48);
}
.transcript-note {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(13,11,26,0.48);
  margin-top: 14px;
}
.transcript-question-list {
  display: grid;
  gap: 56px;
  margin-top: 28px;
}
.transcript-loading-panel {
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid rgba(36,21,113,0.1);
  background: rgba(255,255,255,0.42);
  font-size: 0.92rem;
  line-height: 1.78;
  color: rgba(13,11,26,0.54);
}
.transcript-question-section {
  position: relative;
}
.transcript-question-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.transcript-question-head h2 {
  margin-bottom: 0;
}
.transcript-question-kicker {
  max-width: 31ch;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.72;
  color: rgba(13,11,26,0.42);
}
.transcript-prompt-card {
  padding: 22px 24px 24px;
  border-radius: 20px;
  border: 1px solid rgba(36,21,113,0.1);
  background: rgba(255,255,255,0.42);
  margin-bottom: 16px;
}
.transcript-prompt-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,21,113,0.42);
}
.transcript-prompt-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.82;
  color: rgba(13,11,26,0.7);
}
.transcript-prompt-list {
  margin: 14px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.transcript-prompt-list li {
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(13,11,26,0.56);
}
.transcript-prompt-notes {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.transcript-prompt-notes p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(13,11,26,0.46);
}
.transcript-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.transcript-fact {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(36,21,113,0.1);
  background: rgba(255,255,255,0.34);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(36,21,113,0.72);
}
.transcript-answer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.transcript-answer-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(13,11,26,0.08);
  background: rgba(255,255,255,0.34);
  box-shadow: 0 20px 42px rgba(13,11,26,0.08);
}
.transcript-answer-card.eidon {
  border-color: rgba(36,21,113,0.12);
  background: linear-gradient(180deg, rgba(36,21,113,0.04) 0%, rgba(255,255,255,0.34) 100%);
}
.transcript-answer-card.control {
  border-color: rgba(13,11,26,0.08);
  background: linear-gradient(180deg, rgba(13,11,26,0.02) 0%, rgba(255,255,255,0.34) 100%);
}
.transcript-answer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(13,11,26,0.08);
}
.transcript-answer-label {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.transcript-answer-card.eidon .transcript-answer-label {
  color: #241571;
}
.transcript-answer-card.control .transcript-answer-label {
  color: rgba(13,11,26,0.48);
}
.transcript-answer-subtitle {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0D0B1A;
}
.transcript-answer-stats {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(13,11,26,0.08);
  background: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: rgba(13,11,26,0.56);
}
.transcript-answer-body {
  padding: 24px 22px 28px;
}
.transcript-answer-empty {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.74;
  color: rgba(13,11,26,0.46);
}
.transcript-answer-body > :first-child {
  margin-top: 0;
}
.transcript-answer-body > :last-child {
  margin-bottom: 0;
}
.transcript-answer-body h3,
.transcript-answer-body h4,
.transcript-answer-body h5 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #0D0B1A;
}
.transcript-answer-body h3 {
  font-size: 1.46rem;
  line-height: 1.14;
  margin: 0 0 16px;
}
.transcript-answer-body h4 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 24px 0 12px;
}
.transcript-answer-body h5 {
  font-size: 0.92rem;
  line-height: 1.42;
  margin: 20px 0 10px;
}
.transcript-answer-body p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.84;
  color: rgba(13,11,26,0.6);
}
.transcript-answer-body strong {
  font-weight: 600;
  color: #0D0B1A;
}
.transcript-answer-body ul,
.transcript-answer-body ol {
  margin: 0 0 20px 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.transcript-answer-body li {
  font-size: 0.86rem;
  line-height: 1.78;
  color: rgba(13,11,26,0.58);
}
.transcript-answer-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 18px 0 22px;
}
.transcript-answer-table thead,
.transcript-answer-table tbody,
.transcript-answer-table tr {
  width: 100%;
}
.transcript-answer-table th,
.transcript-answer-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(13,11,26,0.08);
  text-align: left;
  vertical-align: top;
}
.transcript-answer-table th {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,21,113,0.42);
  white-space: nowrap;
}
.transcript-answer-table td {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(13,11,26,0.58);
}
.transcript-quote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid rgba(36,21,113,0.24);
  border-radius: 0 16px 16px 0;
  background: rgba(36,21,113,0.045);
}
.transcript-quote p {
  margin-bottom: 0;
}
.transcript-code {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: #111024;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  overflow-x: auto;
}
.transcript-code code {
  display: block;
  padding: 0;
  background: transparent;
  color: rgba(247,244,239,0.9);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  line-height: 1.78;
}
.transcript-divider {
  border: none;
  border-top: 1px solid rgba(13,11,26,0.08);
  margin: 24px 0;
}
.transcript-difference-card {
  margin-top: 18px;
  padding: 20px 22px;
  border-left: 3px solid rgba(36,21,113,0.32);
  border-radius: 0 18px 18px 0;
  background: rgba(36,21,113,0.045);
}
.transcript-difference-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(36,21,113,0.52);
}
.transcript-difference-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.82;
  color: rgba(13,11,26,0.58);
}


/* ══════════════════════════════════════════════════════════
   SPOF GRID
   ══════════════════════════════════════════════════════════ */
.spof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 72px; }
.spof-box { padding: 32px; border-radius: 12px; border: 1px solid rgba(13,11,26,0.07); }
.spof-box.control { background: rgba(13,11,26,0.02); border-color: rgba(13,11,26,0.08); }
.spof-box.eidon { background: rgba(36,21,113,0.03); border-color: rgba(36,21,113,0.12); }
.spof-box-label {
  display: block; font-size: 0.53rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 12px;
}
.spof-box.control .spof-box-label { color: rgba(13,11,26,0.42); }
.spof-box.eidon .spof-box-label { color: #241571; }
.spof-box-file { font-family: 'JetBrains Mono', monospace; font-size: 1rem; color: #0D0B1A; font-weight: 500; margin-bottom: 14px; }
.spof-box-desc { font-size: 0.82rem; line-height: 1.82; color: rgba(13,11,26,0.46); }


/* ══════════════════════════════════════════════════════════
   PULL QUOTE
   ══════════════════════════════════════════════════════════ */
.pull-quote {
  border-left: 3px solid rgba(36,21,113,0.35);
  padding: 24px 40px; background: rgba(36,21,113,0.04);
  margin: 72px 0; border-radius: 0 10px 10px 0;
}
.pull-quote p {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem; line-height: 1.45;
  color: #241571 !important; font-style: italic;
  margin-bottom: 0 !important;
}


/* ══════════════════════════════════════════════════════════
   BUG TAXONOMY
   ══════════════════════════════════════════════════════════ */
.bug-taxonomy {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(13,11,26,0.07);
  margin: 36px 0 72px; border: 1px solid rgba(13,11,26,0.07);
  border-radius: 12px; overflow: hidden;
}
.bug-cat {
  background: #F5F1E8; padding: 24px;
  display: grid; grid-template-columns: auto 1fr;
  grid-template-rows: auto auto; gap: 2px 16px; align-items: start;
}
.bug-cat-count { font-family: 'Instrument Serif', Georgia, serif; font-size: 2rem; color: #241571; letter-spacing: -0.03em; line-height: 1; grid-row: 1/-1; align-self: center; }
.bug-cat-name { font-size: 0.82rem; font-weight: 600; color: #0D0B1A; align-self: end; }
.bug-cat-detail { font-size: 0.7rem; line-height: 1.6; color: rgba(13,11,26,0.36); }


/* ══════════════════════════════════════════════════════════
   NUMBERED LIST (13 bugs)
   ══════════════════════════════════════════════════════════ */
.numbered-list { margin: 24px 0 48px; }
.numbered-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid rgba(13,11,26,0.05);
  font-size: 0.86rem; line-height: 1.72; color: rgba(13,11,26,0.5);
}
.numbered-item:last-child { border-bottom: none; }
.numbered-n { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: rgba(13,11,26,0.18); min-width: 22px; padding-top: 3px; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   VULN TABLE
   ══════════════════════════════════════════════════════════ */
.vuln-table { width: 100%; border-collapse: collapse; margin: 36px 0 72px; font-size: 0.84rem; }
.vuln-table th {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(13,11,26,0.22); padding: 0 20px 16px 0;
  border-bottom: 2px solid rgba(13,11,26,0.07); text-align: left;
}
.vuln-table td {
  padding: 18px 20px 18px 0; vertical-align: top;
  border-bottom: 1px solid rgba(13,11,26,0.05);
  color: rgba(13,11,26,0.5); line-height: 1.72;
}
.vuln-table td:first-child { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #0D0B1A; white-space: nowrap; font-weight: 500; padding-right: 24px; }
.badge { display: inline-block; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 100px; padding: 4px 10px; white-space: nowrap; }
.badge-critical { background: rgba(185,28,28,0.10); color: #991B1B; }
.badge-high     { background: rgba(220,38,38,0.09); color: #DC2626; }
.badge-medium   { background: rgba(234,179,8,0.10); color: #854D0E; }


/* ══════════════════════════════════════════════════════════
   DISCOVERY BLOCKS
   ══════════════════════════════════════════════════════════ */
.discovery-block { padding: 36px; border: 1px solid rgba(36,21,113,0.10); border-radius: 12px; background: rgba(36,21,113,0.02); margin: 20px 0; }
.discovery-block-n { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; color: rgba(36,21,113,0.36); letter-spacing: 0.1em; margin-bottom: 12px; }
.discovery-block-title { font-size: 0.98rem; font-weight: 600; color: #0D0B1A; line-height: 1.4; margin-bottom: 14px; }
.discovery-block-desc { font-size: 0.83rem; line-height: 1.9; color: rgba(13,11,26,0.48); }


/* ══════════════════════════════════════════════════════════
   CTA BLOCK
   ══════════════════════════════════════════════════════════ */
.article-cta {
  text-align: center; padding: 80px 48px;
  margin: 72px -56px 0; background: #0D0B1A; border-radius: 16px;
}
.article-cta h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.7rem);
  color: white; line-height: 1.12; margin-bottom: 20px; letter-spacing: -0.025em;
}
.article-cta p { color: rgba(255,255,255,0.38); max-width: 520px; margin: 0 auto 40px; font-size: 0.96rem; line-height: 1.8; }
.btn-cta { display: inline-flex; align-items: center; gap: 8px; background: #241571; color: white; padding: 13px 26px; border-radius: 100px; font-size: 0.86rem; font-weight: 500; transition: background 0.15s; }
.btn-cta:hover { background: #1e1185; }
.btn-cta svg { flex-shrink: 0; }
.btn-docs { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.3); padding: 13px 22px; font-size: 0.86rem; margin-left: 8px; transition: color 0.15s; }
.btn-docs:hover { color: rgba(255,255,255,0.65); }


/* ══════════════════════════════════════════════════════════
   FOOTNOTE
   ══════════════════════════════════════════════════════════ */
.footnote { max-width: 860px; margin: 0 auto; padding: 40px 56px 80px; }
.footnote p { font-size: 0.73rem; color: rgba(13,11,26,0.24); line-height: 1.86; }
.footnote a { color: rgba(36,21,113,0.4); text-decoration: underline; text-decoration-color: rgba(36,21,113,0.2); }
.footnote a:hover { color: rgba(36,21,113,0.7); }


/* ══════════════════════════════════════════════════════════
   REVEAL ANIMATION
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .study-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 160px;
  }
  .study-toc {
    grid-column: 1;
    grid-row: 1;
  }
  .study-toc-inner {
    position: static;
    padding: 0 0 18px;
    border-left: none;
    border-bottom: 1px solid rgba(36,21,113,0.08);
  }
  .study-toc a {
    display: inline-flex;
    margin: 0 16px 10px 0;
    padding: 0;
  }
  .study-summary-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .transcript-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 150px;
  }
  .transcript-side-inner {
    position: static;
    max-height: none;
    padding: 0 0 18px;
    border-left: none;
    border-bottom: 1px solid rgba(36,21,113,0.08);
  }
  .transcript-side a {
    display: inline-flex;
    margin: 0 16px 10px 0;
    padding: 0;
  }
  .transcript-method-grid {
    grid-template-columns: 1fr;
  }
  .transcript-question-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .transcript-question-kicker {
    max-width: none;
  }
  .transcript-answer-grid {
    grid-template-columns: 1fr;
  }
  .article-cta { margin: 72px 0 0; border-radius: 12px; }
}

@media (max-width: 768px) {
  .article-header { padding: 80px 16px 0; }
  .article-header-box {
    min-height: 0;
    padding: 28px 22px 30px;
    background-size: 18px 18px;
  }
  .article-header-box::after {
    inset: 54% 0 0 0;
    background: linear-gradient(180deg, rgba(245,241,232,0) 0%, rgba(245,241,232,0.34) 100%);
  }
  .article-category { margin-bottom: 22px; }
  .article-title {
    max-width: none;
    font-size: clamp(2.3rem, 9vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }
  .article-deck {
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.68;
  }
  .article-meta {
    width: 100%;
    padding-top: 12px;
  }
  .study-subject-pill { font-size: 0.74rem; padding: 6px 12px 6px 7px; }
  .study-subject-icon { width: 16px; height: 16px; }
  .study-subject-repo { font-size: 0.74rem; }
  .header-icon-1 { width: 26px; height: 26px; top: 18px; right: 16px; }
  .header-icon-2 { width: 22px; height: 22px; top: 108px; right: 72px; }
  .header-icon-4 { width: 18px; height: 18px; bottom: 20px; right: 20px; }
  .study-summary {
    margin: 32px 0 72px;
  }
  .study-summary-table {
    padding-top: 8px;
  }
  .study-summary-head,
  .study-summary-row {
    grid-template-columns: minmax(0, 1fr) 76px 76px;
    gap: 12px;
  }
  .study-summary-value {
    font-size: 1.2rem;
  }
  .article-actions {
    margin-bottom: 14px;
  }
  .study-shell {
    padding: 0 24px 120px;
  }
  .blog-nav { padding: 18px 24px; }
  .blog-nav.scrolled { padding: 10px 24px; }
  .prose-two-col { grid-template-columns: 1fr; gap: 0; }
  .setup-vsplit {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }
  .setup-vsplit-rule { display: none; }
  .setup-col:first-child { border-right: none; border-bottom: 1px solid rgba(13,11,26,0.07); }
  .spof-grid { grid-template-columns: 1fr; }
  .vuln-table { font-size: 0.78rem; }
  .vuln-table td:first-child { white-space: normal; }
  .article-cta { padding: 60px 24px; margin: 60px 0 0; }
  .transcript-header {
    padding: 80px 16px 0;
  }
  .transcript-header-box {
    padding: 28px 22px 30px;
  }
  .transcript-shell {
    padding: 36px 16px 120px;
    gap: 24px;
  }
  .transcript-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .transcript-summary-compact {
    max-width: none;
  }
  .transcript-prompt-card {
    padding: 18px 18px 20px;
  }
  .transcript-fact-row {
    gap: 8px;
  }
  .transcript-answer-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .transcript-answer-stats {
    align-self: flex-start;
  }
  .transcript-answer-body {
    padding: 20px 18px 22px;
  }
  .transcript-answer-body h3 {
    font-size: 1.28rem;
  }
  .transcript-answer-body h4 {
    font-size: 1rem;
  }
  .transcript-answer-table td,
  .transcript-answer-table th {
    padding-right: 10px;
  }
  .transcript-difference-card {
    padding: 18px;
  }
  .transcript-block-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .transcript-block-note {
    align-self: flex-start;
  }
  .transcript-pre {
    padding: 18px 18px 22px;
    font-size: 0.72rem;
    max-height: 760px;
  }
}

.record-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 2px solid rgba(36,21,113,0.24);
  border-radius: 0 12px 12px 0;
  background: rgba(36,21,113,0.04);
  font-size: 0.82rem;
  line-height: 1.72;
  color: rgba(13,11,26,0.5);
}

.record-grid-solo {
  grid-template-columns: 1fr;
}

.transcript-answer-grid-solo {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.transcript-answer-side-note {
  align-self: stretch;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(36,21,113,0.1);
  background: rgba(255,255,255,0.42);
}

@media (max-width: 900px) {
  .transcript-answer-grid-solo {
    grid-template-columns: 1fr;
  }
}

/* ── Video page ── */
.video-page {
  background: var(--bg, #F5F1E8);
}
.video-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 140px 1.5rem 80px;
}
.video-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.video-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text, #0D0B1A);
  margin: 0.5rem 0 0.8rem;
}
.video-deck {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(13,11,26,0.6);
  max-width: 600px;
  margin: 0 auto;
}
.video-player-wrap {
  margin: 0 0 2rem;
}
.video-player {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(36,21,113,0.12);
  background: #0D0B1A;
  box-shadow: 0 12px 48px rgba(36,21,113,0.12);
}
.video-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  margin-bottom: 2.2rem;
}
.video-context-item {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.video-context-label {
  color: rgba(13,11,26,0.4);
}
.video-context-value {
  color: var(--text, #0D0B1A);
  font-weight: 500;
}
.video-context-value a {
  color: var(--accent, #241571);
  text-decoration: none;
}
.video-context-value a:hover {
  text-decoration: underline;
}
.video-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.record-btn-outline {
  background: transparent;
  border: 1px solid rgba(36,21,113,0.18);
  color: var(--text, #0D0B1A);
}
.record-btn-outline:hover {
  background: rgba(36,21,113,0.04);
}
@media (max-width: 600px) {
  .video-main { padding-top: 110px; }
  .video-context { flex-direction: column; align-items: center; }
}
