:root {
  /* City manual §1.6–1.7: Pantone 662 C, RGB 41/48/114. */
  --brand: #293072;
  --brand-90: #3e4580;
  --brand-80: #54598e;
  --brand-70: #696e9c;
  --brand-60: #7f83aa;
  --brand-50: #9498b9;
  --brand-40: #a9acc7;
  --brand-30: #bfc1d5;
  --brand-20: #d4d6e3;
  --brand-15: #dfe0ea;
  --brand-10: #eaebf1;
  --brand-5: #f4f5f8;
  --brand-3: #f9f9fb;
  --white: #ffffff;
  --ink: #262626;
  --muted: #595959;
  --paper: var(--brand-3);
  --line: var(--brand-15);
  --surface: var(--white);
  --surface-soft: var(--brand-10);
  --surface-hover: var(--brand-5);
  --surface-selected: var(--brand-10);
  --hour-night: var(--brand-10);
  --accent: var(--brand);
  --accent-muted: var(--brand-80);
  --icon-color: var(--brand-60);
  --border-strong: var(--brand-30);
  --range-start: var(--brand-40);
  --button-hover: var(--brand-90);
  --radius: 22px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
select {
  font: inherit;
}
button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
}
h2 {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
small {
  font-size: 12px;
}
.page-width {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  background: var(--surface);
  padding: 12px 20px;
  border: 2px solid var(--accent);
}
.skip-link:focus {
  top: 12px;
}
.weather-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--accent-muted);
}
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  padding: 44px 0 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.55px;
  color: var(--muted);
  line-height: 1.5;
}
.page-intro h1 {
  font-size: 43px;
  font-weight: 650;
  letter-spacing: -1.7px;
  line-height: 1.2;
  margin-top: 9px;
}
.heading-dot {
  color: var(--accent);
}
.date-label {
  text-align: right;
  font-size: 12px;
  padding-bottom: 3px;
}
.date-label small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}
.current-card,
.summary-card {
  border-radius: var(--radius);
  padding: 29px 31px;
  border: 1px solid var(--line);
  min-width: 0;
}
.current-card {
  background: var(--surface);
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.status-pill {
  font-size: 10px;
  border-radius: 30px;
  padding: 4px 10px;
  background: var(--surface-soft);
  color: var(--accent);
  white-space: nowrap;
}
.status-pill.is-stale {
  background: var(--surface-soft);
  color: var(--accent);
}
.current-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 25px;
}
.temperature {
  font-size: 91px;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -5px;
  font-variant-numeric: tabular-nums;
}
.temperature > span {
  font-size: 39px;
  font-weight: 350;
  letter-spacing: -2px;
  vertical-align: top;
  display: inline-block;
  padding-top: 15px;
  margin-left: 6px;
}
.condition {
  font-size: 20px;
  font-weight: 550;
  margin-top: 8px;
  letter-spacing: -0.3px;
}
.feels-like {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.feels-like > span {
  margin: 0 5px;
}
.hero-icon {
  width: 135px;
  height: 135px;
  margin-right: 8px;
}
.current-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 21px 0;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.current-metrics > div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.current-metrics .weather-icon {
  width: 25px;
  height: 25px;
}
.current-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.current-metrics strong small {
  font-size: 10px;
  font-weight: 400;
}
.sunrise-symbol {
  font-size: 28px;
  color: var(--accent-muted);
  width: 25px;
  text-align: center;
}
.current-footnote {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}
.summary-card {
  background: var(--surface-soft);
  border-color: var(--line);
  display: flex;
  flex-direction: column;
}
.summary-mark {
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.summary-card h3 {
  font-size: 31px;
  letter-spacing: -1.1px;
  line-height: 1.25;
  font-weight: 550;
  margin: 25px 0 17px;
}
.summary-card > p {
  color: var(--accent);
  font-size: 13px;
  max-width: 365px;
  line-height: 1.85;
}
.summary-card strong {
  font-weight: 650;
}
.summary-agreement {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  padding-top: 23px;
  font-size: 11px;
  font-weight: 650;
}
.summary-agreement small {
  display: block;
  font-weight: 400;
  color: var(--accent-muted);
  font-size: 10px;
  margin-top: 3px;
}
.agreement-bars {
  display: flex;
  gap: 3px;
  height: 22px;
  align-items: end;
}
.agreement-bars i {
  width: 5px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
}
.agreement-bars i:nth-child(2) {
  height: 15px;
}
.agreement-bars i:nth-child(3) {
  height: 18px;
}
.agreement-bars i:nth-child(4) {
  height: 21px;
}
.agreement-bars i:nth-child(5) {
  height: 24px;
}
.agreement-bars i.empty {
  background: var(--border-strong);
}
.forecast-section {
  margin-top: 38px;
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.section-heading h2 {
  margin-top: 7px;
}
.section-description {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.section-description > span {
  margin-left: 4px;
}
.hourly-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  margin-top: 20px;
  padding: 5px 4px 12px;
  scrollbar-color: var(--border-strong) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.warning-preview {
  margin-top: 18px;
  margin-bottom: 24px;
  border: 1px solid #e5bd23;
  border-left: 5px solid #e5bd23;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.warning-preview summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}
.warning-preview summary::-webkit-details-marker { display: none; }
.warning-preview summary > span:nth-child(2) { display: grid; gap: 4px; }
.warning-preview summary small { color: var(--muted); font-size: 10px; font-weight: 700; }
.warning-preview summary strong { font-size: 14px; }
.warning-preview summary span span { font-size: 12px; }
.warning-symbol {
  background: #f6d64a;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.warning-detail-label { margin-left: auto; white-space: nowrap; font-size: 12px; }
.warning-detail-body { padding: 0 16px 16px; font-size: 13px; border-top: 1px solid var(--line); }
.warning-detail-body p { margin: 12px 0; }
.warning-detail-body a { color: var(--accent); text-decoration: underline; }
.hour-slot { position: relative; flex: 1 0 86px; max-width: 96px; scroll-snap-align: start; }
.hour-slot .hour-card { max-width: none; height: 100%; padding-bottom: 46px; }
.hour-slot.has-warning .hour-card { border-bottom: 3px solid #e5bd23; }
.hour-warning {
  position: absolute;
  bottom: 9px;
  left: 5px;
  right: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  border-radius: 6px;
  background: #f6d64a;
  color: #000;
  font-size: 10px;
  font-weight: 700;
}
.hour-warning:hover { background: #ffe578; color: #000; }
.hour-warning .weather-icon { width: 17px; height: 17px; }
@media (max-width: 480px) {
  .warning-preview summary { padding: 12px; gap: 8px; }
  .warning-detail-label { font-size: 10px; }
  .warning-preview summary strong { font-size: 12px; }
}
.hour-card {
  min-width: 86px;
  flex: 1 0 86px;
  max-width: 96px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 9px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  scroll-snap-align: start;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.hour-card:hover {
  border-color: var(--icon-color);
  background: var(--surface-hover);
}
.hour-card.selected {
  border: 2px solid var(--accent);
  padding: 14px 8px 12px;
}
.hour-label {
  font-size: 11px;
  font-weight: 600;
}
.hour-day {
  font-size: 9px;
  color: var(--muted);
  margin-top: -7px;
}
.hour-card > .weather-icon {
  width: 33px;
  height: 33px;
  margin: 3px 0;
}
.hour-card > strong {
  font-size: 21px;
  font-weight: 550;
}
.hour-rain {
  display: flex;
  align-items: center;
  font-size: 10px;
  gap: 4px;
  color: var(--accent-muted);
}
.hour-rain .weather-icon {
  width: 11px;
  height: 13px;
}
.hour-card.night-hour {
  background: var(--hour-night);
}
.hourly-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  gap: 12px;
}
.hourly-legend i {
  display: inline-block;
  height: 7px;
  width: 7px;
  background: var(--hour-night);
  border: 1px solid var(--muted);
  border-radius: 50%;
  margin-right: 6px;
}
.hourly-legend small {
  font-size: 9px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}
.daily-panel,
.models-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px 27px;
}
.details-grid h2 {
  font-size: 23px;
}
.details-grid .eyebrow {
  font-size: 8px;
  letter-spacing: 1.1px;
}
.muted-label {
  color: var(--muted);
  font-size: 12px;
}
.daily-list {
  margin-top: 18px;
}
.daily-row {
  display: grid;
  grid-template-columns: 76px 36px minmax(80px, 1fr) 77px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--surface-soft);
}
.daily-row:last-child {
  border: 0;
}
.daily-day strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.daily-day small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.daily-condition .weather-icon {
  width: 30px;
  height: 30px;
}
.daily-temperatures {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.daily-temperatures > span:first-child {
  color: var(--muted);
  min-width: 23px;
}
.daily-temperatures strong {
  font-weight: 600;
  min-width: 23px;
  text-align: right;
}
.temp-track {
  height: 5px;
  flex: 1;
  min-width: 25px;
  background: var(--surface-soft);
  border-radius: 10px;
  position: relative;
}
.temp-track i {
  position: absolute;
  left: var(--start);
  width: var(--width);
  height: 100%;
  background: linear-gradient(90deg, var(--range-start), var(--accent));
  border-radius: 10px;
}
.daily-rain {
  text-align: right;
}
.daily-rain strong {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-muted);
  display: block;
}
.daily-rain small {
  font-size: 9px;
  color: var(--muted);
  display: block;
}
.panel-footnote {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}
.comparison-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
}
.comparison-time label {
  font-size: 11px;
  color: var(--muted);
}
.comparison-time form {
  display: flex;
  gap: 5px;
  align-items: center;
}
.comparison-time select {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  color: var(--ink);
  background: var(--surface);
  max-width: 100%;
}
.compare-submit {
  font-size: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 7px;
  color: var(--ink);
}
.consensus-strip {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 18px;
  margin-top: 15px;
}
.consensus-strip small {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.consensus-strip strong {
  display: block;
  font-size: 24px;
  font-weight: 550;
  margin-top: 4px;
  letter-spacing: -0.5px;
}
.consensus-strip strong span {
  font-size: 13px;
  color: var(--muted);
}
.consensus-strip > div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.model-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  text-align: left;
}
.model-table thead {
  font-size: 9px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.model-table th,
.model-table td {
  padding: 12px 0;
}
.model-table th {
  font-weight: 500;
}
.model-table tbody th span {
  font-size: 12px;
  font-weight: 650;
  display: block;
}
.model-table tbody th small {
  font-size: 9px;
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.model-table tbody tr {
  border-bottom: 1px solid var(--surface-soft);
}
.model-table td {
  font-size: 14px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.model-table th:nth-child(2),
.model-table td:nth-child(2) {
  text-align: right;
}
.model-table th:last-child,
.model-table td:last-child {
  text-align: right;
}
.model-table td:last-child {
  font-size: 11px;
  color: var(--accent-muted);
  font-weight: 400;
}
.supplemental-model {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}
.supplemental-model small {
  font-size: 9px;
  margin-left: 8px;
}
.supplemental-model strong {
  font-size: 13px;
  font-weight: 500;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 29px 0 35px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.footer-brand {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.footer-brand span {
  font-weight: 400;
  color: var(--muted);
}
.site-footer p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.site-footer > div:last-child {
  text-align: right;
}
.site-footer small {
  font-size: 9px;
  color: var(--muted);
}
.site-footer p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.status-notice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px 21px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 12px;
}
.status-notice span {
  font-size: 11px;
}
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 55px 25px;
}
.empty-state > .weather-icon {
  width: 80px;
  height: 80px;
}
.empty-state h2 {
  margin-top: 20px;
}
.empty-state > p {
  max-width: 460px;
  margin: 16px auto;
  color: var(--muted);
  font-size: 13px;
}
.primary-link {
  display: inline-block;
  border-radius: 9px;
  padding: 11px 18px;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
}
.primary-link:hover {
  color: var(--white);
  background: var(--button-hover);
}
@media (min-width: 1000px) {
  .hour-card {
    flex-basis: 86px;
  }
  .current-card,
  .summary-card {
    min-height: 363px;
  }
}
@media (max-width: 1000px) {
  .hero-icon {
    width: 100px;
    height: 100px;
    margin-right: 0;
  }
  .current-card,
  .summary-card {
    padding: 24px;
  }
  .summary-card h3 {
    font-size: 27px;
  }
  .daily-panel,
  .models-panel {
    padding: 22px 20px;
  }
  .daily-row {
    grid-template-columns: 66px 30px minmax(55px, 1fr) 65px;
    gap: 8px;
  }
  .daily-temperatures {
    gap: 5px;
  }
  .comparison-time {
    align-items: start;
    flex-direction: column;
  }
  .comparison-time form {
    width: 100%;
  }
  .comparison-time select {
    flex: 1;
  }
}
@media (max-width: 740px) {
  .page-width {
    width: calc(100% - 36px);
  }
  .page-intro {
    padding: 29px 0 24px;
    display: block;
  }
  .page-intro h1 {
    font-size: 35px;
    letter-spacing: -1.3px;
  }
  .date-label {
    text-align: left;
    font-size: 10px;
    margin-top: 0;
  }
  .date-label small {
    display: none;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .hero-grid,
  .details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .current-card,
  .summary-card {
    padding: 24px;
    border-radius: 18px;
  }
  .hero-icon {
    width: 120px;
    height: 120px;
  }
  .temperature {
    font-size: 86px;
  }
  .summary-card h3 {
    font-size: 28px;
    margin-top: 19px;
  }
  .summary-card > p {
    max-width: none;
    font-size: 13px;
  }
  .summary-agreement {
    padding-top: 19px;
  }
  .current-metrics {
    gap: 10px;
  }
  .current-footnote {
    font-size: 8px;
  }
  .current-weather {
    padding-bottom: 23px;
  }
  .forecast-section {
    margin-top: 30px;
  }
  h2 {
    font-size: 23px;
  }
  .section-description {
    font-size: 10px;
  }
  .section-description > span {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }
  .hour-card {
    min-width: 77px;
    flex-basis: 77px;
  }
  .hourly-legend {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }
  .details-grid {
    gap: 0;
  }
  .details-grid .forecast-section {
    margin-top: 26px;
  }
  .daily-row {
    grid-template-columns: 66px 32px minmax(70px, 1fr) 66px;
    gap: 10px;
  }
  .daily-temperatures {
    gap: 8px;
  }
  .comparison-time {
    flex-direction: row;
    align-items: center;
  }
  .comparison-time form {
    width: auto;
  }
  .comparison-time select {
    min-width: 0;
    max-width: 155px;
  }
  .site-footer {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  .site-footer > div:last-child {
    text-align: left;
  }
  .status-notice {
    padding: 15px;
  }
  .empty-state {
    padding: 35px 20px;
  }
  .empty-state h2 {
    font-size: 23px;
  }
}
/* Text contrast on tinted surfaces and compact forecast labels. */
.summary-card .eyebrow,
.summary-agreement small {
  color: var(--accent);
}
.hour-rain,
.daily-rain strong,
.model-table td:last-child {
  color: var(--accent-muted);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Dark surfaces are neutral intensities of black; blue stays the city color. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #d4d6e3;
  --paper: #000000;
  --surface: #101010;
  --surface-soft: #181818;
  --surface-hover: #202020;
  --surface-selected: var(--brand);
  --hour-night: #000000;
  --accent: var(--brand-20);
  --accent-muted: var(--brand-10);
  --icon-color: var(--brand-30);
  --line: var(--brand-60);
  --border-strong: var(--brand-60);
  --range-start: var(--brand-40);
}
[data-theme="dark"] .summary-card {
  background: var(--brand);
  border-color: var(--brand-50);
}
[data-theme="dark"] .hour-card.selected {
  border-color: var(--white);
}
[data-theme="dark"] .hour-card:not(.night-hour) {
  background: #202020;
}
[data-theme="dark"] .agreement-bars i.empty {
  background: var(--brand-60);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  padding: 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
}
.theme-toggle .weather-icon {
  width: 22px;
  height: 22px;
}
.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
@media (max-width: 740px) {
  .theme-toggle {
    padding: 7px;
  }
  .theme-toggle > span {
    display: none;
  }
}

.intro-tagline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.intro-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
@media (max-width: 1000px) and (min-width: 741px) {
  .page-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .intro-tools {
    align-self: flex-end;
  }
}
@media (max-width: 740px) {
  .intro-tagline {
    font-size: 12px;
  }
  .intro-tools {
    justify-content: space-between;
    margin-top: 16px;
    gap: 12px;
  }
}

/* Page layout (formerly v2/v3 proposal) */
/* V2-only interaction styles; the original page remains unchanged. */
.weather-page .details-grid {
  grid-template-columns: 1fr;
}
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.source-pill:hover {
  color: var(--accent);
  background: var(--surface-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.weather-page .hour-card:hover,
.weather-page .daily-row:hover {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.weather-page .daily-row {
  border-radius: 10px;
  padding-inline: 12px;
  color: var(--ink);
}
.weather-page .daily-row:hover {
  background: var(--surface-hover);
}
.source-dialog {
  width: min(680px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 100px #0006;
  overflow: hidden;
  overscroll-behavior: contain;
}
.source-dialog[open] {
  display: flex;
  flex-direction: column;
}
.source-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.source-dialog [data-source-body] {
  min-height: 0;
  padding: 16px 24px 24px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.source-dialog .source-content > .eyebrow {
  display: none;
}
.source-dialog .source-content > h2 {
  margin-right: 0;
}
.source-dialog::backdrop {
  background: #0009;
}
.source-dialog-open {
  overflow: hidden;
}
.source-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}
.source-close:hover {
  background: var(--surface-hover);
}
.source-content > h2 {
  font-size: 25px;
  margin: 10px 40px 8px 0;
}
.source-content > .eyebrow {
  padding-right: 40px;
}
.source-intro {
  font-size: 12px;
  color: var(--muted);
}
.source-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.source-overview > div {
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 14px;
}
.source-overview small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.source-overview strong {
  display: block;
  font-size: 22px;
  margin-top: 6px;
}
.source-overview strong span {
  font-size: 14px;
  color: var(--muted);
}
.source-table-wrap {
  overflow-x: auto;
}
.source-table td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.source-fallback {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
@media (max-width: 640px) {
  .source-dialog {
    width: calc(100% - 16px);
    margin: max(12px, env(safe-area-inset-top)) auto 0;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    border-radius: 18px;
  }
  .source-dialog-header {
    padding: 10px 14px;
  }
  .source-dialog [data-source-body] {
    padding: 12px 14px 20px;
  }
  .source-content > h2 {
    font-size: 22px;
  }
  .source-table td,
  .source-table th {
    font-size: 11px;
  }
  .source-table th small {
    font-size: 9px;
  }
  .source-overview strong {
    font-size: 19px;
  }
  .source-fallback {
    padding: 16px;
  }
  .weather-page .daily-row {
    padding-inline: 4px;
  }
}
