:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(79, 114, 174, 0.045), transparent 27rem),
    var(--paper);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: white;
  z-index: 20;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.topbar {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 250, 246, 0.92);
  font-family: var(--sans);
  font-size: 14px;
}

.topbar-inner {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-weight: 680;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.topbar nav {
  display: flex;
  gap: 1.15rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
}

main {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
}

.article-header {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4.2rem;
}

.header-orbit {
  display: none;
  position: absolute;
  width: 330px;
  height: 220px;
  right: -25px;
  top: 34px;
  opacity: 0.26;
  pointer-events: none;
}

.header-orbit::before,
.header-orbit::after {
  content: "";
  position: absolute;
  inset: 42px 16px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.header-orbit::after {
  inset: 72px 54px;
  border-color: var(--amber);
  transform: rotate(18deg);
}

.header-orbit span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.header-orbit span:nth-child(1) { left: 55px; top: 92px; }
.header-orbit span:nth-child(2) { right: 48px; top: 126px; background: var(--amber); }
.header-orbit span:nth-child(3) { left: 166px; top: 36px; background: var(--ink); }

.article-meta,
.byline,
.eyebrow {
  font-family: var(--sans);
  font-size: 14px;
}

.article-meta {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.027em;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.55rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  font-weight: 740;
}

.deck {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 1.7rem 0 1.45rem;
  color: var(--soft-ink);
  font-size: clamp(1.16rem, 2vw, 1.38rem);
  line-height: 1.48;
}

.byline {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-weight: 620;
}

.article-index {
  width: min(700px, 100%);
  margin: 0 auto 3.4rem;
  padding: 1rem 1.2rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: var(--surface);
  font-family: var(--sans);
  font-size: 13px;
}

.article-index__label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-index ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  margin: 0;
  padding-left: 1.25rem;
}

.article-index li {
  margin: 0;
  padding-left: 0.1rem;
}

.article-index a {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > h2,
.article-body > h3,
.article-body > blockquote,
.article-body > hr,
.article-body > .evidence-note {
  width: min(700px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.article-body p {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.article-body h2 {
  margin-top: 4.7rem;
  margin-bottom: 1.4rem;
  font-size: clamp(1.72rem, 3vw, 2.35rem);
  line-height: 1.14;
}

.article-body h3 {
  line-height: 1.2;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
  margin-top: 0.5rem;
  margin-bottom: 1.6rem;
}

.article-body li {
  padding-left: 0.25rem;
  margin: 0.45rem 0;
}

.article-body strong {
  font-weight: 700;
}

.article-body code {
  padding: 0.08em 0.3em;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-deep);
  font-size: 0.87em;
}

.article-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.summary-panel,
.concept-figure,
.term-strip,
.evidence-ladder,
.table-wrap,
.evidence-figure {
  width: min(1060px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.summary-panel {
  margin-top: 3.5rem;
  margin-bottom: 4.4rem;
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-panel > h2 {
  margin: 0 0 1.45rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card {
  min-height: 208px;
  padding: 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--paper);
}

.summary-card--blue { border-top: 4px solid var(--blue); }
.summary-card--amber { border-top: 4px solid var(--amber); }
.summary-card--ink { border-top: 4px solid var(--ink); }

.summary-card p {
  margin: 0;
}

.summary-kicker {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary-number {
  margin: 0.55rem 0 0.7rem !important;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1;
}

.summary-card > p:last-child {
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.5;
}

.concept-figure {
  margin-top: 2.8rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(79, 114, 174, 0.055), transparent 38%),
    var(--surface);
  box-shadow: var(--shadow);
}

.concept-heading {
  max-width: 720px;
}

.concept-heading h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.concept-heading > p:last-child {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

.concept-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.5rem;
  margin: 1.6rem 0 1.35rem;
}

.concept-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 190px;
  padding: 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--sans);
}

.concept-step--source { border-color: #d3c0ad; }
.concept-step--query { border-color: #9fb1d0; }
.concept-step--target { border-color: var(--blue); background: var(--blue-soft); }

.step-number {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 750;
}

.concept-step strong {
  font-size: 15px;
  line-height: 1.25;
}

.concept-step > span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.flow-arrow {
  align-self: center;
  color: var(--rule-strong);
  font-family: var(--sans);
  font-size: 1.35rem;
}

.concept-boundary {
  margin: 0 !important;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  color: var(--soft-ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

.term-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1rem;
  margin-bottom: 4.5rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--rule);
}

.term-strip > div {
  padding: 1rem 1.1rem;
  background: var(--paper);
  font-family: var(--sans);
}

.term-strip strong,
.term-strip span {
  display: block;
}

.term-strip strong {
  margin-bottom: 0.25rem;
  font-size: 13px;
}

.term-strip span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.evidence-note {
  margin-top: 2.7rem;
  margin-bottom: 3.4rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--blue-soft);
}

.evidence-note h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.evidence-note p:last-child {
  margin: 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.55;
}

.table-wrap {
  margin-top: 2.3rem;
  margin-bottom: 3.2rem;
}

.responsive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(46, 40, 31, 0.045);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
}

.responsive-table caption {
  padding: 0 0 0.7rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 540;
  text-align: left;
}

.responsive-table thead th {
  padding: 0.76rem 0.9rem;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-align: left;
  text-transform: uppercase;
}

.responsive-table tbody th,
.responsive-table td {
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.responsive-table tbody th {
  color: var(--ink);
  font-weight: 650;
}

.responsive-table tbody tr:last-child th,
.responsive-table tbody tr:last-child td {
  border-bottom: 0;
}

.responsive-table tbody tr:hover {
  background: var(--surface);
}

.verdict {
  display: inline-flex;
  margin-top: 0.25rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.verdict--positive { color: var(--green); background: var(--green-soft); }
.verdict--failed { color: var(--red); background: var(--red-soft); }
.verdict--mixed { color: #825327; background: var(--amber-soft); }
.verdict--open { color: var(--blue); background: var(--blue-soft); }

.evidence-figure {
  margin-top: 2.8rem;
  margin-bottom: 3.5rem;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.figure-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
}

.evidence-figure picture,
.evidence-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.evidence-figure figcaption {
  max-width: 900px;
  padding: 1rem 0.35rem 0.25rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
}

.evidence-figure figcaption strong {
  color: var(--ink);
}

.evidence-ladder {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  margin-top: 2.5rem;
  margin-bottom: 3.2rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ladder-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 10px;
  font-family: var(--sans);
}

.ladder-step > span {
  grid-row: 1 / 3;
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 760;
}

.ladder-step strong { font-size: 14px; }
.ladder-step small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.ladder-step--strong { background: var(--blue-soft); }
.ladder-step--conditional { background: var(--green-soft); }
.ladder-step--open { background: var(--amber-soft); }
.ladder-step--failed { background: var(--red-soft); }

.ladder-connector {
  align-self: center;
  padding: 0 0.2rem;
  color: var(--rule-strong);
  font-family: var(--sans);
}

.assistance-note {
  width: min(700px, 100%);
  margin: 4rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
}

footer {
  width: min(940px, calc(100% - 40px));
  margin: 5rem auto 0;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
}

@media (max-width: 820px) {
  .header-orbit {
    right: -120px;
    opacity: 0.17;
  }

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

  .summary-card {
    min-height: 0;
  }

  .concept-flow,
  .evidence-ladder {
    grid-template-columns: 1fr;
  }

  .concept-step {
    min-height: 0;
  }

  .flow-arrow,
  .ladder-connector {
    transform: rotate(90deg);
    justify-self: center;
    padding: 0.15rem 0;
  }

  .term-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
    line-height: 1.64;
  }

  .topbar-inner,
  main,
  footer {
    width: min(100% - 28px, 940px);
  }

  .topbar-inner {
    min-height: 54px;
  }

  .brand {
    max-width: none;
    font-size: 13px;
    line-height: 1.15;
  }

  .topbar nav {
    display: none;
  }

  .article-header {
    padding: 3.4rem 0 2.8rem;
    margin-bottom: 3rem;
  }

  .article-meta {
    max-width: 20rem;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .header-orbit {
    display: none;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.15rem, 10.5vw, 2.85rem);
    line-height: 1.04;
  }

  .deck {
    font-size: 1.1rem;
  }

  .article-index {
    margin-bottom: 2.8rem;
    padding: 0.9rem 1rem;
  }

  .article-index ol {
    display: block;
    columns: 2;
    column-gap: 1.5rem;
  }

  .article-index li {
    break-inside: avoid;
    margin: 0.2rem 0;
  }

  .article-body h2 {
    margin-top: 3.8rem;
  }

  .summary-panel,
  .concept-figure,
  .term-strip,
  .evidence-ladder,
  .table-wrap,
  .evidence-figure {
    width: calc(100vw - 20px);
  }

  .summary-panel,
  .concept-figure {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .summary-number {
    font-size: 2.35rem;
  }

  .evidence-figure {
    padding: 7px;
    border-radius: 12px;
  }

  .evidence-figure figcaption {
    padding: 0.85rem 0.4rem 0.4rem;
    font-size: 13px;
  }

  .responsive-table {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .responsive-table caption {
    padding: 0 4px 0.7rem;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tbody tr {
    margin-bottom: 0.75rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(46, 40, 31, 0.045);
  }

  .responsive-table tbody th,
  .responsive-table td {
    padding: 0.33rem 0;
    border: 0;
  }

  .responsive-table tbody th {
    margin-bottom: 0.25rem;
    font-size: 15px;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(7.3rem, 42%) 1fr;
    gap: 0.5rem;
    font-size: 13.5px;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 720;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .evidence-ladder {
    padding: 0.8rem;
  }

  footer {
    flex-direction: column;
  }
}

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

@media print {
  body {
    background: white;
    font-size: 11pt;
  }

  .topbar,
  footer,
  .header-orbit {
    display: none;
  }

  main,
  .article-body > p,
  .article-body > ul,
  .article-body > ol,
  .article-body > h2,
  .article-body > h3,
  .summary-panel,
  .concept-figure,
  .term-strip,
  .evidence-ladder,
  .table-wrap,
  .evidence-figure {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .article-header {
    padding-top: 1rem;
  }

  .summary-panel,
  .concept-figure,
  .evidence-ladder,
  .evidence-figure,
  .responsive-table {
    box-shadow: none;
  }
}

/* --------------------------------------------------------------------------
   Blog-specific evidence system, visual pass 2
   -------------------------------------------------------------------------- */
:root {
  --paper: #e9e2d5;
  --paper-deep: #dcd4c3;
  --surface: #fffdf8;
  --surface-rich: #f4eee1;
  --ink: #1d2329;
  --soft-ink: #3a4148;
  --muted: #555e66;
  --rule: #c9bfb0;
  --rule-strong: #a89c88;
  --link: #1f5e8c;
  --blue: #1f5e8c;
  --blue-deep: #16486b;
  --blue-bright: #2f7ab0;
  --blue-soft: #e2ecf4;
  --amber: #b0722a;
  --amber-deep: #7d4f1c;
  --amber-soft: #f0e2cd;
  --green: #286c43;
  --green-soft: #e2eee7;
  --red: #a73b35;
  --red-soft: #f3dedb;
  --violet: #654d82;
  --violet-soft: #e7e2ee;
  --shadow: 0 18px 44px rgba(30, 27, 20, 0.10);
}

html,
body {
  background-color: var(--paper);
}

body {
  background:
    radial-gradient(circle at 7% 2%, rgba(36, 95, 168, 0.13), transparent 29rem),
    radial-gradient(circle at 94% 20%, rgba(207, 111, 46, 0.10), transparent 25rem),
    linear-gradient(180deg, var(--surface-rich) 0%, var(--paper) 24%, #eae2d5 100%);
}

.topbar {
  background: rgba(238, 232, 220, 0.94);
  border-bottom-color: rgba(110, 94, 74, 0.28);
}

.article-header {
  border-bottom-color: var(--rule-strong);
}

.article-body h2 {
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  width: 2.6rem;
  height: 4px;
  left: 0;
  top: -1.05rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--amber));
}

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

.lead-dashboard,
.method-map,
.visual-card,
.evidence-figure {
  width: min(1080px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.lead-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.72fr);
  gap: 1.2rem;
  margin-top: 3.6rem;
  margin-bottom: 5rem;
}

.lead-finding,
.insight-tile,
.method-map,
.visual-card,
.evidence-figure {
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.lead-finding {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 2.25rem;
  border-radius: 22px;
  color: var(--surface);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 210, 158, 0.27), transparent 12rem),
    linear-gradient(142deg, #143b64 0%, #19578f 58%, #286fae 100%);
}

.lead-finding::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -120px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.035), 0 0 0 94px rgba(255, 255, 255, 0.025);
}

.lead-finding .eyebrow {
  color: #ffd4a8;
}

.lead-score-line {
  display: flex;
  align-items: flex-end;
  gap: 1.3rem;
  margin: 1.4rem 0 1.1rem;
}

.lead-score {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 !important;
  font-family: var(--sans);
}

.lead-score span {
  font-size: clamp(4.5rem, 8vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.8;
}

.lead-score small {
  color: #cfe3f7;
  font-size: 0.95rem;
  font-weight: 650;
  text-transform: uppercase;
}

.lead-versus {
  max-width: 12rem;
  margin: 0 0 0.7rem !important;
  color: #dce9f5;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.4;
}

.lead-versus strong {
  color: #ffd0a0;
  font-size: 1.3rem;
}

.lead-finding h2 {
  max-width: 650px;
  margin: 0 0 0.8rem;
  color: var(--surface);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.lead-finding h2::before {
  display: none;
}

.lead-finding > p:not(.eyebrow):not(.lead-score):not(.lead-versus) {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: #e7f0f8;
  font-size: 1rem;
  line-height: 1.55;
}

.lead-bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
}

.lead-bar {
  display: grid;
  grid-template-columns: 8rem 1fr 3.8rem;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
}

.lead-bar i {
  display: block;
  height: 0.56rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.lead-bar i::before {
  content: "";
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
}

.lead-bar--local i::before { background: var(--surface); }
.lead-bar--global i::before { background: #f1a76c; }
.lead-bar strong { text-align: right; }

.lead-insights {
  display: grid;
  gap: 1.2rem;
}

.insight-tile {
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
  border-radius: 18px;
  background: var(--surface);
}

.insight-tile--retrieval {
  background: linear-gradient(145deg, var(--amber-soft), #efd2b6);
  border-color: #d39b6b;
}

.insight-tile--boundary {
  background: linear-gradient(145deg, #e2ddd4, #d4ccc0);
  border-color: #9b8e7f;
}

.insight-index {
  margin: 0 0 1.2rem !important;
  color: rgba(24, 23, 19, 0.32);
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.insight-tile h3 {
  margin: 0 0 0.55rem;
  font-size: 1.32rem;
}

.insight-tile > p:last-child {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.method-map,
.visual-card,
.evidence-figure {
  margin-top: 2.8rem;
  margin-bottom: 3.7rem;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
}

.visual-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 1.55rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(110deg, #e1d5c3, var(--surface-rich) 62%, #dfe8ef);
  font-family: var(--sans);
}

.visual-header > div {
  min-width: 0;
}

.visual-kicker {
  margin: 0 0 0.32rem !important;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visual-header h3 {
  margin: 0;
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.visual-header > p {
  max-width: 22rem;
  margin: 0 !important;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
}

.visual-caption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  border-top: 1px solid var(--rule);
  background: var(--rule);
  color: var(--soft-ink) !important;
  font-family: var(--sans);
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
}

.visual-caption span {
  padding: 0.85rem 1rem;
  background: var(--paper-deep);
}

.visual-caption b {
  display: inline-block;
  margin-right: 0.28rem;
  color: var(--blue-deep);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto minmax(0, 1.8fr) auto minmax(0, 0.8fr);
  align-items: stretch;
  gap: 0.85rem;
  padding: 1.4rem;
  background:
    linear-gradient(rgba(203, 188, 168, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 188, 168, 0.10) 1px, transparent 1px),
    var(--surface-rich);
  background-size: 30px 30px;
}

.method-stage {
  min-height: 0;
  padding: 1.15rem;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: rgba(250, 246, 238, 0.94);
  font-family: var(--sans);
}

.method-stage--pair,
.method-stage--query {
  min-height: 0;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  background: transparent;
}

.method-stage--book {
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stage-label,
.module-label,
.mini-title {
  margin: 0 0 1rem !important;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.shared-root {
  width: fit-content;
  margin: 0 auto;
  padding: 0.15rem 0.2rem;
  background: none;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.shared-root strong {
  color: var(--soft-ink);
  font-weight: 600;
}

.branch-lines {
  width: 55%;
  height: 2.3rem;
  margin: 0 auto;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
}

.branch-nodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.state-node {
  padding: 0.65rem 0.45rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.69rem;
  font-weight: 750;
  text-align: center;
}

.state-node--false { background: var(--amber-deep); }
.state-node--honest { background: var(--blue-deep); }

.delta-token,
.prediction-token {
  margin-top: 1rem;
  padding: 0.75rem;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.delta-token span,
.prediction-token span {
  display: block;
  color: var(--muted);
  font-size: 0.63rem;
  text-transform: uppercase;
}

.delta-token strong,
.prediction-token strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--blue-deep);
  font-size: 0.9rem;
}

.method-arrow {
  color: var(--blue-deep);
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
}

.method-arrow span {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.address-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0.58rem;
  border: 1px solid #baa994;
  border-radius: 8px;
  background: #eee3d3;
  font-size: 0.68rem;
}

.address-entry i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(207, 111, 46, 0.13);
}

.address-entry b {
  color: var(--blue-deep);
}

.stage-note,
.aggregate-note,
.factor-note {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  line-height: 1.4;
}

.query-orbit {
  position: relative;
  width: 9.5rem;
  height: 7.6rem;
  margin: 1rem auto;
  border: 2px solid rgba(36, 95, 168, 0.32);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.query-orbit i,
.query-node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.query-node {
  width: 3.25rem;
  height: 3.25rem;
  left: 3.1rem;
  top: 2.15rem;
  background: var(--blue-deep);
  color: white;
  font-size: 0.66rem;
  font-weight: 750;
  transform: rotate(12deg);
}

.query-orbit i {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--amber);
}

.query-orbit i:nth-of-type(1) { left: 0.9rem; top: 1.2rem; }
.query-orbit i:nth-of-type(2) { right: 1rem; top: 1.7rem; }
.query-orbit i:nth-of-type(3) { right: 2rem; bottom: 0.65rem; }

.visual-boundary {
  display: grid;
  grid-template-columns: 0.75fr 1.5fr 1.5fr;
  gap: 1rem;
  width: auto;
  margin: 0;
  padding: 0.9rem 1.15rem;
  border-top: 1px solid var(--rule);
  background: #ddcfbd;
  color: var(--soft-ink);
  font-family: var(--sans);
  font-size: 0.77rem;
  line-height: 1.5;
}

.visual-boundary strong {
  color: var(--blue-deep);
}

.method-ranking {
  padding: 1.3rem 1.55rem 1.55rem;
  background: var(--surface-rich);
  font-family: var(--sans);
}

.ranking-group-label {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0 0.5rem;
  padding: 0.3rem 0;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.ranking-group-label--baseline {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--amber-deep);
}

.ranking-group-label small {
  color: var(--muted);
  font-size: 0.63rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: minmax(13rem, 1.25fr) minmax(180px, 2fr) 4.5rem 4.1rem;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(157, 142, 123, 0.3);
  font-size: 0.8rem;
}

.ranking-row > span {
  font-weight: 650;
}

.ranking-row > i {
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: #d8cdbc;
}

.ranking-row > i b {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
}

.ranking-row--retrieval i b { background: linear-gradient(90deg, #c85f23, #e49a59); }
.ranking-row--graph i b { background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright)); }
.ranking-row--cell i b { background: linear-gradient(90deg, #5a4f84, #8a75ad); }
.ranking-row--baseline i b { background: #403a32; }
.ranking-row--null i b { background: #918678; }

.ranking-row > strong {
  color: var(--ink);
  font-size: 0.96rem;
  text-align: right;
}

.ranking-row > small {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

.technical-ledger {
  border-top: 1px solid var(--rule);
  background: #ebe1d2;
  font-family: var(--sans);
}

.technical-ledger summary {
  padding: 0.78rem 1.1rem;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
}

.technical-ledger[open] summary {
  border-bottom: 1px solid var(--rule);
}

.technical-ledger .responsive-table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.specificity-dashboard,
.structure-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.45rem;
  background: var(--surface-rich);
}

.aggregate-stack,
.rank-module,
.factor-module {
  padding: 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: #eae0d1;
}

.aggregate-row,
.factor-step {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(100px, 1.4fr) 4rem;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-family: var(--sans);
  font-size: 0.74rem;
}

.aggregate-row i,
.factor-step i {
  height: 0.62rem;
  overflow: hidden;
  border-radius: 999px;
  background: #d4c7b5;
}

.aggregate-row i::after,
.factor-step i::after {
  content: "";
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
}

.aggregate-row--generic i::after { background: var(--blue); }
.aggregate-row--shuffle i::after { background: #8c8172; }
.aggregate-row--honest i::after { background: var(--amber); }

.aggregate-row strong,
.factor-step strong {
  text-align: right;
}

.margin-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.margin-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 0.1rem 0.65rem;
  padding: 1rem;
  border-radius: 13px;
  font-family: var(--sans);
}

.margin-card--mixed {
  border: 1px solid #cb8b48;
  background: #f0d6b9;
}

.margin-card--positive {
  border: 1px solid #4c866d;
  background: #d8e7dd;
}

.margin-card p,
.margin-card em {
  grid-column: 1 / -1;
}

.margin-card p {
  margin: 0 0 0.8rem !important;
  font-size: 0.76rem;
  font-weight: 750;
}

.margin-card strong {
  font-size: 1.15rem;
}

.margin-card span {
  align-self: center;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.35;
}

.margin-card em {
  width: fit-content;
  margin-top: 0.8rem;
  padding: 0.25rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--soft-ink);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 750;
}

.rank-module {
  background: linear-gradient(145deg, #e1e9f2, #d4e0ec);
  border-color: #91aac4;
}

.factor-module {
  background: linear-gradient(145deg, #f2dfcd, #ead1b7);
  border-color: #cf9360;
}

.rank-number {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.rank-number strong {
  color: var(--blue-deep);
  font-family: var(--sans);
  font-size: 5rem;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.rank-number span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.variance-meter {
  height: 0.75rem;
  margin: 1rem 0 0.6rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 71, 121, 0.15);
}

.variance-meter i {
  display: block;
  width: 96.8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright));
}

.rank-module > p:not(.module-label) {
  margin-bottom: 1rem;
  color: var(--soft-ink);
  font-family: var(--sans);
  font-size: 0.78rem;
}

.performance-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  font-family: var(--sans);
}

.performance-pair span {
  padding: 0.65rem;
  border: 1px solid rgba(23, 71, 121, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
  font-size: 0.72rem;
}

.performance-pair b {
  float: right;
  color: var(--blue-deep);
}

.factor-step i::after { background: #8b7763; }
.factor-step--middle i::after { background: var(--amber); }
.factor-step--final i::after { background: var(--blue); }

.factor-arrow {
  margin: -0.1rem 0 0.6rem 9.6rem;
  color: var(--amber-deep);
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 750;
}

.factor-note {
  margin: 1rem 0 0 !important;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(142, 67, 29, 0.25);
}

.evidence-figure {
  padding: 0;
}

.evidence-figure .figure-link {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #e6dbcc;
}

.evidence-figure img {
  background: var(--paper-deep);
}

.visual-card--boundary-table .responsive-table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.responsive-table {
  background: var(--surface-rich);
}

.responsive-table thead th {
  background: #d9ccba;
  color: #443d34;
}

.responsive-table tbody tr:nth-child(even) {
  background: rgba(218, 205, 186, 0.34);
}

.responsive-table tbody tr:hover {
  background: #e5d8c6;
}

.evidence-ladder {
  background: #e8ddcd;
}

.ladder-step--strong { background: #cadced; }
.ladder-step--conditional { background: #cfe1d6; }
.ladder-step--open { background: #efd1b4; }
.ladder-step--failed { background: #e8c8c3; }

@media (max-width: 820px) {
  .lead-dashboard {
    grid-template-columns: 1fr;
  }

  .lead-insights {
    grid-template-columns: 1fr 1fr;
  }

  .method-map-grid {
    grid-template-columns: 1fr;
  }

  .method-arrow {
    transform: rotate(90deg);
  }

  .method-stage {
    min-height: 0;
  }

  .ranking-row {
    grid-template-columns: minmax(10rem, 1fr) minmax(110px, 1.5fr) 4.2rem 3.8rem;
  }

  .specificity-dashboard,
  .structure-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lead-dashboard,
  .method-map,
  .visual-card,
  .evidence-figure {
    width: calc(100vw - 20px);
  }

  .lead-finding {
    min-height: 0;
    padding: 1.45rem;
  }

  .lead-score-line {
    display: block;
  }

  .lead-score span {
    font-size: 4.7rem;
  }

  .lead-versus {
    max-width: none;
    margin-top: 0.8rem !important;
  }

  .lead-bar {
    grid-template-columns: 7.3rem 1fr 3.6rem;
  }

  .lead-insights {
    grid-template-columns: 1fr;
  }

  .visual-header {
    display: block;
    padding: 1rem;
  }

  .visual-header > p {
    max-width: none;
    margin-top: 0.5rem !important;
    text-align: left;
  }

  .visual-caption {
    grid-template-columns: 1fr;
  }

  .visual-boundary {
    grid-template-columns: 1fr;
  }

  .method-map-grid,
  .specificity-dashboard,
  .structure-dashboard,
  .method-ranking {
    padding: 1rem;
  }

  .ranking-row {
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    padding: 0.65rem 0;
  }

  .ranking-row > i {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .ranking-row > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .ranking-row > small {
    grid-column: 3;
    grid-row: 1;
  }

  .margin-cards {
    grid-template-columns: 1fr;
  }

  .aggregate-row,
  .factor-step {
    grid-template-columns: minmax(8rem, 1fr) 1fr 3.8rem;
  }

  .factor-arrow {
    margin-left: 0;
    text-align: center;
  }

  .technical-ledger .responsive-table {
    padding: 0.65rem;
  }

  .article-body h2::before {
    width: 2.1rem;
  }
}
