
:root{
  --purple:#4b1768;--purple2:#6d2a88;--purple3:#321044;--gold:#c79738;--gold2:#e5c96e;
  --cream:#fff9ec;--cream2:#f7ead5;--ink:#34202d;--muted:#7e6a61;--green:#3d9a63;--blue:#3d79c9;
  --rose:#f7e6df;--line:rgba(177,132,49,.34);--shadow:0 18px 55px rgba(71,34,50,.12);
  --radius:28px;--nav:86px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,"Noto Sans Tamil","Nirmala UI","Segoe UI",system-ui,sans-serif;background:linear-gradient(135deg,#fffaf0,#f9eadc 50%,#fff6e7);min-height:100vh}
button,input,textarea{font:inherit}button{cursor:pointer}.site-shell{max-width:1180px;margin:0 auto;padding-bottom:calc(var(--nav) + 22px)}
.hero{height:330px;position:relative;overflow:hidden;border-radius:0 0 34px 34px;box-shadow:var(--shadow)}.hero-image{width:100%;height:100%;object-fit:cover}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,249,235,.92) 0%,rgba(255,249,235,.72) 38%,rgba(255,249,235,.16) 67%,rgba(56,21,68,.18) 100%)}.hero-content{position:absolute;inset:0;padding:28px 34px;display:flex;flex-direction:column;justify-content:space-between}.brand-block{display:flex;align-items:center;gap:16px}.brand-seal{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#fff3c4 0 35%,#d6a23c 36% 60%,#6e294f 61% 64%,#fff2bd 65%);color:#4b1768;font-weight:950;font-size:15px;box-shadow:0 8px 25px rgba(65,36,26,.18)}.brand-ta{font-size:clamp(23px,4vw,42px);line-height:1.15;font-weight:900;color:var(--purple3)}.brand-en{font-size:clamp(13px,2vw,22px);letter-spacing:.09em;font-weight:850;color:#4d243b;margin-top:6px}.brand-motto{font-size:11px;letter-spacing:.18em;color:#7a5831;margin-top:8px}.hero-tools{position:absolute;right:28px;top:26px;display:flex;gap:10px}.lang-switch,.icon-button{border:1px solid var(--gold);background:rgba(255,249,235,.9);color:var(--purple);border-radius:999px;padding:11px 17px;font-weight:850;box-shadow:0 8px 24px rgba(76,42,25,.12)}.icon-button{width:48px;padding:11px}.hero-message{max-width:440px}.hero-message strong{display:block;color:#5b2747;font-size:18px}.hero-message span{display:block;color:#6d5a50;margin-top:8px;font-weight:700}
main{padding:24px 22px}.page{display:none}.page.active{display:block}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin:8px 0 16px}.section-head h2{margin:3px 0 0;color:var(--purple);font-size:clamp(25px,4vw,38px)}.section-head p{margin:6px 0 0;color:var(--muted)}.eyebrow{display:block;color:#a67724;font-size:10px;letter-spacing:.16em;font-weight:950}.text-button{border:0;background:transparent;color:var(--purple);font-weight:900}
.pooja-carousel-wrap{position:relative}.pooja-carousel{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px max(7vw,70px) 18px;scrollbar-width:none}.pooja-carousel::-webkit-scrollbar{display:none}.featured-card{flex:0 0 min(570px,78vw);scroll-snap-align:center;background:#fffaf0;border:1px solid var(--line);border-radius:30px;overflow:hidden;box-shadow:var(--shadow);transition:.25s;position:relative}.featured-card.special{outline:3px solid rgba(199,151,56,.52);box-shadow:0 18px 60px rgba(164,111,23,.2)}.featured-visual{height:215px;background:#f7ead5;overflow:hidden;position:relative}.featured-visual img{width:100%;height:100%;object-fit:cover}.card-badges{position:absolute;inset:14px 14px auto 14px;display:flex;justify-content:space-between;gap:8px}.badge{display:inline-flex;border-radius:999px;padding:7px 12px;font-size:11px;font-weight:950;background:#fff9e9;color:var(--purple);border:1px solid rgba(255,255,255,.7);box-shadow:0 4px 14px rgba(53,30,23,.12)}.badge.special{background:linear-gradient(135deg,#f6d26c,#fff0ad);color:#6b4314}.featured-body{display:grid;grid-template-columns:70px 1fr;gap:15px;padding:18px}.date-tile{border:1px solid #ead7ae;border-radius:16px;background:#fffefa;text-align:center;padding:9px 5px;height:max-content}.date-tile strong{font-size:28px;color:var(--purple);display:block;line-height:1}.date-tile span{font-size:11px;font-weight:850}.date-tile small{font-size:10px;color:var(--muted)}.featured-info h3{margin:0;color:var(--purple);font-size:21px;line-height:1.35}.featured-info .en{color:#604761;font-weight:700;margin-top:3px}.meta-list{display:grid;gap:7px;margin-top:13px;color:#5c4b55;font-size:13px}.meta-list span{display:flex;gap:8px;align-items:center}.status-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.state{border-radius:999px;padding:7px 12px;font-size:11px;font-weight:950}.state.upcoming{background:#e2f4e8;color:#216c44}.state.running{background:#dfeefb;color:#2b5f91}.state.finished{background:#ece8e2;color:#6d645c}.state.free{background:#dff3ff;color:#23678f}.state.reserved{background:#eee1f3;color:#5b2470}.reserve-btn{margin-top:14px;border:0;background:var(--purple);color:white;border-radius:14px;padding:11px 15px;font-weight:900}.carousel-arrow{position:absolute;top:43%;z-index:4;width:52px;height:52px;border-radius:50%;border:3px solid white;background:var(--purple);color:white;font-size:35px;box-shadow:0 8px 20px rgba(58,29,64,.2)}.carousel-arrow.left{left:10px}.carousel-arrow.right{right:10px}.carousel-dots{display:flex;justify-content:center;gap:9px;margin:3px 0 22px}.carousel-dots button{width:9px;height:9px;border-radius:999px;border:0;background:#d8c9bb;padding:0}.carousel-dots button.active{width:34px;background:#7d5428}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.quick-card{border:1px solid var(--line);background:rgba(255,250,240,.92);border-radius:22px;padding:21px 12px;text-align:center;box-shadow:0 9px 28px rgba(71,34,50,.08);color:var(--purple)}.quick-card:hover{transform:translateY(-2px)}.quick-ico{display:block;font-size:36px;font-weight:900;margin-bottom:9px}.quick-card b{display:block}.quick-card small{display:block;color:var(--muted);margin-top:5px}
.donation-banner{margin-top:20px;background:linear-gradient(105deg,#fff7e6,#f0ddc7);border:1px solid var(--line);border-radius:26px;padding:16px;display:grid;grid-template-columns:190px 1fr auto;align-items:center;gap:18px;box-shadow:var(--shadow);overflow:hidden}.donation-banner img{width:190px;height:115px;object-fit:cover;border-radius:18px}.donation-banner h3{margin:3px 0;color:var(--purple);font-size:23px}.donation-banner p{margin:4px 0 10px;color:var(--muted)}.progress{height:12px;border-radius:999px;background:#ddcdbb;overflow:hidden}.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#5b1678,#8c2caf);border-radius:999px}.progress-meta{display:flex;justify-content:space-between;margin-top:7px;font-size:13px}.primary-button{border:0;border-radius:14px;padding:13px 18px;background:linear-gradient(135deg,var(--purple),var(--purple2));color:white;font-weight:900;box-shadow:0 8px 20px rgba(75,23,104,.2)}
.panel{background:rgba(255,250,240,.94);border:1px solid var(--line);border-radius:26px;padding:20px;margin-top:18px;box-shadow:0 10px 32px rgba(71,34,50,.07)}.panel-head{display:flex;justify-content:space-between}.panel h3{margin:0 0 10px;color:var(--purple)}.announcement{display:grid;grid-template-columns:72px 1fr 20px;gap:14px;align-items:center;padding:13px;border:1px solid #eedfc6;border-radius:16px;background:#fffdf7;text-decoration:none;color:inherit}.announcement-date{text-align:center;font-size:20px;font-weight:900;color:var(--purple)}.announcement-date small{font-size:10px}.announcement p{margin:5px 0;color:var(--muted);font-size:13px}.announcement-flyer{display:block;width:100%;max-width:260px;border-radius:10px;margin-top:8px;object-fit:cover}.announcement-flyer-pdf{margin-top:8px;padding:8px 12px;border-radius:10px;background:#f3e6d0;color:var(--purple);font-size:13px;font-weight:700;display:inline-block}
.filter-panel{background:#fffaf0;border:1px solid var(--line);border-radius:22px;padding:14px;margin-bottom:16px}.filter-panel input{width:100%;border:1px solid #e2ceaa;background:#fffefa;border-radius:14px;padding:13px}.filter-tabs{display:flex;gap:7px;overflow:auto;margin-top:10px}.filter{white-space:nowrap;border:1px solid #d9c08b;background:#fff5db;color:var(--purple);border-radius:999px;padding:8px 12px;font-weight:850}.filter.active{background:var(--purple);color:white;border-color:var(--purple)}
.pooja-list{display:grid;gap:12px}.pooja-list-card{display:grid;grid-template-columns:100px 1fr auto;gap:15px;align-items:center;background:#fffaf0;border:1px solid var(--line);border-left:7px solid var(--purple);border-radius:20px;padding:15px}.pooja-list-card.free{border-left-color:var(--green)}.pooja-list-card.special{box-shadow:inset 0 0 0 2px rgba(199,151,56,.28)}.pooja-list-card h3{margin:0;color:var(--purple)}.pooja-list-card p{margin:5px 0;color:var(--muted);font-size:13px}.small-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.small-tag{font-size:10px;font-weight:900;padding:5px 8px;border-radius:999px;background:#f1e4f5;color:var(--purple)}.list-actions{display:flex;flex-direction:column;gap:7px;align-items:end}.list-actions button{border:0;border-radius:12px;padding:9px 11px;font-weight:850}.list-actions .reserve{background:var(--purple);color:white}
.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.project-card{background:#fffaf0;border:1px solid var(--line);border-radius:24px;padding:19px;box-shadow:var(--shadow)}.project-card h3{color:var(--purple);margin:0}.project-card p{color:var(--muted)}.amount-row{display:flex;gap:9px;flex-wrap:wrap}.amount-row button{border:1px solid var(--gold);background:#fff3d7;color:var(--purple);font-weight:900;border-radius:999px;padding:9px 14px}.qr-placeholder{width:150px;height:150px;border:8px solid #321044;margin-top:16px;display:grid;place-items:center;font-size:38px;font-weight:950;color:#321044;background:repeating-linear-gradient(45deg,#fff 0 8px,#321044 8px 16px);text-shadow:0 0 8px white}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.gallery-grid figure{margin:0;background:#fffaf0;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}.gallery-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-grid figcaption{padding:12px;color:var(--purple);font-weight:800}.about-card{display:flex;justify-content:space-between;gap:20px;align-items:center}
form input,form textarea{width:100%;margin:7px 0;border:1px solid #dec79b;background:#fffefa;border-radius:13px;padding:12px}form textarea{min-height:100px}.stars button{border:0;background:transparent;font-size:34px;color:#d2c4ad;padding:2px}.stars button.active{color:#d29a25}
.bottom-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;height:var(--nav);display:flex;justify-content:center;background:linear-gradient(90deg,#37104d,#59166f);box-shadow:0 -8px 30px rgba(45,19,55,.18);padding-bottom:env(safe-area-inset-bottom)}.bottom-nav:before{content:"";position:absolute;top:0;width:min(1180px,100%);height:2px;background:linear-gradient(90deg,#d6ad4d,#f7dc91,#d6ad4d)}.nav{flex:1;max-width:236px;border:0;background:transparent;color:white;opacity:.88;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}.nav span{font-size:27px}.nav b{font-size:12px}.nav.active{opacity:1;background:linear-gradient(180deg,#f1cd6e,#e6b95a);color:#3d1450}
dialog{border:0;padding:0;background:transparent;max-width:560px;width:calc(100% - 24px)}dialog::backdrop{background:rgba(37,17,42,.58);backdrop-filter:blur(5px)}.dialog-card{position:relative;background:#fffaf0;border-radius:26px;padding:24px;border:1px solid #e5c98e;box-shadow:0 26px 80px rgba(35,18,40,.28)}.dialog-card h3{color:var(--purple);font-size:24px}.dialog-card label{display:block;font-size:12px;font-weight:850;color:var(--purple);margin-top:8px}.dialog-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border-radius:50%;border:0;background:#f2e4ce;color:var(--purple);font-size:24px}.selected-pooja{background:#f4e7f5;border-radius:15px;padding:11px;color:var(--purple);font-weight:800}.dialog-note{font-size:12px;color:var(--muted)}
@media(max-width:800px){
  .hero{height:300px;border-radius:0 0 28px 28px}.hero-content{padding:18px}.brand-seal{width:58px;height:58px}.brand-ta{font-size:24px}.brand-en{font-size:12px}.hero-tools{top:16px;right:16px}.lang-switch{padding:9px 12px}.hero-message strong{font-size:15px;max-width:260px}main{padding:18px 12px}.featured-card{flex-basis:82vw}.featured-visual{height:175px}.pooja-carousel{padding-left:8vw;padding-right:8vw}.carousel-arrow{width:44px;height:44px;font-size:29px}.quick-grid{grid-template-columns:repeat(2,1fr)}.donation-banner{grid-template-columns:100px 1fr}.donation-banner img{width:100px;height:86px}.donation-banner>.primary-button{grid-column:1/-1;width:100%}.project-grid,.gallery-grid{grid-template-columns:1fr}.pooja-list-card{grid-template-columns:78px 1fr}.list-actions{grid-column:2;align-items:start}.about-card{align-items:flex-start;flex-direction:column}.bottom-nav{height:80px}.nav b{font-size:10px}
}
@media(max-width:520px){.hero{height:280px}.hero-overlay{background:linear-gradient(90deg,rgba(255,249,235,.94),rgba(255,249,235,.52),rgba(75,23,104,.08))}.brand-block{align-items:flex-start}.brand-ta{max-width:230px;font-size:21px}.brand-en{max-width:230px}.hero-message{max-width:260px}.featured-card{flex-basis:86vw}.featured-body{grid-template-columns:62px 1fr;padding:14px}.featured-info h3{font-size:18px}.date-tile strong{font-size:24px}.quick-card{padding:17px 8px}.quick-ico{font-size:30px}.donation-banner{grid-template-columns:1fr}.donation-banner img{width:100%;height:120px}.pooja-list-card{grid-template-columns:1fr}.date-tile{width:70px}.list-actions{grid-column:1}.section-head h2{font-size:27px}}


/* v11: smartphone-first Pooja detail overlay */
.featured-card,.pooja-list-card{cursor:pointer}
.featured-card:focus-visible,.pooja-list-card:focus-visible{outline:3px solid #d7a73f;outline-offset:4px}
.pooja-detail-dialog{max-width:760px;width:min(760px,calc(100% - 24px));border:0;padding:0;background:transparent}
.pooja-detail-dialog::backdrop{background:rgba(28,13,33,.72);backdrop-filter:blur(8px)}
.pooja-detail-sheet{position:relative;overflow:hidden;background:#fffaf0;border:1px solid #e6ca8e;border-radius:30px;box-shadow:0 30px 100px rgba(24,12,29,.42);max-height:min(90vh,920px)}
.detail-scroll{max-height:min(90vh,920px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.detail-close{position:absolute;z-index:8;right:14px;top:14px;width:42px;height:42px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(255,250,240,.94);color:var(--purple);font-size:28px;line-height:1;box-shadow:0 8px 24px rgba(32,15,37,.18)}
.detail-hero{height:290px;position:relative;background:#eee0cb;overflow:hidden}.detail-hero img{width:100%;height:100%;object-fit:cover}.detail-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(40,17,50,.04) 30%,rgba(40,17,50,.52) 100%)}
.detail-hero-badges{position:absolute;left:18px;right:68px;bottom:18px;display:flex;gap:8px;flex-wrap:wrap}.detail-content{padding:24px}.detail-title-row{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:start}.detail-title-row h2{margin:4px 0 4px;color:var(--purple);font-size:31px;line-height:1.2}.detail-secondary{color:#6f536d;font-weight:700}.detail-price{min-width:130px;text-align:right;background:linear-gradient(135deg,#fff2c9,#f4d98a);border:1px solid #d9b454;border-radius:18px;padding:13px 15px;color:#5c3a12}.detail-price small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:900}.detail-price strong{display:block;font-size:22px;margin-top:3px}.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px}.detail-stat{background:#fffef9;border:1px solid #ead9b9;border-radius:17px;padding:14px}.detail-stat small{display:block;color:#806d63;font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.detail-stat strong{display:block;color:var(--purple);margin-top:6px;line-height:1.35}.detail-info-block{margin-top:16px;background:#f6ecf7;border:1px solid #ead7ec;border-radius:18px;padding:16px}.detail-info-block h3{margin:0 0 8px;color:var(--purple)}.detail-info-block p{margin:0;color:#5f5059;line-height:1.6}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.secondary-button{border:1px solid #c9ad78;background:#fff8e7;color:var(--purple);border-radius:14px;padding:13px 18px;font-weight:900}.detail-footnote{color:#8a7669;font-size:11px;line-height:1.5;margin:14px 0 0}
@media(max-width:620px){.pooja-detail-dialog{width:100%;max-width:none;margin:0;align-self:end}.pooja-detail-dialog[open]{display:flex;align-items:flex-end;min-height:100dvh}.pooja-detail-sheet{width:100%;max-height:96dvh;border-radius:28px 28px 0 0;border-bottom:0}.detail-hero{height:31dvh;min-height:220px;max-height:300px}.detail-content{padding:20px 16px calc(24px + env(safe-area-inset-bottom))}.detail-title-row{grid-template-columns:1fr}.detail-title-row h2{font-size:26px}.detail-price{min-width:0;text-align:left;display:flex;justify-content:space-between;align-items:center}.detail-price strong{font-size:20px}.detail-grid{grid-template-columns:1fr 1fr;gap:9px}.detail-stat{padding:12px}.detail-actions{position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,250,240,.75),#fffaf0 28%);padding-top:14px}.detail-actions .primary-button,.detail-actions .secondary-button{flex:1;min-width:140px}.detail-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:12px}}
@media(max-width:390px){.detail-grid{grid-template-columns:1fr}.detail-hero{height:240px}.detail-title-row h2{font-size:23px}}

/* v13 professional detail actions */
.detail-actions .whatsapp-button{background:#f1fbf5;border-color:#9dc9ad;color:#176b3a}
.detail-actions [data-detail-calendar],.detail-actions [data-detail-share]{background:#fffef9}
@media(max-width:620px){.detail-actions{display:grid;grid-template-columns:1fr 1fr}.detail-actions .primary-button{grid-column:1/-1}.detail-actions [data-detail-close]{grid-column:1/-1}.detail-actions .primary-button,.detail-actions .secondary-button{min-width:0;width:100%}}

/* v14: deep-linked, swipeable Pooja detail experience */
.detail-related{margin-top:16px;border:1px solid #ead9b9;background:#fffdf6;border-radius:18px;padding:15px}
.detail-related-head{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:10px}.detail-related-head h3{margin:0;color:var(--purple);font-size:17px}.detail-related-head small{color:var(--muted)}
.detail-related-list{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}.detail-related-list button{flex:0 0 auto;border:1px solid #ddc795;background:#fff8e8;color:var(--purple);border-radius:14px;padding:10px 12px;display:flex;align-items:center;gap:9px}.detail-related-list button strong{font-size:12px}.detail-related-list .state{padding:5px 8px;font-size:9px}
.detail-nav-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-top:16px}.detail-nav-row>span{text-align:center;color:var(--muted);font-size:11px}.detail-nav-row .secondary-button{padding:10px 13px}
@media(max-width:620px){.detail-nav-row{grid-template-columns:1fr 1fr}.detail-nav-row>span{grid-column:1/-1;grid-row:1}.detail-related-head{align-items:flex-start;flex-direction:column}.detail-related-list{margin-right:-16px;padding-right:16px}}


/* v15 reservation tracking */
.request-sheet{max-width:760px}.request-lookup{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;margin:18px 0}.request-lookup input{min-height:48px;border:1px solid rgba(74,45,105,.16);border-radius:14px;padding:0 14px;background:#fff}.saved-requests{display:grid;gap:10px;margin-top:16px}.request-ticket{border:1px solid rgba(183,143,45,.28);background:linear-gradient(180deg,#fff,#fffaf1);border-radius:18px;padding:16px;box-shadow:0 10px 26px rgba(54,35,75,.07)}.request-ticket-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.request-ticket h3{margin:4px 0 2px}.request-ref{font-size:.78rem;letter-spacing:.08em;font-weight:800;color:#72558d}.request-status{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:800}.request-status.pending{background:#fff2c7;color:#755800}.request-status.approved,.request-status.confirmed{background:#dff4e7;color:#1f6a3f}.request-status.rejected{background:#fbe2e2;color:#9a2e2e}.request-ticket-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.request-ticket-meta span{background:#f4eef7;border-radius:999px;padding:5px 9px;font-size:.78rem}.confirmation-box{border:1px solid rgba(45,117,77,.25);background:#eef9f2;border-radius:18px;padding:16px;margin-top:14px}.confirmation-ref{font-size:1.15rem;font-weight:900;letter-spacing:.06em;color:#3d2354}.copy-ref{margin-top:10px}
@media(max-width:640px){.request-lookup{grid-template-columns:1fr}.request-sheet{min-height:72vh}.request-ticket-head{flex-direction:column}.request-status{align-self:flex-start}}


/* v16 Live Temple Status */
.live-temple-strip{max-width:1180px;margin:-18px auto 22px;padding:12px 16px;display:grid;grid-template-columns:1fr 1.15fr 1.5fr;gap:10px;position:relative;z-index:4}
.live-status-main,.live-activity,.live-next-card{min-height:78px;border:1px solid rgba(108,71,20,.16);background:rgba(255,250,240,.96);border-radius:20px;box-shadow:0 10px 28px rgba(74,42,14,.08);padding:14px 16px;display:flex;align-items:center;gap:12px}
.live-status-main small,.live-activity small,.live-next-card small{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#755b75}.live-status-main strong,.live-activity strong,.live-next-card strong{display:block;color:#3d174e;font-size:16px}.live-activity{display:block}.live-activity span,.live-next-card span{display:block;color:#806f69;font-size:12px;margin-top:3px}.live-dot{width:13px;height:13px;border-radius:50%;background:#26834b;box-shadow:0 0 0 5px rgba(38,131,75,.12);flex:none}.live-dot.closed{background:#a33a3a;box-shadow:0 0 0 5px rgba(163,58,58,.12)}.live-activity.active{border-color:#c6922e;background:linear-gradient(135deg,#fff8e3,#fffdf9)}.live-next-card{border:1px solid rgba(90,44,111,.16);cursor:pointer;text-align:left}.live-next-card.special{background:linear-gradient(135deg,#fff5d8,#fbf0ff);border-color:#d3a23a;box-shadow:0 10px 30px rgba(155,105,20,.15)}
@media(max-width:760px){.live-temple-strip{grid-template-columns:1fr 1fr;margin:-10px 10px 18px;padding:0;gap:8px}.live-next-card{grid-column:1/-1}.live-status-main,.live-activity,.live-next-card{min-height:70px;border-radius:16px;padding:11px 12px}.live-status-main strong,.live-activity strong,.live-next-card strong{font-size:14px}}

/* v17 – live event pop-up card */
body.live-popup-open{overflow:hidden}.live-popup-shell{position:fixed;inset:0;z-index:9999;display:none;align-items:flex-end;justify-content:center}.live-popup-shell.show{display:flex}.live-popup-backdrop{position:absolute;inset:0;background:rgba(33,18,38,.52);backdrop-filter:blur(5px);animation:liveFade .18s ease-out}.live-popup-card{position:relative;width:min(640px,calc(100% - 24px));margin:0 12px 16px;background:linear-gradient(180deg,#fffaf0,#fffdf9);border:1px solid rgba(167,113,31,.28);border-radius:30px;box-shadow:0 26px 80px rgba(38,16,45,.32);overflow:hidden;animation:liveRise .28s cubic-bezier(.2,.85,.3,1);max-height:min(88vh,760px);overflow-y:auto}.live-popup-x{position:absolute;z-index:3;right:14px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#4a2159;font-size:26px;line-height:1;box-shadow:0 5px 18px rgba(0,0,0,.12);cursor:pointer}.live-popup-kicker{position:absolute;left:18px;top:18px;z-index:2;padding:8px 12px;border-radius:999px;background:#4b205d;color:#fff;font-size:11px;font-weight:900;letter-spacing:.1em}.live-popup-media{height:220px;background:radial-gradient(circle at 50% 30%,#fff9d9,#ead1a4);display:grid;place-items:center;overflow:hidden}.live-popup-media img{width:100%;height:100%;object-fit:cover}.live-popup-media>span{position:absolute;font-size:46px;color:#d7a33a;text-shadow:0 3px 12px rgba(0,0,0,.18)}.live-popup-symbol{width:94px;height:94px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#5d2b70;font-size:44px;box-shadow:0 12px 35px rgba(78,36,91,.15)}.live-popup-symbol.open{color:#24784a;box-shadow:0 0 0 12px rgba(36,120,74,.09)}.live-popup-symbol.closed{color:#a13e43;box-shadow:0 0 0 12px rgba(161,62,67,.09)}.live-popup-symbol.gold{color:#a67416}.live-popup-copy{padding:24px}.live-popup-copy h2{margin:0;color:#3e174f;font-size:clamp(24px,5vw,34px);line-height:1.1}.live-popup-copy>p{margin:10px 0 0;color:#705f68;font-size:15px;line-height:1.55}.live-popup-meta{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}.live-popup-meta span{padding:7px 10px;border-radius:999px;background:#f4e9d7;color:#65445e;font-size:12px;font-weight:800}.live-popup-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.live-popup-actions button{min-height:48px}.live-popup-actions .primary-button{grid-column:1/-1}@keyframes liveRise{from{transform:translateY(36px);opacity:0}to{transform:none;opacity:1}}@keyframes liveFade{from{opacity:0}to{opacity:1}}@media(min-width:761px){.live-popup-shell{align-items:center}.live-popup-card{margin:24px}.live-popup-media{height:270px}}@media(max-width:520px){.live-popup-card{width:100%;margin:0;border-radius:28px 28px 0 0;max-height:92vh}.live-popup-media{height:190px}.live-popup-copy{padding:20px 18px 24px}.live-popup-actions{grid-template-columns:1fr}.live-popup-actions .primary-button{grid-column:auto}}@media(prefers-reduced-motion:reduce){.live-popup-card,.live-popup-backdrop{animation:none}}

/* v18 live center */
.live-since{display:block;margin-top:3px;opacity:.72;font-size:.72rem;font-weight:700}.live-reopen-btn{position:relative;border:1px solid rgba(111,73,20,.22);background:#fff9ec;color:#5d2672;border-radius:999px;padding:8px 12px;font-weight:900;white-space:nowrap}.live-reopen-btn:hover{transform:translateY(-1px)}.live-reopen-btn.has-live:after{content:"";position:absolute;top:-2px;right:-2px;width:10px;height:10px;border-radius:50%;background:#c0392b;box-shadow:0 0 0 2px #fff9ec;animation:liveDotPulse 1.6s ease-in-out infinite}
@keyframes liveDotPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.4);opacity:.5}}

/* v19 · live programme & countdown */
.live-countdown{display:inline-flex;align-items:center;align-self:flex-start;margin-top:4px;padding:5px 9px;border-radius:999px;background:rgba(92,44,118,.12);color:#5b2c76;font-size:12px;font-weight:900;letter-spacing:.02em}
.today-program{margin-top:22px}.today-program-date{font-size:13px;font-weight:800;color:#765d7f}.today-program-list{display:grid;gap:9px}.today-program-item{width:100%;border:1px solid rgba(104,69,121,.14);background:#fffaf2;border-radius:16px;padding:10px 12px;display:grid;grid-template-columns:66px 1fr auto;gap:10px;align-items:center;text-align:left;color:inherit;cursor:pointer}.today-program-item:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(73,36,94,.08)}.today-program-item.live{border-color:#7d3d91;background:linear-gradient(135deg,#fff8e8,#f5e9fa)}.today-program-item.soon{border-color:#c49b46}.today-program-item.special{box-shadow:inset 4px 0 #c49b46}.today-time{font-weight:900;color:#5b2c76}.today-copy{display:grid;gap:2px}.today-copy b{font-size:14px}.today-copy small{color:#7d6a82}.today-arrow{font-size:24px;color:#8a6d92}.today-empty{padding:14px;border-radius:14px;background:#fffaf2;color:#7b6b76}
@media(max-width:640px){.today-program-item{grid-template-columns:56px 1fr auto;padding:10px}.today-copy b{font-size:13px}.live-countdown{font-size:11px}}

/* v20 live history */
.live-history-list{display:grid;gap:10px}.live-history-item{width:100%;display:grid;grid-template-columns:12px 1fr auto;gap:12px;align-items:center;border:1px solid rgba(91,48,121,.12);background:rgba(255,255,255,.72);border-radius:16px;padding:12px 14px;text-align:left;color:inherit}.live-history-item b{display:block}.live-history-item small{display:block;opacity:.68;margin-top:2px}.live-history-item time{font-size:.75rem;opacity:.58}.live-history-dot{width:10px;height:10px;border-radius:50%;background:#8a7d91;box-shadow:0 0 0 5px rgba(138,125,145,.10)}.live-history-dot.pooja{background:#6f3b8f}.live-history-dot.abishekam{background:#c58a2d}.admin-live-history{display:grid;gap:8px}.admin-live-history-row{display:grid;grid-template-columns:12px 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid rgba(91,48,121,.12);border-radius:14px;background:#fff}.admin-live-history-row b,.admin-live-history-row small{display:block}.admin-live-history-row small{opacity:.65;margin-top:2px}.admin-live-history-row time{font-size:.8rem;opacity:.6}.history-status{width:10px;height:10px;border-radius:50%;background:#4f9d6e}.history-status.pooja{background:#6f3b8f}.history-status.abishekam{background:#c58a2d}.history-status.closed{background:#9a4c4c}
@media(max-width:640px){.live-history-item{grid-template-columns:10px 1fr}.live-history-item time{grid-column:2}.admin-live-history-row{grid-template-columns:10px 1fr}.admin-live-history-row time{grid-column:2}}

/* FINAL VISUAL CORRECTION — approved Pooja card reference, 11 Sep 2026 */
@media (min-width: 821px){
  :root{--nav:92px}
  body{background:#fbf7ee}
  .site-shell{max-width:1440px;background:#fbf7ee;box-shadow:0 0 60px rgba(77,49,35,.06)}
  .hero{height:218px;border-radius:0;box-shadow:none;border-bottom:1px solid rgba(187,145,65,.32);background:#f7ead8}
  .hero-image{object-position:center 48%;filter:saturate(.92) brightness(1.03)}
  .hero-overlay{background:linear-gradient(90deg,rgba(255,250,238,.95) 0%,rgba(255,250,238,.78) 42%,rgba(255,250,238,.12) 68%,rgba(255,247,230,.15) 100%)}
  .hero-content{padding:14px 46px 16px;justify-content:center}
  .brand-block{gap:22px;align-items:center;max-width:850px}
  .brand-seal.brand-logo{width:150px;height:144px;border-radius:50%;object-fit:cover;background:#fff;border:0;box-shadow:0 5px 16px rgba(67,36,47,.12)}
  .brand-ta{font-size:38px;letter-spacing:.005em;line-height:1.08}
  .brand-en{font-size:23px;letter-spacing:.07em;margin-top:5px}
  .brand-motto{font-size:11px;margin-top:8px;text-align:center;letter-spacing:.18em}
  .hero-tools{right:30px;top:25px}
  .lang-switch{min-width:168px;background:#fffaf0;box-shadow:0 4px 12px rgba(70,39,46,.11)}
  .icon-button{display:none}
  .hero-message{position:absolute;left:310px;bottom:16px;max-width:390px;text-align:center}
  .hero-message strong{font-size:16px}.hero-message span{display:none}

  /* Live functionality remains, but the normal home page matches the approved visual. */
  .live-temple-strip{display:none}
  main{padding:0 28px 18px}
  #home>.section-head{margin:0 -28px 0;padding:18px 34px 10px;align-items:center;background:#fffaf2;border-bottom:1px solid rgba(188,148,78,.16)}
  #home>.section-head>div{display:flex;align-items:center;gap:14px}
  #home>.section-head .eyebrow{display:none}
  #home>.section-head h2{margin:0;font-size:30px;white-space:nowrap}
  #home>.section-head h2:before{content:'❧';display:inline-grid;place-items:center;width:44px;height:44px;margin-right:10px;color:#c89c2f;font-size:37px;vertical-align:middle;transform:rotate(-15deg)}
  #home>.section-head h2:after{content:'  Upcoming Poojas';font-size:20px;font-weight:800;color:#4b1768;margin-left:12px;vertical-align:middle}
  #home>.section-head .text-button{background:linear-gradient(135deg,#5d1b78,#722690);color:#fff;border-radius:999px;padding:11px 20px;box-shadow:0 7px 18px rgba(74,23,104,.18)}

  .pooja-carousel-wrap{margin:0 -10px}
  .pooja-carousel{gap:16px;padding:8px 10px 14px;scroll-padding-inline:10px}
  .featured-card{flex:0 0 calc((100% - 64px)/5);min-width:0;border-radius:18px;border:1px solid rgba(192,155,86,.32);box-shadow:0 7px 18px rgba(73,47,38,.10);background:#fffdf9;scroll-snap-align:start}
  .featured-card.special{outline:0;border-color:#d4a43a;box-shadow:0 8px 22px rgba(164,111,23,.17)}
  .featured-visual{height:218px;background:#ead4a7}
  .featured-visual img{object-position:center center}
  .card-badges{inset:9px 9px auto 9px;justify-content:flex-start}
  .badge{font-size:11px;padding:6px 10px;color:#fff;background:#6c2a88;border:0;box-shadow:0 4px 12px rgba(42,20,47,.17)}
  .badge.special{order:-1;background:linear-gradient(135deg,#f4c441,#ffd96e);color:#6a4309}
  .featured-body{grid-template-columns:62px 1fr;gap:10px;padding:11px 10px 12px;min-height:204px}
  .date-tile{border-radius:11px;padding:8px 4px;border-color:#eadcc1;background:#fffdf9}
  .date-tile strong{font-size:26px}.date-tile span{font-size:11px}.date-tile small{font-size:10px}
  .featured-info h3{font-size:15px;line-height:1.28;margin:0;color:#401851;font-weight:900}
  .featured-info .en{font-size:13px;margin-top:2px;color:#49284e;font-weight:700}
  .meta-list{font-size:11px;gap:6px;margin-top:9px}.meta-list span{gap:5px}
  .status-line{margin-top:10px;display:block}.status-line .state{display:none}.status-line .state:last-child{display:block;text-align:center;width:100%;padding:6px 8px;font-size:11px}
  .state.reserved{background:#762e91;color:#fff}.state.free{background:#bce8fa;color:#12699d}
  .status-line .state.upcoming:first-child:last-child{background:#90e08e;color:#154a25}
  .reserve-btn{display:none}
  .carousel-arrow{top:36%;width:48px;height:48px;background:#fff;color:#5a216f;border:1px solid rgba(94,45,113,.12);box-shadow:0 6px 16px rgba(40,21,47,.17);font-size:32px}
  .carousel-arrow.left{left:-22px}.carousel-arrow.right{right:-22px}
  .carousel-dots{margin:5px 0 18px;gap:8px}.carousel-dots button{width:10px;height:10px}.carousel-dots button.active{width:10px;background:#5d1e7a}

  .home-pooja-filters{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:0 0 12px}
  .home-filter{min-height:68px;border:1px solid rgba(110,75,69,.12);border-radius:999px;background:#fffdf8;color:#49204f;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 18px;box-shadow:0 5px 14px rgba(60,36,42,.07);text-align:left}
  .home-filter .filter-icon{font-size:27px;color:#5c1b79}.home-filter b,.home-filter small{display:block}.home-filter b{font-size:13px}.home-filter small{font-size:11px;margin-top:2px;color:#6f5b69}
  .home-filter.active{background:linear-gradient(135deg,#5b1c78,#762c92);color:#fff;border-color:transparent}.home-filter.active .filter-icon,.home-filter.active small{color:#fff}

  #home .today-program,#home .live-history-panel{margin-top:18px}
  #home .quick-grid{display:none}
  .donation-banner{margin-top:18px}

  .bottom-nav{height:var(--nav);background:rgba(255,249,236,.98);color:#33252d;border-top:2px solid #caa44e;box-shadow:0 -5px 18px rgba(64,39,34,.10);backdrop-filter:blur(12px)}
  .bottom-nav:before{display:none}
  .nav{max-width:none;color:#33252d;opacity:1;border-right:1px solid rgba(116,89,67,.12);gap:2px}
  .nav:last-child{border-right:0}.nav span{font-size:26px;color:#2f2a24}.nav b{font-size:11px;font-weight:700;line-height:1.2}
  .nav.active{background:linear-gradient(135deg,#f8df94,#efc866);color:#3d1450;border-radius:22px 22px 0 0}.nav.active span{color:#4d1765}
}

@media (max-width: 820px){
  .brand-seal.brand-logo{object-fit:cover;padding:0;background:#fff}
  .home-pooja-filters{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:none}.home-pooja-filters::-webkit-scrollbar{display:none}
  .home-filter{flex:0 0 auto;min-height:52px;border:1px solid rgba(110,75,69,.14);border-radius:999px;background:#fffaf2;color:#4b1768;padding:8px 13px;display:flex;align-items:center;gap:8px}.home-filter .filter-icon{font-size:20px}.home-filter b,.home-filter small{display:block}.home-filter b{font-size:11px}.home-filter small{font-size:9px;color:#7f6c76}.home-filter.active{background:#5d1c78;color:#fff}.home-filter.active small{color:#fff}
  .featured-card{border-radius:22px}.featured-visual{height:210px}
  .bottom-nav{background:#fff8e9;border-top:1px solid #d8b15a}.nav{color:#3d302c}.nav.active{background:linear-gradient(180deg,#f5d77f,#f0c864);color:#43175b}
}

/* v21: all 169 Poojas are image-backed individual cards */
#poojaList{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(290px,1fr));
  gap:18px;
  align-items:stretch;
}
.pooja-list-card.pooja-image-card{
  display:block;
  overflow:hidden;
  padding:0;
  border:1px solid rgba(185,139,48,.26);
  border-radius:24px;
  background:#fffaf0;
  box-shadow:0 10px 24px rgba(63,29,77,.08);
  min-width:0;
}
.pooja-image-card .pooja-list-visual{position:relative;aspect-ratio:16/10;background:#efe2c7;overflow:hidden}
.pooja-image-card .pooja-list-visual img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease}
.pooja-image-card:hover .pooja-list-visual img{transform:scale(1.025)}
.pooja-list-overlay-badges{position:absolute;left:12px;right:12px;top:12px;display:flex;gap:7px;justify-content:space-between;align-items:flex-start;pointer-events:none}
.pooja-list-overlay-badges .small-tag{backdrop-filter:blur(8px);background:rgba(255,248,231,.92);box-shadow:0 3px 12px rgba(0,0,0,.1)}
.pooja-list-overlay-badges .small-tag.special{background:linear-gradient(135deg,#f7d36a,#fff0ad);color:#5b3510}
.pooja-image-card .pooja-list-content{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:14px;align-items:start}
.pooja-image-card .date-tile{grid-row:1 / span 2;margin:0}
.pooja-image-card .pooja-list-copy{min-width:0}
.pooja-image-card .pooja-list-copy h3{margin:.1rem 0 .25rem;font-size:1.03rem;line-height:1.35;color:#42165f}
.pooja-image-card .pooja-list-copy p{margin:.12rem 0;line-height:1.35}
.pooja-image-card .pooja-list-person{font-size:.88rem;color:#675d6c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pooja-image-card .small-tags{margin-top:9px;display:flex;gap:6px;flex-wrap:wrap}
.pooja-image-card .list-actions{grid-column:2;margin-top:4px}
.pooja-image-card .reserve{width:100%}
@media(max-width:720px){
 #poojaList{grid-template-columns:1fr;gap:14px}
 .pooja-list-card.pooja-image-card{border-radius:20px}
 .pooja-image-card .pooja-list-visual{aspect-ratio:16/9}
}

/* v43: Smartphone date readability — lifecycle badge no longer covers image date */
.lifecycle-mobile{display:none}
@media(max-width:720px){
  .pooja-image-card .pooja-list-overlay-badges{display:none}
  .pooja-image-card .lifecycle-mobile{display:inline-flex}
  .pooja-image-card .small-tags{align-items:center}
}

/* v44: official temple contact data */
.temple-contact{flex:1;min-width:0}
.contact-org{font-weight:800;color:#604761;margin-top:-4px}
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.contact-block{display:flex;flex-direction:column;gap:5px;background:#fffdf7;border:1px solid #ead9b9;border-radius:16px;padding:14px;line-height:1.45}
.contact-block strong{color:var(--purple);margin-bottom:3px}
.contact-block address{font-style:normal}
.contact-block a{color:var(--purple);font-weight:750;text-decoration:none;overflow-wrap:anywhere}
.contact-block a:hover{text-decoration:underline}
.contact-action{display:inline-flex;align-self:flex-start;margin-top:5px;border:1px solid #c9ad78;border-radius:12px;padding:8px 12px;background:#fff8e7}
@media(max-width:720px){.contact-grid{grid-template-columns:1fr}.about-card{gap:14px}.about-card>#enablePush{width:100%}}

/* v45: user-supplied real Limburg Murugan Temple imagery */
.temple-photo-gallery{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.temple-photo-gallery figure{margin:0;overflow:hidden;border-radius:16px;border:1px solid #ead9b9;background:#fff}
.temple-photo-gallery img{display:block;width:100%;height:180px;object-fit:cover}
.temple-photo-gallery .temple-photo-feature{grid-column:span 2}
.temple-photo-gallery .temple-photo-feature img{height:240px}
@media(max-width:720px){
  .temple-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .temple-photo-gallery img{height:140px}
  .temple-photo-gallery .temple-photo-feature{grid-column:1/-1}
  .temple-photo-gallery .temple-photo-feature img{height:210px}
}

/* v46 official bank and registration data */
.bank-donation-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:18px;background:linear-gradient(135deg,#fff9e9,#fffdf8);border:1px solid #dcc18d;border-radius:22px;padding:20px;margin-bottom:18px;box-shadow:0 10px 24px rgba(71,43,78,.07)}
.bank-donation-card h2{margin:4px 0 6px;color:var(--purple)}
.bank-details{margin:0;display:grid;gap:8px}.bank-details div{display:grid;grid-template-columns:72px 1fr;gap:10px;padding:8px 10px;background:#fff;border:1px solid #eee0c5;border-radius:12px}.bank-details dt{font-weight:800;color:#6a5268}.bank-details dd{margin:0;font-weight:800;overflow-wrap:anywhere}
@media(max-width:720px){.bank-donation-card{grid-template-columns:1fr}.bank-details div{grid-template-columns:62px 1fr}}

/* v47: clean placement of official bank account and authentic temple media */
.bank-donation-card{align-items:start}
.bank-intro h3{margin:5px 0 7px;color:var(--purple);font-size:1.3rem}
.bank-intro>p{margin:.2rem 0}
.bank-note{max-width:46ch;color:#6a5b65;font-size:.94rem;line-height:1.5}
.bank-details div{align-items:center}
.bank-details dd{font-variant-numeric:tabular-nums;letter-spacing:.01em}
.real-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.real-gallery-grid figure{position:relative;margin:0;min-height:220px;overflow:hidden;border-radius:22px;border:1px solid #e5d4b6;background:#efe4d0;box-shadow:0 10px 26px rgba(62,35,68,.09)}
.real-gallery-grid .real-gallery-wide{grid-column:span 2}
.real-gallery-grid img{display:block;width:100%;height:100%;min-height:220px;object-fit:cover;transition:transform .3s ease}
.real-gallery-grid figure:hover img{transform:scale(1.018)}
.real-gallery-grid figcaption{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:7px 11px;border-radius:999px;background:rgba(255,250,239,.92);backdrop-filter:blur(8px);color:#43175b;font-weight:800;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.about-temple-photo{margin:16px 0 0;width:100%;overflow:hidden;border-radius:20px;border:1px solid #ead9b9;background:#efe4d0}
.about-temple-photo img{display:block;width:100%;height:300px;object-fit:cover}
@media(max-width:720px){
  .real-gallery-grid{grid-template-columns:1fr 1fr;gap:9px}
  .real-gallery-grid figure,.real-gallery-grid img{min-height:155px}
  .real-gallery-grid .real-gallery-wide{grid-column:1/-1}
  .real-gallery-grid .real-gallery-wide,.real-gallery-grid .real-gallery-wide img{min-height:210px}
  .real-gallery-grid figcaption{left:8px;bottom:8px;padding:5px 9px;font-size:.82rem}
  .about-temple-photo img{height:220px}
  .bank-intro h3{font-size:1.15rem}
}

/* v48 official 2026 service rates */
.official-rates-card{margin-bottom:18px}.rates-table-wrap{overflow-x:auto;border:1px solid #e4d2b1;border-radius:18px;background:#fffdf8}
.official-rates-table{width:100%;border-collapse:collapse;min-width:620px}.official-rates-table th,.official-rates-table td{padding:11px 12px;border-bottom:1px solid #eee1ca;text-align:left;vertical-align:top}.official-rates-table th{background:#fff6e4;color:var(--purple)}.official-rates-table td:last-child,.official-rates-table th:last-child{white-space:nowrap;font-weight:850;color:var(--purple)}

/* v49: public Gopuram donor names + monthly contribution check overview (no amounts) */
.supporter-section{margin:20px 0;padding:18px;border:1px solid #e5d3b1;border-radius:22px;background:#fffdf8;box-shadow:0 9px 24px rgba(63,38,67,.06)}
.supporter-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.supporter-head h3{margin:4px 0 5px;color:var(--purple);font-size:1.25rem}
.supporter-head p{margin:0;color:#6f606a;line-height:1.45}
.supporter-count{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:34px;padding:0 10px;border-radius:999px;background:#f2e5f8;color:var(--purple);font-weight:900}
.donor-name-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.donor-name-grid li{display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border:1px solid #eee0c7;border-radius:14px;background:#fff;min-width:0}
.donor-no{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#fff4d6;color:#69451a;font-weight:850;font-size:.78rem}
.donor-name{min-width:0;overflow-wrap:anywhere;line-height:1.35;font-weight:700}
.monthly-table-wrap{overflow:auto;max-width:100%;border:1px solid #eadcc4;border-radius:16px;background:#fff;overscroll-behavior-inline:contain}
.monthly-check-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.9rem}
.monthly-check-table th,.monthly-check-table td{height:42px;min-width:48px;padding:7px 8px;border-right:1px solid #eee3d0;border-bottom:1px solid #eee3d0;text-align:center;white-space:nowrap}
.monthly-check-table thead th{position:sticky;top:0;z-index:3;background:#fff5df;color:var(--purple);font-weight:900}
.monthly-check-table .member-col,.monthly-check-table tbody th{position:sticky;left:0;z-index:2;min-width:230px;max-width:230px;text-align:left;white-space:normal;background:#fffdf8;box-shadow:7px 0 10px -11px rgba(0,0,0,.45)}
.monthly-check-table thead .member-col{z-index:4;background:#fff0cf}
.month-paid span{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#eee0f6;color:#4d176a;font-weight:950;font-size:1rem}
.month-empty{background:#fff}
@media(max-width:900px){.donor-name-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
  .supporter-section{padding:13px;margin:14px 0;border-radius:18px}
  .supporter-head h3{font-size:1.08rem}
  .donor-name-grid{grid-template-columns:1fr}
  .monthly-check-table{font-size:.82rem}
  .monthly-check-table .member-col,.monthly-check-table tbody th{min-width:180px;max-width:180px}
  .monthly-check-table th,.monthly-check-table td{min-width:43px;height:40px;padding:6px}
}

/* v50: donation QR and official bank account together */
.donation-qr-panel{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:22px;align-items:center}
.donation-qr-copy h3{margin:4px 0 8px;color:var(--purple)}
.donation-qr-copy>p{color:var(--muted);max-width:58ch}
.qr-bank-details{display:grid;gap:8px;margin-top:14px}
.qr-bank-details>div{display:grid;grid-template-columns:115px minmax(0,1fr);gap:10px;align-items:center;padding:9px 11px;border:1px solid #ead9b9;border-radius:12px;background:#fffdf8}
.qr-bank-details span{font-size:.82rem;color:#756374;font-weight:800}
.qr-bank-details strong{color:var(--purple);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.donation-qr-image{display:flex;flex-direction:column;align-items:center;gap:8px}
.donation-qr-image img{display:block;width:210px;height:210px;object-fit:contain;padding:8px;background:#fff;border:1px solid #dfc78e;border-radius:18px;box-shadow:0 8px 22px rgba(51,20,68,.09)}
.donation-qr-image small{text-align:center;color:#6f6170;line-height:1.35}
@media(max-width:720px){
  .donation-qr-panel{grid-template-columns:1fr}
  .donation-qr-image{order:-1}
  .donation-qr-image img{width:190px;height:190px}
  .qr-bank-details>div{grid-template-columns:86px minmax(0,1fr)}
}

/* v51 clickable donation QR and bank-account chooser */
.donation-qr-button{border:0;background:transparent;padding:0;cursor:pointer;font:inherit;color:inherit}
.donation-qr-button:hover img,.donation-qr-button:focus-visible img{transform:translateY(-2px);box-shadow:0 12px 28px rgba(51,20,68,.15)}
.donation-qr-button:focus-visible{outline:3px solid rgba(93,34,120,.35);outline-offset:5px;border-radius:20px}
.donation-qr-image img{transition:transform .18s ease,box-shadow .18s ease}
.donation-pay-sheet[hidden]{display:none}
.donation-pay-sheet{position:fixed;inset:0;z-index:9999;display:grid;place-items:end center}
.donation-pay-backdrop{position:absolute;inset:0;background:rgba(30,12,35,.48);backdrop-filter:blur(4px)}
.donation-pay-dialog{position:relative;z-index:1;width:min(620px,100%);background:#fffaf0;border:1px solid #dec18a;border-radius:24px 24px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -18px 48px rgba(34,14,40,.22)}
.donation-pay-close{position:absolute;right:14px;top:12px;width:38px;height:38px;border-radius:50%;border:1px solid #ddcba8;background:#fff;cursor:pointer;font-size:1.5rem;color:var(--purple)}
.donation-pay-dialog h2{margin:5px 44px 4px 0;color:var(--purple)}
.donation-pay-name{font-weight:800;color:#5e4b5c}
.donation-pay-account{display:grid;gap:8px;margin:16px 0}
.donation-pay-account>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;padding:10px 12px;background:#fff;border:1px solid #ead9b9;border-radius:12px}
.donation-pay-account span{font-size:.8rem;font-weight:850;color:#7a6877}
.donation-pay-account strong{overflow-wrap:anywhere;color:var(--purple);font-variant-numeric:tabular-nums}
.donation-pay-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.donation-pay-actions .primary-button,.donation-pay-actions .secondary-button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;text-decoration:none;border-radius:14px}
.donation-pay-help{margin:12px 0 0;color:#6e616c;font-size:.88rem;line-height:1.45}
body.donation-pay-open{overflow:hidden}
@media(min-width:760px){
  .donation-pay-sheet{place-items:center}
  .donation-pay-dialog{border-radius:24px}
}
@media(max-width:540px){
  .donation-pay-actions{grid-template-columns:1fr}
}

/* v52: visitor donation consistency – no public amounts for Gopuram, no preset donation buttons */
.project-card-clean{min-height:0}
.project-card-clean p{margin-bottom:0;color:#6f6170;line-height:1.5}

/* v53: monthly contribution mobile navigation */
.monthly-scroll-hint{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:4px 0 8px;
  font-size:.78rem;
  font-weight:800;
  color:#765d72;
}
.monthly-table-wrap{
  overflow-x:auto !important;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:#b78ac7 #f3e8f5;
  scroll-snap-type:x proximity;
}
.monthly-table-wrap::-webkit-scrollbar{height:8px}
.monthly-table-wrap::-webkit-scrollbar-track{background:#f3e8f5;border-radius:10px}
.monthly-table-wrap::-webkit-scrollbar-thumb{background:#b78ac7;border-radius:10px}
.monthly-check-table .month-head,
.monthly-check-table td{
  scroll-snap-align:start;
}
.monthly-check-table .current-month{
  background:#f2e3ff !important;
  box-shadow:inset 2px 0 0 #7c2aa8,inset -2px 0 0 #7c2aa8;
}
.monthly-check-table thead .current-month{
  color:#64168c;
  font-weight:950;
}
@media(max-width:720px){
  .monthly-scroll-hint{display:flex}
  .monthly-table-wrap{
    margin-left:-4px;
    margin-right:-4px;
    padding-bottom:6px;
  }
  .monthly-check-table{
    min-width:max-content;
  }
  .monthly-check-table .member-col,
  .monthly-check-table tbody th{
    min-width:138px;
    max-width:138px;
    width:138px;
    padding-left:8px;
    padding-right:8px;
    font-size:.79rem;
    line-height:1.2;
  }
  .monthly-check-table th,
  .monthly-check-table td{
    min-width:54px;
    width:54px;
    height:42px;
    padding:6px 5px;
  }
}

/* v54: visitor person/family Pooja filter */
.person-filter-row{display:grid;grid-template-columns:auto minmax(220px,1fr);align-items:center;gap:8px 12px;margin-top:10px}
.person-filter-row>label{font-size:.78rem;font-weight:900;color:#6f5470}
.person-filter-control{display:flex;gap:8px;min-width:0}
#poojaPersonFilter{min-width:0;flex:1;border:1px solid #dbc8a7;background:#fffdf8;color:#3f233f;border-radius:12px;padding:10px 34px 10px 11px;font:inherit;font-weight:750}
.person-filter-clear{border:1px solid #d8c3a0;background:#fff7e8;color:var(--purple);border-radius:12px;padding:8px 12px;font-weight:850;cursor:pointer}
.active-person-filter{grid-column:2;padding:7px 10px;border-radius:10px;background:#f3e7f8;color:#552064;font-size:.82rem;overflow-wrap:anywhere}
.active-person-filter span{opacity:.72}
.person-link{display:block;width:fit-content;max-width:100%;padding:0;border:0;background:transparent;text-align:left;color:#6d2a86;font:inherit;font-weight:850;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer;overflow-wrap:anywhere}
.person-link:hover,.person-link:focus-visible{color:#3f0d58;text-decoration-style:solid}
.person-link:disabled{color:inherit;text-decoration:none;cursor:default;opacity:.75}
@media(max-width:720px){
 .person-filter-row{grid-template-columns:1fr;gap:6px;margin-top:9px}
 .active-person-filter{grid-column:1}
 .person-filter-control{width:100%}
 #poojaPersonFilter{width:100%;font-size:.9rem}
 .person-filter-clear{flex:0 0 auto}
}

/* v56 – compact Pooja cards, complete image visible */
.pooja-card{min-height:0!important}
.pooja-card .pooja-card-image,.pooja-card .event-image,.pooja-card .card-image{
  height:170px!important;min-height:170px!important;max-height:170px!important;background:#f7eddd;
}
.pooja-card .pooja-card-image img,.pooja-card .event-image img,.pooja-card .card-image img,.pooja-card>img{
  width:100%!important;height:170px!important;object-fit:contain!important;object-position:center!important;background:#f7eddd;
}
.pooja-card .pooja-card-body,.pooja-card .event-body,.pooja-card .card-body{
  padding-top:10px!important;padding-bottom:11px!important;
}
@media(max-width:720px){
  .pooja-card .pooja-card-image,.pooja-card .event-image,.pooja-card .card-image{
    height:145px!important;min-height:145px!important;max-height:145px!important;
  }
  .pooja-card .pooja-card-image img,.pooja-card .event-image img,.pooja-card .card-image img,.pooja-card>img{
    height:145px!important;object-fit:contain!important;
  }
  .pooja-card .pooja-card-body,.pooja-card .event-body,.pooja-card .card-body{padding:8px 10px 9px!important}
  .pooja-card h3{margin-top:1px!important;margin-bottom:3px!important;line-height:1.14!important}
  .pooja-card p{margin-top:2px!important;margin-bottom:2px!important}
  .pooja-card .chips,.pooja-card .status-row{margin-top:6px!important}
}


/* v57 – ultra compact smartphone Pooja carousel.
   Thumbnail shows the COMPLETE portrait image; detail overlay remains large. */
@media(max-width:720px){
  .pooja-carousel{
    gap:10px;
    padding:6px 7vw 10px;
  }
  .featured-card{
    flex-basis:78vw !important;
    border-radius:20px !important;
  }
  .featured-visual{
    height:118px !important;
    min-height:118px !important;
    max-height:118px !important;
    background:#f5e9d7 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
  .featured-visual img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center center !important;
    background:#f5e9d7 !important;
  }
  .card-badges{
    inset:6px 6px auto 6px !important;
  }
  .badge{
    padding:4px 7px !important;
    font-size:9px !important;
  }
  .featured-body{
    grid-template-columns:48px 1fr !important;
    gap:8px !important;
    padding:8px 9px 9px !important;
  }
  .date-tile{
    border-radius:11px !important;
    padding:5px 3px !important;
  }
  .date-tile strong{
    font-size:20px !important;
  }
  .date-tile span{
    font-size:8px !important;
  }
  .date-tile small{
    font-size:8px !important;
  }
  .featured-info h3{
    font-size:16px !important;
    line-height:1.15 !important;
    margin:0 !important;
  }
  .featured-info .en{
    font-size:12px !important;
    line-height:1.2 !important;
    margin-top:2px !important;
  }
  .meta-list{
    gap:3px !important;
    margin-top:6px !important;
    font-size:10px !important;
    line-height:1.2 !important;
  }
  .status-line{
    gap:4px !important;
    margin-top:6px !important;
  }
  .state{
    padding:4px 7px !important;
    font-size:9px !important;
  }
  .reserve-btn{
    margin-top:6px !important;
    padding:7px 9px !important;
    font-size:10px !important;
  }
  .carousel-arrow{
    width:38px !important;
    height:38px !important;
    font-size:24px !important;
  }
  .carousel-dots{
    gap:6px !important;
    margin:2px 0 12px !important;
  }
  .carousel-dots button{
    width:7px !important;
    height:7px !important;
  }
  .carousel-dots button.active{
    width:26px !important;
  }
}
@media(max-width:430px){
  .featured-card{
    flex-basis:82vw !important;
  }
  .featured-visual{
    height:108px !important;
    min-height:108px !important;
    max-height:108px !important;
  }
}

/* v58 – smartphone split card: image left, information right; no divider/frame */
@media(max-width:720px){
  .featured-card{
    display:grid!important;
    grid-template-columns:44% 56%!important;
    grid-template-rows:auto!important;
    flex-basis:90vw!important;
    min-height:210px!important;
    overflow:hidden!important;
  }
  .featured-visual{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:100%!important;
    min-height:210px!important;
    max-height:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#f5e9d7!important;
    border:0!important;
    box-shadow:none!important;
  }
  .featured-visual img{
    width:100%!important;
    height:100%!important;
    max-height:210px!important;
    object-fit:contain!important;
    object-position:center!important;
    background:#f5e9d7!important;
    border:0!important;
  }
  .featured-body{
    grid-column:2!important;
    grid-row:1!important;
    display:block!important;
    padding:10px 10px 9px!important;
    min-width:0!important;
    border:0!important;
  }
  .date-tile{
    display:inline-flex!important;
    align-items:baseline!important;
    gap:4px!important;
    width:auto!important;
    min-width:0!important;
    margin:0 0 5px!important;
    padding:3px 6px!important;
  }
  .date-tile strong{font-size:18px!important}
  .date-tile span,.date-tile small{font-size:8px!important}
  .featured-info h3{
    font-size:14px!important;
    line-height:1.14!important;
    margin:0 0 3px!important;
  }
  .featured-info .en{
    font-size:10.5px!important;
    line-height:1.2!important;
    margin:0 0 5px!important;
  }
  .meta-list{
    font-size:9px!important;
    line-height:1.18!important;
    gap:2px!important;
    margin-top:4px!important;
  }
  .status-line{margin-top:5px!important;gap:3px!important}
  .state{font-size:8px!important;padding:3px 5px!important}
  .card-badges{top:6px!important;left:6px!important;right:auto!important}
  .badge{font-size:8px!important;padding:3px 5px!important}
  .reserve-btn{font-size:9px!important;padding:5px 6px!important;margin-top:5px!important}
}
@media(max-width:430px){
  .featured-card{
    grid-template-columns:43% 57%!important;
    flex-basis:92vw!important;
    min-height:195px!important;
  }
  .featured-visual{min-height:195px!important}
  .featured-visual img{max-height:195px!important}
}

/* v62 Gopuram planning image rotation */
.gopuram-plan-visual{position:relative;overflow:hidden;border-radius:18px;min-height:270px;background:#eee1cc}
.gopuram-plan-slides{position:absolute;inset:0}
.gopuram-plan-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;background:#f5ead8;opacity:0;transition:opacity .65s ease}
.gopuram-plan-slide.active{opacity:1}
.gopuram-planning-label{position:absolute;left:12px;bottom:12px;z-index:2;background:rgba(255,250,241,.94);border-radius:12px;padding:7px 11px;box-shadow:0 3px 14px rgba(0,0,0,.12)}
.gopuram-planning-label strong,.gopuram-planning-label span{display:block;color:#c61d1d!important;font-weight:900;line-height:1.1}
.gopuram-planning-label strong{font-size:15px}
.gopuram-planning-label span{font-size:11px;margin-top:3px;letter-spacing:.04em}
@media(max-width:720px){.gopuram-plan-visual{min-height:220px}.gopuram-planning-label{left:9px;bottom:9px}}

/* v63 – official visitor header image */
.hero,.hero-banner,.home-hero{
  background-image:linear-gradient(to bottom,rgba(35,13,42,.08),rgba(35,13,42,.18)),url("assets/temple-real/temple-header-main.png")!important;
  background-size:cover!important;
  background-position:center center!important;
}
@media(max-width:720px){
  .hero,.hero-banner,.home-hero{
    background-position:center center!important;
  }
}

/* v64 – real header image + Gopuram card in Pooja-style split layout */
.hero-image{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}

/* Must override the older `.donation-banner img {190x115; object-fit:cover}` rule. */
.donation-banner .gopuram-plan-visual{
  width:190px!important;
  height:230px!important;
  min-height:230px!important;
  align-self:stretch!important;
}
.donation-banner .gopuram-plan-slides{
  position:absolute!important;
  inset:0!important;
}
.donation-banner img.gopuram-plan-slide{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:0!important;
  background:#f5ead8!important;
}
@media(max-width:720px){
  .donation-banner{
    grid-template-columns:43% 57%!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .donation-banner .gopuram-plan-visual{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:250px!important;
    min-height:250px!important;
  }
  .donation-banner .donation-banner-content{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    align-self:center!important;
  }
  .donation-banner>.primary-button{
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%!important;
  }
  .donation-banner img.gopuram-plan-slide{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
  }
  .gopuram-planning-label{
    left:7px!important;
    bottom:7px!important;
    padding:5px 7px!important;
  }
  .gopuram-planning-label strong{font-size:11px!important}
  .gopuram-planning-label span{font-size:8px!important}
}
@media(max-width:430px){
  .donation-banner .gopuram-plan-visual{
    height:225px!important;
    min-height:225px!important;
  }
  .donation-banner h3{font-size:18px!important;line-height:1.15!important}
  .donation-banner p{font-size:12px!important;line-height:1.25!important}
}

/* v65 – Pooja page image fit: center and show the complete devotional image */
.pooja-image-card .pooja-list-visual{
  aspect-ratio:auto!important;
  height:240px!important;
  min-height:240px!important;
  max-height:240px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#f4e8d3!important;
}
.pooja-image-card .pooja-list-visual img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:#f4e8d3!important;
}
@media(max-width:720px){
  .pooja-image-card .pooja-list-visual{
    height:210px!important;
    min-height:210px!important;
    max-height:210px!important;
  }
}
@media(max-width:430px){
  .pooja-image-card .pooja-list-visual{
    height:190px!important;
    min-height:190px!important;
    max-height:190px!important;
  }
}

/* v66 – Gopuram supporter finance note */
.donor-finance-note{
  margin-top:6px!important;
  color:#6d4d63!important;
  font-size:.84rem!important;
  line-height:1.38!important;
}

/* v68 – strengthen the supplied header panorama, especially on the left.
   Keep enough contrast behind Tamil/English header text. */
.hero-image{
  filter:saturate(1.06) contrast(1.05) brightness(.98)!important;
}
.hero-overlay{
  background:linear-gradient(
    90deg,
    rgba(255,249,235,.72) 0%,
    rgba(255,249,235,.58) 34%,
    rgba(255,249,235,.18) 62%,
    rgba(56,21,68,.12) 100%
  )!important;
}
@media(max-width:520px){
  .hero-overlay{
    background:linear-gradient(
      90deg,
      rgba(255,249,235,.76) 0%,
      rgba(255,249,235,.60) 38%,
      rgba(255,249,235,.16) 68%,
      rgba(56,21,68,.08) 100%
    )!important;
  }
}

/* v69 – official LMT logo in header */
.brand-logo,
.temple-logo,
.logo,
.header-logo img,
.brand img:first-child{
  object-fit:contain!important;
  object-position:center!important;
}
@media(max-width:720px){
  .brand-logo,
  .temple-logo,
  .header-logo img,
  .brand img:first-child{
    object-fit:contain!important;
  }
}


/* v70 – approved global contrast + very fine gold/beige borders */
:root{
  --lmt-fine-border:#d8b36a;
  --lmt-fine-border-soft:#ead7ad;
  --lmt-card-bg:#fffaf1;
  --lmt-card-bg-strong:#fffdf8;
  --lmt-text-purple:#4d0f73;
}

/* Main cards and content surfaces */
.panel,
.status-card,
.next-card,
.today-card,
.project-card,
.official-rates-card,
.monthly-card,
.gopuram-supporters-card,
.contact-card,
.about-card,
.gallery-card,
.pooja-image-card,
.featured-card,
.donation-banner,
.qr-bank-details>div,
.donation-pay-dialog,
.quick-card,
.action-card,
.info-card{
  border:1px solid var(--lmt-fine-border-soft)!important;
  background:var(--lmt-card-bg)!important;
  box-shadow:0 4px 14px rgba(82,42,20,.055)!important;
}

/* Slightly stronger definition for interactive cards */
.featured-card,
.pooja-image-card,
.donation-banner,
.status-card,
.next-card{
  border-color:var(--lmt-fine-border)!important;
}

/* Buttons/chips: fine outline, not thick */
.primary-button,
.secondary-button,
.reserve-btn,
.state,
.badge,
.filter-chip,
.quick-action,
.amount-row button,
.lang-switch,
.notify-button,
.carousel-arrow{
  border-width:1px!important;
}

/* Section and table definition */
.monthly-table-wrap,
.rates-table-wrap,
.official-rates-table th,
.official-rates-table td{
  border-color:#e3ca98!important;
}
.monthly-check-table th,
.monthly-check-table td{
  border-color:#ead7ad!important;
}

/* Navigation: fine separation line */
.bottom-nav,
.bottom-navigation,
.mobile-nav{
  border-top:1px solid #d7a93e!important;
  box-shadow:0 -3px 12px rgba(66,35,16,.06)!important;
}

/* Global text contrast */
body{
  color:#3b2235!important;
}
h1,h2,h3,h4,
.section-title,
.featured-info h3,
.project-card h3,
.monthly-card h3{
  color:var(--lmt-text-purple)!important;
}
p,.meta-list,.muted,.small-note{
  color:#654e60;
}

/* Keep cream page atmosphere while improving separation */
.page,
main{
  background-color:#fff7e9;
}

/* Preserve devotional images without changing their mapping */
img{
  image-rendering:auto;
}


/* v75 – desktop About/Contact layout repair
   Mobile layout remains unchanged. */
@media (min-width:721px){
  #about .about-card{
    display:grid!important;
    grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr)!important;
    gap:22px!important;
    align-items:start!important;
    width:100%!important;
  }
  #about .temple-contact{
    width:100%!important;
    min-width:0!important;
  }
  #about .contact-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%!important;
  }
  #about .contact-block{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  #about .contact-block address,
  #about .contact-block a,
  #about .contact-block span{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  #about .about-temple-photo{
    width:100%!important;
    margin:0!important;
    align-self:stretch!important;
  }
  #about .about-temple-photo img{
    width:100%!important;
    height:100%!important;
    min-height:300px!important;
    max-height:430px!important;
    object-fit:cover!important;
  }
  #about .about-card>#enablePush{
    grid-column:1/-1!important;
    width:auto!important;
    justify-self:start!important;
  }
}
@media (min-width:721px) and (max-width:1050px){
  #about .about-card{
    grid-template-columns:1fr!important;
  }
  #about .about-temple-photo img{
    height:300px!important;
  }
}


/* v76 – desktop responsive hardening.
   Prevents narrow/flex children from collapsing content on desktop.
   Mobile rules below 721px are intentionally untouched. */
@media (min-width:721px){
  main, .page, .view, .section, section{
    min-width:0;
  }
  .content, .section-inner, .panel, .card, .about-card,
  .pooja-card, .donation-card, .contact-block{
    box-sizing:border-box;
  }
  #about, #about .about-card, #about .temple-contact,
  #about .contact-grid{
    min-width:0!important;
    max-width:100%!important;
  }
  #about .temple-contact{
    display:block!important;
  }
  #about .contact-grid>*{
    min-width:0!important;
  }
  #about .contact-block{
    padding:16px 18px!important;
  }
  #about .contact-block p,
  #about .contact-block address{
    margin-left:0!important;
    margin-right:0!important;
  }
  #about .contact-block a{
    overflow-wrap:anywhere!important;
  }

  /* Wide desktop: keep the application centered and readable. */
  .app-shell, .page-shell, main{
    margin-left:auto;
    margin-right:auto;
  }
}
@media (min-width:1200px){
  #about .about-card{
    grid-template-columns:minmax(520px,1.25fr) minmax(360px,.75fr)!important;
  }
  #about .contact-grid{
    grid-template-columns:repeat(2,minmax(240px,1fr))!important;
  }
}


/* v77 – desktop visitor-page polish.
   Smartphone rendering remains untouched. */
@media (min-width:821px){
  /* Keep the desktop bottom navigation aligned with the site content
     instead of stretching buttons edge-to-edge on very wide screens. */
  .bottom-nav{
    padding-left:max(0px,calc((100vw - 1180px)/2))!important;
    padding-right:max(0px,calc((100vw - 1180px)/2))!important;
  }
  .bottom-nav .nav{
    min-width:0!important;
    max-width:196.67px!important;
  }

  /* About page: balanced desktop proportions and no accidental stretching. */
  #about .panel.about-card{
    align-items:start!important;
    min-height:0!important;
  }
  #about .temple-contact h3{
    margin-top:0!important;
  }
  #about .contact-grid{
    align-items:stretch!important;
  }
  #about .contact-block{
    min-height:150px!important;
    justify-content:flex-start!important;
  }
  #about .about-temple-photo{
    margin:0!important;
    min-height:0!important;
  }
  #about .about-temple-photo img{
    display:block!important;
    min-height:340px!important;
    height:100%!important;
    max-height:420px!important;
  }

  /* Form fields should use the full available desktop panel width. */
  #about #feedbackForm{
    max-width:820px!important;
  }
  #about #feedbackForm input,
  #about #feedbackForm textarea{
    width:100%!important;
    box-sizing:border-box!important;
  }
}

/* Large desktop spacing guard. */
@media (min-width:1400px){
  .site-shell{
    max-width:1180px!important;
  }
}


/* v78 – desktop layout hardening across all visitor sections.
   Keeps the mobile layout unchanged. */
@media (min-width: 821px) {
  html, body {
    overflow-x: hidden;
  }

  main,
  .site-shell,
  .app-shell,
  .page-shell,
  .view,
  .section,
  section,
  .panel,
  .card {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Prevent long Tamil/English content, email addresses and URLs
     from forcing cards or grids wider/narrower than intended. */
  .panel *,
  .card *,
  .pooja-card *,
  .contact-block *,
  .donation-card * {
    min-width: 0;
  }

  p, li, address, .muted, .subtitle, .meta,
  .contact-block, .pooja-card, .donation-card {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Stable desktop card grids */
  .pooja-grid,
  .donation-grid,
  .festival-grid,
  .announcement-grid {
    width: 100%;
    min-width: 0;
  }

  .pooja-card,
  .donation-card,
  .festival-card,
  .announcement-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  /* Images must never enlarge a card beyond its grid column. */
  .pooja-card img,
  .donation-card img,
  .festival-card img,
  .announcement-card img,
  #about img {
    max-width: 100% !important;
  }

  /* Forms stay inside their cards on desktop. */
  input, select, textarea, button {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Reserve room for the fixed bottom navigation so the final content
     is not visually hidden behind it on desktop. */
  main,
  .main-content,
  .view.active {
    padding-bottom: 112px;
  }
}

/* Very wide desktop: preserve readable line lengths and centered content. */
@media (min-width: 1500px) {
  .site-shell,
  .app-shell,
  .page-shell,
  main {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* v79 – desktop interaction and accessibility hardening.
   No mobile layout changes. */
@media (min-width: 821px) {
  /* Desktop navigation: stable click targets and clear active/focus state. */
  .bottom-nav .nav {
    position: relative;
    cursor: pointer;
    outline: none;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
  }

  .bottom-nav .nav:hover {
    transform: translateY(-2px);
  }

  .bottom-nav .nav:focus-visible {
    outline: 3px solid rgba(130, 86, 20, .45) !important;
    outline-offset: -4px;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
  }

  .bottom-nav .nav.active::before {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    top: 0;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: currentColor;
    opacity: .75;
  }

  /* Consistent desktop focus indication for interactive controls. */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid rgba(130, 86, 20, .38);
    outline-offset: 2px;
  }

  /* Cards feel interactive where they already contain actions, without
     changing the existing structure or smartphone appearance. */
  .pooja-card,
  .donation-card,
  .festival-card,
  .announcement-card,
  #about .contact-block {
    transition: box-shadow .16s ease, transform .16s ease;
  }

  .pooja-card:hover,
  .donation-card:hover,
  .festival-card:hover,
  .announcement-card:hover,
  #about .contact-block:hover {
    transform: translateY(-1px);
  }

  /* Keep long button labels readable and vertically centered. */
  button,
  .bottom-nav .nav {
    line-height: 1.25;
  }

  .bottom-nav .nav b {
    display: block;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* Respect reduced-motion preference on desktop and mobile. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* v80 – desktop readability hardening.
   Focus: consistent line length, Tamil/English wrapping and text density.
   Mobile layout remains unchanged. */
@media (min-width: 821px) {
  /* Improve readability of long informational text without changing content. */
  #about p,
  #about address,
  .panel p,
  .card p,
  .announcement-card p,
  .festival-card p,
  .donation-card p {
    line-height: 1.55;
  }

  /* Avoid over-wide text lines on large screens. */
  #about .temple-contact > p,
  #about .temple-contact > div > p,
  .announcement-card p,
  .festival-card p {
    max-width: 72ch;
  }

  /* Tamil headings and labels need a little extra vertical breathing room. */
  .ta,
  [lang="ta"],
  .title-ta,
  .pooja-title-ta {
    line-height: 1.5 !important;
  }

  /* English secondary text remains compact and visually subordinate. */
  .en,
  [lang="en"],
  .title-en,
  .pooja-title-en,
  .muted,
  .subtitle {
    line-height: 1.4;
  }

  /* Prevent single-word/character columns when a grid becomes narrow. */
  .contact-block,
  .pooja-card,
  .donation-card,
  .festival-card,
  .announcement-card {
    text-wrap: pretty;
  }

  /* Desktop tables/lists: keep labels aligned and avoid cramped rows. */
  table {
    width: 100%;
    border-collapse: collapse;
  }

  th,
  td {
    vertical-align: top;
  }

  /* Long account/contact values may wrap, but not character-by-character. */
  .contact-block a,
  .contact-block address,
  .bank-details,
  .iban,
  .bic {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* Improve visual separation between dense content blocks. */
  #about .contact-block > * + *,
  .donation-card > * + *,
  .announcement-card > * + * {
    margin-top: .45rem;
  }
}


/* v81 – DOM/layout integrity hardening for desktop.
   No new feature; mobile layout remains unchanged. */
@media (min-width: 821px) {
  /* Hidden pages must not reserve space in desktop layouts. */
  .page[hidden],
  .view[hidden],
  section[hidden],
  [aria-hidden="true"].page,
  [aria-hidden="true"].view {
    display: none !important;
  }

  /* Prevent accidental overflow from dynamically injected content. */
  .page,
  .view,
  .panel,
  .card,
  .modal,
  .dialog,
  [role="dialog"] {
    contain: layout style;
  }

  /* Dialogs/overlays stay inside the viewport on desktop. */
  .modal,
  .dialog,
  [role="dialog"] {
    max-width: min(92vw, 960px) !important;
    max-height: 88vh;
    overflow: auto;
    box-sizing: border-box;
  }

  /* Preserve clickability and stacking for fixed navigation. */
  .bottom-nav {
    isolation: isolate;
    z-index: 50;
  }

  /* Keep overlay elements above page cards but below browser UI. */
  .modal-backdrop,
  .overlay,
  .dialog-backdrop {
    z-index: 80;
  }

  .modal,
  .dialog,
  [role="dialog"] {
    z-index: 90;
  }
}



/* v85 – assignment-aware person filter */
.person-match-count{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:3px 8px;
  border:1px solid rgba(166,118,35,.38);
  border-radius:999px;
  font-size:.82em;
  font-weight:700;
  white-space:nowrap;
}

/* v86 – requested Pooja navigation order 1 → 3 → 2 → 4 */
.pooja-category-navigation .filter{white-space:normal;line-height:1.25;text-align:center;min-height:42px}
@media(max-width:720px){
  .pooja-category-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .pooja-category-navigation .filter{width:100%;padding:9px 10px;font-size:.82rem}
}


/* v88 – restore approved v69 home-screen visual on smartphone */
@media (max-width:820px){
  body{
    background:#fff8e8;
  }

  .hero{
    height:430px;
    border-radius:0 0 26px 26px;
    border:1px solid rgba(185,139,49,.55);
    box-shadow:0 5px 20px rgba(82,53,24,.10);
  }
  .hero-image{
    object-fit:cover;
    object-position:center center;
  }
  .hero-overlay{
    background:linear-gradient(
      180deg,
      rgba(255,250,237,.93) 0%,
      rgba(255,250,237,.74) 24%,
      rgba(255,250,237,.08) 47%,
      rgba(66,27,68,.04) 100%
    );
  }
  .hero-content{
    padding:18px 18px 22px;
  }
  .brand-block{
    align-items:flex-start;
    gap:12px;
    max-width:78%;
  }
  .brand-seal.brand-logo{
    width:92px;
    height:92px;
    flex:0 0 92px;
    object-fit:contain;
    background:#fff9e9;
    border:2px solid rgba(197,153,62,.38);
    border-radius:50%;
    box-shadow:0 4px 13px rgba(68,42,36,.13);
  }
  .brand-ta{
    font-size:28px;
    line-height:1.03;
    color:#481064;
    font-weight:950;
  }
  .brand-en{
    margin-top:4px;
    font-size:15px;
    letter-spacing:.03em;
    line-height:1.08;
  }
  .brand-motto{
    margin-top:6px;
    font-size:10px;
    letter-spacing:.13em;
  }
  .hero-tools{
    top:16px;
    right:15px;
    gap:8px;
  }
  .lang-switch{
    padding:10px 14px;
    min-width:auto;
    border:1px solid rgba(184,139,45,.55);
    background:#fffaf0;
    color:#4a1764;
  }
  .icon-button{
    display:inline-grid;
    place-items:center;
    width:48px;
    height:48px;
    padding:0;
    background:#fffaf0;
    color:#d19b19;
    border:1px solid rgba(184,139,45,.55);
  }
  .hero-message{
    position:absolute;
    left:28px;
    right:28px;
    bottom:18px;
    max-width:none;
    text-align:left;
  }
  .hero-message strong{
    font-size:24px;
    line-height:1.25;
    color:#fff;
    text-shadow:0 2px 8px rgba(25,10,30,.68);
  }
  .hero-message span{
    display:block;
    margin-top:8px;
    font-size:22px;
    font-weight:900;
    color:#fff;
    text-shadow:0 2px 8px rgba(25,10,30,.68);
  }

  /* Status block directly below hero, as in the approved visual */
  .live-temple-strip{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:-2px 12px 14px;
    padding:0;
    max-width:none;
  }
  .live-status-main,
  .live-activity,
  .live-next-card{
    background:rgba(255,252,244,.96);
    border:1px solid rgba(190,145,52,.55);
    border-radius:20px;
    box-shadow:0 4px 12px rgba(80,50,30,.07);
  }
  .live-status-main,
  .live-activity{
    min-height:92px;
    padding:14px 15px;
  }
  .live-next-card{
    grid-column:1/-1;
    min-height:102px;
    padding:14px 16px;
    text-align:left;
  }
  .live-status-main small,
  .live-activity small,
  .live-next-card small{
    font-size:12px;
    color:#54335f;
    letter-spacing:0;
    text-transform:none;
  }
  .live-status-main strong,
  .live-activity strong,
  .live-next-card strong{
    color:#4a1665;
    font-size:20px;
    line-height:1.22;
  }
  .live-dot{
    width:18px;
    height:18px;
    box-shadow:0 0 0 5px rgba(38,131,75,.10);
  }
  .live-reopen-btn{
    grid-column:1/-1;
    justify-self:start;
    min-width:49%;
    border-radius:18px;
    padding:11px 18px;
    background:#fffaf0;
    border:1px solid rgba(190,145,52,.55);
    color:#4b1768;
  }

  main{
    padding:0 12px 92px;
  }
  #home>.section-head{
    margin:0;
    padding:16px 8px 8px;
    background:transparent;
    border:0;
    align-items:end;
  }
  #home>.section-head>div{
    display:block;
  }
  #home>.section-head .eyebrow{
    display:block;
    color:#4a3550;
    font-size:13px;
    letter-spacing:0;
    text-transform:none;
    margin-bottom:3px;
  }
  #home>.section-head h2{
    margin:0;
    font-size:38px;
    line-height:1.03;
    color:#4b0f69;
    white-space:normal;
  }
  #home>.section-head h2:before,
  #home>.section-head h2:after{
    content:none;
  }
  #home>.section-head .text-button{
    padding:0 2px 8px;
    background:transparent;
    box-shadow:none;
    color:#55166f;
    font-size:19px;
    font-weight:900;
  }

  .pooja-carousel-wrap{
    margin:0;
  }
  .pooja-carousel{
    gap:12px;
    padding:8px 14px 12px;
    scroll-padding-inline:14px;
  }
  .featured-card{
    flex:0 0 calc(100vw - 52px);
    display:grid;
    grid-template-columns:42% 58%;
    min-height:320px;
    border-radius:22px;
    border:1px solid rgba(187,141,49,.52);
    background:#fffaf0;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(70,43,29,.09);
  }
  .featured-visual{
    height:100%;
    min-height:320px;
  }
  .featured-visual img{
    height:100%;
    object-fit:cover;
  }
  .card-badges{
    inset:12px auto auto 10px;
    display:block;
  }
  .card-badges .badge{
    margin-bottom:6px;
  }
  .featured-body{
    display:block;
    padding:15px 14px;
    min-width:0;
  }
  .date-tile{
    display:inline-grid;
    grid-template-columns:auto auto auto;
    gap:5px;
    align-items:end;
    width:auto;
    height:auto;
    padding:8px 10px;
    border-radius:12px;
    margin-bottom:8px;
  }
  .date-tile strong{
    font-size:30px;
  }
  .date-tile span,
  .date-tile small{
    align-self:center;
    font-size:10px;
  }
  .featured-info h3{
    font-size:20px;
    line-height:1.22;
  }
  .featured-info .en{
    font-size:14px;
    line-height:1.2;
  }
  .meta-list{
    gap:5px;
    margin-top:10px;
    font-size:12px;
  }
  .status-line{
    margin-top:10px;
  }
  .carousel-arrow{
    top:44%;
    width:50px;
    height:50px;
    background:#561373;
    color:#fff;
    border:3px solid #fff;
    box-shadow:0 4px 14px rgba(50,24,58,.22);
  }
  .carousel-arrow.left{left:2px}
  .carousel-arrow.right{right:2px}
  .carousel-dots{
    margin:4px 0 14px;
  }
  .carousel-dots button.active{
    width:30px;
    background:#7e5a18;
  }

  /* Approved three main home shortcuts from the reference */
  .home-pooja-filters{
    display:grid;
    grid-template-columns:1.15fr 1fr 1fr;
    gap:9px;
    padding:0 2px 12px;
    overflow:visible;
  }
  .home-filter{
    min-width:0;
    min-height:82px;
    border-radius:20px;
    padding:10px 9px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:7px;
  }
  .home-filter[data-home-filter="running"],
  .home-filter[data-home-filter="finished"]{
    display:none;
  }
  .home-filter .filter-icon{
    font-size:25px;
  }
  .home-filter b{
    font-size:13px;
    line-height:1.15;
  }
  .home-filter small{
    font-size:10px;
    line-height:1.15;
  }

  #home .today-program,
  #home .live-history-panel{
    margin-top:12px;
  }

  .bottom-nav{
    height:88px;
    border-radius:24px 24px 0 0;
    background:#fffaf0;
    border-top:1px solid rgba(184,138,43,.48);
    box-shadow:0 -5px 18px rgba(56,36,28,.09);
  }
  .nav{
    border-right:0;
  }
  .nav.active{
    border-radius:0;
    background:linear-gradient(180deg,#f9df80,#efc342);
  }
}


/* v89 – mobile home fidelity / overflow hardening.
   No new functions; keeps the approved v69-style home layout stable on narrow phones. */
@media (max-width:820px){
  .site-shell,
  .hero,
  .hero-content,
  .live-temple-strip,
  main,
  .page{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }

  .hero{
    overflow:hidden;
  }
  .brand-block,
  .brand-block>div{
    min-width:0;
  }
  .brand-ta,
  .brand-en,
  .brand-motto{
    overflow-wrap:anywhere;
  }

  .live-status-main,
  .live-activity,
  .live-next-card{
    min-width:0;
    overflow:hidden;
  }
  .live-status-main strong,
  .live-activity strong,
  .live-next-card strong,
  .live-next-card span{
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .featured-card,
  .featured-body,
  .featured-info,
  .meta-list{
    min-width:0;
  }
  .featured-info h3,
  .featured-info .en,
  .meta-list span{
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .home-pooja-filters{
    min-width:0;
  }
  .home-filter,
  .home-filter>span:last-child{
    min-width:0;
  }
  .home-filter b,
  .home-filter small{
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .bottom-nav{
    width:100%;
    left:0;
    right:0;
    padding-bottom:env(safe-area-inset-bottom);
    box-sizing:border-box;
  }
  .bottom-nav .nav{
    min-width:0;
    overflow:hidden;
  }
  .bottom-nav .nav b{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
    line-height:1.08;
  }
}

/* Narrow-phone tuning: prevent Tamil title and tools from colliding. */
@media (max-width:430px){
  .hero{
    height:420px;
  }
  .hero-content{
    padding:15px 13px 20px;
  }
  .brand-block{
    gap:9px;
    max-width:72%;
  }
  .brand-seal.brand-logo{
    width:72px;
    height:72px;
    flex-basis:72px;
  }
  .brand-ta{
    font-size:22px;
    line-height:1.04;
  }
  .brand-en{
    font-size:12px;
  }
  .brand-motto{
    font-size:8px;
  }
  .hero-tools{
    top:13px;
    right:10px;
  }
  .lang-switch{
    padding:8px 10px;
    font-size:13px;
  }
  .icon-button{
    width:43px;
    height:43px;
  }
  .hero-message{
    left:18px;
    right:18px;
  }
  .hero-message strong{
    font-size:20px;
  }
  .hero-message span{
    font-size:18px;
  }

  .live-temple-strip{
    margin-left:8px;
    margin-right:8px;
    gap:8px;
  }
  .live-status-main,
  .live-activity{
    padding:12px;
  }
  .live-status-main strong,
  .live-activity strong{
    font-size:17px;
  }
  .live-next-card strong{
    font-size:18px;
  }

  #home>.section-head h2{
    font-size:31px;
  }
  #home>.section-head .text-button{
    font-size:16px;
  }

  .featured-card{
    flex-basis:calc(100vw - 36px);
    grid-template-columns:40% 60%;
    min-height:292px;
  }
  .featured-visual{
    min-height:292px;
  }
  .featured-body{
    padding:12px 10px;
  }
  .featured-info h3{
    font-size:17px;
  }
  .date-tile strong{
    font-size:26px;
  }

  .home-pooja-filters{
    gap:7px;
  }
  .home-filter{
    min-height:76px;
    padding:8px 6px;
  }
  .home-filter .filter-icon{
    font-size:22px;
  }
  .home-filter b{
    font-size:11px;
  }
  .home-filter small{
    font-size:9px;
  }

  .bottom-nav{
    height:82px;
  }
  .bottom-nav .nav{
    padding:7px 2px 5px;
  }
  .bottom-nav .nav span{
    font-size:20px;
  }
  .bottom-nav .nav b{
    font-size:10px;
  }
}

/* Very narrow fallback. */
@media (max-width:350px){
  .brand-block{
    max-width:68%;
  }
  .brand-seal.brand-logo{
    width:62px;
    height:62px;
    flex-basis:62px;
  }
  .brand-ta{
    font-size:19px;
  }
  .featured-card{
    grid-template-columns:38% 62%;
  }
  .home-pooja-filters{
    grid-template-columns:1fr;
  }
  .home-filter{
    min-height:58px;
  }
}


/* v90 – compact mobile header: small contour + accent line */
@media (max-width:820px){
  .hero{
    height:118px !important;
    min-height:118px !important;
    border-radius:0 0 16px 16px !important;
    background:#fffaf0 !important;
    border:1px solid rgba(185,139,49,.62) !important;
    border-top:0 !important;
    box-shadow:0 3px 10px rgba(76,49,31,.06) !important;
    overflow:hidden !important;
  }
  .hero-image{
    opacity:0 !important;
    visibility:hidden !important;
  }
  .hero-overlay{
    background:#fffaf0 !important;
  }
  .hero::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:4px;
    background:linear-gradient(90deg,#5b176f 0 72%,#d2a43a 72% 100%);
    pointer-events:none;
  }
  .hero-content{
    position:relative !important;
    height:100% !important;
    min-height:0 !important;
    padding:10px 12px 12px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
  }
  .brand-block{
    max-width:calc(100% - 126px) !important;
    width:auto !important;
    display:flex !important;
    align-items:center !important;
    gap:9px !important;
  }
  .brand-seal.brand-logo{
    width:58px !important;
    height:58px !important;
    flex:0 0 58px !important;
    border:1px solid rgba(184,139,45,.55) !important;
    box-shadow:none !important;
  }
  .brand-ta{
    font-size:19px !important;
    line-height:1.02 !important;
    font-weight:900 !important;
    color:#4d1268 !important;
    max-height:2.15em;
    overflow:hidden;
  }
  .brand-en{
    font-size:10px !important;
    line-height:1.05 !important;
    margin-top:3px !important;
    letter-spacing:.02em !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .brand-motto{display:none !important;}
  .hero-tools{
    position:static !important;
    display:flex !important;
    gap:6px !important;
    align-items:center !important;
    flex:0 0 auto !important;
  }
  .lang-switch{
    min-width:0 !important;
    padding:7px 9px !important;
    font-size:12px !important;
    line-height:1 !important;
    border-radius:12px !important;
    background:#fffaf0 !important;
    border:1px solid rgba(184,139,45,.55) !important;
    color:#4b1767 !important;
    box-shadow:none !important;
  }
  .icon-button{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    border-radius:50% !important;
    box-shadow:none !important;
    background:#fffaf0 !important;
    border:1px solid rgba(184,139,45,.55) !important;
  }
  .hero-message{display:none !important;}
  .live-temple-strip{margin-top:10px !important;}
}

@media (max-width:430px){
  .hero{height:106px !important;min-height:106px !important;}
  .hero-content{padding:8px 9px 10px !important;}
  .brand-block{max-width:calc(100% - 112px) !important;gap:7px !important;}
  .brand-seal.brand-logo{width:50px !important;height:50px !important;flex-basis:50px !important;}
  .brand-ta{font-size:17px !important;}
  .brand-en{font-size:9px !important;}
  .lang-switch{padding:6px 7px !important;font-size:11px !important;}
  .icon-button{width:34px !important;height:34px !important;min-width:34px !important;}
}


/* v91 – compact header final polish
   Keep the header visually quiet: contour + colored line, minimal branding. */
@media (max-width:820px){
  .hero{
    height:94px !important;
    min-height:94px !important;
    border-radius:0 0 13px 13px !important;
    border:1px solid rgba(190,145,54,.58) !important;
    border-top:0 !important;
    box-shadow:none !important;
  }

  .hero::after{
    height:3px !important;
    background:linear-gradient(90deg,#5a176e 0 74%,#d1a13a 74% 100%) !important;
  }

  .hero-content{
    padding:7px 11px 9px !important;
    gap:8px !important;
  }

  .brand-block{
    max-width:calc(100% - 116px) !important;
    gap:7px !important;
  }

  .brand-seal.brand-logo{
    width:44px !important;
    height:44px !important;
    flex:0 0 44px !important;
    border-width:1px !important;
  }

  .brand-ta{
    font-size:16px !important;
    line-height:1.02 !important;
    max-height:2.1em !important;
  }

  .brand-en{
    font-size:8.5px !important;
    margin-top:2px !important;
  }

  .hero-tools{
    gap:5px !important;
  }

  .lang-switch{
    padding:5px 7px !important;
    font-size:10px !important;
    border-radius:10px !important;
  }

  .icon-button{
    width:31px !important;
    height:31px !important;
    min-width:31px !important;
    font-size:15px !important;
  }

  .live-temple-strip{
    margin-top:8px !important;
  }
}

@media (max-width:430px){
  .hero{
    height:86px !important;
    min-height:86px !important;
  }

  .hero-content{
    padding:6px 8px 8px !important;
  }

  .brand-block{
    max-width:calc(100% - 102px) !important;
    gap:6px !important;
  }

  .brand-seal.brand-logo{
    width:39px !important;
    height:39px !important;
    flex-basis:39px !important;
  }

  .brand-ta{
    font-size:14.5px !important;
  }

  .brand-en{
    font-size:7.5px !important;
  }

  .lang-switch{
    padding:5px 6px !important;
    font-size:9px !important;
  }

  .icon-button{
    width:29px !important;
    height:29px !important;
    min-width:29px !important;
  }
}

/* Prevent all legacy hero elements from re-expanding the compact header. */
@media (max-width:820px){
  .hero-image,
  .hero-message,
  .brand-motto{
    display:none !important;
  }
}

/* v105 voluntary member registration */
.member-register-sheet{max-width:720px}.member-register-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.member-register-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700}.member-register-grid input,.member-register-grid select{width:100%;box-sizing:border-box;border:1px solid #d9c18d;border-radius:12px;padding:12px;background:#fffdf7;color:#2f1738}.member-register-grid .member-wide{grid-column:1/-1}.member-consent{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #d9c18d;border-radius:12px;background:#fffaf0}.member-consent input{margin-top:3px}#memberRegisterMessage{margin-top:10px;font-weight:700}@media(max-width:620px){.member-register-grid{grid-template-columns:1fr}.member-register-grid .member-wide{grid-column:auto}}


/* v108 – fixed Pooja search, anchored above the bottom navigation. */
.fixed-pooja-search{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:calc(var(--nav) + 12px + env(safe-area-inset-bottom));z-index:38;display:flex;align-items:center;justify-content:flex-end;gap:8px;pointer-events:none}
.fixed-pooja-search>*{pointer-events:auto}
.fixed-pooja-search-button{width:50px;height:50px;border-radius:16px;border:2px solid #d39c17;background:#fff9ec;color:var(--purple);box-shadow:0 8px 24px rgba(58,31,36,.18);font-size:30px;font-weight:900;display:grid;place-items:center;padding:0}
.fixed-pooja-search-button:focus-visible,.fixed-pooja-search-panel input:focus-visible,.fixed-pooja-search-panel button:focus-visible{outline:3px solid rgba(75,23,104,.28);outline-offset:2px}
.fixed-pooja-search-panel{display:flex;align-items:center;gap:5px;width:min(330px,calc(100vw - 82px));padding:6px;background:#fff9ec;border:1px solid #d8b15a;border-radius:16px;box-shadow:0 10px 30px rgba(58,31,36,.20)}
.fixed-pooja-search-panel[hidden]{display:none!important}
.fixed-pooja-search-panel input{min-width:0;flex:1;border:0;background:transparent;color:var(--ink);padding:9px 8px;outline:none;font-size:14px}
.fixed-pooja-search-panel button{width:34px;height:34px;border:0;border-radius:10px;background:#f3e4c8;color:var(--purple);font-size:22px;line-height:1}
@media(max-width:820px){.fixed-pooja-search{right:12px;bottom:calc(80px + 10px + env(safe-area-inset-bottom))}.fixed-pooja-search-button{width:48px;height:48px;border-radius:14px}.fixed-pooja-search.open .fixed-pooja-search-button{display:none}.fixed-pooja-search-panel{width:min(310px,calc(100vw - 24px))}}
@media(min-width:821px){.fixed-pooja-search{right:max(22px,calc((100vw - 1180px)/2 + 22px))}}


/* v109 – fixed search suggestions + restored mobile banner image */
.fixed-search-input-wrap{position:relative;min-width:0;flex:1}
.fixed-search-input-wrap>input{width:100%}
.fixed-pooja-suggestions{position:absolute;right:0;bottom:calc(100% + 8px);width:min(360px,calc(100vw - 24px));max-height:300px;overflow:auto;background:#fffaf0;border:1px solid #d8b15a;border-radius:15px;box-shadow:0 12px 32px rgba(58,31,36,.24);padding:5px;z-index:3}
.fixed-pooja-suggestions[hidden]{display:none!important}
.fixed-pooja-suggestions button{display:block;width:100%;height:auto;text-align:left;padding:10px 11px;border:0;border-bottom:1px solid #ead8b6;border-radius:9px;background:transparent;color:var(--purple);font-size:14px}
.fixed-pooja-suggestions button:last-child{border-bottom:0}
.fixed-pooja-suggestions button:active,.fixed-pooja-suggestions button:hover{background:#f6ead3}
.fixed-pooja-suggestions strong,.fixed-pooja-suggestions small{display:block}
.fixed-pooja-suggestions small{margin-top:3px;color:#725f59;font-size:10px;line-height:1.3}
@media(max-width:820px){
  .hero{height:148px!important;min-height:148px!important;background:#f7ead8!important}
  .hero-image{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 48%!important;filter:saturate(1.03) contrast(1.02)!important}
  .hero-overlay{display:block!important;background:linear-gradient(90deg,rgba(255,250,238,.91) 0%,rgba(255,250,238,.70) 44%,rgba(255,250,238,.18) 72%,rgba(61,23,72,.10) 100%)!important}
  .hero-content{padding:12px 12px 14px!important;justify-content:center!important}
  .brand-block{max-width:calc(100% - 112px)!important}
  .brand-seal.brand-logo{width:48px!important;height:48px!important;flex-basis:48px!important}
  .brand-ta{font-size:17px!important;text-shadow:0 1px 0 rgba(255,255,255,.85)}
  .brand-en{font-size:8.5px!important;text-shadow:0 1px 0 rgba(255,255,255,.85)}
  .hero-tools{top:12px!important;right:10px!important}
}
@media(max-width:430px){
  .hero{height:138px!important;min-height:138px!important}
  .hero-content{padding:10px 8px 12px!important}
  .brand-seal.brand-logo{width:43px!important;height:43px!important;flex-basis:43px!important}
  .brand-ta{font-size:15px!important}
  .fixed-pooja-suggestions{width:calc(100vw - 24px)}
}

/* v110 – definitive smartphone header banner fix.
   Overrides the v90 compact-header hide rules while preserving the mobile controls. */
@media (max-width:820px){
  .hero{
    height:176px!important;
    min-height:176px!important;
    background:#f7ead8!important;
    border-radius:0 0 18px 18px!important;
  }
  .hero-image{
    display:block!important;
    opacity:1!important;
    visibility:visible!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center 50%!important;
    filter:saturate(1.05) contrast(1.04) brightness(.98)!important;
  }
  .hero-overlay{
    display:block!important;
    background:linear-gradient(90deg,rgba(255,250,238,.78) 0%,rgba(255,250,238,.54) 43%,rgba(255,250,238,.08) 72%,rgba(61,23,72,.08) 100%)!important;
  }
  .hero-content{
    position:absolute!important;
    inset:0!important;
    height:auto!important;
    padding:14px 12px 16px!important;
    justify-content:center!important;
  }
  .brand-block{max-width:calc(100% - 112px)!important}
  .hero-tools{top:12px!important;right:10px!important}
}
@media (max-width:430px){
  .hero{height:164px!important;min-height:164px!important}
  .hero-image{object-position:center 50%!important}
}

/* v111 – show the original smartphone header image without any white/transparent wash. */
@media (max-width:820px){
  .hero{background:transparent!important}
  .hero-image{filter:none!important;opacity:1!important;visibility:visible!important}
  .hero-overlay{display:none!important;background:none!important;opacity:0!important}
}

/* v112: live subscribable temple Pooja calendar */
.pooja-calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:14px 16px;border:1px solid #dfbd73;border-radius:18px;background:#fffaf0;color:#4b0b63}
.pooja-calendar-tools>div:first-child{display:flex;flex-direction:column;gap:3px}.pooja-calendar-tools small{color:#765c62;line-height:1.35}.pooja-calendar-actions{display:flex;gap:9px;flex-wrap:wrap}.pooja-calendar-actions button{margin:0;white-space:nowrap}
#poojaCalendarMessage{display:block;max-width:250px}
@media(max-width:720px){.pooja-calendar-tools{align-items:stretch;flex-direction:column}.pooja-calendar-actions{display:grid;grid-template-columns:1fr 1fr}.pooja-calendar-actions button{min-height:46px;padding:9px 10px;font-size:.86rem}#poojaCalendarMessage{max-width:none}}


/* v113: Pooja detail imagery must preserve the complete devotional subject/face. */
.detail-hero{height:auto;min-height:260px;max-height:none;background:#f2e5cf;display:flex;align-items:flex-start;justify-content:center}
.detail-hero img{width:100%;height:auto;max-height:52vh;object-fit:contain!important;object-position:center top!important;display:block;background:#f2e5cf}
@media(max-width:620px){.detail-hero{height:auto!important;min-height:0!important;max-height:none!important}.detail-hero img{max-height:44vh}}

/* v113: Donation page – no Live strip; direct Gopuram/monthly navigation. */
body.donation-page-active #liveTempleStrip{display:none!important}
.donation-jump-nav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 18px}
.donation-jump-nav button{min-height:54px;border:1px solid #d5ad58;border-radius:18px;background:#fff8e7;color:var(--purple);font-weight:900;font-size:15px;padding:10px 14px;cursor:pointer}
.donation-jump-nav button:hover{background:#fff0c9}
#gopuramDonors,#monthlyContributions{scroll-margin-top:18px}
@media(max-width:480px){.donation-jump-nav{gap:8px}.donation-jump-nav button{font-size:13px;padding:9px 8px}}

/* v115 About: temple history + current committee */
.about-history-panel,.about-committee-panel{border:1px solid #d9b45f;background:#fff9ec}
.about-history-panel h3,.about-committee-panel h3{color:#4f126c}
.about-history-panel h4,.about-committee-panel h4{margin:18px 0 8px;color:#351044}
.history-milestones{padding-left:22px;line-height:1.55}
.history-milestones li{margin:8px 0}
.history-milestones li::marker{color:#c98b18}
.committee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 18px}
.committee-grid article,.committee-members span{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid #d9b45f;border-radius:16px;background:#fff3d9}
.committee-grid strong{color:#5a176d}
.committee-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:820px){.committee-grid,.committee-members{grid-template-columns:1fr}.about-history-panel,.about-committee-panel{padding:16px}.history-milestones{padding-left:20px}}


/* v117 text-only monthly Pooja overview */
.pooja-month-overview{margin:0 0 16px;padding:14px;border:1px solid #dfbd78;border-radius:22px;background:#fffaf0}
.pooja-month-head{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px}
.pooja-month-head h3{margin:0;text-align:center;color:#4d126c;font-size:1.05rem}
.pooja-month-head button{width:40px;height:40px;border:1px solid #dfbd78;border-radius:50%;background:#fff4d9;color:#4d126c;font-size:1.45rem;cursor:pointer}
.pooja-month-hint{margin:8px 0 12px;color:#755b49;font-size:.88rem}
.pooja-month-list{display:grid;gap:7px}
.pooja-month-item{display:grid;grid-template-columns:58px minmax(0,1fr) auto 18px;align-items:center;gap:10px;width:100%;padding:9px 10px;border:1px solid #ead4a5;border-radius:14px;background:#fffdf8;color:#4d126c;text-align:left;cursor:pointer}
.pooja-month-item time{display:flex;align-items:baseline;gap:4px;color:#6a3b19}.pooja-month-item time strong{font-size:1.15rem}.pooja-month-item time span{font-size:.72rem;text-transform:uppercase}
.pooja-month-name{font-weight:800;overflow-wrap:anywhere}.pooja-month-status{font-size:.7rem;border-radius:999px;padding:4px 7px;background:#f4ead6;white-space:nowrap}.pooja-month-status.free{background:#e8f5e8;color:#236a3b}.pooja-month-status.pending{background:#fff0ca;color:#7b5710}.pooja-month-status.reserved{background:#f0e3ef;color:#6a235f}.pooja-month-arrow{font-size:1.3rem}.pooja-month-empty{padding:16px;text-align:center;color:#755b49}
@media(max-width:620px){.pooja-month-overview{padding:12px}.pooja-month-item{grid-template-columns:52px minmax(0,1fr) 18px}.pooja-month-status{display:none}.pooja-month-hint{font-size:.82rem}}

/* v120: simplified complete Pooja calendar action */
.pooja-calendar-add{display:flex;justify-content:flex-end;margin:0 0 14px}.pooja-calendar-add button{margin:0;min-height:44px}@media(max-width:720px){.pooja-calendar-add{justify-content:stretch}.pooja-calendar-add button{width:100%}}
/* v121: compact header visitor counter + simplified review controls */
.hero-visitor-count{position:absolute;right:30px;bottom:18px;display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid rgba(183,139,52,.55);border-radius:999px;background:rgba(255,249,235,.9);color:#5a294f;box-shadow:0 5px 16px rgba(70,38,27,.10);font-size:11px;font-weight:800}.hero-visitor-count strong{font-size:13px}.hero-visitor-count small{font-size:9px;font-weight:800}.feedback-help{color:#6d5a50}.feedback-rating-choices,.feedback-topics{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.feedback-rating-choices button,.feedback-topics label{border:1px solid #dcc28e;background:#fffaf0;color:#54265c;border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer}.feedback-rating-choices button.active{background:#f3dfaa;border-color:#b88932;box-shadow:0 0 0 2px rgba(184,137,50,.12)}.feedback-topics label:has(input:checked){background:#f5e8c4;border-color:#b88932}.feedback-topics input{position:absolute;opacity:0;pointer-events:none}.feedback-consent{display:flex;gap:9px;align-items:flex-start;margin:12px 0;font-size:12px}.feedback-moderation{display:block;color:#806d63;margin:8px 0 14px;line-height:1.45}
@media(max-width:620px){.hero-visitor-count{right:14px;bottom:10px;padding:5px 8px}.hero-visitor-count small{display:none}.feedback-rating-choices button{flex:1 1 calc(50% - 8px);font-size:12px}.feedback-topics label{font-size:11px}}

.feedback-cooldown-status{display:block;margin-top:8px;color:#806d63;font-size:11px;line-height:1.4}.feedback-form .primary-button:disabled{opacity:.55;cursor:not-allowed}
