[hidden] {
  display: none !important;
}

body.guest-locked,
body.admin-open,
body.admin-page {
  overflow: hidden;
}

/* Guest access */
.guest-gate {
  min-height: 100svh;
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(560px, 1.1fr);
  overflow: auto;
  background: var(--olive);
}

.guest-gate__art {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.guest-gate__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 45, 28, 0.18), rgba(42, 45, 28, 0.55));
}

.guest-gate__art img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.guest-gate__panel {
  min-height: 100svh;
  padding: clamp(48px, 6vw, 88px) clamp(36px, 8vw, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.guest-gate__panel > * {
  position: relative;
  z-index: 30;
}

.guest-gate__seal {
  width: clamp(150px, 16vw, 220px);
  margin-bottom: 28px;
}

.guest-gate h1,
.admin-login h1,
.admin-dashboard__intro h1 {
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.guest-gate h1 em,
.admin-login h1 em,
.admin-dashboard__intro h1 em {
  color: var(--terracotta);
  font-family: "adobe-handwriting-ernie", cursive;
  font-size: 1.12em;
  font-weight: 400;
  letter-spacing: 0;
}

.guest-gate__panel > p {
  max-width: 480px;
  margin: 34px 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
}

.guest-gate__form {
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
  text-align: left;
}

.guest-gate__form label,
.admin-login form label,
.admin-list-toolbar label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guest-select-wrap {
  position: relative;
}

.guest-select-wrap::after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--terracotta);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.guest-gate select,
.guest-gate input[type="search"],
.admin-login input,
.admin-list-toolbar input {
  width: 100%;
  min-height: 62px;
  padding: 15px 54px 15px 20px;
  color: var(--olive);
  background: rgba(247, 244, 238, 0.82);
  border: 1px solid rgba(86, 90, 45, 0.44);
  border-radius: 16px;
  font: inherit;
  font-size: 1rem;
}

.guest-gate select {
  appearance: none;
}

.guest-gate select:disabled {
  opacity: 0.65;
}

.guest-gate__form .primary-button {
  width: 100%;
  margin-top: 8px;
}

.guest-gate__status,
.admin-login__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--terracotta);
  font-size: 0.92rem;
  text-align: center;
}

/* Personalized context */
.guest-context {
  min-height: 58px;
  padding: 12px clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 22px;
  position: relative;
  z-index: 60;
  color: var(--white);
  background: var(--olive);
}

.guest-context p,
.guest-context span {
  margin: 0;
}

