/*
  Global look & feel
  -------------------
  Minimal, cinematic, gallery-inspired layout with a dark, quiet palette
*/

@font-face {
  font-family: 'Polymath';
  src: url('/fonts/PolymathTextDemo-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Polymath';
  src: url('/fonts/PolymathTextDemo-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Polymath', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: #050505;
  color: #f4f0e8;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
}

/* Subtle entrance motion */

@keyframes fadeInSoft {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared layout primitives for public pages */

.frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.frame-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel {
  max-width: 720px;
  width: 100%;
}

.panel-single {
  max-width: 520px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.hero h1 {
  font-family: 'Polymath', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 100;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  letter-spacing: 0.32em;
  padding-left: 0.32em; /* compensate for trailing letter-spacing to visually center */
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

.details {
  margin-top: 0; /* spacing between title and credit handled by hero-block gap */
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  color: #c9c4ba;
  text-align: center;
}

.hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem; /* space between the title block and credit line */
}

.details p {
  margin: 0;
}

.details p.details-presenter {
  margin-top: 0;
  /* Slightly larger gap below subtitle for more breathing room */
  margin-bottom: clamp(3.5rem, 6vh, 5rem);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: rgba(244, 240, 232, 0.82);
}

.details p.details-meta {
  margin-top: 0; /* gap controlled by subtitle's bottom margin */
  font-size: 0.6rem; /* ~70–75% of subtitle size */
  text-transform: uppercase;
  letter-spacing: 0.32em; /* slightly wider tracking than subtitle */
  text-indent: 0.32em;
  line-height: 1.3;
  color: rgba(244, 240, 232, 0.72); /* lower contrast, quiet metadata tone */
}

.details .label {
  display: inline-block;
  min-width: 5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: #9c9587;
}

/* Coming-soon modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 500ms ease-out;
}

.modal-overlay--visible {
  opacity: 1;
}

.modal-card {
  max-width: 420px;
  width: calc(100% - 3rem);
  padding: 2.8rem 2rem 2.4rem;
  border-radius: 18px;
  border: 1px solid rgba(58, 50, 39, 0.45);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 161, 25, 0.12), transparent 70%),
    rgba(10, 8, 7, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: fadeInSoft 600ms ease-out both;
}

.modal-card h2 {
  margin: 0 0 1.2rem;
  font-family: 'Polymath', system-ui, sans-serif;
  font-weight: 100;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f4f0e8;
}

.modal-message {
  margin: 0 0 2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #c9c4ba;
  letter-spacing: 0.04em;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #c9c4ba;
  letter-spacing: 0.04em;
  text-align: center;
}

.modal-list li::before {
  content: '—  ';
  color: #9c9587;
}

.modal-cta {
  display: inline-block;
  text-decoration: none;
}

.modal-dismiss {
  background: none;
  border: none;
  color: #9c9587;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 180ms ease;
}

.modal-dismiss:hover {
  color: #f4f0e8;
}

/* Invite / RSVP page */

/* Intro overlay that shows the light bulb before revealing the RSVP UI */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 1; /* start fully black */
  pointer-events: auto;
  transition: opacity 600ms ease-out;
}

/* When active, animate the bulb image itself: black → bulb → black */
.intro-overlay--active .intro-image {
  /* Slower, more meditative fade in/out */
  animation: introImageFade 5200ms ease-in-out forwards;
}

/* When hidden, fade overlay to transparent and stop blocking clicks */
.intro-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

.intro-image {
  max-width: min(280px, 60vw);
  height: auto;
  opacity: 0; /* will fade in via animation */
}

@keyframes introImageFade {
  0% { opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.page-invite {
  background-color: #050505;
}

.page-invite .frame {
  gap: 4rem;
  padding: 3rem 1.5rem;
  opacity: 0; /* intro: hide main layout under black screen */
  transition: opacity 700ms ease-out;
}

.page-invite.page-invite--ready .frame {
  opacity: 1;
}

.page-invite .panel-left,
.page-invite .panel-right {
  animation: fadeInSoft 900ms ease-out both;
}

.page-invite .panel-left {
  text-align: center;
}

.page-invite .panel-right {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.2rem 1.75rem 2.4rem;
  border-radius: 18px;
  border: 1px solid rgba(58, 50, 39, 0.45);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 161, 25, 0.12), transparent 70%),
    rgba(10, 8, 7, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.page-invite .panel-right h2 {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9c9587;
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form label span,
.form legend {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9c9587;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.8rem 0.5rem;
  border: none;
  border-bottom: 2px solid #484035;
  background: transparent;
  color: #f4f0e8;
  font-size: 0.95rem;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #555048;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-bottom-color: #f4f0e8;
}

.slots {
  margin-top: 1.8rem;
  padding: 1.05rem 1.0rem 0.95rem;
  border-radius: 12px;
  border: 2px solid #362e24;
  background: radial-gradient(circle at 0% 0%, rgba(255, 161, 25, 0.14), transparent 65%),
              rgba(12, 10, 9, 0.96);
}

/* Ticket counter */

.ticket-field {
  margin-top: 2.2rem;
  padding: 0.25rem 0 0;
  border: none;
}

.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(72, 64, 53, 0.4);
}

.ticket-row:last-of-type {
  border-bottom: none;
}

.ticket-info {
  display: grid;
  grid-template-columns: 4.5rem 3rem auto;
  align-items: center;
  gap: 0.55rem;
}

.ticket-name {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f4f0e8;
}

.ticket-price {
  font-size: 0.78rem;
  color: #9c9587;
  letter-spacing: 0.06em;
}

.ticket-info-btn {
  background: none;
  border: none;
  color: #9c9587;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 180ms ease;
}

.ticket-info-btn:hover {
  color: #ffa119;
}

.ticket-counter {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ticket-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(120, 110, 96, 0.6);
  background: rgba(12, 12, 12, 0.7);
  color: #f4f0e8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.ticket-btn:hover {
  border-color: rgba(255, 161, 25, 0.75);
  transform: scale(1.08);
}

.ticket-btn:active {
  background: rgba(255, 161, 25, 0.15);
}

.ticket-count {
  min-width: 1.4rem;
  text-align: center;
  font-size: 0.95rem;
  color: #f4f0e8;
  font-variant-numeric: tabular-nums;
}

.ticket-total {
  margin-top: 0.7rem;
  text-align: right;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffa119;
}

.ticket-note {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: #6b6560;
}

.slot-date-group {
  margin-top: 1.25rem;
}

.slot-date-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
  color: #9c9587;
}

.slot-option {
  position: relative;
  display: flex;
  align-items: stretch;
  font-size: 0.9rem;
  margin-top: 0.35rem;
  cursor: pointer;
}

.slot-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.slot-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid rgba(120, 110, 96, 0.8);
  transition: background-color 220ms ease, box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.slot-option:hover .slot-text {
  border-color: rgba(180, 166, 140, 0.9);
}

.slot-option input:checked + .slot-text {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 161, 25, 0.32), transparent 60%),
    rgba(22, 18, 12, 0.98);
  border-color: rgba(255, 161, 25, 1);
  box-shadow: 0 0 28px rgba(255, 161, 25, 0.32);
  transform: translateY(-2px);
}

.slot-time {
  font-weight: 500;
}

.slot-option.slot-full {
  color: #6a6459;
}

.slot-option.slot-full .slot-text {
  opacity: 0.7;
}

.slot-option.slot-limited .slot-text {
  border-color: rgba(255, 161, 25, 0.8);
  background: rgba(20, 16, 12, 0.95);
}

.slot-option.slot-full input:checked + .slot-text {
  /* keep full slots visually muted even if focus causes checked state */
  background: rgba(30, 28, 24, 0.9);
  border-color: rgba(90, 84, 76, 0.9);
  box-shadow: none;
  transform: none;
}

.slot-full-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 0.4rem;
  color: #9b4b42;
}

.slot-remaining {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 0.4rem;
  color: #7f786c;
}

.slot-remaining-limited {
  color: #ffa119;
}

.button-primary {
  margin-top: 3.2rem;
  padding: 1rem 2.8rem;
  border-radius: 999px;
  border: 1px solid #f4f0e8;
  background: transparent;
  color: #f4f0e8;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  align-self: center;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 161, 25, 0.28), transparent 60%),
    #f4f0e8;
  color: #050505;
  border-color: #f4f0e8;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 161, 25, 0.4);
}

.button-secondary {
  margin-top: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 110, 96, 0.6);
  background: transparent;
  color: #b7b0a5;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 400;
  font-size: 0.68rem;
  cursor: pointer;
  align-self: center;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(20, 16, 12, 0.9);
  border-color: rgba(180, 166, 140, 0.9);
  color: #f4f0e8;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

.alert {
  border-radius: 6px;
  border: 1.5px solid #5f3b38;
  background: rgba(125, 66, 60, 0.22);
  color: #f4f0e8;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-reassure {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  text-align: center;
  color: #b7b0a5;
}

.form-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7f786c;
}


