/* Engineer learning workspace; inherits the shared sun/moon theme. */
.inflation-comparison{width:100%;line-height:1.6;margin:1.25rem 0}.inflation-comparison th,.inflation-comparison td{white-space:normal;overflow-wrap:normal;vertical-align:top}.retirement-inflation h3{margin-top:1.75rem}.inflation-comparison caption{font-size:.8rem;line-height:1.6}
.learning-shell{max-width:58rem;margin:0 auto;padding:1.5rem .5rem 2rem}.learning-shell h1{font-size:clamp(1.9rem,4vw,2.8rem);font-weight:750;letter-spacing:-.035em;line-height:1.15;margin-bottom:1rem}.learning-shell h2{font-size:1.4rem;font-weight:700}.learning-shell h3{font-size:1.2rem;font-weight:700}.learning-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:700;color:var(--bs-primary);margin-bottom:.65rem}.learning-lead{font-size:1.08rem;line-height:1.7;max-width:47rem;color:var(--bs-secondary-color);margin-bottom:1.5rem}.learning-grid{display:grid;gap:.75rem}.two-up{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-shell .card-body{padding:1.35rem}.learning-shell .card{min-width:0}.learning-progress{margin-bottom:1.5rem}.progress-label,.principle-meta{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.75rem}.learning-progress .progress{height:.5rem}.learning-progress p{font-size:.88rem}.foundation-group{margin-top:2rem}.foundation-group>h2{margin-bottom:1rem}.learning-card{color:inherit;text-decoration:none;transition:border-color .15s}.learning-card:hover,.learning-card:focus-visible{color:inherit;border-color:var(--bs-primary);outline-offset:3px}.learning-card p{color:var(--bs-secondary-color)}.principle-meta{font-size:.7rem;font-weight:700;color:var(--bs-secondary-color);letter-spacing:.07em;text-transform:uppercase}.card-action{color:var(--bs-primary);font-size:.9rem;font-weight:600}.category-tags{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 1.5rem}.category-tags a{border:1px solid var(--bs-border-color);border-radius:2rem;padding:.45rem .85rem;text-decoration:none;font-size:.88rem;color:inherit}.category-tags a:hover,.category-tags a[aria-current=page]{border-color:var(--bs-primary);color:var(--bs-primary);background:rgba(80,150,255,.08)}.principle-reading{font-size:1.07rem;line-height:1.85;margin:1.5rem 0}.principle-reading p:last-child,.analysis-section p:last-child{margin-bottom:0}.understanding-check{margin:1.5rem 0}.understanding-check legend{font-size:1.05rem;line-height:1.6;margin:.7rem 0 1rem}.answer-options{display:grid;gap:.75rem}.answer-option{display:flex;align-items:flex-start;gap:.8rem;border:1px solid var(--bs-border-color);border-radius:.5rem;padding:1rem;cursor:pointer;line-height:1.5}.answer-option:has(input:checked){border-color:var(--bs-primary);background:rgba(80,150,255,.09)}.answer-option input{margin-top:.3rem;flex-shrink:0;accent-color:var(--bs-primary)}.errorlist{color:var(--bs-danger);padding-left:1.3rem}.completion-note{color:var(--bs-success-text-emphasis)}.analysis-note{padding:1rem;border-left:3px solid var(--bs-primary);background:rgba(80,150,255,.08);line-height:1.6}.analysis-contents{display:grid;gap:.6rem;margin:1.5rem 0}.analysis-contents a{font-size:.9rem}.analysis-section{margin-bottom:1rem;scroll-margin-top:1rem;line-height:1.8}.analysis-section h2{margin-bottom:1rem}@media(max-width:650px){.two-up{grid-template-columns:1fr}.learning-shell{padding:1rem 0}.learning-shell .card-body{padding:1.1rem}.category-tags{gap:.5rem}.category-tags a{padding:.4rem .7rem}.progress-label{font-size:.88rem}.answer-option{padding:.8rem}}

.principle-reading h2{margin-bottom:1rem}.lesson-sources{margin:1.5rem 0;font-size:.9rem;line-height:1.8}.lesson-sources h2{font-size:1.1rem}.lesson-sources a{overflow-wrap:anywhere}

.system-context-figure{margin:1.5rem 0 0;padding:1.2rem;border:1px solid var(--bs-border-color);border-radius:.5rem}.system-context-figure h3{font-size:1.15rem}.system-context-map{display:grid;grid-template-columns:1fr 1.05fr 1fr;align-items:stretch;margin:1.5rem 0;line-height:1.4;font-size:.8rem}.context-external-group{display:flex;flex-direction:column;justify-content:space-around;gap:1.5rem;padding:2rem 0}.context-transfer{display:grid;grid-template-columns:1fr 5rem;align-items:center}.context-outputs .context-transfer{grid-template-columns:5rem 1fr}.context-external{padding:.8rem .4rem;border:1px solid var(--bs-border-color);border-radius:.35rem;text-align:center;background:var(--bs-tertiary-bg);overflow-wrap:anywhere}.context-flow{display:flex;flex-direction:column;gap:.4rem;text-align:center;color:var(--bs-primary);font-size:.69rem;padding:.5rem 0}.context-flow i{display:block;width:100%;height:2px;background:currentColor;position:relative}.context-flow i:after{content:"";position:absolute;right:0;top:-4px;border-left:7px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent}.context-reverse i:after{right:auto;left:0;border-left:0;border-right:7px solid currentColor}.context-system-boundary{display:flex;flex-direction:column;justify-content:center;padding:1.3rem .9rem;border:2px dashed var(--bs-primary);border-radius:.5rem;background:rgba(80,150,255,.08);text-align:center;min-width:0}.context-system-boundary h4{font-size:1.15rem;font-weight:700;margin:.6rem 0}.context-system-boundary p{font-size:.8rem;color:var(--bs-secondary-color)}.context-boundary-label{font:700 .62rem/1.5 ui-monospace,monospace;letter-spacing:.08em;color:var(--bs-primary)}.context-system-boundary ul{list-style:none;padding:0;margin:0;display:grid;gap:.5rem;font-size:.8rem}.context-system-boundary li{padding:.4rem;border:1px solid var(--bs-border-color);border-radius:.25rem}.system-context-figure figcaption{line-height:1.7}
@media(max-width:700px){.system-context-figure{padding:.8rem}.system-context-map{grid-template-columns:1fr;gap:0}.context-external-group{display:grid;padding:0;gap:.5rem}.context-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}.context-outputs{grid-template-columns:repeat(2,minmax(0,1fr))}.context-transfer,.context-outputs .context-transfer{display:flex;flex-direction:column;gap:0;min-width:0}.context-external{width:100%;font-size:.7rem;min-height:3.5rem;display:flex;align-items:center;justify-content:center}.context-flow{height:5rem;position:relative;justify-content:center;align-items:center;width:100%;font-size:.62rem;padding:0}.context-flow span{position:relative;z-index:1;background:var(--bs-body-bg);padding:.15rem}.context-flow i{position:absolute;width:2px;height:100%;top:0;left:50%}.context-flow i:after{right:auto;top:auto;left:-4px;bottom:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid currentColor;border-bottom:0}.context-flow-pair{display:grid;grid-template-columns:1fr 1fr;width:100%}.context-flow-pair .context-flow{font-size:.55rem}.context-reverse i:after{top:0;bottom:auto;border-top:0;border-bottom:7px solid currentColor;border-right:5px solid transparent}.context-system-boundary{padding:1rem;margin:0}.context-system-boundary ul{grid-template-columns:repeat(3,minmax(0,1fr));font-size:.7rem}.context-system-boundary li{display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}}

