/* Compact masthead weather; the full forecast is a keyboard-accessible dialog. */
.brand-group { grid-area: brand; display: flex; align-items: center; gap: 18px; min-width: 0; }
.topbar .brand-group .brand { grid-area: auto; flex-shrink: 0; }
.weather-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 0 4px 16px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.weather-toggle:hover { color: var(--green-strong); }
.weather-icon { font-family: "Segoe UI Symbol", sans-serif; font-size: 25px; line-height: 1; }
.weather-compact { display: grid; gap: 1px; white-space: nowrap; }
.weather-city-name { color: var(--muted); font-size: 11px; line-height: 1.3; }
.weather-temperature { font-size: 15px; line-height: 1.3; font-weight: 650; font-variant-numeric: tabular-nums; }
.weather-toggle[data-status="stale"] .weather-temperature::after { content: "*"; margin-left: 2px; }
.weather-toggle[data-status="unavailable"] .weather-icon { color: var(--muted); }
.weather-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; margin: auto; padding: 26px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink); }
.weather-dialog::backdrop { background: rgb(0 0 0 / .5); }
.weather-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.weather-dialog h2 { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.weather-close, .weather-retry { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--green-strong); background: transparent; font-size: 13px; cursor: pointer; }
.weather-close:hover, .weather-retry:hover { background: var(--green-soft); }
.weather-city-label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.weather-city-label select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
.weather-current { padding: 24px 0; }
.weather-current-main { display: flex; gap: 18px; align-items: center; }
.weather-current-icon { font-family: "Segoe UI Symbol", sans-serif; font-size: 52px; color: var(--green-strong); }
.weather-current-temperature { font-size: 48px; line-height: 1.1; font-weight: 500; letter-spacing: -2px; }
.weather-condition { margin: 6px 0 0; font-size: 16px; }
.weather-measures { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 20px 0 0; }
.weather-measures div { display: grid; gap: 4px; }
.weather-measures dt { color: var(--muted); font-size: 12px; }
.weather-measures dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.weather-status { margin: 18px 0; padding: 12px; background: var(--green-soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
.weather-forecast { padding: 18px 0 0; border-top: 1px solid var(--line); }
.weather-forecast h3 { margin: 0 0 16px; font-size: 15px; }
.weather-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.weather-day { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 12px; border-left: 1px solid var(--line); }
.weather-day:first-child { padding-left: 0; border-left: 0; }
.weather-day:last-child { padding-right: 0; }
.weather-day-name { font-size: 13px; }
.weather-day-condition { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.4; }
.weather-day-range { font-size: 14px; font-weight: 600; white-space: nowrap; }
.weather-day-rain { color: var(--muted); font-size: 12px; }
.weather-rain-label { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.weather-rain-label::before { content: "% — "; }
.weather-no-forecast { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.weather-dialog-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 24px; }
.weather-attribution { display: grid; gap: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.weather-attribution p { margin: 0; }
.weather-attribution a { color: var(--green-strong); text-underline-offset: 3px; }
@media (max-width: 760px) {
  .brand-group { gap: 14px; }
  .weather-toggle { padding-left: 12px; gap: 6px; }
  .weather-icon { font-size: 23px; }
  .weather-city-name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .topbar:has(.editor-shortcut:not([hidden])) .editor-shortcut { grid-column: 4; grid-row: 3; justify-self: end; }
  .topbar:has(.editor-shortcut:not([hidden])) .search { grid-area: auto; grid-column: 3; grid-row: 3; }
  .weather-dialog { padding: 20px; }
}
