/* Xionia 33.8: compact station calibration links, available before data loads. */
html body #station-calibration-links{--sc-paper:#edf5f9;--sc-ink:#165576;--sc-edge:#bfd3df;box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:7px;width:100%;max-width:560px;margin:8px 0 12px;padding:0;text-align:start;scroll-margin-top:calc(var(--xn-header-height,0px) + 12px)}
html body.xionia-dark #station-calibration-links,html[data-theme=dark] body #station-calibration-links{--sc-paper:#17364a;--sc-ink:#c0e8fc;--sc-edge:#486a81}
html body #station-calibration-links a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:none;width:auto;min-width:0;max-width:100%;height:auto;min-height:40px;margin:0;padding:6px 9px;border:1px solid var(--sc-edge);border-radius:9px;background:var(--sc-paper);color:var(--sc-ink);font:600 12px/1.3 system-ui,sans-serif;white-space:normal;overflow-wrap:break-word;text-align:center;text-decoration:none;touch-action:manipulation}
html body #station-calibration-links a:hover{border-color:var(--sc-ink);text-decoration:underline;text-underline-offset:3px}
html body #station-calibration-links a:focus-visible{outline:3px solid #c88b16;outline-offset:3px}
@media(max-width:600px){html body #station-calibration-links{gap:6px;max-width:100%}html body #station-calibration-links a{min-height:44px;padding:6px 4px;font-size:12px}}
@media(forced-colors:active){html body #station-calibration-links a{border-color:LinkText}}

/* Keep the calibration choice and its status centred as one readable control. */
html body .xf-calibration-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;width:100%;text-align:center}
html body .xf-calibration-controls #mode-label{display:inline-flex;align-items:center;justify-content:center;gap:7px;max-width:100%;text-align:center;white-space:normal}
html body .xf-calibration-controls #calibration-state{text-align:center;max-width:100%;overflow-wrap:anywhere}
html body #station-calibration-links{margin-inline:auto}

/* v33.8.1: the actual calibration weights remain open, followed by their evidence links. */
html body #station-calibration-panel{width:100%;box-sizing:border-box;max-width:820px;margin:14px auto 20px;padding:14px 16px;border:1px solid #bfd3df;border-radius:12px;background:#f5f9fc;color:#183d54;scroll-margin-top:calc(var(--xn-header-height,0px) + 14px);text-align:center}
html body.xionia-dark #station-calibration-panel{background:#132e41;color:#e6f4fc;border-color:#496a7e}
html body #station-calibration-panel h2{font:650 16px/1.4 system-ui,sans-serif;margin:0 0 10px;color:inherit;text-align:center}
html body #station-calibration-panel>label{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;font:13px/1.5 system-ui,sans-serif}
html body #station-calibration-panel select{font:inherit;min-height:40px;padding:8px 10px;border:1px solid #94b4c9;border-radius:8px;background:inherit;color:inherit}
html body #station-calibration-panel .xf-model-blend{margin:10px 0 0;padding:0;border:0;background:transparent;color:inherit;max-width:100%;text-align:start}
html body #station-calibration-panel .xf-model-blend>h3{display:none}
html body #station-calibration-panel p{font:12px/1.55 system-ui,sans-serif;text-align:start;max-width:none;width:100%;color:inherit;margin:8px 0}
html body #station-calibration-panel .xf-blend-scroll{max-width:100%;width:100%;overflow:auto;scrollbar-gutter:stable}
html body #station-calibration-panel table{width:100%;min-width:0;font-size:12px}
html body #station-calibration-panel th,html body #station-calibration-panel td{padding:7px 9px;font-size:12px;white-space:normal}
html body #station-calibration-panel details{font-size:12px;margin:7px 0}
html body #station-calibration-panel summary{min-height:38px;display:flex;align-items:center;cursor:pointer}
html body #station-calibration-panel #station-calibration-links{margin:12px auto 0;max-width:560px}
@media(max-width:600px){html body #station-calibration-panel{padding:12px 10px}html body #station-calibration-panel th,html body #station-calibration-panel td{padding:7px 5px;font-size:11px}html body #station-calibration-panel th:first-child{overflow-wrap:anywhere}html body #station-calibration-panel #station-calibration-links a{font-size:11px}}

/* v33.8.2: method and actual formula at their original lower-page anchor. */
html body #calibration-footnote #station-calibration-panel{max-width:none;margin:12px 0 16px}
html body #station-formula{margin-top:14px;padding-top:12px;border-top:1px solid #8daec366;text-align:start}
html body #station-formula h3{font:650 15px/1.5 system-ui,sans-serif;margin:0 0 8px;color:inherit}
html body #station-formula .xf-formula-row{padding:9px 0;border-bottom:1px solid #8daec344;overflow-wrap:anywhere}
html body #station-formula .xf-formula-row strong{font-size:13px}
html body #station-formula .xf-formula-row small{display:block;font:11px/1.55 system-ui,sans-serif}
html body #station-method-jump{margin:8px 0 14px;text-align:center;font:13px/1.6 system-ui,sans-serif}
html body #station-method-jump a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* Xionia 33.7.4: compact navigation and touch-friendly weather tools. */
html body nav.home-related[data-shortcuts-version]{
  --xn-paper:#f2f7fb;--xn-card:#fff;--xn-ink:#173f58;--xn-line:#c0d3df;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;
  box-sizing:border-box;width:100%;max-width:100%;margin:14px 0;padding:12px;
  border:1px solid var(--xn-line);border-radius:14px;background:var(--xn-paper);
  text-align:center;font:600 13px/1.4 system-ui,sans-serif;
}
html body.xionia-dark nav.home-related[data-shortcuts-version],
html[data-theme=dark] body nav.home-related[data-shortcuts-version]{
  --xn-paper:#132f42;--xn-card:#1b3b52;--xn-ink:#eaf5fc;--xn-line:#496b83;
}
html body nav.home-related[data-shortcuts-version]>a{
  display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;gap:6px;
  box-sizing:border-box;width:auto;max-width:100%;min-width:0;min-height:44px;margin:0;
  padding:8px 12px;border:1px solid var(--xn-line);border-radius:10px;
  background:var(--xn-card);color:var(--xn-ink)!important;font:inherit;
  text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-shadow:none;
}
html body nav.home-related[data-shortcuts-version]>a[data-xn-tool]{border-inline-start:3px solid #3891b6}
html body nav.home-related[data-shortcuts-version]>a:hover{border-color:#3891b6;text-decoration:underline;text-underline-offset:3px}
html body nav.home-related[data-shortcuts-version]>a:focus-visible{outline:3px solid #d99d2d;outline-offset:2px}
html body .xn-home-tools>nav.home-related[data-shortcuts-version]{margin:0;padding:0;border:0;border-radius:0;background:transparent}
html body .xn-home-tools .xn-home-jumps{gap:6px}
html body .xn-home-tools .xn-home-jumps a{text-decoration:none;font-weight:550}
html body .xn-home-tools .xn-nav-context{max-width:none;width:100%;margin:0 0 10px;color:inherit;opacity:.88;font:400 12px/1.6 system-ui,sans-serif;text-align:start}
/* Higher specificity stops generic legacy header layout from stacking the dialog title/actions. */
html body dialog.xn-tool-dialog>header{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;
  flex:none;box-sizing:border-box;width:100%;max-width:none;min-height:64px;height:auto;
  margin:0;padding:8px 12px;gap:8px;text-align:start;
}
html body dialog.xn-tool-dialog>header h2{width:auto;max-width:none;font-size:16px;overflow-wrap:anywhere}
html body dialog.xn-tool-dialog>header a,html body dialog.xn-tool-dialog>header button{width:auto;max-width:none;white-space:normal}

.xm-meteogram .xm-model-picker{margin:12px 0;border:1px solid var(--xm-line);border-radius:12px;background:var(--xm-soft)}
.xm-meteogram .xm-model-picker>summary{cursor:pointer;padding:11px 12px;min-height:44px;box-sizing:border-box;font-weight:650;font-size:13px;color:var(--xm-ink)}
.xm-meteogram .xm-model-picker>.xm-models{margin:0;padding:0 10px 10px}
.xm-meteogram .xm-model-picker>.xm-models legend{padding:0 0 5px}
.xm-meteogram .xm-model-picker:not([open])>.xm-models{display:none}
.xm-meteogram .xm-model-picker>summary:focus-visible{outline:3px solid #d99d2d;outline-offset:2px}
.xm-scene-scroll,.xe-plot-panel .xc-plot,.xm-chart-details .xc-plot{scrollbar-width:auto;scrollbar-color:var(--xm-muted,#648499) var(--xm-soft,#eaf1f6);overscroll-behavior-x:contain}
.xe-plot-panel .xc-plot,.xm-chart-details .xc-plot{overflow-x:auto;max-width:100%;min-width:0;-webkit-overflow-scrolling:touch}
.xm-scene-scroll::-webkit-scrollbar,.xe-plot-panel .xc-plot::-webkit-scrollbar,.xm-chart-details .xc-plot::-webkit-scrollbar{height:12px}
.xm-scene-scroll::-webkit-scrollbar-thumb,.xe-plot-panel .xc-plot::-webkit-scrollbar-thumb,.xm-chart-details .xc-plot::-webkit-scrollbar-thumb{border:3px solid var(--xm-soft,#eaf1f6);border-radius:9px;background:var(--xm-muted,#648499)}
.xm-scene-scroll::-webkit-scrollbar-track,.xe-plot-panel .xc-plot::-webkit-scrollbar-track,.xm-chart-details .xc-plot::-webkit-scrollbar-track{background:var(--xm-soft,#eaf1f6)}
.xm-scroll-tools{display:flex;align-items:center;gap:7px;min-width:0;margin:8px 0;color:var(--xm-muted,#536c7d);font:12px/1.4 system-ui,sans-serif}
.xm-scroll-tools[hidden]{display:none!important}
.xm-meteogram .xm-scroll-tools button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;padding:6px;font-size:20px;line-height:1}
.xm-scroll-tools span{flex:1;min-width:0;text-align:center}
.xm-meteogram .xm-scroll-tools button:disabled{opacity:.4;cursor:default}
.xm-meteogram [role=slider]{touch-action:pan-x pan-y pinch-zoom}
@media(min-width:701px){
  .xm-meteogram .xm-model-picker{border:0;background:none;margin:0}
  .xm-meteogram .xm-model-picker>summary{display:none}
  .xm-meteogram .xm-model-picker>.xm-models{padding:0;margin:14px 0}
}
@media(max-width:700px){
  html body nav.home-related[data-shortcuts-version]{gap:6px;padding:10px}
  html body nav.home-related[data-shortcuts-version]>a{padding:8px 10px;font-size:13px}
  html body .xn-home-tools{padding:10px;border-radius:12px}
  html body .xn-home-tools h2{font-size:15px}
  html body .xn-home-jumps>span{width:100%}
  html body .xn-home-tools .xn-home-jumps a{font-size:12px;padding:7px 9px}
  html body dialog.xn-tool-dialog{width:100vw;height:100vh;height:100dvh;border:0;border-radius:0}
  html body dialog.xn-tool-dialog>header{padding:6px 8px;padding-top:max(6px,env(safe-area-inset-top));min-height:58px;gap:6px}
  html body dialog.xn-tool-dialog>header h2{font-size:14px;line-height:1.3}
  html body dialog.xn-tool-dialog>header a{max-width:88px;font-size:11px;padding:6px}
  html body dialog.xn-tool-dialog>header button{padding:6px;font-size:12px}
  html body dialog.xn-tool-dialog iframe{padding-bottom:env(safe-area-inset-bottom);box-sizing:border-box}
  .xm-meteogram.xm-studio,.xm-meteogram.xe-studio{padding:12px 10px;margin:12px 0;border-radius:12px}
  body[data-widget=true] main{padding:4px;min-width:0}
  body[data-widget=true] .xm-meteogram{margin:0;border-radius:10px}
  .xm-meteogram .xm-header{display:flex;align-items:stretch;gap:10px;width:100%;max-width:none;margin:0;padding:0 0 10px;text-align:start}
  .xm-meteogram .xm-header>div:first-child{flex:1 1 100%;min-width:0}
  .xm-meteogram h1,.xm-meteogram h2{font-size:21px;line-height:1.3;overflow-wrap:anywhere}
  .xm-meteogram .xm-share-actions{display:flex;width:100%;gap:6px;flex-wrap:wrap}
  .xm-meteogram .xm-share-actions button{flex:1 1 auto;min-width:0;font-size:12px;min-height:44px;padding:7px}
  .xm-meteogram .xm-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;padding:10px;min-width:0}
  .xm-meteogram .xm-controls label{min-width:0;max-width:100%;font-size:12px;align-content:start}
  .xm-meteogram .xm-controls select{width:100%;max-width:100%;min-width:0;font-size:16px;padding:7px;min-height:44px}
  .xm-meteogram .xm-controls .xm-more-toggle{grid-column:1/-1;min-height:44px;padding:0;gap:8px}
  .xm-meteogram .xm-controls .xa-appearance{grid-column:1/-1;border-top:1px solid var(--xm-line);padding-top:8px}
  .xm-meteogram .xa-appearance input[type=color],.hz-satellite .xa-appearance input[type=color]{min-width:44px;min-height:44px;height:44px}
  .xm-meteogram .xa-appearance button,.hz-satellite .xa-appearance button{min-height:44px}
  .xm-meteogram .xm-models{gap:6px}
  .xm-meteogram .xm-models label{box-sizing:border-box;min-height:44px;font-size:12px;padding:8px 10px;gap:7px}
  .xm-meteogram .xm-models input{width:18px;height:18px}
  .xm-meteogram .xm-readout{margin:12px 0;padding:10px;gap:10px}
  .xm-meteogram .xm-readout-time>svg{width:42px;height:42px;flex-basis:42px}
  .xm-meteogram .xm-readout-time strong{font-size:14px}
  .xm-meteogram .xm-readout-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .xm-meteogram .xm-readout-values strong{font-size:20px}
  .xm-meteogram .xm-day-nav{margin:8px 0;scrollbar-width:auto;gap:6px;scroll-snap-type:x proximity}
  .xm-meteogram .xm-day-nav button{min-height:44px;scroll-snap-align:start;font-size:12px}
  .xm-meteogram .xm-time-control{gap:6px;margin:10px 0;flex-wrap:wrap}
  .xm-meteogram .xm-time-control input{flex-basis:100%;width:100%;min-height:44px}
  .xm-meteogram .xm-note{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
  .xm-meteogram .xm-table-wrap tr>th:first-child{min-width:115px;width:115px;max-width:130px;font-size:11px}
  .xm-meteogram .xe-plot-panel{padding:12px 4px 8px}
  .xm-meteogram .xe-plot-panel>header{display:block;width:100%;max-width:none;margin:0;padding:0 6px 6px}
  .xm-meteogram .xe-plot-panel h3{font-size:15px;margin:0 0 4px}
  .xm-meteogram .xe-links{gap:8px;margin:12px 0}
  .xm-meteogram .xe-links>a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
  .xm-meteogram .xe-family-status{gap:5px}
  .xm-meteogram .xe-family-status span{font-size:11px}
  .hz-satellite .hz-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;padding:10px}
  .hz-satellite .hz-controls>label{min-width:0;width:100%;grid-column:1/-1}
  .hz-satellite .hz-controls select{width:100%;max-width:100%;min-width:0;font-size:16px;min-height:44px}
  .hz-satellite .hz-controls>button{min-width:0;min-height:44px;padding:8px;font-size:13px}
  .hz-satellite .hz-controls>.xa-appearance{grid-column:1/-1}
  .hz-satellite .hz-map{height:clamp(300px,55vh,480px);height:clamp(300px,55svh,480px);min-height:300px}
  .hz-satellite .hz-timeline{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
  .hz-satellite .hz-timeline button,.hz-satellite .hz-timeline input{min-height:44px;min-width:0}
  .hz-satellite .hz-timeline output{grid-column:1/-1;min-width:0}
  .hz-satellite .leaflet-control-zoom a{min-width:44px;min-height:44px;line-height:44px}
  .hz-satellite details>summary{min-height:44px;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.xm-scroll-tools~*{scroll-behavior:auto!important}}

