/* Responsive rules (mobile / tablet / desktop breakpoints) - loaded after style.css */
@media (min-width:700px){.c2{grid-template-columns:1fr 1fr}.c3{grid-template-columns:repeat(3,1fr)}}
@media (min-width:700px){.tiles{grid-template-columns:repeat(3,1fr)}}
@media (min-width:860px){.split{grid-template-columns:1fr 1.15fr;align-items:start}}
@media (min-width:1000px){#menu-btn{display:none}header{display:flex;align-items:center;justify-content:space-between;padding:0 3.5rem}.bar{flex:none;padding:.7rem 0;margin:0;max-width:none}nav,nav.open{display:flex;flex-direction:row;align-items:center;gap:.4rem;padding:0;margin:0;max-width:none}nav a{border:0;padding:.4rem .8rem}}
@media (min-width:860px){.hero2:not(.inner){grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:3rem;align-items:center;padding:2.2rem 1.2rem 2.5rem max(1.2rem,calc((100vw - 1180px)/2 + 1.2rem))}.hero2:not(.inner) .hphoto{margin-top:0;aspect-ratio:4/5;min-height:0;border-radius:14px;background-position:center 8%}.hero2:not(.inner) .htext{align-self:center}.hero2:not(.inner)::before{content:"";position:absolute;left:0;top:0;width:4px;height:110px;background:linear-gradient(var(--gold),#c9920a00)}.hero2{position:relative}}
@media (max-width:999px){.pin{padding:3.4rem 1rem 2.2rem}}
@media (min-width:860px){.split2{grid-template-columns:1fr 1.1fr;gap:3rem}}
@media (min-width:700px){.fgrid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:860px){.dgrid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:700px){.gg{grid-template-columns:repeat(3,1fr)}}
@media (min-width:800px){.fwrap{grid-template-columns:1.4fr 1fr 1.2fr}}
@media (min-width:700px){.gwall{grid-template-columns:repeat(4,1fr)}}
@media (max-width:699px){
 body{padding-bottom:calc(60px + env(safe-area-inset-bottom,0px));font-size:16.5px}
 .ticker{font-size:.85rem;padding:.35rem 0}.track span{padding:0 1.6rem}
 .util{padding:.3rem .8rem;gap:.4rem}
 .pill{min-height:34px;padding:.1rem 1rem;font-size:.9rem}
 .bar{padding:.45rem .8rem;gap:.6rem}
 .brand{flex:1;min-width:0;gap:.6rem;font-size:.9rem}
 .brand small{font-size:.72rem}
 .logo{width:38px;height:38px}.logo svg{width:24px;height:24px}
 #menu-btn{min-height:42px;padding:.3rem .9rem;flex:none}
 nav a{padding:.8rem .4rem;font-size:1.02rem}
 .hphoto{aspect-ratio:1/1;background-position:center 20%}
 .htext{padding:0 1rem}
 .hero2{gap:1.1rem;padding-bottom:1.2rem}
 .hero2 .btns .btn{flex:1;text-align:center;padding:.8rem .6rem}
 .badge{font-size:.8rem}
 .sec{padding:2.2rem 0}.qband{padding:2rem 0}
 .wrap{padding:0 1rem}
 .sh{margin-bottom:1.1rem}
 .grid{margin:1rem 0}
 .fgrid,.dgrid{gap:.9rem}
 .dcard h3{font-size:1rem}
 .btns .btn{padding:.75rem 1.1rem}
 .pin{padding:2.2rem 1rem 1.6rem}.crumb{margin-bottom:1rem}
 .phero h1{font-size:2rem}
 main{padding:1.2rem 1rem 2rem}
 main.home{padding:0}
 .tw table{min-width:0}
 th,td{padding:.6rem .7rem;font-size:.95rem}
 .panel{padding:1rem}
 .panel form .btn{padding:.9rem}
 input,textarea{font-size:16px}
 .fwrap{padding:1.8rem 1rem 1rem;gap:1.2rem}
 .abar{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--ink);border-top:2px solid var(--gold);padding-bottom:env(safe-area-inset-bottom,0px)}
 .abar a{color:#fdf1cd;text-decoration:none;text-align:center;padding:.9rem .3rem;font-weight:600;font-size:.95rem;border-left:1px solid #ffffff22}
 .abar a:first-child{border-left:0;background:var(--gold);color:#0d1f1a}
 #lb img{max-width:98vw}
}
@media (max-width:699px){
 .pill{min-height:40px}
 .util{padding:.25rem .8rem}
 .crumb a{display:inline-block;padding:.5rem .3rem .5rem 0}
 .brand small{font-size:.8rem}
 .badge{font-size:.85rem}
}
@media (max-width:699px){.tw{touch-action:pan-x pan-y}}
@media (min-width:860px){.dgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:700px){.gg{grid-template-columns:repeat(3,minmax(0,1fr))}.gwall{grid-template-columns:repeat(4,minmax(0,1fr))}.fgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:699px){
 .hero2{grid-template-columns:minmax(0,1fr)}
 .hero2 .btns .btn{flex:1 1 140px}
 .dcard p{overflow-wrap:anywhere}
}
@media (max-width:380px){.brand small{display:none}.brand{font-size:.88rem;line-height:1.25}}

/* mobile top toggle + bottom bar fixes */
.pill{min-width:96px;text-align:center;font-family:"Mukta Malar","Noto Serif Tamil",sans-serif;font-size:.95rem;font-weight:600;line-height:1.2;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:699px){
 body{padding-bottom:0}
 footer{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
 .util{justify-content:center;padding:.4rem .8rem}
 .pill{min-height:40px;min-width:120px}
 .abar{border-top:2px solid var(--gold);box-shadow:0 -4px 14px #0004}
 .abar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;padding:.55rem .3rem;min-height:56px;font-size:.85rem;line-height:1.15}
 .abar .ai{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .abar a:active{filter:brightness(.9)}
}

/* WhatsApp icons green */
.abar .ai.fill{fill:currentColor;stroke:none}
.abar a:nth-child(2) .ai{color:#25D366}


/* colored contact icons: footer + contact page only */
.fwrap .fico{display:flex;gap:10px;margin:.2rem 0 .7rem}
.fwrap .fico a{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:11px;color:#fff;box-shadow:0 3px 10px #0004;transition:transform .15s}
.fwrap .fico a:hover{transform:scale(1.08)}
.fico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fico .fi-wa{background:#25D366}.fico .fi-wa svg{fill:currentColor;stroke:none;width:26px;height:26px}
.fico .fi-tel{background:#2563eb}.fico .fi-mail{background:#e53935}
.tile[data-href="wa"] .ic{background:#25D366;color:#fff}
.tile[data-href="tel"] .ic{background:#2563eb;color:#fff}
.tile[data-href="mail"] .ic{background:#e53935;color:#fff}

/* smaller language toggle pills on mobile */
@media (max-width:699px){
 .util{padding:.3rem .8rem;gap:.35rem}
 .pill{min-height:30px;min-width:84px;padding:.1rem .7rem;font-size:.8rem}
}

/* bottom nav: 4th item = Menu */
@media (max-width:699px){
 .abar{grid-template-columns:repeat(4,1fr)}
 .abar a,.abar .abar-menu{font-size:.78rem}
 .abar .abar-menu{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;padding:.55rem .3rem;min-height:56px;background:transparent;color:#fdf1cd;border:0;border-left:1px solid #ffffff22;font-family:inherit;font-weight:600;line-height:1.15;cursor:pointer}
 .abar .abar-menu:active{filter:brightness(.9)}
}

/* bottom nav v2: website menu, icon + label, highlighted active item */
@media (max-width:699px){
 .abar{grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding:.35rem .2rem calc(.35rem + env(safe-area-inset-bottom,0px));background:var(--tick);border-top:1px solid #ffffff1f;box-shadow:0 -6px 18px #0005}
 .abar a,.abar a:first-child{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.22rem;min-height:56px;padding:.45rem .1rem .3rem;border:0;border-radius:12px;background:transparent;color:#cdbf94;font-size:clamp(.56rem,2.9vw,.68rem);font-weight:600;line-height:1.12;text-align:center;overflow-wrap:normal;word-break:keep-all;white-space:nowrap;transition:background .15s,color .15s}
 .abar a[aria-current]{background:#ffffff1a;color:#fdf1cd;font-weight:700}
 .abar .ai{width:22px;height:22px;stroke:#e0a91a;color:#e0a91a}
 .abar a:nth-child(2) .ai{color:#e0a91a}
 .abar a[aria-current] .ai{stroke:#f4c542}
 .abar a:active{background:#ffffff26;filter:none}
 footer{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}

/* top nav: hamburger icon button */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#menu-btn{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:10px;background:var(--tick);flex:none;-webkit-tap-highlight-color:transparent}
#menu-btn .hb{position:relative;display:block;width:22px;height:16px}
#menu-btn .hb i{position:absolute;left:0;right:0;height:2.5px;border-radius:2px;background:#e0a91a;transition:transform .25s ease,opacity .2s ease,top .25s ease}
#menu-btn .hb i:nth-child(1){top:0}
#menu-btn .hb i:nth-child(2){top:6.75px}
#menu-btn .hb i:nth-child(3){top:13.5px}
#menu-btn[aria-expanded="true"] .hb i:nth-child(1){top:6.75px;transform:rotate(45deg)}
#menu-btn[aria-expanded="true"] .hb i:nth-child(2){opacity:0}
#menu-btn[aria-expanded="true"] .hb i:nth-child(3){top:6.75px;transform:rotate(-45deg)}
#menu-btn:active{filter:brightness(1.25)}
@media (min-width:1000px){#menu-btn{display:none}}

/* admin-published festival updates + gallery captions */
.updgrid{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:700px){.updgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.upd .udate{display:inline-block;background:#ded8bf;border:1px solid #d4c78c;border-radius:999px;padding:.1rem .8rem;font-size:.8rem;font-weight:600;color:#4a4a3a;margin-bottom:.5rem}
.upd h3{margin:.1rem 0 .4rem}
.upd p{white-space:pre-line;margin:.2rem 0}
.lbcap{color:#fdf1cd;margin-top:.6rem;padding:0 1rem;font-size:1rem}
