/* PathogenWatch district view. Maplore paper and type, few words, large.
   One scale everywhere: highest in n years / higher / about usual / lower.
   Blue for "more than usual" (never amber: amber is Tiddi's locusts). */

body.ov { background: var(--plane); }
.ov-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 56px); border-bottom: 1px dashed var(--border); }
.ov-name { font-family: var(--serif); font-style: italic; font-size: 22px; }
.ov-nav { font-size: 14px; color: var(--muted); }
.ov-nav a { color: var(--ink); }

.ov-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }

.ov-hero { padding: 44px 0 28px; }
.ov-hero h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; margin: 0; letter-spacing: -.01em; }
.ov-lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 44em; margin: 14px 0 26px; }
/* Place picker: segmented control (or one pick button), then the state. */
.place { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.place [hidden] { display: none; }
.where-state { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }

/* District chooser. */
.chooser { width: min(560px, calc(100vw - 32px)); }
.chooser input { flex: 1; font: inherit; font-size: 18px; border: 0; outline: 0; padding: 4px 0; background: transparent; color: var(--ink); }
.chooser input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
#results { list-style: none; margin: 0; padding: 6px; }
#results li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; }
#results li[aria-selected="true"] { background: #f1f0ec; }
#results .s { color: var(--muted); font-size: 14px; }
#results .none { color: var(--muted); cursor: default; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.dot.l-none { background: transparent; border: 1.5px solid #c9c7c0; }

.ov-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--border); background: #fff; }
:root[data-theme="dark"] .ov-card { background: rgb(255 255 255 / .03); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ov-card { background: rgb(255 255 255 / .03); } }
.ov-answer { padding: 30px 32px; border-right: 1px dashed var(--border); }
.ov-where { margin: 0; font-size: 16px; font-weight: 600; }
.ov-where span { font-weight: 400; color: var(--muted); }
.ov-level { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.05; }
.ov-level .sw { width: 22px; height: 22px; flex: 0 0 22px; }
.ov-say { font-size: 18px; line-height: 1.5; margin: 0 0 22px; color: var(--ink); }
.ov-facts { margin: 0; display: grid; gap: 16px; }
.ov-facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ov-facts dd { margin: 4px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }

.ov-weeks { padding: 30px 32px; }
.ov-h { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; align-items: end; }
#weeks li { display: grid; grid-template-rows: auto 120px auto auto; gap: 6px; text-align: center; font-size: 13px; }
#weeks .d { color: var(--muted); white-space: nowrap; }
#weeks .b { align-self: end; width: 100%; background: var(--c); }
#weeks .t { font-weight: 600; }
#weeks .g { font-size: 11px; color: var(--muted); min-height: 1em; }
#weeks li.now .d, #weeks li.now .t { color: var(--ink); }
#weeks li.now .b { outline: 2px solid var(--ink); outline-offset: 2px; }
#weeks li.ahead .b { background: repeating-linear-gradient(135deg, var(--c) 0 6px, transparent 6px 10px); border: 1px solid var(--c); }
#weeks li.l-top .b { height: 120px; } #weeks li.l-high .b { height: 88px; }
#weeks li.l-usual .b { height: 56px; } #weeks li.l-low .b { height: 26px; } #weeks li.l-none .b { height: 4px; }
.ov-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.ov-key i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.ov-key .l-ahead { background: repeating-linear-gradient(135deg, var(--q4) 0 3px, transparent 3px 5px); border: 1px solid var(--q4); }

/* the scale */
.l-top  { --c: var(--q7); } .sw.l-top  { background: var(--q7); }
.l-high { --c: var(--q4); } .sw.l-high { background: var(--q4); }
.l-usual{ --c: #cfcdc5;   } .sw.l-usual{ background: #cfcdc5; }
.l-low  { --c: var(--q1); } .sw.l-low  { background: var(--q1); }
.l-none { --c: var(--grid); } .sw.l-none { background: transparent; border: 1px dashed var(--muted); }

.ov-state { margin-top: 36px; }
#others { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; }
#others li { border-bottom: 1px dashed var(--border); }
#others button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 10px 2px; font-size: 16px; }
#others button:hover .n { text-decoration: underline; text-underline-offset: 3px; }
#others .sw { width: 14px; height: 14px; }
#others .w { color: var(--muted); font-size: 14px; }
#others li.me .n { font-weight: 700; }

.ov-notes { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px dashed var(--border); padding-top: 26px; }
.ov-notes p:not(.ov-h) { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

@media (max-width: 900px) {
  .ov-card, .ov-notes { grid-template-columns: 1fr; }
  .ov-answer { border-right: 0; border-bottom: 1px dashed var(--border); }
  .ov-nav { width: 100%; }
}