/* Thank-you, coming soon, and feedback pages */

.page-thankyou,
.page-comingsoon,
.page-feedback {
  background-color: #050505;
}

/* Feedback page specifics */

.page-feedback .panel-single {
  max-width: 480px;
  text-align: center;
  animation: fadeInSoft 1000ms ease-out both;
}

.page-feedback .hero h1 {
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  margin-bottom: 1.5rem;
}

.feedback-intro {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #b7b0a5;
  margin-bottom: 2rem;
}

.feedback-form {
  text-align: left;
}

.feedback-form textarea {
  width: 100%;
  padding: 0.8rem 0.6rem;
  border: 2px solid #484035;
  border-radius: 8px;
  background: rgba(12, 10, 9, 0.8);
  color: #f4f0e8;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.feedback-form textarea::placeholder {
  color: #555048;
}

.feedback-form textarea:focus {
  outline: none;
  border-color: #f4f0e8;
}

.page-thankyou .panel-single,
.page-comingsoon .panel-single {
  text-align: center;
  animation: fadeInSoft 1000ms ease-out both;
}

.page-thankyou h1,
.page-comingsoon h1 {
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.page-thankyou .emphasis,
.page-comingsoon .emphasis {
  margin-top: 0.5rem;
  line-height: 1.7;
}

.page-thankyou .small {
  margin-top: 1.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8a8377;
}

/* Admin pages keep a more utilitarian light theme */

.page-admin,
.admin-login {
  background: #f5f5f5;
  color: #111;
}

.page-admin .frame-admin {
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: 1fr;
  min-height: 100vh;
  border: 4px solid #000;
  background: #fff;
}

.admin-flash {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

.admin-flash-success {
  background: rgba(20, 120, 40, 0.12);
  border: 1.5px solid rgba(40, 140, 60, 0.9);
}

.admin-flash-error,
.admin-flash-partial {
  background: rgba(180, 70, 24, 0.12);
  border: 1.5px solid rgba(210, 110, 60, 0.9);
}

.email-blast-form {
  max-width: 540px;
}

.email-blast-form fieldset {
  border: 1px solid #000;
  border-radius: 8px;
  padding: 0.9rem 1rem 0.8rem;
  margin-bottom: 1.3rem;
}

.email-blast-form legend {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #555;
  padding: 0 0.2rem;
}

.slot-group {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ddd;
}

.slot-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.slot-group-header {
  margin-bottom: 0.5rem;
}

.slot-group-items {
  padding-left: 1.5rem;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 1.1rem;
  font-size: 0.85rem;
}

.email-blast-form .form-group {
  margin-bottom: 1.1rem;
}

.email-blast-form input[type="text"],
.email-blast-form textarea {
  width: 100%;
  padding: 0.7rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fafafa;
  color: #111;
  font-size: 0.9rem;
  font-family: inherit;
}

.email-blast-form textarea {
  resize: vertical;
}

.email-blast-form .help-text {
  font-size: 0.75rem;
  color: #555;
  margin: 0 0 0.75rem;
}

.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.audience-mode-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
}

.city-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.people-search {
  width: 100%;
  padding: 0.6rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fafafa;
  color: #111;
  font-size: 0.9rem;
  font-family: inherit;
  margin-bottom: 0.6rem;
}

.people-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.people-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #eee;
  font-size: 0.82rem;
  cursor: pointer;
}

