.sheet { max-width: 980px; margin: 0 auto; padding: 8px 8px 48px; }
.sheet h1 { font-family: Palatino, Georgia, serif; font-size: clamp(32px, 5vw, 48px); margin: 0 0 8px; }
.sheet h2 { font-family: Palatino, Georgia, serif; margin: 22px 0 8px; }
.dir-block { margin: 18px 0 8px; }
.cluster-stage { grid-template-columns: repeat(3, 1fr); }
.lede, .note { color: #4a5d6e; max-width: 42rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.tile { display: block; background: #fffdf8; color: #102033; border: 1px solid #c9a227; border-radius: 10px; padding: 14px 16px; text-decoration: none; }
.tile:hover { outline: 2px solid #c9a227; text-decoration: none; }
.tile .k, .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #0e5c68; font-weight: 700; }
.tile strong { display: block; font-family: Palatino, Georgia, serif; font-size: 22px; margin: 4px 0; }
.tile span, .muted { color: #4a5d6e; font-size: 14px; }
table.fig { width: 100%; border-collapse: collapse; background: #fffdf8; margin-top: 12px; }
table.fig th, table.fig td { border-bottom: 1px solid #d4c8b4; padding: 8px 10px; text-align: left; vertical-align: top; }
table.fig th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #4a5d6e; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.steps a { border: 1px solid #d4c8b4; border-radius: 999px; padding: 6px 10px; color: #102033; text-decoration: none; }
.steps a[aria-current="step"] { background: #041018; color: #efe6d6; }
#map-themes { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 500; }
.map-themes a[href*="/reservoirs"] { --chip: #38bdf8; }
.map-themes a[href$="/stage"] { --chip: #bbf7d0; }
.map-themes a[href$="/category"] { --chip: #f87171; }
.map-themes a[href$="/irrigation"] { --chip: #65a30d; }
.map-themes a[href$="/division"] { --chip: #c084fc; }
.map-key .dash { width: 16px; height: 0; border: 0; border-top: 2px dashed #eab308; background: transparent; }
.leaflet-marker-icon.dam-icon { background: #fff !important; border: 1px solid #666 !important; border-radius: 1px; }
#hud { overflow: auto; }
#hud dl.src { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin: 8px 0; }
#hud dl.src dt { color: #9ec9d8; font-size: 11px; }
#hud dl.src dd { margin: 0; text-align: right; color: #fffdf8; }
#hud h2 { color: #fffdf8; }
.map-tip span { color: #4a5d6e; display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.float-card dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.float-card dd { margin: 0; text-align: right; }
.map-key .swatch { display: inline-flex; align-items: center; gap: 6px; margin: 3px 8px 3px 0; font-size: 12px; }
.map-key i { width: 12px; height: 12px; display: inline-block; border: 1px solid rgba(0,0,0,.3); }
@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .mainnav { display: none; }
  .mainnav.open { display: block; position: absolute; left: 0; right: 0; top: 72px; background: #fffdf8; z-index: 40; padding: 8px 16px 16px; border-bottom: 1px solid #d4c8b4; }
}

/* V6 mobile: constrain body-level evidence sections to the viewport while preserving their max-widths. */
body > section { width: 100%; min-width: 0; box-sizing: border-box; }

/* V6 mobile: let the rainfall cards shrink with the viewport and keep wide tables locally scrollable. */
#mh-rainfall-2022 > div[style*='grid-template-columns'] { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important; }
#mh-rainfall-2022 > div[style*='grid-template-columns'] > article { min-width: 0; }
#mh-rainfall-2022 table { display: block; max-width: 100%; overflow-x: auto; }
