/* Self-hosted Noto Tamil fonts (SIL OFL 1.1, see assets/fonts/OFL.txt) */
@font-face { font-family: 'Noto Sans Tamil'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-sans-tamil-tamil-400-normal.woff2') format('woff2'); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: 'Noto Sans Tamil'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-sans-tamil-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Sans Tamil'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/noto-sans-tamil-tamil-600-normal.woff2') format('woff2'); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: 'Noto Sans Tamil'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/noto-sans-tamil-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Serif Tamil'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/noto-serif-tamil-tamil-600-normal.woff2') format('woff2'); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: 'Noto Serif Tamil'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/noto-serif-tamil-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Serif Tamil'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/noto-serif-tamil-tamil-700-normal.woff2') format('woff2'); unicode-range: U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC; }
@font-face { font-family: 'Noto Serif Tamil'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/noto-serif-tamil-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Sri Angala Parameswari Temple – public site styles
   Colours come from admin settings via CSS variables (--primary, --accent, --bg, --text). */

:root {
    --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 8%, var(--bg));
    --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--bg));
    --line: color-mix(in srgb, var(--primary) 14%, transparent);
    --muted: color-mix(in srgb, var(--text) 62%, var(--bg));
    --card: #fff;
    --wa: #1FA855;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(43, 26, 20, .06), 0 8px 24px -12px rgba(43, 26, 20, .18);
    --serif: "Noto Serif Tamil", "Latha", Georgia, serif;
    --sans: "Noto Sans Tamil", "Latha", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16.5px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    line-height: 1.85;
    color: var(--text);
    background: var(--bg);
    padding-bottom: 64px; /* quickbar on mobile */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.4; color: var(--primary); margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9em; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 600; font-size: .98rem; text-decoration: none; line-height: 1.3;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--primary-dark); color: #f4e6cf; font-size: .84rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar a { color: #f4e6cf; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; }
