/* Aurora map (/revontulet/) and topographic map page (/maastokartta/). Municipality route pages: kunta.css. */
.au, .topo { padding-block: 48px 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; } /* minmax: one long route name never widens the page */
.au-head { display: grid; gap: 14px; max-width: 760px; }
.au-head h1 { margin: 0; }
.au-head .lead { margin: 0; color: var(--ink2); }
.au-live { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.au-map { position: relative; min-height: 560px; border: var(--rule); border-radius: var(--r); background: var(--panel2); overflow: hidden; }
.au-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; color: var(--muted); text-align: center; }
.au-side { display: grid; gap: 12px; }
.au-updated { margin: 0; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.au-list-h { margin: 0; font-size: 18px; }
.au-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.au-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 12px;
  border: var(--rule); border-radius: var(--r); background: var(--panel); }
.au-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; transform: translateY(1px); }
.au-dot.good { background: var(--aurora-good); } .au-dot.possible { background: var(--aurora-possible); }
.au-dot.unlikely { background: var(--aurora-unlikely); } .au-dot.none { background: var(--aurora-none); border: var(--rule); }
.au-place { font-weight: 600; color: var(--ink); }
.au-why { display: block; font-size: 13px; color: var(--ink2); margin-top: 2px; }
.au-lvl { font-size: 13px; color: var(--ink2); text-align: right; white-space: nowrap; }
.au-legend, .au-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.au-cta { display: grid; gap: 10px; max-width: 760px; padding: 24px; border: var(--rule); border-radius: var(--r); background: var(--panel); }
.au-cta h2, .au-cta p { margin: 0; }
.au-how { display: grid; gap: 14px; max-width: 900px; }
.au-how h2, .au-how p { margin: 0; }
.au-factors { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.au-factors div { padding: 16px; border: var(--rule); border-radius: var(--r); background: var(--panel); }
.au-factors dt { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.au-factors dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.au-read ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 860px) {
  .au-live { grid-template-columns: minmax(0, 1fr); }
  .au-map { min-height: 420px; }
}
.au-map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: var(--panel); color: var(--muted); font: 400 11px/1.4 var(--mono); }
.au-map .maplibregl-ctrl-attrib a { color: var(--ink2); }

/* Two headings in one section need more air than the section's own gap. */
.au-how p + h2 { margin-top: 18px; }
.au-read ul { padding-left: 0; gap: 2px; }
.au-read li a { display: inline-block; padding: 6px 0; }

/* Web map landing page: text and phone side by side, then the same panels as the topographic map page. */
.wm-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.wm-shot { margin: 0; }
.wm-hero .btn-row { margin-top: 12px; }
.wm-steps { counter-reset: step; display: grid; gap: 12px; max-width: 42em; }
.wm-steps li { counter-increment: step; display: grid; grid-template-columns: 2em minmax(0, 1fr); align-items: baseline; }
.wm-steps li::before { content: counter(step); font: 700 15px/1 var(--mono); color: var(--accent); }
.wm-table { max-width: 760px; overflow-x: auto; border: var(--rule); border-radius: var(--r); }
.wm-table table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.wm-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wm-table th, .wm-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: var(--rule); }
.wm-table thead th { color: var(--ink); background: var(--panel); }
.wm-table thead td { background: var(--panel); }
.wm-table tbody th { color: var(--ink); font-weight: 600; }
.wm-table tr:last-child th, .wm-table tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .wm-hero { grid-template-columns: minmax(0, 1fr); }
  .wm-shot { max-width: 240px; }
}

/* The app link sits under the lead: on a phone the list of places would otherwise push it four screens down. */
.au-open { margin: 2px 0 0; }

/* Place pages: the answer first, one line large. */
.au-one { display: grid; gap: 6px; max-width: 760px; min-height: 2.5em; }
.au-one-level { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 clamp(30px, 6vw, 42px)/1.1 var(--disp); color: var(--ink); }
.au-one-level .au-dot { width: 18px; height: 18px; transform: none; flex: none; }
.au-one-why { margin: 0; color: var(--ink2); }
a.au-place { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.au-places ul { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Nearest clear sky and the alert form share one panel. No JavaScript, no panel: they would do nothing. */
.au-tool { display: none; gap: 12px; max-width: 760px; padding: 24px; border: var(--rule); border-radius: var(--r); background: var(--panel); }
.js .au-tool { display: grid; }
.au-tool h2, .au-tool p { margin: 0; }
.au-tool form { display: grid; gap: 14px; }
.au-btn { justify-self: start; min-height: 44px; padding: 0 18px; border: var(--rule); border-radius: var(--r); background: var(--panel2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.au-btn:hover:not(:disabled) { border-color: var(--ink2); }
.au-btn:disabled { opacity: .6; cursor: default; }
.au-btn:focus-visible, .au-field input:focus-visible, .au-field select:focus-visible, .au-radio input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.au-tool-msg { color: var(--ink); min-height: 1.4em; }
.au-tool-msg:empty { display: none; }
.au-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.au-field > span, .au-field legend { padding: 0; font-weight: 600; color: var(--ink); }
.au-field input[type=email], .au-field select { width: 100%; max-width: 420px; min-height: 44px; padding: 0 12px; border: var(--rule); border-radius: var(--r); background: var(--bg); color: var(--ink); font: inherit; }
.au-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink2); }
.au-radio input { width: 20px; height: 20px; flex: none; }
.au-clear-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.au-clear-list:empty { display: none; }
.au-clear-list li { display: grid; gap: 2px; padding: 10px 0; border-bottom: var(--rule); }
.au-clear-act { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.au-clear-act a { display: inline-block; padding: 8px 0; }

/* Cloud cover map. */
.pk { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pk-map { min-height: 620px; }
.pk-side { display: grid; gap: 12px; }
.pk-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.pk-time { display: grid; gap: 4px; }
.pk-now { font-size: 15px; color: var(--ink); text-transform: capitalize; }
#pk-hour { width: 100%; height: 44px; margin: 0; accent-color: var(--ink2); }
.pk-legend { margin: 0; display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 4px; font-size: 13px; color: var(--ink2); }
/* The same veil as on the map, over the same dark: the scale is the map's own colour, not a chosen gradient. */
.pk-scale { grid-column: 1 / -1; height: 10px; border: var(--rule); border-radius: 2px; background: linear-gradient(90deg, var(--panel2) 15%, var(--ink)); }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pk-list li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: var(--rule); color: var(--ink2); }
.pk-pct { color: var(--ink); white-space: nowrap; }
.pk-map .maplibregl-popup-content { background: var(--panel); color: var(--ink); font: 400 14px/1.3 inherit; padding: 8px 10px; }
@media (max-width: 860px) {
  .pk { grid-template-columns: minmax(0, 1fr); }
  .pk-map { min-height: 460px; }
}

/* Topographic map page (T96): the map is the hero; crops of the same map show what it draws. */
.topo-links { margin-top: -16px; }
.topo-see { display: grid; gap: 14px; }
.topo-see h2, .topo-see-lead { margin: 0; }
.topo-see-lead { color: var(--ink2); max-width: 40em; }
.topo-crops { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; }
.topo-crop img { display: block; width: 100%; height: auto; border: var(--rule); border-radius: var(--r); margin-bottom: 14px; }
.topo-crop h3 { font-size: 19px; margin-bottom: 8px; }
.topo-crop p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.55; }
