/* MMVIC mockup — design system v2
   Direction: bold community-org editorial (ref: pdl.org.au) in MMVIC's own colours.
   Type: Plus Jakarta Sans (Latin) + Mukta (Devanagari). Ink/cream/flame palette,
   sharp corners, dark hero with live video, karvat-kathi zari kept as signature. */

:root {
  --paper: #F6F3EB;
  --paper-2: #EFEADD;
  --ink: #231F20;
  --ink-2: #5D5450;
  --flame: #F04E23;
  --flame-deep: #C93A13;
  --saffron: #FEBE00;
  --saffron-deep: #8A5300;
  --paithani: #6C1D45;
  --paithani-dark: #4E1231;
  --peacock: #11655A;
  --line: #DED7C6;
  --danger: #A62B21;
  --card: #FFFFFF;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 6px 18px rgba(35, 31, 32, .07);
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-dev: "Mukta", "Noto Sans Devanagari", sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Signature: karvat-kathi sawtooth zari border ---- */
.zari {
  height: 12px;
  background:
    linear-gradient(135deg, var(--saffron) 25%, transparent 25%) -6px 0 / 12px 12px repeat-x,
    linear-gradient(225deg, var(--saffron) 25%, transparent 25%) -6px 0 / 12px 12px repeat-x,
    var(--flame);
}
.zari--thin { height: 8px; background-size: 8px 8px, 8px 8px; background-position: -4px 0, -4px 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }
a  { color: var(--flame-deep); }
a:hover { color: var(--flame); }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; border-radius: 2px; }

