:root {
  --kca-ink: #13241c;
  --kca-forest: #1b4d3e;
  --kca-leaf: #2f6b4f;
  --kca-gold: #c9a227;
  --kca-gold-soft: #e8d48b;
  --kca-cream: #f7f3e8;
  --kca-sand: #efe6d2;
  --kca-mist: #dce8e1;
  --background: var(--kca-cream);
  --foreground: var(--kca-ink);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(46, 107, 79, 0.12), transparent 50%),
    linear-gradient(180deg, var(--kca-sand) 0%, var(--kca-cream) 40%, var(--kca-mist) 100%);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--kca-forest);
}

.font-display {
  font-family: var(--font-display);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(19, 36, 28, 0.08);
  background: rgba(247, 243, 232, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}

.site-header--overlay .brand,
.site-header--overlay .nav a {
  color: #fff;
}

.site-header--overlay .nav a:hover {
  color: var(--kca-gold-soft);
}

.site-header--overlay.is-scrolled {
  background: rgba(247, 243, 232, 0.92);
  border-bottom-color: rgba(19, 36, 28, 0.08);
  color: var(--kca-ink);
}

.site-header--overlay.is-scrolled .brand,
.site-header--overlay.is-scrolled .nav a {
  color: var(--kca-ink);
}

.site-header--overlay.is-scrolled .nav a:hover {
  color: var(--kca-forest);
}

.page-home {
  padding-top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--kca-ink);
  opacity: 0.85;
}

.nav a:hover {
  opacity: 1;
  color: var(--kca-forest);
}

.site-footer {
  margin-top: 0;
  padding: 2.25rem 1.5rem;
  border-top: none;
  background: rgba(19, 36, 28, 0.94);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--kca-gold-soft);
}

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}

.footer-contact {
  margin: 0;
}

.footer-contact a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--kca-gold-soft);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.footer-legal a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-legal a:hover {
  color: var(--kca-gold-soft);
}

/*
 * Event posters already include title/date art. Show the full poster
 * (uncropped) above a lean CTA band on all viewports.
 */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  grid-template-areas:
    "slides"
    "content";
  align-items: stretch;
  justify-items: stretch;
  overflow: hidden;
  background: #0f241c;
}

.hero-slides {
  grid-area: slides;
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  background: #102820;
  padding: 0.75rem 1rem 0;
}

.hero-bg {
  grid-area: 1 / 1;
  position: relative;
  width: min(100%, 28rem);
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
  pointer-events: none;
}

.hero-bg.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 0;
  pointer-events: auto;
}

.hero-bg img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 641px) {
  .hero-slides {
    padding: 1rem 1.25rem 0;
  }

  .hero-bg {
    /* Full poster at a large laptop size; page scrolls to show all of it */
    width: min(100%, 44rem);
  }
}

@media (min-width: 1100px) {
  .hero-bg {
    width: min(100%, 52rem);
  }
}

.hero-content {
  grid-area: content;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 1.35rem 1.5rem 2.1rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(201, 162, 39, 0.12), transparent 60%),
    linear-gradient(180deg, #16352b 0%, #0f241c 100%);
}

/* Poster art already carries brand / title — keep the band to CTA only */
.hero-logo-wrap,
.hero-presents,
.hero-expect,
.hero-title,
.hero-when {
  display: none;
}

