/* WEATHER-MAP (22 Nov 2026): the weather over the guide's world map (templates/_weather.html) */
.wmap-wrap { position: relative; }
.wx-layer { pointer-events: none; }
.wx .cloud circle { stroke: none; }
.wx .cloud.dark circle { fill: #464a58; }
.wx .cloud.grey circle { fill: #959daa; }
.wx .cloud.white circle { fill: #e8edf5; }
.wx .cloud { opacity: .93; animation: wx-drift 9s ease-in-out infinite alternate; transform-box: fill-box; }
.wx .drop { stroke: #8fbcff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 9 11; animation: wx-drop .8s linear infinite; }
.wx .bolt { fill: #ffd646; stroke: #7a5200; stroke-width: 1.5; opacity: .82; animation: wx-bolt 3.4s steps(1) infinite; }
.wx .flake { fill: #fff; animation: wx-snow 2.4s linear infinite; transform-box: fill-box; }
.wx .gust { fill: none; stroke: rgba(230, 238, 246, .92); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 60 34; animation: wx-gust 1.5s linear infinite; }
.wx .sandline { fill: none; stroke: rgba(242, 202, 132, .95); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 54 30; animation: wx-gust 1.8s linear infinite; }
.wx .haze { fill: rgba(214, 170, 96, .26); }
.wx .fogbar { fill: rgba(222, 226, 232, .66); animation: wx-fog 6s ease-in-out infinite alternate; transform-box: fill-box; }
.wx-path line { stroke: #ffd646; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 14 10; animation: wx-path 1.2s linear infinite; }
.wx-arrowhead { fill: #ffd646; }

/* WX-EDGE (22 Nov 2026, owner): a thin dark edge so the weather reads over the busy map. Real shapes, not a
   CSS filter: a filter would be repainted on every frame of the animation */
.wx .cloud .edge circle { fill: #0b0a0a; }
.wx .drop.edge { stroke: #0b0a0a; stroke-width: 6; }
.wx .gust.edge, .wx .sandline.edge { stroke: #0b0a0a; stroke-width: 7; }
.wx-path line.edge { stroke: #0b0a0a; stroke-width: 8; }
.wx .flake, .wx .fogbar, .wx-arrowhead { stroke: #0b0a0a; stroke-width: 1.5; paint-order: stroke; }
.wx-arrowhead { stroke-width: .8; }
.wx .bolt { stroke: #0b0a0a; }

@keyframes wx-drift { from { transform: translateX(-5px); } to { transform: translateX(5px); } }
@keyframes wx-drop { to { stroke-dashoffset: -40; } }
@keyframes wx-bolt { 0% { opacity: .82; } 6% { opacity: 1; filter: drop-shadow(0 0 6px #fff3a0); } 10% { opacity: .6; } 15% { opacity: 1; filter: drop-shadow(0 0 6px #fff3a0); } 20% { opacity: .82; filter: none; } 100% { opacity: .82; } }
@keyframes wx-snow { from { transform: translateY(-8px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(18px); opacity: 0; } }
@keyframes wx-gust { to { stroke-dashoffset: -188; } }
@keyframes wx-fog { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes wx-path { to { stroke-dashoffset: -48; } }

@media (prefers-reduced-motion: reduce) {
  .wx .cloud, .wx .drop, .wx .flake, .wx .gust, .wx .sandline, .wx .fogbar, .wx-path line { animation: none; }
  .wx .bolt { animation: none; opacity: 1; }
}

/* the legend: the empty black area on the right between Drobeta and Adam Holyland (owner: "its over the maps");
   under the map on a narrow screen */
.wx-legend { position: absolute; top: 31%; right: 3%; min-width: 210px; padding: 12px 16px 10px; border: 1px solid rgba(207, 162, 85, .7);
  border-radius: 10px; background: rgba(16, 13, 11, .84); color: #ebe1cd; font-size: 14px; line-height: 1.35; }
.wx-legend .wx-title { margin: 0; font: 400 19px var(--head); color: #f0dcb4; }
.wx-legend .wx-when { margin: 2px 0 8px; font-size: 12.5px; color: #bdb3a0; }
.wx-legend .wx-when.off { color: #d9a07a; }
.wx-legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.wx-legend li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.wx-legend .k { display: inline-block; width: 18px; height: 12px; border-radius: 4px; }
.k-storm { background: #464a58; box-shadow: inset 0 -3px 0 #ffd646; }
.k-rain { background: #959daa; box-shadow: inset 0 -3px 0 #8fbcff; }
.k-snow { background: #e8edf5; }
.k-wind { background: linear-gradient(transparent 40%, #e6eef6 40%, #e6eef6 60%, transparent 60%); }
.k-sand { background: #d6aa60; }
.k-fog { background: repeating-linear-gradient(#dee2e8 0 3px, transparent 3px 6px); }
.k-path { background: linear-gradient(transparent 40%, #ffd646 40%, #ffd646 60%, transparent 60%); }
@media (max-width: 720px) {
  .wx-legend { position: static; margin-top: 10px; }
}

/* the weather page's list */
.wx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; }
.wx-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.wx-tag { padding: 1px 8px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .08); }
.wx-t-storm, .wx-t-snowstorm { color: #ffd646; }
.wx-t-rain { color: #9cc4ff; }
.wx-t-sand { color: #e9be76; }
