/* Last-loaded publication refinement; palette and font families remain owned by existing themes. */
:root{--chart-rule:var(--rule,#d8ddd3)}
.book-opening,.book-evidence-opening{display:grid;grid-template-columns:minmax(0,1fr) minmax(440px,1.1fr);gap:clamp(28px,5vw,72px);align-items:start}
@media(max-width:1099px){.book-opening,.book-evidence-opening{grid-template-columns:1fr}}
.book-section h2,.chapter-figure h2{font-size:clamp(26px,3vw,36px)}
#market-reading,#sector-reading,.book-chapter,.publication{font-size:18px;line-height:1.75}#market-reading p:not(.eyebrow):not(.figure-caption),#sector-reading p:not(.eyebrow):not(.figure-caption),.book-thesis-copy p{max-width:70ch;line-height:1.75}
#market-reading h1,#sector-reading h1,.book-opening h1{font-size:clamp(36px,4vw,56px)}#market-reading h2,#sector-reading h2,.book-section h2,.chapter-figure h2{font-size:clamp(26px,3vw,36px)}
.publication-deck,.book-lead{font-size:20px;line-height:1.65}
.figure-caption,.book-caption,.quiet,.sample-tag,.publication-controls,figcaption,.study-label,table caption{font-size:max(14px,1em)}
.book-mini,.book-shelf-graphic{font-size:12px;pointer-events:none}
.tape-figure{margin:1rem 0;min-width:0;max-width:100%;overflow:hidden}
.tape-figure>svg{display:block;width:100%;height:auto;max-width:100%;overflow:visible}
.tape-figure figcaption{display:grid;gap:.7rem;padding-top:.75rem}
.tape-figure-selection{font-weight:700;margin:0;font-variant-numeric:tabular-nums}
.tape-figure input[type=range],#study-point{width:100%;min-height:44px;accent-color:var(--accent,#28634e)}
.tape-figure button{min-height:44px}
.tape-figure .tape-figure-marker{stroke:var(--ink,#202c27);stroke-width:1.5;stroke-dasharray:4 3;pointer-events:none}
.tape-figure .tape-figure-selected{stroke:var(--paper,#f6f3ec);stroke-width:2;pointer-events:none}
.tape-figure tr.unavailable{color:var(--muted,#657168)}
:where(button,a,input,select,summary,[tabindex]):focus-visible{outline:3px solid var(--accent,#28634e);outline-offset:3px}
:where(button,select,input[type=date],input[type=search]){min-height:44px}
.selected,.table-selected-row{background:color-mix(in srgb,var(--series-one,#28634e) 15%,transparent);font-weight:700}[aria-pressed=true]{box-shadow:inset 0 -3px var(--series-one,#28634e);font-weight:700}
.selected td:first-child,.table-selected-row td:first-child{box-shadow:inset 4px 0 var(--series-one,#28634e)}
.publication-cover,.book-section,.book-chapter,.chart-panel,.plain-panel,.table-wrap,.tape-figure{min-width:0}
.table-wrap{max-width:100%;overflow-x:auto}
table{width:100%;border-collapse:collapse}th,td{overflow-wrap:anywhere}
#main{max-width:100%;overflow-x:clip}
.study-pagination{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.75rem 0}
.study-pagination button{min-height:44px}
#market-reading svg text.study-label,#sector-reading svg text.study-label,#market-notebook svg text.study-label,#market-studies svg text.study-label,#economic-history svg text.study-label,#rate-history svg text.study-label{font-size:20px}#market-notebook .book-mini svg text.study-label,#market-notebook .book-shelf-graphic svg text.study-label{font-size:10px}
.book-evidence-opening .book-lead-figure{min-width:0}
@media(max-width:700px){.tape-figure .table-wrap{overflow-x:auto}.book-opening{grid-template-columns:minmax(0,1fr)}}

/* Effective SVG sizes are measured by figure_ui; inherit its root attribute. */
#market-reading svg text.study-label,#sector-reading svg text.study-label,#market-notebook svg text.study-label,#market-studies svg text.study-label,#economic-history svg text.study-label,#rate-history svg text.study-label{font-size:inherit!important}
#market-notebook .book-mini svg text.study-label,#market-notebook .book-shelf-graphic svg text.study-label{font-size:10px!important}
#market-reading .chapter-opening p,#market-reading .chapter-figure>p:not(.eyebrow):not(.chapter-dates):not(.figure-caption),#sector-reading .book-section>p:not(.eyebrow):not(.quiet),#market-notebook .book-chapter>p:not(.eyebrow):not(.book-caption){font-size:18px;line-height:1.75;max-width:70ch}
#market-notebook .book-evidence-opening h1{font-size:clamp(36px,4vw,56px)}
#main .figure-caption,#main .book-caption,#main .chapter-dates,#main .sample-tag,#main .publication-controls label,#main .publication-controls select,#main .publication-controls input,#main .figure-actions button,#main .figure-actions a,#main .tape-figure figcaption,#main .study-pagination,#main .study-summary-disclosure summary{font-size:14px!important}
.study-summary-disclosure{border-top:1px solid var(--line);margin:16px 0;padding:14px 0}
.study-summary-disclosure>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:650;color:var(--accent)}
.study-summary-disclosure>summary::before{content:'+';margin-right:12px}.study-summary-disclosure[open]>summary::before{content:'−'}
#main .investigation-panel.study-summary-disclosure>summary{font:400 25px/1.4 Georgia,serif!important;color:var(--ink)}#main .investigation-panel{padding:24px;margin:28px 0}#main .investigation-panel>p{font-size:16px;line-height:1.7}
.story-orientation{padding:22px 26px;margin:28px 0;border-left:3px solid var(--series-one);background:var(--panel);max-width:74ch}.story-orientation>p:not(.eyebrow){font:400 21px/1.5 Georgia,serif;margin:8px 0 14px}.story-orientation span{display:block;font-size:14px;color:var(--muted);line-height:1.6}.story-prose{max-width:70ch;font-size:18px;line-height:1.75}.story-prose p{margin:0 0 24px}.story-perspective{scroll-margin-top:28px}.story-diagram{margin:36px 0 20px;padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.story-diagram figcaption>h2{font:400 30px/1.35 Georgia,serif;margin:0 0 10px}.story-diagram figcaption>p{font-size:14px;color:var(--muted)}.story-diagram-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:20px 0}.story-diagram-panel{min-width:0;border-left:1px solid var(--line);padding-left:20px}.story-diagram-panel:first-child{border-left:0;padding-left:0}.story-diagram-panel svg{display:block;width:166px;max-width:100%;height:auto;margin:0 0 16px}.story-sketch-halo{fill:var(--series-one);opacity:.08}.story-diagram-panel:nth-child(2) .story-sketch-halo{fill:var(--series-two)}.story-sketch-lines{fill:none;stroke:var(--ink);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.story-diagram-panel h3{font:400 23px/1.3 Georgia,serif;margin:0 0 10px}.story-diagram-panel p{font-size:16px;line-height:1.65;margin:0}.story-diagram-note{border-top:1px solid var(--line);padding-top:12px}.story-diagram-note>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--accent);font-size:14px}.story-diagram-note p{font-size:15px;line-height:1.7;max-width:76ch}.story-exercise{padding:24px;background:var(--panel);border-left:3px solid var(--series-two);margin:24px 0;max-width:74ch}.story-exercise>p:last-child{font-size:18px;line-height:1.75;margin-bottom:0}.story-related{border-top:1px solid var(--line);padding-top:28px;margin-top:40px}.story-related>h3{font:400 27px/1.35 Georgia,serif}.story-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.story-related-grid>a,.story-investigation{display:block;padding:22px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--ink);background:var(--panel)}.story-related-grid>a:hover,.story-investigation:hover,.story-reading-choices>a:hover{border-color:var(--series-one)}.story-related-grid span,.story-investigation span{display:block;color:var(--muted);font-size:14px;line-height:1.6}.story-related-grid strong{display:block;font:400 23px/1.4 Georgia,serif;margin:12px 0}.story-related-grid p{font-size:16px;line-height:1.7;margin:0}.story-investigation{margin-top:18px}.story-investigation strong{display:block;margin-bottom:10px}.story-reading-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:32px 0}.story-reading-choices>a{padding:24px;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;background:var(--panel)}.story-reading-choices span{font-size:14px;color:var(--muted);line-height:1.6;display:block}.story-reading-choices h3{font:400 27px/1.3 Georgia,serif;margin:16px 0}.story-reading-choices p{font-size:17px;line-height:1.65}.story-reading-choices strong{font-size:14px;color:var(--accent)}@media(max-width:1099px){.story-reading-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.story-diagram{padding:22px}.story-diagram-panels{gap:20px}}@media(max-width:700px){.story-diagram-panels,.story-related-grid,.story-reading-choices{grid-template-columns:1fr}.story-diagram-panel{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:18px}.story-diagram-panel:first-child{border-top:0}.story-diagram-panel svg{width:130px}.story-orientation{padding:18px}.story-diagram figcaption>h2{font-size:26px}.story-reading-choices>a{padding:20px}}
.tape-figure table{font-size:14px}.tape-figure figcaption>label{display:grid;gap:8px}
.tape-figure-selection{font-size:15px!important}.tape-figure figcaption{line-height:1.6}.tape-figure figcaption p{max-width:none;margin:0}

.tape-point-details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;color:var(--accent)}
.tape-point-details>summary::before{content:'+';margin-right:10px}.tape-point-details[open]>summary::before{content:'−'}
.tape-figure table{min-width:0;table-layout:fixed}.tape-figure th,.tape-figure td{padding:10px;overflow-wrap:anywhere}

.tabs button,.record-menu>summary,.appearance,.appearance select,.book-entry-choices button,.book-text-button,.book-lead-end,#study-content label,#study-content select,#study-content input,#main .publication-actions button,.tape-figure button,.tape-figure label{font-size:14px}
#main .book-date-note,#main .book-comparison-legend,#main .book-lead-results small,#main .book-cover-fact>span,#main .book-cover-fact>small{font-size:14px!important}
/* Session 3: distinct reading arguments and native context. */
.reading-argument{font-size:20px;line-height:1.65;max-width:68ch;margin:0 0 32px;border-left:3px solid var(--series-two);padding-left:22px}
.investigation-nav{margin:24px 0 32px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.investigation-nav p{grid-column:1/-1;margin:0}.investigation-nav a{padding:16px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-size:15px;line-height:1.5;color:var(--ink)}.investigation-nav a:hover{background:var(--panel);border-color:var(--series-one)}.investigation-panel{padding:24px;margin:28px 0;background:var(--panel);border:1px solid var(--line);border-radius:12px;scroll-margin-top:32px}.investigation-panel>summary{font:400 25px/1.4 Georgia,serif;cursor:pointer}.investigation-panel>p{max-width:74ch}.investigation-panel svg{display:block;width:100%;height:auto}.investigation-panel label{display:block;margin:16px 0;font-size:14px}.investigation-panel input[type=range]{width:100%}.annual-bin-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;align-items:end;margin:32px 0}.annual-bin-grid>div{display:flex;flex-direction:column;gap:10px;text-align:center;font-size:14px}.annual-bin-bar{background:var(--series-one);width:65%;margin:auto}.annual-bin-grid strong{font-size:22px;font-variant-numeric:tabular-nums}#common-cpi{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}#common-readout{font-variant-numeric:tabular-nums}#common-chart{min-width:0}@media(max-width:850px){.investigation-nav{grid-template-columns:1fr 1fr}.annual-bin-grid{gap:8px}.investigation-panel{padding:16px}}@media(max-width:540px){.investigation-nav{grid-template-columns:1fr}.annual-bin-grid{grid-template-columns:repeat(3,1fr)}}
.reading-entry-controls{padding:22px 0;margin-bottom:24px;border-bottom:1px solid var(--line)}
.reading-entry-controls label,.recovery-choice{display:block;font-size:14px;margin:18px 0}
.recovery-calendar{margin:28px 0 36px;padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.recovery-calendar-row{padding:18px 0;border-top:1px solid var(--line)}
.recovery-calendar-row header{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.recovery-calendar-row header strong{font:700 22px Georgia,serif}.recovery-calendar-row header span{font-size:14px}
.recovery-track{height:56px;position:relative;margin:10px 0;background:linear-gradient(var(--line),var(--line)) center/100% 1px no-repeat}
.recovery-span{position:absolute;top:24px;height:8px;border-radius:4px;background:var(--series-one)}
.recovery-span.second{background:var(--series-two)}
.recovery-pin{position:absolute;top:18px;width:10px;height:20px;transform:translateX(-50%);border:2px solid var(--ink);background:var(--panel);border-radius:3px}
.recovery-pin.trough{top:22px;height:12px;border-radius:50%;background:var(--ink)}
.recovery-dates{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;font-size:14px;margin:12px 0 20px}
.recovery-dates dt{color:var(--muted);margin-bottom:6px}.recovery-dates dd{margin:0;font-variant-numeric:tabular-nums}
.recovery-calendar-axis{display:flex;justify-content:space-between;font-size:14px;color:var(--muted)}
.reading-context-grid{display:grid;grid-template-columns:1fr;gap:32px;margin:28px 0}
.reading-context-grid article{padding:26px;border:1px solid var(--line);border-radius:12px;background:var(--panel);min-width:0}
.reading-context-grid h3{font:400 26px Georgia,serif;margin-top:0}
.reading-context-grid label{display:block;font-size:14px;margin:16px 0}
.reading-context-grid svg{display:block;width:100%;height:auto}
.context-native-chart .study-label{font-size:inherit!important}
.reading-context-grid details{margin-top:20px;font-size:14px}
.reading-context-grid table{width:100%;font-size:14px}
@media(max-width:700px){.recovery-calendar,.reading-context-grid article{padding:16px}.recovery-dates{grid-template-columns:1fr}.recovery-calendar-row header{display:block}}

#market-reading .recovery-calendar-axis{max-width:none!important;width:100%;padding:0 8%;font-size:14px!important}
.study-cohort-section{min-width:0;max-width:100%;overflow:hidden}.study-cohort-table{max-width:100%;overflow-x:auto}.study-cohort-table table{min-width:760px}.study-cohort-cell{min-height:44px;white-space:nowrap}.study-five-chart{max-width:100%;overflow:hidden}.study-five-chart svg{display:block;width:100%;height:auto}.study-five-controls{display:grid;gap:12px;margin-top:14px}.study-five-controls label{display:grid;gap:8px}.study-five-controls input[type=range]{width:100%;min-height:44px;accent-color:var(--accent)}.study-five-controls button{justify-self:start;min-height:44px}.study-origin{margin:18px 0;padding:14px;border:1px solid var(--line);background:var(--panel)}.study-origin-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.study-origin p{font-size:14px!important;color:var(--muted)}

.study-cohort-table table{table-layout:fixed;width:100%;font-size:14px!important}.study-cohort-table th,.study-cohort-table td,.study-cohort-table small,.study-cohort-cell{font-size:14px!important}.study-cohort-table th:first-child{width:30%}.study-cohort-table small{display:block;line-height:1.5;margin-top:6px}.study-cohort-cell{padding:8px 10px}
.study-cohort-table th:first-child,.study-cohort-table small{white-space:normal!important;overflow-wrap:anywhere}

/* Lead design review: keep the principal investigation readable; the full entry-year reference is deliberate expansion. */
.study-cohort-reference{margin:18px 0}.study-cohort-reference>summary{min-height:44px;display:list-item;padding:12px 0;font-size:16px;font-weight:600;cursor:pointer}.study-cohort-reference[open]>summary{margin-bottom:12px}

.lab-condition-group{margin:24px 0;padding:18px;border:1px solid var(--rule);border-radius:10px}.lab-condition-group legend{font:700 19px Georgia,serif;padding:0 8px}.lab-earlier-records{margin:24px 0}.lab-earlier-records>summary{min-height:44px;padding:12px 0;cursor:pointer}.sector-investigation{padding:26px;border:1px solid var(--rule);background:var(--panel);border-radius:12px}.sector-investigation small{display:block;font-size:14px;white-space:normal}.sector-investigation table{font-size:14px}.sector-investigation label{display:block;margin:18px 0}.sector-investigation button,.sector-investigation summary{min-height:44px}

.reference-glossary{max-width:70ch}.reference-glossary dt{font-weight:700;margin-top:22px}.reference-glossary dd{margin:8px 0 0;line-height:1.75}.economic-reading-return{display:inline-block;margin:16px 0}.economic-reading-point{width:100%;min-height:44px;accent-color:var(--series-one)}#purchasing-cpi label,#purchasing-gdp label{display:block;margin:18px 0}#purchasing-cpi button,#purchasing-gdp button{margin:12px 18px 12px 0;min-height:44px}

.atlas-era-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:32px 0}.atlas-era-rail button{text-align:left;padding:16px;min-height:100px}.atlas-era-rail span{display:block;font-weight:700;margin-bottom:10px}.atlas-era-rail small{display:block;font-size:14px;line-height:1.5}.atlas-setting{min-width:0;padding:24px;border:1px solid var(--rule);border-radius:12px;background:var(--panel)}.atlas-setting>section{margin-top:32px}.atlas-setting label{display:block;margin:16px 0}.atlas-setting input[type=range]{width:100%;min-height:44px}.atlas-setting button{min-height:44px;margin:12px 0}.atlas-setting a{display:block;margin:12px 0}.atlas-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.atlas-setting .economic-reading-readout{font-size:14px!important}.atlas-setting h2{font-size:28px!important;line-height:1.3}#atlas-documents>article{margin:24px 0}@media(max-width:1099px){.atlas-comparison{grid-template-columns:1fr}.atlas-era-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}

#market-reading .story-prose p{font-size:18px;line-height:1.75}.story-perspective,.story-turn{scroll-margin-top:80px}.story-diagram{scroll-margin-top:76px}

#study-vol-history{margin:32px 0;padding-top:24px;border-top:1px solid var(--line)}
#study-vol-history h3{font:400 26px/1.4 Georgia,serif;margin:0 0 16px}
#study-vol-history p{font-size:14px;line-height:1.7;max-width:78ch}
#study-vol-history label{display:block;font-size:14px;margin:18px 0}
#study-vol-history input[type=range]{display:block;width:100%;min-height:44px}
#study-vol-chart svg{display:block;width:100%;height:auto}

/* Preserve readable annual labels in the narrow local panel. */
.long-context-chart { overflow-x: auto; }
.long-context-chart svg { min-width: 680px; }
.long-context-chart .study-label { font-size: 20px; }
/* Transient cursor previews do not replace selected-point evidence. */
.tape-hover-card{position:fixed;z-index:10000;max-width:min(310px,calc(100vw - 24px));padding:10px 12px;border:1px solid var(--rule);border-radius:6px;background:var(--panel);color:var(--ink);box-shadow:0 5px 24px #0003;pointer-events:none;font:14px/1.45 system-ui,sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tape-hover-card[hidden]{display:none}
.tape-hover-card strong,.tape-hover-card span,.tape-hover-card small{display:block}
.tape-hover-card strong{margin-bottom:5px;font-variant-numeric:tabular-nums}
.tape-hover-card span+span{margin-top:4px}
.tape-hover-card small{margin-top:7px;color:var(--muted);font-size:12px}
.tape-hover-guides{pointer-events:none}
.tape-hover-guides line{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke;opacity:.7}
.tape-hover-guides circle{fill:var(--panel);stroke:var(--ink);stroke-width:1.5;vector-effect:non-scaling-stroke}
svg[data-tape-hover]{cursor:crosshair;user-select:none}
svg:has(.tape-hover-guides) .tape-figure-marker,svg:has(.tape-hover-guides) .tape-figure-selected{opacity:.25}
.tape-hover-help{font-size:13px;color:var(--muted);margin:6px 0}
.reference-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 14px;font:13px/1.45 system-ui,sans-serif;color:var(--muted)}
.reference-actions button{background:transparent;border:1px solid var(--rule);padding:7px 12px;color:var(--ink);min-height:44px}
.reference-actions input{width:100%;font-size:13px}

.reference-quick {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px;}
.reference-quick button {min-height:44px;}

/* Reference results read as one question, followed by its evidence basis. */
#contents-rows .contents-row {grid-template-columns:minmax(0,1fr);gap:7px;padding:18px 12px;text-decoration:none;border-bottom:1px solid var(--line);}
#contents-rows .contents-row strong {font-size:21px;line-height:1.3;}
#contents-rows .contents-row span {font-size:14px;line-height:1.5;}
#contents-rows .contents-row small {grid-column:auto;font-size:13px;line-height:1.5;color:var(--muted);}
#book-contents .publication-controls label {width:min(540px,100%);}
#contents-find {width:100%;min-height:44px;}

/* Pass 2: consequential contrasts, using the existing paper/forest/plum system. */
.reading-entry-controls .book-entry-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.reading-entry-controls [data-chapter-entry] {display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;padding:18px;white-space:normal;}
.reading-entry-controls [data-chapter-entry] strong {font:30px var(--serif);}
.reading-entry-controls [data-chapter-entry] small {font-size:13px;line-height:1.5;}
.reading-starts {display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:22px 0;}
.reading-starts p {flex-basis:100%;margin:0!important;}
.reading-starts button {min-height:44px;}
.reading-energy {margin-top:24px;}
.reading-energy #chapter-brent-chart {margin:20px 0;}
.institution-ledger {margin:20px 0;}
.atlas-interpretation {border-left:3px solid var(--accent);padding:16px 22px;margin:26px 0;background:var(--accent-soft);}
.atlas-interpretation p {max-width:760px;}
.annual-holding-contrast {margin:24px 0;}
.annual-holding-contrast svg {width:100%;height:auto;}
.annual-holding-contrast .study-label {font-size:17px;}
@media(max-width:760px){.reading-entry-controls .book-entry-choices {grid-template-columns:1fr;}}

/* No origin means there is no return panel to display. */
.study-origin:empty{display:none}
