.xionia-alerts {
  box-sizing: border-box;
  max-width: 1180px;
  width: 100%;
  margin: 22px auto;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid #b3c9d9;
  border-radius: 16px;
  background: #f2f7fa;
  color: #19384e;
  text-align: left;
  font:
    15px/1.6 system-ui,
    sans-serif;
}
.xionia-alerts h2 {
  margin-top: 0;
  font-size: clamp(20px, 3vw, 25px);
}
.weather-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  margin: 16px 0;
}
.weather-alert-card {
  display: grid;
  gap: 7px;
  border: 1px solid #d39235;
  border-left-width: 5px;
  border-radius: 10px;
  background: #fff4e0;
  color: #523004;
  padding: 14px;
}
.weather-alert-card > span {
  font-size: 24px;
  font-weight: 700;
}
.weather-alert-card small,
.alerts-fine-print {
  font-size: 12px;
}
.xionia-alerts summary {
  cursor: pointer;
  font-weight: 650;
  padding-block: 8px;
}
.xionia-alerts a {
  color: #08597b;
  text-decoration: underline;
}
.xionia-fire-panel {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #afc5d5;
}
body.xionia-dark .xionia-alerts {
  background: #132b40;
  color: #e7f1f7;
  border-color: #42617a;
}
body.xionia-dark .weather-alert-card {
  color: #fff0c7;
  background: #3b321c;
  border-color: #ba9149;
}
body.xionia-dark .xionia-alerts a {
  color: #8ed9ff;
}
.fire-source-links a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 650;
}

/* Compact station homepage panel, next to the live camera. */
.home-camera-sidebar .xionia-alerts {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.home-camera-sidebar .xionia-alerts h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}
.home-camera-sidebar .xionia-alerts h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.home-camera-sidebar .xionia-alerts p {
  margin: 8px 0;
}
.home-camera-sidebar .alerts-intro {
  font-size: 12px;
}
.home-camera-sidebar .weather-alert-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.home-camera-sidebar .weather-alert-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  padding: 10px;
}
.home-camera-sidebar .weather-alert-card > span {
  font-size: 17px;
}
.home-camera-sidebar .weather-alert-card small {
  grid-column: 1 / -1;
}
.home-camera-sidebar .xionia-fire-panel {
  margin-top: 12px;
  padding-top: 12px;
}
.home-camera-sidebar .xionia-alerts summary {
  padding-block: 6px;
  font-size: 12px;
}
.home-camera-sidebar .fire-source-links a {
  padding: 7px 10px;
}

