/* /weather/ page: themed like Colophon and Tweets (body class + gutter art + icon headings). Loaded only on that page. */
/* The page edges take the color of the current sky (class set by weather.js) and fade to white in the middle. */
body.weather-theme-page { position: relative; isolation: isolate; min-height: 100vh; overflow-x: hidden;
  --wx-edge: rgba(63, 146, 222, .18); --wx-edge-dark: rgba(70, 120, 170, .26); --wx-base: #ffffff; --wx-base-dark: #0e151d;
  background: linear-gradient(90deg, var(--wx-edge) 0%, transparent 32%, transparent 68%, var(--wx-edge) 100%),
              linear-gradient(180deg, var(--wx-base) 0%, #fbfdff 48%, var(--wx-base) 100%);
  background-attachment: fixed; }
body.weather-theme-page.wx-page-sky-sunny   { --wx-edge: rgba(79, 166, 245, .28);  --wx-edge-dark: rgba(70, 130, 200, .30); }
body.weather-theme-page.wx-page-sky-partly  { --wx-edge: rgba(110, 150, 195, .30); --wx-edge-dark: rgba(80, 115, 160, .30); }
body.weather-theme-page.wx-page-sky-cloudy  { --wx-edge: rgba(128, 142, 158, .34); --wx-edge-dark: rgba(110, 120, 135, .30); }
body.weather-theme-page.wx-page-sky-fog     { --wx-edge: rgba(150, 160, 170, .36); --wx-edge-dark: rgba(120, 128, 138, .30); }
body.weather-theme-page.wx-page-sky-rain    { --wx-edge: rgba(95, 115, 140, .36);  --wx-edge-dark: rgba(80, 100, 130, .34); }
body.weather-theme-page.wx-page-sky-storm   { --wx-edge: rgba(78, 80, 118, .38);   --wx-edge-dark: rgba(95, 90, 150, .34); }
body.weather-theme-page.wx-page-sky-night   { --wx-edge: rgba(40, 58, 110, .30);   --wx-edge-dark: rgba(40, 60, 130, .42); }
body.weather-theme-page.wx-page-sky-offline { --wx-edge: rgba(140, 146, 156, .28); --wx-edge-dark: rgba(110, 115, 125, .28); }
body.weather-theme-page::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat; opacity: .62;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2088%2088%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2244%22%20cy%3D%2244%22%20r%3D%2214%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2266.0%22%20y1%3D%2244.0%22%20x2%3D%2274.0%22%20y2%3D%2244.0%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2259.6%22%20y1%3D%2259.6%22%20x2%3D%2265.2%22%20y2%3D%2265.2%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2244.0%22%20y1%3D%2266.0%22%20x2%3D%2244.0%22%20y2%3D%2274.0%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2228.4%22%20y1%3D%2259.6%22%20x2%3D%2222.8%22%20y2%3D%2265.2%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2222.0%22%20y1%3D%2244.0%22%20x2%3D%2214.0%22%20y2%3D%2244.0%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2228.4%22%20y1%3D%2228.4%22%20x2%3D%2222.8%22%20y2%3D%2222.8%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2244.0%22%20y1%3D%2222.0%22%20x2%3D%2244.0%22%20y2%3D%2214.0%22%20stroke%3D%22%23f2b632%22%2F%3E%3Cline%20x1%3D%2259.6%22%20y1%3D%2228.4%22%20x2%3D%2265.2%22%20y2%3D%2222.8%22%20stroke%3D%22%23f2b632%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2070%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2058h52a14%2014%200%200%200%200-28%2020%2020%200%200%200-38-6%2015%2015%200%200%200-14%2034z%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2084%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2058h52a14%2014%200%200%200%200-28%2020%2020%200%200%200-38-6%2015%2015%200%200%200-14%2034z%22%2F%3E%3Cline%20x1%3D%2234%22%20y1%3D%2266%22%20x2%3D%2230%22%20y2%3D%2278%22%2F%3E%3Cline%20x1%3D%2250%22%20y1%3D%2266%22%20x2%3D%2246%22%20y2%3D%2278%22%2F%3E%3Cline%20x1%3D%2266%22%20y1%3D%2266%22%20x2%3D%2262%22%20y2%3D%2278%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2080%2086%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2240%22%20cy%3D%2266%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M34%2014a6%206%200%200%201%2012%200v44a10%2010%200%201%201-12%200z%22%2F%3E%3Cline%20x1%3D%2252%22%20y1%3D%2224%22%20x2%3D%2258%22%20y2%3D%2224%22%2F%3E%3Cline%20x1%3D%2252%22%20y1%3D%2234%22%20x2%3D%2258%22%20y2%3D%2234%22%2F%3E%3Cline%20x1%3D%2252%22%20y1%3D%2244%22%20x2%3D%2258%22%20y2%3D%2244%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2090%2080%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%2030h46a10%2010%200%201%200-10-10%22%2F%3E%3Cpath%20d%3D%22M10%2046h60a10%2010%200%201%201-10%2010%22%2F%3E%3Cpath%20d%3D%22M10%2062h30%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2088%2088%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M48%208%2026%2046h18l-8%2030%2026-40H44z%22%20stroke%3D%22%23f2b632%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2088%2088%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M44%2010C30%2030%2022%2042%2022%2054a22%2022%200%200%200%2044%200c0-12-8-24-22-44z%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2086%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%2046a34%2034%200%200%201%2068%200z%22%2F%3E%3Cpath%20d%3D%22M48%2046v26a7%207%200%200%201-14%200%22%2F%3E%3Cline%20x1%3D%2248%22%20y1%3D%2212%22%20x2%3D%2248%22%20y2%3D%226%22%2F%3E%3C%2Fsvg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2096%2096%22%20fill%3D%22none%22%20stroke%3D%22%233f92de%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M60%2020a26%2026%200%201%200%2012%2040%2020%2020%200%201%201-12-40z%22%2F%3E%3C%2Fsvg%3E");
  background-size: 84px 84px, 96px 70px, 92px 80px, 70px 80px, 90px 76px, 70px 76px, 64px 70px, 88px 80px, 70px 70px;
  background-position: 9% 30%, 8% 46%, 9% 62%, 9% 80%, 91% 18%, 90% 36%, 91% 54%, 90% 72%, 91% 88%; }
