:root {
  --paper: #f7f3ea;
  --page: #fffefb;
  --ink: #25221d;
  --ink-soft: #5f594f;
  --line: #d9d1c3;
  --accent: #8b452d;
  --accent-dark: #69331f;
  --sage: #dce3d7;
  --sidebar: #1f2d2b;
  --sidebar-ink: #eef2e9;
  --body-size: 18px;
  --measure: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Literata", Georgia, serif; font-size: var(--body-size); line-height: 1.72; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #d99a68; outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; color: #fff; background: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; top: 0; left: 280px; right: 0; z-index: 90; height: 3px; background: transparent; }
.reading-progress span { display: block; width: 0; height: 100%; background: #c16a43; }
.reader-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 70; display: flex; width: 280px; padding: 34px 26px 28px; color: var(--sidebar-ink); background: var(--sidebar); flex-direction: column; overflow-y: auto; font-family: "DM Sans", Arial, sans-serif; }
.back-link { align-self: flex-start; color: #f1e1c8; font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { color: #fff; }
.sidebar-kicker { margin: 44px 0 10px; color: #c3cfbd; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-title { margin: 0 0 28px; color: #fff; font-family: "Literata", Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.28; }
.reader-sidebar nav { flex: 1; }
.reader-sidebar ol { margin: 0; padding: 0; list-style: none; }
.reader-sidebar li { margin: 0; }
.reader-sidebar nav a { display: block; margin: 0 -10px; padding: 6px 10px 7px; border-left: 2px solid transparent; color: #bfc8c1; font-size: 13px; line-height: 1.3; text-decoration: none; transition: color .15s, border-color .15s, background .15s; }
.reader-sidebar nav a:hover, .reader-sidebar nav a:focus-visible { color: #fff; background: rgba(255,255,255,.05); }
.reader-sidebar nav a.is-active { color: #fff; border-left-color: #d99a68; background: rgba(255,255,255,.07); }
.sidebar-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); color: #c3cfbd; font-size: 12px; }
.sidebar-tools button { width: 36px; height: 32px; border: 1px solid rgba(255,255,255,.28); border-radius: 3px; color: #fff; background: transparent; cursor: pointer; }
.sidebar-tools button:hover { background: rgba(255,255,255,.1); }
.sidebar-pdf { display: flex; justify-content: space-between; margin-top: 13px; color: #f1e1c8; font-size: 13px; font-weight: 600; text-decoration: none; }
.mobile-bar, .nav-scrim { display: none; }
main { margin-left: 280px; }
article { max-width: 1120px; margin: 0 auto; padding: 0 72px 100px; }
.paper-hero { padding: 92px 0 64px; border-bottom: 1px solid var(--line); }
.edition-label, .eyebrow { margin: 0 0 18px; color: var(--accent); font-family: "DM Sans", Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.paper-hero h1 { max-width: 900px; margin: 0; color: #20251f; font-size: clamp(42px, 5.2vw, 72px); font-weight: 600; line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
.authors { display: flex; gap: 52px; margin-top: 34px; font-family: "DM Sans", Arial, sans-serif; }
.authors p { display: flex; margin: 0; flex-direction: column; }
.authors a { color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; }
.authors span { color: var(--ink-soft); font-size: 13px; }
.hero-actions { display: flex; gap: 22px; align-items: center; margin-top: 36px; font-family: "DM Sans", Arial, sans-serif; font-size: 14px; font-weight: 700; }
.primary-action { display: inline-block; padding: 11px 17px; border-radius: 3px; color: #fff; background: var(--accent-dark); text-decoration: none; }
.primary-action:hover, .primary-action:focus-visible { color: #fff; background: var(--accent); }
.reader-card { max-width: 940px; margin: 70px auto; padding: 46px 52px; border: 1px solid var(--line); background: var(--page); box-shadow: 0 20px 45px rgba(61, 48, 32, .06); }
.plain-summary { max-width: none; margin-top: 64px; border-top: 4px solid var(--accent); background: linear-gradient(145deg, #fffefb, #f0f3eb); }
.plain-summary h2 { max-width: 800px; margin: 0 0 26px; font-size: clamp(29px, 3vw, 42px); line-height: 1.16; letter-spacing: -.025em; }
.summary-lede { max-width: 870px; margin: 0; color: #3e4039; font-size: 21px; line-height: 1.65; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.summary-grid h3 { margin: 0 0 8px; font-family: "DM Sans", Arial, sans-serif; font-size: 14px; letter-spacing: .02em; }
.summary-grid p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.62; }
.edition-note { margin-top: 30px; padding: 18px 20px; border-left: 3px solid #a9b7a4; color: var(--ink-soft); background: rgba(255, 255, 255, .58); font-family: "DM Sans", Arial, sans-serif; font-size: 12px; line-height: 1.58; }
.edition-note p { margin: 0; }
.edition-note p + p { margin-top: 6px; }
.abstract-card { max-width: var(--measure); margin-top: 70px; }
.abstract-card > p:not(.eyebrow) { margin: 0; font-size: 18px; }
.paper-metadata { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-family: "DM Sans", Arial, sans-serif; font-size: 13px; }
.paper-metadata div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; margin-top: 8px; }
.paper-metadata dt { font-weight: 700; }
.paper-metadata dd { margin: 0; color: var(--ink-soft); }
.paper-body { max-width: var(--measure); margin: 100px auto 0; }
.paper-section { margin: 0 0 86px; scroll-margin-top: 24px; }
.section-title-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 16px; align-items: start; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-number { margin: 7px 0 0; color: var(--accent); font-family: "DM Sans", Arial, sans-serif; font-size: 12px; font-weight: 700; }
.section-title-row h2 { margin: 0; font-size: clamp(29px, 3.5vw, 40px); font-weight: 600; line-height: 1.14; letter-spacing: -.025em; }
.section-toggle { display: flex; gap: 7px; align-items: center; margin-top: 4px; padding: 5px 8px; border: 0; color: var(--ink-soft); background: transparent; font-family: "DM Sans", Arial, sans-serif; font-size: 11px; text-transform: uppercase; cursor: pointer; }
.section-body[hidden] { display: none; }
.section-body p { margin: 0 0 1.25em; }
.section-body h3 { margin: 2.3em 0 .75em; font-size: 26px; line-height: 1.28; }
.section-body h4 { margin: 2em 0 .65em; font-size: 21px; }
.section-body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid #a9b7a4; color: var(--ink-soft); }
.math.display { display: block; max-width: 100%; margin: 25px 0; overflow-x: auto; overflow-y: hidden; text-align: center; }
.section-body a[role="doc-noteref"] { font-family: "DM Sans", Arial, sans-serif; font-size: .75em; font-weight: 700; text-decoration: none; }
.citation { color: #554a3f; }
.back-matter { max-width: 940px; margin: 130px auto 0; scroll-margin-top: 24px; }
.back-matter-heading { margin-bottom: 44px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.back-matter-heading h2 { margin: 0; font-size: 46px; line-height: 1.1; }
.back-matter-heading > p:last-child:not(.eyebrow) { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }
.paper-figure { margin: 0 0 90px; padding: 30px; border: 1px solid var(--line); background: var(--page); }
.paper-figure figcaption { margin-bottom: 24px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.paper-figure figcaption span, .paper-table h3 span { display: block; margin-bottom: 6px; color: var(--accent); font-family: "DM Sans", Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.figure-zoom { display: block; border: 1px solid #e5dfd5; background: #fff; }
.paper-figure img { display: block; width: 100%; height: auto; }
.figure-note, .table-note { margin: 20px 0 0; color: var(--ink-soft); font-family: "DM Sans", Arial, sans-serif; font-size: 12px; line-height: 1.58; }
.figure-panels { display: grid; gap: 26px; }
.figure-panel h4 { margin: 0 0 10px; font-family: "DM Sans", Arial, sans-serif; font-size: 14px; }
.paper-table { margin: 0 0 86px; padding: 30px; border: 1px solid var(--line); background: var(--page); }
.paper-table h3 { margin: 0 0 24px; font-size: 24px; line-height: 1.35; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.paper-table table { width: 100%; border-collapse: collapse; font-family: "DM Sans", Arial, sans-serif; font-size: 12px; line-height: 1.35; }
.paper-table th, .paper-table td { padding: 8px 10px; border-bottom: 1px solid #e8e2d9; text-align: right; white-space: nowrap; }
.paper-table th:first-child { text-align: left; white-space: normal; }
.paper-table thead th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); font-weight: 700; vertical-align: bottom; }
.paper-table tbody th { font-weight: 500; }
.paper-table .total-row > * { border-top: 2px solid var(--ink); font-weight: 700; }
.regression-table { min-width: 850px; font-variant-numeric: tabular-nums; }
.regression-table .standard-error > * { padding-top: 0; color: var(--ink-soft); font-size: 11px; }
.scroll-hint { display: none; margin: -13px 0 12px; color: var(--ink-soft); font-family: "DM Sans", Arial, sans-serif; font-size: 11px; }
.references { max-width: var(--measure); }
.references ol { padding: 0; list-style: none; }
.references li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); color: #48433c; font-size: 14px; line-height: 1.55; }
.notes { max-width: var(--measure); }
.notes .footnotes { overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.notes .math.inline { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; }
.notes .footnotes > hr { display: none; }
.notes .footnotes ol { padding-left: 28px; }
.notes .footnotes li { margin-bottom: 16px; padding-left: 6px; }
.notes .footnotes p { margin: 0; }
.footnote-back { margin-left: 4px; font-family: "DM Sans", Arial, sans-serif; text-decoration: none; }
.reader-footer { max-width: 940px; margin: 30px auto 0; padding: 36px 0 54px; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: "DM Sans", Arial, sans-serif; font-size: 12px; line-height: 1.6; }
.reader-footer p { margin: 4px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .reader-sidebar { width: 248px; padding-right: 22px; padding-left: 22px; }
  main { margin-left: 248px; }
  .reading-progress { left: 248px; }
  article { padding-right: 40px; padding-left: 40px; }
  .summary-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }
  body { font-size: 17px; }
  .reading-progress { top: 55px; left: 0; }
  .mobile-bar { position: sticky; top: 0; z-index: 80; display: flex; height: 56px; padding: 0 18px; align-items: center; justify-content: space-between; color: #fff; background: var(--sidebar); font-family: "DM Sans", Arial, sans-serif; }
  .mobile-bar button { border: 0; color: #fff; background: transparent; font: inherit; cursor: pointer; }
  .mobile-bar a { color: #f1e1c8; font-size: 13px; font-weight: 700; text-decoration: none; }
  .reader-sidebar { width: min(86vw, 320px); transform: translateX(-105%); transition: transform .2s ease; }
  .reader-sidebar.is-open { transform: translateX(0); }
  .nav-scrim { position: fixed; inset: 0; z-index: 65; width: 100%; border: 0; background: rgba(10, 15, 14, .48); cursor: pointer; }
  .nav-scrim.is-open { display: block; }
  main { margin-left: 0; }
  article { padding: 0 20px 70px; }
  .paper-hero { padding: 56px 0 42px; }
  .paper-hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .authors { gap: 18px; flex-direction: column; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .reader-card { margin: 45px 0; padding: 30px 24px; }
  .summary-lede { font-size: 18px; }
  .paper-body { margin-top: 72px; }
  .paper-section { margin-bottom: 68px; }
  .section-title-row { grid-template-columns: 30px 1fr; gap: 10px; }
  .section-toggle { grid-column: 2; justify-self: start; margin: -6px 0 0 -8px; }
  .back-matter { margin-top: 90px; }
  .back-matter-heading h2 { font-size: 38px; }
  .paper-figure, .paper-table { margin-right: -10px; margin-left: -10px; padding: 20px 14px; }
  .paper-figure figcaption, .paper-table h3 { font-size: 21px; }
  .scroll-hint { display: block; }
  .reader-footer { padding-bottom: 24px; }
}

@media print {
  .reader-sidebar, .mobile-bar, .reading-progress, .section-toggle, .hero-actions, .nav-scrim { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  main { margin: 0; }
  article { max-width: none; padding: 0; }
  .paper-hero { padding-top: 0; }
  .reader-card, .paper-figure, .paper-table { break-inside: avoid; box-shadow: none; }
  .section-body[hidden] { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}