.guest-context p {
  font-size: clamp(1.18rem, 2.1vw, 1.75rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.guest-context strong {
  color: var(--mustard);
  font-size: 1.16em;
}

.guest-context span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-portal__header button,
.admin-portal__header a,
.admin-logout {
  padding: 7px 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-portal__header a {
  text-decoration: none;
}

/* Personalized event cards */
.events-anchor {
  height: 0;
  display: block;
  position: relative;
  scroll-margin-top: 24px;
  z-index: 4;
}

.scroll-card {
  transform: none;
}

.event-card.scroll-card,
.gift-block.scroll-card {
  position: sticky;
  top: var(--sticky-top, 0px);
}

.carousel-slide {
  width: auto;
  flex-basis: auto;
  aspect-ratio: var(--photo-ratio, 3 / 4);
}

.carousel-slide img {
  width: 100%;
  max-width: none;
  object-fit: contain;
}

.carousel-slide:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: -5px;
}

.photo-lightbox {
  width: min(94vw, 1240px);
  max-width: none;
  max-height: 94svh;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.photo-lightbox::backdrop {
  background: rgba(24, 27, 18, 0.88);
  backdrop-filter: blur(5px);
}

.photo-lightbox__inner {
  min-height: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  position: relative;
}

.photo-lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 82svh;
  display: block;
  object-fit: contain;
  border-radius: clamp(16px, 2vw, 28px);
  touch-action: pan-y;
}

.photo-lightbox .dialog-close {
  top: 12px;
  right: 12px;
  z-index: 2;
  color: var(--white);
  background: rgba(86, 90, 45, 0.82);
  border-color: rgba(247, 244, 238, 0.62);
}

.photo-lightbox__nav {
  width: clamp(46px, 5vw, 62px);
  height: clamp(46px, 5vw, 62px);
  padding: 0 0 5px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  z-index: 2;
  color: var(--white);
  background: rgba(86, 90, 45, 0.82);
  border: 1px solid rgba(247, 244, 238, 0.62);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.photo-lightbox__nav::before {
  content: "";
  width: 13px;
  height: 13px;
  display: block;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
}

.photo-lightbox__nav--previous {
  left: 12px;
}

.photo-lightbox__nav--previous::before {
  margin-left: 5px;
  transform: rotate(135deg);
}

.photo-lightbox__nav--next {
  right: 12px;
}

.photo-lightbox__nav--next::before {
  margin-right: 5px;
  transform: rotate(-45deg);
}

.photo-lightbox__nav:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .photo-lightbox {
    width: 100vw;
  }

  .photo-lightbox__nav {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .photo-lightbox__nav--previous {
    left: calc(50% - 62px);
  }

  .photo-lightbox__nav--next {
    right: calc(50% - 62px);
  }
}

@media (min-width: 1101px) {
  .carousel-section {
    min-height: max(680px, 100svh);
    padding: clamp(46px, 6.5svh, 76px) 0 clamp(48px, 7svh, 84px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .carousel-section .section-heading h1 {
    font-size: clamp(4rem, 5.4vw, 5.35rem);
    line-height: 0.88;
  }

  .photo-carousel {
    margin-top: clamp(24px, 3.8svh, 42px);
  }

  .carousel-viewport {
    height: clamp(290px, 47svh, 430px);
  }

  .carousel-slide { flex-basis: auto; }
}

.site-footer.site-footer--message {
  min-height: 280px;
  padding: 46px 24px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  border-top: 1px solid rgba(209, 170, 85, 0.5);
  text-align: center;
}

.site-footer--message .site-footer__brand {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 0.88;
}

.site-footer__divider {
  width: 76px;
  height: 1px;
  display: block;
  background: var(--mustard);
  opacity: 0.82;
}

.site-footer--message p {
  width: 100%;
  max-width: 520px;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.35;
  text-wrap: balance;
}

.stay-help {
  padding: clamp(44px, 6vw, 72px) 24px;
  position: relative;
  z-index: 30;
}

.stay-help__inner {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: clamp(30px, 4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  color: var(--white);
  background: var(--olive);
  border-radius: 28px;
}

.stay-help .section-kicker {
  margin-bottom: 10px;
  color: var(--mustard);
}

.stay-help h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
}

.stay-help button {
  min-height: 58px;
  padding: 14px 24px;
  display: grid;
  place-items: center;
  color: var(--olive);
  background: var(--mustard);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.stay-help button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.stay-dialog {
  width: min(calc(100% - 28px), 980px);
  max-height: 92svh;
}

.stay-dialog .dialog-inner {
  min-height: 0;
  max-height: 92svh;
  padding: clamp(54px, 6vw, 72px) clamp(20px, 5vw, 58px) 44px;
  align-items: stretch;
  overflow-y: auto;
  text-align: left;
}

.stay-dialog__header {
  margin-bottom: 34px;
  text-align: center;
}

.stay-dialog__header .section-kicker {
  display: block;
  color: var(--terracotta);
}

.stay-dialog .stay-dialog__header h2 {
  margin: 10px 0 14px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
}

.stay-dialog__header p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.stay-options-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stay-option {
  min-width: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  background: rgba(247, 244, 238, 0.72);
  border: 1px solid rgba(86, 90, 45, 0.24);
  border-radius: 20px;
}

.stay-option--wide {
  grid-column: 1 / -1;
}

.stay-option__letter {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--olive);
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 700;
}

.stay-option h3 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.stay-option p {
  margin: 0;
  line-height: 1.45;
}

.stay-option__distance {
  margin-top: 12px !important;
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stay-option__prices {
  margin: 18px 0;
  border-top: 1px solid rgba(86, 90, 45, 0.22);
}

.stay-option__prices > div {
  padding: 9px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid rgba(86, 90, 45, 0.18);
}

.stay-option__prices dt {
  font-size: 0.88rem;
}

.stay-option__prices dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.stay-option__booking {
  margin-top: 16px !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.stay-option__booking a,
.stay-dialog__contact a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.stay-option__small,
.stay-option li {
  font-size: 0.82rem;
  line-height: 1.5;
}

.stay-option__small {
  margin-top: 12px !important;
}

.stay-option ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.stay-dialog__contact {
  margin-top: 24px;
  padding: 28px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--white);
  background: var(--olive);
  border-radius: 20px;
  text-align: center;
}

.stay-dialog__contact-label {
  color: var(--mustard);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stay-dialog__contact > p {
  max-width: 530px;
  margin: 0 0 8px;
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stay-dialog__contact-button {
  width: min(100%, 390px);
  min-height: 64px;
  padding: 12px 22px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--olive) !important;
  background: var(--mustard);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
}

.stay-dialog__contact-button span,
.stay-dialog__contact-button strong {
  display: block;
  color: var(--olive);
}

.stay-dialog__contact-button span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stay-dialog__contact-button strong {
  font-size: 1.05rem;
}

.stay-dialog__contact-button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .stay-dialog {
    width: calc(100% - 16px);
    max-height: 96svh;
    border-radius: 24px;
  }

  .stay-dialog .dialog-inner {
    max-height: 96svh;
    padding: 60px 14px 20px;
  }

  .stay-options-list {
    grid-template-columns: 1fr;
  }

  .stay-option--wide {
    grid-column: auto;
  }

  .stay-dialog__contact {
    padding: 24px 16px;
  }
}

.event-card__note,
.event-card__fine-print {
  font-size: 0.92rem;
  line-height: 1.45;
}

.event-card__note {
  margin: 18px 0 0;
  opacity: 0.82;
}

.party-dresscode .dresscode-note {
  margin-top: 28px;
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.74;
}

.civil-after .event-card__fine-print {
  margin-top: 8px;
  color: var(--terracotta);
  font-size: 0.88rem;
  font-weight: 700;
}

.music-toggle {
  min-height: 46px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 7000;
  color: var(--white);
  background: var(--olive);
  border: 1px solid rgba(247, 244, 238, 0.52);
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.music-toggle > span:first-child {
  color: var(--mustard);
  font-size: 1.05rem;
}

.music-toggle.is-playing > span:first-child {
  animation: music-pulse 1.4s ease-in-out infinite;
}

@keyframes music-pulse {
  50% { transform: scale(1.18); }
}

@media (max-width: 760px) {
  .stay-help__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .stay-help .section-kicker,
  .stay-help h2 {
    text-align: center;
  }

  .music-toggle {
    width: 46px;
    height: 46px;
    min-height: 0;
    padding: 0;
    justify-content: center;
    right: 12px;
    bottom: 12px;
  }

  .music-toggle [data-music-label] {
    display: none;
  }

  .site-footer.site-footer--message {
    min-height: 260px;
    padding: 42px 24px 48px;
  }

  .site-footer--message p {
    max-width: 360px;
  }
}

.event-card {
  min-height: 720px;
  padding: clamp(92px, 10vw, 150px) clamp(32px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  position: relative;
}

.event-card__content {
  width: min(100%, 940px);
  margin-inline: auto;
  position: relative;
  z-index: 30;
}

.event-card h2 {
  margin: 0;
  font-size: clamp(4.2rem, 8vw, 7.7rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.event-card h2 em {
  display: block;
  color: var(--terracotta);
  font-family: "adobe-handwriting-ernie", cursive;
  font-size: 0.88em;
  font-weight: 400;
  letter-spacing: 0;
}

.event-card__intro {
  max-width: 680px;
  margin: 42px 0 46px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.42;
}

.event-illustration {
  width: min(100%, 580px);
  height: auto;
  margin: 0 auto clamp(38px, 5vw, 64px);
  display: block;
}

.event-illustration--church {
  width: min(82%, 430px);
  opacity: 0.82;
}

.event-illustration--salon {
  width: min(100%, 680px);
  opacity: 0.88;
}

.event-card__details {
  margin: 0;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  border-top: 1px solid rgba(86, 90, 45, 0.42);
  border-bottom: 1px solid rgba(86, 90, 45, 0.42);
}

.olive-surface .event-card__details {
  border-color: rgba(247, 244, 238, 0.34);
}

.event-card__details div {
  padding: 22px 24px;
}

.event-card__details div + div {
  border-left: 1px solid rgba(86, 90, 45, 0.42);
}

.olive-surface .event-card__details div + div {
  border-color: rgba(247, 244, 238, 0.34);
}

.event-card__details dt {
  margin-bottom: 8px;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.olive-surface .event-card__details dt {
  color: var(--mustard);
}

.event-card__details dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.event-stop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-stop {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(86, 90, 45, 0.34);
  border-radius: 22px;
}

.event-stop h3 {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
}

.event-stop dl {
  margin: 0;
}

.event-stop dl div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  border-top: 1px solid rgba(86, 90, 45, 0.2);
}

.event-stop dt {
  color: var(--terracotta);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-stop dd {
  margin: 0;
  font-size: 0.92rem;
}

.event-map-link {
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.olive-surface .event-map-link {
  color: var(--olive);
  background: var(--white);
  border-color: var(--white);
}

.event-map-link:hover {
  color: var(--white);
  background: var(--olive);
  border-color: var(--olive);
}

.olive-surface .event-map-link:hover {
  color: var(--white);
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.event-map-link.is-disabled {
  color: rgba(86, 90, 45, 0.66);
  background: transparent;
  border-color: rgba(86, 90, 45, 0.34);
  cursor: default;
}

.event-card--civil {
  min-height: 850px;
}

.civil-after {
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(86, 90, 45, 0.34);
}

.civil-after .section-kicker {
  margin-bottom: 14px;
}

.civil-after h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.civil-after h3 em {
  display: block;
  color: var(--terracotta);
  font-family: "adobe-handwriting-ernie", cursive;
  font-weight: 400;
}

.civil-after p {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.4;
}

.event-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.event-actions .event-map-link,
.event-actions .primary-button {
  margin-top: 0;
}

.event-actions .primary-button {
  min-width: 250px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 0.88rem;
}

.party-dresscode {
  margin-top: clamp(56px, 6vw, 86px);
  padding-top: clamp(28px, 3vw, 42px);
  border-top: 1px solid rgba(247, 244, 238, 0.34);
  scroll-margin-top: 32px;
}

.party-dresscode h3 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(2.15rem, 4.5vw, 4rem);
  line-height: 1;
}

.party-dresscode h3 em {
  color: var(--mustard);
  font-family: "adobe-handwriting-ernie", cursive;
  font-weight: 400;
}

.party-dresscode p {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.4;
}

.party-dresscode strong {
  color: var(--mustard);
}

.party-rsvp {
  min-height: 560px;
  padding: clamp(96px, 11vw, 150px) 0 clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  scroll-margin-top: 24px;
}

.party-rsvp .section-kicker {
  margin-bottom: 22px;
}

.event-card .party-rsvp h2 {
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 0.9;
}

.party-rsvp p {
  max-width: 720px;
  margin: 42px 0 48px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.38;
}

.card-layer-7 { --card-layer: 7; }
.card-layer-8 { --card-layer: 8; }
.card-layer-9 { --card-layer: 9; }

/* Admin profile */
.admin-portal {
  min-height: 100svh;
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow: auto;
  color: var(--olive);
  background: var(--paper);
}

.admin-portal::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/rf-paper.webp") center top / cover;
  mix-blend-mode: multiply;
  opacity: 0.06;
  pointer-events: none;
}

.admin-portal__header {
  min-height: 92px;
  padding: 8px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(217, 221, 216, 0.96);
  border-bottom: 1px solid rgba(86, 90, 45, 0.2);
}

.admin-portal__header img {
  width: 126px;
  height: 72px;
  object-fit: contain;
}

.admin-login {
  min-height: calc(100svh - 92px);
  padding: 48px 20px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.admin-login__card {
  width: min(100%, 670px);
  padding: clamp(52px, 7vw, 86px);
  border: 1px solid rgba(86, 90, 45, 0.3);
  border-radius: 34px;
  text-align: center;
  overflow: hidden;
}

.admin-login__card > * {
  position: relative;
  z-index: 30;
}

.admin-login__card > p {
  max-width: 470px;
  margin: 34px auto;
  font-size: 1.15rem;
  line-height: 1.5;
}

.admin-login form {
  display: grid;
  gap: 10px;
  text-align: left;
}

.admin-login input {
  padding-right: 20px;
  margin-bottom: 8px;
  background: var(--white);
}

.admin-login .primary-button {
  width: 100%;
  margin-top: 10px;
}

.admin-dashboard {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) 0 110px;
  position: relative;
  z-index: 1;
}

.admin-dashboard__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.admin-dashboard__intro h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.admin-logout {
  flex: 0 0 auto;
  color: var(--terracotta);
}

.admin-summary {
  margin: 58px 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(86, 90, 45, 0.28);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(247, 244, 238, 0.55);
}

.admin-summary article {
  min-height: 130px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 6px;
  text-align: center;
}

.admin-summary article + article {
  border-left: 1px solid rgba(86, 90, 45, 0.22);
}

.admin-summary span {
  color: var(--terracotta);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}

.admin-summary strong {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-add-card {
  margin: 0 0 28px;
  padding: clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(440px, 1.28fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  background: rgba(247, 244, 238, 0.76);
  border: 1px solid rgba(86, 90, 45, 0.28);
  border-radius: 28px;
}

.admin-add-card__intro h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1;
}

.admin-add-card__intro p {
  margin: 0;
  line-height: 1.5;
}

.admin-add-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 18px 20px;
}

.admin-add-form__name {
  display: grid;
  gap: 8px;
}

.admin-add-form__name > span,
.admin-add-form legend {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-add-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  color: var(--olive);
  background: var(--white);
  border: 1px solid rgba(86, 90, 45, 0.38);
  border-radius: 13px;
  font: inherit;
}

.admin-add-form fieldset {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  grid-column: 1 / -1;
  border: 0;
}

.admin-add-form legend {
  width: 100%;
  margin-bottom: 8px;
}

.admin-add-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-add-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--terracotta);
}

.admin-add-form .primary-button {
  min-width: 190px;
  min-height: 52px;
  padding: 12px 22px;
}

.admin-add-form__status {
  min-height: 1.35em;
  margin: 0;
  grid-column: 1 / -1;
  color: var(--terracotta);
  font-size: 0.85rem;
}

.admin-list-card {
  background: var(--white);
  border: 1px solid rgba(86, 90, 45, 0.28);
  border-radius: 28px;
  overflow: hidden;
}

.admin-list-toolbar {
  padding: 26px 30px;
  display: grid;
  grid-template-columns: auto minmax(220px, 360px) 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(86, 90, 45, 0.2);
}

.admin-list-toolbar input {
  min-height: 48px;
  padding: 10px 16px;
  background: white;
  border-radius: 12px;
}

.admin-list-toolbar span {
  justify-self: end;
  color: rgba(86, 90, 45, 0.7);
  font-size: 0.82rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
}

.guest-table th,
.guest-table td {
  padding: 20px 26px;
  border-bottom: 1px solid rgba(86, 90, 45, 0.16);
}

.guest-table thead th {
  color: var(--terracotta);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.guest-table thead th:first-child,
.guest-table tbody th {
  text-align: left;
}

.guest-table tbody th {
  width: 52%;
  font-size: 1.05rem;
}

.guest-table__note {
  display: block;
  margin-top: 4px;
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 400;
}

.guest-table td {
  text-align: center;
}

.guest-table input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.guest-table__empty {
  height: 150px;
  text-align: center !important;
}

.guest-gate select:focus-visible,
.guest-gate input:focus-visible,
.guest-gate button:focus-visible,
.admin-portal a:focus-visible,
.admin-portal button:focus-visible,
.admin-portal input:focus-visible,
.guest-table input:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .guest-gate {
    grid-template-columns: 1fr;
  }

  .guest-gate__art {
    min-height: 100svh;
    position: fixed;
    inset: 0;
  }

  .guest-gate__art::after {
    background: rgba(42, 45, 28, 0.62);
  }

  .guest-gate__panel {
    width: min(calc(100% - 24px), 530px);
    min-height: 0;
    max-height: calc(100svh - 24px);
    margin: 12px auto;
    padding: clamp(20px, 3svh, 30px) clamp(20px, 5vw, 36px);
    align-self: center;
    justify-content: flex-start;
    overflow-y: auto;
    border-radius: 26px;
  }

  .guest-gate__seal {
    width: 112px;
    margin-bottom: 12px;
  }

  .guest-gate h1 {
    font-size: clamp(2.4rem, 7vw, 3.5rem);
    line-height: 0.94;
  }

  .guest-gate__panel > p {
    margin: 18px 0 20px;
    font-size: 1.05rem;
    line-height: 1.36;
  }

  .guest-gate__form {
    gap: 8px;
  }

  .guest-gate select,
  .guest-gate input[type="search"] {
    min-height: 50px;
    padding: 10px 44px 10px 16px;
  }

  .guest-gate__form .primary-button {
    min-height: 52px;
    margin-top: 4px;
    padding: 10px 20px;
  }

  .guest-gate__status:empty {
    display: none;
  }

  .event-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .admin-list-toolbar {
    grid-template-columns: auto 1fr;
  }

  .admin-list-toolbar span {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (min-width: 901px) and (max-height: 900px) {
  .guest-gate__panel {
    padding-top: 22px;
    padding-bottom: 22px;
    overflow-y: auto;
  }

  .guest-gate__seal {
    width: min(120px, 16vh);
    margin-bottom: 10px;
  }

  .guest-gate .section-kicker {
    margin-bottom: 10px;
  }

  .guest-gate h1 {
    font-size: clamp(3rem, 7vh, 4.2rem);
    line-height: 0.92;
  }

  .guest-gate__panel > p {
    margin: 18px 0;
    font-size: 1rem;
    line-height: 1.35;
  }

  .guest-gate__form {
    gap: 8px;
  }

  .guest-gate select,
  .guest-gate input[type="search"] {
    min-height: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .guest-gate__form .primary-button {
    min-height: 52px;
    margin-top: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .guest-gate__status:empty {
    display: none;
  }

}

@media (max-width: 760px) {
  .topbar nav {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    font-size: clamp(0.52rem, 2.45vw, 0.66rem);
  }

  .guest-context {
    padding: 14px 18px;
    grid-template-columns: 1fr;
    gap: 6px 14px;
  }

  .guest-context span {
    grid-column: 1;
  }

  .event-card {
    min-height: 650px;
    padding: 84px 24px 92px;
  }

  .event-card h2 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .event-card__intro {
    margin: 32px 0 36px;
    font-size: clamp(1.25rem, 6vw, 1.65rem);
  }

  .event-illustration {
    margin-bottom: 34px;
  }

  .event-illustration--church {
    width: min(94%, 360px);
  }

  .event-illustration--salon {
    width: 100%;
  }

  .event-card__details {
    grid-template-columns: 1fr;
  }

  .event-card__details div {
    padding: 18px 4px;
  }

  .event-card__details div + div {
    border-top: 1px solid rgba(86, 90, 45, 0.42);
    border-left: 0;
  }

  .olive-surface .event-card__details div + div {
    border-color: rgba(247, 244, 238, 0.34);
  }

  .event-stop-grid {
    grid-template-columns: 1fr;
  }

  .event-stop dl div {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .event-card--civil {
    min-height: 980px;
  }

  .party-rsvp {
    min-height: 540px;
    padding-top: 96px;
  }

  .event-card .party-rsvp h2 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .party-rsvp p {
    margin: 34px 0 40px;
    font-size: clamp(1.3rem, 6.2vw, 1.8rem);
  }

  .party-rsvp .primary-button {
    width: 100%;
    min-width: 0;
  }

  .event-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .event-actions .primary-button {
    width: 100%;
    min-width: 0;
  }

  .event-map-link {
    width: 100%;
  }

  .admin-portal__header {
    min-height: 78px;
    padding: 4px 16px;
  }

  .admin-portal__header img {
    width: 94px;
    height: 62px;
  }

  .admin-portal__header button,
  .admin-portal__header a {
    font-size: 0.68rem;
  }

  .admin-login {
    min-height: calc(100svh - 78px);
    padding: 24px 14px;
  }

  .admin-login__card {
    padding: 48px 22px;
    border-radius: 26px;
  }

  .admin-dashboard {
    width: min(100% - 24px, 1280px);
    padding-top: 48px;
  }

  .admin-dashboard__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-summary {
    margin-top: 42px;
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-summary article {
    min-height: 110px;
  }

  .admin-summary article + article {
    border-left: 0;
  }

  .admin-summary article:nth-child(even) {
    border-left: 1px solid rgba(86, 90, 45, 0.22);
  }

  .admin-summary article:nth-child(n + 3) {
    border-top: 1px solid rgba(86, 90, 45, 0.22);
  }

  .admin-add-card {
    padding: 26px 20px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .admin-add-form {
    grid-template-columns: 1fr;
  }

  .admin-add-form .primary-button {
    width: 100%;
  }

  .admin-list-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .admin-list-toolbar {
    padding: 0 0 22px;
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .admin-list-toolbar span {
    grid-column: auto;
  }

  .guest-table,
  .guest-table tbody,
  .guest-table tr,
  .guest-table th,
  .guest-table td {
    display: block;
    width: 100%;
  }

  .guest-table thead {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
  }

  .guest-table tr {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border: 1px solid rgba(86, 90, 45, 0.25);
    border-radius: 20px;
    overflow: hidden;
  }

  .guest-table tbody th {
    grid-column: 1 / -1;
    padding: 20px;
    border-bottom: 1px solid rgba(86, 90, 45, 0.16);
  }

  .guest-table td {
    padding: 15px 8px 17px;
    display: grid;
    place-items: center;
    gap: 8px;
    border-bottom: 0;
  }

  .guest-table td + td {
    border-left: 1px solid rgba(86, 90, 45, 0.16);
  }

  .guest-table td::before {
    content: attr(data-label);
    color: var(--terracotta);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .guest-table__empty {
    grid-column: 1 / -1;
    display: grid !important;
    place-items: center;
  }
}

@media (max-width: 420px) {
  .guest-gate__panel {
    padding: 20px 18px;
  }

  .guest-gate__seal {
    width: 96px;
    margin-bottom: 8px;
  }

  .admin-login h1 {
    font-size: clamp(2.8rem, 15vw, 3.8rem);
  }

  .guest-gate h1 {
    font-size: clamp(2.2rem, 10vw, 2.8rem);
  }

  .guest-gate__panel > p {
    margin: 14px 0 16px;
    font-size: 0.98rem;
  }

  .guest-gate__form label {
    font-size: 0.66rem;
  }

  .guest-context p,
  .guest-context span {
    line-height: 1.3;
  }

  .guest-context p {
    font-size: 1.18rem;
  }

  .guest-context span {
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) and (max-height: 650px) {
  .guest-gate__panel {
    padding: 14px 16px;
  }

  .guest-gate__seal {
    width: 72px;
    margin-bottom: 4px;
  }

  .guest-gate h1 {
    font-size: clamp(1.95rem, 9vw, 2.3rem);
  }

  .guest-gate__panel > p {
    margin: 9px 0 11px;
    font-size: 0.88rem;
    line-height: 1.28;
  }

  .guest-gate__form {
    gap: 5px;
  }

  .guest-gate select,
  .guest-gate input[type="search"] {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .guest-gate__form .primary-button {
    min-height: 46px;
  }

}
