/* Norman Chateau RSVP version. Kept separate so it wins over old deck experiments. */
.farayan-hero {
  justify-items: center;
  margin-top: clamp(36px, 7vw, 70px);
  text-align: center;
}

.quiet-nav {
  justify-content: center;
  width: 100%;
  margin-top: -18px;
  color: rgba(23, 23, 23, 0.52);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-align: center;
}

.quiet-nav a {
  color: inherit;
  text-decoration: none;
}

.quiet-nav a:hover {
  text-decoration: none;
}

.farayan-hero h1 {
  max-width: 900px;
  color: var(--quiet-ink);
  font-size: clamp(36px, 8vw, 86px);
  font-weight: 720;
  line-height: 0.94;
}

.farayan-hero p {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
}

.farayan-hero p a {
  color: inherit;
  text-decoration: none;
}

.shader-stage.hero-gallery {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.98fr;
  grid-template-rows: none;
  gap: clamp(8px, 1.8vw, 16px);
  align-items: center;
  width: min(840px, 100%);
  margin: clamp(34px, 7vw, 72px) auto clamp(18px, 4vw, 34px);
  padding: 10px 6px 8px;
}

.hero-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 24px 18px 28px 20px;
  background: #fff;
  box-shadow:
    0 18px 34px rgba(35, 31, 25, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(23, 23, 23, 0.06);
  cursor: zoom-in;
  padding: 0;
  transform: rotate(-2.4deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-photo-main {
  grid-row: auto;
  aspect-ratio: 1.08 / 1;
  border-radius: 32px 22px 28px 24px;
}

.hero-photo:nth-child(2) {
  margin-top: 34px;
  border-color: #fffaf0;
  border-radius: 22px 30px 18px 26px;
  transform: rotate(2.6deg);
}

.hero-photo:nth-child(3) {
  margin-top: -22px;
  border-color: #f5fff8;
  border-radius: 28px 20px 30px 18px;
  transform: rotate(-1.2deg);
}

.hero-photo::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-photo:hover,
.hero-photo:focus-visible {
  box-shadow:
    0 22px 40px rgba(35, 31, 25, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(23, 23, 23, 0.06);
  transform: rotate(0deg) translateY(-2px);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.selected-place {
  gap: 18px;
}

.place-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  border-top: 0;
  padding: 0 0 28px;
}

.place-card .house-copy {
  gap: 12px;
}

.place-card .house-copy > p {
  width: min(100%, 760px);
  max-width: none;
  color: #413f3a;
  font-size: 15px;
  line-height: 1.5;
}

.trip-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.trip-brief section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 18px 18px 20px 0;
}

.trip-brief section + section {
  border-left: 1px solid var(--quiet-line);
  padding-left: 18px;
}

.trip-brief h2,
.rank-heading h2 {
  color: var(--quiet-ink);
  font-size: 18px;
  font-weight: 560;
  line-height: 1.15;
}

.trip-brief p,
.rank-heading p {
  margin: 0;
  color: #55524d;
  font-size: 12px;
  line-height: 1.45;
}

.rsvp-panel {
  width: min(820px, 100%);
  margin-top: clamp(44px, 7vw, 74px);
}

.flyer-lock-panel {
  display: grid;
  justify-items: start;
  gap: 16px;
  border-bottom: 1px solid var(--quiet-line);
  padding: 26px 0 30px;
}

.flyer-lock-panel .rank-heading {
  display: grid;
  gap: 8px;
}

.lock-text-cta {
  display: inline-grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(88, 197, 238, 0.3);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(247, 253, 255, 0.98), rgba(203, 240, 253, 0.78)),
    #fcfbf8;
  box-shadow:
    0 18px 42px rgba(88, 197, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #28566d;
  padding: 0 24px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 760;
}

.rsvp-panel .rank-form {
  gap: 16px;
}

.rsvp-panel .rank-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rsvp-panel #rank-comment,
.rsvp-panel #rank-submit {
  grid-column: 1 / -1;
}

.rank-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rank-result-meta span {
  width: fit-content;
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  color: rgba(23, 23, 23, 0.58);
  padding: 3px 8px;
  font-size: 10px;
}

.rsvp-sticker-picker {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(135deg, rgba(218, 245, 229, 0.64), rgba(217, 239, 252, 0.58) 52%, rgba(255, 235, 204, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 11px;
}

.rsvp-sticker-preview,
.rsvp-sticker {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 43% 57% 49% 51% / 55% 42% 58% 45%;
  background: var(--avatar-bg, #eef8ff);
  color: var(--avatar-ink, #253647);
  box-shadow: 0 10px 22px rgba(35, 31, 25, 0.14), 0 1px 0 rgba(255, 255, 255, 0.9);
}

.rsvp-sticker-preview {
  width: 66px;
  transform: rotate(-3deg);
}

.rsvp-sticker-preview[data-sticker="barn"],
.rsvp-sticker-choice[data-sticker-choice="barn"] {
  border-radius: 52% 48% 45% 55% / 46% 58% 42% 54%;
}

.rsvp-sticker-preview[data-sticker="room"],
.rsvp-sticker-choice[data-sticker-choice="room"] {
  border-radius: 48% 52% 58% 42% / 54% 44% 56% 46%;
}

.rsvp-sticker-preview[data-sticker="upload"] {
  border-radius: 999px 49% 999px 52%;
  transform: rotate(2deg);
}

.rsvp-sticker-preview img,
.rsvp-sticker-img,
.rsvp-sticker-choice img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rsvp-sticker-preview[data-sticker="upload"] img,
.rsvp-sticker[data-sticker-type="upload"] .rsvp-sticker-img {
  object-fit: cover;
}

.rsvp-sticker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.rsvp-sticker-choice {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 43% 57% 49% 51% / 55% 42% 58% 45%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(35, 31, 25, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.rsvp-sticker-choice:nth-child(2) {
  transform: rotate(2deg);
}

.rsvp-sticker-choice:nth-child(3) {
  transform: rotate(-2deg);
}

.rsvp-sticker-choice:hover,
.rsvp-sticker-choice:focus-visible,
.rsvp-sticker-choice[data-active="true"] {
  outline: 2px solid rgba(69, 169, 208, 0.58);
  outline-offset: 2px;
  box-shadow: 0 8px 18px rgba(35, 31, 25, 0.16);
}

.rsvp-upload-choice {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(23, 23, 23, 0.62);
  cursor: pointer;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.rsvp-upload-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rsvp-roster-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--quiet-ink);
  font-size: 12px;
}

.rsvp-roster-summary strong {
  font-size: 14px;
}

.rsvp-roster-summary span {
  color: rgba(23, 23, 23, 0.52);
}

.rsvp-roster-preview {
  color: rgba(23, 23, 23, 0.58);
}

.rsvp-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(215, 246, 226, 0.36), rgba(212, 239, 251, 0.32));
  padding: 12px 13px;
}

.rsvp-sticker {
  width: 56px;
  font-size: 22px;
  font-weight: 780;
  transform: rotate(var(--sticker-tilt, -2deg));
}

.rsvp-card-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rsvp-card-copy > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--quiet-ink);
  font-size: 15px;
  line-height: 1.1;
}

.rsvp-date-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.08);
}

