/* Page Météo spatiale */

.sw-verdict { display: flex; flex-direction: column; gap: 14px; }
.sw-verdict .sw-now { margin-top: auto; padding-top: 16px; }
.sw-verdict #sw-next { max-width: 60ch; }
.sw-verdict .head { max-width: 22ch; }
.sw-verdict .lead { max-width: 52ch; }
.sw-now {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 10px;
}
.sw-now div { display: grid; gap: 2px; }
.sw-now dt { font-size: var(--step-small); color: var(--muted); }
.sw-now dd { font-size: var(--step-lead); line-height: 1.15; }
.sw-now dd small { display: block; font-family: var(--font); font-size: var(--step-small); color: var(--muted); }

.sun-photo { margin: 0; display: flex; flex-direction: column; background: #000; }
.sun-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sun-cap {
  display: grid;
  gap: 10px;
  padding: 12px var(--pad) 14px;
  background: var(--tile);
  color: var(--muted);
  margin-top: auto;
}

.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 16px; }
.row-head h2, .map-head h2 { font-size: var(--step-lead); font-weight: 600; }
.keys { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); }
.k { display: inline-flex; align-items: center; gap: 6px; }
.k::before { content: ''; width: 14px; height: 14px; }
.k-obs::before { background: var(--ink); }
.k-est::before { background: var(--muted); }
.k-pred::before { background: none; outline: 1.5px dashed var(--muted); outline-offset: -2px; }
.k-storm::before { background: var(--accent); }

.kp { display: grid; gap: 12px; }
.chart-scroll { overflow-x: auto; }
.kp-svg, .xray-svg { width: 100%; min-width: 720px; height: auto; display: block; }
.kp-svg text, .xray-svg text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.kp-bar { fill: var(--ink); }
.kp-bar.est { fill: var(--muted); }
.kp-bar.pred { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 3 2; }
.kp-bar.storm { fill: var(--accent); }
.kp-bar.pred.storm { fill: none; stroke: var(--accent); }
.grid-line { stroke: var(--rule); stroke-width: 1; }
.storm-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 3; }
.now-line { stroke: var(--ink); stroke-width: 1.5; }
.chart-label { font-family: var(--font) !important; }

.aurora-map { display: flex; flex-direction: column; background: var(--map-sea); }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; padding: var(--pad); background: var(--tile); }
.map-legend { padding: 12px var(--pad) 14px; background: var(--tile); color: var(--muted); margin-top: auto; }

.aurora-you { display: grid; gap: 14px; align-content: start; }
.aurora-you h2 { font-size: var(--step-lead); font-weight: 600; }
.ay-big { font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem); }

.xray { display: grid; gap: 12px; align-content: start; }
.xray-line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.xray-band { fill: var(--tile-2); }
.flare-mark { fill: var(--accent); }

.flares { display: grid; gap: 16px; align-content: start; }
.flare-list { display: grid; gap: 4px; }
.flare-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--tile);
}
.flare-list .cls { font-family: var(--mono); font-weight: 500; font-size: var(--step-lead); }
.flare-list .cls.big { color: var(--accent); }
.flare-list time { font-family: var(--mono); font-size: var(--step-small); color: var(--muted); }

.scales { display: grid; gap: 20px; }
.scale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.scale {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px 20px;
  background: var(--tile-2);
}
.scale h3 { font-size: var(--step-body); font-weight: 600; }
.scale .level { font-family: var(--mono); font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; }
.scale .level.on { color: var(--accent); }
.scale p { font-size: var(--step-small); }
.scale dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: var(--step-small); }
.scale dt { color: var(--muted); }
.scale dd { font-family: var(--mono); }

@media (max-width: 1080px) {
  .sw-verdict, .aurora-map, .xray { grid-column: span 12; }
  .sun-photo, .aurora-you, .flares { grid-column: span 6; }
  .sw-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sun-photo, .aurora-you, .flares { grid-column: span 12; }
  .scale-grid { grid-template-columns: 1fr; }
}
