/* Weather tools share Living Monsoon's type, colour and accessibility rules. */
.weather-tools { padding-block: 24px 72px; }
.tools-intro { padding-block: 40px 72px; }
.tools-intro h1 { font-size: clamp(46px, 7.8vw, 100px); font-weight: 780; font-stretch: 82%; letter-spacing: -.04em; line-height: 1.02; margin: 0 0 36px; }
.tools-standfirst { max-width: 38rem; margin-left: auto; font-size: 22px; }
.tools-standfirst p { margin: 0 0 12px; }
.tools-note { max-width: 65ch; }
.tool-heading { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: end; padding-block: 24px 32px; }
.tool-heading h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.035em; font-stretch: 82%; margin: 0 0 14px; }
.tool-heading p { margin: 0; max-width: 50ch; }
.tool-views { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.weather-tools button, .weather-tools input, .weather-tools select { font: inherit; }
.weather-tools button, .weather-tools select, .weather-tools input[type=number] { min-height: 44px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--text); padding: 8px 12px; max-width: 100%; }
.weather-tools button { cursor: pointer; }
.weather-tools button:disabled { cursor: default; opacity: .5; }
.weather-tools button[aria-pressed=true], .weather-tools .tool-action { background: var(--peacock); border-color: var(--peacock); color: var(--card); }
.tool-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; padding: 24px; background: var(--rice-2); }
.tool-filters > label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; flex: 1 1 130px; }
.tool-filters input[type=number] { width: 110px; }
.tool-filters select { width: 100%; }
.tool-filters fieldset { padding: 0; margin: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; flex: 2 1 340px; }
.tool-filters legend { font-size: 15px; margin-bottom: 4px; }
.tool-filters fieldset label { display: flex; align-items: center; min-height: 44px; gap: 8px; }
.tool-filters input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--peacock); }
.tool-status { font-size: 22px; margin: 24px 0 8px; line-height: 1.35; }
.tool-status[data-state=error], .tool-status[data-state=unavailable] { border-left: 4px solid var(--magenta); padding-left: 16px; }
.tool-freshness { font-size: 15px; margin-bottom: 24px; overflow-wrap: anywhere; }
.tool-freshness p { margin: 4px 0; }
.tool-map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 24px; }
.tool-map-layout aside { min-width: 0; }
.tool-map-layout h2 { font-size: 24px; margin: 0; }
.tool-map-layout aside > p { font-size: 15px; margin-top: 8px; }
.cyclone-map { height: 490px; background: #e4eef0; z-index: 0; color: #162231; }
.cyclone-map-wide { height: 570px; }
.cyclone-map a { color: #125e70; }
.cyclone-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.cyclone-map .leaflet-control-attribution { font-size: 13px; }
.cyclone-map .leaflet-popup-content { font-family: var(--font-head); font-size: 15px; min-width: 180px; }
.weather-tools .cyclone-map a.leaflet-popup-close-button { width: 44px; height: 44px; font-size: 22px; }
.cyclone-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; padding-block: 16px; }
.cyclone-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cyclone-legend i { width: 14px; height: 14px; border: 1px solid #38444f; border-radius: 50%; }
.storm-list { max-height: 490px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.storm-list button { text-align: left; width: 100%; flex: none; }
.storm-list strong { display: block; }
.storm-list small { display: block; font-size: 14px; }
.observations { padding-block: 36px; }
.observations h2, .season-panel h2, .records-panel h2 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
.observations label { display: inline-flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.table-scroll { overflow: auto; max-height: 520px; }
.weather-tools table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.weather-tools th, .weather-tools td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.weather-tools th { background: var(--rice-2); font-weight: 650; }
.weather-tools caption { text-align: left; padding-bottom: 12px; }
.tool-method { padding: 24px; background: var(--rice-2); margin-top: 24px; }
.tool-method summary { cursor: pointer; min-height: 44px; font-size: 20px; font-weight: 600; }
.tool-method p { max-width: 75ch; }
.provider-status { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.provider-status p { flex: 1 1 180px; margin: 0; padding: 12px 16px; background: var(--rice-2); border-left: 4px solid var(--peacock); font-size: 15px; }
.provider-status p[data-state=unavailable], .provider-status p[data-state=error], .provider-status p[data-state=stale] { border-color: var(--magenta); }
.provider-status strong, .provider-status span { display: block; }
.map-below { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.season-panel, .records-panel { padding-block: 16px 32px; }
.season-panel svg { width: 100%; height: auto; display: block; color: var(--text); }
.season-panel text { fill: currentColor; font-family: var(--font-head); font-size: 15px; }
.season-panel [data-season-table] { overflow: auto; max-height: 320px; margin-top: 24px; }
.records-panel [data-records] { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.record { padding: 24px; background: var(--rice-2); }
.record h3 { font-size: 20px; margin: 0 0 8px; }
.record strong { font-size: 30px; font-weight: 600; }
.record p { margin: 8px 0 0; }
@media (max-width: 767px) {
    .provider-status { display: grid; grid-template-columns: 1fr 1fr; }
    .provider-status p { min-width: 0; padding: 10px; }
    .weather-tools { padding-top: 12px; }
    .tools-intro { padding-block: 28px 48px; }
    .tools-intro h1 { font-size: clamp(39px, 8.6vw, 62px); }
    .tools-standfirst { font-size: 19px; }
    .tool-heading, .tool-map-layout { grid-template-columns: 1fr; gap: 16px; }
    .tool-heading { padding-top: 16px; }
    .tool-filters { padding: 16px; gap: 12px; }
    .tool-filters > label { flex-basis: 120px; min-width: 0; }
    .cyclone-map, .cyclone-map-wide { height: 390px; }
    .storm-list { max-height: 260px; }
    .records-panel [data-records] { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .weather-tools *, .weather-tools *::before, .weather-tools *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Craft pass: home tools panel, storm strip, breadcrumb and "About this tool" card */
.tools-panel { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 0; border-top: 6px solid var(--zari); background: var(--card); }
.tools-panel h2 { margin: 0; font: 800 1.75rem/1.1 var(--font-head); font-stretch: 84%; }
.tools-panel h2 span { display: block; margin-top: 4px; color: var(--muted); font: 600 1rem/1.3 var(--font-head); font-stretch: 100%; }
.tools-panel ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tools-panel li a { display: grid; gap: 2px; min-height: 64px; padding: 12px 14px; background: var(--rice-2); color: var(--text); text-decoration: none; }
.tools-panel li a:is(:hover, :focus-visible) { background: var(--ink); color: var(--on-sky); }
.tools-panel li strong { font: 750 1.125rem/1.2 var(--font-head); }
.tools-panel li span { font-size: .9375rem; line-height: 1.4; opacity: .85; }

.storms { margin-top: 72px; }
.storm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.storm-tile { position: relative; display: block; min-height: 100%; overflow: hidden; background: var(--ink); color: var(--on-sky); text-decoration: none; }
.storm-tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.storm-tile:is(:hover, :focus-visible) img { transform: scale(1.04); }
.storm-tile figcaption { display: grid; gap: 2px; padding: 14px 14px 16px; }
.storm-tile strong { font: 800 1.375rem/1.1 var(--font-head); font-stretch: 84%; }
.storm-tile span { font-size: .9375rem; line-height: 1.4; opacity: .9; }
.storm-tile strong::after { content: " →"; color: var(--zari); }
@media (min-width: 48rem) { .storm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .storm-tile img { transition: none; } .storm-tile:is(:hover, :focus-visible) img { transform: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; font-size: .9375rem; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--rice-2); color: inherit; text-decoration: none; }
.crumbs a:is(:hover, :focus-visible) { background: var(--ink); color: var(--on-sky); }
.crumbs [aria-current] { background: var(--card); font-weight: 700; box-shadow: inset 0 0 0 2px var(--zari); }
.about { margin: 22px 0 28px; padding: 0 20px 4px; border: 1px solid var(--line); border-top: 6px solid var(--peacock); background: var(--card); }
.about summary { display: flex; align-items: center; min-height: 56px; cursor: pointer; font: 800 1.25rem/1 var(--font-head); font-stretch: 88%; }
.about p { margin: 0 0 12px; max-width: 52rem; }
.about-use b { color: var(--peacock); }
.about-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px 24px; margin: 4px 0 14px; }
.about-meta dt { color: var(--muted); font-size: .8125rem; font-weight: 700; }
.about-meta dd { margin: 2px 0 0; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; background: var(--rice-2); font-size: .875rem; font-weight: 650; }

/* Clothes-drying tool (/clothes-drying/): form, verdict card, hour strip */
.dry-form { display: grid; gap: 20px; padding: 24px; background: var(--rice-2); }
.dry-place { display: grid; gap: 6px; font-weight: 650; }
.dry-place span { font-weight: 450; color: var(--muted); }
.dry-place input { min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--text); font: 500 1.125rem/1.3 var(--font-head); width: 100%; }
.dry-load { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.dry-load legend { padding: 0; margin-bottom: 8px; font-weight: 650; }
.dry-load legend span { font-weight: 450; color: var(--muted); }
.dry-load label { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.dry-load label:has(input:checked) { border-color: var(--peacock); box-shadow: inset 0 0 0 2px var(--peacock); }
.dry-load input { width: 22px; height: 22px; accent-color: var(--peacock); flex: none; }
.dry-load span { display: grid; font-weight: 650; line-height: 1.25; }
.dry-load small { font-size: .875rem; font-weight: 450; color: var(--muted); }
.dry-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dry-actions .tool-action { min-width: 9rem; font-weight: 700; }
.dry-lang { margin-left: auto; display: inline-flex; }
.dry-lang button + button { border-left: 0; }

.dry-result { display: grid; gap: 20px; margin-block: 8px 24px; }
.dry-verdict { padding: 28px 28px 24px; background: var(--card); border: 1px solid var(--line); border-top: 8px solid var(--ink); box-shadow: inset 0 -2px 0 var(--zari); }
.dry-verdict[data-verdict=yes] { border-top-color: var(--peacock); }
.dry-verdict[data-verdict=maybe] { border-top-color: var(--zari); }
.dry-verdict[data-verdict=no] { border-top-color: var(--magenta); }
.dry-word { margin: 0 0 4px; font: 700 .9375rem/1.2 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dry-verdict[data-verdict=yes] .dry-word { color: var(--peacock); }
.dry-verdict[data-verdict=no] .dry-word { color: var(--magenta); }
.dry-verdict h2 { margin: 0 0 14px; font: 800 clamp(2rem, 5vw, 3.25rem)/1.05 var(--font-head); font-stretch: 84%; letter-spacing: -.02em; }
.dry-line { margin: 0 0 8px; font-size: 1.1875rem; max-width: 46rem; }
.dry-where { margin: 16px 0 0; font-size: .9375rem; color: var(--muted); }

.dry-strip { display: flex; gap: 4px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; }
.dry-strip li { flex: 1 0 3.6rem; display: grid; gap: 2px; overflow-wrap: anywhere; padding: 8px 4px 10px; text-align: center; background: var(--rice-2); border-bottom: 5px solid var(--line); font-size: .8125rem; line-height: 1.25; }
.dry-strip b { font: 700 .9375rem/1.2 var(--font-head); }
.dry-strip i { font-style: normal; color: var(--muted); min-height: 1.1em; }
.dry-strip li[data-status=dry] { border-bottom-color: var(--peacock); }
.dry-strip li[data-status=risky] { border-bottom-color: var(--zari); }
.dry-strip li[data-status=wet] { border-bottom-color: var(--magenta); background: color-mix(in srgb, var(--magenta) 10%, var(--rice-2)); }
.dry-strip li[data-status=night], .dry-strip li[data-status=unknown] { opacity: .6; }
.dry-strip li[data-window=true] { outline: 2px solid var(--ink); outline-offset: -2px; }
.dry-strip li.dry-day { flex: 0 0 auto; display: flex; align-items: flex-end; padding: 8px 10px 10px 6px; background: none; border-bottom: 5px solid transparent; font: 700 .875rem/1.2 var(--font-head); color: var(--muted); }
.dry-table summary, .about summary { cursor: pointer; list-style: none; }
.dry-table summary::-webkit-details-marker, .about summary::-webkit-details-marker { display: none; }
.dry-table summary { min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.dry-table summary::before, .about summary::before { content: "▸"; display: inline-block; width: 1em; color: var(--peacock); transition: transform .2s var(--ease); }
.dry-table[open] summary::before, .about[open] summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .dry-table summary::before, .about summary::before { transition: none; } }
.dry-result[lang=ta] .dry-strip li:not(.dry-day) { flex-basis: 5.2rem; }
@media (max-width: 767px) {
    .dry-form { padding: 16px; }
    .dry-verdict { padding: 20px 18px; }
    .dry-lang { margin-left: 0; }
}

/* Questions band: the two things people arrive with, answered by working tools */
.questions { position: relative; z-index: 2; margin-top: -78px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); }
.questions + .home { margin-top: 28px; }
.q-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 26px; background: var(--card); border-top: 6px solid var(--peacock); box-shadow: inset 0 2px 0 var(--zari); }
.q-card:last-child { border-top-color: var(--magenta); }
.q-card h2 { margin: 0; font: 800 clamp(1.75rem, 3.4vw, 2.5rem)/1.06 var(--font-head); font-stretch: 84%; letter-spacing: -.01em; text-wrap: balance; }
.q-card h2 [lang="ta"] { display: block; margin-top: 8px; color: var(--muted); font: 600 1.125rem/1.35 var(--font-head); font-stretch: 100%; letter-spacing: 0; }
.q-sub { margin: 0; font-size: 1.0625rem; }
.q-row { display: flex; gap: 8px; }
.q-row input { flex: 1; min-width: 0; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--rice); color: var(--text); font: 500 1.0625rem/1.3 var(--font-head); }
.q-row button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 0; background: var(--zari); color: var(--ink); font: 700 1.0625rem/1 var(--font-head); cursor: pointer; }
.q-row button:hover { background: #e8b73a; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.q-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--rice-2); color: var(--text); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.q-chips a:is(:hover, :focus-visible) { background: var(--ink); color: var(--on-sky); }
@media (max-width: 767px) { .q-card { padding: 22px 18px 20px; } .q-row { flex-direction: column; } .q-row button { width: 100%; } }

/* Header menu: the registry's live tools by section (dev/tools.json -> partials/tools-menu.hbs) */
.site-nav .nav-tools .nav-en::after { content: " ▾"; font-size: .8em; }
.site-nav .nav-tools [aria-expanded=true] .nav-en::after { content: " ▴"; }
.tools-menu { margin: 16px 0 4px; padding: 22px 24px 18px; display: grid; gap: 22px 28px; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); background: var(--card); color: var(--text); border-top: 6px solid var(--zari); text-shadow: none; }
.tools-menu h2 { margin: 0 0 6px; font: 800 1.1875rem/1.2 var(--font-head); font-stretch: 86%; }
.tools-menu h2 [lang="ta"] { display: block; margin-top: 2px; color: var(--muted); font: 500 .9375rem/1.35 var(--font-head); font-stretch: 100%; }
.tools-menu ul { display: grid; margin: 0; padding: 0; list-style: none; }
.tools-menu li a { display: block; min-height: 44px; padding: 9px 0; color: var(--text); font-weight: 650; line-height: 1.3; text-decoration: none; }
.tools-menu li a:is(:hover, :focus-visible) { color: var(--peacock); text-decoration: underline; }
.tools-menu li a [lang="ta"] { display: block; color: var(--muted); font-weight: 450; font-size: .9375rem; }
.soon-note { margin: 0; color: var(--muted); font-size: .9375rem; }
.tools-menu .panel-all { grid-column: 1 / -1; display: inline-flex; align-items: center; min-height: 44px; color: var(--peacock); font: 700 1.0625rem/1 var(--font-head); }

/* Home panel: the same registry, as a compact index beside the lead story */
.tools-panel section { display: grid; gap: 6px; }
.tools-panel h3 { margin: 0; font: 800 1.0625rem/1.2 var(--font-head); font-stretch: 86%; }
.tools-panel h3 [lang="ta"] { margin-left: 6px; color: var(--muted); font: 500 .9375rem var(--font-head); font-stretch: 100%; }
.tools-panel li a { min-height: 56px; padding: 9px 12px; }
.tools-panel .panel-all { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: auto; color: var(--peacock); font: 700 1.0625rem/1 var(--font-head); }

/* /tools/ directory: sections of tool cards, live ones linked, the rest honestly "on the way" */
.tool-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 28px 56px; padding-block: 44px; border-top: 2px solid var(--zari); }
.tool-section > header h2 { margin: 0; font: 800 clamp(1.9rem, 3.6vw, 2.6rem)/1.05 var(--font-head); font-stretch: 84%; text-wrap: balance; }
.tool-section > header h2 [lang="ta"] { display: block; margin-top: 6px; color: var(--muted); font: 600 1.0625rem/1.35 var(--font-head); font-stretch: 100%; }
.tool-section > header p { margin: 10px 0 0; max-width: 34ch; }
.tool-section > header .tool-count { color: var(--muted); font-size: .9375rem; font-weight: 700; }
.tool-cards { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); align-items: stretch; }
.tool-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--peacock); color: var(--text); text-decoration: none; }
a.tool-card:is(:hover, :focus-visible) { border-top-color: var(--magenta); box-shadow: inset 0 0 0 2px var(--magenta); }
.tool-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tool-card-body { display: grid; align-content: start; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.tool-card h3 { margin: 0; font: 750 1.3125rem/1.15 var(--font-head); font-stretch: 88%; }
.tool-card h3 [lang="ta"] { display: block; margin-top: 4px; color: var(--muted); font: 500 1rem/1.4 var(--font-head); font-stretch: 100%; }
.tool-card p { margin: 0; }
.tool-open { margin-top: auto; color: var(--peacock); font-weight: 700; }
.tool-card.is-soon { background: transparent; border-style: dashed; border-top-style: dashed; border-top-color: var(--line); }
.soon-tag { justify-self: start; margin-top: auto; padding: 4px 10px; background: var(--rice-2); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 900px) { .tool-section { grid-template-columns: 1fr; padding-block: 32px; } .tool-section > header p { max-width: none; } }

/* Home: the lead story matches the tools panel's height, its cover taking up the slack */
@media (min-width: 64rem) {
    .home .card-lead .card-img { flex: 1 1 0; min-height: 15rem; aspect-ratio: auto; }
}

/* District tables (/districts/*): sticky names, number first, class bar underneath */
.tool-views .view-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 650; text-decoration: none; }
.tool-views .view-link[aria-current] { background: var(--peacock); border-color: var(--peacock); color: var(--card); }
.tool-filters input[type=search] { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 0; background: var(--card); color: var(--text); font: inherit; width: 100%; }
.district-scroll { max-height: 72vh; margin-top: 8px; border: 1px solid var(--line); }
.district-table { border-collapse: separate; border-spacing: 0; }
.district-table thead th { position: sticky; top: 0; z-index: 2; background: var(--rice-2); font-size: .875rem; }
.district-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--card); min-width: 9.5rem; border-right: 1px solid var(--line); }
.district-table thead .corner { left: 0; z-index: 3; }
.district-table .dname { display: block; font-weight: 700; }
.district-table .dta { display: block; color: var(--muted); font-size: .875rem; font-weight: 450; }
.district-table td.cell { min-width: 4.6rem; box-shadow: inset 0 -4px 0 var(--bar, transparent); }
.district-table td.cell b { display: block; font-weight: 700; }
.district-table td.cell small, .district-table td.cell em { display: block; color: var(--muted); font-size: .8125rem; font-style: normal; }
.district-table td.cell em { color: var(--magenta); font-weight: 700; }
.district-table td.total, .district-table td.when { font-weight: 700; background: var(--rice-2); }
.district-table .r1 { --bar: var(--r-1); } .district-table .r2 { --bar: var(--r-2); } .district-table .r3 { --bar: var(--r-3); }
.district-table .r4 { --bar: var(--r-4); } .district-table .r5 { --bar: var(--r-5); } .district-table .r6 { --bar: var(--r-6); }
.district-table .heat-hot { --bar: var(--zari); } .district-table .heat-heatwave { --bar: var(--magenta); }
.view-hourly td.hr, .view-hourly th.hr { min-width: 2.9rem; padding: 8px 6px; text-align: center; font-size: .8125rem; }
.view-hourly .newday { border-left: 2px solid var(--ink); }
.district-legend { font-size: .9375rem; margin: 12px 0 24px; max-width: 70ch; }
@media (max-width: 767px) { .district-table tbody th { min-width: 7.5rem; } .district-scroll { max-height: 64vh; } }
.weather-tools[data-districts] .tool-heading { padding-block: 12px 20px; }
.weather-tools[data-districts] .tool-filters { padding: 14px 16px; gap: 12px; }
.weather-tools[data-districts] .tool-filters > label { flex: 1 1 11rem; }
.district-table .lean-wetter { --bar: var(--peacock); } .district-table .lean-drier { --bar: var(--zari); }

