:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142b25;
  background: #eef3ef;
  --ink: #142b25;
  --muted: #4e655c;
  --paper: #fff;
  --rule: #d7e4db;
  --green: #236c54;
  --dark: #10352c;
  --mint: #e4f1e8;
  --gold: #805004;
  --pale-gold: #fff1d4;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,h1,h2,h3,p { margin: 0; }
button,select,input { font: inherit; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid #116747; outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: .5rem; z-index: 5; transform: translateY(-150%); padding: .75rem; background: white; }
.skip:focus { transform: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 13.8rem;
  background: #102e27; color: #e9f5ed; padding: 1.15rem .8rem;
  display: flex; flex-direction: column; z-index: 3;
}
.brand { display: flex; gap: .64rem; align-items: center; padding: .25rem .42rem .95rem; text-decoration: none; color: #d2e6d9; font-size: .81rem; line-height: 1.25; }
.brand strong { display: block; font-size: 1rem; color: white; }
.brand-mark { inline-size: 2.15rem; block-size: 2.15rem; display: grid; flex: none; place-items: center; background: #b9ebcc; color: #143d2d; border-radius: .65rem; font-size: 1.42rem; font-weight: 750; }
.sidebar nav { display: grid; gap: .32rem; padding-top: .75rem; border-top: 1px solid #36564b; }
.sidebar nav a { display: flex; align-items: center; gap: .65rem; padding: .65rem .6rem; border-radius: .56rem; font-size: .87rem; color: #dfefe5; text-decoration: none; }
.sidebar nav a span { width: 1rem; flex: none; color: #a8dfbd; text-align: center; }
.sidebar nav a:hover,.sidebar nav a[aria-current] { background: #285346; color: white; }
.sidebar :focus-visible, .hero a:focus-visible { outline-color: #b9ebcc; }
.side-foot { margin-top: auto; padding: .55rem .55rem .2rem; color: #c9e6d5; font-size: .8rem; }
.status-dot { display: inline-block; width: .48rem; height: .48rem; margin-right: .34rem; border-radius: 50%; background: #79cea0; }
main { margin-left: 13.8rem; }
.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.top { min-height: 3.65rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 650; }
button { color: var(--ink); cursor: pointer; }
.top button,.pagination button {
  padding: .48rem .72rem; border: 1px solid #b5cbbd; border-radius: .5rem; background: var(--paper);
  font-size: .84rem; font-weight: 650; min-height: 2.35rem;
}
.top button:hover,.pagination button:hover { background: var(--mint); }
button:disabled { cursor: default; opacity: .48; }
.hero { display: grid; position: relative; isolation: isolate; grid-template-columns: 1fr 1.06fr; border-radius: 1.35rem; overflow: hidden; min-height: 17rem; background: var(--dark); color: #fff9ed; }
.hero-copy { z-index: 1; align-self: center; padding: 1.55rem clamp(1.2rem,4vw,3.1rem); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.3rem,4vw,3.6rem); font-weight: 650; letter-spacing: -.045em; line-height: .99; }
.hero p { max-width: 25rem; margin-top: .8rem; color: #dfeee5; }
.hero a { display: inline-flex; align-items: center; gap: .56rem; margin-top: .95rem; color: #143a2b; background: #b9ebcc; text-decoration: none; padding: .5rem .76rem; border-radius: .45rem; font-size: .85rem; font-weight: 740; }
.hero a:hover { background: #dcf8e6; }
.hero img { position: absolute; inset: 0 0 0 auto; width: 55%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--dark) 45%,rgba(16,53,44,.63) 49%,transparent 59%); pointer-events: none; }
.state { padding: 1.15rem; margin-block: 1rem; border: 1px solid var(--rule); background: var(--paper); border-radius: .9rem; }
.state h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.state p { margin-top: .25rem; color: var(--muted); }
.state a { display: inline-block; margin-top: .65rem; padding: .45rem .7rem; border-radius: .45rem; background: var(--mint); color: var(--dark); font-weight: 700; }
section[id] { scroll-margin-top: 1rem; }
.summary,.panel { margin-top: 1.2rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: .78rem; }
.section-head h2 { font-size: clamp(1.22rem,2.2vw,1.75rem); letter-spacing: -.045em; line-height: 1.2; }
.section-head p,.note { color: var(--muted); font-size: .87rem; margin-top: .28rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters .field { display: grid; gap: .18rem; }
.filters label { color: var(--muted); font-size: .79rem; font-weight: 680; }
.filters select,.filters input { font-size: .89rem; }
.source-term { display: block; color: var(--muted); font-size: .75rem; }
select,input[type="search"] { min-width: 9.5rem; max-width: 100%; min-height: 2.5rem; border-radius: .5rem; border: 1px solid #a9c0b0; background: white; color: var(--ink); padding: .4rem .58rem; }
select { cursor: pointer; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.metric { padding: .9rem .95rem; min-height: 7.15rem; border: 1px solid var(--rule); border-radius: .85rem; background: var(--paper); }
.metric.primary { background: var(--dark); color: white; border-color: var(--dark); }
.metric h3 { color: var(--muted); font-size: .82rem; font-weight: 690; }
.metric.primary h3,.metric.primary p:last-child { color: #c8e4d4; }
.metric .value { font-size: clamp(1.45rem,3.1vw,2.4rem); line-height: 1.11; letter-spacing: -.065em; font-weight: 740; margin-top: .33rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric .label-value { font-size: clamp(1.13rem,2vw,1.55rem); letter-spacing: -.04em; }
.metric p:last-child { color: var(--muted); font-size: .78rem; margin-top: .35rem; }
.insight { display: flex; align-items: start; gap: .7rem; padding: .72rem .9rem; margin-top: .65rem; color: #654004; background: var(--pale-gold); border: 1px solid #ebd4a7; border-radius: .7rem; font-size: .875rem; }
.insight[data-complete="true"] { background: var(--mint); color: #214e3a; border-color: #c3e0cc; }
.insight b { display: block; }
.signal { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 1.14rem; height: 1.14rem; flex: none; margin-top: .1rem; font-size: .72rem; font-weight: 750; }
.panel { border: 1px solid var(--rule); border-radius: 1rem; padding: clamp(.85rem,2.2vw,1.35rem); background: var(--paper); }
.segments { display: flex; gap: .18rem; border: 1px solid var(--rule); background: #f2f6f3; border-radius: .59rem; margin: 0; padding: .22rem; }
.segments label { position: relative; cursor: pointer; }
.segments input { position: absolute; opacity: 0; }
.segments span { display: block; border-radius: .38rem; padding: .4rem .65rem; font-size: .84rem; color: var(--muted); }
.segments input:checked + span { background: var(--dark); color: white; }
.segments input:focus-visible + span { outline: 3px solid #116747; outline-offset: 2px; }
.legend { display: flex; gap: .35rem 1.1rem; flex-wrap: wrap; color: var(--muted); margin-block: .45rem .63rem; font-size: .8rem; }
.legend span { display: flex; align-items: center; gap: .35rem; }
.legend i { width: .8rem; height: .8rem; border-radius: .2rem; background: var(--green); }
.legend .partial-key,.chart-button[data-partial="true"] .bar { background: repeating-linear-gradient(135deg,#935b15 0 4px,#d6a551 4px 8px); }
.legend .empty-key { background: #eef2ef; border: 1px dashed #80968a; }
.scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.chart-scroll,.matrix-scroll { padding: .23rem; }
.chart { display: grid; grid-template-columns: repeat(var(--columns),minmax(3.3rem,1fr)); gap: .17rem; min-width: calc(var(--columns) * 3.3rem); }
.chart-button { display: grid; grid-template-rows: 1fr auto; align-items: end; border: 1px solid transparent; border-radius: .5rem; background: transparent; font-size: .77rem; padding: .17rem .1rem .27rem; min-height: 11rem; color: var(--ink); }
.chart-button:hover,.chart-button[aria-pressed="true"] { background: #e8f4ec; }
.chart-button[aria-pressed="true"] { border-color: #82b99a; }
.chart-button[data-partial="true"][aria-pressed="true"] { background: var(--pale-gold); border-color: #d4a85e; }
.bar-space { height: 8.5rem; display: flex; flex-direction: column; align-items: center; justify-content: end; }
.bar-value { font-size: .69rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { display: block; height: max(3px,var(--height)); width: 58%; max-width: 2.2rem; border-radius: .32rem .32rem .1rem .1rem; background: var(--green); transform-origin: bottom; animation: rise .42s cubic-bezier(.2,.75,.3,1) both; animation-delay: calc(var(--order) * 16ms); }
@keyframes rise { from { transform: scaleY(.04); opacity: .35; } }
.month-detail { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .55rem; padding: .72rem .8rem; background: #eff6f1; border-radius: .58rem; font-size: .86rem; color: #375548; }
.month-detail a { font-weight: 700; color: #145842; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .88rem; }
th,td { padding: .55rem .5rem; border-bottom: 1px solid #e2ebe5; vertical-align: middle; }
thead th { color: var(--muted); font-size: .79rem; }
.diagnoses td:nth-child(n+2),.diagnoses th:nth-child(n+2) { text-align: right; }
.diagnoses th:last-child { width: 38%; }
.diagnoses td { font-variant-numeric: tabular-nums; }
.share { display: flex; align-items: center; justify-content: end; gap: .45rem; }
.share-track { width: min(6rem,53%); height: .32rem; background: #e7efe9; display: inline-block; border-radius: 99px; overflow: hidden; }
.share-track span { width: var(--share); height: 100%; display: block; background: var(--green); border-radius: inherit; }
.pagination { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .65rem; color: var(--muted); font-size: .83rem; }
.pagination div { display: flex; gap: .35rem; }
.matrix { width: max-content; min-width: 100%; }
.matrix th,.matrix td { text-align: center; padding: .18rem .16rem; border: 0; min-width: 3rem; }
.matrix th:first-child { text-align: left; position: sticky; left: 0; min-width: 7rem; background: white; z-index: 1; }
.matrix td button { min-height: 1.85rem; width: 100%; min-width: 2.7rem; border: 1px solid #bddac7; border-radius: .32rem; background: #e1f1e6; color: #1a5139; font-size: .72rem; font-weight: 690; font-variant-numeric: tabular-nums; }
.matrix td button[data-empty="true"] { border-color: #cad5ce; border-style: dashed; background: #f6f8f6; color: #536a5d; }
.matrix td button[aria-pressed="true"] { outline: 2px solid #176348; outline-offset: -1px; }
.matrix td button:hover { filter: brightness(.93); }
.note { margin-top: .65rem; }
.sources details { border-top: 1px solid var(--rule); padding: .65rem 0; }
.sources summary { font-weight: 700; cursor: pointer; }
.sources details p,.sources details ul { margin-top: .45rem; color: var(--muted); font-size: .87rem; }
.sources ul { padding-left: 1.15rem; }
.sources li { margin-block: .2rem; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding-block: 1.05rem 1.5rem; color: var(--muted); font-size: .8rem; }
@media (max-width: 64rem) {
  .sidebar { width: 11.4rem; }
  .sidebar nav a { font-size: .78rem; }
  main { margin-left: 11.4rem; }
  .shell { width: calc(100% - 1.6rem); }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 48rem) {
  .sidebar { position: static; width: auto; padding: .55rem .7rem .42rem; }
  .sidebar nav { display: flex; overflow-x: auto; padding-top: .28rem; white-space: nowrap; }
  .sidebar nav a { padding: .45rem; }
  .brand { padding-bottom: .45rem; }
  .side-foot { display: none; }
  main { margin-left: 0; }
  .top { min-height: 2.9rem; }
}
@media (max-width: 34rem) {
  .shell { width: calc(100% - 1rem); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 1.15rem; }
  .hero h1 { font-size: clamp(2.2rem,9.1vw,3.1rem); }
  .hero img { position: static; width: 100%; height: 10rem; object-position: center 43%; }
  .hero::after { display: none; }
  .filters { width: 100%; }
  .filters .field { min-width: 0; flex: 1 1 45%; }
  select,input[type="search"] { min-width: 0; width: 100%; }
  .metric { padding: .68rem; }
  .diagnoses th:last-child { width: 30%; }
  .share-track { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar,.top button,.hero a,.filters,.segments,.pagination,.legend { display: none; }
  main { margin: 0; }
  .shell { width: 100%; }
  .hero { min-height: 11rem; print-color-adjust: exact; }
  .panel { break-inside: avoid; }
}

.top-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .35rem; }
