/* The Mechanism Ledger, redesign v2.
   Shared tokens and primitives for the new page family. The palette keeps the
   original cream/forest/lime; type, spacing, and containers are simplified. */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/fraunces-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }

:root {
  --paper: #f6f3ea;
  --paper-2: #eee9da;
  --card: #fffdf7;
  --ink: #17271f;
  --ink-2: #4b5a52;
  --ink-3: #7a877f;
  --line: #dcd6c6;
  --line-2: #c9c2ae;
  --forest: #1b4032;
  --forest-2: #2a5b49;
  --lime: #cdef7b;
  --lime-2: #9cc84e;
  --amber: #d8802e;
  --amber-soft: #fbf0e2;
  --sky: #5d8ea3;
  --violet: #7f6d9b;
  --gold: #b88a35;
  --rose: #bb5b50;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
  --radius-lg: 22px;
  --measure: 62ch;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(60rem 30rem at 0% -10%, rgba(205, 239, 123, 0.22), transparent 60%),
    var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--forest); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin: 0 auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 243, 234, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23, 39, 31, 0.10);
}
.site-header-inner {
  width: min(100% - 2 * var(--gutter), 1500px);
  position: relative;
  min-height: 68px;
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--forest);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }

.site-nav { margin-left: auto; display: flex; gap: 2px; }
.site-nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background 120ms ease, color 120ms ease;
}
.site-nav a:hover { background: rgba(27, 64, 50, 0.07); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--forest); font-weight: 600; }

.header-search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 12px; border: 1px solid var(--line-2); border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--card);
}
.header-search:hover { border-color: var(--forest-2); color: var(--ink); }
.header-search kbd {
  font: 12px var(--font-mono); color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--paper);
}

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  margin-left: auto; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: 9px; background: var(--card);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars {
  display: block; width: 18px; height: 2px; background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-2); }
.button-secondary { background: transparent; border-color: var(--line-2); color: var(--ink); }
.button-secondary:hover { border-color: var(--forest); }

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest-2);
}
h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(46px, 6.4vw, 82px); line-height: 1.0; letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
h1.is-long { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.06; font-variation-settings: "opsz" 96; }
.section-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.section-intro { margin: 14px 0 0; max-width: var(--measure); color: var(--ink-2); font-size: 17px; }
.section-intro-light { color: rgba(242, 244, 236, 0.78); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero-lead {
  margin: 26px 0 0; max-width: var(--measure);
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); max-width: var(--measure); }

/* ---------- Search ---------- */

.search { position: relative; margin-top: 36px; max-width: 560px; }
.search label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.search-field {
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 14px 0 16px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  color: var(--ink-3);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.search-field:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(27, 64, 50, 0.10); }
.search-field svg { flex: none; }
.search-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 16px; color: var(--ink);
}
.search-field input::placeholder { color: var(--ink-3); }
.search-field kbd {
  font: 12px var(--font-mono); color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--paper);
}
.search-results {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  max-height: 380px; overflow: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(23, 39, 31, 0.14);
}
.search-result { display: block; padding: 11px 12px; border-radius: 9px; }
.search-result:hover, .search-result:focus { background: rgba(27, 64, 50, 0.06); }
.search-result strong { display: block; font-size: 15px; }
.search-result small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-3); }
.search-result p {
  margin: 4px 0 0; font-size: 13px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-empty { margin: 0; padding: 14px; font-size: 14px; color: var(--ink-3); }

/* ---------- The chain card ---------- */

.chain {
  position: relative;
  padding: 28px 28px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(23, 39, 31, 0.28);
  overflow: hidden;
}
.chain::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--lime-2), var(--sky) 45%, var(--amber) 75%, var(--rose));
}
.chain-head { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-bottom: 16px; }
.chain-head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.chain-head span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.chain ol { list-style: none; margin: 0; padding: 0; position: relative; }
.chain ol::before {
  content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--lime-2), var(--sky) 45%, var(--amber) 75%, var(--rose));
  opacity: 0.55;
}
.chain li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; padding: 8px 0; }
.chain-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--dot, var(--forest)); color: var(--dot, var(--forest));
  font-size: 12px; font-weight: 700;
}
.chain-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.chain-name small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.chain-what { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.chain-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.chain-foot a { font-weight: 600; color: var(--forest); white-space: nowrap; }
.chain-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections ---------- */

.section { padding: clamp(40px, 6vw, 72px) 0; }

.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.door {
  display: flex; flex-direction: column; gap: 12px; min-height: 250px;
  padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 150ms ease, border-color 150ms ease;
}
.door:hover { transform: translateY(-2px); border-color: var(--forest-2); }
.door-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(27, 64, 50, 0.08); color: var(--forest);
}
.door-icon svg { width: 22px; height: 22px; }
.door h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.door p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.door-meta { font-size: 13px; color: var(--ink-3); }
.door-meta strong { color: var(--ink); font-weight: 600; }
.door-cta { font-size: 14px; font-weight: 600; color: var(--forest); }

