/* Phone overflow. Do not restyle live.css layouts. */
*, *::before, *::after {
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

html, body, #root, .wedding-page, p, span, div, h1, h2, h3, h4, h5, h6, a, button, section, article, figure, header, footer {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

::selection {
  background: transparent !important;
  color: inherit !important;
}

::-moz-selection {
  background: transparent !important;
  color: inherit !important;
}

img, svg, video, picture, source {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-y: contain;
}

/* Scrollbar suppression for phone mode, phone preview simulator, and embedded iframes */
html[data-device="phone"],
html[data-device="phone"] body,
html.no-scrollbar,
html.no-scrollbar body,
body.in-iframe,
body.phone-mode {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body.in-iframe {
  padding-bottom: 7.5rem !important;
}

body.in-iframe .footer-editorial {
  padding-bottom: 8.5rem !important;
}

html[data-device="phone"]::-webkit-scrollbar,
html[data-device="phone"] body::-webkit-scrollbar,
html.no-scrollbar::-webkit-scrollbar,
html.no-scrollbar body::-webkit-scrollbar,
body.in-iframe::-webkit-scrollbar,
body.phone-mode::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
#boot-splash {
  width: 100%;
  max-width: 100%;
  left: 0;
  right: 0;
}
body {
  min-height: 100svh;
}
#root,
.wedding-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.serve-hint {
  position: relative;
  z-index: 20;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid hsl(var(--gold) / 0.4);
  background: #fff8f2;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

#lang-dock {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}
#lang-toggle.language-switcher-button {
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.u-sr-only {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notes-editorial__item button svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.programme__event-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  opacity: 0.025;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 34%,
    rgba(0, 0, 0, 0.34) 50%,
    rgba(0, 0, 0, 0.84) 75%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 34%,
    rgba(0, 0, 0, 0.34) 50%,
    rgba(0, 0, 0, 0.84) 75%,
    #000 100%
  );
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.11s;
}
.programme__event--revealed > .programme__event-art {
  opacity: 0.34;
}
.programme__event--sangeet > .programme__event-art,
.programme__event--phere > .programme__event-art {
  object-position: top right;
}

.welcome-editorial__links {
  grid-template-columns: 1fr;
}
.welcome-editorial__links:after {
  display: none !important;
}
.welcome-editorial__links--1 {
  grid-template-columns: 1fr;
}
.welcome-editorial__links--2 {
  grid-template-columns: 1fr 1fr;
}
.welcome-editorial__links--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (min-width: 1024px) {
  .welcome-editorial__links--2,
  .welcome-editorial__links--3 {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  }
}
.welcome-editorial--letter-only {
  display: block !important;
  min-height: 0 !important;
  width: 100%;
  background: #f7f1e8;
  padding: 3.25rem 1.25rem 4rem;
}
.welcome-editorial--letter-only .welcome-editorial__media {
  display: none !important;
}
.welcome-editorial--letter-only .welcome-editorial__letter {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
}
.rsvp-card {
  padding: 2.75rem 1.25rem 3.25rem;
  background: #f7f1e8;
}
.rsvp-card .editorial-shell {
  max-width: 40rem;
  margin: 0 auto;
}
.rsvp-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}
.rsvp-card__link {
  color: inherit;
  word-break: break-word;
}

.dress-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.95) 100%);
}
.dress-modal.is-open {
  display: flex;
  flex-direction: column;
}
.dress-modal__frame {
  position: relative;
  flex: 1;
  margin: max(1rem, env(safe-area-inset-top)) 0.75rem max(1rem, env(safe-area-inset-bottom));
  overflow: hidden;
  border-radius: 1rem;
  background: #111;
  transform-origin: center center;
}
.dress-modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.dress-modal__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff;
  pointer-events: none;
}
.dress-modal__pulse {
  display: flex;
  gap: 0.4rem;
}
.dress-modal__pulse span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: hsl(40, 33%, 70%);
  animation: bootPulse 1.1s ease-in-out infinite;
}
.dress-modal__pulse span:nth-child(2) {
  animation-delay: 0.15s;
}
.dress-modal__pulse span:nth-child(3) {
  animation-delay: 0.3s;
}
.dress-modal__actions {
  position: absolute;
  z-index: 3;
  right: 0.75rem;
  top: 0.75rem;
  display: flex;
  gap: 0.4rem;
}
.dress-modal__actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  cursor: pointer;
}
.dress-atmosphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.dress-story-bg,
.dress-story-texture {
  z-index: 0;
}
.dress-story-header,
.dress-story-layout {
  position: relative;
  z-index: 2;
}

.notes-editorial__item {
  border-bottom: 1px solid hsl(var(--border));
}
.notes-editorial__item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: none;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.notes-editorial__item p {
  margin: 0;
  padding: 0 0 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  line-height: 1.6;
}
.notes-editorial__item[data-open="false"] p {
  display: none;
}
.notes-editorial__item[data-open="true"] button svg {
  transform: rotate(180deg);
}

