:root {
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #1d3028;
	background: #f4f3ec;
	--forest: #173b2e;
	--deep: #112b22;
	--green: #427b5a;
	--muted: #66766d;
	--line: #dce2d8;
	--paper: #fffefa;
	--soft: #edf2e9;
	--gold: #efd47c;
	--focus: #3e78db;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
	outline: 3px solid var(--focus); outline-offset: 3px;
}
.skip { position: absolute; z-index: 20; top: -80px; left: 12px; padding: 10px; background: white; }
.skip:focus { top: 12px; }
.topbar { position: sticky; top: 0; z-index: 10; height: 60px; display: flex; align-items: center; gap: 17px; padding: 0 max(24px, calc((100vw - 1472px) / 2)); background: var(--deep); color: white; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 790; letter-spacing: -.04em; text-decoration: none; }
.mushroom { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--gold); color: var(--deep); font-size: 23px; line-height: 1; transform: rotate(180deg); }
.bar-separator { width: 1px; height: 25px; background: #ffffff40; }
.species-pick { display: flex; align-items: center; gap: 9px; min-width: 0; color: #d5e2d7; font-size: 13px; font-weight: 650; }
.species-pick select { min-width: 0; max-width: 340px; padding: 6px 28px 6px 10px; border: 1px solid #a9c2a052; border-radius: 8px; background: #ffffff12; color: white; font-weight: 700; }
.species-pick option, .species-pick optgroup { color: var(--deep); background: white; }
.bar-link { padding: 6px 2px; color: #d5e2d7; font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.bar-link:hover { color: white; }
.bar-link[aria-current="page"] { color: white; border-bottom-color: var(--gold); }
/* One top bar for the model, question and old-model pages; the last link shortens on a phone. */
.topbar nav { display: flex; gap: 20px; min-width: 0; }
.old-model-banner { margin: 0; padding: 10px max(24px, calc((100vw - 1472px) / 2)); background: #f6efdc; color: #4d3d14; font-size: 13px; line-height: 1.5; }
.old-model-banner a { color: inherit; font-weight: 700; }
.old-model-pick { padding: 10px max(24px, calc((100vw - 1472px) / 2)); border-bottom: 1px solid var(--line); background: var(--paper); }
.old-model-pick .species-pick { color: var(--deep); }
.old-model-pick .species-pick > span { display: inline; }
.old-model-pick .species-pick select { max-width: min(340px, 100%); border-color: #c9d6c9; background: white; color: var(--deep); }
@media (max-width: 640px) {
	.topbar { padding: 0 16px; gap: 14px; }
	.topbar nav { gap: 13px; }
	.topbar .wide-only { display: none; }
	.old-model-banner, .old-model-pick { padding-inline: 16px; }
	.old-model-pick .species-pick { flex-wrap: wrap; }
}
.private-badge { margin-left: auto; padding: 7px 10px; border: 1px solid #a9c2a052; border-radius: 7px; color: #dce9d4; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.layout { max-width: 1472px; margin: auto; padding: 22px 28px 56px; }
.eyebrow { margin: 0 0 7px; color: #497358; font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.eyebrow span { padding: 0 5px; color: #9aaf9b; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; font-size: 23px; letter-spacing: -.035em; line-height: 1.15; }
.text-button { padding: 5px 0; border: 0; background: none; color: var(--green); font-size: 12px; font-weight: 750; }
.text-button:hover { text-decoration: underline; }
.field-group { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.field-group h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 17px; color: var(--deep); font-size: 14px; }
.field-group h3 span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--soft); color: var(--green); font-size: 12px; }
.field { display: grid; gap: 6px; margin: 0 0 17px; color: #29483a; font-size: 12px; font-weight: 700; }
.field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field output { color: var(--deep); font-variant-numeric: tabular-nums; font-weight: 820; white-space: nowrap; }
.field small, .check-field small { display: block; color: #7b8a80; font-size: 10px; line-height: 1.35; font-weight: 500; }
.field select, .field input[type=date] { min-height: 40px; width: 100%; padding: 8px 10px; border: 1px solid #c9d6c9; border-radius: 9px; background: white; color: var(--deep); }
.field input[type=range] { width: 100%; margin: 2px 0 0; accent-color: var(--green); }
.range-field { gap: 5px; }
.check-field { display: flex; gap: 9px; margin: -7px 0 17px; color: #345345; font-size: 11px; font-weight: 650; }
.check-field input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.check-field span { flex: 1; }
.domain-note { margin: -4px 0 0; padding: 12px 16px; border-left: 3px solid #a6843c; border-radius: 0 8px 8px 0; background: #fbf7e9; color: #695835; font-size: 12px; line-height: 1.5; }
.version { padding: 7px 9px; border-radius: 6px; background: var(--soft); color: var(--green); font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.formula-detail { margin-top: 20px; }
.formula-detail h3 { margin-bottom: 6px; font-size: 15px; }
.formula-detail p { margin-bottom: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll th, .table-scroll td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.table-scroll th:first-child, .table-scroll td:first-child { text-align: left; }
.table-scroll th { color: var(--muted); font-weight: 750; }
.response-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.response-card { min-width: 0; padding: 19px 21px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.response-card h3 { margin: 0 0 4px; font-size: 15px; }
.response-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.response-card svg { display: block; width: 100%; height: auto; }
.response-card svg text { fill: #7b8a80; font: 10px ui-sans-serif, system-ui, sans-serif; }
.response-card svg .plot-grid { stroke: #dfe7dc; stroke-width: 1; }
.limits, .archive, .calibration { padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 30px #1c35210a; }
.limits { background: #eaf0e8; }
.limits p { max-width: 790px; margin: 11px 0 0; color: #53675a; font-size: 13px; line-height: 1.6; }
.limits .eyebrow { margin: 0 0 7px; }
.archive { padding: 0; }
.archive summary { padding: 18px 24px; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 750; }
.archive div { padding: 0 24px 20px; }
.archive p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.archive p:last-child { margin-bottom: 0; }
.calibration { padding: 0; scroll-margin-top: 20px; }
.calibration summary { padding: 20px 24px; color: var(--green); cursor: pointer; font-size: 14px; font-weight: 750; }
.calibration-body { padding: 0 24px 24px; }
.calibration-body h3 { margin: 24px 0 8px; font-size: 16px; }
.calibration-body h3:first-child { margin-top: 0; }
.calibration-body p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.calibration-body .fit-equation { color: var(--forest); font-size: 15px; }
.calibration-body .version { margin-bottom: 0; text-align: left; }
footer { margin: 36px 0 0; color: #809085; font-size: 11px; }
footer a { color: #50705c; }

/* Identity and scenario */
.scenario { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; margin: 0 0 30px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 30px #1c35210a; }
.state-badge { padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--green); font-size: 11px; font-weight: 750; }
.state-badge.simulated { background: #fbf0d3; color: #6d5218; }
.scenario .domain-note { margin: 0; padding: 8px 12px; }
.scenario .domain-note[hidden] { display: none; }
.point-map { height: clamp(220px, 34vh, 340px); border-radius: 11px; overflow: hidden; background: var(--soft); }
.point-marker { width: 18px; height: 18px; border: 3px solid white; border-radius: 50%; background: var(--forest); box-shadow: 0 1px 6px #0006; pointer-events: none; }
.scenario-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 6px 6px 6px 0; }
.scenario-hint { margin: 0; color: var(--deep); font-size: 14px; font-weight: 750; }
.scenario-facts { display: grid; gap: 8px; margin: 0; font-size: 12px; }
.scenario-facts dt { color: #5b8065; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.scenario-facts dd { margin: 2px 0 0; color: var(--deep); font-variant-numeric: tabular-nums; }
.scenario .text-button { padding: 0; }

/* Factor sections */
.factor-section { margin: 0 0 34px; }
.section-intro { max-width: 820px; margin: 0 0 16px; }
.section-intro h2 { margin-bottom: 8px; font-size: 27px; }
.section-intro p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.factor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; margin: 0 0 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 30px #1c35210a; scroll-margin-top: 140px; }
.factor-text { min-width: 0; }
.factor h3 { margin: 0 0 6px; color: var(--deep); font-size: 20px; letter-spacing: -.02em; }
.factor-role { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.factor .field { margin-bottom: 12px; }
.factor-meta { margin: 0; color: #7b8a80; font-size: 11px; line-height: 1.5; }
.factor-chart { min-width: 0; margin: 0; align-self: start; }
.factor-chart svg { display: block; width: 100%; height: auto; }
.factor-chart figcaption { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.aggregate { margin: 0 0 14px; padding: 16px 20px; border-radius: 14px; background: var(--deep); color: #dce9d4; }
.aggregate-key { margin: 0 0 4px; color: #a9c2a0; font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.aggregate-equation { margin: 0 0 6px; color: white; font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.aggregate-equation strong { color: var(--gold); font-size: 16px; }
.aggregate-note { margin: 0; color: #b8d1bd; font-size: 11px; line-height: 1.5; }
.aggregate-note a { color: var(--gold); }

/* Charts */
svg text { fill: #6f7f75; font: 10px ui-sans-serif, system-ui, sans-serif; }
svg .axis-label { fill: #4e6b58; font-weight: 700; }
svg .plot-grid { stroke: #e3e9df; stroke-width: 1; }
svg .plot-zero { stroke: #9fb3a3; stroke-width: 1.2; }
svg .plot-tick { stroke: #b9c7bb; }
svg .plot-band { fill: #eef3ea; }
svg .band-label { fill: #8aa08f; font-size: 9px; }
svg .series { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
svg .series.muted { stroke: #a9c2a0; stroke-width: 2; stroke-dasharray: 5 4; }
svg .marker { fill: var(--gold); stroke: var(--forest); stroke-width: 2; }
svg .marker.secondary { fill: white; stroke: #a9c2a0; }
svg .marker-guide { stroke: #c9b261; stroke-width: 1; stroke-dasharray: 3 3; }
svg .bar { fill: #b9d0bd; }
svg .bar.generic { fill: #d4ddd0; }
svg .bar.unknown_fallback { fill: #e6e1cf; }
svg .bar.current { fill: var(--green); }
svg .bar-secondary { stroke: var(--forest); stroke-width: 2.5; }
svg .bar-value { fill: var(--forest); font-variant-numeric: tabular-nums; }
svg .bar-current { fill: var(--deep); font-weight: 800; }
svg .bar-missing { fill: #9a8a5c; font-style: italic; }
svg .tone-1 { stroke: #2f6f8f; } svg .marker.tone-1 { fill: #2f6f8f; }
svg .tone-2 { stroke: #427b5a; } svg .marker.tone-2 { fill: #427b5a; }
svg .tone-3 { stroke: #b07a26; } svg .marker.tone-3 { fill: #b07a26; }
svg .tone-4 { stroke: #8a5a8f; } svg .marker.tone-4 { fill: #8a5a8f; }
.key { display: inline-block; width: 16px; height: 9px; margin: 0 4px 0 8px; vertical-align: 0; border-radius: 2px; }
.key:first-child { margin-left: 0; }
.key-bar { background: #b9d0bd; }
.key-tick { width: 3px; background: var(--forest); }
.key-line { height: 3px; vertical-align: 3px; background: var(--green); }
.key-line.alt { background: repeating-linear-gradient(90deg, #a9c2a0 0 5px, transparent 5px 9px); }
.key-line.tone-1 { background: #2f6f8f; } .key-line.tone-2 { background: #427b5a; }
.key-line.tone-3 { background: #b07a26; } .key-line.tone-4 { background: #8a5a8f; }

/* Composition */
.composition { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.operator { color: var(--muted); font: 600 18px ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; }
.composition-card { min-height: 116px; display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; background: white; box-shadow: 0 8px 30px #1c35210b; }
.composition-card.habitat { border-top: 4px solid #4f875c; }
.composition-card.weather { border-top: 4px solid #83a999; }
.composition-card.combined { border-top: 4px solid var(--gold); background: var(--deep); color: white; }
.composition-card p { display: flex; justify-content: space-between; margin: 0; color: #667970; font-size: 12px; font-weight: 750; }
.composition-card.combined p { color: #deeadf; }
.composition-card strong { margin-top: 8px; color: var(--deep); font-size: 40px; font-weight: 760; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.composition-card.combined strong { color: #f6e2a4; }
.composition-card small { margin-top: auto; color: #839188; font-size: 11px; }
.composition-card.combined small { color: #b8d1bd; }
.composition-equation { margin: 14px 0 12px; color: var(--forest); }
.composition-equation strong { color: var(--forest); }
.secondary, .sensitivity { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.secondary summary, .sensitivity summary { padding: 14px 18px; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 750; }
.secondary ul { margin: 0; padding: 0 18px 16px 36px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sensitivity { margin: 0 0 20px; }
.sensitivity > div { padding: 0 18px 18px; }
.sensitivity > div > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.limits, .calibration, .archive { margin-bottom: 20px; }

/* Inventory */
.pilot-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.pilot-card { min-width: 0; display: flex; flex-direction: column; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); scroll-margin-top: 20px; }
.pilot-card.requested { border-color: var(--gold); box-shadow: 0 0 0 3px #efd47c55; }
.pilot-card h3 { margin: 0 0 8px; color: var(--deep); font-size: 15px; }
.pilot-status { margin: 0 0 4px; color: #5b8065; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pilot-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 8px; margin: 0 0 10px; font-size: 11px; line-height: 1.45; }
.pilot-card dt { color: var(--forest); font-weight: 800; }
.pilot-card dd { margin: 0; color: var(--muted); }
.pilot-check { margin: auto 0 0; padding: 7px 9px; border-radius: 8px; background: var(--soft); color: var(--forest); font-size: 11px; line-height: 1.45; }
.pilot-check[data-ok="false"] { background: #fbf0d3; color: #6d5218; }
.matrix-scroll { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.matrix-scroll table.matrix { white-space: normal; }
.matrix th, .matrix td { min-width: 120px; padding: 9px 10px; text-align: left !important; vertical-align: top; }
.matrix thead th { color: var(--deep); font-size: 11px; }
.matrix tbody th { color: var(--forest); font-weight: 750; }
.matrix tbody th a { color: var(--green); }
.matrix td[data-state="active"] { color: var(--forest); }
.matrix td[data-state="absent"] { color: #9a8a5c; font-style: italic; }
.matrix td[data-state="partial"] { color: #6d5218; }
.matrix-note { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.var-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.compare-pick { max-width: 260px; margin-bottom: 12px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) {
	.compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pilot-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.factor { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
	.compare-grid { grid-template-columns: minmax(0, 1fr); }
	.pilot-cards { grid-template-columns: minmax(0, 1fr); }
	.topbar { height: 60px; padding-inline: 16px; gap: 11px; }
	.brand { font-size: 18px; }
	.bar-title { font-size: 11px; }
	.private-badge { padding: 5px 7px; font-size: 9px; }
	.layout { padding: 25px 14px 35px; }
	.factor { padding: 18px 16px; }
	.section-intro h2 { font-size: 22px; }
	.composition { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.composition .operator { display: none; }
	.composition-card.combined { grid-column: 1 / -1; }
	.response-grid { grid-template-columns: 1fr; }
	.limits { padding: 20px; }
}
@media (max-width: 470px) {
	.bar-separator, .bar-title { display: none; }
	.composition-card { min-height: 100px; padding: 12px; }
	.composition-card strong { font-size: 32px; }
	.calibration summary { padding: 18px; }
	.calibration-body { padding: 0 18px 20px; }
	.aggregate-equation { font-size: 12px; }
}

/* Formulas and variables */
math { font-size: 1.12em; }
.formula { margin: 0 0 12px; padding: 10px 12px; overflow-y: hidden; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: #f6f9f4; color: var(--forest); overflow-x: auto; }
.formula math[display="block"] { display: inline math; math-style: normal; margin: 0; }
.formula .result { font-weight: 800; }
.aggregate .formula { margin: 4px 0 6px; padding: 0; border: 0; background: none; color: white; }
.aggregate .formula .result { color: var(--gold); }
.composition-formula { margin-top: 14px; }
.vars { width: 100%; margin: 0 0 12px; border-collapse: collapse; font-size: 12px; line-height: 1.4; }
.vars th, .vars td { padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: baseline; text-align: left; }
.vars th { width: 1%; color: var(--forest); font-weight: 400; white-space: nowrap; }
.vars td { color: var(--muted); }
.vars td.num { width: 1%; color: var(--deep); font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.field math { font-size: 1em; font-weight: 400; }

/* Selectable essence rows */
.clickable-bars .bar-row { cursor: pointer; outline: none; }
.clickable-bars .bar-hit { fill: transparent; }
.clickable-bars .bar-row:hover .bar-hit { fill: #edf2e9; }
.clickable-bars .bar-row:focus-visible .bar-hit { fill: none; stroke: var(--focus); stroke-width: 2; }
.power-chart { margin: 4px 0 12px; max-width: 420px; }

/* Regional pilots, kept as a diagnostic until a single model replaces them */
.regional { margin-bottom: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.regional > summary { padding: 18px 24px; color: var(--green); cursor: pointer; font-size: 14px; font-weight: 750; }
.regional > summary small { margin-left: 8px; color: #8a7a4c; font-size: 11px; font-weight: 600; }
.regional-body { padding: 0 24px 24px; }
.regional-body h2 { margin: 18px 0 12px; font-size: 19px; }
.archive-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.limits h2 { font-size: 15px; }
.limits p { margin-top: 6px; }
@media (max-width: 900px) {
	.scenario { grid-template-columns: minmax(0, 1fr); }
	.scenario-side { padding: 0 4px 4px; }
}
@media (max-width: 560px) {
	.species-pick > span { display: none; }
	.species-pick select { max-width: 52vw; }
	.private-badge { display: none; }
	.regional > summary small { display: block; margin: 4px 0 0; }
}

/* Page navigation: a sticky column on wide screens, a sticky strip on narrow ones */
.page { max-width: 1472px; margin: auto; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px; padding-left: 28px; }
.page .layout { max-width: none; margin: 0; min-width: 0; }
.toc { position: sticky; top: 60px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 60px); overflow-y: auto; padding: 24px 0 24px; font-size: 13px; }
.toc a { padding: 5px 10px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.3; }
.toc a:hover { color: var(--deep); }
.toc .toc-section { margin-top: 10px; color: var(--forest); font-weight: 750; }
.toc .toc-sub { padding-left: 22px; }
.toc a[aria-current="true"] { border-left-color: var(--green); color: var(--deep); font-weight: 750; background: var(--soft); border-radius: 0 6px 6px 0; }
.factor-section, .scenario, .calibration, .regional { scroll-margin-top: 76px; }
.factor { scroll-margin-top: 76px; }
.factor.composition-block { display: block; }
.composition-block h3 { margin-bottom: 14px; }
@media (max-width: 1100px) {
	.page { display: block; padding-left: 0; }
	.toc { top: 60px; z-index: 9; flex-direction: row; max-height: none; overflow-x: auto; padding: 8px 14px; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; scrollbar-width: none; }
	.toc a, .toc .toc-sub { padding: 5px 9px; border-left: 0; border-radius: 6px; }
	.toc .toc-section { margin-top: 0; }
	.toc a[aria-current="true"] { border-radius: 6px; }
	.factor-section, .scenario, .calibration, .regional, .factor { scroll-margin-top: 112px; }
}
@media (max-width: 760px) { .toc { top: 60px; } }

/* Score cards: an intermediate result, styled apart from the factors it combines */
.factor.score-card { border-color: #b9d0bd; background: #f3f7f1; }
.factor.score-card .formula { background: white; }
.factor.score-card .vars td.num { color: var(--forest); }
.factor.score-card.single { grid-template-columns: minmax(0, 1fr); }
.factor.score-card.single .factor-text { max-width: 640px; }
.heat-chart { cursor: crosshair; }
svg .isoline { fill: none; stroke: #ffffffcc; stroke-width: 1.4; }
svg .isoline-label { fill: white; font-size: 10px; font-weight: 750; paint-order: stroke; stroke: #0005; stroke-width: 2px; }
svg .heat-label { fill: var(--deep); font-size: 12px; font-weight: 800; paint-order: stroke; stroke: #fffc; stroke-width: 3px; }
svg .marker-hit { fill: transparent; cursor: grab; }
.dragging svg .marker-hit, .dragging { cursor: grabbing; }
.factor-chart > div { touch-action: pan-y; }
.heat-chart { touch-action: none; }
