:root {
  --df-max: 1180px;
  --df-ink: var(--text-primary);
  --df-muted: var(--text-secondary);
  --df-faint: var(--text-muted);
  --df-paper: var(--bg-card);
  --df-rule: var(--border-light);
  --df-accent: var(--accent);
  --df-dark: #241b12;
  --df-dark-2: #302419;
  --df-light-ink: #f6ead4;
  --df-warn: #9b5149;
}

html { scroll-padding-top: 132px; }
body { overflow-x: hidden; }
body:has([data-portal-host]) { padding-top: 56px; }

.df-main {
  width: min(100%, calc(var(--df-max) + 64px));
  margin: 0 auto;
  padding: 0 32px;
}

.df-main h1,
.df-main h2,
.df-main h3,
.df-main h4,
.df-main p { margin-top: 0; }

.df-main h1,
.df-main h2,
.df-main h3,
.df-main h4 { color: var(--df-ink); }

.df-main em { color: var(--df-accent); font-style: normal; }

.df-eyebrow,
.df-kicker {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.df-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.df-eyebrow::before {
  width: 36px;
  height: 1px;
  background: var(--grad-line);
  content: "";
}

.df-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
  min-height: min(740px, calc(100vh - 56px));
  padding: clamp(74px, 10vw, 124px) 0 76px;
  border-bottom: 1px solid var(--df-rule);
}

.df-hero-copy h1 {
  max-width: 820px;
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(52px, 7.6vw, 94px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

.df-hero-copy h1 em {
  display: block;
  font-size: .64em;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.df-lede {
  max-width: 750px;
  margin-bottom: 28px;
  color: var(--df-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.85;
}

.df-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.df-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--df-muted);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.df-btn:hover { border-color: var(--df-accent); color: var(--df-accent); transform: translateY(-2px); }
.df-btn-primary { border-color: var(--df-accent); background: var(--df-accent); color: #fff8ea; }
.df-btn-primary:hover { background: var(--accent-2); color: #fff8ea; }
.df-asof { margin: 20px 0 0; color: var(--df-faint); font-family: var(--mono); font-size: 10px; }

.df-hero-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 38px 26px 26px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--df-paper) 90%, transparent);
  box-shadow: var(--shadow-md);
}

.df-hero-map::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-line);
  content: "";
}

.df-map-core {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 18px;
  border-bottom: 1px solid var(--df-rule);
}

.df-map-core span { color: var(--df-faint); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.df-map-core strong { font-family: var(--serif); font-size: 20px; }

.df-hero-map button {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--df-rule);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  color: var(--df-ink);
  cursor: pointer;
  font: 650 13px/1.4 var(--sans);
  text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.df-hero-map button span { display: block; margin-bottom: 9px; color: var(--df-accent); font: 10px/1 var(--mono); }
.df-hero-map button:hover { border-color: var(--df-accent); background: var(--bg-hover); transform: translateY(-2px); }

.df-chapter-nav {
  position: sticky;
  z-index: 20;
  top: 56px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
  backdrop-filter: blur(10px);
}

.df-chapter-nav a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px;
  border-right: 1px solid var(--df-rule);
  color: var(--df-faint);
  font-size: 12px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}

.df-chapter-nav a:last-child { border-right: 0; }
.df-chapter-nav a span { color: var(--df-accent); font-family: var(--mono); font-size: 9px; }
.df-chapter-nav a:hover,
.df-chapter-nav a.is-active { background: var(--bg-hover); color: var(--df-ink); }

.df-section {
  padding: clamp(76px, 10vw, 126px) 0;
  border-bottom: 1px solid var(--df-rule);
}

.df-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: end;
  margin-bottom: 50px;
}

.df-section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.03;
}

.df-section-head > p {
  margin-bottom: 5px;
  color: var(--df-muted);
  font-size: 15px;
  line-height: 1.9;
}

.df-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--df-paper);
  list-style: none;
}

.df-path-grid li {
  min-height: 260px;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

.df-path-grid li:last-child { border-right: 0; }
.df-path-grid span { display: block; margin-bottom: 58px; color: var(--df-accent); font: 11px/1 var(--mono); }
.df-path-grid h3 { margin-bottom: 12px; font: 700 21px/1.35 var(--serif); }
.df-path-grid p { margin-bottom: 0; color: var(--df-muted); font-size: 13px; line-height: 1.8; }

.df-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--df-paper);
  scrollbar-color: var(--df-accent) var(--bg-secondary);
}

.df-compare-table,
.df-metric-table { width: 100%; min-width: 900px; border-collapse: collapse; }

.df-compare-table th,
.df-compare-table td,
.df-metric-table th,
.df-metric-table td {
  padding: 18px;
  border-right: 1px solid var(--df-rule);
  border-bottom: 1px solid var(--df-rule);
  text-align: left;
  vertical-align: top;
}

.df-compare-table th,
.df-metric-table th {
  background: var(--bg-secondary);
  color: var(--accent-2);
  font-size: 11px;
  letter-spacing: .08em;
}

.df-compare-table td,
.df-metric-table td { color: var(--df-muted); font-size: 13px; line-height: 1.75; }
.df-compare-table td:first-child,
.df-metric-table td:first-child { color: var(--df-ink); font-weight: 700; }
.df-compare-table tr:last-child td,
.df-metric-table tr:last-child td { border-bottom: 0; }
.df-compare-table th:last-child,
.df-compare-table td:last-child,
.df-metric-table th:last-child,
.df-metric-table td:last-child { border-right: 0; }

.df-boundary-note {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-top: 18px;
  padding: 22px 24px;
  border-left: 4px solid var(--df-accent);
  background: var(--bg-secondary);
}

.df-boundary-note strong { font-family: var(--serif); font-size: 18px; }
.df-boundary-note p { margin: 0; color: var(--df-muted); font-size: 13px; }

.df-category-shell { border: 1px solid var(--border); background: var(--df-paper); }
.df-category-tabs { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--border); }

.df-category-tabs button {
  min-width: 0;
  min-height: 116px;
  padding: 18px 14px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--df-muted);
  cursor: pointer;
  text-align: left;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.df-category-tabs button:last-child { border-right: 0; }
.df-category-tabs button span { display: block; margin-bottom: 14px; color: var(--df-accent); font: 9px/1 var(--mono); }
.df-category-tabs button b { display: block; margin-bottom: 5px; color: inherit; font-size: 13px; }
.df-category-tabs button small { display: block; color: var(--df-faint); font-size: 10px; line-height: 1.5; }
.df-category-tabs button:hover { background: var(--bg-hover); color: var(--df-ink); }
.df-category-tabs button[aria-selected="true"] { background: var(--bg-secondary); color: var(--df-ink); box-shadow: inset 0 -4px 0 var(--df-accent); }

