/* MeteoTrail brand system — layout remains forecast-first */
:root{--mt-bg:#062c32;--mt-surface:#0a3940;--mt-teal:#15dfbd;--mt-blue:#20adfa;--mt-sun:#ffca55}
body{background-color:#081e26}
.editorial-brand{background:linear-gradient(112deg,#062a31 0%,#074047 100%)!important;border:1px solid #1c6060!important;box-shadow:0 4px 18px #001b1b35}
.editorial-brand__title{display:flex!important;align-items:center;gap:10px!important;letter-spacing:0!important;text-transform:none!important;font-size:clamp(17px,3vw,23px)!important}
.mt-logo{display:block;width:62px;height:48px;object-fit:contain;flex:none}
.mt-wordmark{font-weight:850;letter-spacing:-.035em;color:#fff;white-space:nowrap}
.mt-wordmark span{color:var(--mt-teal)}
.editorial-brand__rule{background:linear-gradient(90deg,var(--mt-teal),transparent)!important;margin:7px 0 6px!important}
.editorial-brand__subtitle{color:#bce6de!important;letter-spacing:.035em!important;text-transform:none!important;font-size:clamp(10px,2vw,12px)!important}
.editorial-brand__tag--hiker,.editorial-brand__tag--explorer{background:#176b62!important}
.brand .logo{display:inline-block;width:52px;height:42px;background:url('./meteotrail-logo.svg') center/contain no-repeat;font-size:0!important;flex:none}
.brand strong{color:#f5fffc}
.brand strong .mt-trail{color:var(--mt-teal)}
body.home-layout main.home-page>.topnav>.navlink:nth-child(1){background:#11515b!important;border-color:#2c8a88!important;border-top-color:var(--mt-teal)!important}
body.home-layout main.home-page>.topnav>.navlink:nth-child(2){background:#174a43!important;border-color:#397f6d!important;border-top-color:#62dbaf!important}
body.home-layout main.home-page>.topnav>.navlink:nth-child(3){background:#50452d!important;border-top-color:var(--mt-sun)!important}
a:focus-visible,button:focus-visible{outline-color:var(--mt-teal)}
@media(max-width:480px){.mt-logo{width:49px;height:38px}.editorial-brand__title{gap:6px!important;font-size:clamp(15px,4.3vw,19px)!important}.editorial-brand__subtitle{font-size:10px!important}}

/* Mobile UX: reduce branding and location chrome without touching nav or ANM alerts. */
body.home-layout>header>.editorial-brand,body.section-nav-page>header>.editorial-brand{padding:8px 13px 7px!important;margin:0 0 2px!important;min-height:0!important}
.editorial-brand__top{gap:8px!important}
.editorial-brand__title{gap:7px!important}
.mt-logo{width:52px;height:39px}
.editorial-brand__rule{margin:4px 0 4px!important;height:1px!important}
.editorial-brand__subtitle{line-height:1.25!important}
body.home-layout>header .recent-locations{margin-top:2px!important}
body.home-layout>header .recent-locations summary{line-height:1.3!important}
body.home-layout>header #favoritesHint[hidden]{display:none!important}
body.home-layout>header #placeStatus:empty{display:none!important}
body.home-layout>header #placeStatus:not(:empty){margin:4px 0 0!important}
body.home-layout>header .place-picker{padding-bottom:0!important}
@media(max-width:480px){body.home-layout>header>.editorial-brand,body.section-nav-page>header>.editorial-brand{padding:7px 11px 6px!important}.mt-logo{width:45px;height:34px}.editorial-brand__title{font-size:clamp(15px,4.2vw,19px)!important}.editorial-brand__subtitle{font-size:10px!important}}

/* Shared language switch: inside the brand bar, never on a separate row. */
.editorial-brand__top{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:8px!important}
.editorial-brand__top .editorial-brand__title{min-width:0;flex:1 1 auto!important}
.editorial-brand__top .editorial-brand__tag{flex:0 0 auto!important;margin-left:auto!important}
.editorial-brand__top #languageToggle{position:static!important;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;align-self:center!important;flex:0 0 auto!important;margin:0!important;min-width:40px!important;width:40px!important;min-height:34px!important;height:34px!important;padding:6px!important;border-radius:9px!important;font-size:12px!important;line-height:1!important;box-shadow:none!important}
@media(max-width:480px){.editorial-brand__top{gap:6px!important}.editorial-brand__top .editorial-brand__tag{padding:5px 7px!important;font-size:10px!important}.editorial-brand__top #languageToggle{min-width:36px!important;width:36px!important;min-height:32px!important;height:32px!important;padding:4px!important}}

/* Override legacy page-specific language button rules with greater specificity. */
body.home-layout>header .editorial-brand__top #languageToggle,body.section-nav-page>header .editorial-brand__top #languageToggle{grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;align-self:center!important;margin:0!important;min-width:40px!important;width:40px!important;min-height:34px!important;height:34px!important;padding:6px!important}
@media(max-width:480px){body.home-layout>header .editorial-brand__top #languageToggle,body.section-nav-page>header .editorial-brand__top #languageToggle{min-width:36px!important;width:36px!important;min-height:32px!important;height:32px!important;padding:4px!important}}

/* Current conditions: astronomical Moon phase in place of provider chip. */
.current-panel .moon-phase-chip{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;max-width:44%;padding:5px 9px;border:1px solid #376d78;border-radius:12px;background:#123747;color:#d4f3ef;font-size:11px;line-height:1.2;text-align:left}
.current-panel .moon-phase-icon{font-size:21px;line-height:1;flex:none}
.current-panel .moon-phase-label{min-width:0;overflow-wrap:normal}
@media(max-width:480px){.current-panel .moon-phase-chip{max-width:43%;gap:4px;padding:4px 6px;font-size:10px}.current-panel .moon-phase-icon{font-size:18px}}

/* Moon phase: vertical icon/label composition, breathing room on narrow screens. */
.current-panel .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.current-panel .section-heading>div:first-child{min-width:0;flex:1 1 auto}
.current-panel .moon-phase-chip{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;flex:0 0 100px!important;max-width:100px!important;min-width:88px!important;padding:8px 7px!important;border:1px solid rgba(92,188,185,.35)!important;border-radius:12px!important;background:rgba(17,58,70,.78)!important;text-align:center!important;box-sizing:border-box!important}
.current-panel .moon-phase-icon{display:block!important;font-size:25px!important;line-height:1.1!important}
.current-panel .moon-phase-label{display:block!important;font-size:11px!important;line-height:1.25!important;overflow-wrap:break-word!important;white-space:normal!important}
@media(max-width:480px){.current-panel .section-heading{gap:9px!important}.current-panel .moon-phase-chip{flex-basis:91px!important;max-width:91px!important;min-width:82px!important;padding:7px 5px!important;gap:4px!important}.current-panel .moon-phase-icon{font-size:23px!important}.current-panel .moon-phase-label{font-size:10px!important}}