.page-home .site-header--overlay {
  position: sticky;
  background: rgba(15, 36, 28, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Home header stays dark over the poster — keep light menu text after scroll
   (generic .is-scrolled rules switch to ink on cream, which vanishes here). */
.page-home .site-header--overlay.is-scrolled {
  background: rgba(15, 36, 28, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.page-home .site-header--overlay.is-scrolled .brand,
.page-home .site-header--overlay.is-scrolled .nav a {
  color: #fff;
}

.page-home .site-header--overlay.is-scrolled .nav a:hover {
  color: var(--kca-gold-soft);
}

.hero-dots {
  grid-area: slides;
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 0.85rem;
}

.hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  background: var(--kca-gold-soft);
  border-color: var(--kca-gold-soft);
  transform: scale(1.15);
}

.hero-logo-wrap {
  margin: 0 0 0.85rem;
}

.hero-logo {
  width: clamp(4.25rem, 10vw, 6.25rem);
  height: clamp(4.25rem, 10vw, 6.25rem);
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(232, 212, 139, 0.35);
}

.hero-presents {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kca-gold-soft);
}

.hero-presents span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-title-onam,
.hero-title-year {
  display: block;
}

.hero-title-onam {
  font-size: clamp(3.4rem, 12vw, 5.75rem);
  color: #dff5e6;
  text-shadow: 0 2px 0 rgba(19, 36, 28, 0.35);
}

.hero-title-year {
  font-size: clamp(3rem, 11vw, 5.1rem);
  background: linear-gradient(180deg, #fff3c4 0%, var(--kca-gold) 55%, #b07a12 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-when {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin: 0 0 0.55rem;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-expect {
  margin: 0 0 1.45rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.hero-soon {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--kca-gold-soft);
}

.hero .btn-primary {
  min-width: 10.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.35rem;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--kca-gold);
  color: var(--kca-ink);
}

.btn-primary:hover {
  background: var(--kca-gold-soft);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}

.btn-danger {
  background: #8b2e2e;
  color: #fff;
}

.btn-danger:hover {
  background: #6e2323;
}

.section {
  padding: 3.5rem 1.5rem;
  max-width: 60rem;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.5rem;
  color: var(--kca-forest);
}

.section .lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: rgba(19, 36, 28, 0.8);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1.75rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.countdown div {
  padding: 0.5rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(19, 36, 28, 0.12);
}

.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.05;
  color: var(--kca-forest);
  letter-spacing: -0.03em;
}

.countdown span {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 36, 28, 0.55);
}

.offer-list {
  display: grid;
  gap: 1rem;
}

.offer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(19, 36, 28, 0.1);
}

/* —— Home sections —— */
.home-band {
  padding: 4.5rem 1.5rem;
  border-top: 1px solid rgba(19, 36, 28, 0.06);
}

.home-band-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.home-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kca-leaf);
}

.home-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 0.55rem;
  color: var(--kca-forest);
  letter-spacing: -0.02em;
}

.home-band .lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: rgba(19, 36, 28, 0.78);
  font-size: 1.05rem;
}

.home-countdown {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(201, 162, 39, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.home-countdown .home-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-align: center;
}

.home-countdown h2 {
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  text-align: center;
}

.home-countdown .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  text-align: center;
}

.home-tickets {
  background:
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(46, 107, 79, 0.1), transparent 55%);
}

.ticket-board {
  display: grid;
  gap: 0;
  max-width: 40rem;
}

.ticket-board-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(19, 36, 28, 0.12);
}

.ticket-board-row:first-child {
  border-top: 1px solid rgba(19, 36, 28, 0.12);
}

.ticket-board-copy {
  display: grid;
  gap: 0.15rem;
}

.ticket-board-copy strong {
  font-size: 1.05rem;
}

.ticket-board-copy span {
  font-size: 0.9rem;
  color: rgba(19, 36, 28, 0.65);
}

.ticket-board-price {
  text-align: right;
  flex-shrink: 0;
}

.ticket-board-price span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--kca-forest);
}

.ticket-board-price small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgba(19, 36, 28, 0.55);
}

.home-cta-wrap {
  margin: 1.75rem 0 0;
}

.home-venue {
  background: rgba(19, 36, 28, 0.94);
  color: #fff;
  border-top: none;
}

.home-venue h2,
.home-venue .home-kicker {
  color: var(--kca-gold-soft);
}

.home-venue .lede {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
}

.home-venue-inner {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .home-venue-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 3rem;
  }
}

.venue-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.venue-schedule {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28rem;
}

.home-closing {
  background: linear-gradient(180deg, rgba(220, 232, 225, 0.45), rgba(255, 255, 255, 0.2) 70%);
}

