.nepal-case { max-width: 1380px; margin-inline: auto; }
.nepal-case section[id] { scroll-margin-top: 16px; }
.case-intro { padding: 4px 0 24px; }
.case-intro h1 { font-size: clamp(24px, 3.1vw, 32px); margin: 0 0 8px; }
.case-intro > p:not(.case-kicker) { font-size: clamp(14px, 1.4vw, 17px); color: #bec1c4; }
.case-kicker { color: #b7b9bf; font-size: 13px; margin: 4px 0 7px; }
.section-links, .file-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.section-links a, .file-links a { font-size: 13px; text-underline-offset: 5px; padding-block: 6px; }
.case-section-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.case-section-header h2 { font-size: clamp(22px, 2.45vw, 31px) !important; margin: 0; }
.case-section-header label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.case-section-header select { padding: 8px 12px; min-height: 43px; }
.regional-layout, .event-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border: 1px solid var(--line); border-radius: 12px; background: #090a0c; }
.region-map, .cell-result, .radar-review, .event-evidence { min-width: 0; padding: clamp(16px, 2.25vw, 29px); }
.cell-result, .event-evidence { border-left: 1px solid var(--line); }
.region-head, .result-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.region-head h3, .event-evidence h3 { font-size: 17px; font-weight: 500; }
.region-head h3 { margin: 0; }
.region-head button, .scene-controls button, .case-button { background: #141619; border: 1px solid #414448; border-radius: 6px; color: #eff0ec; padding: 8px 12px; min-height: 41px; font-size: 13px; text-decoration: none; }
.case-button { display: inline-flex; gap: 8px; align-items: center; }
.nepal-grid { display: grid; grid-template-columns: max-content repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 20px; }
.grid-axis { color: #b3b7bc; font-size: 11px; text-align: center; align-self: center; white-space: nowrap; }
.cell { border: 1px solid #363a3e; min-height: 59px; background: #13171a; color: #efefee; display: grid; align-content: center; gap: 3px; padding: 5px 3px; font-variant-numeric: tabular-nums; }
.cell .value { font-size: 14px; }
.cell .flags { font-size: 11px; min-height: 15px; color: #e1e1dc; }
.cell.colder { background: #152b34; color: #bce2ee; }
.cell.warmer { background: #382621; color: #ffd5c6; }
.cell[aria-pressed=true], .scene-controls button[aria-pressed=true] { border-color: #ed775d; }
.cell[aria-pressed=true] { outline: 1px solid #ed775d; outline-offset: 0; }
.grid-legend { margin: 15px 0 10px; display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: #c6c8ca; }
.grid-legend .warmer { color: #ffd5c6; } .grid-legend .colder { color: #bce2ee; }
.case-note, figcaption { font-size: 13px; color: #b6b9bd; line-height: 1.55; }
.cell-slope { font-size: clamp(25px, 3vw, 40px); letter-spacing: -.045em; margin: 0; font-variant-numeric: tabular-nums; }
.cell-result .verdict { font-size: 12px; margin: 0; padding: 4px 8px; border: 1px solid #656763; border-radius: 5px; color: #e4e4de; }
.cell-result .verdict.supported { border-color: #548072; color: #b9e4d3; }
.chart-key { display: flex; gap: 16px; font-size: 11px; color: #c9cbcf; }
.chart-key span::before { content: ''; display: inline-block; width: 13px; margin-right: 5px; vertical-align: middle; border-top: 2px solid #92c2c6; }
.chart-key span:last-child::before { border-top: 2px dashed #edb299; }
#annual-chart { display: block; width: 100%; height: auto; margin-top: 6px; }
#annual-chart text { font: 12px Geist, sans-serif; fill: #bfc3c6; }
#annual-chart .chart-grid { stroke: #34383c; stroke-width: 1; }
#annual-chart .observed { stroke: #92c2c6; stroke-width: 2; }
#annual-chart .fitted { stroke: #edb299; stroke-width: 2; stroke-dasharray: 6 5; }
.evidence-stats { margin: 4px 0 14px; }
.evidence-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid #2a2e30; }
.evidence-stats dt { font-size: 13px; }
.evidence-stats dd { font-size: 13px; }
.nepal-case details { border-top: 1px solid #303235; padding: 12px 0 8px; }
.nepal-case summary { cursor: pointer; font-size: 14px; margin-bottom: 8px; }
.nepal-case table { font-size: 12px; }
.nepal-case table td, .nepal-case table th { padding: 7px 6px; white-space: normal; }
.nepal-case #event, .nepal-case #audit { margin-top: 40px; }
.scene-controls { display: flex; gap: 8px; margin-bottom: 12px; }
.radar-review figure { margin: 0; }
.radar-review img { display: block; width: 100%; height: 340px; object-fit: contain; background: #030405; border: 1px solid #303235; border-radius: 7px; }
.radar-review figcaption { margin-top: 8px; }
.evidence-audit { border-top: 1px solid var(--line); padding: 22px 0 25px; }
.evidence-audit dl { display: grid; grid-template-columns: minmax(130px,.35fr) 1fr; gap: 12px 18px; max-width: 900px; }
.evidence-audit dt { color: #ededea; font-size: 14px; }
.evidence-audit dd { margin: 0; color: var(--muted); text-align: left; font-size: 14px; }
.seasonal-check { margin: 1rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.seasonal-check h3 { font-size: 1rem; margin: 0 0 .5rem; }
.seasonal-check label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; margin: .8rem 0; }
.seasonal-check select { max-width: 65%; }
#diagnostic-chart { display: block; width: 100%; }
#diagnostic-chart text { fill: var(--muted); font-family: Geist, sans-serif; font-size: 11px; }
#diagnostic-chart .observed { stroke: #a9b5bd; stroke-width: 1.4; }
#diagnostic-chart .fitted { stroke: #edb88b; stroke-width: 2; }
#diagnostic-chart .robust-fit { stroke: #87c3c0; stroke-width: 2; stroke-dasharray: 5 3; }
.diagnostic-key { display: flex; gap: .85rem; font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.diagnostic-key span:nth-child(2) { color: #edb88b; }
.diagnostic-key span:nth-child(3) { color: #87c3c0; }
@media (max-width: 780px) {
  .regional-layout, .event-layout { grid-template-columns: 1fr; }
  .cell-result, .event-evidence { border-left: 0; border-top: 1px solid var(--line); }
  .case-intro { padding-bottom: 17px; }
  .section-links { gap: 2px 12px; }
  .section-links a { font-size: 12px; }
  .case-section-header { flex-wrap: wrap; align-items: start; gap: 9px; }
  .radar-review img { height: 300px; }
}
@media (max-width: 430px) {
  .evidence-audit dl { display: block; }
  .evidence-audit dd { margin: 4px 0 13px; }
  .cell .value { font-size: 12px; }
}
