@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-400.ttf');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-600.ttf');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-700.ttf');
  font-weight: 700;
  font-display: swap;
}
:root {
  --canvas: #f8fafc;
  --paper: #fff;
  --ink: #0f172a;
  --muted: #52616f;
  --green: #16694f;
  --line: #dfe6e8;
  --soft: #edf4f1;
  color: var(--ink);
  background: var(--canvas);
  font:
    15px/1.5 'DM Sans',
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body,
p,
h1,
h2,
h3 {
  margin: 0;
}
.wrap {
  width: min(1100px, calc(100% - 80px));
  margin-inline: auto;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
select {
  font-size: 13px;
  border: 1px solid var(--line);
  background: white;
  padding: 9px 12px;
  border-radius: 4px;
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
:focus-visible {
  outline: 3px solid #278060;
  outline-offset: 3px;
}
.strip {
  height: 5px;
  background: linear-gradient(
    to right,
    #10b981 0 16.67%,
    #a3e635 16.67% 33.33%,
    #f59e0b 33.33% 50%,
    #ef4444 50% 66.67%,
    #8b5cf6 66.67% 83.33%,
    #6366f1 83.33%
  );
}
header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
}
.brand img {
  width: 86px;
  height: 54px;
  object-fit: contain;
}
nav,
.jump,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
nav a {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
nav a:hover,
.jump a:hover,
.links a:hover {
  text-decoration: underline;
}
.intro {
  padding: 25px 0 32px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 25px;
}
.crumb b {
  font-weight: 400;
}
.crumb span {
  color: #92a0a8;
}
.intro-row,
.summary-head,
.chart-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.7px;
  font:
    11px/1.5 'DM Sans',
    sans-serif;
  color: var(--green);
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1.16;
}
h1 {
  font-size: 44px;
  letter-spacing: -1.3px;
  margin: 7px 0 12px;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 21px;
}
.lead,
.city-picker label,
.stations p,
footer p {
  color: var(--muted);
  font-size: 14px;
}
.snapshot {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--muted);
  font:
    10px/1.6 'DM Sans',
    sans-serif;
  white-space: nowrap;
}
.city-picker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.city-picker select {
  width: 195px;
}
.overview {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--paper);
}
.summary {
  padding: 31px 34px;
}
.summary-head select {
  width: min(57%, 240px);
}
.status {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 29px 4px 9px;
}
.dial {
  --band: #c3cbd0;
  flex: none;
  width: 124px;
  height: 124px;
  border: 5px solid var(--band);
  outline: 1px solid #dce4df;
  outline-offset: 6px;
  border-radius: 50%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
}
.dial strong {
  font:
    600 60px/1 'DM Sans',
    sans-serif;
  letter-spacing: -3px;
}
.dial small,
.status-copy #when {
  font:
    9px/1.55 'DM Sans',
    sans-serif;
  color: var(--muted);
}
.status-copy h2 {
  font-size: 32px;
}
.status-copy p {
  margin: 7px 0 10px;
  font-size: 14px;
  color: var(--muted);
}
.measure {
  border-left: 1px solid var(--line);
  background: var(--soft);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pair > div {
  display: grid;
  gap: 3px;
}
.pair > div + div {
  border-left: 1px solid #cfdbd7;
  padding-left: 20px;
}
.pair span,
.pair small {
  color: var(--muted);
}
.pair strong {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pair small {
  font-size: 12px;
}
.measure > a,
.links a {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.jump {
  padding: 18px 0 34px;
  border-bottom: 1px solid var(--line);
}
.jump a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.content,
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
}
.content {
  padding: 28px 0 38px;
}
.stations {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.stations h2 {
  margin: 6px 0 14px;
}
.stations p {
  margin: 8px 0;
}
.chart-tools {
  margin: 13px 0 8px;
}
.switch {
  display: flex;
  gap: 4px;
}
.switch button,
#refresh {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
}
.switch [aria-pressed='true'] {
  background: var(--green);
  color: white;
}
#coverage,
#range,
summary {
  font-size: 13px;
  color: var(--muted);
}
#chart svg {
  display: block;
  width: 100%;
  height: auto;
}
#range {
  margin: 6px 0 12px;
}
details,
th,
td {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  padding: 10px 0;
  color: var(--green);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  padding: 5px 2px;
  text-align: left;
}
td:last-child,
th:last-child {
  text-align: right;
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
}
.footer-inner {
  grid-template-columns: 1fr 2fr;
}
footer p {
  margin: 8px 0;
  font-size: 13px;
}
#refreshStatus {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header-inner {
    height: 65px;
    gap: 10px;
  }
  .brand img {
    width: 64px;
    height: 40px;
  }
  nav {
    gap: 8px 12px;
  }
  nav a {
    font-size: 11px;
  }
  .intro {
    padding: 18px 0 20px;
  }
  .crumb {
    margin-bottom: 16px;
  }
  .intro-row {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  h1 {
    font-size: 35px;
    margin: 7px 0;
  }
  .snapshot {
    font-size: 9px;
    padding: 4px 8px;
  }
  .snapshot br {
    display: none;
  }
  .snapshot span:before {
    content: ' · ';
  }
  .city-picker {
    margin-top: 12px;
  }
  .overview,
  .content,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .summary {
    padding: 19px;
  }
  .status {
    gap: 21px;
    margin: 22px 4px 9px;
  }
  .dial {
    width: 89px;
    height: 89px;
    outline-offset: 4px;
  }
  .dial strong {
    font-size: 44px;
  }
  .status-copy h2 {
    font-size: 25px;
  }
  .measure {
    padding: 18px 20px;
    border: 0;
    border-top: 1px solid var(--line);
    gap: 12px;
  }
  .pair strong {
    font-size: 26px;
  }
  .jump {
    padding: 12px 0 21px;
  }
  .content,
  .footer-inner {
    gap: 22px;
  }
  .stations {
    border: 0;
    padding: 0;
  }
  .summary-head {
    gap: 8px;
  }
  .summary-head select {
    width: 57%;
  }
}

