/* Local weather views use the same palette and spacing as the reference theme.
   Scope all rules to the weather content so the site chrome stays consistent. */
.weather-page { min-width: 0; padding-bottom: 18px; }
.weather-page a { color: var(--accent); text-decoration: none; }
.weather-page a:hover { color: var(--text); }
.weather-page :is(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.weather-page .page-title {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 18px; margin: 20px 0 16px;
}
.weather-page .page-title > div { min-width: 0; }
.weather-page .page-title .en {
  display: block; color: var(--accent); font-size: 11px;
  font-weight: 600; letter-spacing: 1.4px; margin-bottom: 5px;
}
.weather-page .page-title :is(h1, h2) {
  font-size: 26px; line-height: 1.4; font-weight: 650; margin: 0;
}
.weather-page .page-title p { color: var(--text-2); margin-top: 6px; }
.weather-page .page-title > a {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  min-height: 38px; padding: 7px 12px; border: 1px solid var(--accent-line);
  background: var(--card); border-radius: 8px; font-size: 13px;
}
.weather-page .card { padding: 20px; margin-bottom: 16px; }
.weather-page .card > :is(h1, h2) { font-size: 19px; line-height: 1.5; margin: 0 0 14px; }
.weather-page .route-form {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 16px; align-items: end; margin-top: 14px;
}
.weather-page .route-form label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--text-2); font-size: 13px; }
.weather-page .route-form :is(input, select) {
  display: block; width: 100%; min-width: 0; height: 44px; margin: 0;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--text); font: inherit; font-size: 14px;
}
.weather-page .route-form input::placeholder { color: var(--muted); }
.weather-page .route-form :is(input, select):focus { border-color: var(--accent); }
.weather-page .primary {
  display: inline-flex; justify-content: center; align-items: center; gap: 16px;
  height: 44px; padding: 0 22px; border: 1px solid var(--accent);
  border-radius: 8px; background: var(--accent); color: #fffdf8;
  font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.weather-page .primary:hover { background: #934224; }
.weather-page .grid { display: grid; gap: 12px; margin-bottom: 20px; }
.weather-page .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weather-page .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weather-page .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weather-page .feature-card {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px;
  align-content: center; align-items: center; min-width: 0; padding: 16px;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .15s, background-color .15s;
}
.weather-page .feature-card:hover { border-color: var(--accent-line); background: #fff8f0; }
.weather-page .feature-icon {
  display: grid; place-items: center; grid-row: span 2; width: 32px; height: 36px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 23px;
}
.weather-page .feature-card b { color: var(--text); font-size: 15px; font-weight: 600; }
.weather-page .feature-card p { grid-column: 2; margin-top: 4px; font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.weather-page .weather-blank {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px; border: 1px solid var(--accent-line); border-radius: 10px;
  background: linear-gradient(120deg, #fbefe3, #fffaf3);
}
.weather-page .weather-blank > div { min-width: 0; }
.weather-page .weather-blank h2 { font-size: 22px; line-height: 1.4; margin: 0 0 8px; }
.weather-page .weather-blank p { color: var(--text-2); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.weather-page .weather-blank .degree { flex: 0 0 auto; font-size: 52px; line-height: 1.2; font-weight: 650; letter-spacing: -1.5px; color: var(--accent); white-space: nowrap; }
.weather-page .weather-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 24px; }
.weather-page .weather-info-grid > div { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; background: var(--bg); border-radius: 8px; }
.weather-page .weather-info-grid small { color: var(--text-2); font-size: 12px; }
.weather-page .weather-info-grid b { font-size: 17px; font-weight: 600; }
.weather-page .weather-report > h2 { font-size: 18px; margin: 24px 0 12px; }
.weather-page .forecast-scroll {
  display: flex; gap: 10px; overflow-x: auto; max-width: 100%; padding: 0 0 12px;
  overscroll-behavior-x: contain; scrollbar-width: thin;
  scrollbar-color: var(--accent-line) var(--bg); scroll-snap-type: x proximity;
}
.weather-page .forecast-hour {
  display: flex; flex: 0 0 108px; flex-direction: column; align-items: center;
  gap: 9px; padding: 16px 8px; border: 1px solid var(--line-soft);
  border-radius: 9px; background: #faf6ee; text-align: center; scroll-snap-align: start;
}
.weather-page .forecast-hour small { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.weather-page .forecast-hour b { font-size: 22px; line-height: 1.4; font-weight: 650; color: var(--accent); }
.weather-page .forecast-hour span { font-size: 13px; }
.weather-page .forecast-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.weather-page .forecast-days > div {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 6px; border: 1px solid var(--line-soft);
  border-radius: 9px; background: #faf6ee; text-align: center;
}
.weather-page .forecast-days small { font-size: 12px; color: var(--text-2); }
.weather-page .forecast-days b { font-size: 14px; font-weight: 600; }
.weather-page .forecast-days span { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.weather-page .small { font-size: 12px; }
.weather-page .muted, .weather-page .lead { color: var(--text-2); }
.weather-page .weather-report > p.small { margin-top: 12px; line-height: 1.8; }
.weather-page .data-note { color: var(--text-2); line-height: 1.8; overflow-wrap: anywhere; }
.weather-page p.data-note { padding: 14px 16px; margin: 18px 0; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg); }
.weather-page .warning-note { padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: 8px; background: #fff2dc; color: #885016; }
.weather-page .weather-report > .warning-note { margin-top: 0; background: #fff2dc; color: #885016; }
.weather-page .country-group { margin: 24px 0; }
.weather-page .country-group h3 { display: flex; align-items: baseline; gap: 12px; font-size: 19px; margin: 0 0 12px; }
.weather-page .country-group h3 small { color: var(--text-2); font-size: 12px; font-weight: 400; }
.weather-page .faq-item { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.weather-page .faq-item summary { cursor: pointer; font-weight: 600; }
.weather-page .faq-item p { color: var(--text-2); padding-top: 8px; }
.weather-page .link-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.weather-page .link-list a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
@media (max-width: 760px) {
  .weather-page .grid.four, .weather-page .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-page .forecast-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weather-page .link-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .weather-page .page-title { align-items: flex-start; flex-direction: column; gap: 12px; margin: 16px 0; }
  .weather-page .page-title :is(h1, h2) { font-size: 23px; }
  .weather-page .page-title p { font-size: 13px; }
  .weather-page .card { padding: 16px; }
  .weather-page .route-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .weather-page .route-form :is(input, select) { font-size: 16px; }
  .weather-page .primary { width: 100%; }
  .weather-page .grid { gap: 10px; }
  .weather-page .feature-card { grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 12px; }
  .weather-page .feature-icon { width: 26px; height: 32px; font-size: 20px; }
  .weather-page .feature-card b { font-size: 14px; }
  .weather-page .feature-card p { grid-column: 1 / -1; margin-top: 8px; }
  .weather-page .weather-blank { align-items: flex-start; flex-direction: column-reverse; padding: 18px; gap: 14px; }
  .weather-page .weather-blank .degree { font-size: 46px; }
  .weather-page .weather-blank h2 { font-size: 20px; }
  .weather-page .weather-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-page .weather-info-grid > div { padding: 12px; }
  .weather-page .forecast-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-page .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .weather-page .grid.two, .weather-page .grid.three, .weather-page .grid.four { grid-template-columns: minmax(0, 1fr); }
}
