:root{color-scheme:light;--bg:#f6f8fb;--card:#fff;--fg:#17263b;--muted:#8290a2;--muted2:#59697c;--line:#e9edf2;--accent:#4388bf;--accent-soft:#eef6ff;--shadow:0 10px 45px rgba(23,40,64,.035);--night:#e2e8f0;--chart-grid:#e7ecf2;--tile:#f8fafc}
:root[data-theme="dark"]{color-scheme:dark;--bg:#111a27;--card:#1a2636;--fg:#f3f6fa;--muted:#96a8be;--muted2:#becbdd;--line:#2e3d4e;--accent:#84c4f6;--accent-soft:#24374c;--shadow:0 14px 44px rgba(0,0,0,.12);--night:#26374a;--chart-grid:#304158;--tile:#202e3f}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--fg);font-family:'DM Sans',Arial,sans-serif;font-size:14px;line-height:1.45}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:var(--accent)}.app-shell{max-width:1370px;margin:0 auto;padding:0 34px}.hidden{display:none!important}.site-header{height:94px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;gap:12px;align-items:center}.wordmark strong{font:700 24px 'Outfit',sans-serif;letter-spacing:-.8px}.brand-dot,.accent-dot{color:#e8ae63}.wordmark-sub{font-size:10px;color:var(--muted);letter-spacing:1.1px;text-transform:uppercase;display:block;margin-top:-3px}.logo-mark{width:38px;height:38px;display:grid;place-items:center;color:white;border-radius:12px;background:linear-gradient(140deg,#7abdd8,#4b7db6);font-size:26px}.header-actions{display:flex;align-items:center;gap:11px}.icon-button,.refresh-button,.outlined-button{border:1px solid var(--line);background:var(--card);color:var(--fg);border-radius:12px;height:42px;padding:0 14px;display:inline-flex;gap:10px;align-items:center;justify-content:center;font-weight:600}.icon-button{width:42px;padding:0;font-size:21px}.refresh-button span:first-child{font-size:22px;line-height:0}.welcome-row{display:flex;justify-content:flex-end;align-items:center;padding:22px 0 20px}.eyebrow,.section-caption{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--muted);text-transform:uppercase}.welcome-row h1{font:700 45px/1.06 'Outfit',sans-serif;letter-spacing:-1.5px;margin:12px 0}.subtext{color:var(--muted2);margin:0}.location-search-wrap{position:relative;width:360px;max-width:100%}.location-search-wrap label{font-size:10px;font-weight:800;color:var(--muted);letter-spacing:1.7px;margin-bottom:9px;display:block}.search-box{display:flex;align-items:center;border:1px solid var(--line);background:var(--card);border-radius:13px;box-shadow:var(--shadow);padding:0 10px 0 15px;height:52px;gap:7px}.search-icon{font-size:27px;color:var(--muted);line-height:1}.search-box input{min-width:0;flex:1;background:transparent;border:0;outline:0;color:var(--fg);font-size:13px}.search-box input::placeholder{color:var(--muted)}.gps-btn{border:0;background:var(--accent-soft);color:var(--accent);border-radius:9px;width:30px;height:30px;font-size:23px;display:grid;place-items:center}.search-results{position:absolute;left:0;right:0;top:100%;margin-top:7px;z-index:600;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 14px 40px rgba(0,0,0,.13);max-height:280px;overflow:auto}.search-option{padding:12px 16px;display:block;background:transparent;color:var(--fg);width:100%;text-align:left;border:0;border-bottom:1px solid var(--line)}.search-option:hover,.search-option:focus{background:var(--accent-soft)}.search-option small{display:block;color:var(--muted);margin-top:2px}.search-empty{padding:14px 18px;color:var(--muted2)}.surface{background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.overview-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);gap:18px}.current-card{padding:29px 32px}.section-caption{display:flex;align-items:center;gap:9px}.soft-dot{width:7px;height:7px;border-radius:50%;background:#7ac49f}.live-label{margin-left:auto;letter-spacing:1px;color:#74a4b3;font-size:9px}.current-main{display:flex;align-items:center;justify-content:space-between;min-height:195px;gap:18px}.current-main h2{font:700 22px 'Outfit',sans-serif;letter-spacing:-.3px;margin:22px 0 0}.current-date{font-size:12px;color:var(--muted);margin:3px 0}.current-temp-row{display:flex;align-items:flex-start;font:700 91px/.98 'Outfit',sans-serif;letter-spacing:-5px;margin:14px 0 6px}.degrees{font-size:28px;letter-spacing:-1px;margin:8px 0 0 3px;color:var(--muted)}.condition-text{font-weight:700;font-size:15px;color:var(--muted2)}.current-icon{font-size:100px;line-height:1;filter:drop-shadow(0px 10px 16px rgba(140,163,178,.16));padding-right:14px}.current-stats{border-top:1px solid var(--line);padding-top:21px;margin-top:15px;display:grid;grid-template-columns:repeat(4,1fr)}.current-stats>div{padding:0 14px;border-left:1px solid var(--line)}.current-stats>div:first-child{border:0;padding-left:0}.current-stats span{display:block;font-size:9px;letter-spacing:1.2px;color:var(--muted);font-weight:800;margin-bottom:8px}.current-stats strong{font:600 20px 'Outfit',sans-serif}.astro-card{padding:28px 32px;position:relative;overflow:hidden}.soft-sun{margin-left:auto;color:#e7b96b;font-size:17px;line-height:1}.astro-icon{margin-top:30px;font-size:50px;color:#d8b681}.astro-title{font:700 21px 'Outfit',sans-serif;margin-top:9px}.astro-sub{color:var(--muted);font-size:12px;margin-top:5px}.sun-lines{margin-top:23px;padding-top:13px;border-top:1px solid var(--line)}.sun-lines>div{height:34px;display:flex;align-items:center;gap:9px;color:var(--muted2);font-size:12px}.sun-lines strong{margin-left:auto;color:var(--fg);font-weight:700}.sunmini{color:#eab870;font-size:17px}.section{margin-top:18px;padding:29px 32px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.section-head h2{font:700 24px 'Outfit',sans-serif;letter-spacing:-.5px;margin:6px 0 0}.section-aside{font-size:11px;color:var(--muted)}.scroll-region{overflow-x:auto;scrollbar-color:#aabdd0 transparent;scrollbar-width:thin;padding-bottom:6px}.hourly-grid{display:flex;min-width:max-content;padding-bottom:6px;gap:0}.hour-card{min-width:101px;max-width:101px;text-align:center;padding:8px 7px 13px;border-right:1px solid var(--line)}.hour-card:first-child{padding-left:0}.hour-card:last-child{border:0}.hour-label{color:var(--muted2);font-size:11px;font-weight:700}.hour-symbol{font-size:37px;margin:13px 0 11px;line-height:1.2}.hour-temp{font:700 21px 'Outfit',sans-serif}.hour-rain{font-size:11px;margin-top:7px;color:#4e9cca}.trend-card{padding-bottom:19px}.chart-legend{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.metric-chip{background:var(--tile);border:1px solid var(--line);color:var(--muted2);padding:8px 11px;border-radius:9px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:7px;opacity:.62}.metric-chip[aria-pressed="true"]{background:var(--card);opacity:1;color:var(--fg);box-shadow:0 2px 8px rgba(0,0,0,.025)}.chip-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.trend-scroll{margin-left:-5px;margin-right:-5px}.wide-forecast{width:1200px;min-width:1200px;padding:0 5px}.daily-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden}.daily-card{padding:17px 6px 13px;text-align:center;background:var(--card);color:var(--fg);border:0;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;min-width:0}.daily-card:last-child{border-right:0}.daily-card:hover,.daily-card[aria-expanded="true"]{background:var(--accent-soft)}.daily-day{font-weight:700;font-size:12px}.daily-date{font-size:10px;color:var(--muted);margin-top:2px}.daily-icon{font-size:38px;line-height:1.3;margin:14px 0 10px}.daily-high{font:700 19px 'Outfit',sans-serif}.daily-low{font-size:13px;color:var(--muted);margin-left:4px}.daily-rain{font-size:11px;color:#5da5d1;margin-top:9px}.daily-details{display:flex;align-items:center;gap:22px;border:1px solid var(--line);border-top:0;padding:15px 20px;border-radius:0 0 14px 14px;background:var(--accent-soft);font-size:12px;flex-wrap:wrap}.daily-details strong{font-size:14px}.daily-details span{color:var(--muted2)}.chart-header{display:flex;justify-content:space-between;align-items:center;padding:23px 1px 13px;gap:12px}.chart-header>div:first-child{font-weight:800;letter-spacing:1.5px;font-size:10px;color:var(--muted)}.chart-readout{color:var(--muted2);font-size:11px}.chart-holder{position:relative}.chart-holder svg{width:1200px;height:240px;display:block;overflow:visible;touch-action:pan-y}.chart-holder text{fill:var(--muted);font-size:11px;font-family:'DM Sans',Arial,sans-serif}.chart-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding:10px 3px 0;color:var(--muted);font-size:10px}.chart-footer i{width:12px;height:10px;display:inline-block;background:var(--night);margin-right:4px;vertical-align:middle}.chart-hint{display:none;color:var(--muted);font-size:11px}.radar-small-label{font:800 9px 'DM Sans',sans-serif;letter-spacing:1px;color:var(--accent);background:var(--accent-soft);padding:5px 7px;border-radius:6px;vertical-align:middle;margin-left:7px}.radar-note{font-size:12px;color:var(--muted2);margin:-13px 0 19px}.outlined-button{height:37px;font-size:12px}.radar-map{height:378px;border-radius:13px;background:var(--tile);overflow:hidden;position:relative;z-index:0}.map-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}.radar-controls{display:flex;gap:20px;align-items:center;padding:19px 0 2px}.play-btn{height:42px;min-width:95px;background:var(--fg);border:0;border-radius:10px;color:var(--card);font-weight:700;display:flex;gap:10px;align-items:center;justify-content:center}.radar-timeline{flex:1}.radar-time-top,.radar-time-labels{display:flex;align-items:center;justify-content:space-between}.radar-time-top{font-size:11px;font-weight:700;margin-bottom:7px}.radar-time-top span:last-child{font-size:9px;letter-spacing:1px;color:var(--accent)}#radar-slider{width:100%;height:7px;accent-color:var(--accent);cursor:pointer}.radar-time-labels{margin-top:7px;color:var(--muted);font-size:9px;letter-spacing:.6px}.radar-error{padding:10px 0;color:#bc765d;font-size:12px}.status{margin:-8px 0 18px;padding:12px 15px;border-radius:10px;background:var(--accent-soft);color:var(--muted2);font-size:13px}.footer{border-top:1px solid var(--line);margin:28px 0 24px;padding:23px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px;color:var(--muted);font-size:10px}.footer a{color:var(--muted2);text-decoration:none}.footer a:hover{text-decoration:underline}.footer-divider{margin:0 8px}.radar-modal{position:fixed;inset:0;background:rgba(3,12,22,.77);z-index:1000;display:flex;align-items:center;justify-content:center;padding:30px}.modal-panel{width:min(1200px,100%);height:min(860px,95vh);padding:20px;background:var(--card);border-radius:17px;display:flex;flex-direction:column;gap:15px}.modal-header{display:flex;align-items:center;justify-content:space-between;font:700 20px 'Outfit',sans-serif}.expanded-map{flex:1;min-height:200px;border-radius:11px;overflow:hidden}.modal-panel p{font-size:11px;color:var(--muted);margin:0}.modal-panel p span{color:var(--accent)}button:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:1050px){.app-shell{padding:0 24px}.overview-grid{grid-template-columns:1.6fr 1fr}.current-card,.astro-card,.section{padding:24px}.current-icon{font-size:77px}.current-temp-row{font-size:75px}.current-stats strong{font-size:17px}.current-stats>div{padding:0 8px}}
@media(max-width:750px){.app-shell{padding:0 17px}.site-header{height:75px}.wordmark strong{font-size:21px}.wordmark-sub{font-size:8px}.welcome-row{padding:18px 0 18px;justify-content:stretch}.location-search-wrap{margin-left:auto}.location-search-wrap{width:100%}.overview-grid{grid-template-columns:1fr;gap:13px}.current-card,.astro-card,.section{padding:21px}.current-main{min-height:167px}.current-main h2{margin-top:17px}.current-icon{font-size:82px;padding:0}.current-temp-row{font-size:77px}.astro-card{display:grid;grid-template-columns:1.15fr .85fr;column-gap:8px}.astro-card>.section-caption{grid-column:1/-1}.astro-icon{margin-top:12px;grid-column:1;font-size:40px}.astro-title,.astro-sub{grid-column:1}.astro-title{font-size:19px}.sun-lines{margin-top:-72px;grid-row:2/5;grid-column:2;align-self:end}.section{margin-top:13px}.section-head{margin-bottom:19px}.section-head h2{font-size:21px}.section-aside{font-size:10px}.hour-card{min-width:92px;max-width:92px}.radar-map{height:325px}.radar-controls{gap:9px}.radar-note{margin-top:-9px}.chart-hint{display:block}.radar-modal{padding:8px}.modal-panel{height:95vh;padding:13px}.footer{font-size:10px}.footer>div{line-height:1.8}}
@media(max-width:430px){.current-stats{grid-template-columns:repeat(2,1fr);gap:18px 0}.current-stats>div:nth-child(3){border:0;padding-left:0}.current-icon{font-size:67px}.current-temp-row{font-size:69px}.current-card,.astro-card,.section{padding:18px}.refresh-button{padding:0 12px}.refresh-button span:last-child{display:none}.section-aside{max-width:110px;text-align:right}.outlined-button span{display:none}.radar-time-labels{font-size:8px}}

/* v1.2: Location search sits beside the theme toggle in the header. */
.site-header { position: relative; z-index: 100; }
.header-actions { flex-shrink: 0; }
.location-search-wrap { width: 320px; max-width: none; position: relative; }
.location-search-panel { position: relative; }
.location-search-wrap .search-box { height: 42px; border-radius: 12px; box-shadow: none; }
.search-toggle { display: none; }
main { padding-top: 22px; }
.status { margin-top: 0; }
@media (max-width: 1050px) and (min-width: 751px) {
  .location-search-wrap { width: clamp(210px, 28vw, 320px); }
}
@media (max-width: 750px) {
  /* On mobile the search icon reveals a dropdown anchored to the header. */
  .location-search-wrap { width: auto; max-width: none; position: static; margin-left: 0; }
  .search-toggle { display: inline-flex; }
  .location-search-panel {
    display: none; position: absolute; top: calc(100% + 9px); right: 0;
    width: min(360px, calc(100vw - 34px)); z-index: 800;
    border-radius: 13px; background: var(--card);
    box-shadow: 0 12px 36px rgba(15, 29, 46, .13);
  }
  .location-search-wrap.search-open .location-search-panel { display: block; }
  .search-results { z-index: 810; }
  main { padding-top: 18px; }
}
@media (max-width: 430px) {
  .header-actions { gap: 6px; }
  .header-actions .icon-button, .header-actions .refresh-button { height: 38px; }
  .header-actions .icon-button { width: 38px; }
  .wordmark strong { font-size: 19px; }
  .logo-mark { width: 34px; height: 34px; }
}
