/*
 * weather — full-screen, signage-friendly weather dashboard.
 *
 * No CSS Grid, no custom properties (var()), no @supports gating: every
 * style is plain CSS so older signage browsers render the same layout
 * as modern desktops. Flexbox is used (it works back to IE 10 with the
 * -ms-flex- prefixes that are included below).
 */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #0b1a2a;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-rendering: optimizeLegibility;
}

/* -------------------------------------------------------------------------
 * Stage / atmospheric backdrop
 * --------------------------------------------------------------------- */

#wxStage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#wxSky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1f4a7a;
    background-image:
        -webkit-linear-gradient(top, #6fb9e8 0%, #1f4a7a 70%, #0b1a2a 100%);
    background-image:
        linear-gradient(to bottom, #6fb9e8 0%, #1f4a7a 70%, #0b1a2a 100%);
    -webkit-transition: background 1500ms ease;
    -moz-transition: background 1500ms ease;
    -o-transition: background 1500ms ease;
    transition: background 1500ms ease;
}

/* Theme overrides — applied as classes on body. */

body.wxTheme-clear-day #wxSky {
    background-image:
        -webkit-linear-gradient(top, #6cc1f5 0%, #2a6fb0 60%, #143552 100%);
    background-image:
        linear-gradient(to bottom, #6cc1f5 0%, #2a6fb0 60%, #143552 100%);
}

body.wxTheme-clear-night #wxSky {
    background-image:
        -webkit-linear-gradient(top, #1d2a52 0%, #0d1530 60%, #050814 100%);
    background-image:
        linear-gradient(to bottom, #1d2a52 0%, #0d1530 60%, #050814 100%);
}

body.wxTheme-cloudy-day #wxSky {
    background-image:
        -webkit-linear-gradient(top, #9fb6c8 0%, #5a7790 60%, #2c3a4a 100%);
    background-image:
        linear-gradient(to bottom, #9fb6c8 0%, #5a7790 60%, #2c3a4a 100%);
}

body.wxTheme-cloudy-night #wxSky {
    background-image:
        -webkit-linear-gradient(top, #2a3548 0%, #18202e 60%, #080c14 100%);
    background-image:
        linear-gradient(to bottom, #2a3548 0%, #18202e 60%, #080c14 100%);
}

body.wxTheme-rain #wxSky {
    background-image:
        -webkit-linear-gradient(top, #4a5b71 0%, #2c394a 60%, #121821 100%);
    background-image:
        linear-gradient(to bottom, #4a5b71 0%, #2c394a 60%, #121821 100%);
}

body.wxTheme-snow #wxSky {
    background-image:
        -webkit-linear-gradient(top, #aebccd 0%, #6c7d92 60%, #2c3848 100%);
    background-image:
        linear-gradient(to bottom, #aebccd 0%, #6c7d92 60%, #2c3848 100%);
}

body.wxTheme-thunder #wxSky {
    background-image:
        -webkit-linear-gradient(top, #2a2738 0%, #161422 60%, #060510 100%);
    background-image:
        linear-gradient(to bottom, #2a2738 0%, #161422 60%, #060510 100%);
}

body.wxTheme-fog #wxSky {
    background-image:
        -webkit-linear-gradient(top, #8090a0 0%, #5a6878 60%, #2c343c 100%);
    background-image:
        linear-gradient(to bottom, #8090a0 0%, #5a6878 60%, #2c343c 100%);
}

#wxVignette {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 8;
    background-image:
        -webkit-linear-gradient(top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.55) 100%);
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.55) 100%);
}

/* -------- Sun + Moon ---------------------------------------------------- */

#wxSun, #wxMoon {
    position: absolute;
    top: 12%;
    right: 18%;
    width: 26vh;
    height: 26vh;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    -webkit-transition: opacity 1200ms ease;
    -moz-transition: opacity 1200ms ease;
    -o-transition: opacity 1200ms ease;
    transition: opacity 1200ms ease;
    pointer-events: none;
}

#wxSun {
    background-image:
        -webkit-radial-gradient(center, #fff7c2 0%, #ffd56b 28%, #ff9b3d 60%, rgba(255, 155, 61, 0) 75%);
    background-image:
        radial-gradient(circle at center, #fff7c2 0%, #ffd56b 28%, #ff9b3d 60%, rgba(255, 155, 61, 0) 75%);
    box-shadow: 0 0 7.4vh 2.8vh rgba(255, 200, 90, 0.45);
    -webkit-animation: wxSunPulse 8s ease-in-out infinite;
    -moz-animation: wxSunPulse 8s ease-in-out infinite;
    -o-animation: wxSunPulse 8s ease-in-out infinite;
    animation: wxSunPulse 8s ease-in-out infinite;
}

#wxMoon {
    background-image:
        -webkit-radial-gradient(center, #f4f4f8 0%, #d4d4dc 40%, #8a8a96 65%, rgba(138, 138, 150, 0) 75%);
    background-image:
        radial-gradient(circle at center, #f4f4f8 0%, #d4d4dc 40%, #8a8a96 65%, rgba(138, 138, 150, 0) 75%);
    box-shadow: 0 0 5.6vh 1.9vh rgba(220, 220, 240, 0.18);
    width: 18.5vh;
    height: 18.5vh;
    top: 14%;
    right: 20%;
}

body.wxTheme-clear-day #wxSun,
body.wxTheme-cloudy-day #wxSun {
    opacity: 1;
}

body.wxTheme-clear-night #wxMoon,
body.wxTheme-cloudy-night #wxMoon {
    opacity: 1;
}

/* The pulse animation only animates `transform` — opacity is intentionally
 * left out so the static, theme-controlled opacity (1 by day, 0 by night)
 * still wins. Including opacity in the keyframes would force the sun to
 * appear at night because a running animation overrides static property
 * values. All four prefixed @keyframes blocks for compatibility. */
@-webkit-keyframes wxSunPulse {
    0%, 100% { -webkit-transform: scale(1); }
    50%      { -webkit-transform: scale(1.04); }
}
@-moz-keyframes wxSunPulse {
    0%, 100% { -moz-transform: scale(1); }
    50%      { -moz-transform: scale(1.04); }
}
@-o-keyframes wxSunPulse {
    0%, 100% { -o-transform: scale(1); }
    50%      { -o-transform: scale(1.04); }
}
@keyframes wxSunPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* -------- Stars (clear night) ------------------------------------------ */

#wxStars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 2;
    opacity: 0;
    -webkit-transition: opacity 1500ms ease;
    -moz-transition: opacity 1500ms ease;
    -o-transition: opacity 1500ms ease;
    transition: opacity 1500ms ease;
    pointer-events: none;
    /* A static starfield drawn with multiple radial-gradients. Cheap and
       resolution independent. */
    background-image:
        -webkit-radial-gradient(2px 2px at 5% 14%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 12% 30%, #fff, transparent),
        -webkit-radial-gradient(2px 2px at 22% 9%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 30% 22%, #d6e5ff, transparent),
        -webkit-radial-gradient(1px 1px at 38% 6%, #fff, transparent),
        -webkit-radial-gradient(2px 2px at 47% 25%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 55% 12%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 64% 18%, #d6e5ff, transparent),
        -webkit-radial-gradient(2px 2px at 73% 4%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 81% 28%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 90% 11%, #fff, transparent),
        -webkit-radial-gradient(2px 2px at 96% 21%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 8% 45%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 19% 55%, #d6e5ff, transparent),
        -webkit-radial-gradient(2px 2px at 33% 62%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 49% 50%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 60% 64%, #fff, transparent),
        -webkit-radial-gradient(2px 2px at 70% 48%, #fff, transparent),
        -webkit-radial-gradient(1px 1px at 84% 60%, #d6e5ff, transparent),
        -webkit-radial-gradient(1px 1px at 92% 52%, #fff, transparent);
    background-image:
        radial-gradient(2px 2px at 5% 14%, #fff, transparent),
        radial-gradient(1px 1px at 12% 30%, #fff, transparent),
        radial-gradient(2px 2px at 22% 9%, #fff, transparent),
        radial-gradient(1px 1px at 30% 22%, #d6e5ff, transparent),
        radial-gradient(1px 1px at 38% 6%, #fff, transparent),
        radial-gradient(2px 2px at 47% 25%, #fff, transparent),
        radial-gradient(1px 1px at 55% 12%, #fff, transparent),
        radial-gradient(1px 1px at 64% 18%, #d6e5ff, transparent),
        radial-gradient(2px 2px at 73% 4%, #fff, transparent),
        radial-gradient(1px 1px at 81% 28%, #fff, transparent),
        radial-gradient(1px 1px at 90% 11%, #fff, transparent),
        radial-gradient(2px 2px at 96% 21%, #fff, transparent),
        radial-gradient(1px 1px at 8% 45%, #fff, transparent),
        radial-gradient(1px 1px at 19% 55%, #d6e5ff, transparent),
        radial-gradient(2px 2px at 33% 62%, #fff, transparent),
        radial-gradient(1px 1px at 49% 50%, #fff, transparent),
        radial-gradient(1px 1px at 60% 64%, #fff, transparent),
        radial-gradient(2px 2px at 70% 48%, #fff, transparent),
        radial-gradient(1px 1px at 84% 60%, #d6e5ff, transparent),
        radial-gradient(1px 1px at 92% 52%, #fff, transparent);
    /* No animation here — the twinkle runs only when stars are visible
     * (clear-night theme). Otherwise the running animation would force
     * the stars to be visible on day themes. */
}

body.wxTheme-clear-night #wxStars {
    opacity: 1;
    -webkit-animation: wxStarTwinkle 6s ease-in-out infinite;
    -moz-animation: wxStarTwinkle 6s ease-in-out infinite;
    -o-animation: wxStarTwinkle 6s ease-in-out infinite;
    animation: wxStarTwinkle 6s ease-in-out infinite;
}

/* The twinkle animates between two visible opacity values; it can do that
 * safely now because the rule only runs while the stars are themed-visible. */
@-webkit-keyframes wxStarTwinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}
@-moz-keyframes wxStarTwinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}
@-o-keyframes wxStarTwinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}
@keyframes wxStarTwinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.65; }
}

/* -------- Clouds -------------------------------------------------------- */

#wxClouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.wxCloud {
    position: absolute;
    border-radius: 80px;
    background-color: #fff;
    opacity: 0;
    -webkit-transition: opacity 1500ms ease;
    -moz-transition: opacity 1500ms ease;
    -o-transition: opacity 1500ms ease;
    transition: opacity 1500ms ease;
    box-shadow:
        80px 0 0 -10px #fff,
        -90px 6px 0 -16px #fff,
        160px -10px 0 -20px #fff;
}

.wxCloud1 { top: 8%;  left: -200px; width: 220px; height: 60px;
    -webkit-animation: wxDriftA 90s linear infinite;
    -moz-animation: wxDriftA 90s linear infinite;
    -o-animation: wxDriftA 90s linear infinite;
    animation: wxDriftA 90s linear infinite; }
.wxCloud2 { top: 24%; left: -260px; width: 280px; height: 70px;
    -webkit-animation: wxDriftB 130s linear infinite;
    -moz-animation: wxDriftB 130s linear infinite;
    -o-animation: wxDriftB 130s linear infinite;
    animation: wxDriftB 130s linear infinite; }
.wxCloud3 { top: 40%; left: -200px; width: 200px; height: 55px;
    -webkit-animation: wxDriftA 110s linear infinite;
    -moz-animation: wxDriftA 110s linear infinite;
    -o-animation: wxDriftA 110s linear infinite;
    animation: wxDriftA 110s linear infinite; }
.wxCloud4 { top: 16%; left: -240px; width: 250px; height: 65px;
    -webkit-animation: wxDriftB 160s linear infinite;
    -moz-animation: wxDriftB 160s linear infinite;
    -o-animation: wxDriftB 160s linear infinite;
    animation: wxDriftB 160s linear infinite; }

body.wxTheme-clear-day .wxCloud,
body.wxTheme-clear-night .wxCloud { opacity: 0; }

body.wxTheme-cloudy-day .wxCloud,
body.wxTheme-cloudy-night .wxCloud,
body.wxTheme-rain .wxCloud,
body.wxTheme-snow .wxCloud,
body.wxTheme-thunder .wxCloud {
    opacity: 0.85;
}

body.wxTheme-cloudy-night .wxCloud,
body.wxTheme-rain .wxCloud,
body.wxTheme-snow .wxCloud,
body.wxTheme-thunder .wxCloud {
    background-color: #c4ccd8;
    box-shadow:
        80px 0 0 -10px #c4ccd8,
        -90px 6px 0 -16px #c4ccd8,
        160px -10px 0 -20px #c4ccd8;
    opacity: 0.7;
}

/* Cloud drifts animate `left` (a percentage) instead of `translateX(vw)`
 * so they work on older browsers that don't support vw units (IE 9, Safari <6,
 * Firefox <19, older Android). All four prefixed @keyframes blocks are
 * present so Presto Opera and Firefox 5-15 also pick up the animation. */
@-webkit-keyframes wxDriftA {
    0%   { left: -300px; }
    100% { left: 110%; }
}
@-moz-keyframes wxDriftA {
    0%   { left: -300px; }
    100% { left: 110%; }
}
@-o-keyframes wxDriftA {
    0%   { left: -300px; }
    100% { left: 110%; }
}
@keyframes wxDriftA {
    0%   { left: -300px; }
    100% { left: 110%; }
}

@-webkit-keyframes wxDriftB {
    0%   { left: -350px; }
    100% { left: 110%; }
}
@-moz-keyframes wxDriftB {
    0%   { left: -350px; }
    100% { left: 110%; }
}
@-o-keyframes wxDriftB {
    0%   { left: -350px; }
    100% { left: 110%; }
}
@keyframes wxDriftB {
    0%   { left: -350px; }
    100% { left: 110%; }
}

/* -------- Precipitation / Fog overlays --------------------------------- */

#wxPrecip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    opacity: 0;
    -webkit-transition: opacity 1500ms ease;
    -moz-transition: opacity 1500ms ease;
    -o-transition: opacity 1500ms ease;
    transition: opacity 1500ms ease;
    pointer-events: none;
}

#wxPrecip:before,
#wxPrecip:after {
    content: "";
    position: absolute;
    top: -220px;
    bottom: -220px;
    left: -10%;
    width: 120%;
    opacity: 0;
    pointer-events: none;
    background-repeat: repeat;
}

body.wxTheme-rain #wxPrecip,
body.wxTheme-thunder #wxPrecip {
    opacity: 0.66;
    overflow: hidden;
    background-image: none;
    background-size: auto;
    -webkit-animation: none;
    -moz-animation: none;
    -o-animation: none;
    animation: none;
}

body.wxTheme-rain #wxPrecip:before,
body.wxTheme-thunder #wxPrecip:before {
    opacity: 0.72;
    background-image:
        -webkit-radial-gradient(1px 15px at 18px 24px, rgba(210, 230, 255, 0.78), rgba(210, 230, 255, 0.18) 58%, rgba(210, 230, 255, 0) 72%),
        -webkit-radial-gradient(1px 13px at 54px 76px, rgba(210, 230, 255, 0.62), rgba(210, 230, 255, 0.14) 58%, rgba(210, 230, 255, 0) 72%),
        -webkit-radial-gradient(1px 18px at 92px 38px, rgba(210, 230, 255, 0.70), rgba(210, 230, 255, 0.16) 58%, rgba(210, 230, 255, 0) 72%),
        -webkit-radial-gradient(1px 12px at 128px 118px, rgba(210, 230, 255, 0.56), rgba(210, 230, 255, 0.12) 58%, rgba(210, 230, 255, 0) 72%);
    background-image:
        radial-gradient(1px 15px at 18px 24px, rgba(210, 230, 255, 0.78), rgba(210, 230, 255, 0.18) 58%, rgba(210, 230, 255, 0) 72%),
        radial-gradient(1px 13px at 54px 76px, rgba(210, 230, 255, 0.62), rgba(210, 230, 255, 0.14) 58%, rgba(210, 230, 255, 0) 72%),
        radial-gradient(1px 18px at 92px 38px, rgba(210, 230, 255, 0.70), rgba(210, 230, 255, 0.16) 58%, rgba(210, 230, 255, 0) 72%),
        radial-gradient(1px 12px at 128px 118px, rgba(210, 230, 255, 0.56), rgba(210, 230, 255, 0.12) 58%, rgba(210, 230, 255, 0) 72%);
    background-size: 156px 170px;
    -webkit-animation: wxRainSheetA 0.95s linear infinite;
    -moz-animation: wxRainSheetA 0.95s linear infinite;
    -o-animation: wxRainSheetA 0.95s linear infinite;
    animation: wxRainSheetA 0.95s linear infinite;
}

body.wxTheme-rain #wxPrecip:after,
body.wxTheme-thunder #wxPrecip:after {
    opacity: 0.46;
    background-image:
        -webkit-radial-gradient(1px 16px at 36px 46px, rgba(190, 220, 255, 0.62), rgba(190, 220, 255, 0.14) 58%, rgba(190, 220, 255, 0) 72%),
        -webkit-radial-gradient(1px 11px at 104px 136px, rgba(190, 220, 255, 0.48), rgba(190, 220, 255, 0.10) 58%, rgba(190, 220, 255, 0) 72%),
        -webkit-radial-gradient(1px 20px at 172px 82px, rgba(190, 220, 255, 0.58), rgba(190, 220, 255, 0.12) 58%, rgba(190, 220, 255, 0) 72%);
    background-image:
        radial-gradient(1px 16px at 36px 46px, rgba(190, 220, 255, 0.62), rgba(190, 220, 255, 0.14) 58%, rgba(190, 220, 255, 0) 72%),
        radial-gradient(1px 11px at 104px 136px, rgba(190, 220, 255, 0.48), rgba(190, 220, 255, 0.10) 58%, rgba(190, 220, 255, 0) 72%),
        radial-gradient(1px 20px at 172px 82px, rgba(190, 220, 255, 0.58), rgba(190, 220, 255, 0.12) 58%, rgba(190, 220, 255, 0) 72%);
    background-position: 78px -54px;
    background-size: 220px 240px;
    -webkit-animation: wxRainSheetB 1.45s linear infinite;
    -moz-animation: wxRainSheetB 1.45s linear infinite;
    -o-animation: wxRainSheetB 1.45s linear infinite;
    animation: wxRainSheetB 1.45s linear infinite;
}

body.wxTheme-thunder #wxPrecip:before {
    opacity: 0.84;
}

body.wxTheme-thunder #wxPrecip:after {
    opacity: 0.58;
}

html.lean-paint body.wxTheme-rain #wxPrecip,
html.lean-paint body.wxTheme-thunder #wxPrecip {
    opacity: 0.42;
}

html.lean-paint body.wxTheme-rain #wxPrecip:after,
html.lean-paint body.wxTheme-thunder #wxPrecip:after {
    display: none;
}

body.wxTheme-snow #wxPrecip {
    opacity: 0.75;
    background-image:
        -webkit-radial-gradient(2px 2px at 10% 0%,  #fff, transparent),
        -webkit-radial-gradient(2px 2px at 25% 0%,  #fff, transparent),
        -webkit-radial-gradient(3px 3px at 40% 0%,  #fff, transparent),
        -webkit-radial-gradient(2px 2px at 60% 0%,  #fff, transparent),
        -webkit-radial-gradient(2px 2px at 75% 0%,  #fff, transparent),
        -webkit-radial-gradient(3px 3px at 90% 0%,  #fff, transparent);
    background-image:
        radial-gradient(2px 2px at 10% 0%,  #fff, transparent),
        radial-gradient(2px 2px at 25% 0%,  #fff, transparent),
        radial-gradient(3px 3px at 40% 0%,  #fff, transparent),
        radial-gradient(2px 2px at 60% 0%,  #fff, transparent),
        radial-gradient(2px 2px at 75% 0%,  #fff, transparent),
        radial-gradient(3px 3px at 90% 0%,  #fff, transparent);
    background-size: 100% 200px;
    background-repeat: repeat;
    -webkit-animation: wxSnow 9s linear infinite;
    -moz-animation: wxSnow 9s linear infinite;
    -o-animation: wxSnow 9s linear infinite;
    animation: wxSnow 9s linear infinite;
}

@-webkit-keyframes wxRainSheetA {
    0%   { -webkit-transform: skewX(-6deg) translateY(-170px); }
    100% { -webkit-transform: skewX(-6deg) translateY(0); }
}
@-moz-keyframes wxRainSheetA {
    0%   { -moz-transform: skewX(-6deg) translateY(-170px); }
    100% { -moz-transform: skewX(-6deg) translateY(0); }
}
@-o-keyframes wxRainSheetA {
    0%   { -o-transform: skewX(-6deg) translateY(-170px); }
    100% { -o-transform: skewX(-6deg) translateY(0); }
}
@keyframes wxRainSheetA {
    0%   { transform: skewX(-6deg) translateY(-170px); }
    100% { transform: skewX(-6deg) translateY(0); }
}
@-webkit-keyframes wxRainSheetB {
    0%   { -webkit-transform: skewX(-4deg) translateY(-240px); }
    100% { -webkit-transform: skewX(-4deg) translateY(0); }
}
@-moz-keyframes wxRainSheetB {
    0%   { -moz-transform: skewX(-4deg) translateY(-240px); }
    100% { -moz-transform: skewX(-4deg) translateY(0); }
}
@-o-keyframes wxRainSheetB {
    0%   { -o-transform: skewX(-4deg) translateY(-240px); }
    100% { -o-transform: skewX(-4deg) translateY(0); }
}
@keyframes wxRainSheetB {
    0%   { transform: skewX(-4deg) translateY(-240px); }
    100% { transform: skewX(-4deg) translateY(0); }
}
@-webkit-keyframes wxSnow {
    0%   { background-position: 0 -200px; }
    100% { background-position: 50px 100%; }
}
@keyframes wxSnow {
    0%   { background-position: 0 -200px; }
    100% { background-position: 50px 100%; }
}

#wxFog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    -webkit-transition: opacity 1500ms ease;
    -moz-transition: opacity 1500ms ease;
    -o-transition: opacity 1500ms ease;
    transition: opacity 1500ms ease;
    pointer-events: none;
    background-image:
        -webkit-linear-gradient(top,
            rgba(220, 230, 240, 0)   0%,
            rgba(220, 230, 240, 0.4) 35%,
            rgba(220, 230, 240, 0.55) 60%,
            rgba(220, 230, 240, 0)   100%);
    background-image:
        linear-gradient(to bottom,
            rgba(220, 230, 240, 0)   0%,
            rgba(220, 230, 240, 0.4) 35%,
            rgba(220, 230, 240, 0.55) 60%,
            rgba(220, 230, 240, 0)   100%);
}

body.wxTheme-fog #wxFog {
    opacity: 1;
}

/* -------------------------------------------------------------------------
 * Header
 * --------------------------------------------------------------------- */

#wxHeader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 2.6vh 5.2vh 0 5.2vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

#wxLocation {
    line-height: 1.2;
}

#wxLocName {
    display: block;
    font-size: 4vh;
    font-weight: 300;
    letter-spacing: 1px;
}

#wxLocCountry {
    display: block;
    font-size: 1.75vh;
    font-weight: 300;
    color: #cbe2f5;
    letter-spacing: 0.28vh;
    text-transform: uppercase;
    margin-top: 0.37vh;
}

#wxClock {
    text-align: right;
    line-height: 1.2;
}

#wxTime {
    display: block;
    font-size: 4vh;
    font-weight: 300;
    letter-spacing: 0.19vh;
}

#wxDate {
    display: block;
    font-size: 1.5vh;
    color: #cbe2f5;
    letter-spacing: 0.28vh;
    text-transform: uppercase;
    margin-top: 0.37vh;
}

/* -------------------------------------------------------------------------
 * Pages container
 * --------------------------------------------------------------------- */

#wxPages {
    position: absolute;
    top: 12vh;
    left: 0;
    right: 0;
    bottom: 7.4vh;
    z-index: 15;
    overflow: hidden; /* never let a page push the viewport into scrolling */
}

.wxPage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5vh 5.2vh;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    -webkit-transform: translateY(2.6vh);
    -ms-transform: translateY(2.6vh);
    transform: translateY(2.6vh);
    -webkit-transition: opacity 700ms ease, -webkit-transform 700ms ease;
    -moz-transition: opacity 700ms ease, transform 700ms ease;
    -o-transition: opacity 700ms ease, transform 700ms ease;
    transition: opacity 700ms ease, transform 700ms ease;
    pointer-events: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.wxPage.wxPageActive {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.wxPageTitle {
    font-size: 2.55vh;
    font-weight: 300;
    letter-spacing: 0.46vh;
    text-transform: uppercase;
    color: #cbe2f5;
    margin: 0 0 2.8vh 0;
    text-align: center;
}

/* -------- Page: Now ---------------------------------------------------- */

.wxPageNow {
    text-align: center;
}

.wxNowMain {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 0;
}

.wxNowIcon {
    width: 23vh;
    height: 23vh;
    margin-right: 4vh;
    -webkit-animation: wxIconBob 5s ease-in-out infinite;
    -moz-animation: wxIconBob 5s ease-in-out infinite;
    -o-animation: wxIconBob 5s ease-in-out infinite;
    animation: wxIconBob 5s ease-in-out infinite;
}

.wxNowIcon svg {
    width: 100%;
    height: 100%;
}

@-webkit-keyframes wxIconBob {
    0%, 100% { -webkit-transform: translateY(0); }
    50%      { -webkit-transform: translateY(-10px); }
}
@keyframes wxIconBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.wxNowTemp {
    font-size: 25vh;
    font-weight: 100;
    line-height: 1;
    letter-spacing: 0;
    color: #fff;
}

.wxNowTempUnit {
    font-size: 8.5vh;
    vertical-align: top;
    margin-left: 0.7vh;
    color: #cbe2f5;
}

.wxNowCond {
    font-size: 4.2vh;
    font-weight: 300;
    letter-spacing: 0.37vh;
    margin-top: -1.85vh;
    color: #fff;
}

.wxNowMeta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 5.2vh;
}

.wxNowMetaItem {
    margin: 0 2.8vh;
    text-align: center;
    padding: 2vh 3vh;
    border-radius: 0.9vh;
    background-color: rgba(255, 255, 255, 0.10);
    min-width: 14vh;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.wxNowMetaLabel {
    font-size: 1.35vh;
    color: #cbe2f5;
    letter-spacing: 0.28vh;
    text-transform: uppercase;
    margin-bottom: 0.7vh;
}

.wxNowMetaVal {
    font-size: 3.8vh;
    font-weight: 300;
}

.wxNowMetaUnit {
    font-size: 1.55vh;
    color: #cbe2f5;
    margin-left: 0.37vh;
    letter-spacing: 0.09vh;
}

.wxDeg {
    color: #cbe2f5;
}

/* -------- Page: Hourly ------------------------------------------------- */

.wxHourly {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    width: 100%;
    height: auto;
    padding: 0 0.7vh;
}

.wxHourCol {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    text-align: center;
    padding: 1.35vh 0.7vh;
    margin: 0 0.35vh;
    border-radius: 0.75vh;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-transition: background-color 250ms ease;
    -moz-transition: background-color 250ms ease;
    -o-transition: background-color 250ms ease;
    transition: background-color 250ms ease;
}

.wxHourCol.wxHourNow {
    background-color: rgba(255, 200, 90, 0.18);
    border-color: rgba(255, 200, 90, 0.45);
}

.wxHourTime {
    font-size: 1.6vh;
    color: #cbe2f5;
    letter-spacing: 0.09vh;
    text-transform: uppercase;
    margin-bottom: 0.37vh;
}

.wxHourIcon {
    width: 6.2vh;
    height: 6.2vh;
    margin: 1vh auto 1vh auto;
}

.wxHourIcon svg {
    width: 100%;
    height: 100%;
}

.wxHourTemp {
    font-size: 3.1vh;
    font-weight: 300;
    margin-top: 0.37vh;
}

.wxHourPrecip {
    margin-top: 1vh;
    font-size: 1.45vh;
    color: #8ec8ff;
    letter-spacing: 0.09vh;
}

.wxHourPrecipBarTrack {
    width: 70%;
    margin: 0.65vh auto 0 auto;
    height: 0.55vh;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 0.18vh;
    overflow: hidden;
}

.wxHourPrecipBar {
    height: 100%;
    background-color: #6cb8ff;
    width: 0;
    -webkit-transition: width 600ms ease;
    -moz-transition: width 600ms ease;
    -o-transition: width 600ms ease;
    transition: width 600ms ease;
}

/* -------- Page: 7-day forecast ----------------------------------------- */

.wxForecast {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
}

.wxDay {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1.05vh 1.5vh;
    margin-bottom: 0.7vh;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 0.9vh;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wxDay.wxDayToday {
    background-color: rgba(255, 200, 90, 0.16);
    border-color: rgba(255, 200, 90, 0.40);
}

.wxDayName {
    width: 14vh;
    font-size: 2.3vh;
    font-weight: 300;
    letter-spacing: 0.09vh;
}

.wxDayIcon {
    width: 5.6vh;
    height: 5.6vh;
    margin: 0 2.1vh 0 0.7vh;
}

.wxDayIcon svg {
    width: 100%;
    height: 100%;
}

.wxDayCond {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    font-size: 1.75vh;
    color: #d8e7f5;
    letter-spacing: 0.09vh;
}

.wxDayPrecip {
    width: 10.5vh;
    text-align: right;
    font-size: 1.6vh;
    color: #8ec8ff;
    margin-right: 2.2vh;
    letter-spacing: 0.09vh;
}

.wxDayRange {
    width: 30vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.wxDayLow {
    width: 5.2vh;
    text-align: right;
    color: #8ec8ff;
    font-size: 2vh;
    margin-right: 0.9vh;
}

.wxDayHigh {
    width: 5.2vh;
    text-align: left;
    color: #ff9f6c;
    font-size: 2vh;
    margin-left: 0.9vh;
}

.wxDayBarTrack {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    height: 0.56vh;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 0.28vh;
    position: relative;
    overflow: hidden;
}

.wxDayBar {
    position: absolute;
    height: 100%;
    background-image:
        -webkit-linear-gradient(left, #6cb8ff 0%, #ffd56b 60%, #ff7a4a 100%);
    background-image:
        linear-gradient(to right, #6cb8ff 0%, #ffd56b 60%, #ff7a4a 100%);
    border-radius: 0.28vh;
}

/* -------- Page: Details ------------------------------------------------ */

.wxDetails {
    /* 4 columns x 2 rows = 8 cells. Plain floats so the grid wraps reliably
       on every browser, including older signage devices that don't fully
       support flex-wrap. The :after rule below acts as a clearfix. */
    width: 100%;
    zoom: 1; /* IE6/7 hasLayout */
}

.wxDetails:before,
.wxDetails:after {
    content: " ";
    display: table;
}

.wxDetails:after {
    clear: both;
}

.wxStat {
    /* Four equal columns with a thin gutter. 4 cards + 3 gutters = 100% */
    float: left;
    width: 23.5%;
    margin-right: 2%;
    margin-bottom: 1.7vh;
    box-sizing: border-box;
    padding: 1.7vh 2vh;
    background-color: rgba(12, 22, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 1.1vh;
    /* Fixed height for visual consistency across the grid. */
    height: 16vh;
    position: relative;
}

/* Right-most card in each row gets no right margin so the row fits exactly. */
.wxStat:nth-of-type(4n) {
    margin-right: 0;
}

.wxStatLabel {
    font-size: 1.45vh;
    color: #cbe2f5;
    letter-spacing: 0.28vh;
    text-transform: uppercase;
    margin-bottom: 0.9vh;
}

.wxStatValueRow {
    margin-bottom: 0.9vh;
}

.wxStatValue {
    font-size: 4.7vh;
    font-weight: 300;
    line-height: 1;
}

.wxStatUnit {
    font-size: 1.8vh;
    color: #cbe2f5;
    margin-left: 0.37vh;
    letter-spacing: 0.09vh;
}

.wxStatBarTrack {
    position: absolute;
    left: 2vh;
    right: 2vh;
    bottom: 1.7vh;
    height: 0.56vh;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 0.28vh;
    overflow: hidden;
}

.wxStatBar {
    height: 100%;
    width: 0;
    background-color: #6cb8ff;
    -webkit-transition: width 700ms ease;
    -moz-transition: width 700ms ease;
    -o-transition: width 700ms ease;
    transition: width 700ms ease;
}

.wxStatBarUv {
    background-image:
        -webkit-linear-gradient(left, #6cd56b 0%, #ffd56b 30%, #ff8a3d 60%, #d83d6c 80%, #9d3dd8 100%);
    background-image:
        linear-gradient(to right, #6cd56b 0%, #ffd56b 30%, #ff8a3d 60%, #d83d6c 80%, #9d3dd8 100%);
}

/* -- Wind panel internals -- */

.wxStat.wxStatWind {
    width: 23.5%;
}

.wxStatWindMeta {
    position: absolute;
    left: 2vh;
    right: 2vh;
    bottom: 1.3vh;
    line-height: 3.8vh; /* match the arrow badge height for vertical centring */
}

.wxWindArrowWrap {
    display: inline-block;
    width: 3.8vh;
    height: 3.8vh;
    border-radius: 50%;
    border: 2px solid rgba(255, 213, 107, 0.45);
    background-color: rgba(255, 213, 107, 0.10);
    color: #ffd56b;
    font-size: 2vh;
    line-height: 3.4vh; /* vertically centres the arrow glyph */
    text-align: center;
    margin-right: 1.1vh;
    vertical-align: middle;
    -webkit-transition: -webkit-transform 600ms ease;
    -moz-transition: transform 600ms ease;
    -o-transition: transform 600ms ease;
    transition: transform 600ms ease;
    box-shadow: 0 0 0.75vh rgba(255, 213, 107, 0.20);
    box-sizing: border-box;
}

.wxWindArrow {
    display: inline-block;
    /* Rotation is set inline via JS on the wrapper. */
}

.wxStatWindDir {
    color: #ffd56b;
    font-weight: 600;
    font-size: 2vh;
    letter-spacing: 0.28vh;
    vertical-align: middle;
}

/* -------- Page: Sun ---------------------------------------------------- */

.wxPageSun {
    padding-top: 0.75vh;
    padding-bottom: 3vh;
    display: block;
}

.wxPageSun .wxPageTitle {
    position: absolute;
    top: 1vh;
    left: 0;
    right: 0;
    margin-bottom: 2.2vh;
}

.wxSunCard {
    margin-top: 0;
    position: absolute;
    left: 5.2vh;
    right: 5.2vh;
    top: 11vh;
    height: 58vh;
}

.wxSunArcWrap {
    position: relative;
    margin-bottom: 0.75vh;
    padding-top: 0;
}

.wxSunSvg {
    width: 68vh;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    height: 34vh;
}

.wxSunArcTrack {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 4;
    stroke-linecap: round;
}

.wxSunArc {
    fill: none;
    stroke: url(#wxArcGrad);
    stroke-width: 6;
    stroke-linecap: round;
}

.wxSunHorizon {
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 1;
    stroke-dasharray: 4 6;
}

.wxSunDot {
    fill: #ffd56b;
    -webkit-filter: drop-shadow(0 0 8px rgba(255, 213, 107, 0.8));
    filter: drop-shadow(0 0 8px rgba(255, 213, 107, 0.8));
}

.wxSunTimes {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 68vh;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3vh 0.3vh 3vh;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.wxSunTime {
    min-width: 11vh;
}

.wxSunTime + .wxSunTime {
    text-align: right;
}

.wxSunTimeLabel {
    font-size: 1.35vh;
    color: #cbe2f5;
    letter-spacing: 0.28vh;
    text-transform: uppercase;
    margin-bottom: 0.37vh;
}

.wxSunTimeVal {
    font-size: 3.4vh;
    font-weight: 300;
    color: #ffd56b;
    line-height: 1.05;
}

.wxSunMeta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 1.6vh;
}

.wxSunMetaItem {
    margin: 0 0.75vh;
    text-align: center;
    padding: 1.2vh 2.2vh;
    border-radius: 0.56vh;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    min-width: 17vh;
}

.wxSunMetaLabel {
    font-size: 1.25vh;
    color: #cbe2f5;
    letter-spacing: 0.19vh;
    text-transform: uppercase;
    margin-bottom: 0.37vh;
    line-height: 1.1;
}

.wxSunMetaVal {
    font-size: 2.25vh;
    font-weight: 300;
    line-height: 1.15;
}

/* -------------------------------------------------------------------------
 * Page indicator dots
 * --------------------------------------------------------------------- */

#wxPager {
    position: absolute;
    bottom: 2.8vh;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 30;
}

.wxPagerDot {
    display: inline-block;
    width: 0.93vh;
    height: 0.93vh;
    margin: 0 0.56vh;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    -webkit-transition: background-color 350ms ease, -webkit-transform 350ms ease;
    -moz-transition: background-color 350ms ease, transform 350ms ease;
    -o-transition: background-color 350ms ease, transform 350ms ease;
    transition: background-color 350ms ease, transform 350ms ease;
    vertical-align: middle;
}

.wxPagerDot.wxPagerDotActive {
    background-color: #ffd56b;
    -webkit-transform: scale(1.4);
    -ms-transform: scale(1.4);
    transform: scale(1.4);
    box-shadow: 0 0 0.9vh rgba(255, 213, 107, 0.8);
}

/* -------------------------------------------------------------------------
 * QR code + help
 * --------------------------------------------------------------------- */

#wxQrCode {
    display: block;
    position: absolute;
    bottom: 2.2vh;
    right: 2.2vh;
    z-index: 30;
    opacity: 0.92;
}

.rcRoomQrCodeLink {
    display: block;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    -webkit-transition: opacity 1s ease;
    transition: opacity 1s ease;
    text-decoration: none;
    -webkit-transform-origin: top left;
    transform-origin: top left;
    line-height: normal;
    -webkit-transform: scale(0.6);
    transform: scale(0.6);
    -webkit-transform-origin: bottom right;
    transform-origin: bottom right;
}

.rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 4px;
    letter-spacing: 0.2em;
    line-height: 1.2;
}

.rcRoomQrCode {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.rcRoomQrCode img,
.rcRoomQrCode canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
    line-height: 1.2;
}

#wxStatus {
    position: absolute;
    bottom: 0.56vh;
    right: 1.1vh;
    z-index: 35;
    color: #888;
    font-size: 1vh;
    text-shadow: 0 1px 2px #000;
}

#wxAttribution {
    position: absolute;
    bottom: 0.56vh;
    left: 1.5vh;
    z-index: 35;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1vh;
    letter-spacing: 0.09vh;
}

#wxAttribution span {
    color: rgba(255, 255, 255, 0.7);
}

/* -------- Loading state ------------------------------------------------ */

body.wxLoading #wxLocName { font-style: italic; color: #cbe2f5; }

/* -------------------------------------------------------------------------
 * Orientation breakpoints
 * --------------------------------------------------------------------- */

@media (orientation: landscape) {
    .wxNowMain {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .wxNowMeta {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }

    .wxStat,
    .wxStat.wxStatWind {
        width: 23.5%;
        margin-right: 2%;
    }

    .wxStat:nth-of-type(4n) {
        margin-right: 0;
    }
}

/* -------------------------------------------------------------------------
 * Phone / portrait — aggressively compact so nothing overflows or scrolls.
 * --------------------------------------------------------------------- */

@media (orientation: portrait) {
    /* Page chrome */
    #wxHeader { padding: 2.6vh 3vh 0 3vh; }
    .wxPage   { padding: 1.2vh 3vh; }
    #wxPages  { top: 10.5vh; bottom: 6.5vh; }
    .wxPageTitle { font-size: 1.8vh; letter-spacing: 0.28vh; margin-bottom: 1.8vh; }

    /* Header — let it wrap and drop the country label if it's too long */
    #wxLocName { font-size: 3vh; letter-spacing: 0.08vh; }
    #wxLocCountry { font-size: 1.35vh; letter-spacing: 0.16vh; }
    #wxTime    { font-size: 3vh; letter-spacing: 0.08vh; }
    #wxDate    { font-size: 1.35vh; letter-spacing: 0.16vh; }

    /* Decorative sun/moon — much smaller so they don't dominate the screen */
    #wxSun  { width: 16vh; height: 16vh; top: 6%; right: 8%;
              box-shadow: 0 0 4vh 1.3vh rgba(255, 200, 90, 0.40); }
    #wxMoon { width: 11vh; height: 11vh; top: 7%; right: 10%;
              box-shadow: 0 0 3vh 0.9vh rgba(220, 220, 240, 0.18); }

    /* Now page — vertical stack */
    .wxNowMain { -ms-flex-direction: column; -webkit-box-orient: vertical; flex-direction: column; }
    .wxNowIcon { margin: 0 0 0.5vh 0; width: 12vh; height: 12vh; }
    .wxNowTemp { font-size: 12vh; letter-spacing: 0; }
    .wxNowTempUnit { font-size: 4.5vh; }
    .wxNowCond { font-size: 2.4vh; letter-spacing: 0.18vh; margin-top: 0; }
    .wxNowMeta { -ms-flex-wrap: wrap; flex-wrap: wrap; margin-top: 2.5vh; }
    .wxNowMetaItem { margin: 0.55vh; min-width: 9.5vh; padding: 1vh 1.3vh; }
    .wxNowMetaLabel { font-size: 1.15vh; letter-spacing: 0.1vh; margin-bottom: 0.45vh; }
    .wxNowMetaVal { font-size: 2.3vh; }

    /* Hourly — fewer cards (JS drops to 6). Cards sit right under the
       title (no 70%-height bottom alignment) so the page doesn't leave a
       big empty gap on portrait. */
    .wxHourly { height: auto;
        -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; }
    .wxHourCol { padding: 0.56vh 0.37vh; margin: 0 0.2vh;
                 -webkit-box-flex: 1; -ms-flex: 1 1 0; flex: 1 1 0; }
    .wxHourTime  { font-size: 1.25vh; letter-spacing: 0.06vh; }
    .wxHourTemp  { font-size: 2.1vh; }
    .wxHourIcon  { width: 4vh; height: 4vh; }
    .wxHourPrecip{ font-size: 1.1vh; margin-top: 0.5vh; }
    .wxHourPrecipBarTrack { width: 80%; }

    /* Forecast — drop condition column, tighten everything */
    .wxDay      { padding: 0.8vh 1vh; margin-bottom: 0.55vh; }
    .wxDayName  { width: 7.2vh; font-size: 1.55vh; }
    .wxDayIcon  { width: 3.9vh; height: 3.9vh; margin: 0 0.8vh 0 0.3vh; }
    .wxDayCond  { display: none; }
    .wxDayPrecip{ width: 5.8vh; font-size: 1.2vh; margin-right: 0.7vh; letter-spacing: 0.06vh; }
    .wxDayRange { width: 13vh; }
    .wxDayLow, .wxDayHigh { font-size: 1.45vh; width: 3.1vh; }

    /* Conditions — full-width single column */
    .wxStat,
    .wxStat.wxStatWind { width: 49%; margin-right: 2%; height: 9.6vh; padding: 1.2vh 1.4vh; }
    .wxStat:nth-of-type(2n),
    .wxStat:nth-of-type(3n),
    .wxStat:nth-of-type(4n) { margin-right: 2%; }
    .wxStat:nth-of-type(2n) { margin-right: 0; }
    .wxStatLabel { font-size: 1vh; letter-spacing: 0.16vh; margin-bottom: 0.5vh; }
    .wxStatValue { font-size: 3vh; }
    .wxStatUnit { font-size: 1.3vh; }
    .wxStatBarTrack { left: 1.4vh; right: 1.4vh; bottom: 1.1vh; }
    .wxStatWindMeta { left: 1.4vh; right: 1.4vh; bottom: 0.8vh; }

    /* Sun page — stack meta vertically, scale the arc */
    .wxPageSun { padding-bottom: 4.8vh; }
    .wxSunCard { left: 3vh; right: 3vh; height: 48vh; }
    .wxSunArcWrap { margin-bottom: 1.6vh; padding-top: 0.4vh; }
    .wxSunSvg     { width: 42vh; height: 21vh; max-width: 100%; }
    .wxSunTimes   { width: 42vh; max-width: 100%; padding: 0 1.8vh 0.5vh 1.8vh; margin: 0 auto; }
    .wxSunTime    { min-width: 7.4vh; }
    .wxSunTimeVal { font-size: 2.3vh; }
    .wxSunTimeLabel { font-size: 1.1vh; letter-spacing: 0.16vh; }
    .wxSunMeta {
        -webkit-box-orient: vertical; -webkit-box-direction: normal;
        -ms-flex-direction: column; flex-direction: column;
        -ms-flex-wrap: nowrap; flex-wrap: nowrap;
        margin: 1.2vh 5vh 0 0;
    }
    .wxSunMetaItem {
        margin: 0.4vh 0;
        padding: 0.8vh 1.2vh;
        min-width: 0;
        box-sizing: border-box;
        text-align: left;
        display: -webkit-box; display: -ms-flexbox; display: flex;
        -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
        -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    }
    .wxSunMetaLabel { font-size: 1.1vh; margin-bottom: 0; letter-spacing: 0.14vh; }
    .wxSunMetaVal   { font-size: 1.8vh; margin-left: 0.8vh; text-align: right; }

    #wxQrCode {
        bottom: 1.6vh;
        right: 1.3vh;
        -webkit-transform: scale(0.7);
        transform: scale(0.7);
        -webkit-transform-origin: bottom right;
        transform-origin: bottom right;
    }

    #wxAttribution { font-size: 0.9vh; left: 0.8vh; bottom: 0.4vh; }
    #wxStatus      { font-size: 0.9vh; right: 0.8vh; bottom: 0.4vh; }
}
