/* ============================================================
   TALM — Tamil Arts and Literature Meet · Korea Tamil Sangam
   Stylesheet
   1. Design tokens        5. Header & navigation
   2. Base & typography    6. Sections
   3. Reusable components   7. Footer
   4. Layout helpers        8. Responsive & motion
   ============================================================ */

/* 1. DESIGN TOKENS ------------------------------------------ */
:root {
  /* palette — palm-leaf manuscript warmth */
  --maroon:      #6e1e28;
  --maroon-deep: #4a141b;
  --gold:        #b07c2b;   /* decorative: lines, icons, buttons */
  --gold-ink:    #835718;   /* text on light backgrounds (AA) */
  --gold-soft:   #e9c97a;   /* text on dark maroon */
  --coral-ink:   #b85644;
  --ivory:       #f8f2e6;   /* page */
  --panel:       #f1e7d2;   /* cards / bands */
  --coral:       #c46b5a;
  --ink:         #241c18;
  --ink-soft:    #5c4f45;
  --line:        #e2d3b6;

  /* type */
  --serif: "Fraunces", "Noto Serif Tamil", Georgia, serif;
  --serif-ta: "Noto Serif Tamil", "Fraunces", serif;
  --sans: "Karla", "Noto Sans Tamil", system-ui, sans-serif;
  --sans-ta: "Noto Sans Tamil", "Karla", sans-serif;

  /* structure */
  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -18px rgba(74, 20, 27, 0.45);
  --shadow-lg: 0 24px 60px -30px rgba(74, 20, 27, 0.5);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. BASE & TYPOGRAPHY -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

:lang(ta), [lang="ta"] { font-family: var(--sans-ta); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--maroon); margin: 0 0 .4em; }
h1 :lang(ta), h2 :lang(ta), h3 :lang(ta) { font-family: var(--serif-ta); }
p { margin: 0 0 1rem; }
a { color: var(--maroon); text-decoration-color: rgba(110, 30, 40, .3); text-underline-offset: 3px; }
img, svg { max-width: 100%; height: auto; display: block; }

/* focus — visible everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--maroon); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 8px; z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* 3. REUSABLE COMPONENTS ------------------------------------ */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold);
}

/* kolam divider — a thin gold line with a centred diamond */
.kolam-rule {
  display: flex; align-items: center; gap: 14px;
  margin: 0 auto; max-width: 240px; color: var(--gold);
}
.kolam-rule::before, .kolam-rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.kolam-rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.kolam-rule span {
  width: 10px; height: 10px; border: 1.5px solid var(--gold);
  transform: rotate(45deg); position: relative;
}
.kolam-rule span::after {
  content: ""; position: absolute; inset: 2.5px; background: var(--gold);
}

/* buttons */
.btn {
  --btn-bg: var(--maroon); --btn-fg: #fff; --btn-bd: var(--maroon);
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .95rem;
  padding: .78rem 1.5rem; border-radius: 999px; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--maroon); --btn-bd: var(--gold); }
.btn--ghost:hover { --btn-bg: var(--panel); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #2b1c05; --btn-bd: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-soft); }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }

/* disabled links / buttons */
.is-disabled,
a[aria-disabled="true"] {
  opacity: .5; pointer-events: none; cursor: not-allowed;
  filter: grayscale(.3);
}

/* placeholder tag */
.tbu {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-ink); background: rgba(176, 124, 43, .12);
  border: 1px dashed var(--gold-ink); border-radius: 6px; padding: .1rem .5rem;
}

/* cards */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--coral));
}