.household-context{scroll-margin-top:1rem}.household-concept{display:grid;gap:.4rem;padding:.7rem .4rem;margin-top:.75rem;border:1px solid var(--bs-border-color);border-radius:.35rem;font-size:.75rem}.household-concept strong{font-size:.95rem}.household-concept small{color:var(--bs-secondary-color);font-size:.68rem;line-height:1.5}@media(max-width:700px){.household-context .context-inputs{grid-template-columns:1fr}.household-context .context-system-boundary{padding:.8rem}.household-context .context-flow-pair .context-flow{font-size:.62rem}}

.context-transfer:has(.context-flow-pair)>.context-external{align-self:stretch;display:flex;align-items:center;justify-content:center}

.lesson-more{margin:1.5rem 0;scroll-margin-top:1rem}.lesson-more>summary{padding:1.15rem 1.35rem;font-weight:700;font-size:1.05rem;cursor:pointer}.lesson-more>summary:focus-visible{outline:2px solid var(--bs-primary);outline-offset:3px}.lesson-more[open]>summary{border-bottom:1px solid var(--bs-border-color)}.lesson-extension{font-size:1rem;line-height:1.8}.discussion-questions{padding-left:1.35rem;margin-bottom:0;line-height:1.75}.discussion-questions li+li{margin-top:.9rem}.lesson-extension+h2{margin-top:1.5rem}

