/* Außerfern Cam – hell, klar und modern, mit Farben aus der Gegend: Waldgrün als Hauptfarbe, Tiroler Rot für
   „live", warmes Weiß als Grund. Im Kopf stehen dezente Bergketten; die Karte (der Bezirk als ausgeschnittenes
   Luftbild) steht frei darunter, ohne Rahmen und ohne Muster. */
:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #18211d;
  --mute: #5f6b65;
  --faint: #98a19c;
  --line: #e3e1d9;
  --green: #2c5b45;
  --green-soft: #e7efea;
  --red: #c8372f;
  --blue: #3d86c4;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --title: "Cormorant Garamond", "Sitka Display", "Bodoni 72", Didot, Baskerville, "Palatino Linotype", Georgia, serif;
  --copper: #b0632b;
  --deep: #1f4634;
  --wide: 1280px;
  --pad: 28px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 33, 29, 0.06), 0 8px 24px rgba(24, 33, 29, 0.09);
  color-scheme: light;
}
/* Titelschrift: Cormorant Garamond (SIL Open Font License, siehe fonts/OFL.txt), in der Seite mitgeliefert */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; position: relative; color: var(--ink); font: 14px/1.5 var(--sans); background: var(--bg); }
a { color: var(--green); }
button, input { font: inherit; color: inherit; }

/* ---------- Kopf mit Bergketten ---------- */
/* Der Kopf liegt über dem oberen Rand der Karte: ein heller Schleier, der nach unten durchsichtig wird –
   die Karte scheint dahinter leicht durch und verschwindet nach oben hin. Klicks gehen durch ihn hindurch. */
