/* Individual lossless artwork. Small UI uses 320px previews; the hero uses
   native 1254px images so even 4x displays never enlarge the source pixels. */
.weather-art {
    display: inline-block;
    flex: 0 0 auto;
    width: 64px;
    aspect-ratio: 1;
    background: var(--weather-preview) center / contain no-repeat;
    image-rendering: auto;
    pointer-events: none;
}
.weather-art-sun { --weather-preview: url('/intranet/assets/weather/sun-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/sun-hd-v2.webp'); }
.weather-art-partial { --weather-preview: url('/intranet/assets/weather/partial-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/partial-hd-v2.webp'); }
.weather-art-cloud { --weather-preview: url('/intranet/assets/weather/cloud-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/cloud-hd-v2.webp'); }
.weather-art-rain { --weather-preview: url('/intranet/assets/weather/rain-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/rain-hd-v2.webp'); }
.weather-art-night { --weather-preview: url('/intranet/assets/weather/night-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/night-hd-v2.webp'); }
.weather-art-storm { --weather-preview: url('/intranet/assets/weather/storm-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/storm-hd-v2.webp'); }
.weather-art-snow { --weather-preview: url('/intranet/assets/weather/snow-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/snow-hd-v2.webp'); }
.weather-art-mist { --weather-preview: url('/intranet/assets/weather/mist-preview-v2.webp'); --weather-hd: url('/intranet/assets/weather/mist-hd-v2.webp'); }
.wx-hero-art .weather-art, .wx-unavailable .weather-art { background-image: var(--weather-hd); }
.wx-location-label { display:flex; align-items:center; gap:8px; margin:10px 0 0; font-size:12px; color:#b7ccda; line-height:1.5; }
.wx-footer a { color:inherit; text-underline-offset:3px; }
body .swal2-popup.weather-location-popup { width:620px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); overflow:auto; padding:28px; border:1px solid #476074; border-radius:26px; background:radial-gradient(ellipse at top right,#35516466,transparent 60%),#132532; color:#eef5fa; font-family:var(--font-main); }
.weather-location-popup .swal2-title { padding:0; text-align:left; font-size:26px; color:#f5f8fc; }
.weather-location-popup .swal2-html-container { margin:14px 0 0; padding:0; color:#eef5fa; text-align:left; font-size:15px; overflow:visible; }
.weather-location-popup .swal2-actions { width:100%; margin:24px 0 0; gap:10px; flex-wrap:wrap; }
.weather-location-popup .swal2-styled { min-height:46px; margin:0; border-radius:12px; font-family:inherit; font-size:14px; box-shadow:none; }
.weather-location-popup .swal2-confirm { flex:1; color:#122633; background:#cce3ef; }
.weather-location-popup .swal2-cancel { color:#d5e3ee; background:#ffffff0b; border:1px solid #ffffff24; }
.weather-location-popup .swal2-validation-message { margin:16px 0 0; border-radius:10px; background:#ffcd9518; color:#ffe3bf; font-size:13px; line-height:1.5; }
.weather-location-popup :focus-visible { outline:2px solid #b5e0f9; outline-offset:3px; }
.wx-location-config [hidden] { display:none !important; }
.wx-location-intro { margin:0 0 22px; color:#b8cbd8; font-size:14px; line-height:1.6; }
.wx-location-modes { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.wx-location-modes label { display:flex; align-items:flex-start; gap:10px; border:1px solid #ffffff24; border-radius:14px; padding:16px 12px; cursor:pointer; background:#ffffff04; }
.wx-location-modes label:has(input:checked) { border-color:#a9d5eb; background:#a4cfe817; }
.wx-location-modes input { accent-color:#b4ddef; flex:none; margin:3px 0 0; width:16px; height:16px; }
.wx-location-modes span { line-height:1.5; }
.wx-location-modes i { margin-right:4px; color:#cce5f3; }
.wx-location-config small { display:block; margin-top:5px; font-size:12px; color:#b5cad8; line-height:1.5; }
.wx-location-info { display:flex; align-items:flex-start; gap:14px; padding:20px 16px; background:#ffffff06; border-radius:14px; line-height:1.6; font-size:14px; }
.wx-location-info > i { margin-top:5px; color:#d5bc8b; }
.wx-location-search { display:grid; grid-template-columns:minmax(0,1fr) 135px; gap:12px; }
.wx-location-search label { display:block; margin:0 0 8px; color:#c1d1dd; font-size:12px; }
.wx-location-search input,.wx-location-search select { width:100%; min-width:0; height:48px; border:1px solid #688090; border-radius:10px; padding:0 12px; background:#0c1c27; color:#edf5fa; font:inherit; font-size:14px; }
.wx-location-search input::placeholder { color:#9aafbd; }
.wx-search-status { min-height:18px; margin:12px 0 8px; color:#b3c8d6; font-size:12px; line-height:1.6; }
.wx-place-results { max-height:245px; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#557080 transparent; }
.wx-place-results button { display:flex; align-items:center; gap:12px; width:100%; padding:12px; border:1px solid transparent; border-bottom-color:#ffffff12; border-radius:10px; background:transparent; color:#edf5fa; text-align:left; font:inherit; cursor:pointer; }
.wx-place-results button:hover,.wx-place-results button[aria-selected="true"] { background:#9bcae21a; border-color:#9bcae25a; }
.wx-place-results button > i { flex:none; color:#a1bdcf; font-size:13px; }
.wx-place-results button > span { flex:1; min-width:0; overflow-wrap:anywhere; }
.wx-place-results .wx-result-coordinates { font-size:11px; color:#96aebb; }
.wx-selected-place:not(:empty) { display:flex; gap:12px; align-items:center; margin-top:14px; padding:14px; border:1px solid #a7d8c738; border-radius:12px; background:#8bc2ab0c; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.wx-selected-place > i { color:#b2dece; }
.wx-location-credit { margin:14px 0 0; color:#92aaba; font-size:11px; }
@media (max-width:540px) {
    body .swal2-popup.weather-location-popup { padding:22px 18px; border-radius:20px; }
    .weather-location-popup .swal2-title { font-size:23px; }
    .wx-location-modes label { padding:12px 10px; gap:7px; font-size:13px; }
    .wx-location-modes small { font-size:11px; }
    .wx-location-search { grid-template-columns:minmax(0,1fr); }
    .wx-location-search input,.wx-location-search select { font-size:16px; }
    .wx-place-results { max-height:220px; }
    .wx-location-label { font-size:11px; }
}
.portal-weather-ico .weather-art, .sw-weather-ico .weather-art { width: 44px; vertical-align: middle; }
#anu-weather-icon .weather-art { width: 72px; }

.weather-premium-container.swal2-backdrop-show { background: rgba(8, 18, 30, .64); backdrop-filter: blur(7px); }
body .swal2-popup.weather-premium-popup {
    padding: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto !important;
    border: 1px solid #405261;
    border-radius: 28px !important;
    background: #10202e;
    box-shadow: 0 32px 110px #020b1680;
    scrollbar-width: thin;
    scrollbar-color: #53697a #142432;
}
.weather-premium-popup .swal2-html-container { margin: 0 !important; padding: 0 !important; overflow: visible !important; text-align: left; }
.weather-premium-popup .swal2-close {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff24;
    border-radius: 50%;
    color: #d9e3ed;
    background: #ffffff08;
    font-size: 29px;
    transition: background .18s ease;
}
.weather-premium-popup .swal2-close:hover { background: #ffffff16; color: #fff; }
.weather-premium-popup .swal2-close:focus-visible { outline: 2px solid #b8dff4 !important; outline-offset: -4px; box-shadow: none; }
.weather-experience {
    --wx-accent: #dfbc82;
    --wx-muted: #b1c1ce;
    position: relative;
    padding: 26px 32px 20px;
    color: #f5f8fc;
    font-family: var(--font-main);
    font-weight: var(--ui-font-weight, 400);
    background: radial-gradient(ellipse at 75% 0%, #54718435, transparent 52%), linear-gradient(145deg, #1d303f, #0c1b29 80%);
    isolation: isolate;
}
.weather-experience.wx-sunny { background: radial-gradient(ellipse at 20% 18%, #b5864433, transparent 55%), linear-gradient(145deg, #2c3540, #101f2e 85%); }
.weather-experience.wx-night { --wx-accent: #c1c9fb; background: radial-gradient(ellipse at 35% 0%, #55548b38, transparent 60%), linear-gradient(150deg, #222941, #101626 85%); }
.weather-experience.wx-rainy, .weather-experience.wx-storm { --wx-accent: #a4d6f7; background: radial-gradient(ellipse at 70% 10%, #4c7a9540, transparent 60%), linear-gradient(150deg, #223b4b, #0e1d2c 85%); }
.weather-experience.wx-cold { --wx-accent: #c4ebf6; }
.weather-experience :is(h2, h3, p) { margin: 0; }
.wx-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 54px; min-height: 44px; }
.wx-eyebrow { color: var(--wx-accent); font-size: 11px; letter-spacing: .2em; white-space: nowrap; }
.wx-actions { display: flex; align-items: center; gap: 8px; }
.wx-actions button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; min-width: 44px; padding: 0 15px;
    color: #e7eef5; background: #ffffff08; border: 1px solid #ffffff24; border-radius: 24px;
    font: inherit; font-size: 13px; cursor: pointer; transition: background .18s ease;
}
.wx-actions button:hover { background: #ffffff14; }
.wx-actions button:disabled { opacity: .6; cursor: wait; }
.wx-actions #weather-detail-refresh { padding: 0; }
.wx-header h2 { margin-top: 8px; color: #f5f8fc; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.wx-header .wx-region { margin-top: 6px; color: var(--wx-muted); font-size: 14px; line-height: 1.5; }
.wx-overview { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; margin-top: 26px; }
.wx-current {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    min-width: 0; min-height: 270px; padding: 24px 26px 18px; border-radius: 22px;
    background: radial-gradient(ellipse at 85% 32%, #abc8da19, transparent 64%), linear-gradient(135deg, #ffffff08, #ffffff01);
    border: 1px solid #ffffff1c; overflow: hidden;
}
.wx-now { display: flex; align-items: center; gap: 7px; color: #d5e1e8; font-size: 12px; }
.wx-now > span { width: 5px; height: 5px; border-radius: 50%; background: var(--wx-accent); }
.wx-current-reading { position: relative; z-index: 1; margin-top: 20px; width: 57%; }
.wx-temperature { display: flex; align-items: flex-start; gap: 3px; color: #fff; font-size: clamp(64px, 7vw, 90px); line-height: 1; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.wx-temperature > span { margin-top: 12px; color: #bdcdd9; font-size: 27px; letter-spacing: -.03em; }
.wx-condition { margin-top: 12px; font-size: 18px; line-height: 1.25; color: #edf4fa; }
.wx-feels { margin-top: 7px; color: var(--wx-muted); font-size: 12px; }
.wx-hero-art { position: absolute; right: -1%; top: 6%; width: 52%; max-width: 250px; pointer-events: none; }
.wx-hero-art .weather-art { width: 100%; filter: drop-shadow(0 16px 22px #00000022); }
.wx-current-range { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 20px; margin-top: auto; padding-top: 22px; color: #d8e4ef; font-size: 12px; }
.wx-current-range i { margin-right: 4px; font-size: 10px; color: var(--wx-accent); }
.wx-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wx-metric { min-width: 0; padding: 16px 12px 12px; border-radius: 16px; background: #ffffff05; border: 1px solid #ffffff12; }
.wx-metric-label { display: flex; align-items: center; gap: 7px; color: #c6d3dd; font-size: 12px; }
.wx-metric-label i { color: var(--wx-accent); font-size: 12px; }
.wx-metric-value { margin-top: 14px; font-size: 26px; line-height: 1.1; letter-spacing: -.025em; color: #f1f6fb; font-variant-numeric: tabular-nums; }
.wx-metric-value small { font-size: 11px; color: var(--wx-muted); letter-spacing: 0; white-space: nowrap; }
.wx-metric-note { margin-top: 8px; font-size: 10px; line-height: 1.35; color: #aebdca; }
.wx-forecast { margin-top: 26px; }
.wx-forecast-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 16px; }
.wx-forecast-heading h3 { color: #eef4f9; font-size: 17px; letter-spacing: -.01em; }
.wx-forecast-heading > span { font-size: 11px; color: var(--wx-muted); }
.wx-swipe-hint { display: none; }
.wx-forecast-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; border-radius: 16px; }
.wx-day { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 14px 12px 12px; border: 1px solid #ffffff0e; border-radius: 16px; background: #ffffff03; text-align: center; }
.wx-day-first { border-color: #d5b98955; background: linear-gradient(155deg, #cfb58816, #ffffff04); }
.wx-day-name { color: #eaf1f8; font-size: 13px; text-transform: capitalize; }
.wx-day-first .wx-day-name { color: var(--wx-accent); }
.wx-day-date { margin-top: 3px; color: var(--wx-muted); font-size: 10px; }
.wx-day .weather-art { width: 68px; max-width: 100%; margin: 4px 0 2px; }
.wx-day-temperatures { display: flex; align-items: center; gap: 12px; font-size: 18px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.wx-day-temperatures > span:last-child { color: #a6b8c8; font-size: 15px; }
.wx-temperature-track { position: relative; width: 100%; height: 3px; margin: 10px 0; background: #ffffff10; border-radius: 3px; overflow: hidden; }
.wx-temperature-track > span { position: absolute; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #79b5db, #e3bf83); }
.wx-day-description { flex: 1; min-height: 30px; font-size: 10px; line-height: 1.4; color: #bbc9d5; overflow-wrap: anywhere; }
.wx-rain-chance { display: flex; gap: 5px; align-items: center; color: #9dcdeb; font-size: 11px; margin-top: 8px; }
.wx-rain-chance i { font-size: 9px; }
.wx-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #ffffff12; color: #a5b8c8; font-size: 10px; }
.wx-footer i { color: #9dcdeb; font-size: 9px; margin-left: 5px; }
.wx-unavailable { display: flex; align-items: center; flex-direction: column; padding: 28px 10px 34px; text-align: center; }
.wx-unavailable .weather-art { width: 170px; }
.wx-unavailable h3 { margin-top: 10px; color: #e9f1f8; font-size: 22px; }
.wx-unavailable p { margin-top: 10px; color: var(--wx-muted); font-size: 14px; }
.wx-forecast-empty { padding: 24px; border: 1px dashed #ffffff25; border-radius: 16px; color: var(--wx-muted); font-size: 14px; }

@media (max-width: 850px) {
    .wx-overview { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .wx-current { min-height: 240px; }
    .wx-hero-art { width: 240px; max-width: 48%; top: 0; right: 4%; }
    .wx-metric { padding: 14px; }
    .wx-metric-value { margin-top: 10px; }
    .wx-forecast-days { grid-template-columns: repeat(7, minmax(108px, 1fr)); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #52697a #142432; padding-bottom: 10px; }
    .wx-day { scroll-snap-align: start; }
    .wx-swipe-hint { display: inline; }
}
@media (max-width: 480px) {
    body .swal2-popup.weather-premium-popup { border-radius: 22px !important; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
    .weather-experience { padding: 16px 18px 18px; }
    .weather-premium-popup .swal2-close { top: 16px; right: 16px; }
    .wx-topline { padding-right: 52px; gap: 5px; }
    .wx-eyebrow { font-size: 10px; letter-spacing: .14em; }
    .wx-actions { gap: 6px; }
    .wx-actions button { padding: 0 12px; }
    .wx-actions #weather-detail-settings { width: 44px; padding: 0; }
    .wx-actions #weather-detail-settings span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .wx-header h2 { margin-top: 16px; font-size: 25px; }
    .wx-header .wx-region { font-size: 12px; }
    .wx-overview { margin-top: 22px; }
    .wx-current { min-height: 245px; padding: 20px 18px 18px; border-radius: 18px; }
    .wx-current-reading { margin-top: 18px; }
    .wx-temperature { font-size: 74px; }
    .wx-temperature > span { font-size: 23px; margin-top: 10px; }
    .wx-condition { font-size: 16px; }
    .wx-feels { font-size: 11px; }
    .wx-hero-art { right: -1%; top: 12%; width: 51%; max-width: none; }
    .wx-current-range { gap: 15px; padding-top: 18px; }
    .wx-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .wx-metric { padding: 13px 14px; }
    .wx-metric-label { font-size: 11px; }
    .wx-metric-value { font-size: 25px; margin-top: 10px; }
    .wx-metric-note { margin-top: 5px; }
    .wx-forecast { margin-top: 24px; }
    .wx-forecast-heading { gap: 5px; }
    .wx-forecast-heading > span { font-size: 10px; }
    .wx-footer { margin-top: 12px; }
}
@media (max-width: 350px) {
    .weather-experience { padding-inline: 14px; }
    .wx-current { padding-inline: 14px; }
    .wx-temperature { font-size: 64px; }
    .wx-temperature > span { font-size: 20px; }
    .wx-metric { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .weather-premium-popup *, .weather-premium-popup *::before, .weather-premium-popup *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