.mr { font-family: var(--font-dev); font-weight: 600; color: var(--flame-deep); }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--flame-deep); margin-bottom: .6rem;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.section { padding: 54px 0; }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #F3EFE6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .eyebrow { color: var(--saffron); }
.section--ink .muted { color: #B9B0A6; }

/* ---- Header ---- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { height: 46px; width: auto; }
.brand b { font-size: 1.02rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.brand small { display: block; color: var(--ink-2); font-size: .72rem; letter-spacing: .03em; font-weight: 500; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); padding: 9px 13px; border-radius: 6px; font-size: .94rem; font-weight: 600; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--paper); box-shadow: inset 0 -3px 0 var(--flame); }
.nav .pill { background: var(--flame); color: #fff; font-weight: 700; margin-left: 6px; }
.nav .pill:hover { background: var(--flame-deep); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 14px; }
  .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 700 .98rem var(--font-body); border-radius: 6px; padding: 13px 24px;
  background: var(--flame); color: #fff; letter-spacing: .01em;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--flame-deep); color: #fff; transform: translateY(-1px); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--quiet:hover { background: var(--ink); color: #fff; transform: none; }
.section--ink .btn--quiet, .hero-dark .btn--quiet { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.section--ink .btn--quiet:hover, .hero-dark .btn--quiet:hover { background: #fff; color: var(--ink); }
.btn--paithani { background: var(--paithani); color: #fff; }
.btn--paithani:hover { background: var(--paithani-dark); color: #fff; }
.btn--sm { padding: 8px 15px; font-size: .87rem; }
.btn--block { width: 100%; }
.grid > .card > .btn--block:last-child { align-self: stretch; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---- Hero (dark, with video) ---- */
.hero { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.hero .wrap { padding-top: 56px; padding-bottom: 44px; }
.hero-dark { background: var(--ink); color: #F3EFE6; position: relative; overflow: hidden; }
.hero-dark .wrap { padding-top: 64px; padding-bottom: 56px; position: relative; z-index: 2; }
.hero-dark h1 { color: #fff; max-width: 13ch; }
.hero-dark h1 em { font-style: normal; color: var(--saffron); }
.hero-dark .mr-line { font-family: var(--font-dev); font-weight: 600; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--saffron); margin-bottom: .4rem; }
.hero-dark p.lead { font-size: 1.13rem; max-width: 46ch; color: #CFC7BA; }
.hero .mr-line { font-family: var(--font-dev); font-weight: 600; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--flame-deep); margin-bottom: .3rem; }
.hero p.lead { font-size: 1.13rem; max-width: 46ch; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 40px; }
.hero-stats div b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-dark .hero-stats div b { color: var(--saffron); }
.hero-stats div span { color: var(--ink-2); font-size: .87rem; font-weight: 500; }
.hero-dark .hero-stats div span { color: #B9B0A6; }

/* Cinematic full-bleed hero (design 1 · Utsav) */
.cine-hero { position: relative; overflow: hidden; background: var(--ink); color: #F3EFE6; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.cine-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cine-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,31,32,.25) 0%, rgba(35,31,32,.45) 50%, rgba(35,31,32,.93) 100%); }
.cine-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 46px; }
.cine-hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 4.6rem); max-width: 14ch; }
.cine-hero h1 em { font-style: normal; color: var(--saffron); }
.cine-hero .mr-line { font-family: var(--font-dev); font-weight: 600; color: var(--saffron); font-size: clamp(1.05rem, 2.6vw, 1.35rem); margin-bottom: .4rem; }
.cine-hero p.lead { font-size: 1.13rem; max-width: 46ch; color: #D8D0C4; }
.cine-hero .hero-stats div b { color: var(--saffron); }
.cine-hero .hero-stats div span { color: #B9B0A6; }
.cine-hero .btn--quiet { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.cine-hero .btn--quiet:hover { background: #fff; color: var(--ink); }

/* Hero entrance — staggered rise (Utsav) */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
.r1 { animation-delay: .05s } .r2 { animation-delay: .18s } .r3 { animation-delay: .34s } .r4 { animation-delay: .5s } .r5 { animation-delay: .66s }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; } }

/* Floating diyas — warm glowing orbs drifting up through the hero */
.diyas { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.diyas i { position: absolute; bottom: -30px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #FFE9A8 0%, var(--saffron) 55%, transparent 72%);
  box-shadow: 0 0 18px 6px rgba(254, 190, 0, .35); opacity: 0;
  animation: diya-float var(--dur, 14s) linear infinite; animation-delay: var(--delay, 0s); left: var(--x, 50%); }
.diyas i:nth-child(1) { --x: 8%;  --dur: 16s; --delay: 0s; }
.diyas i:nth-child(2) { --x: 22%; --dur: 21s; --delay: 4s; width: 7px; height: 7px; }
.diyas i:nth-child(3) { --x: 45%; --dur: 18s; --delay: 9s; }
.diyas i:nth-child(4) { --x: 64%; --dur: 23s; --delay: 2s; width: 6px; height: 6px; }
.diyas i:nth-child(5) { --x: 81%; --dur: 17s; --delay: 7s; }
.diyas i:nth-child(6) { --x: 93%; --dur: 25s; --delay: 12s; width: 8px; height: 8px; }
@keyframes diya-float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translateY(-46vh) translateX(18px); opacity: .7; }
  100% { transform: translateY(-92vh) translateX(-12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .diyas { display: none; } }

/* Brush-stroke underline for headings (Utsav) */
.swoosh::after { content: ""; display: block; width: 92px; height: 8px; margin-top: 10px;
  border-radius: 5px 3px 6px 3px; transform: skewX(-24deg);
  background: linear-gradient(90deg, var(--flame) 55%, var(--saffron)); }
.section--ink .swoosh::after { background: linear-gradient(90deg, var(--saffron) 55%, var(--flame)); }

/* Mosaic: staggered entrance + saffron ring on hover */
.mosaic .tile.reveal { transition-delay: calc(var(--stagger, 0) * 1ms); }
.mosaic .tile:nth-child(2) { --stagger: 70 } .mosaic .tile:nth-child(3) { --stagger: 140 }
.mosaic .tile:nth-child(4) { --stagger: 210 } .mosaic .tile:nth-child(5) { --stagger: 90 }
.mosaic .tile:nth-child(6) { --stagger: 160 } .mosaic .tile:nth-child(7) { --stagger: 230 }
.mosaic .tile:nth-child(8) { --stagger: 300 }
.mosaic .tile:hover { outline: 3px solid var(--saffron); outline-offset: -3px; }
.mosaic .tile:hover .tag { background: var(--saffron); color: var(--ink); }

/* Toran — hanging marigold garland (Utsav hero) */
.toran { position: absolute; top: 0; left: 0; right: 0; height: 20px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, var(--saffron) 0 6px, transparent 7px) 0 0 / 22px 15px repeat-x,
    radial-gradient(circle at 50% 0, var(--flame) 0 9px, transparent 10px) 11px 0 / 22px 19px repeat-x; }

/* Bilingual headings — Devanagari companion word */
.dev-h { font-family: var(--font-dev); font-weight: 600; font-size: .72em; color: var(--flame); margin-left: 10px; white-space: nowrap; }
.section--ink .dev-h, .wl-band .dev-h, .cine-hero .dev-h { color: var(--saffron); }
.cine-hero h1 em, h1 .dev-word { font-family: var(--font-dev); font-style: normal; }

/* Sponsors */
.sponsor-row { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.sponsor-row img { height: 44px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) opacity(.65); transition: filter .25s ease, transform .25s ease; }
.sponsor-row img:hover { filter: none; transform: scale(1.06); }
.sponsor-sect { border-top: 1px solid var(--line); }

/* Objectives pillars */
.pillars .pillar { border-top: 3px solid var(--flame); padding-top: 14px; }
.pillars .pillar > b.mr { font-size: 1.15rem; color: var(--flame); display: block; margin-bottom: 2px; }
.pillars .pillar h3 { margin-bottom: .3em; }

/* Scroll reveal (shared) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.hero-media { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.hero-media video, .hero-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-media .live-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(35,31,32,.82); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 4px;
}
.hero-media .live-tag::before { content: "●"; color: var(--flame); margin-right: 7px; }
.hero-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

/* ---- Cards & grids ---- */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; } /* stop tables/inputs blowing grid items out on phones */
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease; }
.grid .card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(35,31,32,.07), 0 14px 34px rgba(35,31,32,.12); }
/* equal-height cards in grids: pin the CTA to the bottom so buttons align across a row */
.grid > .card, .grid > .wl-ticket { display: flex; flex-direction: column; }
.grid > .card > .btn:last-child { margin-top: auto; align-self: flex-start; }
.grid > .wl-ticket > .flex-between:last-child { margin-top: auto; }
/* same for plain text columns that end in a button */
.cta-col { display: flex; flex-direction: column; align-items: flex-start; }
.cta-col > .btn:last-child { margin-top: auto; }
.card--accent { border-top: 4px solid var(--flame); }
.card--pop { position: relative; border: 2px solid var(--flame); padding: 21px; }
.card--pop::before { content: "Most popular"; position: absolute; top: -13px; left: 18px;
  background: var(--flame); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 4px; }
.price-big { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0; }
.price-big .per { font-size: .9rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.sticky-side { position: sticky; top: 90px; }

/* Ticker strip */
.ticker { background: var(--flame); color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; }
.ticker .track { display: inline-block; animation: ticker 28s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker a { color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
.ticker a:hover { text-decoration: underline; }
.ticker .sep { margin: 0 20px; color: var(--saffron); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--flame-deep); }

/* Event & page imagery */
.ev-media { position: relative; border-radius: 6px; overflow: hidden; }
.ev-media .ev-img { transition: transform .5s ease; }
.card:hover .ev-media .ev-img { transform: scale(1.06); }
.ev-badge { position: absolute; top: 10px; left: 10px; background: var(--flame); color: #fff;
  border-radius: 8px; padding: 7px 11px; text-align: center; line-height: 1.05; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ev-badge b { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.ev-badge i { font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ev-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; border-radius: 6px; display: block; }
.ev-img[src*="hero.jpg"], .ev-img--wide[src*="hero"] { object-position: center bottom; }

/* Per-photo art direction — keep faces in frame wherever these photos are cropped.
   Attribute selectors so the framing follows the photo across every layout and theme. */
img[src*="g-krishna"] { object-position: center 22%; }
img[src*="g-carrom"]  { object-position: center 58%; }
img[src*="g-stage"]   { object-position: center 62%; }
img[src*="g-foyer"]   { object-position: center 45%; }
img[src*="hero-card"] { object-position: center 65%; }
.ev-img--wide { width: 100%; max-height: 400px; object-fit: cover; object-position: center 30%; border-radius: var(--radius); display: block; }
.hero-photo { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: center bottom; border-radius: 10px; display: block; box-shadow: var(--shadow); }
@media (min-width: 720px) { .hero .hero-photo { aspect-ratio: 4 / 3; object-position: center bottom; } }
.hero-photo-wrap { position: relative; }
.hero-photo-wrap::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 8px; border-radius: 4px;
  background: linear-gradient(135deg, var(--saffron) 25%, transparent 25%) -4px 0/8px 8px repeat-x,
              linear-gradient(225deg, var(--saffron) 25%, transparent 25%) -4px 0/8px 8px repeat-x, var(--flame); }

/* ---- Gallery mosaic + lightbox ---- */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; }
@media (min-width: 760px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; } }
.mosaic .tile { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; padding: 0; border: 0; background: var(--ink); display: block; width: 100%; height: 100%; }
.mosaic .tile img, .mosaic .tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mosaic .tile:hover img, .mosaic .tile:hover video { transform: scale(1.045); }
.mosaic .tile--tall { grid-row: span 2; }
.mosaic .tile--wide { grid-column: span 2; }
.mosaic .tile .tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; pointer-events: none;
  background: rgba(35,31,32,.78); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 10px; border-radius: 4px; letter-spacing: .05em;
}
.mosaic .tile .tag.play::before { content: "▶"; color: var(--saffron); margin-right: 6px; font-size: .64rem; }
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,17,18,.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: min(1000px, 92vw); max-height: 84vh; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1; padding: 8px;
}
.lightbox .lb-cap { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #CFC7BA; font-size: .88rem; }

/* Photo placeholder (swap with client photography) */
.ph {
  border-radius: 6px; background:
    radial-gradient(circle at 78% 18%, rgba(254,190,0,.5), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(240,78,35,.45), transparent 50%),
    linear-gradient(160deg, var(--paithani) 0%, var(--paithani-dark) 100%);
  color: #FFE9BD; display: flex; align-items: flex-end; padding: 14px;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; min-height: 150px;
}
.ph--wide { min-height: 220px; }

/* ---- Tables ---- */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--card); }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); background: var(--paper-2); font-weight: 800; }
tr:hover td { background: #FAF8F1; }
td .muted { color: var(--ink-2); font-size: .85rem; }

/* ---- Status chips ---- */
.chip { display: inline-block; font-size: .77rem; font-weight: 700; border-radius: 4px; padding: 3px 10px; white-space: nowrap; }
.st-active   { background: #DFEEE8; color: var(--peacock); }
.st-expiring { background: #FFF1CC; color: var(--saffron-deep); }
.st-lapsed   { background: #F9E2DF; color: var(--danger); }
.st-pending  { background: #EDEAF6; color: #4A3E7A; }
.st-archived { background: #E9E4D8; color: var(--ink-2); }

/* ---- Forms ---- */
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
label .opt { font-weight: 400; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 6px;
  font: inherit; background: #fff; color: var(--ink); margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--flame); outline: none; }
.field-row { display: grid; gap: 0 14px; }
.field-row > div { min-width: 0; }
input[type=file] { max-width: 100%; min-width: 0; font-size: .85rem; }
select { max-width: 100%; }
@media (min-width: 640px) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: 1fr 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 20px; background: var(--card); }
legend { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; padding: 0 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .95rem; }
.check input { margin-top: 3px; }
.check span b { font-weight: 700; }
.form-note { font-size: .85rem; color: var(--ink-2); }

/* Stepper (join form) */
.steps { display: flex; gap: 8px; margin: 18px 0 26px; flex-wrap: wrap; }
.steps span { font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.steps span.on { background: var(--ink); color: #fff; }
.steps span.done { background: #DFEEE8; color: var(--peacock); }

/* ---- Price rows on event page ---- */
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: 0; }
.price-row .amt { font-weight: 800; font-size: 1.18rem; white-space: nowrap; letter-spacing: -0.02em; }
.save-line { background: #DFEEE8; color: var(--peacock); font-weight: 700; border-radius: 6px; padding: 10px 14px; margin: 12px 0; }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button { width: 34px; height: 34px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; font-weight: 700; }
.qty button:hover { background: var(--paper-2); }
.qty b { min-width: 20px; text-align: center; }

/* Capacity meter */
.meter { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin: 6px 0 2px; }
.meter i { display: block; height: 100%; background: var(--peacock); }
.meter.hot i { background: var(--flame); }
.meter-label { font-size: .82rem; color: var(--ink-2); font-weight: 600; }

/* ---- Member card ---- */
.member-card {
  border-radius: 12px; color: #fff; padding: 24px; max-width: min(420px, 100%);
  background: linear-gradient(150deg, var(--paithani) 0%, var(--paithani-dark) 75%);
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.member-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: linear-gradient(135deg, var(--saffron) 25%, transparent 25%) -5px 0/10px 10px repeat-x,
              linear-gradient(225deg, var(--saffron) 25%, transparent 25%) -5px 0/10px 10px repeat-x; }
.member-card .mr { color: var(--saffron); font-size: .95rem; }
.member-card h3 { color: #fff; margin: 2px 0 12px; }
.member-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.member-card dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; font-weight: 700; }
.member-card dd { margin: 0; font-weight: 700; }

/* ---- Committee ---- */
.committee-strip { display: flex; gap: 24px; flex-wrap: wrap; }
.committee-strip figure { margin: 0; text-align: center; width: 108px; }
.committee-strip img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--flame); }
.committee-strip figcaption b { display: block; font-size: .85rem; margin-top: 8px; letter-spacing: -0.01em; }
.committee-strip figcaption span { font-size: .74rem; color: var(--ink-2); font-weight: 600; }
.section--ink .committee-strip figcaption span { color: #B9B0A6; }

/* ---- Admin chrome ---- */
body.admin { background: #F2EFE6; }
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 54px; flex-wrap: wrap; }
.admin-bar a { color: #E7E0D4; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .92rem; font-weight: 600; }
.admin-bar a:hover, .admin-bar a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.admin-bar .tag { background: var(--flame); color: #fff; font-weight: 700; font-size: .76rem; padding: 3px 10px; border-radius: 4px; }
.stat-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); } }
.stat-tiles .card b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-tiles .card span { color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 46px; gap: 10px; align-items: center; font-size: .9rem; margin-bottom: 8px; }
.bar-row .track { height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--peacock); }
.bar-row.warn .track i { background: var(--flame); }

/* ---- Demo role switcher ---- */
.demo-switch {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 8px;
  display: flex; gap: 4px; align-items: center; box-shadow: 0 6px 24px rgba(35,31,32,.4);
  font-size: .82rem; max-width: calc(100vw - 20px);
}
.demo-switch b { padding: 0 8px; opacity: .7; font-weight: 500; white-space: nowrap; }
.demo-switch button, .demo-switch a {
  border: 0; background: transparent; color: #fff; font: 700 .82rem var(--font-body);
  border-radius: 999px; padding: 7px 12px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.demo-switch .on { background: var(--flame); color: #fff; }
.demo-switch select {
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff;
  font: 700 .8rem var(--font-body); border-radius: 999px; padding: 6px 10px; cursor: pointer; margin: 0;
  width: auto; -webkit-appearance: none; appearance: none;
}
.demo-switch select option { color: var(--ink); background: #fff; }
@media (max-width: 430px) { .demo-switch b { display: none; } }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #D8D0C4; margin-top: 48px; }
.site-footer .wrap { padding: 44px 22px; display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--saffron); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.site-footer .mr { color: var(--saffron); }
.site-footer a { color: #EFE8DC; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; font-size: .8rem; color: #A79C8D; }

/* ---- Chat widget ---- */
.chat-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  border: 0; cursor: pointer; border-radius: 999px; padding: 13px 20px;
  background: var(--flame); color: #fff; font: 700 .95rem var(--font-body);
  box-shadow: 0 8px 26px rgba(35, 31, 32, .35); transition: transform .15s ease;
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .mr { color: #fff; margin-right: 4px; }
.chat-panel[hidden] { display: none; }
.chat-panel {
  position: fixed; right: 16px; bottom: 74px; z-index: 71;
  width: min(370px, calc(100% - 24px)); max-height: min(560px, 78vh);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(35, 31, 32, .3); display: flex; flex-direction: column; overflow: hidden;
}
.chat-head { background: var(--ink); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-head .mr { color: var(--saffron); }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.chat-log { padding: 14px; overflow-y: auto; flex: 1; min-height: 180px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: .92rem; line-height: 1.45; }
.msg.bot { background: var(--paper-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--flame); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.me a { color: #fff; }
.msg.typing { color: var(--ink-2); letter-spacing: 2px; }
.chat-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.chat-chips button { border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 .8rem var(--font-body); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.chat-chips button:hover { border-color: var(--flame); color: var(--flame-deep); }
.chat-input { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; margin: 0; padding: 10px 12px; }
.chat-fine { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--ink-2); }
@media (max-width: 520px) {
  .chat-panel { bottom: 70px; }
  .demo-switch { bottom: 8px; left: 8px; transform: none; max-width: calc(100vw - 116px);
    flex-wrap: wrap; border-radius: 16px; justify-content: flex-start; }
  .chat-fab { padding: 11px 15px; font-size: .85rem; }
}

/* Footer credit */
.built-by { display: block; margin-top: 8px; }
.built-by a { text-decoration: none; }
.built-by b { color: var(--saffron); }

/* Admin activity feed */
.feed { list-style: none; margin: 10px 0 0; padding: 0; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.feed li:last-child { border-bottom: 0; }

/* Utility */
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select { margin-bottom: 0; width: auto; }
.notice { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .92rem; }
.notice--demo { border-style: dashed; color: var(--ink-2); }