.mast { position: absolute; top: 0; left: 0; right: 0; z-index: 700; pointer-events: none; text-align: center; padding: 14px var(--pad) 86px; background: linear-gradient(180deg, rgba(231, 238, 237, 0.97) 0%, rgba(238, 242, 239, 0.93) 38%, rgba(243, 244, 240, 0.74) 62%, rgba(245, 244, 239, 0.36) 82%, rgba(245, 244, 239, 0) 100%); overflow: hidden; }
.ridges { position: absolute; left: 0; right: 0; bottom: 30px; width: 100%; height: 120px; display: block; opacity: 0.55; -webkit-mask-image: linear-gradient(#000 35%, transparent 100%); mask-image: linear-gradient(#000 35%, transparent 100%); }
.mastin { position: relative; }
.mast p { margin: 0; }
.over { display: block; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; font-weight: 700; color: var(--copper); }
.mast h1 { margin: 0 0 1px; font-family: var(--title); font-weight: 600; font-size: clamp(44px, 4.8vw, 66px); line-height: 1; letter-spacing: -0.005em; color: var(--deep); }
.mast h1 em { font-style: italic; font-weight: 600; color: var(--copper); }
.sub { font-size: 14.5px; color: var(--mute); }

main { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Karte: frei auf dem Seitengrund ---------- */
/* Die Karte läuft über die volle Fensterbreite; oben und unten blendet sie weich in den Seitengrund über,
   damit beim Hineinzoomen keine harte Schnittkante entsteht. */
.sheet { position: relative; height: clamp(560px, 100vh, 1080px); overflow: hidden; --edge: max(var(--pad), calc((100% - var(--wide)) / 2)); }
.sheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 500; pointer-events: none; background: linear-gradient(rgba(245, 244, 239, 0) 0%, rgba(245, 244, 239, 0.36) 20%, rgba(245, 244, 239, 0.74) 46%, rgba(245, 244, 239, 0.93) 72%, var(--bg) 100%); }
#map { position: absolute; inset: 0; background: transparent; }
.leaflet-container { background: transparent; font: inherit; outline: none; }
.foto { filter: saturate(0.95) contrast(1.04) brightness(1.05); }

/* Alles außerhalb des Bezirks hat die Farbe des Seitengrunds – der Bezirk wirkt ausgeschnitten und leicht angehoben */
.mask { fill: var(--bg); fill-opacity: 1; stroke: none; }
.b-shadow { fill: none; stroke: #0f1a14; stroke-width: 14; stroke-opacity: 0.3; filter: blur(8px); stroke-linejoin: round; }
.b-edge { fill: none; stroke: #ffffff; stroke-width: 3.5; stroke-opacity: 1; stroke-linejoin: round; }

.leaflet-control-attribution { background: rgba(245, 244, 239, 0.8) !important; border-radius: 6px; color: var(--mute); font-size: 10.5px; padding: 1px 7px !important; margin: 0 0 6px var(--edge) !important; position: relative; z-index: 600; }
.leaflet-right .leaflet-control-zoom { margin-right: var(--edge); margin-bottom: 60px; }
.leaflet-control-attribution a { color: var(--faint) !important; }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-bottom-color: var(--line) !important; width: 34px !important; height: 34px !important; line-height: 34px !important; }
.leaflet-bar a:hover { background: var(--bg) !important; }


/* Talnamen außen: Knöpfe mit einer feinen Linie ins Tal */
.vlabel { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: -0.005em; color: var(--ink); padding: 6px 8px 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(24, 33, 29, 0.06), 0 4px 12px rgba(24, 33, 29, 0.07); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.vlabel em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.vlabel:hover { border-color: var(--green); }
.vlabel[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.vlabel[aria-pressed="true"] em { color: #fff; background: rgba(255, 255, 255, 0.2); }
.leader { fill: none; stroke: #7c8780; stroke-opacity: 0.9; stroke-width: 1; stroke-dasharray: 1 4; stroke-linecap: round; }
.leaderdot { fill: #fff; fill-opacity: 1; stroke: var(--green); stroke-width: 2; }

/* Beschriftung auf dem Luftbild: nur Orte, Berge und Seen */
.lbl { position: absolute; white-space: nowrap; pointer-events: none; font-family: var(--display); color: #fff; line-height: 1; transform: translateY(-50%);
  text-shadow: 0 0 3px rgba(8, 14, 10, 0.95), 0 0 7px rgba(8, 14, 10, 0.7), 0 1px 1px rgba(8, 14, 10, 0.9); }
.lbl.ort { font-weight: 600; font-size: 13px; }
.lbl.ort.r0 { font-weight: 700; font-size: 16.5px; }
.lbl.ort.r1 { font-size: 14px; }
.lbl.ort.r3 { font-weight: 500; font-size: 12px; }
.lbl.berg { font-size: 12px; font-weight: 500; color: #f3efe2; }
.lbl.berg::before, .lbl.berg.flip::after { content: "▲"; font-size: 7.5px; margin: 0 4px 0 0; vertical-align: 1px; }
.lbl.berg.flip { transform: translate(-100%, -50%); }
.lbl.berg.flip::before { display: none; }
.lbl.berg.flip::after { margin: 0 0 0 4px; }
.lbl.berg small { font-size: 10px; margin-left: 4px; opacity: 0.8; font-variant-numeric: tabular-nums; }
.lbl.see { font-style: italic; font-size: 12.5px; color: #cfe9ff; }

/* ---------- Kamera-Punkte ---------- */
.pinwrap { display: grid; place-items: center; }
.pin { --c: #e0a526; width: calc(13px * var(--ps, 1)); height: calc(13px * var(--ps, 1)); border-radius: 50%; background: var(--c); display: block; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(8, 14, 10, 0.55); transition: transform 0.15s ease; }
.pin.live { --c: var(--red); }
.pin.pano { --c: var(--blue); }
.pin.flug { --c: #9a6b3f; }
.pin.road { --c: #ffffff; width: calc(8px * var(--ps, 1)); height: calc(8px * var(--ps, 1)); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 0 1.5px rgba(8, 14, 10, 0.7), 0 1px 3px rgba(8, 14, 10, 0.5); }
.pin.off { opacity: 0.6; filter: grayscale(1); }
.leaflet-marker-icon:hover .pin, .leaflet-marker-icon.sel .pin { transform: scale(1.5); }
.leaflet-marker-icon:hover .pin.road, .leaflet-marker-icon.sel .pin.road { transform: rotate(45deg) scale(1.6); }
.leaflet-marker-icon.sel { z-index: 9000 !important; }
.leaflet-marker-icon.sel .pin { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--ink), 0 3px 8px rgba(8, 14, 10, 0.6); }
.leaflet-marker-icon.dim { opacity: 0.3; }
.editing .leaflet-marker-icon { cursor: grab; }
.thumbpin { width: calc(50px * var(--ps, 1)); height: calc(50px * var(--ps, 1)); border-radius: 50%; overflow: hidden; display: block; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(8, 14, 10, 0.5); background: var(--surface); transition: transform 0.18s ease; }
.thumbpin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leaflet-marker-icon:hover .thumbpin, .leaflet-marker-icon.sel .thumbpin { transform: scale(1.2); }

/* Markierung der gewählten Kamera oder Station: ein Ring pulsiert einmal, der Name darüber bleibt stehen */
.beacon { position: absolute; left: 0; top: 0; }
.beacon i { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red), 0 0 14px 2px rgba(200, 55, 47, 0.7), inset 0 0 0 2px var(--red); animation: beacon 1.8s ease-out 1 both; }
.beacon i + i { display: none; }
.beacon b { position: absolute; left: 0; bottom: calc(var(--r) + 14px); transform: translateX(-50%); white-space: nowrap; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 8px; box-shadow: 0 3px 12px rgba(8, 14, 10, 0.5); animation: beaconname 0.35s ease-out; }
.beacon b::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--red); border-bottom: 0; }
@keyframes beacon { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
@keyframes beaconname { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Wetterwerte auf der Karte */
.wx { display: inline-flex; align-items: center; gap: 4px; transform: translate(-50%, -50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgba(8, 14, 10, 0.3), 0 3px 8px rgba(8, 14, 10, 0.25); cursor: pointer; }
.wx small { font-weight: 500; color: var(--mute); font-size: 10px; }
.wx svg { width: 10px; height: 10px; flex: none; fill: var(--green); }
.wx.strong { color: var(--red); }
.wx.strong svg { fill: var(--red); }
.tiny .wx { font-size: 10.5px; padding: 1px 6px; gap: 3px; }
.tiny .wx small { display: none; }
.tiny .wx svg { width: 8px; height: 8px; }

.leaflet-tooltip.tip { background: var(--ink); border: 0; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow); }
.leaflet-tooltip.tip::before { display: none; }
.tip small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 11px; font-weight: 400; }

/* Schalter an der Karte */
.mapctl { position: absolute; top: 150px; right: var(--edge); z-index: 750; display: flex; gap: 6px; }
.mapctl button { border: 1px solid var(--line); background: var(--surface); padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--mute); box-shadow: 0 1px 2px rgba(24, 33, 29, 0.06); }
.mapctl button:hover { color: var(--ink); border-color: #cfccc2; }
.mapctl button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Karte zur gewählten Kamera oder Station */
.spot { position: absolute; z-index: 800; left: var(--edge); bottom: 84px; width: 340px; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(24, 33, 29, 0.08), 0 18px 44px rgba(24, 33, 29, 0.2); animation: rise 0.2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.spot[hidden] { display: none; }
.spot .shot { display: block; aspect-ratio: 16 / 9; background: var(--bg); }
.spot .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot .body { padding: 14px 44px 16px 16px; }
.spot .shot + .body { padding-right: 16px; }
.spot h2 { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.spot .meta { margin: 4px 0 12px; color: var(--mute); font-size: 12.5px; }
.spot .meta b { color: var(--ink); font-weight: 600; }
.spot .actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.spot .go { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; }
.spot .go:hover { background: #234a38; }
.spot .x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(245, 244, 239, 0.95); color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1; }
.spot .vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 2px -28px 12px 0; }
.spot .vals div { padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.spot .vals b { display: block; font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.spot .vals span { color: var(--mute); font-size: 10.5px; }
.spot .src { color: var(--faint); font-size: 11px; margin: 0; }

.edit { position: absolute; z-index: 800; right: var(--edge); bottom: 90px; width: 300px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; }
.edit[hidden] { display: none; }
.edit p { margin: 4px 0 8px; color: var(--mute); }
.edit textarea { width: 100%; font: 11px/1.4 ui-monospace, Consolas, monospace; border: 1px solid var(--line); border-radius: 8px; padding: 6px; resize: vertical; }
.edit button { margin-top: 6px; padding: 5px 12px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }

/* ---------- Abschnitte unter der Karte ----------
   Wie ein gedrucktes Verzeichnis: Überschriften in der Titelschrift, darunter Listen mit feinen Linien.
   Keine Kästen, keine Schatten, keine Pillen. */
.tabs { position: sticky; top: 0; z-index: 950; display: flex; justify-content: center; gap: 34px; margin: 4px calc(var(--pad) * -1) 0; padding: 14px 0 13px; background: rgba(245, 244, 239, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; text-transform: uppercase; letter-spacing: 0.2em; font-size: 11.5px; font-weight: 700; color: var(--mute); padding: 2px 0; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--deep); border-bottom-color: var(--copper); }

.block { padding: 56px 0 8px; }
.blockhead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 30px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--deep); }
.block h2 { margin: 0; font-family: var(--title); font-size: 46px; font-weight: 600; line-height: 0.95; letter-spacing: -0.005em; color: var(--deep); }
.hint { margin: 0 0 3px; color: var(--mute); font-size: 13.5px; }
.hint.sun { margin-left: auto; font-variant-numeric: tabular-nums; }
.hint.sun b { color: var(--ink); font-weight: 600; }
#search { margin: 0 0 1px auto; width: 230px; padding: 6px 2px; border: 0; border-bottom: 1px solid #c9c6ba; border-radius: 0; background: none; outline: none; }
#search::placeholder { color: var(--faint); }
#search:focus { border-bottom-color: var(--deep); box-shadow: 0 1px 0 var(--deep); }

/* Regionen als Textreiter */
.valleys { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 3px; }
.valleys button { display: inline-flex; align-items: baseline; gap: 5px; cursor: pointer; padding: 3px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--mute); font-size: 14px; font-weight: 600; }
.valleys button em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.valleys button:hover { color: var(--ink); }
.valleys button[aria-pressed="true"] { color: var(--deep); border-bottom-color: var(--copper); }
.valleys button[aria-pressed="true"] em { color: var(--copper); }

/* Livebilder: die Bilder selbst, ohne Rahmen */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; margin-bottom: 40px; }
.tiles:empty { display: none; }
.tile { display: block; text-decoration: none; color: inherit; }
.tile .frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #e9e7df; border-radius: 4px; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tile:hover img { transform: scale(1.03); }
.tile .frame b { position: absolute; top: 10px; left: 10px; font-size: 10px; letter-spacing: 0.14em; padding: 3px 7px 2px; border-radius: 2px; background: var(--red); color: #fff; }
.tile .cap { display: block; padding: 11px 0 0; }
.tile .cap strong { display: block; font-family: var(--title); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--deep); }
.tile:hover .cap strong { color: var(--copper); }
.tile .cap small { color: var(--mute); font-size: 13px; }

/* Verzeichnis: Spalten mit Überschrift und Zeilen an feinen Linien */
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px 46px; align-items: start; }
.col h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 0 0 7px; border-bottom: 1px solid var(--deep); font-family: var(--title); font-weight: 600; font-size: 25px; line-height: 1.1; color: var(--deep); }
.col h3 em { font-family: var(--sans); font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.col ul { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.row:hover { background: rgba(255, 255, 255, 0.6); }
.row.active { background: var(--green-soft); }
.rowlink { flex: 1; min-width: 0; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 11px; padding: 9px 4px 9px 2px; text-decoration: none; color: inherit; }
.rowtext { min-width: 0; }
.row .pin { box-shadow: none; width: 8px; height: 8px; justify-self: center; }
.row .pin.road { width: 6px; height: 6px; background: var(--faint); }
.row strong { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row small { display: block; color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tag { font-size: 11px; color: var(--faint); white-space: nowrap; }
.rowlink:hover strong { color: var(--copper); }
.locate { flex: none; width: 32px; border: 0; background: none; border-radius: 0; cursor: pointer; color: #b4bab5; display: grid; place-items: center; }
.locate:hover { color: var(--deep); }
.locate svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.row.offline { opacity: 0.5; }
.empty { padding: 22px 8px; color: var(--mute); text-align: center; }

/* Wetter: offene Tabelle */
.tablewrap { overflow-x: auto; }
.wxtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 680px; }
.wxtable th { text-align: right; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); padding: 0 12px 9px; border-bottom: 1px solid var(--line); }
.wxtable th:first-child, .wxtable td:first-child { text-align: left; }
.wxtable td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.wxtable td:first-child { font-weight: 600; }
.wxtable td small { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; }
.wxtable td.temp { font-size: 15px; font-weight: 700; }
.wxtable td.none { color: #c5cac6; }
.wxtable .sep td { padding: 26px 0 7px; border-bottom: 1px solid var(--deep); font-family: var(--title); font-size: 25px; font-weight: 600; line-height: 1.1; color: var(--deep); cursor: default; }
.wxtable tbody .sep:first-child td { padding-top: 8px; }
.wxtable tr.station { cursor: pointer; }
.wxtable tr.station:hover, .wxtable tr.station.open { background: rgba(255, 255, 255, 0.6); }
.wxtable tr.station:focus-visible { outline: 2px solid var(--deep); outline-offset: -2px; }
.wxtable tr.station td:first-child { position: relative; padding-left: 26px; }
.wxtable tr.station td:first-child::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: translateY(-70%) rotate(-45deg); transition: transform 0.15s ease; }
.wxtable tr.station.open td:first-child::before { transform: translateY(-80%) rotate(45deg); border-color: var(--copper); }
.wxtable tr.station.open td { border-bottom-color: transparent; }
.wxtable tr.detail td { text-align: left; padding: 2px 12px 22px 26px; background: rgba(255, 255, 255, 0.6); font-weight: 400; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 30px; margin: 0 0 16px; }
.more div { border-top: 1px solid var(--line); padding: 8px 0 9px; }
.more dt { color: var(--mute); font-size: 11.5px; }
.more dd { margin: 1px 0 0; font-weight: 700; font-size: 15px; }
.more .nomore { grid-column: 1 / -1; color: var(--mute); }
.plot { margin: 0 0 16px; }
.plot figcaption { font-family: var(--title); font-size: 21px; font-weight: 600; color: var(--deep); margin-bottom: 6px; }
.plot a { display: block; max-width: 1100px; background: #fff; border: 1px solid var(--line); }
.plot img { display: block; width: 100%; height: auto; min-height: 120px; }
.plotsrc { margin: 5px 0 0; color: var(--faint); font-size: 11px; }
.moreactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; font-size: 13px; }
.moreactions a { color: var(--deep); }
.moreactions button { border: 1px solid var(--deep); background: none; color: var(--deep); font-weight: 600; font-size: 13px; padding: 5px 12px; border-radius: 3px; cursor: pointer; }
.moreactions button:hover { background: var(--deep); color: #fff; }

.foot { max-width: calc(var(--wide) + 2 * var(--pad)); margin: 64px auto 0; padding: 18px var(--pad) 46px; border-top: 1px solid var(--deep); color: var(--mute); font-size: 12px; }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--mute); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  :root { --pad: 14px; }
  .mast { padding: 12px var(--pad) 64px; }
  .mast h1 { font-size: 40px; }
  .ridges { height: 80px; bottom: 22px; }
  .sub { font-size: 13.5px; }
  .hint.sun { margin-left: 0; width: 100%; }
  .sheet { height: clamp(440px, 64svh, 560px); }
  .leaflet-control-zoom { display: none; }
  .vlabel { font-size: 12px; padding: 4px 5px 4px 10px; gap: 5px; }
  .mapctl { top: 118px; }
  .sheet::after { height: 90px; }
  .mapctl button { padding: 5px 10px; }
  .spot { position: fixed; left: 10px; right: 10px; bottom: 10px; width: auto; z-index: 1200; }
  .tabs { gap: 24px; }
  .block { padding-top: 40px; }
  .block h2 { font-size: 36px; }
  #search { margin-left: 0; width: 100%; }
  .tiles { grid-template-columns: 1fr; gap: 24px; margin-bottom: 30px; }
  .columns { gap: 22px; }
  .valleys { flex-wrap: nowrap; gap: 4px 20px; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 2px; scrollbar-width: none; width: calc(100% + 2 * var(--pad)); }
  .valleys::-webkit-scrollbar { display: none; }
  .valleys button { flex: none; }
  .edit { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spot { animation: none; }
  .tile { transition: none; }
  .beacon i { animation: none; opacity: 0.9; transform: scale(1.6); }
  .beacon i + i { display: none; }
}
