/* Scoped to the partial-year comparison; complete-year charts are independent. */
.hg-ytd {
  --ytd-ink: #17313b;
  --ytd-muted: #5c6b73;
  --ytd-line: #d7e2df;
  margin-top: 24px;
  margin-bottom: 28px;
  color: var(--ytd-ink);
  scroll-margin-top: 110px;
}
.hg-ytd .hg-ytd-kicker {
  margin: 0 0 8px;
  color: #1d6f5f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hg-ytd h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.hg-ytd .hg-ytd-period { color: var(--ytd-muted); font-size: 15px; }
.hg-ytd-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.hg-ytd-summary-card { padding: 16px 18px; background: #fbfaf6; border: 1px solid var(--ytd-line); border-radius: 8px; }
.hg-ytd-summary-card span { display: block; color: var(--ytd-muted); font-size: 13px; line-height: 1.5; }
.hg-ytd-summary-card strong { display: block; margin: 5px 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hg-ytd-comparison { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.hg-ytd-comparison legend { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.hg-ytd-radio { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hg-ytd-control { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 6px 0 0; padding: 8px 16px; border: 1px solid var(--ytd-line); border-radius: 6px; background: #fff; color: var(--ytd-ink); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; box-sizing: border-box; }
.hg-ytd-radio:checked + .hg-ytd-control { background: #1d6f5f; border-color: #1d6f5f; color: #fff; }
.hg-ytd-radio:focus-visible + .hg-ytd-control { outline: 3px solid var(--ytd-ink); outline-offset: 3px; }
#visitor-ytd-arrivals:checked ~ .hg-ytd-panels .hg-ytd-panel-spending,
#visitor-ytd-spending:checked ~ .hg-ytd-panels .hg-ytd-panel-arrivals { display: none; }
.hg-ytd-panel h3 { margin: 20px 0 12px; font-size: 18px; line-height: 1.3; }
.hg-ytd .hg-ytd-unit { margin: 0 0 12px; font-size: 13px; color: var(--ytd-muted); }
.hg-ytd-islands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hg-ytd-island { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--ytd-line); border-top: 4px solid var(--island-accent); border-radius: 8px; }
.hg-ytd-island-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.hg-ytd-island h4 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.hg-ytd-change { display: inline-flex; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ytd-muted); }
.hg-ytd-bar-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 90px; align-items: center; gap: 8px; margin-top: 9px; font-size: 13px; font-variant-numeric: tabular-nums; }
.hg-ytd-year { color: var(--ytd-muted); }
.hg-ytd-track { display: block; height: 13px; background: #f1f4f3; border-radius: 2px; overflow: hidden; }
.hg-ytd-bar { display: block; height: 100%; background: var(--island-accent); }
.hg-ytd-previous .hg-ytd-bar { opacity: .45; }
.hg-ytd-bar-row strong { text-align: right; white-space: nowrap; }
.hg-ytd .hg-ytd-note { margin: 18px 0 12px; padding: 12px 14px !important; background: #fbfaf6; border-left: 3px solid #1d6f5f; font-size: 14px; line-height: 1.6; }
.hg-ytd .hg-ytd-source { color: var(--ytd-muted); font-size: 13px; line-height: 1.6; }
.hg-ytd .hg-ytd-next { font-size: 15px; line-height: 1.6; }
@media (max-width: 700px) {
  .hg-ytd-summary, .hg-ytd-islands { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .hg-ytd-radio, .hg-ytd-control, .hg-ytd-comparison legend { display: none; }
  .hg-ytd-panel { display: block !important; }
  .hg-ytd-summary-card, .hg-ytd-island { break-inside: avoid; }
  .hg-ytd-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