.home-closing-inner {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 820px) {
  .home-closing-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.home-about h2,
.home-upcoming h2 {
  margin-bottom: 0.75rem;
}

.home-about .lede.about-copy {
  max-width: none;
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.upcoming-list {
  display: grid;
  gap: 0;
  max-width: none;
}

.upcoming-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(19, 36, 28, 0.12);
}

.upcoming-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.upcoming-copy strong {
  font-size: 1.05rem;
  color: var(--kca-ink);
}

.upcoming-copy span {
  font-size: 0.9rem;
  color: rgba(19, 36, 28, 0.65);
}

.upcoming-date {
  flex-shrink: 0;
  text-align: right;
  font-size: 0.92rem;
  color: var(--kca-leaf);
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.15rem;
}

@media (max-width: 520px) {
  .upcoming-row {
    flex-direction: column;
    gap: 0.4rem;
  }

  .upcoming-date {
    text-align: left;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    transition: none;
  }
}

.form-panel {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 36, 28, 0.08);
  padding: 1.5rem;
  max-width: 36rem;
}

.captcha-field {
  margin: 1rem 0;
}

.book-checkout .captcha-field {
  margin: 0.25rem 0 0;
  max-width: 100%;
  overflow: hidden;
}

.book-checkout .g-recaptcha {
  transform-origin: left top;
}

@media (max-width: 360px) {
  .book-checkout .g-recaptcha {
    transform: scale(0.92);
  }
}

/* reCAPTCHA v3 badge is fixed; keep it from expanding page scroll width */
.grecaptcha-badge {
  z-index: 5;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.85rem 0 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(19, 36, 28, 0.2);
  border-radius: 0.3rem;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  outline-offset: 1px;
  border-color: var(--kca-gold);
}

.qty-row:not(.ticket-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(19, 36, 28, 0.08);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-controls button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(19, 36, 28, 0.18);
  background: #fff;
  color: var(--kca-forest);
  cursor: pointer;
  border-radius: 0.3rem;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.qty-controls button:hover {
  background: var(--kca-mist);
  border-color: var(--kca-leaf);
}

.qty-controls button:active {
  transform: scale(0.94);
}

.qty-controls input[type="number"] {
  width: 2.75rem;
  text-align: center;
  padding: 0.4rem 0.2rem;
  -moz-appearance: textfield;
}

.qty-controls input[type="number"]::-webkit-outer-spin-button,
.qty-controls input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* —— Booking page —— */
.book-page {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

.book-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(19, 36, 28, 0.1);
}

.book-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kca-leaf);
}

.book-title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kca-forest);
  line-height: 1.15;
}

.book-meta {
  margin: 0;
  color: rgba(19, 36, 28, 0.72);
  font-size: 0.98rem;
}

.book-meta-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.book-form {
  display: grid;
  gap: 1.75rem;
}

.book-section {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(19, 36, 28, 0.08);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.book-section-head {
  margin-bottom: 1.1rem;
}

.book-section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--kca-forest);
}

.book-section-head p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(19, 36, 28, 0.7);
  max-width: 32rem;
}

.ticket-list {
  display: grid;
}

.ticket-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(19, 36, 28, 0.08);
  transition: background 0.2s ease;
}

.ticket-row:first-child {
  padding-top: 0.25rem;
}

.ticket-row:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.ticket-row.is-selected {
  background: linear-gradient(90deg, rgba(46, 107, 79, 0.06), transparent 70%);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.ticket-info {
  min-width: 0;
}

.ticket-name {
  font-weight: 700;
  color: var(--kca-ink);
}

.ticket-desc {
  font-size: 0.85rem;
  color: rgba(19, 36, 28, 0.68);
  margin-top: 0.15rem;
}

.ticket-price {
  text-align: right;
  min-width: 4.5rem;
}

.ticket-amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--kca-forest);
  transition: color 0.2s ease;
}

.ticket-row.is-prime .ticket-amount {
  color: #8a6b10;
}

.ticket-prime-hint {
  display: block;
  font-size: 0.75rem;
  color: rgba(19, 36, 28, 0.55);
  margin-top: 0.1rem;
}

.family-ages {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(19, 36, 28, 0.15);
  animation: fade-up 0.4s ease-out both;
}

.family-ages > label {
  margin-top: 0;
}

.family-ages-hint {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: rgba(19, 36, 28, 0.65);
}

.family-age-inputs {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.field-grid {
  display: grid;
  gap: 0.15rem 1rem;
}

.field label {
  margin-top: 0.65rem;
}

.field:first-child label {
  margin-top: 0;
}

.btn-compact {
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
}

.prime-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem;
  background: rgba(232, 212, 139, 0.22);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.prime-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-weight: 600;
  cursor: pointer;
}