.rsvp-date-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(102, 213, 150, 0.82), rgba(90, 190, 225, 0.82), rgba(232, 186, 88, 0.84));
}

.rsvp-card p {
  margin: 0;
  color: rgba(23, 23, 23, 0.58);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .farayan-hero {
    justify-items: start;
    text-align: left;
  }

  .shader-stage.hero-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 7px;
    width: 100%;
    margin-bottom: 18px;
    padding-inline: 0;
  }

  .hero-photo,
  .hero-photo-main {
    aspect-ratio: 1 / 1.05;
    border-width: 5px;
    border-radius: 18px 14px 20px 15px;
  }

  .hero-photo:nth-child(2) {
    margin-top: 18px;
  }

  .hero-photo:nth-child(3) {
    margin-top: -12px;
  }

  .place-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .trip-brief {
    grid-template-columns: minmax(0, 1fr);
  }

  .trip-brief section {
    padding: 15px 0;
  }

  .trip-brief section + section {
    border-top: 1px solid var(--quiet-line);
    border-left: 0;
    padding-left: 0;
  }

  .rsvp-panel .rank-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .rsvp-sticker-picker {
    grid-template-columns: 66px minmax(0, 1fr);
    border-radius: 26px;
  }

  .rsvp-sticker-preview {
    width: 56px;
  }

  .rsvp-upload-choice {
    min-height: 34px;
    padding: 0 11px;
  }

  .rsvp-card {
    grid-template-columns: 54px minmax(0, 1fr);
    border-radius: 26px;
    padding: 11px;
  }

  .rsvp-sticker {
    width: 50px;
  }
}

.trip-brief,
.trip-brief section:first-child {
  border-top: 0;
}

.flyer-lock-panel,
.flyer-lock-panel .rank-heading,
.flyer-lock-panel .rank-heading p {
  justify-items: center;
  text-align: center;
}

.flyer-lock-panel {
  border-bottom: 0;
}

@media (max-width: 680px) {
  .farayan-hero {
    justify-items: center;
    text-align: center;
  }
}

.flyer-lock-panel {
  justify-items: center;
  width: min(820px, 100%);
}

.flyer-lock-panel .rank-heading {
  width: 100%;
}

.flyer-lock-panel {
  grid-template-columns: minmax(0, 1fr);
  margin-right: auto;
  margin-left: auto;
}

.dock-launcher .rank-peek {
  flex-basis: clamp(158px, 15vw, 184px);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .dock-launcher .rank-peek {
    flex-basis: 132px;
    padding-inline: 12px;
    font-size: 14px;
  }
}