body.weather-theme-page #overlord { z-index: 2; }

.wx-page { margin-top: 6px; }
.wx-intro { color: #6b6b6b; font-size: 15px; margin: 6px 0 18px; }
.wx-h2 { position: relative; display: flex; align-items: center; gap: .6rem; margin: 2.2rem 0 .9rem; color: #173f25; font-size: 1.55rem; font-weight: 700; }
.wx-h2::before { content: ""; width: .82rem; height: .82rem; flex: 0 0 auto; border: 2px solid rgba(47, 134, 214, .78); border-radius: 0 50% 50% 50%; transform: rotate(45deg); }
.wx-h2::after { content: ""; flex: 1; height: 1px; min-width: 2rem; margin-left: .25rem; background: linear-gradient(90deg, rgba(47, 134, 214, .30), transparent); }

.wx-hero { padding: 22px 24px 16px; }
.wx-hero .wx-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.wx-hero .wx-icon { width: 120px; height: 120px; }
.wx-hero .wx-temp { font-size: 84px; font-weight: 200; line-height: .9; letter-spacing: -4px; }
.wx-hero .wx-temp sup { font-size: 30px; vertical-align: top; position: relative; top: 10px; letter-spacing: 0; }
.wx-hero .wx-cond { font-size: 20px; }
.wx-sub { opacity: .9; font-size: 14px; margin-top: 4px; }
.wx-side-note { text-align: right; font-size: 13.5px; opacity: .92; }
.wx-hourly { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: thin; }
.wx-hour { flex: none; width: 62px; text-align: center; background: rgba(255,255,255,.13); border-radius: 14px; padding: 8px 4px; font-size: 12.5px; }
.wx-hour.wx-now { background: rgba(255,255,255,.28); }
.wx-hour svg { width: 32px; height: 32px; display: block; margin: 4px auto; }
.wx-hour .wx-pop { font-size: 11px; color: #cfeaff; min-height: 14px; }

.wx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 14px; }
.wx-tile { border: 1px solid rgba(47, 134, 214, .20); border-radius: 16px; padding: 15px 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,253,255,.88)), radial-gradient(circle at 92% 8%, rgba(47,134,214,.08), transparent 7rem);
  box-shadow: 0 14px 28px rgba(24, 48, 78, .08); }