.feedback-comparison{margin:1.5rem 0 0}.feedback-comparison h3{font-size:1.15rem}.feedback-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.feedback-path{min-width:0;padding:1rem;border:1px solid var(--bs-border-color);border-radius:.4rem;background:var(--bs-tertiary-bg)}.feedback-path h4{font-size:1.05rem}.feedback-path p{font-size:.9rem;line-height:1.6;margin-bottom:0}.response-chart{display:block;width:100%;height:auto;margin:.6rem 0}.chart-axis{fill:none;stroke:var(--bs-body-color);stroke-width:1.4}.chart-baseline,.chart-disturbance{fill:none;stroke:var(--bs-secondary-color);stroke-width:1.2;stroke-dasharray:5 5}.chart-label{fill:var(--bs-body-color);font:14px system-ui,sans-serif}.chart-response{fill:none;stroke:var(--response-color);stroke-width:3.5;stroke-linejoin:round}.chart-point{fill:var(--response-color)}.response-stable{--response-color:#168560}.response-unstable{--response-color:#bf5712}[data-bs-theme="dark"] .response-stable{--response-color:#59d5ad}[data-bs-theme="dark"] .response-unstable{--response-color:#ffb164}@media(max-width:700px){.feedback-comparison-grid{grid-template-columns:1fr}}

.fiscal-comparison th,.fiscal-comparison td{vertical-align:middle}.fiscal-comparison td{min-width:8rem}.fiscal-calculations h3{font-size:1.1rem}.fiscal-calculations p{overflow-wrap:anywhere}

.fiscal-mobile-label{display:none}@media(max-width:600px){.fiscal-comparison{display:block}.fiscal-comparison thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.fiscal-comparison tbody{display:grid;gap:1rem}.fiscal-comparison tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.fiscal-comparison th[scope="row"]{grid-column:1/-1}.fiscal-comparison td{min-width:0;overflow-wrap:normal}.fiscal-comparison th,.fiscal-comparison td{padding:.75rem}.fiscal-comparison caption{display:block}.fiscal-mobile-label{display:block;font-size:.75rem;color:var(--bs-secondary-color);margin-bottom:.4rem}}

@media(max-width:700px){.representative-context .context-inputs,.representative-context .context-outputs{grid-template-columns:repeat(3,minmax(0,1fr))}}

.household-context{margin-bottom:1.5rem}.household-context h2{font-size:1.35rem}

.marginal-budget th,.marginal-budget td{word-break:normal;overflow-wrap:normal}.marginal-budget td{white-space:nowrap}@media(max-width:600px){.marginal-budget th,.marginal-budget td{font-size:.85rem;padding:.7rem .4rem}}

.housing-cost-example{margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--bs-border-color)}.housing-cost-example h3{font-size:1.1rem}.housing-cost-example li+li{margin-top:.75rem}.housing-cost-calculation{padding:1rem;border-left:3px solid var(--bs-primary);background:var(--bs-tertiary-bg);overflow-wrap:anywhere}

