*{box-sizing:border-box}body{margin:0;background:#06142d;color:#e8f3ff;font:15px system-ui,'Noto Sans Tamil',sans-serif}header{display:flex;align-items:center;gap:30px;padding:14px 24px;background:linear-gradient(115deg,#062449,#063974);border-bottom:1px solid #2674a9;flex-wrap:wrap}.brand{font-size:25px;font-weight:900;line-height:1}.brand b{display:inline-block}.brand em{color:#ffdf26;font-style:normal}.brand small{display:block;font-size:11px;font-weight:400;margin:6px 0 0 40px}nav{display:flex;gap:18px;flex:1;flex-wrap:wrap}nav a,aside a{color:#e7f2ff;text-decoration:none}nav a:hover,aside a:hover{color:#ffda1c}.langs{font-size:12px;color:#ffe16b}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);max-width:1550px;margin:auto;gap:16px;padding:18px}aside,.panel{background:linear-gradient(150deg,#082f5d,#071e3c);border:1px solid #17699e;border-radius:12px}aside{padding:16px;height:max-content;position:sticky;top:12px}aside h3{background:#ffd51e;color:#16233a;padding:12px;border-radius:8px;margin:0 0 12px}aside a{display:block;padding:12px;border-bottom:1px solid #164569}.note{color:#a4c2d9;font-size:12px;line-height:1.8}main{min-width:0}.search{display:flex;gap:10px;margin-bottom:12px}.search input{background:#0b345d;border:1px solid #4a99d0;border-radius:9px;padding:13px;color:white;flex:1;font-size:15px}.search button,.tabs button{background:#ffd423;color:#14223c;border:0;border-radius:8px;padding:10px 18px;font-weight:bold;cursor:pointer}.hero,.two{display:grid;grid-template-columns:1.15fr 1fr;gap:12px;margin-bottom:12px}.panel{padding:17px;margin-bottom:12px;min-width:0}.panel h2{font-size:19px;margin:0 0 12px}.panel p{color:#bdd3e7}.current{display:flex;gap:20px;align-items:center;margin:24px 0}.weathericon{font-size:75px;animation:float 4s ease-in-out infinite}@keyframes float{50%{transform:translateY(-6px)}}#temp{font-size:65px}.metrics,.metricgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.metrics span,.metricgrid div{padding:13px;background:#103d69;border-radius:9px}.metrics b,.metricgrid b{display:block;font-size:18px;margin-top:7px}.mapwrap iframe{border:0;width:100%;height:255px;border-radius:8px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.tabs button:not(.active){background:#19476f;color:#e5f1ff}.forecastitems{display:flex;overflow-x:auto;gap:9px;padding-bottom:8px}.forecastitem{background:#123e69;border:1px solid #2c6594;border-radius:10px;padding:14px;min-width:105px;text-align:center}.forecastitem .symbol{font-size:30px;display:block;margin:8px}.forecastitem b{display:block}.chart svg{width:100%;height:240px}.districts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.district{border:1px solid #286c9e;background:#103b66;color:#fff;padding:14px 8px;border-radius:10px;text-align:left;cursor:pointer;min-height:80px}.district:hover,.district.selected{border-color:#ffdc29;background:#155386}.district span{display:block;color:#a6cde9;font-size:12px;margin-top:8px}.alerts{border-color:#ad343b;background:#45192a}.alerts a{color:#ffdf68}footer{text-align:center;color:#8aa9c8;padding:20px}@media(max-width:1100px){.districts{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.layout{display:block;padding:10px}aside{position:static;margin-bottom:12px}aside a{display:inline-block;padding:8px}.hero,.two{grid-template-columns:1fr}.districts{grid-template-columns:repeat(2,1fr)}header{gap:12px;padding:12px}nav{gap:10px}#temp{font-size:48px}}

/* YARLSRI WEATHER — accessible, lightweight animations */
html{scroll-behavior:smooth}body{background:radial-gradient(ellipse at 52% 0%,#0b2b54 0%,#06142d 58%);background-attachment:fixed}
.panel{transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease}.panel:hover{border-color:#3286bb;box-shadow:0 10px 28px #0002}
.now{position:relative;overflow:hidden}.now::before{content:"";position:absolute;inset:-35% auto auto -35%;width:70%;height:130%;pointer-events:none;background:radial-gradient(circle,#ffd84a15,transparent 66%);animation:sunGlow 8s ease-in-out infinite alternate}
@keyframes sunGlow{to{transform:translate(45%,15%);opacity:.35}}
.weathericon{display:inline-flex;position:relative;isolation:isolate;filter:drop-shadow(0 3px 12px #ffd64e55);animation:weatherFloat 5s ease-in-out infinite}
.weathericon[data-kind="sun"]{animation:weatherSun 9s ease-in-out infinite;transform-origin:center}
.weathericon[data-kind="cloud"]{animation:weatherCloud 6s ease-in-out infinite}
.weathericon[data-kind="rain"]{animation:weatherRain 2.2s ease-in-out infinite}
.weathericon[data-kind="storm"]{animation:weatherStorm 3s ease-in-out infinite}
@keyframes weatherFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes weatherSun{0%,100%{transform:rotate(-6deg) scale(1)}50%{transform:rotate(8deg) scale(1.07)}}
@keyframes weatherCloud{0%,100%{transform:translateX(-7px)}50%{transform:translateX(8px)}}
@keyframes weatherRain{0%,100%{transform:translateY(-3px)}50%{transform:translateY(5px)}}
@keyframes weatherStorm{0%,88%,100%{filter:drop-shadow(0 3px 12px #ffe15b55)}91%,95%{filter:drop-shadow(0 0 20px #fff8b9)}}
.forecastitem{animation:cardRise .55s ease both;transition:transform .25s,border-color .25s,background .25s}.forecastitem:hover{transform:translateY(-5px);border-color:#ffdc29;background:#18517c}
.forecastitem:nth-child(6n+2){animation-delay:.05s}.forecastitem:nth-child(6n+3){animation-delay:.10s}.forecastitem:nth-child(6n+4){animation-delay:.15s}.forecastitem:nth-child(6n+5){animation-delay:.20s}.forecastitem:nth-child(6n){animation-delay:.25s}
@keyframes cardRise{from{opacity:.3;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.forecastitem .symbol{animation:weatherFloat 4.5s ease-in-out infinite}.forecastitem:nth-child(even) .symbol{animation-delay:-2s}
.district{transition:transform .2s,border-color .2s,background .2s,box-shadow .2s}.district:hover{transform:translateY(-3px);box-shadow:0 8px 16px #0004}
.chart polyline{stroke-dasharray:1400;stroke-dashoffset:1400;animation:lineReveal 2.2s ease forwards}@keyframes lineReveal{to{stroke-dashoffset:0}}
.metricgrid div,.metrics span{transition:background .25s,transform .25s}.metricgrid div:hover,.metrics span:hover{background:#185483;transform:translateY(-2px)}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffd423;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Accessible three-language selector */
.langs{margin-left:auto}.language-switch{display:flex;align-items:center;gap:5px;background:#071f40;padding:5px;border:1px solid #2d6899;border-radius:11px}.language-switch button{background:transparent;border:1px solid transparent;border-radius:7px;padding:8px 10px;color:#e6f3ff;cursor:pointer;font:600 13px system-ui,sans-serif}.language-switch button.active{background:#ffd423;color:#11213c}.language-switch button:hover:not(.active){background:#184c78}@media(max-width:760px){.langs{margin-left:0}.language-switch{flex-wrap:wrap}}

/* Accessible three-language selector */
.langs{margin-left:auto}.language-switch{display:flex;align-items:center;gap:5px;background:#071f40;padding:5px;border:1px solid #2d6899;border-radius:11px}.language-switch button{background:transparent;border:1px solid transparent;border-radius:7px;padding:8px 10px;color:#e6f3ff;cursor:pointer;font:600 13px system-ui,sans-serif}.language-switch button.active{background:#ffd423;color:#11213c}.language-switch button:hover:not(.active){background:#184c78}@media(max-width:760px){.langs{margin-left:0}.language-switch{flex-wrap:wrap}}


/* YARLSRI WEATHER | readable centered desktop layout | 2026-11-11 */
html{font-size:16px}
body{font-size:16px;min-width:320px}
/* Override earlier narrow wrappers without stretching beyond readable width. */
.layout{width:calc(100% - 48px)!important;max-width:1500px!important;margin-left:auto!important;margin-right:auto!important;grid-template-columns:235px minmax(0,1fr)!important;gap:20px!important;padding:20px 0!important}
.layout>main,main{min-width:0;width:100%;max-width:none}
.layout aside{width:auto;min-width:0}
.panel{padding:22px;border-radius:14px}
.panel h2{font-size:clamp(19px,1.35vw,23px);line-height:1.45}
.hero,.two{gap:18px}
.current{gap:22px}
.weathericon{font-size:clamp(70px,6vw,100px);line-height:1.2}
#temp{font-size:clamp(58px,5vw,82px);line-height:1.15}
.forecastitem{min-width:118px;padding:16px 12px;font-size:15px}
.forecastitem .symbol{font-size:39px;line-height:1.3}
.districts{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.district{min-height:100px;padding:15px 12px;font-size:15px;line-height:1.4}
.district span{font-size:13px}
.metrics span,.metricgrid div{padding:16px;font-size:15px}
.metrics b,.metricgrid b{font-size:20px}
.mapwrap iframe{height:340px}
.chart svg{height:300px}
/* Preserve layout on tablets and phones. */
@media(max-width:1100px){.layout{width:calc(100% - 32px)!important;grid-template-columns:195px minmax(0,1fr)!important;gap:14px!important}.districts{grid-template-columns:repeat(3,minmax(0,1fr))}.panel{padding:17px}}
@media(max-width:760px){.layout{display:block!important;width:calc(100% - 20px)!important;max-width:none!important;padding:10px 0!important}.layout aside{position:static;margin-bottom:14px}.hero,.two{grid-template-columns:minmax(0,1fr)}.districts{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:15px}.weathericon{font-size:65px}#temp{font-size:55px}.forecastitem{min-width:102px}.forecastitem .symbol{font-size:34px}.mapwrap iframe{height:280px}.chart svg{height:230px}}