.questions { background: var(--forest); color: #f2f4ec; }
.questions .section-title { color: #fff; }
.question-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.question {
  display: block; height: 100%; padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: background 150ms ease, border-color 150ms ease;
}
.question:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(205, 239, 123, 0.55); }
.question h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.question p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(242, 244, 236, 0.76); }
.question span { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--lime); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.principle h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.principle-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-2); flex: none; }
.principle-mark-amber { background: var(--amber); }
.principle p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.disclaimer {
  margin: 32px 0 0; padding: 16px 20px;
  border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0;
  background: var(--amber-soft); font-size: 14.5px; color: var(--ink-2);
}

/* ---------- Footer ---------- */

.site-footer { margin-top: 24px; border-top: 1px solid var(--line); }
.site-footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
  padding: 36px 0 44px; font-size: 14px; color: var(--ink-2);
}
.footer-brand p { margin: 10px 0 0; max-width: 34ch; }
.site-footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .chain { max-width: 640px; }
  .principles { grid-template-columns: 1fr; gap: 20px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* The expanded navigation must collapse before it crowds the brand/search. */
@media (max-width: 1400px) {
  .nav-toggle { display: inline-flex; }
  .header-search { display: none; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; gap: 2px;
    padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(23, 39, 31, 0.25);
  }
  .site-nav a { padding: 12px 10px; font-size: 16px; }
  .site-header[data-nav-open="true"] .site-nav { display: flex; }
}

@media (max-width: 640px) {
  .site-header-inner { gap: 8px; }
  .brand { font-size: 16px; gap: 8px; white-space: normal; line-height: 1.2; }
  .nav-toggle { flex: none; padding-inline: 10px; gap: 8px; }
  .doors, .question-list { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .hero-actions .button { width: 100%; }
  .chain { padding: 22px 18px 18px; }
  .site-footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .door, .question, .site-nav a, .chapter-card { transition: none; }
  .button:hover, .door:hover, .chapter-card:hover { transform: none; }
}

/* ---------- Front door: nutrient chapters ---------- */

.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.filter-inline { margin-top: 0; min-width: 260px; height: 44px; }
.chapter-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; align-content: start;
  padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 150ms ease, border-color 150ms ease;
}
.chapter-card:hover { transform: translateY(-2px); border-color: var(--forest-2); }
.chapter-kind { grid-column: 1; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest-2); }
.chapter-tag {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(205, 239, 123, 0.45); color: var(--forest);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chapter-card h3 { grid-column: 1; margin: 2px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.chapter-card p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chapter-counts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.chapter-counts strong { color: var(--ink); font-weight: 600; }
.chapter-cta { grid-column: 1 / -1; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--forest); }
.chapter-card-skeleton { min-height: 200px; background: var(--paper-2); border-style: dashed; }

.additions { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.addition { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.addition strong { font-weight: 600; }
.addition strong a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.addition time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.addition span { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }

.glance {
  padding: 26px 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(23, 39, 31, 0.28);
}
.glance h2 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.glance-stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.glance-stat strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.glance-stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.glance-foot { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.glance-foot a { font-weight: 600; color: var(--forest); }

.questions .principle h3 { color: #fff; }
.questions .principle p { color: rgba(242, 244, 236, 0.76); }
.questions .disclaimer { background: rgba(255, 255, 255, 0.06); color: rgba(242, 244, 236, 0.86); }

/* ---------- Chapter page ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; font-size: 14px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.hero-chapter { padding-top: clamp(24px, 4vw, 48px); }
.hero-data { margin: 16px 0 0; font-size: 15px; color: var(--ink-3); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.section-head .section-intro { margin-top: 10px; }
.section-head-meta { font-size: 14px; color: var(--ink-3); }

.filter { display: flex; align-items: center; gap: 10px; max-width: 480px; margin-top: 24px; height: 46px; padding: 0 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink-3); }
.filter:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(27, 64, 50, 0.10); }
.filter input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--ink); }
.filter-count { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

.mech-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.mech { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mech-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.mech-statement { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.mech-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.chip-arrow { color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(216, 128, 46, 0.12); color: #9a5a1c; }
.pill-verified { background: rgba(156, 200, 78, 0.25); color: var(--forest); }
.pill-hypothesis { background: rgba(127, 109, 155, 0.15); color: var(--violet); }
.show-more { margin-top: 20px; }

.scenario-groups { display: grid; gap: 28px; margin-top: 24px; }
.scenario-group h3 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.scenario-group > p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.scenario { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-top: 8px; }
.scenario summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; line-height: 1.35; }
.scenario summary::-webkit-details-marker { display: none; }
.scenario summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform 150ms ease; flex: none; }
.scenario[open] summary::before { transform: rotate(45deg); }
.scenario summary .tag { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.scenario-body { margin: 0; padding: 0 18px 18px 34px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.scenario-body div { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.scenario-body dt { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.scenario-body dd { margin: 0; }
.scenario-body .wide { grid-column: 1 / -1; }

.source-list, .conflict-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.source-row, .conflict-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.source-row strong, .conflict-row strong { font-weight: 600; }
.source-row span, .conflict-row span { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.source-row a, .conflict-row a { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; font-weight: 600; color: var(--forest); white-space: nowrap; }
.source-row a:hover, .conflict-row a:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty { margin: 20px 0 0; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 1080px) {
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .scenario-body { grid-template-columns: 1fr; }
  .filter-inline { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .chapters { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chapter-card { padding: 20px; }
  .chapter-card h3 { font-size: 26px; }
  .source-row, .conflict-row { grid-template-columns: 1fr; }
  .source-row a, .conflict-row a { grid-column: 1; grid-row: auto; }
}

/* ---------- Component (entity) page ---------- */

a.chip { color: var(--forest); border-color: rgba(27, 64, 50, 0.28); }
a.chip:hover { background: rgba(27, 64, 50, 0.08); border-color: var(--forest); }
.alias-line { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chapter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.mech-group { margin-top: 28px; }
.mech-group h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.mech-group > p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.mech-group .mech-list { margin-top: 12px; }
.event-participants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.event-participants .role { align-self: center; font-size: 12.5px; color: var(--ink-3); }
.passage-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.passage { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.passage-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 13px; color: var(--ink-3); }
.passage-meta strong { color: var(--ink-2); font-weight: 600; }
.passage-meta a { font-weight: 600; color: var(--forest); white-space: nowrap; }
.passage-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.passage-text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.passage-conflict { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(216, 128, 46, 0.12); color: #9a5a1c; font-size: 12px; font-weight: 600; }

/* ---------- Influences and convergence ---------- */

.dir { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dir-positive { background: rgba(156, 200, 78, 0.28); color: var(--forest); border-color: rgba(27, 64, 50, 0.2); }
.dir-negative { background: rgba(187, 91, 80, 0.14); color: #8f3f36; border-color: rgba(187, 91, 80, 0.3); }
.dir-mixed { background: rgba(216, 128, 46, 0.16); color: #9a5a1c; border-color: rgba(216, 128, 46, 0.35); }
.dir-context { background: rgba(93, 142, 163, 0.16); color: #3f6b7d; border-color: rgba(93, 142, 163, 0.35); }
.dir-neutral { background: rgba(23, 39, 31, 0.07); color: var(--ink-2); }
a.chip.dir-positive:hover, a.chip.dir-negative:hover, a.chip.dir-mixed:hover, a.chip.dir-context:hover, a.chip.dir-neutral:hover { filter: brightness(0.95); }

.callout { margin-top: 20px; padding: 16px 20px; border-left: 3px solid var(--amber); border-radius: 0 10px 10px 0; background: var(--amber-soft); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.influence-list { display: grid; gap: 10px; margin-top: 20px; }
.influence { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.influence summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.influence summary::-webkit-details-marker { display: none; }
.influence summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform 150ms ease; flex: none; }
.influence[open] summary::before { transform: rotate(45deg); }
.influence-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.influence-name a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.influence-count { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.influence-body { padding: 0 18px 10px 34px; }
.influence-body .mech-list { margin-top: 0; border-top: 0; }
.influence-body .mech:last-child { border-bottom: 0; }
.ctx { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); font-size: 12px; color: var(--ink-2); }
.mech-limits { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

.converge-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.converge-tools .filter { margin-top: 0; flex: 1 1 320px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--forest); }
.converge-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.converge-row { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr) auto; gap: 8px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.converge-row h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.converge-row h3 a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.converge-row .type { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.converge-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.converge-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.meet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.meet-card { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.meet-card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.meet-card h3 a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.meet-card .type { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.meet-card .converge-chips { margin-top: 10px; }
.meet-more { margin-top: 18px; font-size: 15px; }
.meet-more a { font-weight: 600; color: var(--forest); }

@media (max-width: 900px) {
  .converge-row { grid-template-columns: 1fr; }
  .converge-meta { align-items: flex-start; white-space: normal; }
  .meet-grid { grid-template-columns: 1fr; }
  .influence-count { margin-left: 0; }
}

/* ---------- Organisms, families, search groups ---------- */

.org { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--ink-2); background: var(--paper-2); border: 1px solid transparent; }
.org b { font-weight: 600; color: var(--ink); }
.org-human { background: rgba(156, 200, 78, 0.18); border-color: rgba(27, 64, 50, 0.15); }
.org-cells { background: rgba(93, 142, 163, 0.14); }
.org-unspecified { color: var(--ink-3); }
.influence-orgs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ctx-target { background: rgba(205, 239, 123, 0.35); color: var(--forest); }
.search-group { margin: 6px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.search-finding strong { font-weight: 500; }
.button-small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Interaction matrix ---------- */

.matrix-wrap { margin-top: 24px; overflow: auto; padding-bottom: 8px; }
.matrix { border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.matrix th { font-weight: 600; color: var(--ink-2); text-align: left; white-space: nowrap; }
.matrix th.corner span { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.matrix thead th.col { vertical-align: bottom; height: 150px; }
.matrix thead th.col span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; max-height: 140px; overflow: hidden; text-overflow: ellipsis; }
.matrix tbody th { padding-right: 10px; font-size: 13px; }
.matrix td { width: 36px; height: 36px; padding: 0; }
.matrix td.none { background: rgba(23, 39, 31, 0.04); border-radius: 8px; }
.matrix td.self { background: repeating-linear-gradient(45deg, rgba(23, 39, 31, 0.06) 0 4px, transparent 4px 8px); border-radius: 8px; }
.matrix .cell { width: 36px; height: 36px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 1px solid transparent; border-radius: 8px; cursor: pointer; line-height: 1; font-size: 13px; transition: transform 120ms ease, box-shadow 120ms ease; }
.matrix .cell b { font-size: 10px; font-weight: 600; }
.matrix .cell:hover { transform: scale(1.08); box-shadow: 0 6px 14px -6px rgba(23, 39, 31, 0.4); }
.matrix .cell.is-active { outline: 2px solid var(--forest); outline-offset: 1px; }

@media (max-width: 640px) {
  .matrix thead th.col { height: 120px; }
}

/* Actor attribution and inferred directions */
.influence-others { margin-top: 36px; }
.section-head-sub { margin-top: 0; }
.section-subtitle { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 6px; }
.influence-kind { font-size: 12.5px; color: var(--ink-3); text-transform: lowercase; }
.influence-inferred { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(236, 201, 75, 0.25); color: #6b5300; font-size: 12px; font-weight: 600; }
.ctx-inferred { background: rgba(236, 201, 75, 0.25); color: #6b5300; }
.ctx-recorded { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); }
.mech.is-inferred { border-left: 3px solid rgba(236, 201, 75, 0.9); padding-left: 14px; }

/* Evidence panel on every finding */
.evidence { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.evidence summary { padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--forest); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.evidence summary::-webkit-details-marker { display: none; }
.evidence summary::before { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 150ms ease; }
.evidence[open] summary::before { transform: rotate(45deg); }
.evidence-body { padding: 0 14px 12px; }
.evidence-block + .evidence-block { margin-top: 12px; }
.evidence-block h5 { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.evidence-refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.evidence-refs li { font-size: 14px; line-height: 1.45; }
.evidence-refs a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.evidence-refs a:hover { color: var(--forest); text-decoration-color: currentColor; }
.evidence-refs small { display: block; font-size: 12px; color: var(--ink-3); }
.evidence-passage { margin: 0; }
.evidence-passage + .evidence-passage { margin-top: 10px; }
.evidence-passage blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line-2); background: var(--card); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; }
.evidence-passage figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.evidence-more { margin: 8px 0 0; font-size: 13px; }
.evidence-more a { color: var(--forest); font-weight: 600; }
.evidence-empty { margin: 0; padding: 6px 0; font-size: 13.5px; color: var(--ink-3); }
.linkish { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Inferred marks on chips */
.inferred-mark { margin-left: 4px; font-style: normal; font-weight: 700; color: #6b5300; }

/* Search page */
.search-examples { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.search-examples a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.search-examples a:hover { text-decoration-color: currentColor; }
.search-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.search-all strong { color: var(--forest); }
.hero-search .hero-copy { max-width: 760px; }
.component-chips { margin-top: 20px; gap: 10px; }
.chip-large { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 14px; border-radius: 12px; background: var(--card); }
.chip-large strong { font-size: 15px; color: var(--ink); }
.chip-large span { font-size: 12px; color: var(--ink-3); }
.chip-large:hover { border-color: var(--forest-2); }
.search-filters { align-items: flex-end; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.filter-chip b { margin-left: 4px; font-weight: 600; color: var(--ink-3); }
.filter-chip:hover { border-color: var(--forest-2); }
.filter-chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.filter-chip.is-active b { color: rgba(255, 255, 255, 0.8); }
.select-label { display: inline-flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.select-label select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: inherit; font-size: 14px; color: var(--ink); }
#finding-list.mech-list { margin-top: 12px; }

/* Curation records inside the evidence panel */
.evidence-record-box + .evidence-record-box { margin-top: 10px; }
.evidence-record-statement { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.evidence-record { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 13.5px; }
.evidence-record div { display: contents; }
.evidence-record dt { color: var(--ink-3); font-weight: 600; }
.evidence-record dd { margin: 0; color: var(--ink-2); }
.evidence-caption { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.hero-search { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
.hero-search + .section { padding-top: 24px; }
@media (max-width: 640px) { .evidence-record { grid-template-columns: 1fr; gap: 2px 0; } .evidence-record dd { margin-bottom: 6px; } }

/* Mechanism chains */
.chain-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 28px; }
.chain-pick { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; }
.chain-pick label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chain-optional { font-weight: 400; color: var(--ink-3); }
.chain-pick input { padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); }
.chain-pick input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(27, 64, 50, 0.10); }
.route-list { list-style: none; margin: 0; padding: 0; }
.route-list-top { margin-top: 16px; border-top: 1px solid var(--line); }
.route-row { border-bottom: 1px solid var(--line); }
.route-row:last-child { border-bottom: 0; }
.route > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; cursor: pointer; list-style: none; }
.route > summary::-webkit-details-marker { display: none; }
.route-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 60%; }
.route-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 2px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.route-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.route-steps-count { white-space: nowrap; }
.route-steps { margin: 0 0 14px; padding: 0 0 0 18px; border-left: 2px solid var(--line-2); }
.route-step + .route-step { margin-top: 4px; }
.route-step-index { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.route-step .mech-list { margin-top: 0; border-top: 0; }
.route-step .mech { padding-top: 6px; border-bottom: 0; }
.route-group .influence-body { padding-bottom: 4px; }
.route-summary { font-size: 13px; color: var(--ink-2); }
.show-more { padding: 16px 0; text-align: center; list-style: none; }
.button-small { padding: 6px 12px; font-size: 13px; }
@media (max-width: 640px) { .route > summary { flex-direction: column; align-items: flex-start; } .route-steps { padding-left: 10px; } }
.route-origin { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.route-origin:hover { color: var(--forest); }

/* Directions that could not be verified from the wording */
.influence-unverified { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(23, 39, 31, 0.08); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ctx-unverified { background: rgba(23, 39, 31, 0.07); border: 1px dashed var(--line-2); color: var(--ink-2); }
.mech.is-unverified { border-left: 3px solid var(--line-2); padding-left: 14px; }

/* ----- Hub audit -------------------------------------------------------
   One component's lines of evidence, with what the ledger does and does not
   establish kept visually apart from the counts that led there. */
.audit-block { margin-top: 26px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.audit-block h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 25px; letter-spacing: -0.01em; }
.audit-subhead { margin: 20px 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.audit-lead { margin: 0 0 14px; max-width: var(--measure); color: var(--ink-2); line-height: 1.6; }
.audit-note { margin: 10px 0 0; max-width: var(--measure); font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.audit-columns { display: grid; gap: 8px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.audit-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0 6px; }
.audit-facts-small { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.audit-fact { padding: 12px 14px; border-radius: 10px; background: var(--paper-2); }
.audit-fact-value { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.1; color: var(--forest); }
.audit-fact-label { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; }
.audit-fact-note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }

.audit-bars { display: grid; gap: 8px; margin: 14px 0 6px; max-width: 620px; }
.audit-bar { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 12px; font-size: 13.5px; }
.audit-bar-label { color: var(--ink-2); }
.audit-bar-track { height: 14px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.audit-bar-fill { display: block; height: 100%; border-radius: 999px; }
.audit-bar-observed { background: var(--forest); }
.audit-bar-expected { background: var(--line-2); }
.audit-bar-value { font-weight: 700; text-align: right; }
.audit-verdict-line { margin: 12px 0 0; max-width: var(--measure); font-size: 15px; line-height: 1.55; }

.audit-verdict { border-left: 4px solid var(--forest); }
.audit-verdict-list { margin: 14px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.audit-verdict-row { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 0; background: var(--card); }
.audit-verdict-row dt { padding: 11px 14px; font-size: 14px; font-weight: 600; background: var(--paper-2); }
.audit-verdict-row dd { margin: 0; padding: 11px 14px; font-size: 14px; color: var(--ink-2); }
.audit-tone-strong { color: var(--forest); font-weight: 600; }
.audit-tone-weak { color: var(--ink-3); }

.audit-modes { margin: 12px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.audit-quote { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--lime-2); border-radius: 0 10px 10px 0; background: rgba(156, 200, 78, 0.12); }
.audit-quote p { margin: 0; font-size: 15px; line-height: 1.55; }
.audit-quote span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

.audit-ladder { margin: 12px 0 0; padding-left: 22px; font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.audit-ladder li::marker { color: var(--ink-3); }

.audit-block-flagged { border-left: 4px solid var(--amber); }
.audit-flag { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--amber-soft); }
.audit-flag-head { margin: 0 0 6px; font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.audit-flag-line { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.audit-flag-source { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

.audit-arrow { margin: 0 4px; color: var(--ink-3); }
.audit-step-note { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }

.audit-shortlist { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: shortlist; }
.audit-shortlist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.audit-shortlist li a { font-family: var(--font-display); font-size: 19px; }
.audit-shortlist-meta { font-size: 13px; color: var(--ink-3); }

@media (max-width: 640px) {
  .audit-verdict-row { grid-template-columns: 1fr; }
  .audit-verdict-row dt { padding-bottom: 4px; }
  .audit-bar { grid-template-columns: 1fr; gap: 4px; }
  .audit-bar-value { text-align: left; }
}
.converge-audit { font-size: 12.5px; font-weight: 600; color: var(--forest-2); white-space: nowrap; }
.converge-audit:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Copy mechanisms to an LLM prompt ---------- */

.mech-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.mech-tools .filter { flex: 1 1 280px; margin-top: 0; }
.mech-tools .button { flex: 0 0 auto; }
.mech-tools .button:disabled { cursor: wait; opacity: 0.6; transform: none; }
.copy-status { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--forest); }
.copy-status:empty { display: none; }
.copy-status.is-error { color: #9a3b1c; }
.mech-copy { margin-top: 0; }
.mech-copy:disabled { cursor: wait; opacity: 0.6; }
.mech-copy-status { font-size: 12px; font-weight: 600; color: var(--forest); }
.prompt-dialog {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); color: var(--ink);
  box-shadow: 0 24px 60px rgba(23, 39, 31, 0.25);
}
.prompt-dialog::backdrop { background: rgba(23, 39, 31, 0.55); }
.prompt-dialog h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; }
.prompt-dialog p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-2); }
.prompt-dialog textarea {
  display: block; width: 100%; min-height: 220px; max-height: 50dvh; resize: vertical; padding: 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.5;
}
.prompt-dialog-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 720px) {
  .mech-tools .button { width: 100%; }
}

/* Evidence present in the initial HTML remains usable after enhancement. */
[data-ssr-citations] { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
[data-ssr-citations] summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--forest); }
.seo-evidence { padding-top: 10px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; }
.seo-evidence a { text-decoration: underline; text-underline-offset: 3px; }
.about-header { flex-wrap: wrap; gap: 8px 24px; padding-block: 12px; }
.seo-evidence dt { font-weight: 600; }
.seo-evidence dd { margin: 0 0 8px; }
.seo-evidence p { margin: 8px 0; }
.seo-evidence blockquote { margin: 10px 0; padding: 8px 12px; border-left: 2px solid var(--line); }
.seo-share-card { display: block; max-width: 100%; height: auto; border-radius: 16px; }