.prime-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--kca-forest);
}

.prime-msg {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.25rem;
  color: rgba(19, 36, 28, 0.75);
}

.prime-msg.is-ok {
  color: var(--kca-forest);
  font-weight: 600;
}

.prime-msg.is-error {
  color: #6b1d1d;
}

.book-checkout {
  position: sticky;
  bottom: 0.75rem;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  background: rgba(19, 36, 28, 0.94);
  color: #fff;
  box-shadow: 0 12px 32px rgba(19, 36, 28, 0.22);
}

.book-checkout .book-total {
  grid-column: 1;
  min-width: 0;
}

.book-checkout .book-submit {
  grid-column: 2;
  justify-self: end;
}

.book-checkout .captcha-field,
.book-checkout .book-pay-hint {
  grid-column: 1 / -1;
}

.book-total-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.book-total-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.book-total-value.is-updating {
  animation: total-pulse 0.35s ease;
}

.book-submit {
  min-width: 12rem;
}

.book-pay-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.78;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.consent-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 36, 28, 0.1);
}

.consent-notice {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(19, 36, 28, 0.82);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.consent-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--kca-forest);
}

.consent-check a {
  color: var(--kca-forest);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.legal-page {
  max-width: 42rem;
}

.legal-intro {
  margin-bottom: 2rem;
}

.legal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 36, 28, 0.55);
  font-weight: 700;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  margin: 0 0 0.65rem;
  color: var(--kca-forest);
}

.legal-updated {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(19, 36, 28, 0.6);
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.55rem;
  color: var(--kca-forest);
}

.legal-body p,
.legal-body li {
  color: rgba(19, 36, 28, 0.86);
  line-height: 1.6;
}

.legal-body ul {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.legal-body li + li {
  margin-top: 0.35rem;
}

.legal-body a {
  color: var(--kca-forest);
  font-weight: 600;
}

@keyframes total-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.alert {
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border-radius: 0.3rem;
}

.alert-error {
  background: #f8e8e8;
  color: #6b1d1d;
  border: 1px solid #e2b4b4;
}

.alert-success {
  background: #e6f2eb;
  color: #1b4d3e;
  border: 1px solid #b7d4c4;
}

.alert-info {
  background: #eef2f0;
  color: #13241c;
  border: 1px solid #c5d4cc;
}

.checkin-details {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 36, 28, 0.12);
  border-radius: 0.35rem;
}

.checkin-details-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.checkin-ref {
  margin: 0;
  font-size: 1.15rem;
}

.checkin-name {
  margin: 0.15rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--kca-ink);
}

.checkin-meta {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.checkin-meta dt {
  margin: 0;
  color: rgba(19, 36, 28, 0.65);
}

.checkin-meta dd {
  margin: 0;
  word-break: break-word;
}

.checkin-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkin-count {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.55rem;
  background: var(--kca-mist);
  border-radius: 0.25rem;
  text-align: center;
}

.checkin-count-total {
  background: linear-gradient(180deg, var(--kca-gold-soft) 0%, var(--kca-gold) 100%);
}

.checkin-count-in {
  background: #e6f2eb;
}

.checkin-count-pending {
  background: #f7ecd6;
}

.checkin-count-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(19, 36, 28, 0.7);
}

.checkin-count-value {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--kca-ink);
}

.checkin-count-hint {
  font-size: 0.72rem;
  color: rgba(19, 36, 28, 0.55);
}

.checkin-section-title {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(19, 36, 28, 0.65);
}

.checkin-lines {
  margin: 0;
  padding-left: 1.1rem;
}

.checkin-lines li {
  margin: 0.2rem 0;
}

.checkin-people-wrap {
  margin-top: 0.35rem;
}

.checkin-people-tools {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 0.45rem;
}

.checkin-link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--kca-forest);
  text-decoration: underline;
  cursor: pointer;
}

.checkin-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkin-person {
  margin: 0;
  border: 1px solid rgba(19, 36, 28, 0.14);
  border-radius: 0.35rem;
  background: #fff;
}

.checkin-person.is-in {
  background: #e6f2eb;
  border-color: #b7d4c4;
}

.checkin-person-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
}

.checkin-person.is-in .checkin-person-row {
  cursor: default;
}