.df-category-panel { padding: clamp(28px, 5vw, 56px); }
.df-category-panel + .df-category-panel { border-top: 1px solid var(--border); }
.df-js .df-category-panel[hidden] { display: none; }

.df-category-panel > header {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(300px, 1fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 32px;
}

.df-panel-no { margin-bottom: 10px; color: var(--df-accent); font: 10px/1 var(--mono); letter-spacing: .12em; }
.df-category-panel > header h3 { margin: 0; font: 700 clamp(30px, 4vw, 48px)/1.1 var(--serif); }
.df-category-panel > header > p { margin: 0; color: var(--df-muted); font-size: 14px; line-height: 1.85; }

.df-mechanism-flow {
  display: flex;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--df-rule);
  background: var(--bg-tertiary);
  color: var(--df-muted);
  font-size: 12px;
}

.df-mechanism-flow span { flex: 1; padding: 7px 10px; text-align: center; }
.df-mechanism-flow i { align-self: center; color: var(--df-accent); font: normal 14px/1 var(--mono); }

.df-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--df-rule); }
.df-panel-grid section { min-height: 210px; padding: 24px; border-right: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); }
.df-panel-grid section:nth-child(2n) { border-right: 0; }
.df-panel-grid section:nth-last-child(-n + 2) { border-bottom: 0; }
.df-panel-grid h4 { margin-bottom: 14px; font: 700 17px/1.4 var(--serif); }
.df-panel-grid p,
.df-panel-grid li { color: var(--df-muted); font-size: 13px; line-height: 1.8; }
.df-panel-grid p { margin-bottom: 0; }
.df-panel-grid ul { margin: 0; padding-left: 18px; }
.df-panel-grid li + li { margin-top: 7px; }
.df-panel-grid li::marker { color: var(--df-accent); }
.df-risk-cell { background: color-mix(in srgb, var(--df-warn) 7%, var(--df-paper)); }

.df-case {
  display: grid;
  grid-template-columns: 170px minmax(180px, .55fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--df-rule);
  border-left: 4px solid var(--df-accent);
  background: var(--bg-secondary);
}

.df-case span { color: var(--df-accent); font: 10px/1.5 var(--mono); letter-spacing: .08em; }
.df-case h4 { margin: 0; font: 700 18px/1.4 var(--serif); }
.df-case p { margin: 0; color: var(--df-muted); font-size: 13px; line-height: 1.8; }
.df-case a { grid-column: 3; color: var(--accent-2); font-size: 12px; font-weight: 700; }

.df-history { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 8vw, 100px); }
.df-history .df-section-head { display: block; position: static; align-self: start; margin: 0; }
.df-history .df-section-head > p { margin-top: 28px; }

.df-timeline { margin: 0; padding: 0; border-top: 1px solid var(--border); list-style: none; }
.df-timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--df-rule); }
.df-timeline time { color: var(--df-faint); font: 11px/1.5 var(--mono); }
.df-timeline h3 { margin-bottom: 8px; font: 700 19px/1.4 var(--serif); }
.df-timeline p { margin: 0; color: var(--df-muted); font-size: 13px; line-height: 1.8; }
.df-timeline .is-summer { margin-inline: -18px; padding-inline: 18px; background: color-mix(in srgb, var(--df-accent) 9%, transparent); }
.df-timeline .is-summer time { color: var(--df-accent); }

.df-history-lesson { grid-column: 2; padding: 26px; border: 1px solid var(--border); background: var(--df-paper); }
.df-history-lesson strong { font: 700 20px/1.4 var(--serif); }
.df-history-lesson p { margin: 14px 0; color: var(--df-muted); font-size: 13px; line-height: 1.85; }
.df-history-lesson a { color: var(--accent-2); font-size: 12px; font-weight: 700; }

.df-summer-dossiers { grid-column: 1 / -1; display: grid; gap: 18px; margin-top: 22px; }
.df-dossier { display: grid; grid-template-columns: 220px minmax(0, 1.3fr) minmax(260px, .7fr); border: 1px solid var(--border); background: var(--df-paper); }
.df-dossier > header { padding: 28px; border-right: 1px solid var(--df-rule); background: var(--bg-secondary); }
.df-dossier > header span { color: var(--df-accent); font: 9px/1.4 var(--mono); letter-spacing: .12em; }
.df-dossier > header h3 { margin: 52px 0 0; font: 700 25px/1.22 var(--serif); }
.df-dossier-body { padding: 28px; border-right: 1px solid var(--df-rule); }
.df-dossier-body > p { color: var(--df-muted); font-size: 13px; line-height: 1.85; }
.df-dossier-body ol { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: dossier; }
.df-dossier-body li { position: relative; padding: 14px 0 14px 36px; border-top: 1px solid var(--df-rule); color: var(--df-muted); font-size: 12px; line-height: 1.75; counter-increment: dossier; }
.df-dossier-body li::before { position: absolute; top: 16px; left: 0; color: var(--df-accent); content: "0" counter(dossier); font: 9px/1.4 var(--mono); }
.df-dossier > footer { padding: 28px; }
.df-dossier > footer b { display: block; margin-bottom: 14px; font: 700 18px/1.35 var(--serif); }
.df-dossier > footer p { color: var(--df-muted); font-size: 12px; line-height: 1.8; }
.df-dossier > footer a { display: inline-block; margin: 10px 14px 0 0; color: var(--accent-2); font-size: 11px; font-weight: 700; }
.df-dossier-loop { display: block; padding: 28px; border-left: 4px solid var(--df-accent); }
.df-dossier-loop > header { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 0 0 22px; border: 0; background: transparent; }
.df-dossier-loop > header h3 { margin: 0; }
.df-summer-loop { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; border: 1px solid var(--df-rule); }
.df-summer-loop span { min-height: 92px; padding: 20px 12px; color: var(--df-ink); font-size: 12px; font-weight: 700; line-height: 1.55; }
.df-summer-loop i { display: none; }
.df-summer-loop span + i + span { border-left: 1px solid var(--df-rule); }
.df-dossier-loop > p { margin: 22px 0 0; color: var(--df-muted); font-size: 13px; line-height: 1.85; }

