:root {
  --jasmine: #fffaf0;
  --rice-paper: #f2eadc;
  --ink: #28181b;
  --lacquer: #7c2029;
  --lacquer-deep: #4d111a;
  --turmeric: #e0a438;
  --peacock: #165c57;
  --peacock-deep: #0c3536;
  --bp-navy: #081120;
  --bp-navy-surface: #0e1b32;
  --bp-bronze: #9a5b28;
  --bp-bronze-light: #c88950;
  --line: color-mix(in srgb, var(--lacquer) 22%, transparent);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --shell: min(1180px, calc(100vw - 2.5rem));
  --shadow: 0 24px 70px rgb(45 19 22 / 18%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--jasmine);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--jasmine);
  color: var(--lacquer-deep);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 4px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: white;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid rgb(255 250 240 / 28%);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.brand img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 1px solid rgb(255 255 255 / 55%); }
.nav-links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { text-decoration-thickness: 1px; text-underline-offset: .35rem; }
.nav-contact { padding: .55rem .9rem; border: 1px solid rgb(255 250 240 / 62%); text-decoration: none; }

.hero {
  position: relative;
  min-height: min(880px, 96vh);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--peacock-deep);
  color: white;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: image-set(url("../images/0I8A8205.155a5b39b479.avif") type("image/avif"), url("../images/0I8A8205.dc6959944258.webp") type("image/webp"), url("../images/0I8A8205.1ab270a976bd.jpg")) center 18% / cover no-repeat;
  transform: scale(1.01);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(25 11 15 / 92%) 0%, rgb(62 14 22 / 76%) 48%, rgb(10 53 54 / 25%) 82%),
    linear-gradient(0deg, rgb(20 8 10 / 70%), transparent 48%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5.5rem;
  background: var(--jasmine);
  clip-path: polygon(0 65%, 9% 45%, 18% 62%, 30% 38%, 42% 59%, 53% 36%, 64% 57%, 76% 42%, 88% 61%, 100% 44%, 100% 100%, 0 100%);
}
.hero-copy { padding-block: 11rem 9rem; }
.eyebrow, .section-kicker {
  margin: 0 0 1rem;
  color: var(--lacquer);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow { color: #f3c86e; }
h1, h2, h3 { margin-block: 0; font-family: var(--serif); line-height: .98; text-wrap: balance; }
h1 { max-width: 890px; font-size: clamp(3.2rem, 7.8vw, 7rem); letter-spacing: -.045em; }
h2 { max-width: 820px; font-size: clamp(2.5rem, 5.4vw, 5rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
.hero-tagline { max-width: 590px; margin: 1.5rem 0 2rem; color: #f8ead0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; padding: .85rem 1.25rem; border: 1px solid transparent; font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: transform 180ms ease, background-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--turmeric); color: var(--lacquer-deep); }
.button-primary:hover { background: #efbc58; }
.button-quiet { border-color: rgb(255 255 255 / 58%); color: white; }
.hero-rail { position: absolute; right: 1.1rem; bottom: 7.5rem; margin: 0; writing-mode: vertical-rl; color: rgb(255 255 255 / 72%); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.section { padding-block: clamp(5rem, 9vw, 9rem); scroll-margin-top: 2rem; }
.section p { color: #59494a; }
.split-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: start; }
.prose { max-width: 680px; font-size: 1.08rem; }
.prose p:first-child { margin-top: 0; }
.contact-card { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.25rem 0; border-block: 1px solid var(--line); color: var(--ink); font-style: normal; font-weight: 700; }
.contact-card a { color: var(--lacquer); }

.forms, .gallery, .contact { background: var(--peacock-deep); color: white; }
.light { color: white !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 4rem; background: rgb(255 255 255 / 20%); }
.form-grid article { padding: clamp(2rem, 5vw, 4.5rem); background: var(--peacock-deep); }
.form-grid article:first-child { background: #124747; }
.form-grid p { color: #d7e6df; }
.form-mark { margin: 0 0 3rem; color: var(--turmeric) !important; font-family: var(--serif); font-size: 1.2rem; }
.form-grid h3 { margin-bottom: 1.5rem; color: #fff7e8; }

.director-grid { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.portrait-frame { position: relative; margin: 0; padding: 1rem 1rem 3.5rem; background: var(--rice-paper); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; filter: saturate(.82) contrast(1.05); }
.portrait-frame figcaption { position: absolute; right: 1.2rem; bottom: 1rem; color: var(--lacquer); font-family: var(--serif); font-style: italic; }
.director h2 { margin-bottom: 2rem; }
.highlights { margin-top: 2rem; border-block: 1px solid var(--line); }
.highlights summary { padding: 1rem 0; color: var(--lacquer); font-weight: 800; cursor: pointer; }
.highlights li { margin-bottom: .45rem; color: #59494a; }

.classes { background: var(--rice-paper); }
.classes h2 { margin-bottom: 4rem; }
.class-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.class-grid article { min-height: 290px; padding: 2.1rem; border-right: 1px solid var(--line); }
.class-grid article:last-child { border-right: 0; }
.class-grid span { color: var(--lacquer); font-family: var(--serif); font-size: .9rem; }
.class-grid h3 { margin: 3rem 0 1.2rem; }

.gallery h2 { margin-bottom: 4rem; }
.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.2fr; gap: .7rem; align-items: end; }
.gallery-item { padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; }
.gallery-item:nth-child(even) { margin-bottom: 2.5rem; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); }
.gallery-item:hover img { transform: scale(1.035); }

.mudra-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.mudra-grid h2 { margin-bottom: 1.6rem; }
.mudra-grid figure { margin: 0; padding: clamp(1rem, 2vw, 2rem); background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
.mudra-grid img { width: 100%; height: auto; aspect-ratio: 1029 / 800; }

.testimonials { background: #eadfce; }
.testimonials h2 { margin-bottom: 3.5rem; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
blockquote { margin: 0; padding: clamp(2rem, 5vw, 4rem); background: var(--jasmine); }
blockquote p { margin-top: 0; color: var(--ink) !important; font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.35; }
blockquote footer { color: var(--lacquer); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: end; }
.contact-actions p { color: #d7e6df; }
.contact-actions .button { margin: 1rem 1rem 0 0; }
.text-link { display: inline-block; padding-block: .8rem; font-weight: 700; text-underline-offset: .3rem; }
.site-footer { padding-block: 2.5rem; background: #071f20; color: #cfddd8; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: end; font-size: .8rem; }
.footer-grid p { margin: 0; }
.footer-grid strong { color: white; font-family: var(--serif); font-size: 1.3rem; }

.has-js .reveal { transform: translateY(1.2rem); transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
.has-js .reveal.is-visible { transform: none; }
.lightbox { max-width: min(88vw, 760px); padding: 2.8rem .8rem .8rem; border: 0; background: #071f20; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgb(10 5 7 / 88%); }
.lightbox img { max-height: 82vh; width: auto; }
.lightbox-close { position: absolute; top: .5rem; right: .7rem; border: 0; background: transparent; color: white; cursor: pointer; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--peacock-deep); }
.error-card { width: min(680px, 100%); padding: clamp(2rem, 7vw, 5rem); background: var(--jasmine); box-shadow: var(--shadow); }
.error-card img { width: 6rem; height: 6rem; margin-bottom: 2rem; border-radius: 50%; object-fit: cover; }
.error-card h1 { color: var(--lacquer-deep); font-size: clamp(2.7rem, 8vw, 5.5rem); }
.error-card > p:not(.section-kicker) { margin: 1.5rem 0 2rem; color: #59494a; font-size: 1.1rem; }

/* --- Balaprathibha Event & Promo Styles --- */
.nav-promo {
  color: #f3c86e !important;
  border-bottom: 1px solid #f3c86e;
}

.promo-band {
  background: var(--bp-navy);
  color: white;
  border-bottom: 1px solid color-mix(in srgb, var(--bp-bronze) 40%, transparent);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.promo-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.promo-poster-card {
  position: relative;
  background: var(--bp-navy-surface);
  padding: .75rem .75rem 2rem;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  border: 1px solid color-mix(in srgb, var(--bp-bronze) 50%, transparent);
}
.promo-poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.promo-content .section-kicker {
  color: #f3c86e;
}
.promo-content h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  color: #fff7e8;
  margin-bottom: .8rem;
}
.promo-band .promo-lead {
  font-weight: 700;
  color: #f3c86e;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
/* Scoped above `.section p` (0,1,1), which otherwise wins and paints these
   dark on the navy band. Same collision as .event-contact .contact-lead. */
.promo-band .promo-desc {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

/* Three-up on desktop, stacked on mobile. Scoped like the other navy sections so
   `.section p` (0,1,1) cannot repaint this text dark on the navy ground. */
.event-highlights {
  background: var(--bp-navy-surface);
  border-top: 1px solid color-mix(in srgb, var(--bp-bronze) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bp-bronze) 30%, transparent);
}
.highlight-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 780px) {
  .highlight-grid { grid-template-columns: repeat(3, 1fr); }
}
.highlight-card {
  background: color-mix(in srgb, var(--bp-navy) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--bp-bronze) 45%, transparent);
  border-radius: 4px;
  padding: 1.5rem 1.6rem;
}
.event-highlights .highlight-card h3 {
  color: var(--turmeric);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}
.event-highlights .highlight-card p {
  color: #e2e8f0;
  font-size: 1rem;
  margin: 0;
}
.event-highlights .section-kicker,
.event-highlights h2 {
  color: var(--jasmine);
}
.event-highlights .section-kicker { color: var(--turmeric); }

.event-policies {
  background: var(--bp-navy);
  border-top: 1px solid color-mix(in srgb, var(--bp-bronze) 30%, transparent);
}
.event-policies .section-kicker { color: var(--turmeric); }
.event-policies h2 { color: var(--jasmine); }
/* Scoped above `.section p` (0,1,1), as with every other navy section. */
.event-policies .rules-summary { color: #e2e8f0; }
.event-policies .policy-list li { color: #e2e8f0; }
.event-policies .policy-list li::marker { color: var(--turmeric); }

/* A single gold line above the steps: the one date every entrant is waiting on.
   Scoped like the other navy sections so `.section p` cannot repaint it dark. */
.how-it-works .results-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  margin: 1.75rem 0 0;
  padding: 0.95rem 1.25rem;
  background: color-mix(in srgb, var(--turmeric) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--turmeric) 45%, transparent);
  border-left: 3px solid var(--turmeric);
  border-radius: 3px;
  color: var(--ink);
  font-size: 1.02rem;
}
.results-callout-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lacquer);
}
.how-it-works .results-callout strong { color: var(--lacquer-deep); }

.event-header {
  position: relative;
  background: var(--bp-navy);
}
.event-hero {
  background: var(--bp-navy);
  color: white;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  border-bottom: 1px solid color-mix(in srgb, var(--bp-bronze) 35%, transparent);
}
.event-hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.event-poster-frame {
  background: var(--bp-navy-surface);
  padding: .85rem .85rem 2.2rem;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  border: 1px solid color-mix(in srgb, var(--bp-bronze) 50%, transparent);
}
.event-poster-frame img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.event-hero-copy h1 {
  font-size: clamp(2.2rem, 7vw, 6rem);
  color: #fff7e8;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}
.event-tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #f8ead0;
  margin-bottom: 2rem;
  font-style: italic;
}
.event-meta-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.25rem 0;
  margin-bottom: 2.5rem;
  border-block: 1px solid rgb(255 255 255 / 25%);
}
.event-meta-item {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.event-meta-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #f3c86e;
  font-weight: 700;
  margin-bottom: .25rem;
}
.event-meta-item strong {
  font-size: 1.15rem;
  color: white;
}

.glance-strip {
  background: var(--lacquer-deep);
  color: white;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
}
.glance-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.glance-item {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgb(255 255 255 / 20%);
  padding-left: 1rem;
}
.glance-item:first-child {
  border-left: 0;
  padding-left: 0;
}
.glance-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #f3c86e;
  font-weight: 700;
  margin-bottom: .3rem;
}
.glance-value {
  font-size: .98rem;
  line-height: 1.35;
  color: white;
}

.how-it-works {
  background: var(--jasmine);
}
.how-it-works h2 {
  margin-bottom: 3.5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.step-number {
  margin: 0 0 1.5rem;
  color: var(--lacquer);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
}
.step-card h3 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
}
.step-card p {
  margin: 0;
  font-size: 1.02rem;
}

.event-categories {
  background: var(--bp-navy);
  color: white;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.category-card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  background: var(--bp-navy-surface);
  border: 1px solid color-mix(in srgb, var(--bp-bronze) 35%, transparent);
}
.category-tag {
  display: inline-block;
  padding: .3rem .75rem;
  background: var(--bp-bronze);
  color: white;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.category-card h3 {
  color: #fff7e8;
  margin-bottom: 1rem;
  font-size: 1.65rem;
}
.category-card p {
  color: #e2e8f0;
  font-size: 1.02rem;
}
.category-details {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: #cbd5e1;
  font-size: .95rem;
}
.category-details li {
  margin-bottom: .4rem;
}

.event-rules {
  background: var(--jasmine);
}
.rules-summary {
  font-size: 1.1rem;
  color: #59494a;
  margin-top: 1.5rem;
}
.rules-list {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 1.05rem;
}
.rules-list li {
  margin-bottom: 1rem;
  color: #3b2c2e;
  line-height: 1.6;
}

.event-register {
  background: var(--rice-paper);
}
.event-register h2 {
  margin-bottom: 2.5rem;
}
.register-placeholder-card,
.closed-notice-card {
  padding: clamp(2rem, 5vw, 4rem);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.register-placeholder-card h3,
.closed-notice-card h3 {
  color: var(--lacquer-deep);
  margin-bottom: 1rem;
}
.register-placeholder-card p,
.closed-notice-card p {
  font-size: 1.1rem;
  color: #48393b;
}
.register-note {
  margin-top: 1.5rem;
  font-weight: 700;
  color: var(--lacquer) !important;
  font-size: 1rem !important;
}

/* --- Registration Form Styles --- */
.registration-form {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.5rem;
}
.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}
.form-section legend {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lacquer-deep);
  padding: 0 0 1.25rem;
  width: 100%;
  border-bottom: 2px solid var(--lacquer);
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group label,
.group-label {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  color: #2b1f21;
  margin-bottom: .45rem;
}
.form-group .required {
  color: #b91c1c;
  font-weight: 800;
}
.form-group .optional {
  font-weight: 400;
  font-size: .85rem;
  color: #766466;
}
.form-group .field-hint {
  display: block;
  font-size: .85rem;
  color: #655456;
  margin-top: .35rem;
  line-height: 1.4;
}
.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"],
.registration-form input[type="url"],
.registration-form input[type="date"],
.registration-form select,
.registration-form textarea {
  width: 100%;
  min-height: 44px;
  padding: .65rem .85rem;
  font-size: 1rem;
  font-family: inherit;
  color: #222;
  background: #faf8f5;
  border: 1px solid #c9b9b0;
  border-radius: 0;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  outline: 2px solid var(--lacquer);
  outline-offset: 1px;
  background: white;
}
.registration-form textarea {
  min-height: 90px;
  resize: vertical;
}

/* Radio & Checkbox styling */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: .4rem;
}
.radio-label,
.checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: 1rem;
  color: #2b1f21;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  padding-block: .25rem;
}
.radio-label input,
.checkbox-label input {
  margin-top: .2rem;
  width: 20px;
  height: 20px;
  accent-color: var(--lacquer);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-group {
  margin-bottom: 1.25rem;
}

/* Error Summary Box */
.form-error-summary {
  background: #fef2f2;
  border: 2px solid #b91c1c;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.form-error-summary h3 {
  color: #991b1b;
  font-size: 1.15rem;
  margin: 0 0 .75rem;
}
.form-error-summary ul {
  margin: 0;
  padding-left: 1.4rem;
  color: #991b1b;
}
.form-error-summary li {
  margin-bottom: .35rem;
}
.form-error-summary a {
  color: #991b1b;
  font-weight: 600;
  text-decoration: underline;
}
.form-warning-summary {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: #92400e;
  font-size: .95rem;
}

/* Field error message */
.field-error {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #b91c1c;
  margin-top: .35rem;
}
.input-error {
  border-color: #b91c1c !important;
  background: #fef2f2 !important;
}

/* Live Age Badge */
.live-age-badge {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  margin-top: .3rem;
  empty-cells: hide;
}
.live-age-badge:empty {
  display: none;
}
.live-age-badge.is-valid {
  color: var(--peacock-deep);
  background: #e8f3ef;
  padding: .2rem .5rem;
  border-radius: 2px;
}
.live-age-badge.is-invalid {
  color: #991b1b;
  background: #fee2e2;
  padding: .2rem .5rem;
  border-radius: 2px;
}

/* Group Dancers container & rows */
.group-rule-hint {
  background: #f4ede6;
  padding: .75rem 1rem;
  border-left: 3px solid var(--lacquer);
  margin-bottom: 1.5rem;
}
.dancer-row {
  background: #fcfbf9;
  border: 1px solid #e5dbd2;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.dancer-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  border-bottom: 1px solid #ede4dc;
  padding-bottom: .5rem;
}
.dancer-row-header h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--lacquer-deep);
}
.button-text {
  background: none;
  border: 0;
  padding: 0;
  font-size: .85rem;
  font-weight: 700;
  color: #b91c1c;
  cursor: pointer;
  text-decoration: underline;
}
.button-text:hover {
  color: #7f1d1d;
}
.group-row-actions {
  margin-top: 1rem;
}

/* Form actions */
.form-actions {
  margin-top: 2rem;
  text-align: center;
}
.button-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* JS toggle subforms */
html.has-js #section-dancer.is-solo #subform-group {
  display: none;
}
html.has-js #section-dancer.is-group #subform-solo {
  display: none;
}
html.has-js .dancer-row.is-hidden {
  display: none;
}
html.has-js #section-audition.is-finals-same #group-finalsPieceChange {
  display: none;
}

/* Accessible visually hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Receipt confirmation page */
.receipt-box {
  background: #f4ede6;
  border: 2px solid var(--lacquer);
  padding: 1.5rem;
  margin-top: 1.5rem;
  max-width: 500px;
}
.receipt-label {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--lacquer);
  margin: 0 0 .25rem;
}
.receipt-code code {
  font-size: 2rem;
  font-weight: 800;
  color: var(--lacquer-deep);
  letter-spacing: .05em;
  font-family: monospace;
}
.receipt-subtext {
  font-size: .85rem;
  color: #655456;
  margin: .35rem 0 0;
}
.receipt-steps {
  padding-left: 1.4rem;
  line-height: 1.6;
}
.receipt-steps li {
  margin-bottom: .85rem;
}
.receipt-notice {
  background: #fcfbf9;
  border: 1px solid #e5dbd2;
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: .95rem;
  line-height: 1.5;
}
.receipt-notice p {
  margin: 0 0 .5rem;
}
.receipt-notice p:last-child {
  margin: 0;
}

.event-contact {
  background: var(--bp-navy);
  color: white;
  border-top: 1px solid color-mix(in srgb, var(--bp-bronze) 30%, transparent);
}
/* `.section p` is (0,1,1) and beats a bare `.contact-lead` (0,1,0), so on the navy
   event section the inherited dark body colour won and left this paragraph at 2.2:1.
   Scoping to the section raises specificity above it. */
.event-contact .contact-lead {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .nav-links a:not(.nav-contact) { display: none; }
  .hero { min-height: 760px; }
  .hero-copy { padding-block: 9rem 8rem; }
  .hero-rail { display: none; }
  .split-grid, .director-grid, .mudra-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-grid, .quote-grid { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: 1fr; }
  .class-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(even) { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .contact-card { flex-direction: column; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-poster-card { max-width: 320px; margin-inline: auto; transform: none; }
  .event-hero-grid { grid-template-columns: 1fr; }
  .event-poster-frame { max-width: 340px; margin-inline: auto; transform: none; }
  .event-hero { padding-block: 2.5rem 4rem; }
  .glance-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .glance-item { border-left: 0; padding-left: 0; border-bottom: 1px solid rgb(255 255 255 / 15%); padding-bottom: .75rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  :root { --shell: min(100% - 1.5rem, 1180px); }
  .hero-copy { padding-bottom: 7rem; }
  .hero-actions .button { width: 100%; }
  .promo-actions .button { width: 100%; }
  .promo-poster-card, .event-poster-frame { max-width: 100%; }
  .glance-grid { grid-template-columns: 1fr; }
  .gallery-grid { gap: .4rem; }
  .portrait-frame { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .has-js .reveal { transform: none; }
}