.household-debt-comparison{padding:1rem;margin:1rem 0 1.5rem;border-left:3px solid var(--bs-primary);background:var(--bs-tertiary-bg)}.household-debt-comparison h3{font-size:1.15rem}.household-debt-comparison p:last-child{margin-bottom:0}
.population-context-switcher{margin-top:2rem}.population-context-intro{max-width:44rem;margin-bottom:1rem}.population-context-intro h3{margin-bottom:.5rem}.population-context-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;border:0;margin-bottom:.8rem}.population-context-tabs .nav-item{display:flex}.population-context-tabs .nav-link{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;width:100%;gap:.1rem .65rem;padding:.85rem 1rem;text-align:left;color:var(--bs-body-color);background:var(--bs-tertiary-bg);border:1px solid var(--bs-border-color);border-radius:.55rem}.population-context-tabs .nav-link:hover,.population-context-tabs .nav-link:focus-visible{border-color:var(--bs-primary);color:var(--bs-body-color)}.population-context-tabs .nav-link.active{color:var(--bs-body-color);background:rgba(80,150,255,.12);border-color:var(--bs-primary);box-shadow:inset 0 0 0 1px var(--bs-primary)}.population-tab-number{grid-row:1 / span 2;color:var(--bs-primary);font-size:.72rem;font-weight:750;letter-spacing:.08em;padding-top:.14rem}.population-context-tabs strong{font-size:1rem}.population-context-tabs small{color:var(--bs-secondary-color);font-size:.78rem}.population-context-panels{padding:1.25rem;border:1px solid var(--bs-border-color);border-radius:.65rem;background:var(--bs-body-bg)}.population-context-panels .population-case{margin:0;padding:0;border:0}.population-evidence{padding:1rem;margin:1rem 0;border-left:3px solid var(--bs-primary);background:var(--bs-tertiary-bg)}.population-evidence h4{margin-bottom:.7rem}.population-evidence li+li{margin-top:.55rem}.population-case{margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--bs-border-color)}.population-case>h3{font-size:1.35rem}.population-case h4{font-size:1.05rem;font-weight:700}.population-method{font-size:.88rem;margin:1rem 0}.population-number-example{padding:1rem;margin-top:1.2rem;border-left:3px solid var(--bs-primary);background:rgba(80,150,255,.07)}.population-discussion summary{font-weight:650;cursor:pointer}.population-discussion ul{margin-top:.75rem}.population-context .context-system-boundary li{font-size:.76rem}.population-context .context-flow-pair .context-flow{font-size:.64rem}@media(max-width:900px){.population-context-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.population-context-tabs{grid-template-columns:1fr}.population-context-panels{padding:1rem}.population-context .context-inputs,.population-context .context-outputs{grid-template-columns:1fr}.population-context .context-system-boundary ul{grid-template-columns:1fr}.population-context .context-external{font-size:.85rem}.population-context .context-flow-pair .context-flow{font-size:.73rem}.population-context .context-flow{font-size:.75rem}.population-case>h3{font-size:1.2rem}}
.issue-search{max-width:30rem;margin:0 0 1.5rem}.issue-search label{display:block;font-size:.85rem;font-weight:650;margin-bottom:.4rem}.issue-search>div{display:flex;gap:.5rem}.issue-search input{min-width:0}.issue-breadcrumbs{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:1.5rem 0;font-size:.88rem}.issue-topic-list{border-top:1px solid var(--bs-border-color)}.issue-topic-list>a{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem .25rem;border-bottom:1px solid var(--bs-border-color);text-decoration:none;color:inherit}.issue-topic-list>a:hover,.issue-topic-list>a:focus-visible{background:rgba(80,150,255,.07);color:var(--bs-primary)}.issue-topic-list strong{display:block}.issue-topic-list small{display:block;color:var(--bs-secondary-color);line-height:1.6;margin-top:.2rem}.topic-arrow{color:var(--bs-primary);flex-shrink:0}.issue-category-grid .card-action{display:block;margin-top:.75rem}
.issue-discussion{margin:1.5rem 0 2rem;scroll-margin-top:1rem}.issue-discussion-reading{line-height:1.8}.issue-discussion li{line-height:1.8;margin-bottom:.4rem}.discussion-sources summary{cursor:pointer;font-weight:650}.discussion-sources ul{margin-top:.8rem}.discussion-foundations{padding-top:1rem;border-top:1px solid var(--bs-border-color)}.population-resource-context .system-context-map{grid-template-columns:1.2fr 1fr}.population-resource-context .context-transfer{grid-template-columns:1fr 6.5rem}.population-resource-context .context-external{min-height:8rem}.generation-support{display:grid;gap:.75rem}.generation-support p{display:grid;gap:.4rem;padding:.7rem;border:1px solid var(--bs-border-color);border-radius:.3rem;margin:0!important}.generation-support strong{color:var(--bs-body-color);font-size:.8rem}.generation-support span{font-size:.75rem}@media(max-width:700px){.population-resource-context .system-context-map{grid-template-columns:1fr}.population-resource-context .context-transfer{display:flex}.population-resource-context .context-flow-pair{grid-template-columns:repeat(3,minmax(0,1fr))}.population-resource-context .context-flow-pair .context-flow{height:7rem;font-size:.65rem}.population-resource-context .context-external{min-height:5rem}.generation-support strong{font-size:.85rem}}