.family-invitation__name-wrap {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.family-invitation__name-track.is-overflow {
  display: inline-block;
  padding-left: 100%;
  animation: familyNameMarquee var(--family-name-duration, 8s) linear infinite;
}
@keyframes familyNameMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--family-name-travel, 100%)));
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible,
html[data-reduced-motion="true"] .animate-on-scroll {
  opacity: 1;
  transform: none;
}

html[data-reduced-motion="true"] .family-invitation__name-track.is-overflow,
html[data-reduced-motion="true"] .welcome-family-ticker__marquee,
html[data-reduced-motion="true"] .boot-splash__dot,
html[data-reduced-motion="true"] .dress-modal__pulse span {
  animation: none !important;
}

/* Responsive, beautifully balanced hero typography & alignment */
/* Responsive, beautifully balanced hero typography & alignment (Desktop & Mobile) */
.hero-stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(100%, 72rem);
  min-height: clamp(28rem, 50vw, 36rem) !important;
  margin: 0 auto !important;
  transform: none !important;
  position: relative !important;
  overflow: visible !important;
}

.hero-stage__logo-shell {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: min(14.5rem, 48vw) !important;
  max-width: 15rem !important;
  margin: 0 auto 0.75rem !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  animation: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.hero-stage__logo {
  width: 100% !important;
  height: auto !important;
  max-height: min(14.5rem, 48vw) !important;
  object-fit: contain !important;
  display: block !important;
  filter: none !important;
}

.hero-stage__copy {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: min(32rem, calc(100vw - 2.5rem)) !important;
  max-width: 90vw !important;
  transform: none !important;
  margin: 0 auto !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  animation: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.hero-stage__names {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important;
  line-height: 1.05 !important;
  overflow: visible !important;
  text-align: center !important;
}

.hero-stage__name-line {
  display: block !important;
  font-size: calc(var(--name-scale, 1) * 1em) !important;
  white-space: nowrap !important;
  text-align: center !important;
}

#hero-groom,
#hero-groom span {
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
}

#hero-bride,
#hero-bride span {
  font-weight: 480 !important;
  font-variation-settings: "wght" 480 !important;
}

html[data-device="phone"] #hero-bride,
html[data-device="phone"] #hero-bride span {
  font-weight: 480 !important;
  font-variation-settings: "wght" 480 !important;
}

@media (max-width: 768px) {
  #hero-bride,
  #hero-bride span {
    font-weight: 480 !important;
    font-variation-settings: "wght" 480 !important;
  }
}

