/* Shared public forecast component. The theme owns the surrounding header layout. */
.ap-weather{position:relative;width:21rem;max-width:100%;min-width:0;flex-shrink:1;font-family:Assistant,Arial,sans-serif;color:var(--ap-ink,#123d52);font-size:.875rem;line-height:1.15}
.ap-weather[hidden]{display:block!important}
.ap-weather__heading{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;min-height:1rem;margin:0}
.ap-weather__label{font-weight:600;font-size:.875rem}
.ap-weather__summary{font-size:.75rem;color:#805000;overflow-wrap:anywhere}
.ap-weather__rows{display:grid;gap:0}
.ap-weather__row{display:grid;grid-template-columns:6.4rem 3.5rem 2.6rem 4.6rem 1.3rem;align-items:center;gap:.18rem;min-height:1.25rem;padding:0;border-bottom:1px solid #e4edf3;font-size:.875rem;font-variant-numeric:tabular-nums}
.ap-weather__row:last-child{border-bottom:0}
.ap-weather__place{font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-weather__current{display:inline-flex;align-items:center;gap:.15rem;white-space:nowrap}
.ap-weather__icon,.ap-weather__next{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:.9rem;line-height:1.1}
.ap-weather__uv,.ap-weather__wind{white-space:nowrap}
.ap-weather__next{text-align:center;white-space:nowrap}
.ap-weather .is-stale{background:#fff8e7}
.ap-weather__details{position:relative;margin:.05rem 0 0}
.ap-weather__details>summary{width:max-content;max-width:100%;min-height:1.5rem;line-height:1.5;font-size:.875rem;font-weight:600;color:var(--ap-link,#126a93);cursor:pointer}
.ap-weather__details>summary:focus-visible,.ap-weather__sources a:focus-visible{outline:3px solid #197dbe;outline-offset:3px}
.ap-weather__panel{position:absolute;right:0;top:100%;z-index:80;width:min(44rem,calc(100vw - 2rem));max-height:min(65vh,36rem);overflow:auto;overscroll-behavior:contain;padding:1rem;border:1px solid #b8cedc;border-radius:.5rem;background:white;box-shadow:0 .6rem 2rem #123d5226;color:#123d52}
.ap-weather__status{margin:0 0 .8rem;font-size:.875rem;color:#4b6578}
.ap-weather__detail-rows{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.ap-weather__location{border:1px solid #d2e4ee;border-radius:.4rem;padding:.7rem;min-width:0}
.ap-weather__location h3{font-size:1rem;line-height:1.3;margin:0 0 .4rem}
.ap-weather__location p{font-size:.875rem;line-height:1.4;margin:.2rem 0;overflow-wrap:anywhere}
.ap-weather__location strong{font-weight:600}
.ap-weather__note,.ap-weather__sources{font-size:.8rem;line-height:1.5;color:#4b6578;margin:.8rem 0 0}
.ap-weather__sources a{color:var(--ap-link,#126a93)}
/* Apply this class to the actual common header, not to the weather's details popup. */
.ap-header-sticky{position:sticky;top:0;z-index:60;background:var(--ap-header-background,#fff);overflow:visible}
@media(max-width:540px){
  .ap-weather{width:100%}
  .ap-weather__row{grid-template-columns:6.1rem 3.2rem 2.4rem 4rem 1.2rem;gap:.12rem;min-height:1.25rem;font-size:.875rem}
  .ap-weather__details>summary{min-height:1.5rem;line-height:1.5}
  .ap-weather__panel{position:absolute;right:0;width:min(40rem,calc(100vw - 2rem));max-height:60vh;padding:.75rem}
  .ap-weather__detail-rows{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.ap-weather *{scroll-behavior:auto}}
@media print{.ap-weather{display:none!important}.ap-header-sticky{position:static}}