.issue-category-heading{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:baseline;justify-content:space-between;margin:1.25rem 0 .8rem}.issue-category-heading h1{margin:0}.issue-category-heading>a{font-size:.85rem;white-space:nowrap}

.population-pair-map{display:grid;grid-template-columns:minmax(0,1fr) 9rem minmax(0,1fr);align-items:stretch;margin:1.5rem 0;font-size:.85rem;line-height:1.5}.population-pair-flows{display:flex;flex-direction:column;justify-content:center;gap:1rem}.population-pair-map>.context-external{display:flex;align-items:center;justify-content:center;margin:1.2rem 0}.population-pair-flows .context-flow{font-size:.72rem}.population-pair-map .context-system-boundary p{margin-bottom:0}@media(max-width:700px){.population-pair-map{grid-template-columns:1fr}.population-pair-flows{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.population-pair-flows .context-flow{height:7rem;font-size:.72rem}.population-pair-map>.context-external{min-height:5rem;margin:0}.population-pair-map .context-system-boundary{min-height:9rem}}

.population-summary-table{table-layout:fixed;width:100%;font-size:.94rem;line-height:1.65;margin-top:1rem}.population-summary-table .perspective-column{width:23%}.population-summary-table .trade-column{width:41%}.population-summary-table .preference-column{width:36%}.population-summary-table th,.population-summary-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:.85rem .7rem}.population-summary-table th small{font-weight:400;color:var(--bs-secondary-color)}@media(max-width:600px){.population-summary-table{font-size:.81rem;line-height:1.6}.population-summary-table th,.population-summary-table td{padding:.65rem .4rem}.population-summary-table .perspective-column{width:25%}.population-summary-table .trade-column{width:39%}}

