/* Readable at arm's length on a 10-inch display. Classic keeps its own layout. */
[data-design=atmosphere] .shell{padding:0 22px}
[data-design=atmosphere] .display-frame{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(min-content,1fr);min-height:100vh;min-height:100dvh}
[data-design=atmosphere] .topbar{height:auto;min-height:70px;gap:20px;padding:8px 0}
[data-design=atmosphere] .topbar .brand.brand-logo{width:200px;flex:0 0 200px;margin:0}
[data-design=atmosphere] .topbar .brand.brand-logo img{width:100%;height:auto}
[data-design=atmosphere] .header-place{min-width:0;flex:1}
[data-design=atmosphere] .header-place .location-button{display:flex;align-items:baseline;flex-wrap:nowrap;gap:6px;border:0;padding:4px 0;margin:0;max-width:100%;text-align:left;background:transparent}
[data-design=atmosphere] .header-place .location-button strong{min-width:0;font-size:22px;line-height:1.15;font-weight:550;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-design=atmosphere] .header-place .location-region{flex:none;font-size:16px;color:var(--muted);line-height:1.25;white-space:nowrap}
[data-design=atmosphere] .header-place .pin{width:18px;height:22px;align-self:center;flex-shrink:0}
[data-design=atmosphere] .topbar .header-actions{flex-shrink:0;gap:8px;margin-left:0}
[data-design=atmosphere] .header-actions .design-switch button{font-size:15px;min-height:36px}
[data-design=atmosphere] .header-actions .auto-pages-toggle{font-size:15px;min-height:44px}
[data-design=atmosphere] .header-actions :is(.round-button,.appearance-button){width:44px;height:44px}
[data-design=atmosphere] .nav-shell{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 0 10px}
[data-design=atmosphere] .nav{min-width:0;padding:0;gap:6px;flex-wrap:wrap;overflow:visible}
[data-design=atmosphere] .nav-button{font-size:18px;padding:11px 15px;white-space:normal}
[data-design=atmosphere] .nav-button svg{width:20px;height:20px}
[data-design=atmosphere] .nav-shell .clock-block{min-width:122px;display:flex;align-items:center;flex-direction:column}
[data-design=atmosphere] .nav-shell .clock-toggle{height:44px;justify-content:center}
[data-design=atmosphere] .nav-shell .top-clock{font-size:42px;line-height:1;font-weight:350;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
[data-design=atmosphere] .nav-shell .top-date{font-size:15px;line-height:1.4;max-width:none;margin:1px 0 0}
[data-design=atmosphere] .nav-shell .analog-clock{width:44px;height:44px}
[data-design=atmosphere] .main{padding-top:0;padding-bottom:12px}
[data-design=atmosphere] body[data-view=overview] .main{display:flex;flex-direction:column;gap:12px;min-height:min-content}
[data-design=atmosphere] body[data-view=overview] .main>:is(.notice,.atmos-metrics,.atmos-hours,.forecast-band){flex:none;margin-top:0;margin-bottom:0}
[data-design=atmosphere] .atmos-overview{flex:1 0 auto;height:auto;min-height:175px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}
[data-design=atmosphere] .atmos-radar{height:auto;min-height:175px;display:flex;flex-direction:column}
[data-design=atmosphere] .atmos-radar .map-card{flex:1;height:auto}
[data-design=atmosphere] .hero-top{padding:16px 22px 0;font-size:16px;justify-content:flex-end}
[data-design=atmosphere] .hero-time{display:block;font-size:16px}
[data-design=atmosphere] .hero-reading{left:24px;bottom:22px}
[data-design=atmosphere] .hero-temperature{font-size:104px;line-height:.98;margin-bottom:8px}
[data-design=atmosphere] .hero-reading h2{font-size:28px;line-height:1.2}
[data-design=atmosphere] .hero-reading p{font-size:20px;margin-top:9px;color:#e1ebf7}
[data-design=atmosphere] .sky-hero .scene-sculpture{width:50%;max-width:340px;top:-3%;right:0}
[data-design=atmosphere] .map-heading{padding:10px 13px;top:12px;left:12px;right:12px;width:fit-content;max-width:calc(100% - 24px)}
[data-design=atmosphere] .map-heading h2{font-size:16px}
[data-design=atmosphere] .map-heading p{font-size:16px;line-height:1.25}
[data-design=atmosphere] .map-controls{grid-template-columns:44px minmax(0,1fr) 94px;gap:10px;padding:10px 12px;left:12px;right:12px;bottom:25px}
[data-design=atmosphere] .play-button{width:44px;height:44px}
[data-design=atmosphere] .range-wrap label{font-size:18px}

[data-design=atmosphere] .range-wrap input{min-height:30px}
[data-design=atmosphere] .radar-time{font-size:28px}
[data-design=atmosphere] .radar-time small{font-size:16px}
[data-design=atmosphere] .radar-legend{font-size:16px;top:100px;padding:8px 10px}
[data-design=atmosphere] .radar-legend div{height:6px;width:110px}
[data-design=atmosphere] .leaflet-control-zoom{margin-top:106px!important}
[data-design=atmosphere] .map-loading{font-size:16px;top:104px;left:62px;right:12px;width:fit-content}
[data-design=atmosphere] .atmos-metrics{gap:12px;margin-top:12px}
[data-design=atmosphere] .atmos-metric{padding:14px 16px;gap:10px;min-height:92px;align-items:center}
[data-design=atmosphere] .atmos-metric>div>span{font-size:22px;line-height:1.2;white-space:normal}
[data-design=atmosphere] .atmos-metric strong{font-size:36px;line-height:1.1;margin-top:7px;letter-spacing:-.025em}
[data-design=atmosphere] .atmos-metric strong small{font-size:22px}
[data-design=atmosphere] .metric-symbol{width:28px;font-size:32px}
[data-design=atmosphere] .metric-extra{display:none}
[data-design=atmosphere] .wind-traces{display:none}
[data-design=atmosphere] .atmos-hours{display:block;padding:10px 14px;margin-top:12px}
[data-design=atmosphere] .hours-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
[data-design=atmosphere] .hours-heading .eyebrow{font-size:18px;letter-spacing:.06em;line-height:1.2}
[data-design=atmosphere] .hours-heading button{font-size:20px;padding:0;line-height:1.2;min-height:26px}
[data-design=atmosphere] .atmos-hour-track{grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-columns:auto;gap:0;overflow:visible}
[data-design=atmosphere] .atmos-hour{padding:0 6px;gap:0 2px;grid-template-columns:1fr 1fr}
[data-design=atmosphere] .atmos-hour:first-child{border-left:0}
[data-design=atmosphere] .atmos-hour>span{font-size:20px;line-height:1.2}
[data-design=atmosphere] .atmos-hour>.weather-icon{width:36px;height:34px;grid-row:2}
[data-design=atmosphere] .atmos-hour>strong{font-size:24px;line-height:1.15;padding-top:3px}
[data-design=atmosphere] .atmos-hour>small{grid-column:1/-1;font-size:18px;white-space:nowrap;line-height:1.3}
[data-design=atmosphere] .forecast-band{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:12px}
[data-design=atmosphere] .day-card{padding:9px 5px}
[data-design=atmosphere] .day-card .day-label{font-size:22px;line-height:1.25}
[data-design=atmosphere] .day-card .weather-icon{width:48px;height:35px}
[data-design=atmosphere] .day-card .day-temperatures{font-size:28px;line-height:1.15}
[data-design=atmosphere] .day-card .day-temperatures span{font-size:24px}
[data-design=atmosphere] .day-card .rain-small{font-size:18px;line-height:1.25;margin-top:4px}
/* Detail pages use the same legible typography. Wide charts remain scrollable. */
[data-design=atmosphere] .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
[data-design=atmosphere] :is(.metric,.section-card,.pollutant){min-width:0}
[data-design=atmosphere] :is(.metric-label,.stat-label,.pollutant p){hyphens:auto;overflow-wrap:anywhere}
[data-design=atmosphere] .summary-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
[data-design=atmosphere] :is(.metric-label,.stat-label,.pollutant p){font-size:22px;line-height:1.3}
[data-design=atmosphere] :is(.metric-note,.note,.section-head>span,.chart-legend,.sunrise-line,.selected-weather p,.data-table,summary){font-size:18px;line-height:1.4}
[data-design=atmosphere] .metric .metric-value{font-size:40px}
[data-design=atmosphere] :is(.metric-value small,.stat-value small,.pollutant small){font-size:20px}
[data-design=atmosphere] :is(.stat-value,.pollutant strong){font-size:32px}
[data-design=atmosphere] .section-head h2{font-size:26px}
[data-design=atmosphere] .day-select{font-size:20px;min-height:66px;padding:10px 17px}
[data-design=atmosphere] .day-select small{font-size:18px}
[data-design=atmosphere] .hour-grid{grid-auto-columns:minmax(108px,1fr)}
[data-design=atmosphere] .hour-cell{font-size:20px;padding:14px 10px;gap:9px}
[data-design=atmosphere] .hour-cell :is(.hour-temp,.hour-rain,.hour-wind){font-size:20px}
[data-design=atmosphere] .hour-cell .hour-temp{font-size:28px}
[data-design=atmosphere] .chart text{font-size:18px!important}
[data-design=atmosphere] .chart .point-text{font-size:20px!important}
[data-design=atmosphere] .pill{font-size:18px}
[data-design=atmosphere] .footer{font-size:13px;line-height:1.4;padding:8px 0}
/* Keep the forecast inside the tablet viewport; only its content scrolls if needed. */
@media(min-width:801px){
  [data-design=atmosphere] body[data-view=forecast] .display-frame{height:100vh;height:100dvh;grid-template-rows:auto auto minmax(0,1fr)}
  [data-design=atmosphere] body[data-view=forecast] .main{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable}
  [data-design=atmosphere] body[data-view=forecast] .summary-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;margin-bottom:12px}
  [data-design=atmosphere] body[data-view=forecast] .section-card{padding:16px}
  [data-design=atmosphere] body[data-view=forecast] .section-head{margin-bottom:12px;flex-wrap:wrap}
  [data-design=atmosphere] body[data-view=forecast] .day-selector{padding-bottom:12px}
  [data-design=atmosphere] body[data-view=forecast] .now-stats{gap:8px 16px}
  [data-design=atmosphere] body[data-view=forecast] .hour-cell{padding-top:10px;padding-bottom:10px;gap:6px}
}
/* Content sets the minimum height; the flexible overview receives remaining space. */
@media(min-width:801px){
  [data-design=atmosphere] .sky-hero{display:flex;flex-direction:column;justify-content:space-between}
  [data-design=atmosphere] .hero-top{padding:10px 18px 0}
  [data-design=atmosphere] .hero-reading{position:relative;left:auto;right:auto;bottom:auto;margin:12px 22px 16px;display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:20px;align-items:center}
  [data-design=atmosphere] .hero-temperature{grid-column:1;grid-row:1/3;margin:0}
  [data-design=atmosphere] .hero-reading h2{grid-column:2;grid-row:1;align-self:end}
  [data-design=atmosphere] .hero-reading p{grid-column:2;grid-row:2;align-self:start;line-height:1.3;margin-top:6px}
  [data-design=atmosphere] .sky-hero .scene-sculpture{height:90%;width:auto;aspect-ratio:1;max-width:55%;top:-5%;right:-5%;opacity:.55}
  [data-design=atmosphere] .sky-hero .scene-sculpture>.weather-icon{height:100%;width:100%}
  [data-design=atmosphere] .map-heading{top:8px;left:10px;right:64px;padding:6px 10px;max-width:calc(100% - 74px)}
  [data-design=atmosphere] .map-heading p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  [data-design=atmosphere] .map-controls{padding-top:6px;padding-bottom:6px;bottom:22px}
  [data-design=atmosphere] .atmos-radar .leaflet-top.leaflet-left{left:auto;right:10px}
  [data-design=atmosphere] .leaflet-control-zoom{margin-top:8px!important;margin-left:0!important}
  [data-design=atmosphere] .map-loading{top:54px;left:12px;right:62px}
  [data-design=atmosphere] .radar-legend{display:none}
}
@media(max-width:1150px) and (min-width:801px){
  [data-design=atmosphere] .shell{padding:0 16px}
  [data-design=atmosphere] .topbar{gap:12px}
  [data-design=atmosphere] .topbar .brand.brand-logo{width:160px;flex-basis:160px}
  [data-design=atmosphere] .header-place .location-button strong{font-size:20px}
  [data-design=atmosphere] .header-actions .design-switch button{padding:8px;font-size:14px}
  [data-design=atmosphere] .header-actions .auto-pages-toggle{font-size:14px;padding:8px}
  [data-design=atmosphere] .nav-button{font-size:17px;padding:10px 12px;gap:5px}
  [data-design=atmosphere] .nav-button svg{display:none}
  [data-design=atmosphere] .atmos-metric{padding:13px 12px;gap:8px}
  [data-design=atmosphere] .atmos-metric>div>span{font-size:20px}
  [data-design=atmosphere] .atmos-hour{padding:0 3px}
  [data-design=atmosphere] .atmos-hour>.weather-icon{width:30px}
  [data-design=atmosphere] .day-card .day-label{font-size:20px}
  [data-design=atmosphere] .range-wrap label{font-size:18px}
  [data-design=atmosphere] .map-controls{grid-template-columns:44px minmax(0,1fr) 86px;gap:8px;padding:8px}
  
}
@media(max-width:800px){
  [data-design=atmosphere] .shell{padding:0 14px}
  [data-design=atmosphere] .topbar{gap:12px}
  [data-design=atmosphere] .topbar .brand.brand-logo{width:170px;flex-basis:170px}
  [data-design=atmosphere] .header-place .location-button strong{font-size:20px}
  [data-design=atmosphere] .topbar .header-actions{width:100%;justify-content:space-between;flex-wrap:nowrap}
  [data-design=atmosphere] .nav-shell{flex-wrap:wrap;gap:8px}
  [data-design=atmosphere] .nav-tools{width:100%;justify-content:space-between}
  [data-design=atmosphere] .nav-tools .sources-button{order:2;width:44px;height:44px}
  [data-design=atmosphere] .nav{flex:1 1 100%;order:2;overflow:visible;padding-bottom:4px}
  [data-design=atmosphere] .nav-button{font-size:17px;padding:10px 13px;flex-shrink:0}
  [data-design=atmosphere] .nav-shell .clock-block{flex:1;flex-direction:row;justify-content:space-between;gap:12px}
  [data-design=atmosphere] .nav-shell .clock-toggle{width:auto;justify-content:flex-start}
  [data-design=atmosphere] .nav-shell .top-date{font-size:18px}
  [data-design=atmosphere] .atmos-overview{flex:none;grid-template-columns:1fr;height:auto}
  [data-design=atmosphere] .sky-hero{height:clamp(260px,34dvh,400px)}
  [data-design=atmosphere] .atmos-radar{height:clamp(260px,40dvh,460px)}
  [data-design=atmosphere] .atmos-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  [data-design=atmosphere] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  [data-design=atmosphere] .summary-grid{grid-template-columns:minmax(0,1fr)}
  [data-design=atmosphere] .atmos-metric{padding:14px 12px;gap:8px}
  [data-design=atmosphere] .atmos-metric>div>span{font-size:20px}
  [data-design=atmosphere] .atmos-hour-track{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row;gap:12px 0}
  [data-design=atmosphere] .atmos-hour:nth-child(7){border-left:0}
  [data-design=atmosphere] .forecast-band{grid-template-columns:repeat(3,minmax(0,1fr))}
  [data-design=atmosphere] .day-card .day-label{font-size:20px}
}
@media(max-width:500px){
  [data-design=atmosphere] .topbar .brand.brand-logo{width:145px;flex-basis:145px}
  [data-design=atmosphere] .header-place .pin{display:none}
  [data-design=atmosphere] .header-actions .auto-pages-toggle{font-size:13px;padding:7px}
  [data-design=atmosphere] .header-actions .design-switch button{font-size:12px;padding:7px}
  [data-design=atmosphere] .header-actions :is(.round-button,.appearance-button){width:36px;height:40px}
  [data-design=atmosphere] .header-actions .design-spark{display:none}
  [data-design=atmosphere] .metric-symbol{display:none}
  [data-design=atmosphere] .atmos-metric strong{font-size:34px}
  [data-design=atmosphere] .atmos-hour-track{grid-template-columns:repeat(4,minmax(0,1fr))}
  [data-design=atmosphere] .atmos-hour:nth-child(7){border-left:1px solid var(--line)}
  [data-design=atmosphere] .atmos-hour:nth-child(4n+1){border-left:0}
  [data-design=atmosphere] .hours-heading .eyebrow{font-size:18px;letter-spacing:0}
  [data-design=atmosphere] .hours-heading button{font-size:18px}
  [data-design=atmosphere] .map-controls{grid-template-columns:40px minmax(0,1fr) 84px;gap:6px;padding:8px;left:10px;right:10px}
  
  [data-design=atmosphere] .range-wrap label{font-size:16px}
  [data-design=atmosphere] .map-heading h2{font-size:16px}
}