.checkin-person-row input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  accent-color: var(--kca-forest);
}

.checkin-person-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.checkin-person-label {
  font-weight: 600;
}

.checkin-person-detail {
  font-size: 0.82rem;
  color: rgba(19, 36, 28, 0.65);
}

.checkin-person-badge {
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 0.2rem;
}

.checkin-person-badge.is-in {
  color: #fff;
  background: var(--kca-forest);
}

.checkin-person-badge.is-pending {
  color: var(--kca-ink);
  background: var(--kca-gold);
}

.checkin-people-empty {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.checkin-actions {
  margin-top: 0.85rem;
}

@media (max-width: 640px) {
  .checkin-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkin-meta {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .checkin-meta dt {
    font-size: 0.78rem;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(19, 36, 28, 0.1);
  vertical-align: top;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.barcode-wrap {
  text-align: center;
  margin: 1.5rem 0;
}

.barcode-wrap img {
  max-width: 100%;
  width: 320px;
  height: auto;
  background: #fff;
  padding: 0.5rem 0;
}

.organiser-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.attendee-totals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.attendee-total {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 36, 28, 0.1);
  padding: 0.85rem 1rem;
}

.attendee-total-checkin {
  background: #e6f2eb;
  border-color: #b7d4c4;
}

.attendee-total-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(19, 36, 28, 0.75);
}

.attendee-total-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.2rem 0;
}

.attendee-total-hint {
  display: block;
  font-size: 0.8rem;
  color: rgba(19, 36, 28, 0.65);
}

.attendee-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.attendee-filter .bookings-filter-fields {
  flex: 1 1 22rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 14rem));
}

.attendee-export {
  margin-top: 0.5rem;
}

.attendee-export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.attendee-export-card {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(19, 36, 28, 0.12);
  background: rgba(247, 243, 232, 0.65);
}

.attendee-export-card h4 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.attendee-export-card p {
  margin: 0;
  color: rgba(19, 36, 28, 0.72);
  font-size: 0.92rem;
}

.attendee-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.table tfoot th {
  border-top: 2px solid rgba(19, 36, 28, 0.2);
  padding-top: 0.75rem;
}

@media (max-width: 1100px) {
  .attendee-export-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .attendee-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
  background: var(--kca-mist);
  border-radius: 0.2rem;
}

.prime-flag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--kca-ink);
  background: linear-gradient(180deg, var(--kca-gold-soft) 0%, var(--kca-gold) 100%);
  border-radius: 0.2rem;
}

.checkin-flag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--kca-forest);
  border-radius: 0.2rem;
}

.checkin-flag-partial {
  color: var(--kca-ink);
  background: var(--kca-gold);
}

.prime-flag-empty {
  color: rgba(19, 36, 28, 0.35);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.8s ease-out both;
}

.animate-fade-up-delay {
  animation: fade-up 0.9s ease-out 0.15s both;
}

@media (max-width: 640px) {
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    padding: 0.7rem 1rem;
  }

  .brand img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .nav {
    width: 100%;
    gap: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Keep the home header in flow so it does not cover poster art */
  .site-header--overlay {
    position: sticky;
    background: rgba(15, 36, 28, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .page-home .site-header--overlay.is-scrolled .brand,
  .page-home .site-header--overlay.is-scrolled .nav a {
    color: #fff;
  }

  .hero {
    grid-template-rows: auto auto;
  }

  .hero-slides {
    padding: 0.5rem 0.75rem 0;
  }

  .hero-bg {
    width: min(100%, 26rem);
  }

  .hero-content {
    padding: 1.15rem 1.15rem 2.35rem;
  }

  .hero .btn-primary {
    min-width: 10rem;
    padding: 0.8rem 1.4rem;
  }

  .hero-dots {
    margin: 0 0 0.75rem;
  }

  .ticket-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info price"
      "controls controls";
  }

  .ticket-info {
    grid-area: info;
  }

  .ticket-price {
    grid-area: price;
  }

  .ticket-row .qty-controls {
    grid-area: controls;
    justify-content: flex-end;
  }

  .book-checkout {
    grid-template-columns: 1fr;
    bottom: 0;
    border-radius: 0;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    max-width: none;
  }

  .book-checkout .book-total,
  .book-checkout .book-submit,
  .book-checkout .captcha-field,
  .book-checkout .book-pay-hint {
    grid-column: 1;
  }

  .book-checkout .book-submit {
    justify-self: stretch;
    width: 100%;
  }

  .consent-check span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .nav a[href*="organiser"],
  .nav a[href*="upcoming"] {
    display: none;
  }

  .hero-bg {
    width: min(100%, 100%);
  }

  .hero-content {
    padding: 1rem 1rem 2.2rem;
  }
}

.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;
}