/* language toggle */
.lang-switch {
  display: inline-flex; border: 1.5px solid var(--gold); border-radius: 999px;
  overflow: hidden; background: var(--ivory);
}
.lang-switch button {
  font-family: var(--sans); font-size: .82rem; font-weight: 700;
  padding: .3rem .7rem; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-soft);
}
.lang-switch button.is-active { background: var(--maroon); color: #fff; }
.lang-switch [data-lang-set="ta"] { font-family: var(--sans-ta); }

/* i18n visibility */
html[data-lang="en"] .t-ta { display: none; }
html[data-lang="ta"] .t-en { display: none; }

/* reveal animation — only hidden when JS is available (.js on <html>) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* 4. LAYOUT HELPERS ----------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--panel { background: var(--panel); }
.section--maroon { background: var(--maroon); color: var(--ivory); }
.section--maroon h2, .section--maroon h3 { color: #fff; }
.section--maroon .eyebrow { color: var(--gold-soft); }
.section--maroon .eyebrow::before { background: var(--gold-soft); }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); }
.section--maroon .section-head p { color: rgba(248, 242, 230, .82); }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 5. HEADER & NAVIGATION ------------------------------------ */
.announce {
  background: var(--maroon-deep); color: var(--ivory);
  font-size: .86rem; text-align: center;
}
.announce .wrap {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: .5rem 0; flex-wrap: wrap;
}
.announce strong { color: var(--gold-soft); }
.announce .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 242, 230, .92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); border-color: var(--line); }

/* Header bar gets a little more width than the body so the full menu can breathe */
.site-header .wrap { width: min(100% - 3rem, 1360px); }

.nav {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none; margin-right: auto; flex: none;
}
.brand img { width: 60px; height: 60px; flex: none; }
.brand-text { line-height: 1.2; }
.brand-name {
  display: block; white-space: nowrap;
  font-family: var(--serif); font-weight: 600; color: var(--maroon); font-size: 1.1rem;
}
.brand-ta {
  display: block; white-space: nowrap;
  font-family: var(--serif-ta); font-size: .88rem; color: var(--gold-ink);
}