.status i, .status-pill i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: #e0a14a; vertical-align: middle; }
.status.is-open i, .status-pill.is-open i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }
@media (max-width: 600px) { .topbar-links { display: none; } .topbar { font-size: .78rem; } .topbar-in { min-height: 30px; } }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px -10px rgba(0, 0, 0, .55); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; transition: min-height .3s ease; }
.site-header .wrap, .topbar .wrap { max-width: 1320px; }
/* medium desktops: slightly tighter menu */
.nav-tight .mainnav a, .nav-tight .mainnav .sub-toggle { padding: 10px 8px; font-size: .9rem; }
html.nav-tight .mainnav > ul > li > a::after, html.nav-tight .mainnav > ul > li > .sub-toggle::after { left: 8px; right: 8px; }
.nav-tight .brand-logo { height: 46px; }
/* still too narrow (e.g. small laptops / tablets in landscape): logo row + menu row */
.nav-stack .header-in { flex-wrap: wrap; justify-content: center; gap: 0; padding-top: 8px; padding-bottom: 2px; }
.nav-stack .brand { width: 100%; justify-content: center; }
.nav-stack .mainnav { width: 100%; }
.nav-stack .mainnav > ul { justify-content: center; }
.site-header.scrolled .header-in { min-height: 62px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; flex: 0 1 auto; }
.brand-logo { display: block; height: 52px; width: auto; max-width: min(320px, calc(100vw - 96px)); object-fit: contain; object-position: left center; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 44px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 1.1rem; line-height: 1.35; color: #fff; }
.brand-text small { color: var(--accent-soft); font-size: .82rem; }
/* The uploaded logo already contains the name: keep the text for Google / screen readers only */
.brand.has-logo .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav-toggle { display: none; flex: 0 0 auto; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; width: 44px; height: 44px; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span:nth-child(1) { top: 14px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mainnav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.mainnav a, .mainnav .sub-toggle {
    position: relative; display: block; padding: 10px 12px; color: #fff; text-decoration: none; background: none; border: 0;
    font-size: .95rem; font-weight: 600; border-radius: 8px; white-space: nowrap; letter-spacing: .01em;
}
/* gold underline that grows on hover / active (desktop) */
html:not(.nav-compact) .mainnav > ul > li > a::after, html:not(.nav-compact) .mainnav > ul > li > .sub-toggle::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
html:not(.nav-compact) .mainnav > ul > li:hover > a::after, html:not(.nav-compact) .mainnav > ul > li:hover > .sub-toggle::after,
html:not(.nav-compact) .mainnav > ul > li.active > a::after, html:not(.nav-compact) .mainnav > ul > li.active > .sub-toggle::after { transform: scaleX(1); }
.mainnav li.active > a, .mainnav li.active > .sub-toggle { color: var(--accent-soft); }
.has-sub { position: relative; }
.caret { font-size: .7em; display: inline-block; transition: transform .2s ease; }
.has-sub.open .caret { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border-top: 3px solid var(--accent);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 5; }
.sub a { color: var(--text); font-weight: 500; }
.sub a:hover, .sub a.active { background: var(--primary-soft); color: var(--primary); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }

/* Compact (hamburger) menu – used on phones/tablets and whenever the menu does not fit */
.nav-compact .nav-toggle { display: block; }
.nav-compact .mainnav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, 110px); bottom: 0; z-index: 49;
    background: var(--primary); overflow-y: auto; padding: 8px 16px 110px;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
}
.nav-compact.nav-open .mainnav { transform: none; visibility: visible; }
.nav-compact.nav-open { overflow: hidden; }
.nav-compact .mainnav > ul { flex-direction: column; flex-wrap: nowrap; }
.nav-compact .mainnav a, .nav-compact .mainnav .sub-toggle { font-size: 1.05rem; padding: 14px 8px; width: 100%; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; display: flex; justify-content: space-between; align-items: center; }
.nav-compact .sub { position: static; box-shadow: none; background: rgba(0, 0, 0, .18); border: 0; border-radius: 0; padding: 0 0 0 14px; min-width: 0;
    opacity: 1; visibility: visible; transform: none; display: none; }
.nav-compact .sub a { color: #f4e6cf; }
.nav-compact .sub a:hover, .nav-compact .sub a.active { background: rgba(255, 255, 255, .1); color: var(--accent-soft); }
.nav-compact .has-sub:hover > .sub, .nav-compact .has-sub:focus-within > .sub { display: none; }
.nav-compact .has-sub.open > .sub { display: block; }
@media (max-width: 600px) {
    .header-in { min-height: 64px; gap: 12px; }
    .brand-logo { height: 40px; }
    .site-header.scrolled .header-in { min-height: 58px; }
    .site-header.scrolled .brand-logo { height: 36px; }
}

/* ---------- Announcement ---------- */
.announce { background: var(--accent-soft); color: var(--primary); overflow: hidden; border-bottom: 1px solid var(--line); font-weight: 500; }
.announce-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.announce-track span { padding: 8px 48px; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: #1b0606; overflow: hidden; }
.hero-track { position: relative; aspect-ratio: 16 / 7; max-height: min(620px, 72vh); width: 100%; }
@media (max-width: 700px) { .hero-track { aspect-ratio: 4 / 3; } }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(30, 5, 5, .72)); }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 9%; z-index: 2; text-align: center; padding: 0 16px; color: #fff; }
.hero-caption .hero-title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(1.35rem, 4vw, 2.6rem); line-height: 1.35; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero-caption p { color: var(--accent-soft); font-size: clamp(.98rem, 2vw, 1.25rem); margin: .25em 0 0; }
.hero-caption > * { opacity: 0; transform: translateY(14px); transition: opacity .8s ease .35s, transform .8s ease .35s; }
.hero-slide.is-active .hero-caption > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-caption > p { transition-delay: .55s; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 28px; line-height: 1; }
.hero-nav:hover { background: var(--primary); }
@media (max-width: 600px) { .hero-nav { width: 36px; height: 36px; font-size: 22px; } .hero-nav.prev { left: 8px; } .hero-nav.next { right: 8px; } .hero-caption { bottom: 13%; } }
.hero-nav.prev { left: 14px; } .hero-nav.next { right: 14px; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .5); }
.hero-dots button.is-active { background: var(--accent); width: 24px; border-radius: 6px; }

