/* Xionia Mountain Polish r8: additive layout fixes, no forecast values changed. */
html body[data-xionia-layout] main :is(p,.prose,.detail-main,.xp-guide,.xe-network-intro,.xionia-source-guide,.ski-comparison-guide){max-width:none!important;min-width:0;box-sizing:border-box}
html body[data-xionia-layout] main :is(.prose,.detail-main,.xp-guide,.xe-network-intro,.ski-comparison-guide){width:100%}
html body[data-xionia-layout] main :is(.prose,.detail-main,.xp-guide,.xe-network-intro,.ski-comparison-guide)>p{width:auto;overflow-wrap:break-word}
html body[data-xionia-layout] main.xe-guide{max-width:var(--xionia-content-width,1240px)!important}
html body[data-xionia-layout] p.xionia-map-source-help{max-width:none!important}
/* Use the panel's width, not two tiny fixed tracks when the host is narrow. */
html body #place-alerts.xionia-alerts-compact .weather-alert-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));align-items:stretch}
html body #place-alerts.xionia-alerts-compact .weather-alert-card{box-sizing:border-box;grid-template-columns:minmax(0,1fr);gap:5px;margin:0;padding:10px 12px;min-width:0;width:100%;max-width:none!important;text-align:start}
html body #place-alerts.xionia-alerts-compact .weather-alert-card>strong{display:block;min-width:0;font-size:13px;line-height:1.5;overflow-wrap:break-word}
html body #place-alerts.xionia-alerts-compact .weather-alert-card>span{display:block;min-width:0;width:auto;white-space:normal;font-size:19px;font-variant-numeric:tabular-nums;line-height:1.35;overflow-wrap:break-word}
html body #place-alerts.xionia-alerts-compact .weather-alert-card>small{grid-column:1;line-height:1.5}
/* A fixed square prevents flex layout from squeezing the weather glyph. */
html body .xw-weather-svg{flex-shrink:0;aspect-ratio:1/1;object-fit:contain}
html body .weather-alert-card svg{flex:0 0 1.5em;width:1.5em;height:1.5em;max-width:none}
html body .x8-village-links{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
html body .x8-village-links a{display:inline-flex;align-items:center;min-height:44px}
html body .x8-camera-repeat{font-size:13px;line-height:1.6;margin:10px 0}
@media(max-width:640px){
 html body[data-xionia-layout]{--xionia-gutter:8px}
 html body[data-xionia-layout] :is(main#main,main.xe-guide,main.xg-page,main.container){box-sizing:border-box!important;width:calc(100% - 16px)!important;max-width:none!important;margin-inline:8px!important;padding-inline:8px!important;min-width:0}
 html body[data-xionia-layout] main>:is(.wrap,.container,.xe-guide){box-sizing:border-box;width:100%!important;max-width:none!important;margin-inline:0!important;padding-inline:0!important;min-width:0}
 html body[data-xionia-layout] main :is(.xe-network-intro,.ski-comparison-guide,.xionia-local-guide){padding-inline:10px}
 html body[data-xionia-layout] main.xe-guide :is(article,.panel,.facts,.xe-forecast){padding-inline:12px}
 html body #place-alerts.xionia-alerts-compact,html body #place-alerts.xionia-alerts-compact.xionia-alerts-has-preview{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'signals' 'fire' 'preview'!important;padding:10px;gap:12px}
 html body #place-alerts.xionia-alerts-compact>.xionia-fire-panel{border-inline-start:0;padding-inline:0;grid-row:auto}
 html body #place-alerts.xionia-alerts-compact .weather-alert-grid{grid-template-columns:minmax(0,1fr)}
 html body main :is(.x15-camera,.x6-camera)>summary{white-space:normal;overflow-wrap:break-word;line-height:1.5;min-height:44px;box-sizing:border-box}
}