.df-yield-ledger { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); background: var(--df-paper); }
.df-yield-ledger article { min-height: 290px; padding: 24px; border-right: 1px solid var(--df-rule); }
.df-yield-ledger article:last-child { border-right: 0; }
.df-yield-ledger span,
.df-pool-card > span { color: var(--df-accent); font: 9px/1.4 var(--mono); letter-spacing: .1em; }
.df-yield-ledger h3 { margin: 60px 0 15px; font: 700 20px/1.35 var(--serif); }
.df-yield-ledger p { margin: 0; color: var(--df-muted); font-size: 12px; line-height: 1.8; }

.df-pool-primer { display: grid; grid-template-columns: minmax(230px, .72fr) repeat(2, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--border); }
.df-pool-intro,
.df-pool-card { padding: 28px; }
.df-pool-intro { border-right: 1px solid var(--df-rule); background: var(--bg-secondary); }
.df-pool-intro h3 { margin-bottom: 16px; font: 700 26px/1.28 var(--serif); }
.df-pool-intro > p:last-child,
.df-pool-card p,
.df-pool-card li { color: var(--df-muted); font-size: 12px; line-height: 1.8; }
.df-pool-card { border-right: 1px solid var(--df-rule); background: var(--df-paper); }
.df-pool-card:last-child { border-right: 0; }
.df-pool-card h3 { margin: 46px 0 14px; font: 700 21px/1.35 var(--serif); }
.df-pool-card ul { margin: 18px 0 0; padding-left: 18px; }
.df-pool-card li + li { margin-top: 8px; }
.df-pool-card li::marker { color: var(--df-accent); }
.df-pool-two { background: color-mix(in srgb, var(--df-warn) 7%, var(--df-paper)); }

.df-farm-lab { display: grid; grid-template-columns: minmax(230px, .62fr) minmax(300px, .8fr) minmax(0, 1.1fr); margin-top: 24px; border: 1px solid var(--border); background: var(--df-paper); }
.df-lab-copy,
.df-lab-controls { padding: 28px; border-right: 1px solid var(--df-rule); }
.df-lab-copy { background: var(--bg-secondary); }
.df-lab-copy h3 { margin-bottom: 16px; font: 700 27px/1.28 var(--serif); }
.df-lab-copy > p:last-child { margin: 0; color: var(--df-muted); font-size: 12px; line-height: 1.8; }
.df-lab-controls { display: grid; align-content: center; gap: 9px; }
.df-lab-controls label,
.df-mechanic-controls label { display: flex; justify-content: space-between; gap: 18px; color: var(--df-muted); font-size: 11px; }
.df-lab-controls output,
.df-mechanic-controls output { color: var(--df-ink); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.df-lab-controls input,
.df-mechanic-controls input { width: 100%; margin: 0 0 13px; accent-color: var(--df-accent); cursor: pointer; }
.df-lab-results { display: grid; grid-template-columns: 1fr 1fr; }
.df-lab-results article { min-height: 164px; padding: 24px; border-right: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); }
.df-lab-results article:nth-child(2n) { border-right: 0; }
.df-lab-results article:nth-last-child(-n + 2) { border-bottom: 0; }
.df-lab-results span { display: block; color: var(--df-faint); font-size: 10px; }
.df-lab-results strong { display: block; margin: 24px 0 8px; color: var(--df-accent); font: 700 28px/1 var(--serif); }
.df-lab-results small { color: var(--df-muted); font-size: 10px; line-height: 1.55; }
.df-farm-lab.is-negative .df-farm-verdict strong { color: var(--df-warn); }
.df-lab-note { grid-column: 1 / -1; margin: 0; padding: 16px 22px; border-top: 1px solid var(--df-rule); color: var(--df-faint); font-size: 10px; line-height: 1.7; }

.df-risk-matrix { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border: 1px solid var(--border); }
.df-risk-matrix article { min-height: 132px; padding: 22px; border-right: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); }
.df-risk-matrix article:nth-child(3n) { border-right: 0; }
.df-risk-matrix article:nth-last-child(-n + 3) { border-bottom: 0; }
.df-risk-matrix b { font: 700 16px/1.4 var(--serif); }
.df-risk-matrix p { margin: 12px 0 0; color: var(--df-muted); font-size: 11px; line-height: 1.7; }

.df-mechanics { background: color-mix(in srgb, var(--bg-secondary) 72%, var(--bg-primary)); }
.df-mechanics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.df-mechanic-lab { overflow: hidden; border: 1px solid var(--border); background: var(--df-paper); }
.df-mechanic-lab > header { min-height: 250px; padding: 28px; background: var(--bg-secondary); }
.df-mechanic-lab > header > span { color: var(--df-accent); font: 9px/1.4 var(--mono); letter-spacing: .1em; }
.df-mechanic-lab > header h3 { margin: 54px 0 14px; font: 700 27px/1.25 var(--serif); }
.df-mechanic-lab > header p { margin: 0; color: var(--df-muted); font-size: 12px; line-height: 1.8; }
.df-mechanic-flow { display: flex; overflow-x: auto; align-items: center; padding: 18px 22px; border-top: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); scrollbar-width: thin; }
.df-mechanic-flow span { flex: 1 0 100px; color: var(--df-muted); font-size: 10px; font-weight: 700; line-height: 1.5; text-align: center; }
.df-mechanic-flow i { color: var(--df-accent); font: normal 11px/1 var(--mono); }
.df-mechanic-controls { padding: 24px 28px 10px; }
.df-mechanic-results { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--df-rule); }
.df-mechanic-results > div { min-height: 110px; padding: 18px; border-right: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); }
.df-mechanic-results > div:nth-child(2n) { border-right: 0; }
.df-mechanic-results > div:nth-last-child(-n + 2) { border-bottom: 0; }
.df-mechanic-results span { display: block; color: var(--df-faint); font-size: 9px; }
.df-mechanic-results strong { display: block; margin-top: 16px; color: var(--df-accent); font: 700 18px/1.25 var(--serif); }
.df-mechanic-lab.is-liquidatable [data-liquidation-output="health"],
.df-mechanic-lab.is-liquidatable [data-liquidation-output="status"] { color: var(--df-warn); }
.df-mechanic-lab details { border-top: 1px solid var(--df-rule); }
.df-mechanic-lab summary { padding: 20px 24px; color: var(--df-ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.df-mechanic-lab details p { margin: 0; padding: 0 24px 22px; color: var(--df-muted); font-size: 11px; line-height: 1.75; }
.df-principle-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--border); background: var(--df-paper); }
.df-principle-strip article { min-height: 150px; padding: 22px; border-right: 1px solid var(--df-rule); }
.df-principle-strip article:last-child { border-right: 0; }
.df-principle-strip span { color: var(--df-accent); font: 9px/1 var(--mono); letter-spacing: .1em; }
.df-principle-strip p { margin: 28px 0 0; color: var(--df-muted); font-size: 11px; line-height: 1.75; }

