/*
Theme Name: Solmoln
Theme URI: https://solmoln.se/
Author: Solmoln
Description: A calm, mobile-first and server-rendered Swedish weather experience.
Version: 0.5.9
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: solmoln
License: GPL-2.0-or-later
*/
:root{--ink:#13253a;--ink-soft:#324b63;--muted:#50677d;--canvas:#f5f8fb;--surface:#fff;--line:#dbe5ec;--sky:#eaf7ff;--sky-deep:#cceaff;--sun:#f3ab22;--blue:#086cc8;--blue-deep:#07569e;--green:#237b5e;--shadow:0 14px 36px rgba(31,67,102,.10);--radius:20px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--canvas);line-height:1.5}a{color:var(--blue-deep);text-underline-offset:.16em}a:hover{color:#043a6f}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #0a76d5;outline-offset:3px;border-radius:5px}.shell{width:min(100% - 2rem,1200px);margin-inline:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;left:1rem;top:-6rem;z-index:100;color:var(--ink);background:#fff;padding:.7rem 1rem}.skip-link:focus{top:1rem}.eyebrow{margin:0 0 .45rem;text-transform:uppercase;font-size:.73rem;line-height:1.2;letter-spacing:.13em;font-weight:800;color:#50708b}.site-header{position:relative;z-index:5;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line)}.site-header__inner{min-height:4rem;display:flex;align-items:center;justify-content:space-between;gap:.8rem}.brand{display:inline-flex;align-items:center;gap:.45rem;color:var(--ink);font-size:1.16rem;font-weight:820;letter-spacing:-.04em;text-decoration:none}.brand-mark{width:1.4rem;height:1.4rem;display:inline-flex;align-items:flex-end;gap:2px}.brand-mark i{width:4px;border-radius:99px;background:var(--sun);display:block}.brand-mark i:nth-child(1){height:7px}.brand-mark i:nth-child(2){height:13px;background:#69aee0}.brand-mark i:nth-child(3){height:9px;background:var(--blue)}.site-nav{display:flex;align-items:center;gap:.15rem}.site-nav a{display:inline-flex;align-items:center;min-height:42px;padding:.55rem .52rem;text-decoration:none;color:var(--ink-soft);font-size:.88rem;font-weight:720}.site-nav a:hover{color:var(--blue-deep)}.site-nav__more{display:none!important}main{min-height:calc(100vh - 15rem)}h1,h2,h3,p{overflow-wrap:break-word}.home-hero{background:linear-gradient(150deg,#eef9ff 0%,#f8fbfd 53%,#f5f8fb 100%);padding:2.2rem 0 2.5rem;border-bottom:1px solid #e2edf4}.home-hero__grid{display:grid;gap:1.6rem}.home-hero__intro h1{max-width:9ch;font-size:clamp(2.45rem,12vw,4.4rem);line-height:.98;letter-spacing:-.07em;margin:.2rem 0 1rem}.home-hero__lead{max-width:40rem;margin:0 0 1.35rem;color:var(--ink-soft);font-size:1.06rem}.location-search{position:relative;max-width:36rem}.location-search label{display:block;margin:0 0 .4rem;font-weight:750;font-size:.93rem}.location-search__controls{display:flex;gap:.45rem}.location-search input{min-width:0;flex:1;height:48px;border:1px solid #bacbd8;border-radius:11px;background:#fff;padding:0 .85rem;color:var(--ink);font:inherit}.location-search button{height:48px;border:0;border-radius:11px;background:var(--blue);padding:0 .9rem;color:#fff;font:inherit;font-weight:750;cursor:pointer}.location-search button:hover{background:var(--blue-deep)}.location-button{display:inline-flex!important;align-items:center;gap:.4rem;height:auto!important;margin-top:.65rem;padding:.45rem 0!important;background:transparent!important;color:var(--blue-deep)!important;text-decoration:underline;text-underline-offset:.16em}.location-button:before{content:'⌖';font-size:1.15rem}.location-search__privacy{margin:.42rem 0 0;color:var(--muted);font-size:.78rem}.location-results{position:absolute;z-index:10;left:0;right:0;top:4.85rem;padding:.35rem;background:#fff;border:1px solid #bed1e0;border-radius:12px;box-shadow:var(--shadow)}.location-results a{display:block;padding:.7rem .75rem;border-radius:8px;color:var(--ink);font-weight:650;text-decoration:none}.location-results a:hover,.location-results a[aria-selected=true]{background:var(--sky);color:var(--blue-deep)}.home-weather{padding:1.3rem;background:linear-gradient(145deg,#0b6db7,#178bd1);border-radius:var(--radius);color:#fff;box-shadow:0 17px 35px rgba(17,103,161,.22)}.home-weather .eyebrow{color:#d6f0ff}.home-weather h2{margin:0;font-size:1.65rem;letter-spacing:-.045em}.home-weather-grid{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:end}.home-temperature{margin:.25rem 0 0;font-size:4rem;line-height:.82;font-weight:850;letter-spacing:-.1em}.home-condition{margin:.35rem 0 0;font-weight:720}.home-weather-detail{max-width:13rem;padding-bottom:.15rem}.home-weather-detail p{margin:0 0 .45rem;font-size:.88rem}.button-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin-top:.55rem;border-radius:9px;padding:.62rem .85rem;background:#fff;color:var(--blue-deep);font-weight:760;text-decoration:none}.button-link:hover{background:#e8f6ff}.home-weather--waiting{background:linear-gradient(145deg,#457090,#315b7d)}.home-weather--waiting p:not(.eyebrow){margin:.6rem 0}.home-guidance{display:grid;gap:1.2rem;padding:3rem 0}.home-guidance h2,.home-locations h2{margin:0;font-size:clamp(1.7rem,5vw,2.5rem);letter-spacing:-.055em}.home-guidance__items{display:grid;gap:1rem}.home-guidance__items article{padding:1rem 0;border-top:1px solid var(--line)}.home-guidance__items h3{margin:0 0 .3rem;font-size:1.03rem}.home-guidance__items p{margin:0;color:var(--ink-soft)}.home-locations{display:flex;flex-direction:column;align-items:flex-start;gap:1rem;margin-bottom:3rem;padding:1.5rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.home-locations p{max-width:34rem;margin:.45rem 0 0;color:var(--ink-soft)}.button-link--secondary{background:var(--blue);color:#fff}.button-link--secondary:hover{background:var(--blue-deep)}.weather-page{padding-block:1rem 3rem}.breadcrumbs{margin:0 0 .8rem;color:var(--muted);font-size:.79rem}.breadcrumbs a{color:inherit}.breadcrumbs--quiet{opacity:.8}.weather-hero{overflow:hidden;padding:1.35rem;background:linear-gradient(145deg,#e0f5ff 0%,#fff 72%);border:1px solid #cbe6f5;border-radius:var(--radius);box-shadow:var(--shadow)}.weather-headline{display:grid;grid-template-columns:1fr auto;gap:.75rem;align-items:center}.weather-headline h1{margin:0;font-size:clamp(2.25rem,10vw,3.9rem);line-height:.98;letter-spacing:-.075em}.temperature{margin:.35rem 0 .15rem;font-size:clamp(4.5rem,23vw,7.2rem);line-height:.76;font-weight:860;letter-spacing:-.115em}.condition{margin:.55rem 0 0;font-size:1.08rem;font-weight:760}.weather-icon{width:5rem;height:5rem;display:grid;place-items:center;color:var(--sun);filter:drop-shadow(0 7px 9px rgba(226,154,24,.18))}.weather-icon svg{width:100%;height:100%;fill:currentColor}.weather-icon--cloudy{color:#758da5}.weather-icon--rain,.weather-icon--sleet{color:#1175c9}.weather-icon--snow{color:#1e9cc8}.weather-icon--thunder{color:#6445a3}.weather-icon--fog{color:#8796a5}.weather-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin:1.35rem 0 0;padding:0;list-style:none}.weather-meta li{min-height:69px;padding:.72rem;background:rgba(255,255,255,.76);border:1px solid rgba(199,221,235,.9);border-radius:11px}.weather-meta span{display:block;color:var(--muted);font-size:.73rem;font-weight:750}.weather-meta strong{display:block;margin-top:.14rem;font-size:.95rem}.data-note{margin:1rem 0 0;color:var(--muted);font-size:.84rem}.data-note--source{max-width:64rem;margin-top:1.7rem}.notice{margin:1rem 0 0;padding:.8rem .9rem;border-left:4px solid #bd7700;border-radius:0 10px 10px 0;background:#fff5dd;color:#6d4a00}.weather-summary{margin-top:1.2rem;padding:1.2rem 1.25rem;background:#fff;border:1px solid var(--line);border-radius:16px}.weather-summary h2{margin:.05rem 0 .55rem;font-size:1.25rem;letter-spacing:-.04em}.weather-summary p:not(.eyebrow){margin:.3rem 0;color:var(--ink-soft);font-weight:620}.weather-section{margin-top:1.8rem}.weather-section h2{margin:.05rem 0 .85rem;font-size:1.35rem;letter-spacing:-.045em}.hourly-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(7.1rem,1fr);gap:.65rem;overflow-x:auto;padding:.1rem .05rem .8rem;scroll-snap-type:x proximity;scrollbar-color:#a8bdcd transparent}.hour-card{min-height:12.25rem;padding:.8rem .65rem;background:#fff;border:1px solid var(--line);border-radius:14px;text-align:center;scroll-snap-align:start}.hour-card time{color:var(--muted);font-size:.82rem;font-weight:760}.hour-card .weather-icon{width:2.55rem;height:2.55rem;margin:.4rem auto}.hour-card strong{display:block;font-size:1.2rem}.hour-card p{min-height:1.25rem;margin:.08rem 0;color:var(--ink-soft);font-size:.77rem}.hour-card small{display:block;color:var(--muted);font-size:.7rem}.daily-list{display:grid;gap:.5rem}.daily-row{display:grid;grid-template-columns:3.5rem 2.1rem 1fr auto;gap:.55rem;align-items:center;padding:.72rem .8rem;background:#fff;border:1px solid var(--line);border-radius:13px}.daily-row .weather-icon{width:2rem;height:2rem}.daily-condition{color:var(--ink-soft);font-size:.86rem}.daily-rain{display:none;color:var(--muted);font-size:.78rem}.daily-temps{justify-self:end;white-space:nowrap;font-weight:780}.daily-temps span{margin-right:.25rem;color:var(--muted);font-weight:600}.fallback{max-width:42rem;margin:2.5rem auto;padding:1.5rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.fallback h1{margin:.15rem 0 .8rem;font-size:clamp(2rem,8vw,3rem);letter-spacing:-.06em}.fallback__lead{font-size:1.1rem;font-weight:720}.weather-hub{max-width:800px;padding-block:1.5rem 3rem}.weather-hub h1{margin:.15rem 0 .55rem;font-size:clamp(2.2rem,8vw,3.6rem);letter-spacing:-.07em}.weather-hub__lead{max-width:40rem;margin:0 0 1.5rem;color:var(--ink-soft);font-size:1.05rem}.available-locations{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--line)}.available-locations h2{font-size:1.15rem}.location-link{display:flex;justify-content:space-between;max-width:32rem;margin-top:.75rem;padding:.9rem 1rem;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);font-weight:760;text-decoration:none}.location-link span{color:var(--muted);font-weight:600;font-size:.85rem}.site-footer{background:#182d42;color:#d5e2eb}.site-footer a{color:#fff}.site-footer__grid{display:grid;gap:1.55rem;padding:2.5rem 0 1.8rem}.site-footer .brand{color:#fff}.site-footer p{max-width:20rem;margin:.7rem 0 0;color:#b7c9d6;font-size:.88rem}.site-footer nav{display:grid;gap:.45rem;align-content:start}.site-footer nav h2{margin:0 0 .15rem;color:#93b9d5;font-size:.76rem;letter-spacing:.1em;text-transform:uppercase}.site-footer nav a{font-size:.88rem}.site-footer__bottom{display:flex;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid rgba(213,226,235,.19);color:#b7c9d6;font-size:.78rem}@media(min-width:650px){.shell{width:min(100% - 3.5rem,1200px)}.site-nav{gap:.25rem}.site-nav a{padding-inline:.8rem}.home-hero{padding:3.8rem 0}.home-hero__grid{grid-template-columns:minmax(0,1.08fr) minmax(285px,.92fr);align-items:center;gap:2.5rem}.home-guidance{grid-template-columns:.8fr 1.5fr;gap:3rem}.home-guidance__items{grid-template-columns:repeat(3,1fr);gap:1.3rem}.home-guidance__items article{padding-top:0;border-top:0;border-left:1px solid var(--line);padding-left:1.15rem}.home-locations{flex-direction:row;align-items:center;justify-content:space-between;padding:2rem}.weather-page{padding-block:1.7rem 4rem}.weather-hero{padding:2.1rem}.weather-meta{grid-template-columns:repeat(5,minmax(0,1fr))}.weather-section h2{font-size:1.55rem}.hourly-scroll{grid-auto-columns:minmax(7.5rem,1fr)}.daily-row{grid-template-columns:6.5rem 2.4rem minmax(0,1fr) 4rem auto;padding:.85rem 1rem}.daily-rain{display:block}.site-footer__grid{grid-template-columns:1.4fr repeat(3,1fr)}}@media(min-width:1000px){.site-nav__more{display:inline-flex!important}.home-weather{padding:1.7rem}.home-weather h2{font-size:2rem}.weather-page{width:min(100% - 3.5rem,1160px)}.weather-hero{padding:2.6rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(540px,.95fr);gap:1.3rem;align-items:end}.weather-hero .data-note,.weather-hero .notice{grid-column:1/-1}.weather-meta{margin:0}.weather-summary{display:grid;grid-template-columns:1fr 1.5fr;column-gap:2rem;align-items:center}.weather-summary .eyebrow,.weather-summary h2{grid-column:1}.weather-summary p:not(.eyebrow){grid-column:2}.weather-section{margin-top:2.3rem}.hourly-scroll{grid-auto-flow:initial;grid-template-columns:repeat(6,1fr);overflow:visible}.hour-card:nth-child(n+7){display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Accessibility correction: quiet breadcrumbs remain readable. */
.breadcrumbs--quiet{opacity:1}
/* 0.4 — glance-first weather UI */
.weather-signals{display:grid;gap:.55rem;margin:1.2rem 0 0}.weather-signal{display:grid;grid-template-columns:2rem 1fr auto;align-items:center;gap:.55rem;padding:.7rem .8rem;background:rgba(255,255,255,.8);border:1px solid var(--line);border-radius:12px}.weather-signal__icon{font-size:1.35rem;line-height:1}.weather-signal span{font-size:.8rem;color:var(--muted);font-weight:700}.weather-signal strong{font-size:.95rem}.weather-signal__value{justify-self:end;color:var(--ink)!important;font-weight:800!important}.rain-panel{margin-top:.7rem;padding:.8rem;background:#fff;border:1px solid var(--line);border-radius:12px}.rain-panel__head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;font-size:.82rem}.rain-mini{height:58px;display:flex;align-items:flex-end;gap:.35rem;margin-top:.35rem}.rain-mini__hour{height:58px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px}.rain-mini__bar{display:block;width:min(100%,16px);min-height:3px;border-radius:4px 4px 2px 2px;background:#2587d5}.rain-mini time{font-size:.65rem;color:var(--muted)}.weather-meta--compact{grid-template-columns:repeat(2,minmax(0,1fr))}.weather-meta--compact li:has(strong:empty){display:none}.weather-updated{margin:.75rem 0 0;color:var(--muted);font-size:.75rem}.home-hero__intro h1{max-width:11ch}.home-locations{margin-top:1.5rem}.home-weather-signals{display:grid;gap:.35rem;margin:.8rem 0}.home-weather-signal{display:flex;justify-content:space-between;gap:.6rem;font-size:.84rem}.home-weather-signal b{font-weight:800}.home-weather-detail{max-width:15rem}.weather-summary{border:0;background:transparent;padding:.3rem 0}.weather-summary h2{display:none}.weather-summary .eyebrow{display:none}@media(max-width:649px){.home-hero{padding:1.55rem 0 1.8rem}.home-hero__grid{gap:1.15rem}.home-hero__intro h1{font-size:2.65rem;margin:.1rem 0 1rem}.location-search__controls{width:100%}.location-search__controls input{width:100%}.location-search__controls button{flex:0 0 auto}.weather-page{padding-top:.6rem}.weather-hero{padding:1.1rem}.weather-headline h1{font-size:2.15rem}.temperature{font-size:5rem}.weather-icon{width:4.3rem;height:4.3rem}.weather-meta{margin-top:.8rem}.weather-meta li{min-height:58px;padding:.6rem}.hour-card{min-height:10.5rem}.hour-card p{display:none}.home-locations{padding:1rem 1.1rem}}
@media(min-width:1000px){.weather-hero{grid-template-columns:minmax(0,.8fr) minmax(480px,1.2fr)}.weather-signals{margin:0}.weather-meta--compact{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:.7rem}.rain-panel{grid-column:1/-1}}
/* 0.5.0 — conventional weather icon semantics */
.weather-icon--partly_cloudy{color:#7d91a5;filter:none}.weather-icon--partly_cloudy .weather-icon__sun{fill:var(--sun)}.weather-icon--partly_cloudy .weather-icon__sun-rays{stroke:var(--sun)}.weather-icon--partly_cloudy .weather-icon__cloud{fill:#8397aa}.weather-icon--cloudy{color:#8397aa;filter:none}.weather-icon--light_rain,.weather-icon--heavy_rain{color:#1175c9}.weather-icon--light_snow,.weather-icon--heavy_snow{color:#1e9cc8}
/* 0.5 — practical timing answers */
.weather-when__grid{display:grid;gap:.8rem}.when-card{padding:1rem;background:#fff;border:1px solid var(--line);border-radius:14px}.when-card__heading{display:flex;align-items:center;gap:.55rem}.when-card__heading h3{margin:0;font-size:1rem}.when-card__symbol{font-size:1.35rem;line-height:1}.when-card__choices{display:flex;flex-wrap:wrap;gap:.4rem;margin:.75rem 0}.when-card__choices button{min-height:36px;padding:.38rem .7rem;border:1px solid #b9cbd9;border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:.82rem;font-weight:750;cursor:pointer}.when-card__choices button.is-active{border-color:var(--blue);background:var(--sky);color:var(--blue-deep)}.when-card__answer{margin:.35rem 0 0;color:var(--ink-soft);font-size:.9rem}.when-card__answer strong{color:var(--ink)}.weather-when__note{margin:.6rem 0 0;color:var(--muted);font-size:.74rem}.weather-week-short{padding:1rem;background:#fff;border:1px solid var(--line);border-radius:14px}.weather-week-short h2{margin:0 0 .65rem}.week-highlights{display:grid;gap:.45rem}.week-highlights p{display:flex;align-items:center;gap:.55rem;margin:0;color:var(--ink-soft);font-size:.9rem}.week-highlights p span{font-size:1.15rem}.week-highlights strong{color:var(--ink)}
@media(min-width:700px){.weather-when__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.5.1 — consistent timing, local favourites and quieter summaries */
.favorite-location{margin:.8rem 0 0;padding:.42rem .7rem;border:1px solid #b9cbd9;border-radius:999px;background:rgba(255,255,255,.82);color:var(--ink);font:inherit;font-size:.82rem;font-weight:750;cursor:pointer}.favorite-location[aria-pressed="true"]{border-color:var(--blue);color:var(--blue-deep)}
.when-card__primary{margin:.7rem 0 .2rem;color:var(--ink);font-size:1.02rem}.when-card__primary strong{font-size:1.12rem}.when-card__context{margin:.15rem 0 .55rem;color:var(--muted);font-size:.84rem}.when-card__choices{margin:.65rem 0 .35rem}.weather-week-short{padding:.85rem 1rem}.home-favorites{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.5rem;padding:1.2rem 1.5rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.home-favorites[hidden]{display:none}.home-favorites h2{margin:0;font-size:1.4rem;letter-spacing:-.045em}.favorite-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}.favorite-chip{display:inline-flex;align-items:center;min-height:38px;padding:.4rem .7rem;border:1px solid #c7d6e0;border-radius:999px;background:var(--sky);color:var(--blue-deep);font-weight:750;text-decoration:none}@media(max-width:649px){.home-favorites{align-items:flex-start;flex-direction:column;padding:1rem 1.1rem}.favorite-list{justify-content:flex-start}.favorite-location{margin-top:.6rem}}

/* 0.5.2 — contextual timing and useful five-day highlights */
.when-card__intro{margin:.55rem 0 .15rem;color:var(--muted);font-size:.86rem}.when-card--status{display:flex;flex-direction:column;justify-content:center}.weather-week-short h2{margin:0 0 .8rem;font-size:1.25rem}.week-highlights{gap:.7rem}.week-highlight{display:grid;grid-template-columns:1.6rem 1fr;gap:.55rem;align-items:start}.week-highlight__icon{font-size:1.1rem;line-height:1.45}.week-highlight p{display:block;margin:0;color:var(--ink-soft);font-size:.9rem}.week-highlight small{display:block;margin-top:.08rem;color:var(--muted);font-size:.78rem}.weather-icon--thunder{color:#8397aa;filter:none}.weather-icon--thunder .weather-icon__cloud{fill:#8397aa}.weather-icon--thunder .weather-icon__lightning{fill:var(--sun)}

/* 0.5.3 — locked weather icon semantics and responsive polish */
.weather-icon{color:#8194a6;filter:none}
.weather-icon svg{fill:none}
.weather-icon__sun{fill:#f7ad24}
.weather-icon__sun-rays{stroke:#f7ad24}
.weather-icon__moon{fill:#7f91a2}
.weather-icon__cloud{fill:#8799aa}
.weather-icon__cloud--dark{fill:#6f8294}
.weather-icon__precip{stroke:#1681cf}
.weather-icon__snow{fill:#7fc3e8}
.weather-icon__snow-stroke{stroke:#69b7df}
.weather-icon__lightning{fill:#f7ad24}
.weather-icon__fog{stroke:#8999a7}
.weather-icon--clear_day{filter:drop-shadow(0 5px 8px rgba(226,154,24,.16))}
.weather-icon--clear_night,.weather-icon--cloudy,.weather-icon--partly_cloudy,.weather-icon--light_rain,.weather-icon--rain,.weather-icon--heavy_rain,.weather-icon--sleet,.weather-icon--snow,.weather-icon--light_snow,.weather-icon--heavy_snow,.weather-icon--thunder,.weather-icon--fog{color:#8194a6;filter:none}

.home-nearby{margin-top:1.5rem;margin-bottom:3rem;padding:1.4rem 1.5rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.home-section-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.home-section-heading h2{margin:0;font-size:clamp(1.5rem,4vw,2rem);letter-spacing:-.05em}
.home-section-heading .button-link{margin:0;white-space:nowrap}
.home-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.home-location-card{position:relative;display:grid;gap:.05rem;min-width:0;padding:.85rem 2.25rem .85rem .9rem;border:1px solid var(--line);border-radius:12px;background:#fafdff;color:var(--ink);text-decoration:none}
.home-location-card:hover{border-color:#a9c8dc;background:#f3faff}
.home-location-card strong{font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-location-card span:not(.home-location-card__arrow){color:var(--muted);font-size:.73rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-location-card__arrow{position:absolute;right:.85rem;top:50%;transform:translateY(-50%);color:var(--blue-deep);font-weight:800}
.location-directory{display:grid;gap:.65rem}
.location-directory .location-link{max-width:none;margin:0}
.location-directory .location-link strong{min-width:0}
.location-directory__empty{color:var(--muted)}

@media(max-width:649px){
  .weather-signal{grid-template-columns:1.65rem minmax(0,1fr) minmax(5.6rem,auto);gap:.4rem;padding:.64rem .68rem}
  .weather-signal__icon{font-size:1.05rem}
  .weather-signal span{font-size:.77rem;white-space:nowrap}
  .weather-signal__value{max-width:8.4rem;text-align:right;font-size:.86rem;line-height:1.15}
  .home-weather-grid{grid-template-columns:minmax(0,1fr);gap:.7rem;align-items:start}
  .home-weather-detail{max-width:none}
  .home-weather-signals{margin:.35rem 0 .55rem}
  .home-weather-signal{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .home-weather-signal span,.home-weather-signal b{font-size:.8rem}
  .home-weather .button-link{width:100%;margin-top:.3rem}
  .home-nearby{padding:1rem 1.1rem}
  .home-section-heading{align-items:center}
  .home-location-grid{grid-template-columns:1fr}
  .location-directory .location-link{display:grid;grid-template-columns:1fr;gap:.12rem}
  .location-directory .location-link span{text-align:left}
}

@media(min-width:650px){
  .home-location-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .location-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 0.5.4 — first-visit, directory and priority-weather UX */
.home-weather--first{background:linear-gradient(145deg,#315b7d,#244a69)}
.location-directory__note{margin:.2rem 0 1rem;color:var(--muted);font-size:.88rem}
.weather-alert{display:grid;grid-template-columns:2rem 1fr;gap:.7rem;margin-top:1rem;padding:1rem 1.1rem;border:1px solid #efc45d;border-left:5px solid #e2a51f;border-radius:14px;background:#fff9e8;color:var(--ink)}
.weather-alert__icon{font-size:1.35rem;line-height:1.2}.weather-alert strong{font-size:1rem}.weather-alert p{margin:.2rem 0 0;color:var(--ink-soft);font-size:.9rem}
@media(max-width:700px){.home-hero{padding:1.35rem 0 1.65rem}.home-hero__intro h1{max-width:none;font-size:2.45rem;margin:.1rem 0 .8rem}.home-hero__grid{gap:1.1rem}.home-weather{padding:1.15rem}.home-temperature{font-size:3.65rem}.home-nearby{padding-top:1.5rem}.weather-alert{grid-template-columns:1.6rem 1fr;padding:.9rem}.weather-alert__icon{font-size:1.2rem}}


/* 0.5.5: compact first visit, richer city quick picks and persistent last location */
.home-hero__grid--first{grid-template-columns:minmax(0,42rem)!important;justify-content:start}
.home-hero__grid--first .home-hero__intro h1{max-width:12ch}
.home-thunder{margin:.55rem 0 .1rem;padding:.48rem .6rem;border-radius:8px;background:rgba(255,255,255,.14);font-size:.82rem}
.home-location-card{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.75rem}
.home-location-card__main{display:flex;min-width:0;flex-direction:column}
.home-location-card__weather{display:grid;grid-template-columns:auto auto;align-items:center;gap:.35rem .4rem;text-align:right}
.home-location-card__weather .weather-icon{grid-row:1 / span 2;width:2.15rem;height:2.15rem;margin:0;filter:none}
.home-location-card__weather>strong{font-size:1.15rem;line-height:1}
.home-location-card__weather small{grid-column:1 / -1;color:#7a4d00;font-size:.7rem;font-weight:760;white-space:nowrap}
.home-location-card__arrow{align-self:center}
@media (max-width:640px){
  .home-hero{padding-top:1.35rem}
  .home-hero__intro h1{font-size:clamp(2.2rem,10.5vw,3rem);margin-bottom:.85rem}
  .home-location-card{grid-template-columns:minmax(0,1fr) auto;gap:.55rem;padding:.8rem .9rem}
  .home-location-card__arrow{display:none}
  .home-location-card__main span{font-size:.75rem}
  .home-location-card__weather .weather-icon{width:1.9rem;height:1.9rem}
}


/* 0.5.6 brand identity */
.brand{display:inline-flex;align-items:center;text-decoration:none;line-height:0;flex:0 0 auto}
.brand__logo{display:block;width:auto;height:34px;max-width:min(52vw,220px);object-fit:contain}
.brand--header .brand__logo{height:36px}
.site-footer .brand__logo{height:34px;background:#fff;border-radius:7px;padding:3px 7px;box-sizing:content-box}
@media(min-width:650px){.brand--header .brand__logo{height:42px;max-width:260px}.site-header__inner{min-height:4.5rem}}
\n\n/* 0.5.7 — hard mobile logo containment. Keep header usable even with stale/cached CSS. */
.site-header{overflow:hidden}
.site-header__inner{min-width:0}
.brand--header{min-width:0;max-width:46vw;overflow:hidden}
.brand--header .brand__logo{display:block!important;width:100%!important;max-width:220px!important;height:auto!important;object-fit:contain!important}
.site-nav{flex:0 0 auto;min-width:0}
@media(max-width:649px){
  .site-header__inner{min-height:3.65rem;gap:.45rem}
  .brand--header{max-width:46vw}
  .brand--header .brand__logo{width:100%!important;max-width:165px!important;height:auto!important}
  .site-nav a{min-height:40px;padding:.45rem .38rem;font-size:.82rem}
}
@media(min-width:650px){
  .brand--header{max-width:260px}
  .brand--header .brand__logo{width:auto!important;max-width:260px!important;height:42px!important}
}

/* 0.5.8: explicit primary location, fixed rain scale, thunder visibility */
.location-actions{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.7rem}.location-actions .favorite-location,.primary-location{margin:0}.primary-location{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:.45rem .7rem;border:1px solid #9fc7e4;border-radius:9px;background:#eef8ff;color:var(--blue-deep);font:inherit;font-size:.8rem;font-weight:780;cursor:pointer}.primary-location[aria-pressed="true"]{background:#dff3e7;border-color:#87c79f;color:#175c31}.rain-mini__bar--0{height:3px!important;opacity:.18}.rain-mini__bar--1{height:8px!important}.rain-mini__bar--2{height:15px!important}.rain-mini__bar--3{height:23px!important}.rain-mini__bar--4{height:31px!important}.rain-mini__bar--5{height:40px!important}.daily-row--thunder{border-color:#dcccf4;background:#fbf8ff}.daily-row--thunder .daily-condition{color:#5c3f91;font-weight:760}
@media(max-width:649px){.location-actions{gap:.35rem}.primary-location,.location-actions .favorite-location{font-size:.76rem}.brand--header{min-width:0;max-width:48vw}.brand--header .brand__logo{max-width:100%!important}}

/* 0.5.9: returning visitors see their weather first; location search is secondary. */
.home-hero__grid--returning{display:grid;gap:1rem}
.home-hero__grid--returning .home-hero__forecast{order:1}
.home-hero__grid--returning .home-hero__intro--secondary{order:2;padding:.2rem 0 0}
.home-hero__intro--secondary .home-secondary-title{font-size:1.25rem;letter-spacing:-.035em;margin:.05rem 0 .55rem;max-width:none}
.home-hero__intro--secondary .location-search label{font-size:.8rem;color:var(--muted)}
.home-hero__intro--secondary .location-search input,.home-hero__intro--secondary .location-search button{height:42px}
.home-hero__intro--secondary .location-button{margin-top:.35rem;font-size:.84rem}
@media(min-width:650px){.home-hero__grid--returning{grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);align-items:start}.home-hero__grid--returning .home-hero__forecast{order:1}.home-hero__grid--returning .home-hero__intro--secondary{order:2;padding-top:.5rem}}