.nav-menu { display: flex; align-items: center; gap: .12rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: .5rem .58rem; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-menu a:hover { background: var(--panel); color: var(--maroon); }
.nav-menu a.is-current { color: var(--maroon); }
.nav-menu a.is-current::after {
  content: ""; display: block; height: 2px; margin-top: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-menu .nav-cta a,
.nav-menu a.nav-register {
  background: var(--gold); color: #2b1c05; font-weight: 700;
  padding: .5rem 1rem; border-radius: 999px;
}
.nav-menu a.nav-register:hover { background: var(--gold-soft); }
.nav-menu a.nav-register::after { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; align-items: center; justify-content: center; border-radius: 8px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--maroon);
  border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(7px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

/* 6. SECTIONS ----------------------------------------------- */

/* Hero */
.hero { position: relative; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 6vw, 5rem); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(176,124,43,.10), transparent 60%),
    radial-gradient(50% 45% at 0% 100%, rgba(196,107,90,.10), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-verse { font-family: var(--serif-ta); color: var(--gold); font-size: 1.05rem; letter-spacing: .01em; margin-bottom: 1rem; }
.hero h1 { margin-bottom: .2rem; }
.hero-title-ta { display: block; font-family: var(--serif-ta); color: var(--maroon); font-size: clamp(1.35rem, 3.4vw, 2rem); line-height: 1.3; }
.hero-title-en { display: block; font-family: var(--serif); color: var(--ink); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.12; margin-top: .4rem; }
.hero-tag { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin: 1rem 0 1.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-bottom: 1.6rem; }
.hero-meta > div { min-width: 120px; }
.hero-meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.hero-meta dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 1.1rem; color: var(--maroon); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Countdown */
.countdown { text-align: center; }
.countdown-grid { display: inline-flex; gap: clamp(.6rem, 2vw, 1.4rem); flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.cd-cell {
  min-width: 92px; padding: 1rem 1.2rem; border-radius: var(--radius);
  background: rgba(248, 242, 230, .08); border: 1px solid rgba(233, 201, 122, .3);
}
.cd-num { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.cd-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(248,242,230,.75); }
.countdown-note { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.about-facts { display: grid; gap: 1rem; }
.fact { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.fact h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.fact p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* Highlights — an editorial two-column list, not a card grid.
   A hairline separates rows so it reads like a printed programme. */
.highlights {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 3rem; row-gap: 0;
  border-top: 1px solid var(--line);
}
.hl {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem .25rem; border-bottom: 1px solid var(--line);
}
.hl-icon { flex: none; width: 40px; height: 40px; color: var(--gold); }
.hl h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.hl p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* Programme timeline */
.timeline { position: relative; margin-top: 1rem; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.tl-item { position: relative; padding: 0 0 1.6rem 0; }
.tl-item::before { content: ""; position: absolute; left: -1.6rem; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); }
.tl-time { font-family: var(--serif); color: var(--maroon); font-size: 1.05rem; }
.tl-item p { margin: .15rem 0 0; color: var(--ink-soft); }

/* Competitions */
.comp-card { display: flex; flex-direction: column; height: 100%; }
.comp-card .comp-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .8rem; }
.chip { font-size: .74rem; font-weight: 700; letter-spacing: .04em; background: var(--panel); color: var(--maroon); border-radius: 999px; padding: .18rem .6rem; }
.comp-card dl { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; font-size: .9rem; }
.comp-card dt { color: var(--gold-ink); font-weight: 700; }
.comp-card dd { margin: 0; color: var(--ink-soft); }
.comp-actions { margin-top: auto; display: flex; gap: .6rem; flex-wrap: wrap; }

/* Guests */
.guest-card { text-align: center; }
.guest-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto .9rem; border: 3px solid var(--panel); box-shadow: var(--shadow); }
.guest-card h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.guest-role { color: var(--gold-ink); font-weight: 700; font-size: .84rem; letter-spacing: .04em; }
.guest-card p { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }

/* Award forms */
.form-card { display: flex; flex-direction: column; }
.form-card .file-meta { font-size: .82rem; color: var(--ink-soft); margin: .2rem 0 1rem; }
.form-card .dl-row { margin-top: auto; }

/* Sponsors */
.sponsor-tier { margin-bottom: 2rem; }
.sponsor-tier:last-child { margin-bottom: 0; }
.sponsor-tier h3 { font-size: 1rem; text-align: center; letter-spacing: .02em; }
.sponsor-tier h3 span { color: var(--gold-ink); }
.sponsor-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.tier-title .sponsor-grid { grid-template-columns: 1fr; }
.sponsor-slot {
  aspect-ratio: 5 / 2; display: grid; place-items: center;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: .82rem; text-align: center; padding: .5rem;
}
.sponsor-slot.big { aspect-ratio: 4 / 1.4; }

/* Travel */
.travel-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.map-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.route-list { display: grid; gap: 1rem; }
.route { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.route h4 { font-family: var(--serif); color: var(--maroon); font-size: 1.02rem; margin: 0 0 .2rem; }
.route p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.travel-aside .card + .card { margin-top: 1.2rem; }
.map-figure { margin: 0; }
.map-figure img { border-radius: var(--radius-sm); border: 1px solid var(--line); }
.map-figure figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }

/* KTS Bus */
.bus-notice { background: rgba(248,242,230,.08); border: 1px solid rgba(233,201,122,.3); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.bus-notice p { color: rgba(248,242,230,.9); margin-bottom: .6rem; }
.bus-notice p:last-child { margin-bottom: 0; }
.route-card dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; font-size: .9rem; margin: .4rem 0 1rem; }
.route-card dt { color: var(--gold-ink); font-weight: 700; }
.route-card dd { margin: 0; color: var(--ink-soft); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--maroon); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 1rem; margin: 0; color: var(--ink-soft); }

/* Registration CTA */
.register-cta { text-align: center; }
.register-cta .reg-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.4rem 0 1.8rem; }
.register-cta .reg-meta dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.register-cta .reg-meta dd { margin: .1rem 0 0; font-family: var(--serif); font-size: 1.2rem; color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.contact-card h3 { font-size: 1.02rem; margin-bottom: .1rem; }
.contact-card .role { color: var(--gold-ink); font-weight: 700; font-size: .82rem; }
.contact-card ul { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .9rem; color: var(--ink-soft); display: grid; gap: .25rem; }
form.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field label .req { color: var(--coral-ink); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--ivory);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .8rem;
  transition: border-color .15s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field-invalid { border-color: var(--coral) !important; background: #fdf3f0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { font-size: .9rem; margin: .6rem 0 0; min-height: 1.2em; }
.form-status.is-error { color: var(--coral); }
.form-status.is-ok { color: #2f7d4f; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: .8rem; }

/* 7. FOOTER ------------------------------------------------- */
.site-footer { background: var(--maroon-deep); color: rgba(248,242,230,.85); padding: 3rem 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-ta { color: var(--gold-soft); }
.footer-brand p { margin-top: .6rem; font-size: .9rem; max-width: 34ch; }
.footer-col h4 { color: var(--gold-soft); font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-col a { color: rgba(248,242,230,.85); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.social-row { display: flex; gap: .6rem; margin-top: .4rem; }
.social-row a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(233,201,122,.4); border-radius: 50%; color: var(--gold-soft);
}
.social-row a:hover { background: var(--maroon); color: #fff; }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid rgba(233,201,122,.25);
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(248,242,230,.85); }
.footer-bottom .org { color: var(--gold-soft); font-family: var(--serif); }

/* scroll-to-top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--maroon); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--maroon-deep); }

/* 8. RESPONSIVE & MOTION ------------------------------------ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
  .about-grid, .travel-grid, .contact-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .hl, .hl:nth-child(1), .hl:nth-child(6) { grid-column: auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: .8rem 1.25rem 1.2rem; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: .75rem .6rem; font-size: 1rem; }
  .nav-menu a.is-current::after { display: none; }
  .nav-menu a.is-current { background: var(--panel); }
  .nav-menu .nav-cta { margin-top: .5rem; }
  .nav-menu a.nav-register { text-align: center; }
  .lang-switch { margin-left: auto; }
}

@media (max-width: 560px) {
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 1rem; }
  .brand-ta { font-size: .82rem; }
  .grid-2, .grid-3, .grid-4, .highlights { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 1rem 1.5rem; }
  .reg-meta { gap: 1rem 1.5rem; }
}

/* ============================================================
   9. 2026 FESTIVAL COMPONENTS
   ============================================================ */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.4rem; }

/* hero poster */
.hero-media { margin: 0; }
.hero-media .poster-link { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-media figcaption { margin-top: .6rem; font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* countdown footer line */
.countdown-foot { margin-top: 1rem; color: rgba(248,242,230,.82); font-family: var(--serif); }

/* about */
.about-body { max-width: 820px; margin: 1.8rem auto 0; }
.about-prose p { margin: 0 0 1rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.about-prose p:last-child { margin-bottom: 0; }

/* programme */
.prog-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.prog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; gap: .9rem; align-items: flex-start; }
.prog-num { font-family: var(--serif); color: var(--gold-ink); font-size: 1.05rem; font-weight: 600; line-height: 1; padding-top: .15rem; }
.prog-card h3 { font-size: 1.05rem; margin: 0; }

/* award categories */
.cat-grid { list-style: none; margin: 1.8rem auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1.6rem; max-width: 880px; }
.cat-grid li { position: relative; padding: .55rem .2rem .55rem 1.4rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.cat-grid li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; transform: translateY(-50%) rotate(45deg); background: var(--gold); }

/* callout / note / lead */
.callout { margin: 1.6rem auto 0; max-width: 880px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 1rem 1.2rem; }
.callout p { margin: .3rem 0; color: var(--ink-soft); font-size: .95rem; }
.callout a { color: var(--maroon); font-weight: 600; }
.note { color: var(--ink-soft); font-size: .9rem; margin-top: 1.2rem; }
.note.center, .lead.center { text-align: center; }
.lead { max-width: 780px; margin: 1.2rem auto 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }
.section--maroon .lead { color: rgba(248,242,230,.85); }

/* seminar */
.seminar-grid { margin-top: 2rem; }
.tick-list, .rule-list, .cross-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.tick-list li, .rule-list li, .cross-list li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-ink); font-weight: 700; }
.rule-list li::before { content: "›"; position: absolute; left: .3rem; color: var(--gold-ink); font-weight: 700; }
.cross-list li::before { content: "×"; position: absolute; left: .15rem; color: var(--coral); font-weight: 700; }
.deadline-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.dl-card { background: var(--maroon); color: var(--ivory); border-radius: var(--radius); padding: 1.3rem 1.4rem; text-align: center; }
.dl-k { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.dl-v { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; margin: .2rem 0; }
.dl-s { display: block; font-size: .85rem; color: rgba(248,242,230,.82); }
.dl-s a { color: var(--gold-soft); }

/* itinerary */
.itin { margin-top: 2rem; overflow-x: auto; }
.itin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.itin-table th, .itin-table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.itin-table thead th { background: var(--maroon); color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.itin-table tbody tr:last-child td { border-bottom: 0; }
.itin-table td:first-child { font-weight: 700; color: var(--maroon); white-space: nowrap; }
.itin-table td:nth-child(2) { white-space: nowrap; color: var(--ink); }

/* accordion */
.acc { margin-top: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc > summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-family: var(--serif); font-size: 1.05rem; color: var(--maroon); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; color: var(--gold-ink); font-size: 1.3rem; line-height: 1; }
.acc[open] > summary::after { content: "\2212"; }
.acc-body { padding: 0 1.2rem 1.4rem; }
.acc-body h4 { margin: 1.3rem 0 .6rem; color: var(--maroon); }
.acc-body h5 { margin: 0 0 .5rem; font-size: .95rem; }
.pkg-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pkg-card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; background: var(--ivory); }
.cost-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .4rem; }
.cost-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: var(--ink-soft); }
.cost-list li b { color: var(--ink); white-space: nowrap; }
.cost-total { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .2rem; }
.cost-total, .cost-total b { color: var(--maroon); font-weight: 700; }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; line-height: 1.6; }
.incl-grid { margin-top: 1.2rem; }
.pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: .4rem; }
.pay-card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; background: var(--ivory); }
.pay-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .5rem; }
.pay-card dl { margin: 0; display: grid; gap: .4rem; }
.pay-card dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .4rem; font-size: .88rem; }
.pay-card dt { color: var(--ink-soft); margin: 0; }
.pay-card dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }

/* register CTA */
.reg-lead { max-width: 640px; margin: 1rem auto 1.4rem; color: rgba(248,242,230,.9); font-size: 1.05rem; line-height: 1.6; }
.reg-lead strong { color: var(--gold-soft); }
.reg-note { margin-top: 1.1rem; font-size: .9rem; color: rgba(248,242,230,.8); }
.reg-note a { color: var(--gold-soft); }
.btn--ghost-ondark { --btn-bg: transparent; --btn-fg: var(--ivory); --btn-bd: rgba(248,242,230,.5); }
.btn--ghost-ondark:hover { --btn-bg: rgba(248,242,230,.1); }
.hero-actions.center { justify-content: center; }

/* committee & contacts */
.comm-grid, .contact-grid { margin-top: 2rem; align-items: start; }
.person-list, .contact-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.person-list li, .contact-list li { display: grid; gap: .05rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.person-list li:last-child, .contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.person-list b, .contact-list b { color: var(--maroon); font-family: var(--serif); font-weight: 600; }
.role { color: var(--ink-soft); font-size: .88rem; }
.contact-list a { color: var(--maroon); font-weight: 600; }
.whatsapp { color: var(--ink-soft); font-size: .82rem; }
.person-more { margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); line-height: 1.6; }
.cmail { margin: .9rem 0 0; }
.cmail a { color: var(--maroon); font-weight: 600; }
.org-facts { margin-top: 1.8rem; text-align: center; color: var(--ink-soft); font-size: .9rem; line-height: 1.7; }
.org-facts a { color: var(--maroon); font-weight: 600; }

/* footer verse */
.hero-verse-sm { font-family: var(--serif-ta); color: var(--gold-soft); font-size: .95rem; margin: 0; }

/* responsive */
@media (max-width: 960px) {
  .hero-media { order: -1; max-width: 360px; margin-inline: auto; }
  .prog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .prog-grid, .cat-grid, .pkg-cards, .pay-grid, .deadline-cards, .incl-grid { grid-template-columns: 1fr; }
  .itin { overflow: visible; }
  .itin-table, .itin-table thead, .itin-table tbody, .itin-table tr, .itin-table td { display: block; width: 100%; }
  .itin-table thead { display: none; }
  .itin-table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 1rem; background: #fff; }
  .itin-table td { border: 0; border-bottom: 1px solid var(--line); padding: .7rem .9rem; white-space: normal; }
  .itin-table tr td:last-child { border-bottom: 0; }
  .itin-table td::before { content: attr(data-th-en); display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .2rem; }
  html[data-lang="ta"] .itin-table td::before { content: attr(data-th-ta); }
  .pay-card dl > div { grid-template-columns: 1fr; gap: 0; }
  .pay-card dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
}