.df-valuation,
.df-safety {
  width: auto;
  margin-inline: calc((100% - 100dvw) / 2);
  padding-inline: max(32px, calc((100dvw - var(--df-max)) / 2));
  border-bottom: 0;
  background: var(--df-dark);
  color: var(--df-light-ink);
}

.df-valuation { background-image: linear-gradient(rgba(212,168,87,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(212,168,87,.035) 1px, transparent 1px); background-size: 48px 48px; }
.df-section-head-light h2,
.df-section-head-light h2 em,
.df-valuation h3,
.df-valuation h4,
.df-safety h3,
.df-safety h4 { color: var(--df-light-ink); }
.df-section-head-light .df-kicker { color: #d4a857; }
.df-section-head-light > p { color: #cbb996; }

.df-value-waterfall { display: flex; align-items: stretch; margin-bottom: 30px; border: 1px solid rgba(212,168,87,.28); }
.df-value-waterfall div { flex: 1; min-width: 0; padding: 22px 18px; background: rgba(255,255,255,.025); }
.df-value-waterfall i { align-self: center; color: #d4a857; font: normal 14px/1 var(--mono); }
.df-value-waterfall span { display: block; margin-bottom: 28px; color: #d4a857; font: 9px/1 var(--mono); }
.df-value-waterfall b { display: block; margin-bottom: 7px; color: var(--df-light-ink); font-size: 13px; }
.df-value-waterfall small { display: block; color: #ad9a78; font-size: 10px; line-height: 1.5; }

.df-definitions { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; border: 1px solid rgba(212,168,87,.28); }
.df-definitions article { min-height: 220px; padding: 24px; border-right: 1px solid rgba(212,168,87,.2); }
.df-definitions article:last-child { border-right: 0; }
.df-definitions span { color: #d4a857; font: 9px/1 var(--mono); letter-spacing: .1em; }
.df-definitions h3 { margin: 44px 0 12px; font: 700 18px/1.4 var(--serif); }
.df-definitions p { margin: 0; color: #bca98a; font-size: 12px; line-height: 1.8; }

.df-token-ladder { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr); margin-bottom: 30px; border: 1px solid rgba(212,168,87,.28); }
.df-token-ladder > div { padding: 30px; border-right: 1px solid rgba(212,168,87,.2); }
.df-token-ladder > div h3 { margin-bottom: 16px; font: 700 27px/1.28 var(--serif); }
.df-token-ladder > div > p:last-child { color: #ad9a78; font-size: 12px; line-height: 1.75; }
.df-token-ladder ol { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.df-token-ladder li { min-height: 185px; padding: 24px; border-right: 1px solid rgba(212,168,87,.18); border-bottom: 1px solid rgba(212,168,87,.18); }
.df-token-ladder li:nth-child(2n) { border-right: 0; }
.df-token-ladder li:nth-last-child(-n + 2) { border-bottom: 0; }
.df-token-ladder li span { display: block; margin-bottom: 34px; color: #d4a857; font: 9px/1 var(--mono); }
.df-token-ladder li b { display: block; color: var(--df-light-ink); font: 700 16px/1.4 var(--serif); }
.df-token-ladder li p { margin: 10px 0 0; color: #bca98a; font-size: 11px; line-height: 1.7; }

.df-capture-examples { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 30px; border: 1px solid rgba(212,168,87,.28); }
.df-capture-heading { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .5fr) minmax(260px, 1fr); gap: 40px; padding: 30px; border-bottom: 1px solid rgba(212,168,87,.2); }
.df-capture-heading h3 { margin: 0; font: 700 28px/1.25 var(--serif); }
.df-capture-heading > p:last-child { margin: 0; color: #bca98a; font-size: 12px; line-height: 1.75; }
.df-capture-examples article { display: flex; min-height: 274px; flex-direction: column; padding: 24px; border-right: 1px solid rgba(212,168,87,.18); border-bottom: 1px solid rgba(212,168,87,.18); }
.df-capture-examples article:nth-of-type(3n) { border-right: 0; }
.df-capture-examples article:nth-last-child(-n + 2) { border-bottom: 0; }
.df-capture-examples article:nth-last-child(2) { grid-column: 1 / 2; }
.df-capture-examples article:last-child { grid-column: 2 / 4; border-right: 0; }
.df-capture-examples article > span { color: #d4a857; font: 9px/1.4 var(--mono); letter-spacing: .08em; }
.df-capture-examples h4 { margin: 42px 0 14px; font: 700 19px/1.35 var(--serif); }
.df-capture-examples article p { flex: 1; color: #bca98a; font-size: 11px; line-height: 1.75; }
.df-capture-examples article a { padding-top: 12px; border-top: 1px solid rgba(212,168,87,.18); color: #e2bd72; font-size: 10px; font-weight: 700; }

.df-formula-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 54px; }
.df-formula-grid article { padding: 24px; border: 1px solid rgba(212,168,87,.28); background: var(--df-dark-2); }
.df-formula-grid p { margin-bottom: 14px; color: #d4a857; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.df-formula-grid code { display: block; overflow-wrap: anywhere; color: var(--df-light-ink); font: 650 15px/1.7 var(--mono); }
.df-formula-grid small { display: block; margin-top: 12px; color: #ad9a78; font-size: 11px; line-height: 1.7; }

.df-research-layers { display: grid; grid-template-columns: minmax(260px, .6fr) minmax(0, 1.4fr); margin-bottom: 32px; border: 1px solid rgba(212,168,87,.28); }
.df-layer-intro { padding: 32px; border-right: 1px solid rgba(212,168,87,.2); }
.df-layer-intro h3 { margin-bottom: 18px; font: 700 28px/1.25 var(--serif); }
.df-layer-intro p:last-child { color: #ad9a78; font-size: 13px; }
.df-research-layers ol { margin: 0; padding: 0; list-style: none; }
.df-research-layers li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 26px; border-bottom: 1px solid rgba(212,168,87,.18); }
.df-research-layers li:last-child { border-bottom: 0; }
.df-research-layers li > span { color: #d4a857; font: 10px/1.6 var(--mono); }
.df-research-layers h4 { margin-bottom: 7px; font: 700 16px/1.4 var(--serif); }
.df-research-layers li p { margin: 0; color: #bca98a; font-size: 12px; line-height: 1.75; }

.df-metric-wrap { border-color: rgba(212,168,87,.28); background: var(--df-dark-2); }
.df-metric-table th { background: #35281b; color: #d4a857; }
.df-metric-table th,
.df-metric-table td { border-color: rgba(212,168,87,.18); }
.df-metric-table td { color: #bca98a; }
.df-metric-table td:first-child { color: var(--df-light-ink); }

.df-valuation-verdict { margin-top: 28px; padding: 28px; border-left: 4px solid #d4a857; background: var(--df-dark-2); }
.df-valuation-verdict strong { font: 700 22px/1.4 var(--serif); }
.df-valuation-verdict p { margin: 14px 0; color: #bca98a; font-size: 13px; line-height: 1.85; }
.df-valuation-verdict a { display: inline-block; margin: 6px 18px 0 0; color: #e2bd72; font-size: 12px; font-weight: 700; }

.df-safety { background: var(--df-dark-2); border-top: 1px solid rgba(212,168,87,.2); }
.df-safety-layout { display: grid; grid-template-columns: minmax(240px, .48fr) minmax(0, 1.52fr); border: 1px solid rgba(212,168,87,.28); }
.df-safety-progress { padding: 30px; border-right: 1px solid rgba(212,168,87,.2); }
.df-safety-progress > span { color: #d4a857; font: 10px/1 var(--mono); letter-spacing: .1em; }
.df-safety-progress strong { display: block; margin: 46px 0 20px; color: var(--df-light-ink); font: 700 36px/1 var(--serif); }
.df-safety-progress strong b { color: #d4a857; font-size: 64px; }
.df-safety-progress [role="progressbar"] { height: 5px; overflow: hidden; background: rgba(255,255,255,.08); }
.df-safety-progress [role="progressbar"] i { display: block; width: 0; height: 100%; background: #d4a857; transition: width .25s ease; }
.df-safety-progress p { margin: 18px 0 0; color: #ad9a78; font-size: 11px; line-height: 1.7; }

.df-safety-checks { display: grid; grid-template-columns: 1fr 1fr; }
.df-safety-checks label { display: grid; grid-template-columns: 22px 1fr; gap: 13px; min-height: 152px; padding: 24px; border-right: 1px solid rgba(212,168,87,.18); border-bottom: 1px solid rgba(212,168,87,.18); cursor: pointer; }
.df-safety-checks label:nth-child(2n) { border-right: 0; }
.df-safety-checks label:nth-last-child(-n + 2) { border-bottom: 0; }
.df-safety-checks input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #d4a857; }
.df-safety-checks span { color: #bca98a; font-size: 12px; line-height: 1.75; }
.df-safety-checks b { display: block; margin-bottom: 8px; color: var(--df-light-ink); font-size: 13px; }

.df-emergency-card { display: grid; grid-template-columns: 250px 1fr; gap: 30px; margin-top: 24px; padding: 26px; border-left: 4px solid #d4a857; background: #1f1811; }
.df-emergency-card strong { color: var(--df-light-ink); font: 700 20px/1.4 var(--serif); }
.df-emergency-card ol { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding-left: 18px; color: #bca98a; font-size: 12px; }

.df-market-dashboard { margin-bottom: 24px; border: 1px solid var(--border); background: var(--df-paper); }
.df-market-dashboard > header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.df-market-dashboard > header span { color: var(--df-accent); font: 9px/1 var(--mono); letter-spacing: .12em; }
.df-market-dashboard > header h3 { margin: 16px 0 8px; font: 700 28px/1.25 var(--serif); }
.df-market-dashboard > header p { margin: 0; color: var(--df-muted); font-size: 11px; }
.df-market-dashboard > header button { min-height: 40px; padding: 8px 18px; border: 1px solid var(--df-accent); border-radius: 999px; background: transparent; color: var(--df-accent); cursor: pointer; font: 700 11px/1 var(--sans); }
.df-market-dashboard > header button:hover { background: var(--df-accent); color: #fff8ea; }
.df-market-dashboard > header button:disabled { cursor: wait; opacity: .45; }
.df-market-kpis { display: grid; grid-template-columns: repeat(3, 1fr); }
.df-market-kpis article { min-height: 230px; padding: 24px; border-right: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); }
.df-market-kpis article:nth-child(3n) { border-right: 0; }
.df-market-kpis article:nth-last-child(-n + 3) { border-bottom: 0; }
.df-market-kpis article > span { display: block; color: var(--df-faint); font-size: 10px; font-weight: 700; }
.df-market-kpis strong { display: block; margin: 32px 0 10px; color: var(--df-ink); font: 700 34px/1 var(--serif); }
.df-market-kpis small { display: block; min-height: 22px; color: var(--df-muted); font: 10px/1.5 var(--mono); }
.df-market-kpis small.is-up { color: var(--df-accent); }
.df-market-kpis small.is-down { color: var(--df-warn); }
.df-market-kpis p { margin: 22px 0 0; color: var(--df-muted); font-size: 11px; line-height: 1.7; }
.df-market-dashboard.is-loading .df-market-kpis { opacity: .58; }
.df-market-dashboard.has-error > header { border-top: 3px solid var(--df-warn); }
.df-market-dashboard > footer { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--df-rule); color: var(--df-faint); font-size: 10px; }
.df-market-dashboard > footer a { color: var(--accent-2); font-weight: 700; }
.df-market-dashboard > footer p { flex: 1 1 360px; margin: 0; text-align: right; }

.df-senior-watchlist { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); margin-bottom: 56px; border: 1px solid var(--border); background: var(--bg-secondary); }
.df-senior-watchlist > div { padding: 32px; border-right: 1px solid var(--border); }
.df-senior-watchlist h3 { margin-bottom: 16px; font: 700 30px/1.25 var(--serif); }
.df-senior-watchlist > div > p:last-child { margin: 0; color: var(--df-muted); font-size: 13px; line-height: 1.8; }
.df-senior-watchlist ol { margin: 0; padding: 0; list-style: none; }
.df-senior-watchlist li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.df-senior-watchlist li:last-child { border-bottom: 0; }
.df-senior-watchlist li span { color: var(--df-accent); font: 10px/1.7 var(--mono); }
.df-senior-watchlist li p { margin: 0; color: var(--df-muted); font-size: 12px; line-height: 1.75; }

.df-tool-heading { display: grid; grid-template-columns: minmax(220px, .5fr) minmax(300px, 1fr); gap: 44px; align-items: end; margin-bottom: 28px; }
.df-tool-heading h3 { margin: 0; font: 700 29px/1.25 var(--serif); }
.df-tool-heading > p:last-child { margin: 0; color: var(--df-muted); font-size: 12px; line-height: 1.75; }

.df-tool-filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 28px; }
.df-tool-filters button { min-height: 38px; padding: 7px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--df-paper); color: var(--df-muted); cursor: pointer; font: 650 12px/1 var(--sans); }
.df-tool-filters button:hover,
.df-tool-filters button.is-active { border-color: var(--df-accent); background: var(--df-accent); color: #fff8ea; }
.df-tool-filters span { margin-left: auto; color: var(--df-faint); font: 10px/1 var(--mono); }

.df-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); }
.df-tool-grid article { display: flex; min-height: 254px; flex-direction: column; padding: 24px; border-right: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); background: var(--df-paper); }
.df-tool-grid article:nth-child(3n) { border-right: 0; }
.df-tool-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.df-tool-grid article[hidden] { display: none; }
.df-tool-grid span { color: var(--df-accent); font: 9px/1 var(--mono); letter-spacing: .1em; }
.df-tool-grid h3 { margin: 38px 0 12px; font: 700 19px/1.35 var(--serif); }
.df-tool-grid p { flex: 1; margin-bottom: 20px; color: var(--df-muted); font-size: 12px; line-height: 1.75; }
.df-tool-grid a { padding-top: 12px; border-top: 1px solid var(--df-rule); color: var(--accent-2); font-size: 11px; font-weight: 700; }

.df-market-routine { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); margin-top: 56px; border: 1px solid var(--border); background: var(--bg-secondary); }
.df-market-routine > div { padding: 32px; border-right: 1px solid var(--border); }
.df-market-routine h3 { margin-bottom: 16px; font: 700 30px/1.25 var(--serif); }
.df-market-routine > div > p:last-child { margin: 0; color: var(--df-muted); font-size: 13px; }
.df-market-routine ol { margin: 0; padding: 0; list-style: none; }
.df-market-routine li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.df-market-routine li:last-child { border-bottom: 0; }
.df-market-routine li span { color: var(--df-accent); font: 10px/1.7 var(--mono); }
.df-market-routine li p { margin: 0; color: var(--df-muted); font-size: 12px; line-height: 1.75; }

.df-sources { border-bottom: 0; }
.df-source-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.df-source-grid article { min-height: 230px; padding: 24px; border-right: 1px solid var(--df-rule); }
.df-source-grid article:nth-child(3n) { border-right: 0; }
.df-source-grid article:nth-child(-n + 3) { border-bottom: 1px solid var(--df-rule); }
.df-source-grid h3 { margin-bottom: 18px; font: 700 18px/1.4 var(--serif); }
.df-source-grid p { min-height: 116px; margin-bottom: 16px; color: var(--df-muted); font-size: 12px; line-height: 1.75; }
.df-source-grid a { display: inline-block; margin: 4px 12px 0 0; color: var(--accent-2); font-size: 11px; font-weight: 700; }

.df-data-dictionary { margin-top: 28px; }
.df-dictionary-intro { display: grid; grid-template-columns: minmax(220px, .52fr) minmax(0, 1.48fr); gap: 46px; align-items: end; padding: 28px; border: 1px solid var(--border); border-bottom: 0; background: var(--bg-secondary); }
.df-dictionary-intro h3 { margin: 0; font: 700 29px/1.25 var(--serif); }
.df-dictionary-intro > p:last-child { margin: 0; color: var(--df-muted); font-size: 12px; line-height: 1.75; }
.df-dictionary-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.df-dictionary-table th,
.df-dictionary-table td { padding: 17px; border-right: 1px solid var(--df-rule); border-bottom: 1px solid var(--df-rule); text-align: left; vertical-align: top; }
.df-dictionary-table th:last-child,
.df-dictionary-table td:last-child { border-right: 0; }
.df-dictionary-table tr:last-child td { border-bottom: 0; }
.df-dictionary-table th { background: var(--bg-secondary); color: var(--accent-2); font-size: 10px; letter-spacing: .08em; }
.df-dictionary-table td { color: var(--df-muted); font-size: 11px; line-height: 1.7; }
.df-dictionary-table td:first-child { color: var(--df-ink); font-weight: 700; white-space: nowrap; }

.df-content-boundaries { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; border: 1px solid var(--border); }
.df-content-boundaries article { min-height: 220px; padding: 24px; border-right: 1px solid var(--df-rule); }
.df-content-boundaries article:last-child { border-right: 0; }
.df-content-boundaries span { color: var(--df-accent); font: 9px/1 var(--mono); }
.df-content-boundaries h3 { margin: 42px 0 14px; font: 700 18px/1.35 var(--serif); }
.df-content-boundaries p { margin: 0; color: var(--df-muted); font-size: 11px; line-height: 1.75; }
.df-disclaimer { margin: 24px 0 0; padding: 22px; border-left: 4px solid var(--df-accent); background: var(--bg-secondary); color: var(--df-muted); font-size: 12px; line-height: 1.8; }

.df-footer {
  display: flex;
  width: min(100%, var(--df-max));
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 32px;
  color: var(--df-faint);
  font-size: 11px;
}
.df-footer a { color: var(--accent-2); font-weight: 700; }

html[data-theme="dark"] .df-hero-map,
html[data-theme="dark"] .df-path-grid,
html[data-theme="dark"] .df-category-shell,
html[data-theme="dark"] .df-tool-grid article,
html[data-theme="dark"] .df-source-grid article,
html[data-theme="dark"] .df-history-lesson,
html[data-theme="dark"] .df-dossier,
html[data-theme="dark"] .df-yield-ledger,
html[data-theme="dark"] .df-pool-card,
html[data-theme="dark"] .df-farm-lab,
html[data-theme="dark"] .df-mechanic-lab,
html[data-theme="dark"] .df-principle-strip,
html[data-theme="dark"] .df-market-dashboard { background: var(--bg-card); }

@media (max-width: 1060px) {
  .df-path-grid { grid-template-columns: repeat(2, 1fr); }
  .df-path-grid li { border-bottom: 1px solid var(--border); }
  .df-path-grid li:nth-child(2n) { border-right: 0; }
  .df-path-grid li:nth-last-child(-n + 2) { border-bottom: 0; }
  .df-category-tabs { grid-template-columns: repeat(3, 1fr); }
  .df-category-tabs button { border-bottom: 1px solid var(--border); }
  .df-category-tabs button:nth-child(3n) { border-right: 0; }
  .df-category-tabs button:nth-last-child(-n + 3) { border-bottom: 0; }
  .df-definitions { grid-template-columns: repeat(2, 1fr); }
  .df-definitions article { border-bottom: 1px solid rgba(212,168,87,.2); }
  .df-definitions article:nth-child(2n) { border-right: 0; }
  .df-definitions article:nth-last-child(-n + 2) { border-bottom: 0; }
  .df-yield-ledger { grid-template-columns: repeat(2, 1fr); }
  .df-yield-ledger article { min-height: 230px; border-bottom: 1px solid var(--df-rule); }
  .df-yield-ledger article:nth-child(2n) { border-right: 0; }
  .df-yield-ledger article:last-child { grid-column: 1 / -1; min-height: 0; border-right: 0; border-bottom: 0; }
  .df-pool-primer { grid-template-columns: repeat(2, 1fr); }
  .df-pool-intro { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-farm-lab { grid-template-columns: repeat(2, 1fr); }
  .df-lab-copy { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-lab-results { border-left: 1px solid var(--df-rule); }
  .df-token-ladder { grid-template-columns: 1fr; }
  .df-token-ladder > div { border-right: 0; border-bottom: 1px solid rgba(212,168,87,.2); }
  .df-capture-examples { grid-template-columns: repeat(2, 1fr); }
  .df-capture-examples article:nth-of-type(3n) { border-right: 1px solid rgba(212,168,87,.18); }
  .df-capture-examples article:nth-of-type(2n) { border-right: 0; }
  .df-capture-examples article:nth-last-child(2),
  .df-capture-examples article:last-child { grid-column: auto; }
  .df-capture-examples article:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(212,168,87,.18); }
  .df-market-kpis { grid-template-columns: repeat(2, 1fr); }
  .df-market-kpis article:nth-child(3n) { border-right: 1px solid var(--df-rule); }
  .df-market-kpis article:nth-child(2n) { border-right: 0; }
  .df-market-kpis article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--df-rule); }
  .df-market-kpis article:nth-last-child(-n + 2) { border-bottom: 0; }
  .df-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .df-tool-grid article:nth-child(3n) { border-right: 1px solid var(--df-rule); }
  .df-tool-grid article:nth-child(2n) { border-right: 0; }
  .df-tool-grid article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--df-rule); }
  .df-tool-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  .df-source-grid { grid-template-columns: repeat(2, 1fr); }
  .df-source-grid article { border-bottom: 1px solid var(--df-rule); }
  .df-source-grid article:nth-child(3n) { border-right: 1px solid var(--df-rule); }
  .df-source-grid article:nth-child(2n) { border-right: 0; }
  .df-source-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  .df-content-boundaries { grid-template-columns: repeat(2, 1fr); }
  .df-content-boundaries article { border-bottom: 1px solid var(--df-rule); }
  .df-content-boundaries article:nth-child(2n) { border-right: 0; }
  .df-content-boundaries article:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 112px; }
  .df-main { padding-inline: 22px; }
  .df-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 84px; }
  .df-hero-map { max-width: 700px; }
  .df-chapter-nav { overflow-x: auto; grid-template-columns: repeat(10, minmax(108px, 1fr)); scrollbar-width: none; }
  .df-chapter-nav::-webkit-scrollbar { display: none; }
  .df-section-head,
  .df-category-panel > header { grid-template-columns: 1fr; gap: 24px; }
  .df-case { grid-template-columns: 140px 1fr; }
  .df-case p,
  .df-case a { grid-column: 2; }
  .df-history { grid-template-columns: 1fr; }
  .df-history .df-section-head { position: static; }
  .df-history-lesson { grid-column: 1; }
  .df-dossier { grid-template-columns: 1fr; }
  .df-dossier > header,
  .df-dossier-body { border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-dossier > header h3 { margin-top: 30px; }
  .df-summer-loop { grid-template-columns: repeat(3, 1fr); }
  .df-summer-loop span:nth-of-type(n + 4) { border-top: 1px solid var(--df-rule); }
  .df-farm-lab { grid-template-columns: 1fr; }
  .df-lab-controls { border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-lab-results { border-left: 0; }
  .df-mechanics-grid { grid-template-columns: 1fr; }
  .df-principle-strip { grid-template-columns: repeat(2, 1fr); }
  .df-principle-strip article { border-bottom: 1px solid var(--df-rule); }
  .df-principle-strip article:nth-child(2n) { border-right: 0; }
  .df-principle-strip article:nth-last-child(-n + 2) { border-bottom: 0; }
  .df-valuation,
  .df-safety { margin-inline: -22px; padding-inline: 22px; }
  .df-value-waterfall { display: grid; grid-template-columns: repeat(5, 1fr); }
  .df-value-waterfall i { display: none; }
  .df-value-waterfall div { border-right: 1px solid rgba(212,168,87,.18); }
  .df-value-waterfall div:last-child { border-right: 0; }
  .df-research-layers,
  .df-safety-layout,
  .df-market-routine,
  .df-senior-watchlist { grid-template-columns: 1fr; }
  .df-layer-intro,
  .df-safety-progress,
  .df-market-routine > div,
  .df-senior-watchlist > div { border-right: 0; border-bottom: 1px solid rgba(212,168,87,.2); }
  .df-market-routine > div { border-color: var(--border); }
  .df-senior-watchlist > div { border-color: var(--border); }
  .df-tool-heading,
  .df-dictionary-intro,
  .df-capture-heading { grid-template-columns: 1fr; gap: 16px; }
  .df-emergency-card { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 680px) {
  .df-main { padding-inline: 16px; }
  .df-hero { gap: 36px; padding: 62px 0 58px; }
  .df-hero-copy h1 { font-size: clamp(42px, 13vw, 64px); }
  .df-hero-actions { display: grid; grid-template-columns: 1fr; }
  .df-hero-map { padding: 28px 18px 18px; }
  .df-hero-map button { min-height: 78px; padding: 13px; }
  .df-map-core { display: block; }
  .df-map-core strong { display: block; margin-top: 6px; }
  .df-section { padding-block: 68px; }
  .df-section-head h2 { font-size: clamp(36px, 11vw, 50px); }
  .df-path-grid { grid-template-columns: 1fr; }
  .df-path-grid li,
  .df-path-grid li:nth-child(2n),
  .df-path-grid li:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .df-path-grid li:last-child { border-bottom: 0; }
  .df-path-grid span { margin-bottom: 30px; }
  .df-boundary-note { grid-template-columns: 1fr; gap: 8px; }
  .df-category-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .df-category-tabs::-webkit-scrollbar { display: none; }
  .df-category-tabs button,
  .df-category-tabs button:nth-child(3n),
  .df-category-tabs button:nth-last-child(-n + 3) { flex: 0 0 140px; min-height: 104px; border-right: 1px solid var(--border); border-bottom: 0; }
  .df-category-tabs button:last-child { border-right: 0; }
  .df-category-panel { padding: 26px 18px; }
  .df-mechanism-flow { display: grid; grid-template-columns: 1fr; }
  .df-mechanism-flow i { transform: rotate(90deg); justify-self: center; }
  .df-panel-grid { grid-template-columns: 1fr; }
  .df-panel-grid section,
  .df-panel-grid section:nth-child(2n),
  .df-panel-grid section:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-panel-grid section:last-child { border-bottom: 0; }
  .df-case { grid-template-columns: 1fr; }
  .df-case p,
  .df-case a { grid-column: 1; }
  .df-timeline li { grid-template-columns: 76px 1fr; gap: 16px; }
  .df-timeline .is-summer { margin-inline: 0; padding-inline: 12px; }
  .df-dossier > header,
  .df-dossier-body,
  .df-dossier > footer,
  .df-dossier-loop { padding: 22px; }
  .df-dossier-loop > header { display: block; }
  .df-dossier-loop > header h3 { margin-top: 14px; }
  .df-summer-loop { grid-template-columns: 1fr; }
  .df-summer-loop span,
  .df-summer-loop span:nth-of-type(n + 4) { min-height: 0; border-top: 1px solid var(--df-rule); border-left: 0; }
  .df-summer-loop span:first-of-type { border-top: 0; }
  .df-yield-ledger { grid-template-columns: 1fr; }
  .df-yield-ledger article,
  .df-yield-ledger article:nth-child(2n),
  .df-yield-ledger article:last-child { grid-column: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-yield-ledger article:last-child { border-bottom: 0; }
  .df-yield-ledger h3 { margin-top: 32px; }
  .df-pool-primer { grid-template-columns: 1fr; }
  .df-pool-intro,
  .df-pool-card { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-pool-card:last-child { border-bottom: 0; }
  .df-lab-results { grid-template-columns: 1fr; }
  .df-lab-results article,
  .df-lab-results article:nth-child(2n),
  .df-lab-results article:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-lab-results article:last-child { border-bottom: 0; }
  .df-risk-matrix { grid-template-columns: 1fr; }
  .df-risk-matrix article,
  .df-risk-matrix article:nth-child(3n),
  .df-risk-matrix article:nth-last-child(-n + 3) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-risk-matrix article:last-child { border-bottom: 0; }
  .df-principle-strip { grid-template-columns: 1fr; }
  .df-principle-strip article,
  .df-principle-strip article:nth-child(2n),
  .df-principle-strip article:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-principle-strip article:last-child { border-bottom: 0; }
  .df-valuation,
  .df-safety { margin-inline: -16px; padding-inline: 16px; }
  .df-value-waterfall { grid-template-columns: 1fr; }
  .df-value-waterfall div { border-right: 0; border-bottom: 1px solid rgba(212,168,87,.18); }
  .df-value-waterfall div:last-child { border-bottom: 0; }
  .df-value-waterfall span { margin-bottom: 12px; }
  .df-definitions,
  .df-formula-grid { grid-template-columns: 1fr; }
  .df-definitions article,
  .df-definitions article:nth-child(2n),
  .df-definitions article:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(212,168,87,.2); }
  .df-definitions article:last-child { border-bottom: 0; }
  .df-definitions h3 { margin-top: 28px; }
  .df-token-ladder ol { grid-template-columns: 1fr; }
  .df-token-ladder li,
  .df-token-ladder li:nth-child(2n),
  .df-token-ladder li:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(212,168,87,.18); }
  .df-token-ladder li:last-child { border-bottom: 0; }
  .df-capture-examples { grid-template-columns: 1fr; }
  .df-capture-examples article,
  .df-capture-examples article:nth-of-type(2n),
  .df-capture-examples article:nth-of-type(3n),
  .df-capture-examples article:last-child { grid-column: auto; min-height: 0; border-right: 0; border-bottom: 1px solid rgba(212,168,87,.18); border-top: 0; }
  .df-capture-examples article:last-child { border-bottom: 0; }
  .df-research-layers li { grid-template-columns: 36px 1fr; padding-inline: 18px; }
  .df-safety-checks { grid-template-columns: 1fr; }
  .df-safety-checks label,
  .df-safety-checks label:nth-child(2n),
  .df-safety-checks label:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(212,168,87,.18); }
  .df-safety-checks label:last-child { border-bottom: 0; }
  .df-emergency-card ol { display: grid; }
  .df-tool-filters span { width: 100%; margin: 8px 0 0; }
  .df-market-dashboard > header { align-items: flex-start; flex-direction: column; }
  .df-market-kpis { grid-template-columns: 1fr; }
  .df-market-kpis article,
  .df-market-kpis article:nth-child(2n),
  .df-market-kpis article:nth-child(3n),
  .df-market-kpis article:nth-last-child(-n + 2),
  .df-market-kpis article:nth-last-child(-n + 3) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-market-kpis article:last-child { border-bottom: 0; }
  .df-market-dashboard > footer p { flex-basis: 100%; text-align: left; }
  .df-senior-watchlist li { grid-template-columns: 34px 1fr; padding-inline: 18px; }
  .df-tool-grid { grid-template-columns: 1fr; }
  .df-tool-grid article,
  .df-tool-grid article:nth-child(2n),
  .df-tool-grid article:nth-child(3n),
  .df-tool-grid article:nth-last-child(-n + 2),
  .df-tool-grid article:nth-last-child(-n + 3) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-tool-grid article:last-child { border-bottom: 0; }
  .df-tool-grid h3 { margin-top: 24px; }
  .df-market-routine li { grid-template-columns: 34px 1fr; padding-inline: 18px; }
  .df-source-grid { grid-template-columns: 1fr; }
  .df-source-grid article,
  .df-source-grid article:nth-child(2n),
  .df-source-grid article:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-source-grid article:last-child { border-bottom: 0; }
  .df-source-grid p { min-height: 0; }
  .df-content-boundaries { grid-template-columns: 1fr; }
  .df-content-boundaries article,
  .df-content-boundaries article:nth-child(2n),
  .df-content-boundaries article:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--df-rule); }
  .df-content-boundaries article:last-child { border-bottom: 0; }
  .df-footer { display: grid; padding-inline: 16px; }
}

@media (max-width: 430px) {
  .df-hero-map { grid-template-columns: 1fr; }
  .df-map-core { grid-column: 1; }
  .df-safety-progress strong b { font-size: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .df-btn,
  .df-hero-map button,
  .df-category-tabs button,
  .df-safety-progress [role="progressbar"] i { transition: none; }
}
