body[data-site-page="weather"] {overflow-y:auto;}
.weather-header {max-width:1660px;margin:auto;padding-bottom:20px;gap:16px;}
.weather-header nav {display:flex;align-items:center;gap:16px;}
#weather-city-menu,.weather-city-panel-head {display:none;}
.weather-header .mode-link {padding:11px 20px;white-space:nowrap;}
#weather-account img {display:block;object-fit:cover;border-radius:50%;}
.weather-layout {position:relative;z-index:1;display:grid;grid-template-columns:270px minmax(0,1fr);max-width:1540px;width:calc(100% - 96px);margin:12px auto 52px;border-top:1px solid var(--line);}
.weather-sidebar {padding:30px 24px 24px 0;border-right:1px solid var(--line);}
#weather-search {display:flex;align-items:center;gap:6px;}
.weather-search-box {display:flex;align-items:center;min-width:0;flex:1;padding:0 0 0 15px;}
.weather-search-box>svg {width:20px;flex-shrink:0;}
.weather-search-box input {width:100%;min-width:0;border:0;background:transparent;padding:13px 8px;color:var(--ink);margin:0;outline-offset:0;}
.weather-layout .icon-button {display:inline-grid;place-items:center;width:42px;height:44px;min-width:36px;min-height:44px;padding:0;border:0;background:none;font-size:25px;}
.icon-button svg {width:24px;height:24px;}
.weather-search-region{position:relative;z-index:10;}
#weather-results {position:absolute;top:calc(100% + 8px);left:0;right:44px;z-index:20;max-height:min(356px,48svh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin:0;padding:6px;border:1px solid #ffffff32;border-radius:20px;background:#09090fe8;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 16px 45px #0009,inset 0 1px 0 #ffffff18;}
.city-result {text-align:left;width:100%;min-height:60px;border:0;border-radius:14px;padding:10px 13px;display:flex;flex-direction:column;gap:4px;background:transparent;}
.city-result strong{font-size:16px;font-weight:500;}
.city-result span {font-size:14px;color:var(--muted);}
.city-result:hover,.city-result:focus-visible,.city-result[aria-selected="true"] {background:#ffffff12;}
.city-tools {display:flex;align-items:center;justify-content:space-between;margin-top:20px;color:var(--muted);}
.city-tools button {padding:8px;}
#weather-cities {margin-top:16px;display:flex;flex-direction:column;gap:10px;}
.weather-city-row {display:flex;align-items:center;gap:2px;border-radius:24px;}
.weather-city-row.selected {background:#ffffff09;box-shadow:inset 0 0 0 1px #ffffff23;}
.city-select {flex:1;min-width:0;padding:12px 15px;border:0;background:none;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.city-reorder {display:flex;flex-shrink:0;}
.city-reorder button {font-size:19px!important;min-width:30px!important;width:30px!important;}
.weather-city-row[draggable="true"] {cursor:grab;}
.weather-city-row.drag-target {outline:1px solid var(--focus);}
#city-status {line-height:1.6;color:var(--muted);margin:16px 4px;font-size:15px;}
.weather-main {padding:26px 0 0 42px;min-width:0;}
.weather-notice {display:flex;align-items:center;gap:12px;}
.weather-notice:has(p:empty) {display:none;}
#weather-status {margin:0 0 12px;line-height:1.6;color:var(--muted);}
.weather-now {display:flex;align-items:center;justify-content:space-between;min-height:236px;gap:20px;}
.weather-city-heading {display:flex;align-items:center;gap:12px;}
.weather-city-heading h1 {font-size:25px;font-weight:500;margin:0;}
#weather-region {color:var(--muted);font-size:14px;margin:3px 0;}
#weather-temperature {font-family:Quicksand,sans-serif;font-size:clamp(76px,7.5vw,114px);letter-spacing:-.08em;line-height:1.18;}
.weather-now p {margin:3px 0;font-size:17px;}
#weather-condition {font-size:22px;}
#weather-highlow {color:#d4d1de;}
#weather-art {position:relative;display:grid;place-items:center;width:250px;height:185px;flex-shrink:0;}
#weather-art img {width:100%;height:100%;object-fit:contain;opacity:.86;}
#weather-art .weather-symbol {width:115px;height:115px;filter:drop-shadow(0 0 18px #b8a3ff33);color:#dfd6f4;stroke-width:.7;}
#weather-art .weather-overlay {position:absolute;bottom:0;width:90px;height:65px;color:#d0c5ef;}
.weather-metrics {display:flex;justify-content:space-between;gap:14px;padding:24px 0;margin:0;border-bottom:1px solid var(--line);}
.weather-metrics>div {display:flex;gap:9px;align-items:baseline;}
.weather-metrics dt {color:var(--muted);}.weather-metrics dd {margin:0;white-space:nowrap;}
.weather-main h2 {font-size:18px;font-weight:500;margin:19px 0 15px;}
.hourly-scroll {overflow-x:auto;scrollbar-width:thin;}
#weather-hours {position:relative;display:grid;grid-template-columns:repeat(12,minmax(70px,1fr));min-width:840px;padding:0 0 17px;}
.hour {position:relative;display:flex;align-items:center;flex-direction:column;gap:7px;padding-top:5px;}
.hour-degree {font-size:20px;height:29px;}
.hour-point {width:7px;height:7px;background:#e3dbf9;border-radius:50%;box-shadow:0 0 8px #d9cfff55;z-index:1;}
.hour-chart {position:absolute;left:0;top:44.5px;width:100%;height:42px;overflow:visible;}
.hour .weather-symbol {margin-top:10px;width:27px;height:27px;}
.hour-time {font-size:15px;}.hour-rain {color:var(--muted);font-size:13px;}
.weather-symbol {width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;}
.weather-daily {border-top:1px solid var(--line);}
.weather-day {display:grid;grid-template-columns:80px 40px 48px 1fr 48px 52px;align-items:center;gap:20px;min-height:43px;border-bottom:1px solid #ffffff0b;}
.day-low {color:var(--muted);text-align:right;}.day-range {position:relative;height:4px;border-radius:3px;background:#ffffff10;}
.day-range span {position:absolute;height:4px;border-radius:3px;background:linear-gradient(90deg,#888398,#dbd0ed);}
.day-rain {font-size:14px;color:var(--muted);text-align:right;}
.weather-source {display:flex;gap:18px;flex-wrap:wrap;margin:22px 0;color:var(--muted);font-size:14px;}
.weather-source a {text-decoration:underline;text-underline-offset:4px;}
@media(max-width:1050px){.weather-layout{width:calc(100% - 48px);grid-template-columns:220px minmax(0,1fr);}.weather-main{padding-left:26px;}.weather-sidebar{padding-right:15px;}.weather-metrics{display:grid;grid-template-columns:1fr 1fr;}.weather-day{gap:12px;grid-template-columns:60px 30px 36px 1fr 36px 42px;}#weather-art{width:190px;height:150px;}.weather-header nav{gap:6px;}}
@media(max-width:720px){.weather-header{padding:20px 18px 15px;flex-wrap:wrap;}.weather-header .wordmark{font-size:25px;}.weather-header nav{margin-left:auto;gap:2px;}.weather-header .mode-link{font-size:14px;padding:9px 12px;}.home-link{width:38px;height:40px;}#weather-account img{width:30px;height:30px;}.weather-layout{display:block;width:calc(100% - 36px);margin:0 18px 30px;}.weather-sidebar{padding:20px 0 0;border:0;}.weather-main{padding:18px 0 0;}#weather-cities{flex-direction:row;overflow-x:auto;margin-top:12px;gap:8px;padding:2px 0 10px;}.weather-city-row{flex-shrink:0;}.city-select{max-width:180px;}.city-tools{margin-top:8px;}.city-tools span{font-size:14px;}.city-tools button{min-height:36px;padding:6px 10px;}#city-status:empty{display:none;}.weather-now{min-height:210px;gap:8px;}#weather-temperature{font-size:86px;}#weather-art{width:155px;height:140px;}.weather-metrics{display:flex;flex-wrap:wrap;gap:14px 24px;padding:20px 0;font-size:14px;}.weather-metrics>div{gap:6px;}.weather-day{gap:10px;min-height:48px;grid-template-columns:48px 26px 34px 1fr 34px 38px;font-size:15px;}.weather-city-heading h1{font-size:24px;}.weather-main h2{font-size:17px;}.weather-source{font-size:13px;gap:12px;}}
@media(prefers-reduced-motion:reduce){.weather-layout *{scroll-behavior:auto;transition:none;}}
@media(max-width:720px){
  .weather-header{flex-wrap:nowrap;gap:8px;}.weather-header .wordmark{font-size:clamp(20px,5.4vw,25px);}
  #weather-mode{display:none;}#weather-city-menu{display:grid;background:transparent;border:0;padding:0;min-height:40px;min-width:38px;}
  .weather-layout:not(.cities-open) .weather-sidebar{display:none;}.weather-layout.cities-open .weather-main{display:none;}
  .weather-layout.cities-open .weather-sidebar{min-height:calc(100svh - 110px);padding:16px 0 30px;}
  .weather-city-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
  .weather-city-panel-head button{padding-left:2px;}.weather-city-panel-head .mode-link{padding:11px 18px;}
  .cities-open #weather-cities{flex-direction:column;overflow:visible;}.cities-open .city-select{max-width:none;}
  .cities-open .city-tools{margin-top:24px;}.weather-main{padding-top:12px;}
}

/* The city picker is a compact disclosure on desktop and a second-level page on phones. */
.weather-layout{display:block;max-width:1320px;}
.weather-main{padding:24px 0 0;}
#weather-city-menu{display:grid;background:transparent;border:0;padding:0;min-height:44px;min-width:44px;cursor:pointer;}
.weather-sidebar{display:none;position:absolute;left:0;top:12px;z-index:30;width:360px;max-width:100%;padding:20px;border:1px solid #ffffff24;border-radius:24px;background:#09090ff5;box-shadow:0 20px 60px #0009;backdrop-filter:blur(18px);}
.cities-open .weather-sidebar{display:block;}
#weather-cities{max-height:min(50svh,420px);overflow-y:auto;scrollbar-width:thin;}
.weather-city-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px;}
.weather-city-panel-head button{padding-left:0;}.weather-city-panel-head .mode-link{padding:9px 14px;font-size:14px;}
#weather-art{width:280px;height:240px;margin-right:3%;}#weather-art .weather-symbol{width:100%;height:100%;filter:none;opacity:1;}
.weather-metrics{display:flex;flex-wrap:wrap;gap:20px 30px;}.weather-metrics>div{flex-direction:column;gap:5px;}.weather-metrics dd{font-size:19px;}
.weather-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}.weather-section-head>span{color:var(--muted);font-size:13px;}
#weather-hour-metric{color:var(--ink);background:#0c0c12;border:1px solid var(--line);border-radius:18px;padding:7px 12px;font:inherit;font-size:14px;max-width:180px;}
.hour .weather-symbol{width:42px;height:42px;object-fit:contain;}.hour-degree{font-size:17px;white-space:nowrap;}.hour-date{font-size:12px;color:var(--muted);}
.weather-detail-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:52px;margin-top:10px;}
.weather-extra>section{border-top:1px solid var(--line);padding-bottom:14px;}
.weather-detail-list{display:grid;grid-template-columns:1fr 1fr;column-gap:24px;row-gap:15px;margin:15px 0 24px;}
.weather-detail-list>div{min-width:0;display:flex;flex-direction:column;gap:5px;}.weather-detail-list dt{color:var(--muted);font-size:14px;}.weather-detail-list dd{margin:0;font-size:16px;overflow-wrap:anywhere;}
.weather-day{grid-template-columns:50px 38px 32px 1fr 32px 40px;gap:12px;min-height:58px;cursor:pointer;list-style:none;}.weather-day::-webkit-details-marker{display:none;}.weather-day .weather-symbol{width:38px;height:38px;object-fit:contain;}.day-label{display:flex;flex-direction:column;gap:4px;}.day-date{font-size:12px;color:var(--muted);}.weather-day-detail[open]>.weather-day{background:#ffffff08;}.weather-day-detail>.weather-detail-list{padding:10px 12px;border-bottom:1px solid var(--line);}
#weather-sun-track{height:105px;position:relative;overflow:hidden;margin:25px 6px 8px;border-bottom:1px solid #ffffff20;}.sun-arc{position:absolute;left:4%;width:92%;height:165px;top:20px;border:1px dashed #cec0da66;border-radius:50%;}#weather-sun-dot{position:absolute;transform:translate(-50%,50%);object-fit:contain;}
#weather-air-summary{display:flex;align-items:baseline;gap:18px;color:var(--aq-color);border-left:2px solid var(--aq-color);padding-left:16px;}#weather-aqi{font-family:Quicksand,sans-serif;font-size:56px;}#weather-aqi-label{font-size:17px;}#weather-air-time{font-size:13px;color:var(--muted);margin:7px 0 20px;}
.weather-legend-section{border-top:1px solid var(--line);margin-top:20px;padding:20px 0;}.weather-legend-section summary{cursor:pointer;width:fit-content;}#weather-legend{display:flex;flex-wrap:wrap;gap:16px 24px;padding-top:22px;}#weather-legend figure{margin:0;width:100px;text-align:center;font-size:14px;color:var(--muted);}#weather-legend img{width:80px;height:80px;object-fit:contain;}
@media(max-width:1050px){.weather-detail-columns{gap:26px;}.weather-day{gap:8px;grid-template-columns:44px 32px 28px 1fr 28px 36px;}.weather-metrics{display:grid;grid-template-columns:repeat(3,1fr);}}
@media(max-width:800px){.weather-detail-columns{grid-template-columns:1fr;}.weather-extra{display:contents;}.weather-daily{order:2;}.weather-solar-section{order:0;}.weather-air-section{order:1;}.weather-extra>section:last-child{order:3;}}
@media(max-width:720px){
 .weather-layout.cities-open .weather-sidebar{position:static;width:100%;max-width:none;min-height:calc(100svh - 110px);border:0;border-radius:0;background:transparent;backdrop-filter:none;box-shadow:none;padding:16px 0 30px;}
 .weather-main{padding-top:14px;}.weather-now{min-height:220px;}#weather-art{width:160px;height:185px;margin-right:0;}#weather-temperature{font-size:86px;}.weather-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px 12px;}.weather-metrics dd{font-size:17px;}.weather-metrics dt{font-size:13px;}.weather-detail-columns{gap:16px;}.weather-day{grid-template-columns:46px 36px 32px 1fr 32px 38px;gap:10px;min-height:60px;}.weather-detail-list{column-gap:20px;}.weather-source{gap:12px;}#weather-legend{gap:16px 10px;}#weather-legend figure{width:calc((100% - 20px)/3);}
}

/* Spacious city management; search results remain anchored above the list. */
#weather-city-shade{position:fixed;inset:0;z-index:40;background:#0009;}
.weather-layout.cities-open .weather-sidebar{display:flex;flex-direction:column;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:41;width:min(820px,calc(100vw - 64px));height:min(620px,calc(100svh - 96px));max-width:none;padding:30px 34px;border:1px solid #ffffff2e;border-radius:28px;background:#08080ef5;box-shadow:0 24px 90px #000b;backdrop-filter:blur(20px);}
.weather-city-panel-head{flex:none;margin:0 0 24px;}.weather-city-panel-head h2{font-size:25px;font-weight:500;margin:0;}.weather-city-panel-head .icon-button{width:44px;height:44px;}
.weather-search-region{flex:none;}#weather-search{gap:12px;}.weather-search-box{padding-left:20px;min-height:62px;border-radius:24px;}.weather-search-box>svg{width:23px;}.weather-search-box input{font-size:20px;padding:18px 14px;line-height:1.3;}
.weather-search-box input:focus{outline:none;border:0;box-shadow:none;}.weather-search-box:focus-within{outline:1px solid #d4c4ef66;outline-offset:3px;}
#weather-locate{width:52px;min-height:58px;}#weather-results{right:64px;max-height:min(346px,calc(100svh - 300px));padding:8px;border-radius:22px;background:#0d0d15fa;}.city-result{min-height:67px;padding:12px 16px;}.city-result strong{font-size:19px;}.city-result span{font-size:15px;}
.city-tools{margin-top:28px;font-size:18px;flex:none;}.city-tools button,.city-tools a{font-size:17px;padding:10px 12px;}#weather-cities{flex:1;min-height:0;max-height:none;gap:8px;margin-top:12px;padding:0 2px;}.city-select{font-size:21px;padding:17px 18px;}.weather-city-row{flex-shrink:0;border-radius:20px;}#city-status{font-size:17px;margin:18px 2px 4px;}#city-status:empty{display:none;}
#weather-hours{padding:6px 0 22px;}.hour{padding:0;gap:8px;}.hour-plot{position:relative;flex:none;width:100%;height:224px;}.hour-degree{position:absolute;left:50%;top:calc(28px + var(--point-y) - 14px);transform:translate(-50%,-100%);height:auto;line-height:1.3;}.hour-point{position:absolute;left:50%;top:calc(28px + var(--point-y));transform:translate(-50%,-50%);}.hour-chart{top:34px;height:188px;}.hour .weather-symbol{margin-top:0;}.hourly-scroll{scrollbar-color:#8d889b55 transparent;}
#weather-sun-dot[hidden]{display:none;}
@media(min-width:721px){body[data-site-page="weather"]:has(.cities-open){overflow:hidden;}}
@media(max-width:720px){
 #weather-city-shade{display:none;}.weather-layout.cities-open .weather-sidebar{position:static;transform:none;left:auto;top:auto;width:100%;height:auto;min-height:calc(100svh - 112px);padding:16px 0 24px;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;}
 .weather-city-panel-head{margin-bottom:22px;}.weather-city-panel-head h2{font-size:25px;}.weather-search-box{min-height:58px;padding-left:17px;border-radius:22px;}.weather-search-box input{font-size:18px;padding:17px 10px;}#weather-search{gap:8px;}#weather-locate{width:44px;min-width:44px;}#weather-results{right:52px;max-height:min(380px,48svh);}.city-result strong{font-size:18px;}.city-select{font-size:21px;padding:17px 14px;}.cities-open #weather-cities{flex:0 1 auto;overflow:visible;margin-top:14px;}.cities-open .city-tools{margin-top:30px;}
}

/* A retained shell may predate the shared palette during an in-page navigation. */
.hour-chart path { stroke:var(--ui-blue,#98bdf4); }
.hour-point { background:var(--ui-blue,#98bdf4);box-shadow:0 0 8px #98bdf430; }
#weather-city-menu svg,#weather-locate svg { color:var(--ui-blue,#98bdf4); }
.weather-city-row.selected { background:#98bdf40d;box-shadow:inset 0 0 0 1px #98bdf42c; }
#weather-export{flex:none;color:var(--ui-blue,#98bdf4);}
#weather-export svg{width:22px;height:22px;}
#weather-export:disabled{opacity:.35;cursor:default;}
#weather-export:focus-visible{outline:1px solid var(--ui-blue,#98bdf4);outline-offset:3px;}