.immigration-comparison-table{table-layout:fixed;width:100%;font-size:.94rem}.immigration-comparison-table th,.immigration-comparison-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.immigration-contexts .table th{position:static}.immigration-contexts .population-pair-map{grid-template-columns:minmax(0,1fr) 11rem minmax(0,1fr)}@media(max-width:700px){.immigration-contexts .population-pair-map{grid-template-columns:1fr}.immigration-comparison-table{font-size:.8rem}.immigration-comparison-table th,.immigration-comparison-table td{padding:.6rem .35rem}}
.chemical-reaction{margin:1rem 0;padding:1rem;border:1px solid var(--bs-border-color);border-radius:.5rem;background:var(--bs-tertiary-bg)}
.chemical-reaction h4{font-size:1rem;margin:0 0 .75rem}
.chemical-equation{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem .7rem;font-family:Arial,"Segoe UI",sans-serif;font-size:clamp(1.1rem,2.2vw,1.35rem);line-height:1.8;margin:0;color:var(--bs-body-color)}
.chemical-equation>span{white-space:nowrap}
.chemical-equation .chemical-arrow{font-size:1.5em;line-height:1}

.content-references a{overflow-wrap:anywhere}.content-references li+li{margin-top:.5rem}
.economic-groups{--income-0:#e88780;--income-1:#e7b767;--income-2:#71c5a3;--income-3:#72b3ed;--income-4:#b69be8}
.economic-groups-table,.learning-scroll-table{font-size:.9rem;min-width:640px}.economic-groups-table th,.economic-groups-table td,.learning-scroll-table th,.learning-scroll-table td{white-space:normal;vertical-align:middle}
.economic-groups-table thead th,.learning-scroll-table thead th{min-width:6rem}
.case-origin-visual{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.15fr);gap:2rem;align-items:center}.case-origin-drawing{margin:0;color:var(--bs-primary)}.case-origin-drawing svg{width:100%;height:auto}.case-origin-drawing .plane-fill{fill:var(--bs-tertiary-bg)}.case-origin-drawing figcaption{font-size:.8rem;text-align:center;color:var(--bs-secondary-color)}.case-kindness-drawing .kindness-ring-lines{fill:none;stroke:currentColor;opacity:.45;stroke-width:1.5}.case-kindness-drawing text{fill:currentColor;font:12px Arial,sans-serif;font-weight:700;letter-spacing:1px}.case-kindness-drawing .kindness-center{fill:var(--bs-tertiary-bg);stroke:currentColor;stroke-width:2}.case-kindness-drawing .kindness-outward{stroke:currentColor;stroke-width:2}@media(max-width:650px){.case-origin-visual{grid-template-columns:1fr}.case-origin-drawing{max-width:300px;margin:auto}}
.case-kindness-drawing text{fill:var(--bs-body-color);font-size:22px;letter-spacing:.7px}.case-origin-drawing .aircraft-drawing text{font-size:14px}
.policy-method-intro{margin:2rem 0 1.25rem;padding-top:1.5rem;border-top:1px solid var(--bs-border-color)}.policy-method-intro h2{font-size:1.4rem}.policy-method-intro .analysis-contents{display:flex;flex-wrap:wrap;gap:.5rem 1rem;font-size:.85rem;margin:1rem 0}
.income-0{--income-color:var(--income-0)}.income-1{--income-color:var(--income-1)}.income-2{--income-color:var(--income-2)}.income-3{--income-color:var(--income-3)}.income-4{--income-color:var(--income-4)}
.income-swatch{display:inline-block;width:.75rem;height:.75rem;margin-right:.5rem;background:var(--income-color);border-radius:.1rem}
.income-group-buttons{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.income-group-buttons [aria-pressed=true]{background:var(--bs-primary);color:#fff}
.economic-chart-scroll{overflow-x:auto;margin:1rem 0}.economic-chart{display:block;width:100%;min-width:620px;height:auto;color:var(--bs-body-color)}.economic-chart text{fill:currentColor;font:15px Arial,sans-serif}.economic-chart .chart-heading{font-weight:bold}.income-band{fill:var(--income-color);opacity:.23;transition:opacity .15s}.income-band.income-muted{opacity:.03}.chart-grid{stroke:currentColor;opacity:.2}.income-curve,.income-tail{fill:none;stroke:var(--bs-primary);stroke-width:3}.income-tail{stroke-dasharray:5 3}.income-selected>*{background:var(--bs-primary-bg-subtle)!important}
.wealth-legend{display:flex;gap:1.5rem;flex-wrap:wrap;margin:1rem 0}.wealth-legend i{display:inline-block;width:1rem;height:.6rem}.population-bar{background:#6daeff}.wealth-bar{background:#dc9f42}.wealth-scale{display:flex;justify-content:space-between;font-size:.8rem}.wealth-bar-group{margin:1.25rem 0}.wealth-bar-group strong{display:block;margin-bottom:.3rem;font-size:.9rem}.wealth-track{height:.7rem;background:var(--bs-secondary-bg);margin:.3rem 0; background-image:linear-gradient(to right,transparent calc(100% - 1px),var(--bs-border-color) 0);background-size:25% 100%}.wealth-track>div{height:100%}
@media(max-width:600px){.economic-groups-table,.learning-scroll-table{font-size:.8rem}.economic-groups-table th,.economic-groups-table td,.learning-scroll-table th,.learning-scroll-table td{padding:.5rem .3rem}}

.rating-options { display: flex; flex-wrap: wrap; gap: .75rem; border: 0; padding: 0; margin: 0; }
.rating-option { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; padding: .5rem; border: 1px solid var(--bs-border-color, #495b70); border-radius: .3rem; }
.rating-option:has(input:checked) { border-color: #78adff; background: rgba(80, 145, 255, .16); }
.rating-option input { accent-color: #78adff; }

.rating-stars { display: inline-block; position: relative; color: #687383; font-size: 1.3rem; letter-spacing: .12em; white-space: nowrap; vertical-align: middle; }
.rating-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #e5ab37; white-space: nowrap; }

.rating-inline { display: inline-block; margin-inline-start: .35rem; vertical-align: baseline; line-height: 1; }
.rating-inline .rating-stars { font-size: .95rem; }

.learning-grid > .learning-card { margin: 0; }
.collection-category-count { font-size: .85rem; font-weight: 400; color: var(--bs-secondary-color); white-space: nowrap; }

.carbon-feedback-loop { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; margin: 1rem 0; }
.carbon-feedback-loop li { flex: 1 1 9rem; padding: .8rem; border: 1px solid var(--bs-border-color); border-radius: .4rem; background: var(--bs-tertiary-bg); }
.carbon-balance p { margin: 0; line-height: 1.7; }
.capture-context-map { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1.3fr) 4.5rem minmax(0, 1fr); gap: .5rem; align-items: center; margin: 1.2rem 0; font-size: .85rem; }
.capture-context-box { min-width: 0; padding: .9rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .4rem; }
.capture-context-box h4 { font-size: 1rem; font-weight: 700; }
.capture-context-box p { margin-bottom: 0; }
.capture-project-boundary { border: 2px dashed var(--bs-primary); }
.capture-project-boundary ul { padding-left: 1rem; margin-bottom: 0; }
.capture-context-arrow { text-align: center; color: var(--bs-primary); font-size: .7rem; }
.capture-context-arrow strong { display: block; font-size: 1.8rem; }
.capture-context-outcome { grid-column: 1 / -1; border: 1px solid var(--bs-border-color); border-radius: .4rem; padding: 1rem; margin-top: .5rem; }
.capture-context-outcome p { margin-bottom: 0; }
.capture-context figcaption { font-size: .9rem; }
@media (max-width: 700px) { .capture-context-map { grid-template-columns: 1fr; } .capture-context-arrow { display: flex; align-items: center; justify-content: center; gap: 1rem; } .capture-context-arrow strong { transform: rotate(90deg); } }