.people-item:last-child {
  border-bottom: none;
}

.people-item:hover {
  background: #f0f0f0;
}

.people-item input[type="checkbox"] {
  flex-shrink: 0;
}

.people-name {
  font-weight: 500;
  min-width: 100px;
}

.people-email {
  color: #555;
  flex: 1;
}

.people-city {
  color: #888;
  font-size: 0.75rem;
  text-align: right;
}

.people-count-display {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #555;
}

.add-rsvp-form,
.capacities-form {
  max-width: 440px;
}

.add-rsvp-form .form-group,
.capacities-form .form-group {
  margin-bottom: 1rem;
}

.add-rsvp-form label,
.capacities-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
  color: #333;
}

.add-rsvp-form input,
.add-rsvp-form select,
.capacities-form input {
  padding: 0.6rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fafafa;
  color: #111;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
}

.capacities-form .capacity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.capacities-form .capacity-row label {
  flex: 1;
  margin-bottom: 0;
}

.capacities-form .capacity-row input {
  width: 80px;
  flex: none;
}

.capacities-form .capacity-current {
  font-size: 0.75rem;
  color: #666;
  min-width: 90px;
}

.help-text {
  font-size: 0.75rem;
  color: #555;
  margin: 0 0 0.75rem;
}

.email-template-form {
  max-width: 640px;
}