.section-wide {
  max-width: 80rem;
}

.bookings-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.bookings-count {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: rgba(19, 36, 28, 0.65);
}

.bookings-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(19, 36, 28, 0.08);
  border-radius: 0.7rem;
}

.bookings-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.35rem 0.85rem;
  flex: 1 1 42rem;
}

.bookings-filter-field label {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(19, 36, 28, 0.68);
}

.bookings-filter .btn {
  padding: 0.55rem 1.1rem;
}

.bookings-table-wrap {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(19, 36, 28, 0.08);
  border-radius: 0.75rem;
  overflow-x: auto;
}

.bookings-table {
  margin: 0;
}

.bookings-table thead th {
  position: sticky;
  top: 0;
  background: #f3eee0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(19, 36, 28, 0.72);
  white-space: nowrap;
}

.bookings-table tbody tr:hover {
  background: rgba(232, 212, 139, 0.18);
}

.bookings-table td,
.bookings-table th {
  padding: 0.7rem 0.65rem;
  vertical-align: middle;
}

.bookings-sl {
  color: rgba(19, 36, 28, 0.5);
}

.bookings-ref {
  font-weight: 700;
  color: var(--kca-forest);
}

.bookings-email,
.bookings-mobile,
.bookings-date {
  font-size: 0.88rem;
}

.bookings-mobile {
  white-space: nowrap;
}

.bookings-empty {
  text-align: center;
  padding: 2rem 1rem !important;
  color: rgba(19, 36, 28, 0.6);
}

.bookings-actions-col {
  width: 3rem;
  text-align: right;
}

.status-pill--pending {
  background: #f4e3b8;
  color: #6a4b08;
}

.status-pill--confirmed {
  background: #d5eadb;
  color: #1b4d3e;
}

.status-pill--cancelled {
  background: #ead9d6;
  color: #6b2b2b;
}

.pay-flag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0.2rem;
  background: var(--kca-mist);
  color: var(--kca-ink);
  white-space: nowrap;
}

.pay-flag--card {
  background: #dce8f5;
  color: #1c3b63;
}

.pay-flag--cash {
  background: #e4f0d4;
  color: #2d5416;
}

.pay-flag--bank_transfer {
  background: #e8ddf5;
  color: #4a2d73;
}

.pay-flag--cancelled,
.pay-flag--unpaid {
  background: #eee7dc;
  color: rgba(19, 36, 28, 0.7);
}

.kebab {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.kebab-toggle {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--kca-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.kebab-toggle:hover,
.kebab-toggle[aria-expanded="true"] {
  background: rgba(19, 36, 28, 0.08);
}

.kebab-menu {
  position: fixed;
  min-width: 13.5rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(19, 36, 28, 0.12);
  border-radius: 0.55rem;
  box-shadow: 0 12px 28px rgba(19, 36, 28, 0.14);
  z-index: 80;
}

.kebab-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.35rem;
  cursor: pointer;
  color: inherit;
}

.kebab-item:hover {
  background: var(--kca-sand);
}

.kebab-item--danger {
  color: #8b2e2e;
}

.kebab-item--danger:hover {
  background: #f6e4e2;
}

.confirm-dialog {
  border: none;
  border-radius: 0.8rem;
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
  background: var(--kca-cream);
  color: var(--kca-ink);
  box-shadow: 0 18px 50px rgba(19, 36, 28, 0.22);
}

.confirm-dialog::backdrop {
  background: rgba(19, 36, 28, 0.45);
}

.confirm-dialog-form {
  padding: 1.25rem 1.35rem 1.15rem;
}

.confirm-dialog-form h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--kca-forest);
}

.confirm-dialog-form p {
  margin: 0 0 1.15rem;
  white-space: pre-wrap;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .bookings-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

