/* Additional components only. The original site styles live in original.css. */
:root { --muted: #6e5a7c; --green: #216843; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
.nav.menu-open .nav-logo { color: #fff; }
.nav.menu-open .nav-toggle span { background: #fff; }
.nav.menu-open .nav-toggle { background: rgba(255,255,255,.12); }
main.content, .home-events { padding: 80px clamp(20px,5vw,64px) 100px; max-width: 1328px; margin: auto; scroll-margin-top: 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(2.1rem,4.4vw,3.2rem); color: var(--purple-deep); margin: 14px 0 10px; }
.muted { color: var(--muted); line-height: 1.6; }
.section-heading .muted { font-size: .95rem; }
.event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.event-card { background: var(--purple-deep); border: 1px solid rgba(255,248,232,.18); border-radius: 20px; color: var(--cream); padding: 26px 22px; display: flex; flex-direction: column; box-shadow: 0 14px 30px rgba(36,19,52,.12); }
.event-date { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,248,232,.18); }
.date-badge { border: 1px solid var(--gold); border-radius: 14px; padding: 10px 14px; text-align: center; color: var(--gold); min-width: 65px; background: rgba(242,201,39,.08); }
.date-badge strong { display: block; font-family: 'Baloo 2',sans-serif; font-size: 2rem; line-height: 1; }
.date-badge span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.event-date .eyebrow { font-size: .68rem; letter-spacing: .1em; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding-top: 20px; }
.event-card h3 { font-size: 1.65rem; color: #fff; }
.event-meta { color: var(--gold-soft); font-size: .75rem; font-weight: 600; line-height: 1.5; }
.event-description { color: rgba(255,248,232,.78); font-size: .88rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.location { font-size: .78rem; color: rgba(255,248,232,.6); line-height: 1.5; }
.card-bottom { margin-top: auto; border-top: 1px solid rgba(255,248,232,.18); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.price { font-family: 'Baloo 2',sans-serif; font-size: 2.1rem; color: var(--gold); line-height: 1; }
.price small { display: block; font-family: 'Inter',sans-serif; font-size: .78rem; color: rgba(255,248,232,.6); margin-top: 6px; }
.button { background: var(--gold); color: var(--ink); font-weight: 700; padding: 14px 24px; border-radius: 100px; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 24px rgba(242,201,39,.22); border: none; cursor: pointer; line-height: 1.4; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 14px 30px rgba(242,201,39,.3); }
.button.secondary { background: transparent; color: var(--purple-deep); border: 2px solid var(--line); box-shadow: none; padding: 12px 22px; }
.button.full { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--purple); font-weight: 700; padding: 8px 0; font-size: .85rem; }
.help { font-size: .75rem; color: var(--muted); line-height: 1.5; font-weight: 400; }
.event-card .help { color: rgba(255,248,232,.6); }
.payment-note { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding: 24px 28px; border: 2px solid var(--line); border-radius: 20px; line-height: 1.6; font-size: .88rem; }
.payment-note strong { display: block; color: var(--purple-deep); margin-bottom: 5px; font-size: 1rem; }
.note-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; font-size: 1.4rem; }
.empty-state { grid-column: 1/-1; padding: 56px 28px; text-align: center; border: 2px solid var(--line); border-radius: 22px; }
.empty-state h3 { color: var(--purple-deep); font-size: 1.8rem; margin: 14px 0; }
.empty-state p { color: var(--muted); line-height: 1.6; max-width: 500px; margin: auto; }
.empty-state .button { margin-top: 22px; }
.empty-icon { color: var(--purple); font-size: 2.5rem; }
.loading { padding: 40px; color: var(--muted); }
dialog { width: min(650px,calc(100% - 24px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: none; border-radius: 24px; background: var(--cream); color: var(--ink); }
dialog::backdrop { background: rgba(36,19,52,.7); backdrop-filter: blur(5px); }
.modal-heading { position: relative; background: radial-gradient(120% 100% at 75% 0%,var(--purple-light) 0%,var(--purple) 45%,var(--purple-deep) 100%); color: var(--cream); padding: 28px 30px; }
.modal-heading .eyebrow { color: var(--gold); }
.modal-heading h2 { font-size: 2rem; color: #fff; margin: 14px 30px 12px 0; }
.modal-heading p { font-size: .8rem; line-height: 1.6; color: rgba(255,248,232,.88); }
.close { position: absolute; right: 16px; top: 16px; border: 1px solid rgba(255,248,232,.4); background: transparent; color: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: 1.5rem; }
.modal-body { padding: 28px 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.wide { grid-column: 1/-1; }
.field label,.field legend { font-weight: 700; font-size: .82rem; }
input,textarea,select { width: 100%; min-width: 0; background: #fff; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); padding: 12px 14px; font-size: .95rem; }
textarea { resize: vertical; min-height: 90px; }
input:focus,textarea:focus,select:focus { border-color: var(--purple); }
.age-fields { grid-column: 1/-1; border: 0; margin: 0; padding: 0; }
.age-fields legend { font-weight: 700; font-size: .82rem; margin-bottom: 10px; }
.ages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.age-fields label { color: var(--muted); font-size: .75rem; }
.booking-total { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 16px; padding: 18px 20px; border-radius: 14px; background: var(--cream-dim); font-size: .9rem; }
.booking-total strong { font-family: 'Baloo 2',sans-serif; font-size: 1.8rem; color: var(--purple-deep); }
.booking-total small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.fine-print { margin: 16px 0; font-size: .75rem; line-height: 1.6; color: var(--muted); }
.error { border: 1px solid #f2c8bb; border-radius: 12px; background: #fff0eb; color: #a32e18; padding: 14px 18px; margin: 16px 0; font-size: .85rem; line-height: 1.5; }
.success-message { background: #edf5ef; color: var(--green); border-radius: 12px; padding: 14px 18px; margin: 16px 0; font-size: .85rem; }
.receipt { text-align: center; }
.receipt-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--purple-deep); margin: 0 auto 22px; display: grid; place-items: center; font-size: 2rem; }
.receipt h3 { font-size: 2rem; color: var(--purple-deep); margin: 14px 0; }
.receipt p { font-size: .85rem; line-height: 1.6; }
.receipt .reference { background: var(--cream-dim); border: 2px solid var(--line); border-radius: 14px; padding: 18px; margin: 22px 0 12px; font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; }
.receipt-details { display: flex; justify-content: space-between; text-align: left; border-top: 1px solid var(--line); padding: 16px 0; font-size: .85rem; }
.receipt .button { margin: 12px 0; }
.admin-body { background: var(--cream); }
.admin-body main { min-height: calc(100vh - 100px); padding-top: 80px; }
.admin-body:has(#login-view:not([hidden])) main { background: radial-gradient(120% 100% at 75% 0%,var(--purple-light) 0%,var(--purple) 45%,var(--purple-deep) 100%); padding-bottom: 60px; }
.admin-shell { max-width: 1328px; margin: auto; padding: 48px clamp(20px,5vw,64px) 80px; }
.admin-title { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 34px; }
.admin-title h1 { color: var(--purple-deep); font-size: clamp(2.1rem,4.4vw,3.2rem); margin: 14px 0; }
.admin-title p { font-size: .85rem; line-height: 1.6; }
.toolbar { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.toolbar .button { white-space: nowrap; }
.admin-tabs { display: flex; gap: 26px; border-bottom: 2px solid var(--line); margin-bottom: 32px; }
.tab { background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 14px 6px; font-size: .95rem; font-weight: 700; }
.tab[aria-selected=true] { color: var(--purple-deep); border-color: var(--gold); }
.login-wrap { max-width: 460px; margin: 60px auto 0; padding: 34px 30px; background: rgba(255,248,232,.06); border: 1px solid rgba(255,248,232,.18); border-radius: 20px; color: var(--cream); }
.login-wrap .eyebrow { color: var(--gold); }
.login-wrap h1 { font-size: 2.6rem; color: #fff; margin: 18px 0; }
.login-wrap p { margin-bottom: 26px; }
.login-wrap .muted,.login-wrap .fine-print { color: rgba(255,248,232,.78); }
.login-wrap .field { margin-bottom: 18px; }
.login-wrap label { color: var(--cream); }
.admin-events-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 28px; align-items: start; }
.admin-card { border: 2px solid var(--line); border-radius: 22px; background: var(--cream-dim); padding: 28px; scroll-margin-top: 85px; }
.admin-card h2 { font-size: 1.8rem; color: var(--purple-deep); margin-bottom: 24px; }
.admin-event-list { display: flex; flex-direction: column; gap: 18px; }
.admin-event { border: 2px solid var(--line); border-radius: 20px; padding: 24px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.admin-event h3 { font-size: 1.5rem; color: var(--purple-deep); margin: 12px 0; }
.admin-event p { font-size: .8rem; line-height: 1.6; color: var(--muted); }
.badge { display: inline-block; border-radius: 100px; padding: 5px 11px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; background: #eee4f1; color: var(--purple); }
.badge.published,.badge.paid { background: #e6f1e8; color: var(--green); }
.badge.unpaid { background: var(--gold-soft); color: var(--ink); }
.badge.archived { background: #e5e1dc; color: #666; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 28px; }
.summary { padding: 22px; border: 2px solid var(--line); border-radius: 20px; }
.summary span { font-size: .8rem; color: var(--muted); }
.summary strong { display: block; font-family: 'Baloo 2',sans-serif; font-size: 2.1rem; color: var(--purple-deep); margin-top: 8px; }
.summary.highlight { background: var(--purple-deep); border-color: var(--purple-deep); }
.summary.highlight span { color: rgba(255,248,232,.7); }
.summary.highlight strong { color: var(--gold); }
.admin-notice { color: var(--muted); font-size: .82rem; line-height: 1.6; margin-bottom: 24px; }
.filters { display: flex; gap: 14px; margin-bottom: 18px; }
.filters input { flex: 2; }
.filters select { flex: 1; }
.booking-list { display: flex; flex-direction: column; gap: 20px; }
.booking-row { background: var(--cream-dim); border: 2px solid var(--line); border-radius: 20px; padding: 26px; }
.booking-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.booking-top h3 { color: var(--purple-deep); font-size: 1.6rem; margin: 10px 0; white-space: pre-line; overflow-wrap: anywhere; }
.booking-top p { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.booking-top .money { text-align: right; flex-shrink: 0; }
.money strong { display: block; color: var(--purple-deep); font-family: 'Baloo 2',sans-serif; font-size: 1.8rem; margin-bottom: 8px; }
.booking-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; font-size: .85rem; line-height: 1.5; }
.booking-facts small { display: block; margin-bottom: 7px; font-size: .65rem; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .1em; }
.booking-facts a { overflow-wrap: anywhere; }
.booking-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.booking-bottom p { font-size: .7rem; color: var(--muted); line-height: 1.5; }
.booking-bottom .button { font-size: .8rem; padding: 11px 20px; }
.booking-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.button.danger { background: #a32e18; border-color: #a32e18; color: #fff; }
.button.secondary.danger { background: transparent; color: #a32e18; }
.button.danger:hover { background: #842512; border-color: #842512; color: #fff; }
.booking-account-note { grid-column: 1/-1; margin: 0; }
.save-row { display: flex; gap: 14px; margin-top: 22px; }
body:has(dialog[open]) { overflow: hidden; }
.event-image { width: 100%; height: 210px; flex-shrink: 0; object-fit: cover; border-radius: 14px; margin-bottom: 22px; background: var(--cream-dim); }
.image-preview { width: 100%; max-height: 280px; object-fit: contain; border-radius: 14px; background: var(--cream); }
.admin-event-image { width: 100%; max-width: 220px; max-height: 130px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.badge.review { background: #eee4f1; color: var(--purple-deep); }
.payment-report { background: #eee4f1; border-radius: 12px; padding: 14px 18px; font-size: .85rem; line-height: 1.6; margin-top: 20px; overflow-wrap: anywhere; }
.payment-report strong { display: block; }
.booking-progress { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 20px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.names { white-space: pre-line; overflow-wrap: anywhere; }
.auth-switch { display: flex; gap: 14px; margin-bottom: 24px; }
.auth-switch button { flex: 1; border: 1px solid rgba(255,248,232,.35); color: var(--cream); background: transparent; border-radius: 12px; padding: 12px; font-weight: 600; }
.auth-switch button[aria-pressed=true] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.auth-link { color: var(--gold-soft); background: transparent; border: 0; font-size: .8rem; margin-top: 20px; text-decoration: underline; line-height: 1.6; }
.login-wrap .help { color: rgba(255,248,232,.78); }
.recovery-panel { max-width: 650px; margin: 36px auto; background: var(--cream); }
.recovery-code { display: block; overflow-wrap: anywhere; user-select: all; margin: 24px 0; padding: 20px; background: #fff; border: 2px solid var(--line); border-radius: 12px; font-size: 1rem; }
#payment-form .field { margin-top: 22px; }
@media(max-width:600px) { .recovery-panel { margin: 24px 20px; } .account-body .section-heading { flex-wrap: wrap; } .save-row { flex-wrap: wrap; } }
@media(max-width:980px) {
  .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .admin-events-layout { grid-template-columns: 1fr; }
  .booking-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-shell { padding-top: 30px; }
}
@media(max-width:600px) {
  main.content, .home-events { padding: 64px 20px; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading h2 { font-size: 1.9rem; }
  .section-heading .muted { font-size: .8rem; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { padding: 24px 20px; }
  .payment-note { padding: 22px 20px; align-items: flex-start; font-size: .8rem; }
  .modal-heading,.modal-body { padding: 24px 22px; }
  .modal-heading h2 { font-size: 1.8rem; }
  .form-grid { gap: 15px; }
  .field.wide-mobile { grid-column: 1/-1; }
  .ages-grid { grid-template-columns: repeat(2,1fr); }
  .login-wrap { margin: 35px 20px 0; padding: 28px 24px; }
  .admin-title { align-items: start; }
  .admin-title h1 { font-size: 1.9rem; }
  .admin-title .toolbar { flex-direction: column; align-items: flex-end; gap: 10px; }
  .toolbar .text-button { font-size: .75rem; }
  .toolbar .button { font-size: .8rem; padding: 10px 16px; }
  .summary-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .summary { padding: 18px 16px; }
  .filters { flex-wrap: wrap; }
  .filters input { flex-basis: 100%; }
  .filters select { font-size: .8rem; }
  .admin-card { padding: 24px 20px; }
  .admin-event { padding: 22px 18px; }
  .admin-event h3 { font-size: 1.3rem; }
  .admin-event .button { padding: 10px 18px; font-size: .8rem; }
  .booking-row { padding: 22px 18px; }
  .booking-top h3 { font-size: 1.4rem; }
  .booking-bottom { flex-direction: column; align-items: flex-start; }
}

/* Make the top-right phone button prominent in the original navigation. */
.nav .nav-links .nav-cta {
  font-size: 1.15rem;
  padding: 16px 28px;
  min-height: 56px;
  line-height: 1.3;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width:981px) and (max-width:1200px) {
  .nav { padding-left: 20px; padding-right: 20px; }
  .nav-links { gap: 10px; font-size: .85rem; }
}

.admin-account-email { overflow-wrap: anywhere; }
.admin-tabs { overflow-x: auto; }

/* Live event showcase in the original homepage opening. */
.hero-with-events .hero-inner { grid-template-areas: "copy spotlight" "copy visual"; gap: 22px 40px; padding-bottom: 90px; }
.hero-with-events .hero-copy { grid-area: copy; }
.hero-with-events .hero-visual { grid-area: visual; justify-content: center; }
.hero-with-events .hero-collage { width: min(300px,100%); }
.hero-events { grid-area: spotlight; position: relative; background: var(--cream); color: var(--ink); padding: 22px; border-radius: 22px; border: 2px solid var(--gold-soft); box-shadow: 0 18px 40px rgba(36,19,52,.2); min-width: 0; }
.hero-events-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.hero-events-heading .eyebrow { font-size: .62rem; letter-spacing: .12em; }
.hero-events h2 { color: var(--purple-deep); font-size: 1.55rem; margin-top: 7px; }
.hero-events-all { color: var(--purple-deep); font-size: .75rem; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.hero-event { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.hero-event:last-child { padding-bottom: 0; }
.hero-event-image { width: 70px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--cream-dim); }
.hero-event-date { border-radius: 12px; background: var(--purple-deep); color: var(--gold); text-align: center; padding: 18px 6px; }
.hero-event-date strong { display: block; font-family: 'Baloo 2',sans-serif; font-size: 2rem; line-height: 1; }
.hero-event-date span { font-size: .7rem; text-transform: uppercase; font-weight: 700; }
.hero-event h3 { color: var(--purple-deep); font-size: 1.2rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-event-copy p { margin: 7px 0 12px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.hero-event-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hero-event-actions span { font-size: .95rem; font-weight: 800; color: var(--purple-deep); }
.hero-event-actions small { display: block; font-size: .65rem; font-weight: 500; margin-top: 3px; color: var(--muted); }
.hero-event-actions .button { font-size: .75rem; padding: 10px 16px; white-space: nowrap; }
.hero-events-message { color: var(--muted); font-size: .85rem; line-height: 1.6; margin: 16px 0; }
@media(max-width:980px) {
  .hero-with-events .hero-inner { grid-template-areas: "spotlight" "copy" "visual"; gap: 32px; padding-top: 96px; padding-bottom: 70px; }
  .hero-events { width: 100%; max-width: 600px; justify-self: center; }
  .hero-with-events .hero-visual { order: initial; margin-bottom: 0; }
  .hero-with-events .hero-collage { width: min(430px,88vw); }
}
@media(max-width:600px) {
  .hero-events { padding: 18px; }
  .hero-events-heading { gap: 10px; }
  .hero-events h2 { font-size: 1.3rem; }
  .hero-event { grid-template-columns: 58px minmax(0,1fr); gap: 12px; }
  .hero-event-image { width: 58px; height: 94px; }
  .hero-event h3 { font-size: 1.1rem; }
  .hero-event-actions .button { padding: 10px 12px; }
}

@media(max-width:600px) { #booking-edit-form .booking-contact { grid-column: 1/-1; } .booking-actions { justify-content: flex-start; } }
