/* Sonarpur Club Samannay Sammilani — public site
   Palette taken from the Sonarpur Boimela posters. */
:root {
  --alta: #b3121f;        /* alta / sindoor red */
  --alta-dark: #8c0d17;
  --green: #0d5c46;       /* bottle green contact band */
  --marigold: #f2b705;
  --ink: #14254a;         /* Sonarpur wordmark navy */
  --text: #1d2433;
  --muted: #5b6375;
  --tint: #eef5f1;        /* pale green section */
  --line: #dfe5e2;
  --radius: 10px;
  --font-head: "Baloo Da 2", "Hind Siliguri", system-ui, sans-serif;
  --font-body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .sec-title, .hero-title, .brand-bn { font-family: var(--font-head); color: var(--ink); line-height: 1.25; }
a { color: var(--alta); text-underline-offset: 3px; }
a:hover { color: var(--alta-dark); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--green); color: #e8f3ee; font-size: .9rem; padding: .35rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar i { margin-right: .25rem; color: var(--marigold); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding: .5rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; white-space: normal; max-width: 75%; }
.brand-logo { height: 56px; width: auto; }
.brand-mark svg { width: 46px; height: 46px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-bn { font-size: 1.25rem; font-weight: 700; }
.brand-en { font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
.navbar-toggler { border: 0; font-size: 1.9rem; color: var(--ink); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-nav .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .7rem !important; position: relative; }
.navbar-nav .nav-link:hover { color: var(--alta); }
.navbar-nav .nav-link.active { color: var(--alta); }
@media (min-width: 992px) {
  .navbar-nav .nav-link.active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .15rem; height: 3px; background: var(--alta); border-radius: 2px; }
}
@media (max-width: 991.98px) {
  .navbar-collapse { border-top: 1px solid var(--line); margin-top: .5rem; }
  .navbar-nav .nav-link { padding: .65rem .25rem !important; border-bottom: 1px solid var(--line); }
  .brand-bn { font-size: 1.05rem; }
  .brand-en { font-size: .7rem; }
}

/* ---------- buttons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding-left: 1.25rem; padding-right: 1.25rem; }
.btn-alta { background: var(--alta); color: #fff; border: 2px solid var(--alta); }
.btn-alta:hover, .btn-alta:focus { background: var(--alta-dark); border-color: var(--alta-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-marigold { background: var(--marigold); color: #1b1b1b; border: 2px solid var(--marigold); }
.btn-marigold:hover { background: #ffd23f; color: #000; }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 3rem; background:
  radial-gradient(1200px 400px at 85% -10%, rgba(242,183,5,.18), transparent 60%), #fff; }
.hero-kicker { color: var(--green); font-weight: 600; margin-bottom: .25rem; }
.hero-title { margin: 0 0 1rem; display: flex; flex-direction: column; }
.hero-edition { font-size: clamp(4rem, 12vw, 7.5rem); font-weight: 800; color: var(--alta); line-height: .9; letter-spacing: -.01em; }
.hero-name { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; color: var(--ink); }
.hero-facts { margin: 0 0 1rem; }
.hero-facts > div { display: flex; gap: .6rem; align-items: baseline; font-size: 1.15rem; }
.hero-facts dt { color: var(--alta); font-weight: 400; }
.hero-facts dd { margin: 0; font-weight: 600; }
.hero-theme { border-left: 4px solid var(--marigold); padding: .25rem 0 .25rem 1rem; margin: 1.25rem 0 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--alta); }
.hero-theme span { display: block; font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--green); }
.hero-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -18px rgba(20,37,74,.45); background: var(--tint); }
.hero-frame img { aspect-ratio: auto; object-fit: cover; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .8rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; flex-direction: column; }
.slide-cap strong { font-family: var(--font-head); font-size: 1.2rem; }
.slide-cap span { font-size: .9rem; }

.countdown { background: var(--marigold); color: #241a00; text-align: center; padding: .7rem 0; font-size: 1.15rem; }
.countdown strong { font-family: var(--font-head); font-size: 1.35rem; }

/* ---------- sections ---------- */
.sec { padding: 3.5rem 0; }
.sec-tint { background: var(--tint); }
.sec-title { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; margin-bottom: 1.25rem; }
.sub-title { font-size: 1.3rem; font-weight: 700; margin: 1.5rem 0 1rem; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.sec-head .sec-title { margin: 0; }
.sec-head > a { font-weight: 600; }
.empty { color: var(--muted); padding: 1.5rem 0; }

/* activities: a plain list with icons, no cards */
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 2rem; }
.act { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.act:hover strong { color: var(--alta); }
.act-icon { font-size: 1.8rem; color: var(--green); line-height: 1; padding-top: .2rem; width: 2.2rem; flex: none; }
.act-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.act-body { display: flex; flex-direction: column; }
.act-body strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.act-body span { color: var(--muted); font-size: .98rem; }

/* events: calendar-leaf date + text */
.ev-list { list-style: none; padding: 0; margin: 0; }
.ev { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.ev:first-child { border-top: 1px solid var(--line); }
.ev-date { width: 4.4rem; text-align: center; background: #fff; border: 2px solid var(--alta); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ev-d { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--alta); line-height: 1.2; padding-top: .2rem; }
.ev-m { background: var(--alta); color: #fff; font-size: .85rem; font-weight: 600; padding: .05rem 0; }
.ev-title { font-size: 1.3rem; margin: 0 0 .2rem; }
.ev-title a { color: var(--ink); text-decoration: none; }
.ev-title a:hover { color: var(--alta); }
.ev-meta { color: var(--green); font-size: .95rem; margin: 0 0 .35rem; font-weight: 500; }
.ev-sum { margin: 0; color: var(--muted); max-width: 70ch; }
.ev-img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; }
@media (max-width: 575.98px) { .ev { grid-template-columns: auto 1fr; } .ev-img { display: none; } .ev-date { width: 3.6rem; } .ev-d { font-size: 1.5rem; } }

/* albums: photo stack */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.5rem; }
.album { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.album-stack { display: block; position: relative; aspect-ratio: 4/3; margin: 8px 8px 12px 0; }
.album-stack::before, .album-stack::after { content: ""; position: absolute; inset: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.album-stack::before { transform: rotate(4deg) translate(6px, 2px); }
.album-stack::after { transform: rotate(-2.5deg) translate(-3px, 4px); background: #f7f7f7; }
.album-stack img, .album-empty { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 4px solid #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.album-empty { display: grid; place-items: center; background: var(--tint); font-size: 2.5rem; color: var(--green); }
.album:hover .album-stack img { transform: translateY(-3px); transition: transform .2s; }
.album-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.album:hover .album-title { color: var(--alta); }
.album-meta { color: var(--muted); font-size: .9rem; }

/* year shelf: book spines */
.shelf { margin: 0 0 1.75rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shelf-row { display: flex; align-items: flex-end; gap: 4px; padding: 0 2px; min-height: 170px; border-bottom: 10px solid #8a5a2b; box-shadow: 0 6px 0 -2px #5e3c1b; width: max-content; min-width: 100%; }
.spine { --spine: var(--ink); --h: 130px; flex: none; width: 46px; height: var(--h); background: var(--spine); color: #fff; text-decoration: none; border-radius: 3px 3px 0 0;
  display: flex; align-items: center; justify-content: center; position: relative;
  background-image: linear-gradient(90deg, rgba(255,255,255,.12) 0 4px, transparent 4px calc(100% - 6px), rgba(0,0,0,.18) calc(100% - 6px));
  transition: transform .18s ease; }
.spine::before, .spine::after { content: ""; position: absolute; left: 6px; right: 6px; height: 3px; background: rgba(242,183,5,.85); }
.spine::before { top: 14px; } .spine::after { bottom: 14px; }
.spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.spine:hover { transform: translateY(-6px); color: #fff; }
.spine.is-active { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--marigold); }
.spine-all { --spine: #6b7280; --h: 150px; width: 54px; }
.spine-all span { font-size: .95rem; }
.year-heading { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; color: var(--alta); margin: .5rem 0 1rem; }
.year-select { margin-bottom: 1rem; }
@media (max-width: 575.98px) { .shelf-row { min-height: 140px; } .spine { width: 40px; height: calc(var(--h) - 22px); } }

/* photo grid: row order, square crops; full photo opens in the lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ph { display: block; border-radius: 8px; overflow: hidden; background: var(--tint); aspect-ratio: 1; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
@media (max-width: 575.98px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.ph:hover img { transform: scale(1.03); }

/* books: covers on a 3:4 ratio */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 2rem 1.5rem; }
.book { display: flex; flex-direction: column; }
.book-cover { --c: var(--ink); display: block; aspect-ratio: 3/4; border-radius: 3px 8px 8px 3px; overflow: hidden; position: relative; box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); margin-bottom: .7rem; }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.15)); z-index: 2; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-plain { position: absolute; inset: 0; background: var(--c); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem 1rem 1rem 1.4rem; }
.bp-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.bp-year { font-family: var(--font-head); font-size: 1.6rem; color: var(--marigold); font-weight: 800; }
.book:hover .book-cover { transform: translateY(-4px); transition: transform .2s; }
.book-title { font-size: 1.05rem; margin: 0 0 .15rem; line-height: 1.35; }
.book-title a { color: var(--ink); text-decoration: none; }
.book-title a:hover { color: var(--alta); }
.book-meta { color: var(--muted); font-size: .88rem; margin: 0; }

/* archive controls */
.archive-search { display: flex; gap: .5rem; margin-bottom: 1.25rem; max-width: 640px; }
.archive-search .form-control { border-radius: 999px; padding-left: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { border: 2px solid var(--line); border-radius: 999px; padding: .25rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.chip span { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-active span { color: #d4ebe1; }
.result-count { color: var(--muted); margin-bottom: 1.25rem; }
.file-card { position: sticky; top: 96px; }
.file-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; text-align: center; }
.file-meta dt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.file-meta dd { margin: 0; font-weight: 700; color: var(--ink); }
.pdf-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 80vh; min-height: 480px; background: #f3f4f6; }
.pdf-frame object { width: 100%; height: 100%; display: block; }
.pdf-fallback { padding: 3rem 1.5rem; text-align: center; }

/* page head + prose */
.page-head { background: var(--ink); color: #fff; padding: 2.5rem 0 2.25rem; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--alta) 0 33%, var(--marigold) 33% 66%, var(--green) 66%); }
.page-head.has-banner { background: linear-gradient(rgba(20,37,74,.78), rgba(20,37,74,.78)), var(--banner) center/cover; padding: 4rem 0 3.5rem; }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; margin: 0; }
.page-sub { margin: .4rem 0 0; color: #dfe6f5; font-size: 1.1rem; max-width: 60ch; }
.crumb { margin: 0 0 .25rem; font-size: .95rem; }
.crumb a { color: var(--marigold); }
.page-body { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.prose { max-width: 72ch; }
.prose h2, .prose h3, .prose h4 { margin: 1.75rem 0 .6rem; font-weight: 700; }
.prose h3 { font-size: 1.45rem; } .prose h4 { font-size: 1.2rem; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .25rem; }
.prose h3[id] { scroll-margin-top: 100px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .45rem .6rem; }

/* book fair page */
.fair-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: var(--tint); border-radius: var(--radius); }
.fair-facts dt { color: var(--green); font-weight: 600; font-size: .9rem; }
.fair-facts dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.poster-pin { display: block; transform: rotate(1.5deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.55); border: 8px solid #fff; border-radius: 4px; }
.fair-years { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.fair-years a { display: flex; flex-direction: column; padding: 1rem 1.2rem; border-left: 5px solid var(--green); background: #fff; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0 8px 8px 0; height: 100%; }
.fair-years .is-active a { border-left-color: var(--alta); background: #fff6f6; }
.fy-year { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--alta); line-height: 1.1; }
.fy-title { font-weight: 700; color: var(--ink); }
.fy-theme { color: var(--muted); font-size: .92rem; }

/* contact band + groups */
.contact-band { background: var(--green); color: #eaf5f0; padding: 3.5rem 0; }
.band-title { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.contact-groups { margin: 1.25rem 0; }
.contact-groups > div { padding: .65rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-groups dt { font-weight: 600; color: var(--marigold); }
.contact-groups dd { margin: 0; font-size: 1.15rem; font-weight: 600; }
.contact-groups a { color: #fff; text-decoration: none; }
.contact-groups a:hover { text-decoration: underline; }
.contact-groups.on-light > div { border-top-color: var(--line); }
.contact-groups.on-light dt { color: var(--green); }
.contact-groups.on-light a { color: var(--ink); }
.map-frame { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 300px; background: rgba(255,255,255,.1); }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.contact-form .form-control, .contact-form .form-select { padding: .65rem .9rem; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { background: var(--ink); color: #c9d2e6; padding: 3rem 0 1.25rem; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.f-name { font-family: var(--font-head); font-size: 1.4rem; color: #fff; font-weight: 700; margin-bottom: .5rem; }
.f-about { max-width: 46ch; }
.f-h { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--marigold); margin-bottom: .75rem; }
.f-links li { margin-bottom: .3rem; }
.text-en { color: #9eabc6; font-size: .9rem; }
.f-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .88rem; }
.f-admin { color: #8090b3 !important; }

/* floating actions */
.float-actions { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 1040; }
.float-actions a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.5rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); text-decoration: none; }
.fa-wa { background: #1fa855; } .fa-call { background: var(--alta); }
.float-actions a:hover { color: #fff; transform: scale(1.06); }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(8,12,22,.94); z-index: 2000; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lb-cap { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: #e5e7eb; padding: 0 4rem; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; display: grid; place-items: center; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 24px; left: 24px; color: #cbd5e1; font-size: .95rem; }

.pagination .page-link { color: var(--ink); border-radius: 6px !important; margin: 0 2px; }
.pagination .active .page-link { background: var(--alta); border-color: var(--alta); color: #fff; }
.site-footer, .contact-groups { overflow-wrap: anywhere; }
.page-body { overflow-wrap: break-word; }
.prose th { white-space: nowrap; }
@media (max-width: 575.98px) { .prose th { white-space: normal; } }
.archive-search .btn { flex: none; white-space: nowrap; }

/* ---------- English edition additions ---------- */
.brand-logo { height: 54px; width: auto; border-radius: 4px; }
.brand-bn { font-size: 1.12rem; }
.brand-en { font-size: .8rem; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .navbar-nav .nav-link { padding: .5rem .5rem !important; font-size: .97rem; } }
@media (max-width: 1199.98px) {
  .navbar-collapse { border-top: 1px solid var(--line); margin-top: .5rem; }
  .navbar-nav .nav-link { padding: .65rem .25rem !important; border-bottom: 1px solid var(--line); }
  .navbar-nav .nav-link.active::after { display: none; }
}
.hero-edition { font-size: clamp(3.4rem, 10vw, 6.4rem); }
.welcome-img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 36px -20px rgba(20,37,74,.5); }
.prose-wide { max-width: 78ch; }
.prose .svc { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.prose .svc:first-child { border-top: 0; padding-top: .5rem; }
.prose .svc img { width: 100%; border-radius: 8px; margin: .35rem 0 0; }
.prose .svc h3 { margin-top: 0; }
@media (max-width: 767.98px) { .prose .svc { grid-template-columns: 1fr; gap: .75rem; } .prose .svc img { max-height: 220px; object-fit: cover; } }
.album-one { color: var(--muted); margin-bottom: 1rem; }
.ph { position: relative; }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .6rem .45rem; font-size: .82rem; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.spine-old span { font-size: .95rem; }

/* notice pop-up */
.notice .modal-header { background: var(--alta); color: #fff; border-bottom: 0; }
.notice .modal-title { color: #fff; }
.notice .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* apply / participate */
.apply-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem 1.25rem; margin-bottom: 1.25rem; }
.apply-form legend { float: none; width: auto; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.15rem; padding: 0 .4rem; margin: 0 0 .25rem -.4rem; }
.req { color: var(--alta); }
.doc-pick { display: flex; gap: .75rem; align-items: center; }
.doc-pick img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.terms { background: #fff8e6; border: 1px solid #f3dc9b; border-radius: var(--radius); padding: 1rem 1.25rem; }
.terms ol { padding-left: 1.2rem; margin-bottom: .75rem; font-size: .95rem; }
.apply-info { background: var(--tint); border-radius: var(--radius); padding: 1.25rem 1.4rem; position: sticky; top: 100px; }
.apply-info .prose { max-width: none; }
.fee { margin: 1rem 0; padding-top: 1rem; border-top: 1px solid rgba(13,92,70,.2); }
.fee strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--alta); }
.fee span { font-size: .9rem; color: var(--muted); }
.closed-box { max-width: 640px; border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem; }
.pay-card { border: 2px solid var(--green); border-radius: var(--radius); padding: 1.5rem; text-align: center; background: #fff; }
.pay-amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--alta); margin: 0 0 .5rem; line-height: 1; }
.pay-qr { width: 100%; max-width: 260px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 1rem; }
.pay-upi code { font-size: 1.1rem; color: var(--ink); background: var(--tint); padding: .2rem .5rem; border-radius: 6px; }
.status-list { list-style: none; padding: 0; margin: 0; }
.st { border: 1px solid var(--line); border-left: 6px solid #9aa3b5; border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
.st-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.st-head span { color: var(--muted); }
.st-status { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin: .25rem 0; }
.st-approved { border-left-color: #1f8a4c; } .st-approved .st-status { color: #1f8a4c; }
.st-paid { border-left-color: #2e6f95; }
.st-submitted { border-left-color: var(--marigold); }
.st-rejected .st-status { color: var(--muted); }
.fair-banner { display: block; margin-bottom: 1.75rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 30px -18px rgba(20,37,74,.5); }
.fair-banner img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* Contact page: square map (home page map is unaffected) */
.page-body .map-frame { aspect-ratio: 1 / 1; height: auto; min-height: 0; }
.page-body .map-frame iframe { height: 100%; min-height: 0; }