.wx-tile h4 { color: #173f25; }
.wx-animate .wx-tile { opacity: 0; transform: translateY(10px); animation: wx-rise .6s ease forwards; }
.wx-wide { grid-column: 1 / -1; }
.wx-h4-gap { margin-top: 12px !important; }
.wx-big { font-size: 28px; font-weight: 300; }
.wx-big-word { font-size: 24px; }
.wx-word { font-size: 15px; }
.wx-kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.wx-kv span:first-child { color: var(--wx-muted); }
.wx-bar { height: 8px; border-radius: 6px; background: rgba(0,0,0,.08); overflow: hidden; margin: 8px 0 10px; }
.wx-bar i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.wx-uv i { background: linear-gradient(90deg, #4cc36b, #f1d34a, #f39a3b, #e2513f, #9b4fd1); }
.wx-hum i { background: linear-gradient(90deg, #8fd0ff, #2f86d6); }
.wx-aqi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 10px; }
.wx-aqi i { height: 8px; border-radius: 3px; opacity: .3; transition: opacity .6s, transform .6s; }
.wx-aqi i.wx-on { opacity: 1; transform: scaleY(1.6); }
.wx-aqi-1 { background: #3fbf5f; } .wx-aqi-2 { background: #e9c43a; } .wx-aqi-3 { background: #f2903a; }
.wx-aqi-4 { background: #e0483e; } .wx-aqi-5 { background: #8f3f97; } .wx-aqi-6 { background: #7e0023; }
.wx-aqi-lbl { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--wx-muted); margin-top: 5px; }

.wx-compass { width: 140px; height: 140px; display: block; margin: 0 auto 4px; color: var(--wx-text); }
.wx-needle { transform-origin: 75px 75px; transition: transform 1.6s cubic-bezier(.3,1.4,.4,1); }
.wx-wobble { transform-origin: 75px 75px; animation: wx-wobble 4s ease-in-out infinite; }
.wx-chart { width: 100%; height: 110px; display: block; color: var(--wx-text); }
.wx-chart-short { height: 80px; }
.wx-chart-rain { height: 70px; }
.wx-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wx-chart text { font-size: 10.5px; fill: currentColor; opacity: .6; }
.wx-animate .wx-line { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: wx-draw 2s ease forwards; }
.wx-animate .wx-area { opacity: 0; animation: wx-fade 1.2s .8s ease forwards; }
.wx-animate .wx-rb { transform-origin: bottom; transform-box: fill-box; transform: scaleY(0); animation: wx-grow .9s ease forwards; }
.wx-days .wx-day { display: grid; grid-template-columns: 58px 30px 40px 34px 1fr 34px; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,.07); }
.wx-days .wx-day:last-child { border-bottom: 0; }
.wx-days svg { width: 28px; height: 28px; }
.wx-days .wx-pop { font-size: 12px; color: #2f86d6; }
.wx-rng { position: relative; height: 6px; border-radius: 4px; background: rgba(0,0,0,.07); }
.wx-rng i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #6cc3f5, #f6c445, #f28b3c); }
.wx-lo { text-align: right; color: var(--wx-muted); }
.wx-about { font-size: 14px; line-height: 1.6; }
.wx-about a { color: #1f7a1f; text-decoration: underline; }
.wx-moon-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.wx-moon .wx-moon-img { width: 96px; height: 96px; max-width: none; flex: none; margin: 0; padding: 7px; border: 0; border-radius: 50%; box-sizing: content-box;
  background: radial-gradient(circle at 50% 45%, #1d2f61 0%, #0d1838 62%, #08102a 100%);
  box-shadow: 0 10px 24px rgba(11, 22, 54, .28), 0 0 0 1px rgba(47, 134, 214, .18); }
.wx-moon-text { flex: 1 1 auto; }
.wx-moon-text .wx-big { white-space: nowrap; }
.wx-moon-next { flex: 1 1 200px; }

@keyframes wx-draw { to { stroke-dashoffset: 0; } }
@keyframes wx-fade { to { opacity: 1; } }
@keyframes wx-grow { to { transform: scaleY(1); } }
@keyframes wx-rise { to { opacity: 1; transform: none; } }
@keyframes wx-wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

html[data-theme="dark"] body.weather-theme-page {
  background: linear-gradient(90deg, var(--wx-edge-dark) 0%, transparent 32%, transparent 68%, var(--wx-edge-dark) 100%),
              linear-gradient(180deg, #0b1118 0%, #0f1720 48%, #0b1118 100%);
  background-attachment: fixed; }
html[data-theme="dark"] body.weather-theme-page::after { opacity: .42; }
html[data-theme="dark"] .wx-h2 { color: #cfe3d4; }
html[data-theme="dark"] .wx-intro { color: #a3b2a8; }
html[data-theme="dark"] .wx-tile { border-color: rgba(120, 160, 210, .34); background: linear-gradient(180deg, rgba(16, 24, 34, .97), rgba(12, 19, 28, .94)); box-shadow: 0 18px 34px rgba(0,0,0,.38), inset 0 1px 0 rgba(170,200,230,.07); }
html[data-theme="dark"] .wx-tile h4 { color: #8fd0a0; }
html[data-theme="dark"] .wx-about a { color: #8fd0a0; }
html[data-theme="dark"] .wx-bar, html[data-theme="dark"] .wx-rng { background: rgba(255,255,255,.10); }
html[data-theme="dark"] .wx-days .wx-day { border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .wx-moon .wx-moon-img { box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(120, 160, 210, .30); }

@media (prefers-reduced-motion: reduce) {
  .wx-animate .wx-tile { opacity: 1; transform: none; }
  .wx-animate .wx-line { stroke-dashoffset: 0; }
  .wx-animate .wx-area { opacity: 1; }
  .wx-animate .wx-rb { transform: none; }
}
@media (max-width: 900px) { body.weather-theme-page::after { display: none; } .wx-h2::after { display: none; } }
@media (max-width: 560px) {
  .wx-hero .wx-row { grid-template-columns: 1fr; text-align: center; }
  .wx-hero .wx-icon { margin: 0 auto; }
  .wx-side-note { text-align: center; }
  .wx-hero .wx-temp { font-size: 72px; }
}