/* Rivers & Reservoirs: a card per place with a small flow chart (aria-hidden; the table holds the numbers) */
.river-cards { display: grid; gap: 16px; margin: 8px 0 28px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.river-card { padding: 16px 18px 14px; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--peacock); box-shadow: inset 0 2px 0 var(--zari); }
.river-card h2 { margin: 0; font: 800 1.375rem/1.15 var(--font-head); font-stretch: 86%; }
.river-card .rta { display: block; color: var(--muted); font: 500 .9375rem/1.4 var(--font-head); font-stretch: 100%; }
.river-card p { margin: 4px 0 0; }
.river-name { color: var(--muted); font-size: .9375rem; }
.river-now { font: 750 1.5rem/1.2 var(--font-head); }
.river-trend { font-weight: 700; }
.river-trend.trend-rising { color: var(--magenta); }
.river-chart { display: block; width: 100%; height: auto; margin-top: 10px; color: var(--peacock); }
.river-chart .band { fill: currentColor; opacity: .18; }
.river-chart .median { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; }
.river-chart .today { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 3; }
.river-scale, .river-peak { font-size: .875rem; color: var(--muted); }

/* Studies: cyclones and climate */
.study-now { margin: 8px 0 32px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--magenta); box-shadow: inset 0 2px 0 var(--zari); }
.study-now h2, .study-groups h2, .study-seasons h2 { margin: 0 0 10px; font: 800 clamp(1.5rem, 3vw, 2rem)/1.1 var(--font-head); font-stretch: 86%; }
.study-now p { margin: 6px 0 0; max-width: 62ch; }
.study-lead { font: 700 1.25rem/1.35 var(--font-head); }
.study-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); margin-bottom: 32px; }
.study-table caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.weather-tools .study-table td.names { white-space: normal; min-width: 14rem; }
.bar-cell b { display: block; }
.bar-cell .bar { display: block; height: 6px; margin-top: 4px; width: var(--w); background: var(--peacock); }
.bar-cell .bar.near { background: var(--magenta); }
.year-strip { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin: 8px 0 4px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.year-strip .yr { flex: 1; height: var(--h); min-height: 2px; background: var(--muted); opacity: .55; }
.year-strip .enso-la-nina { background: var(--peacock); opacity: 1; }
.year-strip .enso-el-nino { background: var(--magenta); opacity: 1; }
.study-h { margin: 28px 0 8px; font: 800 1.5rem/1.15 var(--font-head); font-stretch: 86%; }
.year-strip.warmth .band-warm { background: var(--magenta); opacity: 1; }
.year-strip.warmth .band-cool { background: var(--peacock); opacity: 1; }
.day-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
