/* The overview (/): an atlas view (site.css .ui-atlas). Layout and page detail only: no token is redefined and no
 * shared component is restyled. The map is the figure; the margin holds what the site has, the flood section (which
 * leads when products are in effect and moves down as a dated record when the retrieval is old), the reservoir table,
 * the key and the sources. */
/* the figure stays in view while the margin scrolls (site.css's later .ui-map { position: relative } would undo it) */
.hm-canvas { position: absolute; inset: 0; }
.hm-mapnote { position: absolute; top: 12px; left: 12px; z-index: 3; max-width: calc(100% - 80px); margin: 0; padding: 6px 10px; background: var(--surface);
  border: 1px solid var(--ink-2); border-left: 3px solid var(--ink); font: 400 var(--t-s)/1.4 var(--sans); color: var(--ink-2); }
.hm-mapnote b { color: var(--ink); font-weight: 600; }

.hm-margin > h1 { margin-top: 2px; }
.hm-lede { margin: 12px 0 0; font: 400 19px/1.5 var(--serif); color: var(--ink-2); }
.hm-margin .ui-msec > p { font: 400 var(--t-ui)/1.55 var(--sans); color: var(--ink-2); }
.hm-margin .ui-msec > p.ui-meta { font-size: var(--t-s); color: var(--ink-3); }
.hm-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.hm-small { margin: 0 0 8px; font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-2); }

/* the flood section: leading (current, products in effect) or a dated record */
.hm-flood.hm-lead { border-top: 1px solid var(--ink); }
.hm-flood .ui-meta { margin: 0 0 10px; }
.hm-chips { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; margin-left: 2px; }
.hm-count { margin: 0 0 6px; font: 400 var(--t-ui)/1.5 var(--sans); color: var(--ink-2); }
.hm-count b { color: var(--ink); font-weight: 600; }
.hm-plist { margin-top: 10px; border-top: 1px solid var(--rule); }
.hm-plist .ui-row { padding: 8px 0; }
.hm-plist .kind { margin-bottom: 1px; }
.hm-more { margin: 8px 0 0; font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-3); }
.hm-flood .hm-nopr { margin: 12px 0 0; font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-2); }
.hm-flood .hm-warn { margin: 10px 0 0; font-size: var(--t-s); }
.hm-flood .ui-notice.dated, .hm-flood .ui-notice.bad { margin: 0 0 12px; font-size: var(--t-s); }
.hm-show { margin-top: 10px; }

/* the basin records by evidence level */
.hm-lv { margin-top: 12px; }
.hm-lv-bar { display: flex; height: 10px; margin: 0 0 10px; box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.2); }
.hm-lv-bar i { display: block; min-width: 3px; }
.hm-lv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.hm-lv-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.hm-lv-n { font: 600 var(--t-ui)/1.3 var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.hm-water .ui-meta { margin-top: 10px; }

/* investigations */
.hm-inv-list { border-top: 1px solid var(--rule); }
.hm-inv-list .ui-row { padding: 9px 0; }

/* the State Water Project storage table (concept A's plate 1) */
.hm-store-t { font-size: var(--t-s); }
.hm-store-t th, .hm-store-t td { padding: 5px 8px 5px 0; }
.hm-store-t thead th { font-size: var(--t-s); }
.hm-store-t tr.hm-div th { padding-top: 12px; border-bottom: 1px solid var(--rule-2); font: 600 var(--t-xs)/1.2 var(--cond); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.hm-store-t tbody tr[data-id] { cursor: default; }
.hm-store-t tbody tr.hot td { background: var(--paper-3); }
.hm-store-t .hm-mx { color: var(--ink-3); }
.hm-store-t .hm-d, .hm-store-t .hm-un { color: var(--ink-3); }
.hm-bar { width: 24%; padding-right: 0 !important; }
.hm-bar i { position: relative; display: block; height: 8px; border: 1px solid var(--ink-3); }
.hm-bar b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); }

/* the key */
.hm-cap { margin: 0 0 12px; }
.hm-keysec .ui-key { row-gap: 8px; }
.hm-ksw { display: flex; align-items: center; justify-content: center; width: 34px; }
.hm-ksw .kind i { width: 14px; height: 14px; }
.hm-ksw .cat-i { width: 16px; height: 16px; }
.hm-pt { display: block; border-radius: 50%; }
.hm-pt.below { width: 7px; height: 7px; background: #3d4856; box-shadow: 0 0 0 1px #fff; }
.hm-pt.undef { width: 8px; height: 8px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.2px #3d4856; }
.hm-pt.off { width: 5px; height: 5px; background: #a3acb5; }

/* sources */
.hm-src { margin: 0; padding-left: 18px; font: 400 var(--t-s)/1.5 var(--sans); color: var(--ink-2); }
.hm-src li { margin-bottom: 6px; }
.hm-sources details.ui-more { margin-top: 12px; }
.hm-sources code { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .hm-mapnote { max-width: calc(100% - 64px); }
}
@media print {
  .hm-show, .hm-links .ui-btn { display: none !important; }
  .ui-atlas-map.hm-fig { position: relative; height: 640px; }
}
