/* =====================================================================
   BRASS THERMOMETER  -  /wx-gauge.css   (made by /javascripts/wx-gauge.js)
   ===================================================================== */

.wx-gauge {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    margin-left: auto;
    filter: drop-shadow(0 4px 6px rgba(40, 25, 5, 0.28));
    cursor: pointer;
    opacity: 0;
    transform: scale(0.85) rotate(-12deg);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.2, .8, .25, 1.15);
}
.wx-gauge[hidden] { display: none; }
.wx-gauge.is-set { opacity: 1; transform: none; }
.wx-gauge svg { display: block; width: 100%; height: 100%; overflow: visible; }

.wx-gauge .tk { stroke: #3a2c1c; stroke-width: 0.55; stroke-linecap: round; }
.wx-gauge .tk-major { stroke-width: 1.2; }
.wx-gauge .band { fill: none; stroke-width: 1.8; opacity: 0.75; }
.wx-gauge .band-cold { stroke: #4f74a0; }
.wx-gauge .band-hot { stroke: #b5452f; }
.wx-gauge .lbl {
    font: 7.2px "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    fill: #2e2316;
    text-anchor: middle;
    dominant-baseline: central;
}
.wx-gauge .unit {
    font: italic 7px "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    fill: #5d4a33;
    text-anchor: middle;
}
.wx-gauge .maker {
    font: 3.6px ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: 0.9px;
    fill: #8b7556;
    text-anchor: middle;
}
.wx-gauge .reading {
    font: 7px "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    fill: #2e2316;
    text-anchor: middle;
}
.wx-gauge .stop { fill: #6b4615; }

/* today's low and high pins slide in once the needle has swung */
.wx-gauge .pin { opacity: 0; transition: opacity 0.6s ease 1.6s; }
.wx-gauge.is-set .pin { opacity: 1; }
.wx-gauge .pin-lo path { fill: #3f6a9e; }
.wx-gauge .pin-hi path { fill: #b33a24; }

.wx-gauge .nd-body { fill: #22190f; }
.wx-gauge .nd-tip { fill: #b33a24; }
.wx-gauge .nd-weight { fill: #22190f; }
.wx-gauge .nd-s { fill: rgba(40, 25, 5, 0.22); }

/* a soft light sweeping across the glass now and then */
.wx-gauge .glint { fill: rgba(255, 255, 255, 0.28); opacity: 0; animation: wxg-glint 9s ease-in-out 3s infinite; }
@keyframes wxg-glint {
    0%, 82% { transform: translateX(-10px); opacity: 0; }
    86% { opacity: 1; }
    100% { transform: translateX(110px); opacity: 0; }
}

.wx-gauge:hover { filter: drop-shadow(0 6px 9px rgba(40, 25, 5, 0.34)); }

/* narrow sidebars: a bit smaller */
@media (max-width: 1100px) and (min-width: 701px) {
    .wx-gauge { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
    .wx-gauge, .wx-gauge * { transition: none !important; animation: none !important; }
    .wx-gauge .glint { display: none; }
}
