/* 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}
}

/* XIONIA ux-seo-no1-r1 (2026-11-06): hero slot reservation against layout shift.
   After DOMContentLoaded, deferred scripts insert the favourite/alert buttons, the time line and the weekend
   summary between the H1 and the first static paragraph. While a part is missing, that paragraph keeps the
   part's final space as extra top margin; :has() releases each share in the same frame the element appears,
   so the paragraph and everything below it stay put. Final layout is unchanged (all shares are 0 then).
   Browsers without :has() keep the previous behaviour. Values measured at 375 and 1366 px. */
@supports selector(:has(*)){
#greece-main:has(>#page-title){--xr-fav:119px;--xr-clock:46px;--xr-sum:80px}
:is(.detail-title,.xp-intro):has(>#page-title){--xr-fav:123px;--xr-clock:31px;--xr-sum:74px}
@media (max-width:480px){#greece-main:has(>#page-title){--xr-clock:56px;--xr-sum:102px}:is(.detail-title,.xp-intro):has(>#page-title){--xr-sum:112px}.detail-title:has(>#page-title){--xr-clock:51px}}
:is(#greece-main,.detail-title,.xp-intro):has(>#xionia-destination-favourite){--xr-fav:0px}
:is(#greece-main,.detail-title,.xp-intro):has(>#xionia-time-reference){--xr-clock:0px}
:is(#greece-main,.detail-title,.xp-intro):has(>#xws-summary-r1){--xr-sum:0px}
:is(#greece-main,.detail-title,.xp-intro):has(>#page-title)[data-xr-done]{--xr-fav:0px;--xr-clock:0px;--xr-sum:0px}
#greece-main>#page-title~p.x27-section-links[data-xionia-live-jumps]{margin-top:calc(8px + var(--xr-fav,0px) + var(--xr-clock,0px) + var(--xr-sum,0px))}
:is(.detail-title,.xp-intro)>#page-title~p[data-local-search-intent-r2]{margin-top:calc(12px + var(--xr-fav,0px) + var(--xr-clock,0px) + var(--xr-sum,0px))}
}
/* Weekend summary box (assets/xionia-weekend-summary-r1.js); its minimum height is its reserved slot.
   :is(main,#main) only lifts specificity above the atlas "#main[data-destination-layout] .detail-title>p" rule. */
html body :is(main,#main) p#xws-summary-r1.xws-summary{box-sizing:border-box;min-height:62px;margin:8px 0 12px;padding:9px 12px;border-left:3px solid #3d8bc9;border-radius:6px;background:rgba(61,139,201,.09);font-size:15px;line-height:1.45;overflow-wrap:break-word}
html body :is(main,#main) p#xws-summary-r1.xws-summary[data-state=loading]{opacity:.75}
html body :is(main,#main) p#xws-summary-r1.xws-summary strong{font-weight:650}
@media (max-width:480px){html body :is(main,#main) p#xws-summary-r1.xws-summary{min-height:84px;font-size:14px}html body :is(main,#main) :is(.detail-title,.xp-intro)>p#xws-summary-r1.xws-summary{min-height:100px}}

/* XIONIA ux-seo-no1-r2 (2026-11-07): live/camera panel against layout shift.
   [data-xionia-place-live] first shows a small skeleton (184-543 px) and fills its camera list and nearby stations
   ~10 s later (4G), growing to 1,721-2,235 px at 375 px and 1,347-1,735 px from 768 px (cities, peaks, resorts,
   passes). "Full" = .xplr-cam-links or .xplr-station exists.
   A) Panels WITHOUT a static legacy camera block: the host keeps a typical final height until full.
   B) Panels WITH the static legacy block: the legacy block stays visible, with the same minimum height as A, and the
      skeleton stays collapsed until full; then the full panel replaces it in one step at the same position.
   Islands use another layout and are excluded. A delayed animation (40 s) releases A and shows the skeleton of B in
   any case, so a panel that never fills cannot leave a gap (in B the static block, original page content, then stays
   visible above the skeleton). display:block!important is needed against the atlas [hidden]{display:none!important}. :has() only. */
@supports selector(:has(*)){
@keyframes xr-live-release{to{min-height:0}}
@keyframes xr-live-show{to{max-height:none;overflow:visible}}
body:not(.xionia-islands-page) #cameras-live-weather:not(:has(>[data-xionia-legacy-camera-r19]))>[data-xionia-place-live]:not(:has(.xplr-cam-links,.xplr-station)){min-height:2000px;box-sizing:border-box;animation:xr-live-release 0s 40s forwards}
@media (min-width:768px){body:not(.xionia-islands-page) #cameras-live-weather:not(:has(>[data-xionia-legacy-camera-r19]))>[data-xionia-place-live]:not(:has(.xplr-cam-links,.xplr-station)){min-height:1450px}}
body:not(.xionia-islands-page) #cameras-live-weather:has(>[data-xionia-legacy-camera-r19]):not(:has(.xplr-cam-links,.xplr-station))>[data-xionia-place-live]:has(.xplr-root){max-height:0;overflow:hidden;animation:xr-live-show 0s 40s forwards}
body:not(.xionia-islands-page) #cameras-live-weather:has(>[data-xionia-legacy-camera-r19]):not(:has(.xplr-cam-links,.xplr-station))>[data-xionia-legacy-camera-r19][hidden],
body:not(.xionia-islands-page) #cameras-live-weather:has(>[data-xionia-legacy-camera-r19]):not(:has(.xplr-cam-links,.xplr-station))>[data-xionia-legacy-camera-r19]>:is(ul.x14-cameras,h3,p)[hidden]{display:block!important}
body:not(.xionia-islands-page) #cameras-live-weather:not(:has(.xplr-cam-links,.xplr-station))>[data-xionia-legacy-camera-r19]{min-height:2000px;box-sizing:border-box;animation:xr-live-release 0s 40s forwards}
@media (min-width:768px){body:not(.xionia-islands-page) #cameras-live-weather:not(:has(.xplr-cam-links,.xplr-station))>[data-xionia-legacy-camera-r19]{min-height:1450px}}
}

/* XIONIA ux-seo-no1-r6 (2026-11-08).
   A) Resort and pass pages only (section#resort-forecast; no #greece-main, so no map move there): the forecast block
      fills in waves while a reader may already be inside it. Until each part completes it keeps its typical final
      height (values and rules = ux-seo-no1-r4, measured; A/B with cls-resort-pass-r1137 at the forecast anchor:
      Katara EN 1.52 -> 0.12, Katara EL 1.98 -> 0.65, Baros 2.10 -> 0.77, Kalavryta 1.12 -> 0.25, Vasilitsa 1.15 -> 0.22):
      daily cards (until .xse-summary), the #mountain-3d slot (as top margin of the daily block), #place-alerts (until
      .xionia-fire-panel), #atlas-city-widget (until its first .xw-link). Delayed animations (60 s) release everything.
   B) Hero time line: when the time line is already in place but the favourite/alert buttons are not, their space is
      kept above the time line (instead of below it), so the time line no longer jumps when the buttons arrive.
      !important is needed against the atlas '#main[data-destination-layout] #xionia-time-reference{margin:8px 0!important}'.
   :has() only; older browsers keep the previous behaviour. Final layout unchanged. */
@supports selector(:has(*)){
@keyframes xr-pf-release{to{min-height:0}}
@keyframes xr-pf-release-m{to{margin-top:0}}
html body #resort-forecast #atlas-primary-days:not(:has(.xse-summary)){display:block!important;box-sizing:border-box;min-height:4000px;animation:xr-pf-release 0s 60s forwards}
html body #resort-forecast #primary-forecast:not(:has(>#mountain-3d))>#atlas-primary-days{margin-top:3100px;animation:xr-pf-release 0s 60s forwards,xr-pf-release-m 0s 60s forwards}
html body #resort-forecast #primary-forecast #place-alerts:not(:has(.xionia-fire-panel)){box-sizing:border-box;min-height:1160px;animation:xr-pf-release 0s 60s forwards}
html body #atlas-city-widget.xionia-city-widget:not(:has(.xw-link)){box-sizing:border-box;min-height:590px;animation:xr-pf-release 0s 60s forwards}
@media (min-width:768px){
html body #resort-forecast #atlas-primary-days:not(:has(.xse-summary)){min-height:2330px}
html body #resort-forecast #primary-forecast:not(:has(>#mountain-3d))>#atlas-primary-days{margin-top:1800px}
html body #resort-forecast #primary-forecast #place-alerts:not(:has(.xionia-fire-panel)){min-height:631px}
html body #atlas-city-widget.xionia-city-widget:not(:has(.xw-link)){min-height:465px}}
:is(#greece-main,.detail-title,.xp-intro):has(>#xionia-time-reference):not(:has(>#xionia-destination-favourite))>#page-title+#xionia-time-reference{margin-top:calc(8px + var(--xr-fav,0px))!important}
#greece-main:has(>#xionia-time-reference):not(:has(>#xionia-destination-favourite))>#page-title~p.x27-section-links[data-xionia-live-jumps]{margin-top:calc(8px + var(--xr-sum,0px))}
:is(.detail-title,.xp-intro):has(>#xionia-time-reference):not(:has(>#xionia-destination-favourite))>#page-title~p[data-local-search-intent-r2]{margin-top:calc(12px + var(--xr-sum,0px))}
}

/* no1-checks r1 (16 Nov 2026): reserve the glacier city widget (#xg-city-widget) before its forecast loads; it grew 80 -> 450-610 px at the top of every glacier page (CLS). */
html body #xg-city-widget{min-height:460px;box-sizing:border-box}
@media (max-width:600px){html body #xg-city-widget{min-height:540px}}

/* XIONIA no1 hub-favgap r1 (18 Nov 2026): on forecast hubs (#greece-main with the .x30-hub-map) the favourite button lives inside the map explorer, never as a direct child of #greece-main, so the hero reservation (--xr-fav 119px above the time line) was never released: a permanent blank gap under the H1 and a late page jump when the time line arrived. Hubs: no favourite share; the first paragraph keeps the time line's share until the time line exists.
   Greece hub, desktop: greece.js inserts the area buttons (nav.greece-controls) and the point legend above the map in one task (~1-2.3 s); until the nav exists the map keeps their final space (measured 159 px at 1024-1366 px) as top margin, and the nav keeps its final height (92 px) while its buttons fill. */
@supports selector(:has(*)){
#greece-main:has(>#page-title):has(>.x30-hub-map){--xr-fav:0px}
#greece-main:has(>.x30-hub-map):not(:has(>#xionia-time-reference))>#page-title+p{margin-top:calc(8px + var(--xr-clock,0px))}
@media (min-width:1024px){body[data-map-hub=true][data-region=greece] #greece-main>.x30-hub-map:not(:has(>nav.greece-controls))>#greece-map{margin-top:159px}body[data-map-hub=true][data-region=greece] #greece-main>.x30-hub-map>nav.greece-controls{min-height:92px}}
}
/* XIONIA no1 search-slot r1 (18 Nov 2026): /search/ builds its form inside section.x23-search after first paint (2 px -> 225 px on desktop), pushing the shortcut links (CLS 0.12-0.14). Desktop keeps the final height until the form exists. */
@supports selector(:has(*)){@media (min-width:1024px){html body section.x23-search[data-x23-search-page]:not(:has(form)){box-sizing:border-box;min-height:225px}}}
/* XIONIA no1 region-slot r1 (18 Nov 2026): city 'region' pages (no static #cameras-live-weather; ~13.8k poleis, mostly outside Greece). The place-live wire moves the section links under the H1 and xionia-site.js then moves #place-widget (above <main>) after them, 2-4 s after first paint: the whole page jumped ~530 px (CLS 0.87 desktop / 0.70 mobile). Until that happens the widget is kept out of the flow at the top and its final slot (links + widget) is kept under the H1, so the move lands in place. A 12 s animation releases both if the move never happens. :has() only. */
@supports selector(:has(*)){
@keyframes xr-region-release{to{max-height:none;visibility:visible;padding-top:8px;padding-bottom:8px;border-width:1px;margin-top:8px;margin-bottom:14px}}
@keyframes xr-region-h1{to{margin-bottom:12px}}
body[data-place-page=true][data-xionia-url*="/prognwsi_kairou/poleis/"]:has(>#place-widget):has(>main#greece-main>#primary-forecast>#regional-daily):not(:has(#cameras-live-weather,.x6-cameras,.x6-camera,.x14-cameras,.x15-camera,.home-live-camera))>#place-widget{max-height:0;min-height:0!important;overflow:hidden;visibility:hidden;padding-top:0;padding-bottom:0;border-width:0;margin-top:0;margin-bottom:0;animation:xr-region-release 0s 12s forwards}
body[data-place-page=true][data-xionia-url*="/prognwsi_kairou/poleis/"]:has(>#place-widget):has(>main#greece-main>#primary-forecast>#regional-daily):not(:has(#cameras-live-weather,.x6-cameras,.x6-camera,.x14-cameras,.x15-camera,.home-live-camera))>main#greece-main>#page-title{margin-bottom:635px;animation:xr-region-h1 0s 12s forwards}
@media (max-width:600px){body[data-place-page=true][data-xionia-url*="/prognwsi_kairou/poleis/"]:has(>#place-widget):has(>main#greece-main>#primary-forecast>#regional-daily):not(:has(#cameras-live-weather,.x6-cameras,.x6-camera,.x14-cameras,.x15-camera,.home-live-camera))>main#greece-main>#page-title{margin-bottom:699px}}
}
/* XIONIA no1 stations-slot r1 (20 Nov 2026): stations/greece(_en).html (data-station-view=greece) get the hero time line, the geography nav and the map controls/toolbar above #sm-map from scripts after first paint (map pushed ~600 px, desktop CLS 0.22-0.24). Desktop keeps each part's final space until it exists (:has() release). Station layout itself is untouched. */
@supports selector(:has(*)){@media (min-width:1024px){
body:has(#station-workspace[data-station-view=greece]) header.hz-hero:not(:has(>#xionia-time-reference))>#page-title+p{padding-top:37px}
main#main-content:not(:has(>nav.xw-geography))>#station-workspace[data-station-view=greece]{margin-top:110px}
#station-workspace[data-station-view=greece]:not(:has(>.sm-wu-controls))>#sm-map{margin-top:477px}
}}
/* XIONIA no1 widgets-slot r1 (20 Nov 2026): the widgets page gets its time line under the H1, builder fields and the city picker's note/status after first paint (desktop CLS 0.14-0.63). Desktop keeps the time-line space as padding of the first paragraph until it exists and the picker keeps its final height (EL 183 / EN 163 px, measured 1024-1920). The range and background fields follow the page script's own visibility rule from the start (range only for meteogram/ensemble, background only for the custom theme), so they no longer show for ~0.7 s and wrap the row. */
@supports selector(:has(*)){
.widget-builder-controls:has(#widget-type option[value=daily]:checked,#widget-type option[value=satellite]:checked)>label:has(#widget-meteogram-range){display:none}
.widget-builder-controls:has(#widget-theme):not(:has(#widget-theme option[value=custom]:checked))>label:has(#widget-background){display:none}
@media (min-width:1024px){main#main-content.wrap:not(:has(>#xionia-time-reference))>#page-title+p{padding-top:49px}html[lang^=el] #widget-city-picker.widget-city-picker{min-height:183px;box-sizing:border-box}html[lang^=en] #widget-city-picker.widget-city-picker{min-height:163px;box-sizing:border-box}}}

/* XIONIA no1 maps-cta-slot r1 (20 Nov 2026): weather-maps pages without the static snow links get the two XIONIA snow links (p.xionia-model-cta) from the map controls script ~1.2-2.5 s after first paint, appended after the intro text; the map workspace then moves down (region pages desktop CLS ~0.2-0.28). Until the links exist the intro paragraph already uses its final style (it stops being :last-child once they are added: 15px, 4px bottom margin) and the intro keeps the row's height (35.6 px desktop, 79.2 px when the two links wrap on phones; the row's own bottom margin collapses into the intro's); final layout is unchanged. The space is released after 12 s if the script never runs. */
@supports selector(:has(*)){
main#weather-maps>section.intro>div:has(>#page-title):not(:has(>.xionia-model-cta)){padding-bottom:35.6px;animation:xr-cta-release 0s 12s forwards}
main#weather-maps>section.intro>div:has(>#page-title):not(:has(>.xionia-model-cta))>#page-title~p:last-child{font-size:15px;margin-bottom:4px}
@media (max-width:600px){main#weather-maps>section.intro>div:has(>#page-title):not(:has(>.xionia-model-cta)){padding-bottom:79.2px}}
@keyframes xr-cta-release{to{padding-bottom:0}}}
/* XIONIA no1 maps-preload-slot r1 (20 Nov 2026): on weather-maps pages the map controls script moves the 'Preload all hours' block (.map-preload-tools, its own listeners) from the left panel into the hour timeline at the first render (~2.5-3 s); between 601 and 819 px the left panel is laid out above the map, so the map jumped up 57 px (CLS ~0.13). The block is not shown in its original place; it appears where it stays, in the timeline. The button only works with that script, which also moves it. */
#weather-maps #xmf-left-panel>.map-preload-tools{display:none}
/* maps-preload-slot r1, part 2: the map snow script adds a 4th option ('Snow / precipitation type') to the left panel's option row ~2.5 s after paint; below 820 px that row then wraps under the line description and pushes the map down 29 px. Until the option exists the row holds an invisible copy of the same label text (same font, 34 px for the checkbox and gap), so it wraps the same way from the start. */
@supports selector(:has(*)){@media (max-width:819.98px){
#weather-maps #xmf-left-panel>.map-options>div:has(>label>input[type=checkbox]):not(:has(#xionia-snow-toggle))::after{display:flex;align-items:center;min-height:44px;padding-left:34px;font:650 12px/16.8px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;visibility:hidden;content:"Χιόνι / τύπος υετού";animation:xr-snowopt-release 0s 12s forwards}
html[lang^=en] #weather-maps #xmf-left-panel>.map-options>div:has(>label>input[type=checkbox]):not(:has(#xionia-snow-toggle))::after{content:"Snow / precipitation type"}
@keyframes xr-snowopt-release{to{display:none}}}}/* XIONIA no1 stsc-slot r1 (20 Nov 2026): station-scores pages fill the results panel (#stsc-panel) ~1-2 s after paint (23 -> ~1900 px); the method guide below was visible and got pushed out of view (desktop CLS 0.24). While the panel is empty or shows only the loading line it keeps 1100 px, so the guide starts below the fold; final results are taller, so the final layout is unchanged. The failure message is not matched. */
@supports selector(:has(*)){section.stsc>#stsc-panel:is(:empty,:has(>p.stsc-muted:only-child)){min-height:1100px}}
/* XIONIA no1 hz-clock-slot r1 (21 Nov 2026): hz-page heroes (interactive satellite, hazards) get the time line (#xionia-time-reference, 38 px) inserted after the H1 at DOMContentLoaded, often after first paint; everything below then moved 38 px (satellite EN desktop CLS 0.66). Until it exists the paragraph after the H1 keeps that space as top padding; released after 12 s if the script never runs. Final layout unchanged. */
@supports selector(:has(*)){main.hz-page>header.hz-hero:not(:has(>#xionia-time-reference))>#page-title+p{padding-top:38px;animation:xr-hzclock-release 0s 12s forwards}@keyframes xr-hzclock-release{to{padding-top:0}}}
/* XIONIA no1 xv-slot r1 (21 Nov 2026): verification pages (.xv-hero) get the time line inserted after the H1 (+49 px) and, where the verification dashboard script is loaded, a dashboard section (#xv-dashboard-r2, ~600 px at first, ~1000-1500 px final) inserted right after the hero, both racing first paint (ensemble backtesting desktop CLS 0.18). Until they exist the hero paragraph keeps the time-line space and the section after the hero starts 642 px lower (dashboard space plus its margins), so the guide begins below the fold. Released after 12 s if the scripts never run. Final layout unchanged. */
@supports selector(:has(*)){
.xv-hero:not(:has(>#xionia-time-reference))>#page-title+p{padding-top:49px;animation:xr-xvclock-release 0s 12s forwards}
html:has(script[src*="xionia-verification-dashboard-r"]) main:has(>.xv-hero):not(:has(#xv-dashboard-r2))>.xv-hero+section{margin-top:642px;animation:xr-xvdash-release 0s 12s forwards}
@keyframes xr-xvclock-release{to{padding-top:0}}@keyframes xr-xvdash-release{to{margin-top:0}}}