.hero-stage__destination {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 1.25rem auto 0 !important;
  width: 100% !important;
  max-width: 90vw !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-stage__destination:before {
  display: none !important;
  content: none !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.hero-stage__destination-kicker {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  letter-spacing: 0.35em !important;
  font-size: clamp(0.72rem, 1.8vw, 0.88rem) !important;
  text-transform: uppercase !important;
  color: #556987 !important;
  display: block !important;
  margin-bottom: 0.35rem !important;
}

.hero-stage__destination-city {
  display: inline-block !important;
  text-align: center !important;
  width: 100% !important;
  letter-spacing: 0.38em !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.1rem, 3vw, 1.55rem) !important;
  color: #b38948 !important;
  overflow: visible !important;
}

.hero-stage__destination-city-letter {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

@media (max-width: 640px) {
  .hero-stage {
    min-height: 29rem !important;
    transform: translateY(-0.25rem) !important;
  }
  .hero-stage__names {
    font-size: clamp(1.95rem, 8.2vw, 2.65rem) !important;
    line-height: 1.08 !important;
  }
  .hero-stage__destination {
    margin-top: 1.15rem !important;
  }
  .hero-stage__destination:before {
    display: none !important;
    content: none !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .hero-blessings {
    position: absolute !important;
    top: 1.15rem !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    z-index: 25 !important;
    pointer-events: none !important;
  }
  .hero-blessings__ornament {
    display: none !important;
  }
  .hero-blessings__copy {
    margin: 0 auto !important;
    text-align: center !important;
  }
  .hero-blessings__copy p {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    letter-spacing: 0.06em !important;
    font-weight: 600 !important;
    color: #a87930 !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   PROGRAMME EVENT CARDS: OLI & HALDI LUXURY COLOR PALETTES
   ========================================================================== */
.programme__event--oli {
  background: linear-gradient(90deg, #6c2310fa, #8c3217f5 24%, #b44f24e6 52%, #d776388f 82%, #e9a56e2e),
    radial-gradient(circle at 10% 72%, rgba(85, 25, 10, 0.72), transparent 42%),
    radial-gradient(circle at 86% 100%, rgba(200, 105, 45, 0.42), transparent 44%),
    linear-gradient(0deg, rgba(88, 28, 12, 0.22), transparent 28%),
    linear-gradient(180deg, #fff8f2fa, #f5d6bce0 44%, #d98c599e 74%, #6e2e16ad) !important;
  --event-base: #9c3f1b;
  --event-wash-a: rgba(110, 36, 12, 0.58);
  --event-wash-b: rgba(195, 88, 32, 0.74);
  --event-ink: #fff6e8;
  --event-quiet: rgba(255, 242, 224, 0.88);
}
.programme__event--oli .programme__time,
.programme__event--oli .programme__time-main,
.programme__event--oli h4 {
  color: #fff7f9f5 !important;
}
.programme__event--oli .programme__time-main svg,
.programme__event--oli .programme__venue svg {
  color: #edcc85e6 !important;
}
.programme__event--oli .programme__time small {
  color: #f3d8a0e6 !important;
}
.programme__event--oli p,
.programme__event--oli .programme__venue {
  color: #f9e9cce6 !important;
}

.programme__event--haldi {
  background: linear-gradient(90deg, #7c5803fa, #9a6d05f5 24%, #b8860be6 52%, #d4a0179a 82%, #fef08a2e),
    radial-gradient(circle at 10% 72%, rgba(105, 75, 4, 0.72), transparent 42%),
    radial-gradient(circle at 86% 100%, rgba(234, 179, 8, 0.45), transparent 44%),
    linear-gradient(0deg, rgba(120, 85, 5, 0.2), transparent 28%),
    linear-gradient(180deg, #fffef2fa, #fef3c7e0 44%, #fde0479e 74%, #854d0ead) !important;
  --event-base: #b47a06;
  --event-wash-a: rgba(125, 85, 3, 0.58);
  --event-wash-b: rgba(234, 179, 8, 0.74);
  --event-ink: #fffdf5;
  --event-quiet: rgba(255, 252, 235, 0.88);
}
.programme__event--haldi .programme__time,
.programme__event--haldi .programme__time-main,
.programme__event--haldi h4 {
  color: #fffef2fa !important;
}
.programme__event--haldi .programme__time-main svg,
.programme__event--haldi .programme__venue svg {
  color: #fef08ae6 !important;
}
.programme__event--haldi .programme__time small {
  color: #fef9c3e6 !important;
}
.programme__event--haldi p,
.programme__event--haldi .programme__venue {
  color: #fefce8e6 !important;
}

/* ==========================================================================
   3D INVITATION REEL MODAL & LAUNCH BUTTONS
   ========================================================================== */
.welcome-editorial__reel-bar {
  margin: 1.15rem 0 1.35rem;
  display: flex;
  align-items: center;
}

.welcome-editorial__reel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #2b1805;
  background: linear-gradient(135deg, #fcebc7 0%, #e2b768 46%, #ba8730 100%);
  border: 1px solid #f2d499;
  border-radius: 999px;
  box-shadow: 0 4px 16px -3px rgba(186, 135, 48, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-editorial__reel-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px -3px rgba(186, 135, 48, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.welcome-editorial__reel-btn .reel-play-icon {
  color: #5c3506;
}

.welcome-editorial__hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding: 0.45rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fffef8;
  background: rgba(22, 14, 10, 0.78);
  border: 1px solid rgba(214, 169, 88, 0.65);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-editorial__hero-play-btn:hover {
  background: rgba(186, 135, 48, 0.92);
  color: #1a0f04;
  transform: scale(1.04);
}

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.reel-modal[hidden] {
  display: none !important;
}

.reel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 4, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reel-modal__chassis {
  position: relative;
  z-index: 2;
  width: min(440px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #140c08;
  border: 1px solid rgba(214, 169, 88, 0.55);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: reelModalEnter 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reelModalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.reel-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.15rem;
  background: rgba(28, 16, 11, 0.95);
  border-bottom: 1px solid rgba(214, 169, 88, 0.3);
  color: #edd199;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.reel-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.reel-modal__close {
  background: transparent;
  border: none;
  color: #edd199;
  cursor: pointer;
  padding: 0.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.reel-modal__close:hover {
  transform: scale(1.12);
  background: rgba(214, 169, 88, 0.2);
  color: #fff;
}

.reel-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(90vh - 3.8rem);
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-modal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   MOBILE OVERLAP & SPACING REFINEMENTS
   ========================================================================== */
@media (max-width: 640px) {
  .destination-editorial__intro {
    padding-top: 3.25rem !important;
    padding-bottom: 2.75rem !important;
    min-height: auto !important;
  }
  .destination-editorial__venue-notice {
    margin-top: 3.75rem !important;
    padding: 2.6rem 1.25rem 1.75rem !important;
    width: calc(100% - 1.5rem) !important;
  }
}

/* ==========================================================================
   CLIENT REVISIONS: GANESH INVOCATION & DESTINATION REFINEMENTS
   ========================================================================== */

/* 1. Shree Ganeshay Namah single line: grand center invocation */
.hero-blessings {
  position: absolute !important;
  top: 2.2rem !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  pointer-events: none !important;
}
.hero-blessings.is-arriving {
  opacity: 0 !important;
}
.hero-blessings__ornament {
  display: none !important;
}
.hero-blessings__copy {
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}
.hero-blessings__copy p {
  margin: 0 auto !important;
  font-size: clamp(0.82rem, 2.2vw, 1rem) !important;
  letter-spacing: 0.1em !important;
  color: #a87930 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  text-align: center !important;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.95), 0 0 2px rgba(255, 255, 255, 0.8);
}

/* 2. Docks: Fixed in corners with safe notch clearance */
#lang-dock {
  position: fixed !important;
  top: 1.85rem !important;
  left: 1rem !important;
  z-index: 120 !important;
}
#music-dock,
#music-toggle,
.wedding-music-dock,
.wedding-music-toggle,
[data-drag-id="musicDock"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
}

/* 2b. Contemporary Side-by-Side Hero Layout (Monogram Left, Names Right) */
.hero-stage.is-side-by-side {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.6rem, 2.5vw, 1.75rem) !important;
  width: 100% !important;
  max-width: min(72rem, 96vw) !important;
  padding: 0 0.5rem !important;
}
.hero-stage.is-side-by-side .hero-stage__logo-shell {
  flex: 0 0 clamp(8.5rem, 34vw, 13.5rem) !important;
  max-width: 38vw !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hero-stage.is-side-by-side .hero-stage__copy {
  flex: 1 1 auto !important;
  max-width: clamp(14rem, 58vw, 26rem) !important;
  margin: 0 !important;
  text-align: left !important;
  align-items: flex-start !important;
}
.hero-stage.is-side-by-side .hero-stage__kicker {
  text-align: left !important;
  margin-bottom: 0.25rem !important;
}
.hero-stage.is-side-by-side .hero-stage__names {
  text-align: left !important;
  font-size: clamp(1.35rem, 5.2vw, 2.3rem) !important;
}
.hero-stage.is-side-by-side .hero-stage__name-line {
  text-align: left !important;
}
.hero-stage.is-side-by-side .hero-stage__parentage {
  text-align: left !important;
}
.hero-stage.is-side-by-side .hero-stage__ampersand-row {
  justify-content: flex-start !important;
  margin: 0.25rem 0 !important;
}
.hero-stage.is-side-by-side .hero-stage__destination {
  margin-top: 0.75rem !important;
  align-items: flex-start !important;
  text-align: left !important;
}
.hero-stage.is-side-by-side .hero-stage__destination-city {
  text-align: left !important;
}
#lang-toggle.language-switcher-button {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(190, 143, 60, 0.35) !important;
  box-shadow: 0 4px 12px rgba(100, 70, 30, 0.08) !important;
  color: #6c5328 !important;
  height: 32px !important;
  padding: 0 0.85rem !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  transition: all 0.2s ease !important;
}
#lang-toggle.language-switcher-button:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(190, 143, 60, 0.6) !important;
}

/* 3. Remove horizontal gold rule above Katni */
.hero-stage__destination:before {
  display: none !important;
  content: none !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 4. Programme Date Numerals (4 & 5) Elegant Alignment */
.programme-day-card__lockup {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(1rem, 3.5vw, 2.2rem) !important;
  transform: none !important;
}
.programme-day-card__date-number {
  position: relative !important;
  top: 0 !important;
  font-size: clamp(6.5rem, 18vw, 9.8rem) !important;
  line-height: 0.9 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-variant-numeric: lining-nums !important;
  margin: 0 !important;
  color: #aa711d !important;
  text-shadow: 0 4px 18px rgba(170, 113, 29, 0.15) !important;
}
.programme-day-card__details {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
}
.programme-day-card__date-month {
  font-size: clamp(2.4rem, 7vw, 3.5rem) !important;
  line-height: 1 !important;
}
.programme-day-card__summary {
  margin-top: 0.35rem !important;
  font-size: clamp(0.92rem, 2.5vw, 1.15rem) !important;
  line-height: 1.35 !important;
}

/* 5. Destination: "Celebrating in Katni" & Glassmorphism Notice Card */
.destination-editorial__intro-title {
  font-family: var(--font-display, "Playfair Display", "Cormorant Garamond", serif) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.08 !important;
}
.destination-editorial__intro-title em {
  font-family: "Cormorant Garamond", "Playfair Display", serif !important;
  font-style: italic !important;
  color: #c9983e !important;
  background: linear-gradient(135deg, #d4a74a 0%, #b88628 50%, #e2be68 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: 0.02em !important;
  font-weight: 600 !important;
}

.destination-editorial__venue-notice {
  background: rgba(255, 253, 247, 0.75) !important;
  backdrop-filter: blur(20px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  border-radius: 1.6rem !important;
  box-shadow:
    0 24px 50px -15px rgba(50, 30, 10, 0.14),
    0 8px 24px -8px rgba(180, 134, 52, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 28px rgba(218, 176, 91, 0.08) !important;
  padding: 2.75rem 2rem 2.25rem !important;
}
.destination-editorial__venue-notice h3 {
  font-family: var(--font-display, "Playfair Display", "Cormorant Garamond", serif) !important;
  font-size: clamp(1.85rem, 5vw, 2.75rem) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.15 !important;
  color: #2b1f14 !important;
  margin-bottom: 0.75rem !important;
}
.destination-editorial__venue-notice h3 em {
  font-style: italic !important;
  color: #b88628 !important;
  display: block !important;
  margin-top: 0.2rem !important;
}
.destination-editorial__venue-notice-copy {
  font-size: clamp(0.92rem, 2.5vw, 1.08rem) !important;
  line-height: 1.6 !important;
  color: #4a3c2e !important;
  max-width: 44ch !important;
  margin: 1rem auto 0 !important;
}

/* -------------------------------------------------------------
 * PROGRAMME SECTION & EVENT CARDS - HIGH CONTRAST & VISIBILITY
 * ------------------------------------------------------------- */
.programme-day-card {
  opacity: 1 !important;
  visibility: visible !important;
  display: grid !important;
}

.programme-day-card__lockup,
.programme-day-card__date-number,
.programme-day-card__date,
.programme-day-card__date-month,
.programme-day-card__summary {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.programme-day-card__date-number {
  color: #b38948 !important;
  font-family: "Instrument Serif Wedding", "Instrument Serif", Georgia, serif !important;
  font-variant-numeric: lining-nums !important;
  font-size: clamp(6.5rem, 18vw, 9.8rem) !important;
  text-shadow: 0 4px 18px rgba(179, 137, 72, 0.2) !important;
}

.programme__event,
.programme__event--reveal,
.programme__event--reveal-ready,
.programme__event--revealed,
.programme__event--settled {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.programme__time,
.programme__time-main,
.programme__time > small,
.programme__time .programme__venue,
.programme__event-copy,
.programme__event-copy h4,
.programme__event-copy p,
.programme__event-divider,
.programme__event-divider span {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.programme__event h4 {
  margin: 0 0 0.35rem !important;
  color: #fffdf8 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.85rem, 5.5vw, 2.5rem) !important;
  font-weight: 400 !important;
  line-height: 1.05 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

.programme__event h4 .programme__event-name-primary {
  color: #fffdf8 !important;
}

.programme__event h4 .programme__event-name-alt {
  color: rgba(255, 253, 248, 0.82) !important;
  font-size: 0.85em !important;
}

.programme__event h4 .programme__event-name-dot {
  color: rgba(255, 253, 248, 0.6) !important;
  margin: 0 0.25rem !important;
}

.programme__time-main {
  color: #fffdf8 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.35rem, 4.2vw, 1.95rem) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35) !important;
}

.programme__time-main span {
  color: #fffdf8 !important;
}

.programme__time-main svg {
  color: #f7d89c !important;
}

.programme__time > small {
  color: rgba(255, 253, 248, 0.88) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
}

.programme__venue {
  color: rgba(255, 253, 248, 0.9) !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
}

.programme__venue svg {
  color: #f7d89c !important;
}

.programme__event-copy p {
  color: rgba(255, 253, 248, 0.92) !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.programme__event-divider span svg {
  color: #f7d89c !important;
}

/* Event Specific Luxury Gradient Backdrops */
.programme__event--oli {
  background: linear-gradient(90deg, rgba(140, 50, 23, 0.96) 0%, rgba(180, 79, 36, 0.9) 52%, rgba(215, 118, 56, 0.65) 100%) !important;
}

.programme__event--haldi {
  background: linear-gradient(90deg, rgba(154, 109, 5, 0.96) 0%, rgba(184, 134, 11, 0.9) 52%, rgba(212, 160, 23, 0.72) 100%) !important;
}

.programme__event--sangeet {
  background: linear-gradient(90deg, rgba(20, 36, 66, 0.96) 0%, rgba(30, 54, 98, 0.9) 52%, rgba(45, 75, 130, 0.7) 100%) !important;
}

.programme__event--tilak {
  --event-base: #b38948;
  --event-wash-a: rgba(141, 109, 54, 0.58);
  --event-wash-b: rgba(208, 167, 95, 0.74);
  --event-ink: #fff7ed;
  --event-quiet: rgba(255, 247, 237, 0.88);
  background: linear-gradient(90deg, rgba(160, 115, 35, 0.96) 0%, rgba(195, 145, 55, 0.9) 52%, rgba(220, 175, 80, 0.7) 100%) !important;
}

.programme__event--reception {
  --event-base: #5a8882;
  --event-wash-a: rgba(90, 136, 130, 0.58);
  --event-wash-b: rgba(135, 175, 169, 0.74);
  --event-ink: #f0fdf9;
  --event-quiet: rgba(240, 253, 249, 0.88);
  background: linear-gradient(90deg, rgba(38, 92, 65, 0.96) 0%, rgba(52, 118, 85, 0.9) 52%, rgba(75, 145, 110, 0.7) 100%) !important;
}

.programme__event--varmala {
  --event-base: #8f6a9e;
  --event-wash-a: rgba(127, 95, 152, 0.58);
  --event-wash-b: rgba(175, 142, 198, 0.74);
  --event-ink: #fdf4ff;
  --event-quiet: rgba(253, 244, 255, 0.88);
  background: linear-gradient(90deg, rgba(135, 45, 85, 0.96) 0%, rgba(168, 65, 110, 0.9) 52%, rgba(195, 90, 138, 0.7) 100%) !important;
}

.programme__event--phere {
  --event-base: #b33d2f;
  --event-wash-a: rgba(145, 29, 20, 0.58);
  --event-wash-b: rgba(225, 107, 63, 0.74);
  --event-ink: #fff5f5;
  --event-quiet: rgba(255, 245, 245, 0.88);
  background: linear-gradient(90deg, rgba(145, 29, 20, 0.96) 0%, rgba(180, 42, 30, 0.9) 52%, rgba(210, 68, 48, 0.7) 100%) !important;
}

/* Countdown Typography & Spacing Fix */
.countdown-editorial__number {
  line-height: 0.9 !important;
}

.countdown-editorial__label {
  margin-top: 2.25rem !important;
  opacity: 0.88 !important;
}

/* Hard Device Isolation Barrier */
html[data-device="phone"] .hero-stage {
  min-height: 29rem !important;
  transform: translateY(-0.25rem) !important;
}

html[data-device="phone"] .hero-stage__names {
  font-size: clamp(1.95rem, 8.2vw, 2.65rem) !important;
  line-height: 1.08 !important;
}

html[data-device="phone"] .hero-stage__destination {
  margin-top: 1.15rem !important;
}

html[data-device="desktop"] .hero-stage {
  min-height: clamp(28rem, 50vw, 36rem) !important;
}

html[data-device="desktop"] .hero-stage__names {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important;
  line-height: 1.05 !important;
}

/* Wedding Ambient Music Widget - Permanently Suppressed */
.wedding-music-dock,
.wedding-music-toggle,
.wedding-music-disc,
#music-dock,
#music-toggle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
}
.destination-editorial__map-btn {
  background: linear-gradient(135deg, rgba(179, 137, 72, 0.15) 0%, rgba(179, 137, 72, 0.28) 100%);
  color: #7a4e10 !important;
  border: 1px solid rgba(179, 137, 72, 0.4) !important;
  text-decoration: none;
}
.destination-editorial__map-btn:hover {
  background: #b38948 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   VISUAL DRAG & DROP POSITIONING SYSTEM & PINCH ZOOM
   ========================================================================== */
[data-drag-id] {
  translate: var(--drag-x, 0px) var(--drag-y, 0px);
  scale: var(--drag-scale, 1);
  transform-origin: center center;
}

body.drag-mode-disabled [data-drag-id] {
  pointer-events: auto;
  touch-action: auto;
  cursor: auto;
}
body.drag-mode-disabled [data-drag-id]:hover {
  outline: none !important;
}

body.in-iframe.drag-mode-active [data-drag-id],
body.drag-mode-active [data-drag-id] {
  pointer-events: auto !important;
  touch-action: none;
  cursor: grab;
}

body.in-iframe.drag-mode-active [data-drag-id]:hover,
body.drag-mode-active [data-drag-id]:hover {
  outline: 1.5px dashed rgba(179, 137, 72, 0.7);
  outline-offset: 3px;
}

body.in-iframe.drag-mode-active [data-drag-id].is-dragging,
body.drag-mode-active [data-drag-id].is-dragging {
  cursor: grabbing !important;
  outline: 2px solid #b38948 !important;
  outline-offset: 4px;
  z-index: 9999 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.drag-coord-hud {
  display: none !important;
}

.drag-coord-hud__label {
  color: #f6d89b;
}

.drag-coord-hud__coords {
  background: rgba(255, 255, 255, 0.16);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: #5eead4;
}

.drag-coord-hud__scale {
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: #fef08a;
}

.drag-hud-zoom-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.drag-hud-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #ffffff;
  border-radius: 999px;
  padding: 0 6px;
  height: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.drag-hud-btn:hover {
  background: #d4af37;
  color: #1a1611;
  border-color: #d4af37;
}

/* ==========================================================================
   DYNAMIC SECTION SPACING & CUSTOM GAP ADJUSTMENTS
   ========================================================================== */
:root {
  --hero-bottom-gap: 0px;
  --welcome-gap: 0px;
  --programme-gap: 0px;
  --destination-gap: 0px;
  --travel-gap: 0px;
  --dress-gap: 0px;
  --timeline-gap: 0px;
  --faq-gap: 0px;
  --family-gap: 0px;
  --rsvp-gap: 0px;
  --countdown-gap: 0px;
  --footer-gap: 0px;
}

#hero.invitation-hero {
  padding-bottom: max(0.5rem, calc(4rem + var(--hero-bottom-gap, 0px))) !important;
}

html[data-hero-compact="true"] #hero.invitation-hero,
body[data-hero-compact="true"] #hero.invitation-hero {
  min-height: auto !important;
}

#welcome,
.welcome-editorial {
  margin-top: var(--welcome-gap, 0px) !important;
}

#events,
.programme-section {
  margin-top: var(--programme-gap, 0px) !important;
}

#venue,
.destination-section {
  margin-top: var(--destination-gap, 0px) !important;
}

.dress-code-section {
  margin-top: var(--dress-gap, 0px) !important;
}

.timeline-section {
  margin-top: var(--timeline-gap, 0px) !important;
}

.faq-section {
  margin-top: var(--faq-gap, 0px) !important;
}

.family-invitation-section,
#family {
  margin-top: var(--family-gap, 0px) !important;
}

.rsvp-section,
#rsvp {
  margin-top: var(--rsvp-gap, 0px) !important;
}

.countdown-section,
#countdown {
  margin-top: var(--countdown-gap, 0px) !important;
}

.invitation-footer,
#footer {
  margin-top: var(--footer-gap, 0px) !important;
}

/* One warm paper colour across the page, so sections do not sit on white gaps. */
body.wedding-page,
.wedding-page,
.invitation-hero,
.welcome-editorial,
.programme,
.programme__day,
.notes-editorial,
.things-to-know,
.footer-editorial,
.destination-editorial,
#timeline.timeline-art,
.timeline-art {
  background-color: #fbf7ef !important;
}
.destination-editorial {
  background: #fbf7ef !important;
  padding-bottom: 0.5rem !important;
}
.destination-editorial__intro {
  background: transparent !important;
}
#timeline.timeline-art,
.timeline-art {
  background-color: #fbf7ef !important;
  margin-top: 0 !important;
}

/* Venue hotel watermark: a soft sketch, not a beige panel. */
.destination-editorial__intro-temple {
  left: 50% !important;
  top: 0.4rem !important;
  width: min(44rem, 92vw) !important;
  height: auto !important;
  opacity: 0.28 !important;
  transform: translate(-50%, 0) scale(1) !important;
  filter: saturate(0.9) !important;
  mix-blend-mode: multiply !important;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at 50% 46%, #000 8%, rgba(0, 0, 0, 0.45) 46%, transparent 72%) !important;
  mask-image: radial-gradient(ellipse 68% 62% at 50% 46%, #000 8%, rgba(0, 0, 0, 0.45) 46%, transparent 72%) !important;
}

@media (min-width: 960px) {
  .destination-editorial__intro-temple {
    top: -1.2rem !important;
    width: min(52rem, 70vw) !important;
    opacity: 0.22 !important;
    -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 68%) !important;
    mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 68%) !important;
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a08a62;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.55s ease;
}
.scroll-hint.is-on {
  opacity: 0.92;
}
.scroll-hint p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.scroll-hint.is-gone {
  opacity: 0;
}

/* Custom Text Style Modifiers (Bold & Sizing) */
[data-text-key] {
  transition: font-size 0.15s ease, font-weight 0.15s ease;
}
.is-custom-bold {
  font-weight: 700 !important;
}

/* Live Preview Target Flash & Auto-Scroll Highlight */
@keyframes previewGlowPulse {
  0% {
    outline: 3px solid rgba(217, 129, 50, 0.95);
    box-shadow: 0 0 24px rgba(217, 129, 50, 0.6), inset 0 0 16px rgba(217, 129, 50, 0.2);
  }
  60% {
    outline: 2px solid rgba(217, 129, 50, 0.6);
    box-shadow: 0 0 16px rgba(217, 129, 50, 0.35);
  }
  100% {
    outline: 2px solid transparent;
    box-shadow: none;
  }
}

.preview-target-highlight {
  animation: previewGlowPulse 1.8s ease-out forwards !important;
  border-radius: 8px;
}

/* WhatsApp RSVP Button */
.rsvp-card__link--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
  transition: all 0.2s ease !important;
}
.rsvp-card__link--whatsapp:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

/* ==========================================================================
   ELEGANT FLOATING TICKER & ROYAL 2-TAB FAMILY HONORS MODAL
   ========================================================================== */

/* Classic 2-column rail: Left "THE FAMILY" button | Scrolling Marquee Names */
.welcome-family-ticker__rail {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 3.25rem minmax(0, 1fr) !important;
  height: 3.9rem !important;
  overflow: hidden !important;
}

/* Left Bookend: "THE FAMILY" button - discreet, clickable, seamless */
.welcome-family-ticker__label--btn {
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  border-right: 1px solid rgba(190, 149, 74, 0.38) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.25rem 0.08rem 0.65rem !important;
  width: 3.25rem !important;
  min-width: 3.25rem !important;
  color: #b89048 !important;
  transition: background 0.15s ease, opacity 0.15s ease !important;
  outline: none !important;
  touch-action: manipulation !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.welcome-family-ticker__label--btn:hover {
  background: rgba(197, 155, 72, 0.08) !important;
}
.welcome-family-ticker__label--btn:active {
  background: rgba(197, 155, 72, 0.16) !important;
  transform: scale(0.97) !important;
}
.welcome-family-ticker__label--btn * {
  pointer-events: none !important;
}

/* BODY SCROLL LOCK FOR MODALS */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

/* ROYAL FAMILY MODAL */
.family-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: contain !important;
}
.family-modal[hidden] {
  display: none !important;
}
.family-modal__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(11, 17, 32, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  animation: familyFadeIn 0.22s ease-out !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}
@keyframes familyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.family-modal__sheet {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 600px !important;
  max-height: 86vh !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98), transparent 70%), #fffcf6 !important;
  color: #2b2520 !important;
  border: 1.5px solid rgba(197, 155, 72, 0.85) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), inset 0 0 0 3px #ffffff, inset 0 0 25px rgba(197, 155, 72, 0.12) !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
}

.family-modal__header {
  padding: 16px 18px 10px !important;
  border-bottom: 1px solid rgba(197, 155, 72, 0.3) !important;
  position: relative !important;
  text-align: center !important;
  background: #fffcf8 !important;
  box-sizing: border-box !important;
}
.family-modal__om {
  font-size: 0.92rem !important;
  color: #801d36 !important;
  font-weight: 700 !important;
  margin-bottom: 2px !important;
  letter-spacing: 0.05em !important;
}
.family-modal__title {
  font-family: 'Playfair Display', serif, var(--font-heading) !important;
  font-size: 1.3rem !important;
  color: #801d36 !important;
  margin: 2px 0 !important;
  letter-spacing: 0.02em !important;
}
.family-modal__subtitle {
  font-size: 0.72rem !important;
  color: #8c734b !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}
.family-modal__close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f1ebd9 !important;
  border: 1px solid rgba(197, 155, 72, 0.35) !important;
  color: #5a4b37 !important;
  font-size: 1.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
  line-height: 1 !important;
}
.family-modal__close:hover {
  background: #801d36 !important;
  color: #ffffff !important;
}

/* 2 CLEAN TABS: Bride's Side vs Groom's Side */
.family-modal__two-tabs-bar {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  padding: 8px 10px 10px !important;
  border-bottom: 1px solid rgba(197, 155, 72, 0.25) !important;
  background: #fffcf8 !important;
  box-sizing: border-box !important;
}

.family-modal__two-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 6px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(197, 155, 72, 0.35) !important;
  background: #fbf7ee !important;
  color: #715833 !important;
  font-family: 'Playfair Display', serif, var(--font-heading) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
  user-select: none !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.family-modal__two-tab:hover {
  background: #f5eedc !important;
  border-color: rgba(197, 155, 72, 0.6) !important;
  color: #801d36 !important;
}

.family-modal__two-tab.is-active {
  background: linear-gradient(135deg, #801d36 0%, #5e1124 100%) !important;
  color: #ffffff !important;
  border-color: #801d36 !important;
  box-shadow: 0 4px 14px rgba(128, 29, 54, 0.35) !important;
}

.family-modal__tab-emoji {
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

.family-modal__tab-title {
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.family-modal__tab-count {
  font-family: var(--font-body, -apple-system, sans-serif) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(197, 155, 72, 0.22) !important;
  color: #5c4728 !important;
}

.family-modal__two-tab.is-active .family-modal__tab-count {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* MODAL BODY & LIST */
.family-modal__body {
  padding: 14px 18px 24px !important;
  overflow-y: auto !important;
  max-height: calc(85vh - 130px) !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
  touch-action: pan-y !important;
}

.family-modal__side-pane {
  display: none !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.family-modal__side-pane.is-active {
  display: flex !important;
  animation: familyFadeIn 0.2s ease-out !important;
}

/* FAMILY MEMBER CARDS */
.family-modal__card {
  background: #ffffff !important;
  border: 1px solid rgba(197, 155, 72, 0.25) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.family-modal__card:hover {
  border-color: rgba(197, 155, 72, 0.55) !important;
  box-shadow: 0 3px 10px rgba(197, 155, 72, 0.12) !important;
}

.family-modal__card-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.family-modal__primary-name {
  font-family: 'Playfair Display', serif, var(--font-heading) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #2b2520 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

.family-modal__secondary-name {
  font-size: 0.78rem !important;
  color: #7d6b56 !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
}

.family-modal__rel-badge {
  flex-shrink: 0 !important;
  background: rgba(128, 29, 54, 0.08) !important;
  color: #801d36 !important;
  border: 1px solid rgba(128, 29, 54, 0.18) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
}

/* Kids special card */
.family-modal__card--kids {
  flex-direction: column !important;
  align-items: stretch !important;
  background: #fffdfa !important;
  border-style: dashed !important;
  border-color: rgba(197, 155, 72, 0.45) !important;
}

.family-modal__card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 6px !important;
}

.family-modal__card-icon {
  font-size: 1.1rem !important;
}

.family-modal__card-rel-badge {
  background: rgba(197, 155, 72, 0.15) !important;
  color: #8c6a28 !important;
  border: 1px solid rgba(197, 155, 72, 0.35) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
}

.family-modal__kids-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.family-modal__kid-chip {
  background: #ffffff !important;
  border: 1px solid rgba(197, 155, 72, 0.3) !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #3d3223 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

/* Family card 'View all' link on page */
.family-invitation__more-wrap {
  display: flex !important;
  justify-content: center !important;
  margin-top: 16px !important;
  padding-top: 12px !important;
  border-top: 1px dashed rgba(197, 155, 72, 0.35) !important;
}
.family-invitation__more-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: #fbf7ee !important;
  border: 1.5px solid rgba(197, 155, 72, 0.45) !important;
  color: #801d36 !important;
  font-family: var(--font-body, -apple-system, sans-serif) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(197, 155, 72, 0.15) !important;
}
.family-invitation__more-btn:hover {
  background: #801d36 !important;
  color: #ffffff !important;
  border-color: #801d36 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(128, 29, 54, 0.25) !important;
}