/* ---------- Info strip ---------- */
.infostrip { background: #fff; border-bottom: 1px solid var(--line); }
.infostrip-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.info-item { display: flex; gap: 12px; align-items: center; padding: 16px 12px; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); }
.info-item:last-child { border-right: 0; }
.info-item b { display: block; color: var(--primary); font-size: .98rem; line-height: 1.35; }
.info-item small { color: var(--muted); font-size: .84rem; }
.info-ico { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
a.info-item:hover { background: var(--primary-soft); }
.status-text.is-open { color: #15803d; }
@media (max-width: 700px) {
    .infostrip-in { grid-template-columns: 1fr; }
    .info-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 4px; }
}

/* ---------- Sections ---------- */
.block { padding: clamp(44px, 7vw, 88px) 0; }
.block.alt { background: var(--primary-soft); }
.sec-title { text-align: center; font-size: clamp(1.45rem, 3vw, 2.05rem); margin-bottom: .2em; }
.sec-title.left { text-align: left; }
.sec-title.light { color: #fff; }
.eyebrow { color: var(--accent); font-family: var(--serif); font-weight: 600; letter-spacing: .08em; margin: 0 0 .3em; }
.divider { display: flex; justify-content: center; margin: 6px 0 26px; }
.divider.left { justify-content: flex-start; }
.divider-art { display: block; width: 150px; height: 34px; background: var(--accent);
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.divider.light .divider-art { background: color-mix(in srgb, var(--accent) 65%, #fff); }
.divider-motif { color: var(--accent); font-size: 1.3rem; letter-spacing: .4em; }
.prose { font-size: 1.02rem; }
.prose.lead { font-size: 1.08rem; }
.prose p:last-child { margin-bottom: 0; }
.prose img { border-radius: 10px; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.center-img { margin: 0 auto 24px; }

.split { display: flex; align-items: center; gap: clamp(28px, 5vw, 72px); }
.split > * { min-width: 0; }
.split-body { flex: 1 1 0; }
.split-media { flex: 0 0 min(38%, 420px); max-width: 420px; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
    .split, .split.reverse { flex-direction: column; align-items: stretch; gap: 30px; }
    .split .split-media, .split.reverse .split-media { order: -1; flex: none; width: 100%; max-width: 250px; margin: 0 auto; }
    .split-body .sec-title.left, .split-body .eyebrow { text-align: center; }
    .split-body .divider.left { justify-content: center; }
    .split-body > .btn { display: flex; width: fit-content; margin: 0 auto; }
}
/* long joined Tamil words must never push the page sideways */
.prose, .quote, .sec-title, .page-head h1, .card, .event-card, .travel-card { overflow-wrap: break-word; word-break: normal; }
@supports (overflow-wrap: anywhere) { .prose, .quote { overflow-wrap: anywhere; } }

/* Temple-niche (arch) photo frame */
.arch-frame {
    position: relative; border-radius: 999px 999px 18px 18px; overflow: hidden;
    border: 6px solid #fff; outline: 2px solid var(--accent); outline-offset: 4px;
    box-shadow: var(--shadow); background: var(--accent-soft);
}
.arch-frame img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s ease; }
.arch-frame:hover img { transform: scale(1.04); }
.arch-frame.sm { border-width: 4px; outline-offset: 3px; }

/* Timings */
.timings-block {
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .06), transparent 40%),
        radial-gradient(circle at 80% 100%, rgba(255, 255, 255, .05), transparent 40%),
        var(--primary);
    color: #f4e6cf;
}
.timings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; margin: 0 auto 22px; }
.timing-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 22px 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.t-label { font-family: var(--serif); color: var(--accent); font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.t-range { color: #fff; font-size: 1.12rem; font-weight: 600; }
.t-to { font-size: .82rem; color: #e7cfb0; }
.status-pill { display: inline-flex; align-items: center; background: rgba(0, 0, 0, .25); padding: 8px 16px; border-radius: 999px; font-size: .92rem; margin: 0 0 10px; }
.muted-light { color: #e7cfb0; font-size: .9rem; }
@media (max-width: 480px) { .timings { grid-template-columns: 1fr; } }

/* Deities */
.deity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 200px)); justify-content: center; gap: 30px 22px; }
.deity { margin: 0; text-align: center; }
.deity figcaption { font-family: var(--serif); font-weight: 600; color: var(--primary); margin-top: 14px; font-size: 1.02rem; }
.deity p { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 480px) { .deity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }

/* Sthala quote */
.sthalam { background: var(--primary-dark); color: #f4e6cf; }
.quote { margin: 0; font-family: var(--serif); font-size: 1.04rem; line-height: 2.05; position: relative; padding-left: 22px; border-left: 3px solid var(--accent); }
@media (max-width: 600px) { .quote { font-size: 1rem; line-height: 1.95; padding-left: 14px; } }
.quote p { margin: 0; }

/* Booking CTA */
.cta-head { max-width: 760px; margin: 0 auto 30px; }
.pooja-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 30px; }
@media (max-width: 640px) {
    .pooja-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pooja-card { padding: 14px 12px; }
    .pooja-card b { font-size: .92rem; line-height: 1.45; }
    .pooja-card small { font-size: .78rem; }
    .pc-go { font-size: .82rem; }
}
.pooja-card { background: #fff; border-radius: var(--radius); padding: 20px 18px; text-decoration: none; color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pooja-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--text); }
.pooja-card b { color: var(--primary); font-family: var(--serif); line-height: 1.5; }
.pooja-card small { color: var(--muted); }
.pc-ico { color: var(--accent); }
.pc-go { margin-top: auto; padding-top: 8px; color: var(--primary); font-size: .9rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* Events */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 26px; }
.event-card { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.ev-date { flex: 0 0 76px; background: var(--primary); color: #fff; border-radius: 12px; text-align: center; padding: 10px 4px; display: flex; flex-direction: column; line-height: 1.3; }
.ev-date b { font-size: 1.7rem; font-family: var(--serif); }
.ev-date span { font-size: .8rem; color: var(--accent-soft); }
.ev-date small { font-size: .72rem; opacity: .85; }
.ev-body h3 { font-size: 1.08rem; margin-bottom: .2em; }

/* Travel */
.travel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-bottom: 30px; }
.travel-card { background: #fff; border-radius: var(--radius); padding: 22px 20px; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.travel-card h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.travel-card p { margin: 0; font-size: .96rem; }
.tc-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; margin: 0 0 22px; }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-wrap.tall iframe { height: 440px; }
.reach-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-bottom: 28px; align-items: start; }
.address-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; color: var(--primary); }
.address-card p { color: var(--text); margin: 0; }
@media (max-width: 800px) { .reach-top { grid-template-columns: 1fr; } }
.nearby { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.nearby li { display: flex; gap: 16px; align-items: center; background: #fff; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); }
.nearby b { display: block; color: var(--primary); }
.nearby small { color: var(--muted); }
.nb-dist { flex: 0 0 auto; background: var(--accent-soft); color: var(--primary); font-weight: 600; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.visit-tips { text-align: center; }

/* Donation */
.donate { display: flex; gap: 28px; align-items: center; text-align: left; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.donate .qr { width: 200px; border-radius: 10px; border: 1px solid var(--line); }
.upi-id { margin: 12px 0; }
.donate .btn-row { justify-content: flex-start; }
@media (max-width: 640px) { .donate { flex-direction: column; text-align: center; } .donate .btn-row { justify-content: center; } }

.advert { padding: 36px 0; border-top: 1px solid var(--line); }
.advert-img { margin: 0 auto 10px; max-height: 60px; width: auto; }
.advert h3 { font-size: 1.05rem; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 40px 0 34px; border-bottom: 3px solid var(--accent); }
.page-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .04); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0; }
.page-head p { color: var(--accent-soft); margin: 4px 0 0; }
.crumbs { font-size: .85rem; color: #e7cfb0; margin-bottom: 6px; }
.crumbs a { color: #e7cfb0; text-decoration: none; }
.crumbs span { margin: 0 6px; }
.page-body { font-size: 1.05rem; line-height: 2; }
.page-body::after { content: ""; display: table; clear: both; }
.page-body figure { margin: 6px 0 18px; }
.page-body .float-right { float: right; width: min(42%, 340px); margin-left: 28px; }
.page-body .float-left { float: left; width: min(42%, 340px); margin-right: 28px; }
.page-body figure img { border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .page-body .float-right, .page-body .float-left { float: none; width: 100%; margin: 0 0 18px; } }
.page-body .closing, .closing { text-align: center; color: var(--primary); margin-top: 1.4em; clear: both; }
.layout-verses .verse { background: #fff; border-radius: var(--radius); padding: 24px 26px; margin-bottom: 22px; border-left: 4px solid var(--accent); box-shadow: var(--shadow); font-family: var(--serif); font-size: 1.08rem; line-height: 2.1; }
.layout-list ol.potri, ol.potri { list-style: none; counter-reset: p; padding: 0; columns: 2; column-gap: 32px; }
ol.potri li { counter-increment: p; break-inside: avoid; padding: 8px 0 8px 48px; position: relative; border-bottom: 1px dashed var(--line); font-family: var(--serif); }
ol.potri li::before { content: counter(p); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .82rem; display: grid; place-items: center; font-family: var(--sans); }
@media (max-width: 700px) { .layout-list ol.potri, ol.potri { columns: 1; } }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); clear: both; }

/* Gallery */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.album { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; }
.album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.album:hover img { transform: scale(1.04); }
.album span { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(transparent, rgba(30, 5, 5, .85)); color: #fff; display: flex; flex-direction: column; }
.album b { font-family: var(--serif); font-size: 1.15rem; }
.photo-grid { columns: 3 240px; column-gap: 14px; }
.photo { display: block; margin-bottom: 14px; border-radius: 10px; overflow: hidden; break-inside: avoid; box-shadow: var(--shadow); }
.photo img { width: 100%; transition: transform .4s; }
.photo:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 3, 3, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #e7cfb0; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; } .lb-next { right: 12px; }

/* Forms & cards */
.card { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form h2 { font-size: 1.35rem; }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--primary); margin-bottom: 14px; }
.form label em { color: #b42318; font-style: normal; }
.form input, .form select, .form textarea {
    display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-weight: 400; font-size: 1rem;
    color: var(--text); background: #fffdf9; border: 1.5px solid color-mix(in srgb, var(--primary) 20%, #ddd); border-radius: 10px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.form .has-err input, .form .has-err select { border-color: #b42318; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.terms { margin-top: 16px; color: var(--muted); }
.terms ul { padding-left: 18px; margin: 0; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; }
.alert ul { margin: 0; padding-left: 18px; }
.alert.ok { background: #e7f6ec; color: #14532d; border: 1px solid #a7dfb9; }
.alert.err { background: #fdecea; color: #7a1a12; border: 1px solid #f3b8b1; }

.booking-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } .booking-layout form { order: -1; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 60px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; color: var(--primary); }
.steps span { font-size: .9rem; color: var(--muted); }
.side-title { font-size: 1.15rem; }
.pooja-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pooja-list li { border-bottom: 1px dashed var(--line); padding-bottom: 10px; display: flex; flex-direction: column; }
.pooja-list b { color: var(--primary); }
.pooja-list span { font-size: .92rem; }
.pooja-list small { color: var(--muted); }

.thanks { text-align: center; }
.thanks-ico { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; }
.ref { font-size: 1.2rem; color: var(--primary); letter-spacing: .03em; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; max-width: 380px; margin: 16px auto; background: var(--primary-soft); padding: 14px 18px; border-radius: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.strong-note { font-weight: 500; }

.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 12px; background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--primary); align-items: flex-start; }
.contact-card span { color: var(--text); font-size: .93rem; line-height: 1.6; word-break: break-word; }
.contact-card b { display: block; color: var(--primary); }
.contact-card.wa { color: var(--wa); }

/* ---------- Footer ---------- */
.site-footer { background: #1f0505; color: #e7d6bf; margin-top: 0; }
.footer-blessing { background: var(--primary); text-align: center; padding: 26px 0 22px; border-top: 3px solid var(--accent); }
.footer-blessing p { font-family: var(--serif); font-style: italic; font-weight: 600; color: #fff; font-size: 1.08rem; margin: 0; }
.footer-blessing .divider { margin-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding: 40px 16px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--accent); font-size: 1rem; margin-bottom: .4em; }
.site-footer p { font-size: .93rem; }
.site-footer a { color: #f4e6cf; }
.footer-link { display: inline-flex; gap: 6px; align-items: center; }
.social a { margin-right: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; }
.credit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.credit img { height: 22px; width: auto; background: #fff; border-radius: 4px; padding: 2px 6px; }

/* ---------- Floating & quick actions ---------- */
.wa-float { position: fixed; right: 18px; bottom: 22px; z-index: 60; background: var(--wa); color: #fff; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .4); text-decoration: none; font-weight: 600; }
.wa-float:hover { color: #fff; background: #178a45; }
.to-top { position: fixed; right: 22px; bottom: 90px; z-index: 59; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.quickbar { display: none; }
@media (max-width: 899px) {
    .wa-float { display: none; }
    .to-top { bottom: 80px; right: 14px; }
    .quickbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -10px rgba(0, 0, 0, .3); padding-bottom: env(safe-area-inset-bottom); }
    .quickbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px; font-size: .74rem; text-decoration: none; color: var(--primary); min-height: 58px; text-align: center; line-height: 1.2; }
    .quickbar .qb-wa { color: var(--wa); }
    .quickbar .qb-main { background: var(--primary); color: #fff; }
}
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ---------- Calendar ---------- */
.k-amavasai { --k: #3b2a4a; } .k-pournami { --k: #b7791f; } .k-pradosham { --k: #9b2c2c; } .k-event { --k: var(--primary); }
.cal-upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.cal-chip { text-decoration: none; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--k); border-radius: 12px; padding: 10px 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.cal-chip .mk { grid-row: span 2; color: var(--k); font-size: 1.3rem; line-height: 1.4; }
.cal-chip b { color: var(--k); font-size: .95rem; line-height: 1.4; }
.cal-chip small { color: var(--muted); font-size: .8rem; }
.cal { padding: clamp(14px, 3vw, 28px); margin-bottom: 36px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); text-decoration: none; font-size: 1.6rem; }
.cal-nav:hover { background: var(--primary); color: #fff; }
.cal-nav.off { opacity: .3; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cal-dow { text-align: center; font-weight: 600; color: var(--muted); font-size: .85rem; padding: 4px 0; }
.cal-dow:first-child { color: #b42318; }
.cal-cell { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 7px; background: #fffdf9; display: flex; flex-direction: column; gap: 3px; }
.cal-cell.empty { border: 0; background: none; }
.cal-cell .dn { font-weight: 600; font-size: .95rem; }
.cal-cell.today { outline: 2px solid var(--accent); outline-offset: -1px; }
.cal-cell.today .dn { color: var(--accent); }
.cal-cell.has { background: color-mix(in srgb, var(--k) 7%, #fff); border-color: color-mix(in srgb, var(--k) 30%, #fff); }
.cal-cell .ev { display: flex; gap: 4px; align-items: baseline; font-size: .76rem; line-height: 1.35; color: var(--k); font-weight: 600; }
.cal-cell .ev i { font-style: normal; }
.cal-cell .ev em { font-style: normal; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 16px; font-size: .88rem; }
.cal-legend span { color: var(--k); font-weight: 600; }
.cal-legend i { font-style: normal; }
@media (max-width: 640px) {
    .cal-grid { gap: 3px; }
    .cal-cell { min-height: 54px; padding: 4px; align-items: center; }
    .cal-cell .ev em { display: none; }
    .cal-cell .ev { font-size: .9rem; }
    .cal-dow { font-size: .72rem; }
}
.cal-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.cal-list li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--k); border-radius: 12px; padding: 10px 14px; }
.cl-date { flex: 0 0 56px; text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.cl-date b { font-size: 1.5rem; color: var(--k); font-family: var(--serif); }
.cl-date small { font-size: .74rem; color: var(--muted); }
.cl-body { flex: 1; display: flex; flex-direction: column; }
.cl-body b { color: var(--k); }
.cl-body i { font-style: normal; }
.cl-body small { color: var(--muted); }
.cal-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 250px)); justify-content: center; gap: 12px; margin: 0 0 26px; }
@media (max-width: 480px) { .cal-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Audio player ---------- */
.audio-card { position: sticky; top: 88px; z-index: 20; display: flex; align-items: center; gap: 14px; background: var(--primary); color: #fff; border-radius: 999px; padding: 8px 18px 8px 8px; margin: 0 0 18px; box-shadow: var(--shadow); }
.ap-play { flex: 0 0 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: var(--primary-dark); font-size: 1.1rem; display: grid; place-items: center; }
.ap-play .i-pause, .audio-card.playing .ap-play .i-play { display: none; }
.audio-card.playing .ap-play .i-pause { display: inline; }
.ap-main { flex: 1; min-width: 0; }
.ap-main b { font-size: .92rem; font-weight: 600; }
.ap-bar { display: flex; align-items: center; gap: 10px; }
.ap-seek { flex: 1; accent-color: var(--accent); min-width: 0; }
.ap-time { font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--accent-soft); min-width: 74px; text-align: right; }
.ap-opts { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.ap-opts select { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 3px 4px; font: inherit; }
.ap-opts select option { color: #000; }
.ap-opts label { cursor: pointer; white-space: nowrap; }
@media (max-width: 560px) { .audio-card { top: 80px; border-radius: 18px; flex-wrap: wrap; padding: 8px 12px; } .ap-opts { width: 100%; justify-content: flex-end; } }
.cue-on { background: var(--accent-soft) !important; border-radius: 8px; transition: background .2s; }
[data-cue] { cursor: pointer; }
ol.potri li.cue-on::before { background: var(--primary); color: #fff; }


/* ---------- Typography & spacing tune-up ---------- */
.sec-title { letter-spacing: .005em; }
.prose p { margin-bottom: 1.05em; }
.wrap.narrow .prose, .split-body .prose { max-width: 68ch; }
.center .prose, .prose.center { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
    body { font-size: 16px; line-height: 1.8; }
    .prose, .prose.lead { font-size: 1rem; }
    .sec-title { font-size: 1.4rem; }
    .page-head { padding: 28px 0 24px; }
    .page-head h1 { font-size: 1.45rem; }
    .info-item { padding: 12px 4px; }
    .timing-card { padding: 16px 12px; }
}

/* ---------- Scroll reveal animations (only when JS is on; respects reduced-motion) ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.2, .65, .3, 1), transform .75s cubic-bezier(.2, .65, .3, 1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
html.js .reveal.from-left { transform: translateX(-34px); }
html.js .reveal.from-right { transform: translateX(34px); }
html.js .reveal.zoom { transform: scale(.94); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.page-head h1, .page-head p, .crumbs { animation: fadeUp .7s ease both; }
.page-head p { animation-delay: .12s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pooja-card, .travel-card, .event-card, .album, .contact-card, .cal-chip { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.travel-card:hover, .event-card:hover, .contact-card:hover, a.cal-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn:hover { transform: translateY(-1px); }
.wa-float { animation: waIn .6s ease 1.2s both; }
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide img, .arch-frame img { transition: none; transform: none; }
    .hero-caption > * { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation: none !important; }
    html { scroll-behavior: auto; }
}
@media print { html.js .reveal { opacity: 1 !important; transform: none !important; } .quickbar, .wa-float, .to-top, .hero-nav, .hero-dots { display: none !important; } }

/* ---------- Reading layout (history & other text pages) ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #f1c470); transform-origin: left; transform: scaleX(0); }
.read-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.read-main { min-width: 0; max-width: 780px; }
.read-layout .page-body { font-size: var(--read-fs, 1.08rem); line-height: 2.05; }
.read-layout .page-body > p:first-of-type { font-size: 1.08em; color: var(--primary-dark); }
.read-layout .page-body figure img { cursor: zoom-in; }
.read-side { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-top, 110px) + 18px); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.rs-progress { display: flex; align-items: center; gap: 14px; }
.rs-progress svg { width: 54px; height: 54px; flex: 0 0 54px; transform: rotate(-90deg); }
.rs-progress circle { fill: none; stroke-width: 4; }
.rs-track { stroke: var(--primary-soft); }
.rs-bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transition: stroke-dashoffset .15s linear; }
.rs-progress b { display: block; font-size: 1.35rem; color: var(--primary); line-height: 1.2; }
.rs-progress small { color: var(--muted); font-size: .82rem; line-height: 1.5; display: block; }
.rs-font { display: flex; align-items: center; gap: 6px; margin: 16px 0 4px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.rs-font span { flex: 1; }
.rs-font button { width: 40px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--primary-soft); color: var(--primary); font-weight: 600; font-family: var(--serif); transition: background .2s, color .2s; }
.rs-font button:hover, .rs-font button.on { background: var(--primary); color: #fff; }
.side-card .share { margin-top: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.side-links h2 { font-size: 1.05rem; margin-bottom: 8px; }
.side-links a { display: flex; align-items: center; gap: 8px; padding: 9px 6px; text-decoration: none; color: var(--text); border-bottom: 1px dashed var(--line); font-size: .95rem; transition: color .2s, padding .2s; }
.side-links a:hover { color: var(--primary); padding-left: 10px; }
.side-links a svg { color: var(--accent); flex: 0 0 auto; }
.side-links .side-cta { margin-top: 12px; justify-content: center; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; padding: 11px; }
.side-links .side-cta:hover { color: #fff; background: var(--primary-dark); padding-left: 11px; }
.side-links .side-cta svg { color: var(--accent-soft); }
@media (max-width: 1000px) {
    .read-layout { grid-template-columns: minmax(0, 1fr); }
    .read-main { max-width: none; }
    .read-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 600px) { .read-layout .page-body { line-height: 1.95; } }

/* ---------- 108 போற்றி: tiles on desktop ---------- */
.layout-list ol.potri { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 10px; }
.layout-list ol.potri li { padding: 14px 14px 14px 62px; border: 1px solid var(--line); border-radius: 12px; background: #fff; line-height: 1.6; font-size: 1.02rem;
    display: flex; align-items: center; min-height: 64px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.layout-list ol.potri li::before { left: 14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; transition: background .2s, color .2s; }
.layout-list ol.potri li:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.layout-list ol.potri li:hover::before { background: var(--primary); color: #fff; }
@media (max-width: 1100px) { .layout-list ol.potri { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .layout-list ol.potri { grid-template-columns: minmax(0, 1fr); gap: 8px; } .layout-list ol.potri li { min-height: 0; padding: 11px 12px 11px 56px; } }

/* ---------- அம்பாள் பாடல்கள்: verse cards side by side on desktop ---------- */
.layout-verses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; counter-reset: verse; }
.layout-verses .verse { margin: 0; position: relative; padding-top: 46px; counter-increment: verse; transition: transform .2s ease, box-shadow .2s ease; }
.layout-verses .verse::before { content: "பாடல் " counter(verse); position: absolute; top: 14px; left: 26px; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--accent); }
.layout-verses .verse::after { content: "❝"; position: absolute; top: 4px; right: 18px; font-size: 3rem; line-height: 1; color: var(--accent-soft); }
.layout-verses .verse:hover { transform: translateY(-2px); }
.layout-verses .verse:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 760px; justify-self: center; width: 100%; }
@media (max-width: 860px) { .layout-verses { grid-template-columns: minmax(0, 1fr); } }
.audio-wrap { padding: 0; margin-bottom: 18px; }

.side-card .share { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 8px; }
.side-card .share .btn { justify-content: center; padding-left: 8px; padding-right: 8px; }

/* audio share bar */
.anchor { display: block; position: relative; top: calc(-1 * var(--nav-top, 110px) - 16px); visibility: hidden; }
.ap-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: -6px 0 16px; }
.ap-share-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.ap-share .btn[disabled] { opacity: .6; }
@media (max-width: 480px) { .ap-share-label { width: 100%; justify-content: center; } }
