/* Navbar weather is scoped separately from the page weather widgets. */
.nav-weather { position:relative; flex:0 0 auto; margin-left:32px; color:#172235; font-family:inherit; }
.nav-weather-toggle { display:flex; align-items:center; gap:10px; border:0; background:transparent; color:inherit; padding:2px 0; font:inherit; cursor:pointer; text-align:left; }
.nav-weather-icon { font-size:36px; line-height:1; }
.nav-weather-summary { display:flex; flex-direction:column; }
.nav-weather-summary strong { font-size:26px; line-height:1.05; white-space:nowrap; }
.nav-weather-summary > span { font-size:10px; line-height:1.2; color:#4c6076; max-width:125px; }
.nav-weather-arrow { font-size:17px; color:#526377; transition:transform .18s ease; }
.nav-weather-toggle[aria-expanded="true"] .nav-weather-arrow { transform:rotate(180deg); }
.nav-weather-toggle:focus-visible, .nav-weather-units button:focus-visible { outline:3px solid #246087; outline-offset:3px; }
.nav-weather-panel[hidden] { display:none; }
.nav-weather-panel { position:absolute; right:0; top:calc(100% + 8px); width:440px; max-width:calc(100vw - 32px); padding:20px; border:1px solid #d7dfe7; border-radius:16px; background:#f7f9fb; box-shadow:0 10px 24px #1026381a; z-index:40; }
.nav-weather-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.nav-weather-label { color:#5b718b; font-size:15px; font-weight:700; letter-spacing:.06em; }
.nav-weather-heading h2 { margin:8px 0 0; font-weight:700; font-family:inherit; font-size:25px; line-height:1.2; letter-spacing:-.03em; color:#172235; }
.nav-weather-units { display:flex; flex-shrink:0; padding:5px; gap:3px; background:#e2e8f0; border-radius:13px; }
.nav-weather-units button { border:0; border-radius:9px; padding:10px; background:transparent; color:#465e78; font-size:16px;line-height:1.2; font-family:inherit; font-weight:700; cursor:pointer; }
.nav-weather-units button.is-active { background:#245e86; color:white; }
.nav-weather-current { display:flex; align-items:center; gap:24px; padding:30px 8px 26px; }
.nav-weather-large-icon { font-size:86px; line-height:1.2; }
.nav-weather-temperature { font-size:70px; line-height:1; letter-spacing:-.05em; white-space:nowrap; }
.nav-weather-condition { margin-top:5px; font-size:22px; color:#4b6079; }
.nav-weather-details { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0 0 35px; }
.nav-weather-details > div { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:14px 6px; }
.nav-weather-details > div + div { border-left:1px solid #cbd7e4; }
.nav-weather-details span { color:#5b718b; font-size:15px; }
.nav-weather-details strong { font-size:16px; }
.nav-weather-status { margin:0; font-size:13px; color:#526377; }
.nav-weather-unavailable { font-size:12px; }
/* Keep links readable as weather takes its place on narrower desktop screens. */
@media(min-width:901px) and (max-width:1399px) {
 .nav-container .nav-menu { gap:clamp(8px,1vw,18px); }
 .nav-container .nav-item { margin-right:0; }
 .nav-container .nav-link { font-size:14px!important; }
 .navbar { padding-left:20px; padding-right:20px; }
 .nav-weather { margin-left:26px; }
 .nav-weather-icon { font-size:30px; }
 .nav-weather-summary strong { font-size:23px; }
}
@media(max-width:900px) {
 .nav-weather { order:2; margin-left:16px; }
 .nav-container .menu-toggle { order:1; }
 .nav-container .nav-menu { order:3; }
 .nav-weather-panel { position:fixed; top:auto; right:16px; margin-top:8px; max-height:calc(100dvh - 80px); overflow:auto; }
 .nav-weather-icon { font-size:30px; }
 .nav-weather-summary strong { font-size:23px; }
}
@media(max-width:440px) {
 .nav-weather-panel { padding:16px; }
 .nav-weather-heading h2 { font-size:21px; }
 .nav-weather-current { gap:16px; padding:26px 0; }
 .nav-weather-large-icon { font-size:66px; }
 .nav-weather-temperature { font-size:58px; }
 .nav-weather-details strong { font-size:14px; }
 .nav-weather-details span { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { .nav-weather-arrow { transition:none; } }
/* Switch to the existing Menu control before desktop links become crowded. */
@media(min-width:901px) and (max-width:1100px) {
 .nav-container .navbar { flex-wrap:wrap; gap:0; }
 .nav-container .menu-toggle { display:block; margin-left:auto; order:1; padding:calc(14px - 7px * var(--collapse)) 0; }
 .nav-container .nav-menu { display:none; order:3; flex-basis:100%; width:100%; flex-direction:column; align-items:stretch; gap:0; padding-bottom:12px; }
 .nav-container .nav-menu.mobile-open { display:flex; }
 .nav-container .nav-right { margin-left:0; }
 .nav-container .nav-menu.mobile-open .nav-link { padding:11px 10px!important; }
 .nav-container .dropdown-menu { position:static; box-shadow:none; width:100%; }
 .nav-weather { order:2; margin-left:16px; }
 .nav-weather-panel { position:fixed; top:auto; right:16px; margin-top:8px; max-height:calc(100dvh - 80px); overflow:auto; }
}

.nav-weather-full-link { display:block; margin-top:12px; color:#245e86; font-size:14px; text-align:center; text-decoration:underline; text-underline-offset:3px; }
.nav-weather-full-link:focus-visible { outline:3px solid #246087; outline-offset:3px; }