/* v33.8.4: named areas override legacy row/column placement at every breakpoint. */
html body #place-alerts.xionia-alerts-compact{box-sizing:border-box;display:grid;width:100%;max-width:none;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"signals fire";align-items:start;align-content:start;gap:12px 18px;margin:12px auto;padding:14px 16px;font:13px/1.5 system-ui,sans-serif}
html body #place-alerts.xionia-alerts-compact>.xionia-alert-overview{grid-area:signals;min-width:0;margin:0;padding:0}
html body #place-alerts.xionia-alerts-compact>.xionia-fire-panel{grid-area:fire;min-width:0;margin:0;padding:0 0 0 16px;border:0;border-inline-start:1px solid #819caa66}
html body #place-alerts.xionia-alerts-compact.xionia-alerts-has-preview{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:auto auto;grid-template-areas:"signals preview" "fire preview";row-gap:10px}
html body #place-alerts.xionia-alerts-compact.xionia-alerts-has-preview>.xionia-fire-panel{border:0;border-top:1px solid #819caa66;padding:10px 0 0}
html body #place-alerts.xionia-alerts-compact>.xionia-signal-satellite{grid-area:preview;align-self:start;min-width:0;width:100%;margin:0;padding:0}
html body #place-alerts.xionia-alerts-compact h2,html body #place-alerts.xionia-alerts-compact h3{display:block;width:auto;max-width:none;margin:0 0 6px;padding:0;background:transparent;color:inherit;font:700 15px/1.4 system-ui,sans-serif;text-align:start}
html body #place-alerts.xionia-alerts-compact p{width:auto;max-width:none;margin:5px 0;text-align:start;font:13px/1.5 system-ui,sans-serif}
html body #place-alerts.xionia-alerts-compact .alerts-intro,html body #place-alerts.xionia-alerts-compact .fire-distinction,html body #place-alerts.xionia-alerts-compact .fire-provider{font-size:11px;line-height:1.5}
html body #place-alerts.xionia-alerts-compact .weather-alert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:6px;margin:8px 0;align-items:start}
html body #place-alerts.xionia-alerts-compact .weather-alert-grid>p{grid-column:1/-1;margin:0}
html body #place-alerts.xionia-alerts-compact .weather-alert-card{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-width:0;max-width:none;gap:3px 8px;margin:0;padding:8px 9px;border-left-width:3px}
html body #place-alerts.xionia-alerts-compact .weather-alert-card>span{font-size:17px;line-height:1.3}
html body #place-alerts.xionia-alerts-compact .weather-alert-card strong{font-size:12px}
html body #place-alerts.xionia-alerts-compact .weather-alert-card small{grid-column:1/-1;font-size:11px;line-height:1.4}
html body #place-alerts.xionia-alerts-compact .fire-reading{display:block;width:auto;max-width:none;margin:6px 0;padding:0}
html body #place-alerts.xionia-alerts-compact .fire-score{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:0;margin:0 0 5px;padding:5px 9px;border-radius:7px}
html body #place-alerts.xionia-alerts-compact .fire-score strong{font-size:22px}
html body #place-alerts.xionia-alerts-compact .fire-score span{font-size:12px;line-height:1.35}
html body #place-alerts.xionia-alerts-compact .fire-scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:240px;gap:4px;margin:3px 0 5px}
html body #place-alerts.xionia-alerts-compact .fire-step{font-size:11px;padding:2px 0;line-height:1.4}
html body #place-alerts.xionia-alerts-compact .fire-value-date{font-size:12px}
html body #place-alerts.xionia-alerts-compact .fire-source-links{display:flex;flex-wrap:wrap;gap:4px 14px;margin:4px 0}
html body #place-alerts.xionia-alerts-compact .fire-source-links a{display:inline-flex;align-items:center;min-height:40px;margin:0;padding:4px 0;background:transparent;border:0;border-radius:4px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
html body #place-alerts.xionia-alerts-compact details{margin:4px 0 0;font-size:12px}
html body #place-alerts.xionia-alerts-compact summary{box-sizing:border-box;display:list-item;min-height:40px;padding:9px 0;font:600 12px/1.5 system-ui,sans-serif;cursor:pointer}
html body #place-alerts.xionia-alerts-compact details[open]{margin-top:6px;padding:0 10px 8px;border-inline-start:3px solid #789ab0;background:rgba(119,152,175,.08)}
html body #place-alerts.xionia-alerts-compact details p,html body #place-alerts.xionia-alerts-compact details li{font-size:12px;line-height:1.6}
html body #place-alerts.xionia-alerts-compact .xionia-signal-satellite iframe{box-sizing:border-box;display:block;width:100%;max-width:100%;height:310px;border:0;border-radius:9px;background:transparent}
html body #place-alerts.xionia-alerts-compact .xionia-signal-satellite>a{display:block;padding:8px 3px;font-size:12px;line-height:1.4;text-align:center;color:inherit}
html body #place-alerts.xionia-alerts-compact a:focus-visible,html body #place-alerts.xionia-alerts-compact summary:focus-visible{outline:3px solid #c8912a;outline-offset:3px}
@media(max-width:760px){html body #place-alerts.xionia-alerts-compact,html body #place-alerts.xionia-alerts-compact.xionia-alerts-has-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"signals" "fire" "preview";gap:10px;margin:10px auto;padding:12px}html body #place-alerts.xionia-alerts-compact>.xionia-fire-panel{border:0;border-top:1px solid #819caa66;padding:10px 0 0}html body #place-alerts.xionia-alerts-compact .weather-alert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body #place-alerts.xionia-alerts-compact summary,html body #place-alerts.xionia-alerts-compact .fire-source-links a{min-height:44px}html body #place-alerts.xionia-alerts-compact .xionia-signal-satellite iframe{height:300px}}
@media(max-width:360px){html body #place-alerts.xionia-alerts-compact .weather-alert-grid{grid-template-columns:minmax(0,1fr)}}

/* v33.8.5: equal overall columns; the map fills the actual viewport, not a 760px reserve. */
html body #place-alerts.xionia-alerts-compact.xionia-alerts-has-preview{grid-template-rows:min-content minmax(min-content,1fr);align-items:stretch}
html body #place-alerts.xionia-alerts-compact>.xionia-signal-satellite{display:flex;flex-direction:column;align-self:stretch;min-height:420px}
html body #place-alerts .xionia-satellite-viewport{position:relative;flex:1 1 auto;min-height:360px;overflow:hidden;border-radius:10px}
html body #place-alerts .xionia-satellite-viewport iframe{position:absolute;inset:0;width:100%;height:100%!important;margin:0;pointer-events:none}
html body #place-alerts .xionia-satellite-zoom{position:absolute;inset:0;z-index:2;display:flex;align-items:flex-start;justify-content:flex-end;box-sizing:border-box;padding:9px;background:transparent;color:#fff;text-shadow:0 1px 3px #000;font:600 12px/1.5 system-ui,sans-serif;text-decoration:none}
html body #place-alerts .xionia-satellite-zoom:focus-visible{outline:3px solid #38bdf8;outline-offset:-3px}
html body dialog.xionia-satellite-dialog{box-sizing:border-box;width:min(1200px,96vw);max-width:96vw;height:min(900px,92vh);height:min(900px,92dvh);max-height:92dvh;margin:auto;padding:12px;border:1px solid #7795a8;border-radius:14px;background:#fff;color:#15384b;overflow:hidden}
html body.xionia-dark dialog.xionia-satellite-dialog{background:#122b3d;color:#edf7ff}
html body dialog.xionia-satellite-dialog::backdrop{background:#061824b8}
html body .xionia-satellite-dialog-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;height:48px;margin-bottom:8px;font:600 14px/1.4 system-ui,sans-serif}
html body .xionia-satellite-dialog-bar strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .xionia-satellite-dialog-bar button{min-height:44px;flex-shrink:0;border:1px solid currentColor;border-radius:8px;padding:6px 12px;background:transparent;color:inherit;cursor:pointer}
html body dialog.xionia-satellite-dialog>iframe{display:block;width:100%;height:calc(100% - 56px)!important;border:0;border-radius:8px}
@media(max-width:760px){html body #place-alerts.xionia-alerts-compact>.xionia-signal-satellite{min-height:400px}html body #place-alerts .xionia-satellite-viewport{min-height:340px}html body dialog.xionia-satellite-dialog{padding:8px;border-radius:10px}.xionia-satellite-dialog-bar{font-size:12px}}

/* v33.9.20: retain the Meteosat viewport when fullscreen wraps the iframe. */
html body #place-alerts .xionia-satellite-viewport>.xn-map-frame{position:absolute;inset:0;width:100%;height:100%}
html body #place-alerts .xionia-satellite-viewport>.xn-map-frame.xn-map-full>iframe{pointer-events:auto}
html body #place-alerts .xionia-satellite-viewport>.xn-map-frame~.xionia-satellite-zoom{justify-content:flex-start}
html body dialog.xionia-satellite-dialog>.xn-map-frame{width:100%;height:calc(100% - 56px)}
html body dialog.xionia-satellite-dialog>.xn-map-frame>iframe{display:block;box-sizing:border-box;width:100%;height:100%!important;border:0;border-radius:8px}

.fire-reading { margin: 10px 0; max-width: 520px; }
.xionia-alerts .fire-score {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 0; padding: 10px 12px; border-radius: 9px;
  border: 1px solid currentColor;
}
.fire-score strong { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fire-score span { font-weight: 700; }
.fire-level-1 { background: #def3e7; color: #185536; }
.fire-level-2 { background: #fff1bf; color: #634800; }
.fire-level-3 { background: #ffe0bd; color: #7b3400; }
.fire-level-4 { background: #ffdad7; color: #861f25; }
.fire-level-5 { background: #eddbf6; color: #5b256f; }
.fire-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.fire-step {
  padding: 3px 0; text-align: center; border: 1px solid #8ca6b7; border-radius: 5px;
  background: #e6edf2; color: #375467; font-variant-numeric: tabular-nums;
}
.fire-active { font-weight: 800; border: 2px solid currentColor; padding: 2px 0; }
.fire-active.fire-level-1 { background: #def3e7; color: #185536; }
.fire-active.fire-level-2 { background: #fff1bf; color: #634800; }
.fire-active.fire-level-3 { background: #ffe0bd; color: #7b3400; }
.fire-active.fire-level-4 { background: #ffdad7; color: #861f25; }
.fire-active.fire-level-5 { background: #eddbf6; color: #5b256f; }
.fire-value-date { font-weight: 650; }
.fire-provider, .fire-distinction { font-size: 12px; line-height: 1.5; }
.fire-distinction { font-weight: 600; }
.fire-missing { font-weight: 600; }
.fire-method-list { padding-left: 22px; }
.xionia-alerts .fire-source-links { display: flex; flex-wrap: wrap; gap: 8px; }
body.xionia-dark .fire-step:not(.fire-active) { background: #223b50; color: #d5e3ec; border-color: #637f93; }

