:root {
  color-scheme: light;
  --navy: #102f4c;
  --ink: #19374c;
  --muted: #4d6476;
  --mint: #b6d9d5;
  --mint-dark: #236860;
  --line: #d8e4e8;
  --light: #f1f6f7;
  --white: #fff;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--light);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; font-size: 1rem; line-height: 1.5; }
.frame { max-width: 1190px; width: calc(100% - 64px); margin-inline: auto; }
.mast { background: var(--white); border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 17px; }
.mast img { width: min(216px, 51vw); height: auto; display: block; }
.mast span { color: var(--muted); text-align: right; font-size: .9rem; }
.mast strong { color: var(--navy); font-weight: 650; }
.hero { margin-top: 30px; padding: 38px 42px; border-radius: 20px; background: var(--navy); color: white; display: flex; align-items: end; gap: 28px; justify-content: space-between; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.55rem); line-height: 1.05; letter-spacing: -.055em; max-width: 750px; font-weight: 730; }
.hero p { color: #d9e8ec; margin-top: 12px; }
label { font-size: .9rem; font-weight: 650; }
.month-control { flex: 0 0 210px; }
.month-control label { display: block; margin-bottom: 5px; color: #e0f0ef; }
select { appearance: none; font: inherit; cursor: pointer; min-height: 43px; border-radius: 8px; padding: 8px 37px 8px 12px; border: 1px solid #aabec8; color: var(--navy); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23102f4c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
.month-control select { width: 100%; }
:focus-visible { outline: 3px solid #247e75; outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--mint); }
.section { margin-top: 31px; }
.heading { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-bottom: 13px; }
h2 { font-size: clamp(1.34rem, 2.8vw, 1.8rem); line-height: 1.18; letter-spacing: -.03em; color: var(--navy); }
h3 { font-size: 1.14rem; line-height: 1.25; color: var(--navy); }
.period { background: #e0efee; color: #254e4c; border-radius: 20px; padding: 5px 12px; white-space: nowrap; font-size: .875rem; font-weight: 650; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.metric, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.metric { padding: 15px 14px 16px; border-top: 4px solid var(--mint); }
.metric-label { font-size: .915rem; color: var(--muted); font-weight: 650; }
.metric-value { color: var(--navy); display: block; font-size: clamp(1.5rem, 2.7vw, 2.12rem); line-height: 1.18; letter-spacing: -.045em; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.metric-context, .caption { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.metrics + .caption { margin-top: 9px; }
.panel { padding: 22px 24px; }
.panel h2 + .caption, .panel h3 + .caption, .heading h2 + .caption { margin-top: 5px; }
.trend-heading { align-items: flex-start; }
.trend-control { display: flex; align-items: center; gap: 8px; }
#trend-chart { margin-top: 19px; min-height: 185px; }
#trend-chart svg { display: block; width: 100%; height: 185px; overflow: visible; }
.chart-months { display: grid; gap: 2px; color: var(--muted); font-size: .82rem; text-align: center; margin-top: 5px; }
.chart-empty { min-height: 185px; display: grid; place-items: center; padding: 14px; color: var(--muted); background: var(--light); border-radius: 9px; }
details { margin-top: 15px; }
summary { cursor: pointer; color: var(--mint-dark); font-weight: 650; width: fit-content; font-size: .92rem; }
.table-scroll { margin-top: 12px; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: right; font-size: .9rem; }
th, td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr > :first-child { text-align: left; }
tbody tr[aria-current="true"] { background: #edf6f4; }
.columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.city-total { color: var(--navy); font-weight: 600; margin-top: 14px; }
.city-total strong { font-size: 1.25rem; }
.bars { list-style: none; padding: 0; margin: 13px 0 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; font-size: .925rem; }
.bars .count { font-weight: 650; font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; margin-top: 4px; height: 5px; border-radius: 5px; background: #ebf1f3; }
.bar-fill { display: block; height: 100%; background: #589089; border-radius: 5px; }
.location:nth-child(2) .bar-fill { background: #44708c; }
.after-panel { margin-top: 8px; }
.notes { margin: 9px 0 0; padding-left: 1.2rem; }
.notes:empty { display: none; }
.notes-empty { color: var(--muted); margin-top: 9px; }
.notes li + li { margin-top: 4px; }
.timeline { list-style: none; margin: 13px 0 0; padding: 0; }
.timeline > li { padding: 11px 0; border-top: 1px solid var(--line); }
.timeline h3 { font-size: .96rem; }
.timeline .notes { margin-top: 5px; }
.footer { margin: 29px 0 0; padding: 15px 0 25px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
@media (max-width: 930px) {
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .frame { width: calc(100% - 28px); }
  .hero { padding: 26px 20px; margin-top: 18px; align-items: stretch; flex-direction: column; gap: 18px; border-radius: 14px; }
  .month-control { flex: initial; max-width: 240px; }
  .mast-inner { gap: 10px; }
  .mast span { font-size: .82rem; }
  .mast strong { display: block; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .panel { padding: 17px; }
  .columns { grid-template-columns: 1fr; }
  .trend-heading { flex-wrap: wrap; }
  #trend-chart svg { height: 145px; }
  .chart-months { font-size: .76rem; }
}