/* Match the font families actually rendered by the production Croatian city page. */
html[data-font='hr'] h1,
html[data-font='hr'] h2 {
  font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
}
html[data-font='hr'] h3,
html[data-font='hr'] .eyebrow,
html[data-font='hr'] .snapshot,
html[data-font='hr'] .dial small,
html[data-font='hr'] .status-copy #when {
  font-family: 'DM Sans', system-ui, sans-serif;
}
html[data-font='hr'] .eyebrow {
  font-weight: 700;
}
.preview-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}
.preview-controls .city-picker {
  margin: 0;
}
.type-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}
.type-picker label {
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  .preview-controls {
    justify-content: flex-start;
    margin-top: 12px;
  }
}
nav a[aria-current],
.city-links a[aria-current] {
  color: #12513b;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
}
.city-links a {
  font-weight: 600;
}
.station-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.station-form button,
.switch a {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 6px 10px;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
}
.switch a[aria-current] {
  background: var(--green);
  color: white;
}
.station-list {
  list-style: none;
  padding: 0;
}
.station-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.station-list li small {
  white-space: nowrap;
}
.missing {
  color: #586774;
}
.stale {
  font-weight: 700;
  color: #895113;
}
.pair small {
  display: block;
}
.history svg {
  width: 100%;
  height: auto;
}
.intro nav {
  font-size: 15px;
}
.strip {
  min-height: 5px;
}
.status-copy time {
  font-size: 13px;
  color: var(--muted);
}
.summary-head {
  flex-wrap: wrap;
}
.summary-head select {
  width: auto;
}
.links {
  font-size: 13px;
}
.status-copy p {
  margin: 5px 0;
}
.status {
  align-items: center;
}