.email-template-form .form-group {
  margin-bottom: 1.1rem;
}

.email-template-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
  color: #333;
}

.email-template-form input[type="text"],
.email-template-form textarea {
  width: 100%;
  padding: 0.7rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  font-size: 0.9rem;
  font-family: inherit;
}

.email-template-form textarea {
  min-height: 360px;
  resize: vertical;
  line-height: 1.6;
}

.admin-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.admin-header h1 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

.admin-meta {
  font-size: 0.85rem;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1.5rem 1rem;
  border-bottom: 2px solid #000;
  background: #fdfdfd;
}

.summary-card {
  border: 2px solid #000;
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.summary-label {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.summary-count {
  font-size: 1.4rem;
  font-weight: 700;
}

.summary-remaining {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.summary-full .summary-count,
.summary-full .summary-remaining {
  color: #b00020;
}

.returning-badge {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15em 0.45em;
  border-radius: 3px;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.pdf-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0066cc;
  text-decoration: none;
}

.pdf-link:hover {
  text-decoration: underline;
}

.admin-day-downloads {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  border-bottom: 2px solid #000;
  background: #f0f0f0;
  font-size: 0.8rem;
}

.day-downloads-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.tabs {
  display: flex;
  border-bottom: 2px solid #000;
  overflow-x: auto;
}

.tab {
  border: none;
  border-right: 2px solid #000;
  background: #e5e5e5;
  padding: 0.6rem 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: #000;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  background: #000;
  color: #fff;
}

.tab-panels {
  padding: 1rem 1.5rem 1.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.table th,
.table td {
  border: 1px solid #000;
  padding: 0.35rem 0.5rem;
}

.table th {
  text-transform: uppercase;
  font-size: 0.7rem;
  background: #f0f0f0;
}

.table .empty {
  text-align: center;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.table .feedback-message-cell {
  max-width: 320px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Admin login layout */

.admin-login .container {
  min-height: 100vh;
  max-width: 360px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-login h1 {
  margin: 0 0 0.5rem;
}

.admin-login .muted {
  margin: 0 0 1.25rem;
  color: #555;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-login-form input[type="password"] {
  padding: 0.6rem 0.7rem;
  border: 1px solid #000;
  font-size: 0.95rem;
}

.admin-login-form button {
  margin-top: 0.75rem;
  padding: 0.7rem 1.4rem;
}

.error-banner {
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  background: #ffebeb;
  border: 1px solid #b00020;
  font-size: 0.85rem;
}

/* City breakdown (lights admin tab) */

.city-breakdown {
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #fafafa;
}

.city-breakdown h3 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
}

.city-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

.city-breakdown-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #eee;
}

.city-breakdown-count {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 1.5rem;
}

.city-breakdown-name {
  font-size: 0.82rem;
  color: #333;
}

/* Landing confirmation (post-submit) */

.nearby-message {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #f4f0e8;
}

.share-cta {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9c9587;
}

.share-button {
  margin-top: 1.8rem;
}

.share-copied {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9c9587;
  min-height: 1.2em;
}

/* Landing / interest page */

.page-landing {
  background-color: #050505;
}

.page-landing .frame {
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.page-landing.page-landing--ready .frame {
  opacity: 1;
}

.landing-panel {
  text-align: center;
  animation: fadeInSoft 900ms ease-out both;
}


.landing-message {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(244, 240, 232, 0.6);
  margin: 0 0 2.5rem;
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.landing-form label span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9c9587;
}

.field-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #e57373;
  letter-spacing: 0.02em;
}

.optional-tag {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #6b6560;
  text-transform: none;
}

/* Responsive tweaks */

@media (min-width: 880px) {
  .page-invite .frame {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  /* Left hero column: fixed, full-height, centers its content */
  .page-invite .panel-left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50vw;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-invite .hero-block {
    max-width: 26rem;
    margin: 0 auto;
    /* remove downward nudge so the whole hero stays vertically centered */
  }

  /* Right RSVP column flows from top and scrolls normally */
  .page-invite .panel-right {
    flex: none;
    margin-left: 50vw;
  }
}

@media (max-width: 879px) {
  .page-invite .panel-left {
    position: static;
    width: auto;
    display: block;
  }

  .page-invite .panel-right {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .frame {
    padding: 3rem 1.25rem 2.5rem;
  }

  .details {
    margin-top: 2.5rem;
  }
}
