/* MIO public guest-experience suite
   Refines the seven guest-facing service pages while preserving their page-specific identities. */

:root {
  --mio-suite-shell: min(100% - 40px, 1440px);
  --mio-suite-shell-wide: min(100% - 40px, 1580px);
  --mio-suite-wine: #3d0712;
  --mio-suite-wine-deep: #220207;
  --mio-suite-gold: #d3ad5d;
  --mio-suite-gold-light: #f1dca6;
  --mio-suite-ivory: #fffaf0;
  --mio-suite-paper: #fffdf8;
  --mio-suite-ink: #24171a;
  --mio-suite-muted: #77686c;
  --mio-suite-line: rgba(91, 33, 45, 0.14);
  --mio-suite-shadow: 0 28px 80px rgba(38, 4, 12, 0.14);
  --mio-suite-shadow-soft: 0 18px 50px rgba(38, 4, 12, 0.1);
  --mio-suite-radius: 28px;
}

body.mio-public-site {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.mio-public-site main {
  position: relative;
  z-index: 1;
}

body.mio-public-site main::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(229, 203, 132, 0.76), transparent);
}

body.mio-public-site .skip-link {
  position: fixed;
  z-index: 3000;
  top: -100px;
  left: 18px;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  color: #210207;
  background: #fff4cf;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  font: 800 .72rem/1 "DM Sans", sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

body.mio-public-site .skip-link:focus { top: 0; }

body.mio-public-site :where(input, select, textarea, button) {
  accent-color: var(--mio-suite-wine);
}

body.mio-public-site :where(input, select, textarea):focus-visible {
  outline: 2px solid rgba(194, 143, 54, .75);
  outline-offset: 2px;
  border-color: rgba(194, 143, 54, .75) !important;
}

body.mio-public-site :where(.hero, .gallery-hero, .programme-hero, .tribute-hero, .verify-main) {
  isolation: isolate;
}

body.mio-public-site :where(.hero, .gallery-hero, .programme-hero, .tribute-hero)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 78%);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

body.mio-public-site :where(.hero-copy, .verify-intro) h1,
body.mio-public-site :where(.gallery-hero, .programme-hero, .tribute-hero) h1 {
  max-width: 12ch;
  text-wrap: balance;
}

body.mio-public-site :where(.hero-lead, .intro-copy, .verify-lead) {
  max-width: 66ch;
  text-wrap: pretty;
}

body.mio-public-site :where(.button, .verify-button, .load-more) {
  min-height: 48px;
  touch-action: manipulation;
}

body.mio-public-site :where(.section-heading) h2,
body.mio-public-site :where(.venue-section, .request-section, .pledge-section, .appreciation-section, .etiquette-section, .legacy-cta) h2 {
  text-wrap: balance;
}

/* Concierge */
.mio-concierge-page .hero {
  min-height: clamp(690px, 76vh, 850px);
  padding-top: clamp(80px, 9vw, 132px);
  padding-bottom: clamp(80px, 9vw, 132px);
}

.mio-concierge-page .hero-copy { max-width: 760px; }
.mio-concierge-page .hero-card {
  border: 1px solid rgba(241, 220, 166, .3);
  box-shadow: 0 38px 90px rgba(10, 0, 3, .36);
  backdrop-filter: blur(16px);
}
.mio-concierge-page .journey-strip,
.mio-concierge-page .venue-section,
.mio-concierge-page .services-section,
.mio-concierge-page .request-section,
.mio-concierge-page .guidance {
  width: var(--mio-suite-shell);
  margin-inline: auto;
}
.mio-concierge-page .journey-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  border: 1px solid rgba(211, 173, 93, .2);
  border-radius: var(--mio-suite-radius);
  box-shadow: var(--mio-suite-shadow);
}
.mio-concierge-page .venue-section { border-radius: var(--mio-suite-radius); }
.mio-concierge-page .venue-card,
.mio-concierge-page .request-form,
.mio-concierge-page .service-card {
  box-shadow: var(--mio-suite-shadow-soft);
}
.mio-concierge-page .venue-card {
  border-color: rgba(199, 151, 68, .24);
  background:
    radial-gradient(circle at 100% 0, rgba(211,173,93,.13), transparent 34%),
    linear-gradient(145deg, #fffdf8, #f8ecda);
}
.mio-concierge-page .services-section,
.mio-concierge-page .request-section { padding-inline: clamp(18px, 4vw, 58px); }
.mio-concierge-page .guidance { overflow: hidden; border-radius: var(--mio-suite-radius); }

/* Gallery */
.mio-gallery-page .gallery-hero {
  min-height: clamp(700px, 79vh, 880px);
  padding-top: clamp(76px, 8vw, 124px);
}
.mio-gallery-page .gallery-hero > * { position: relative; z-index: 1; }
.mio-gallery-page .hero-feature {
  overflow: hidden;
  border: 1px solid rgba(242, 220, 162, .27);
  border-radius: 30px;
  box-shadow: 0 38px 100px rgba(14, 0, 4, .4);
}
.mio-gallery-page .hero-feature img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center top;
}
.mio-gallery-page .collections,
.mio-gallery-page .gallery-section,
.mio-gallery-page .legacy-cta,
.mio-gallery-page .live-strip {
  width: var(--mio-suite-shell);
  margin-inline: auto;
}
.mio-gallery-page .collections { padding-top: clamp(72px, 8vw, 118px); }
.mio-gallery-page .collection-grid button,
.mio-gallery-page .media-card {
  box-shadow: var(--mio-suite-shadow-soft);
}
.mio-gallery-page .gallery-tools {
  border: 1px solid rgba(95, 35, 45, .12);
  box-shadow: 0 16px 46px rgba(40, 6, 13, .07);
}
.mio-gallery-page .legacy-cta {
  margin-bottom: clamp(72px, 8vw, 120px);
  border-radius: var(--mio-suite-radius);
}

/* Gifts */
.mio-gifts-page .hero {
  min-height: clamp(690px, 76vh, 850px);
}
.mio-gifts-page .hero-emblem {
  border: 1px solid rgba(241, 219, 159, .28);
  box-shadow: 0 38px 100px rgba(15, 0, 4, .35);
}
.mio-gifts-page .purpose-strip,
.mio-gifts-page .registry-section,
.mio-gifts-page .transfer-section,
.mio-gifts-page .pledge-section,
.mio-gifts-page .appreciation-section {
  width: var(--mio-suite-shell);
  margin-inline: auto;
}
.mio-gifts-page .purpose-strip {
  position: relative;
  z-index: 3;
  margin-top: -38px;
  border: 1px solid rgba(211, 173, 90, .18);
  border-radius: var(--mio-suite-radius);
  box-shadow: var(--mio-suite-shadow);
}
.mio-gifts-page .registry-section { padding-top: clamp(86px, 9vw, 136px); }
.mio-gifts-page .registry-card,
.mio-gifts-page .bank-card,
.mio-gifts-page .pledge-form {
  box-shadow: var(--mio-suite-shadow-soft);
}
.mio-gifts-page .transfer-section,
.mio-gifts-page .pledge-section,
.mio-gifts-page .appreciation-section {
  border-radius: var(--mio-suite-radius);
}
.mio-gifts-page .appreciation-section { margin-bottom: clamp(72px, 8vw, 120px); }

/* Programme */
.mio-programme-page .programme-hero {
  min-height: clamp(710px, 79vh, 890px);
}
.mio-programme-page .hero-pass {
  border: 1px solid rgba(240, 217, 158, .28);
  box-shadow: 0 38px 100px rgba(13, 0, 4, .38);
}
.mio-programme-page .announcement-wrap,
.mio-programme-page .live-overview,
.mio-programme-page .programme-section,
.mio-programme-page .etiquette-section {
  width: var(--mio-suite-shell);
  margin-inline: auto;
}
.mio-programme-page .live-overview {
  position: relative;
  z-index: 3;
  margin-top: -44px;
}
.mio-programme-page .live-overview > article,
.mio-programme-page .programme-item {
  box-shadow: var(--mio-suite-shadow-soft);
}
.mio-programme-page .programme-section { padding-top: clamp(84px, 9vw, 136px); }
.mio-programme-page .filter-row {
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 27, 43, .25) transparent;
}
.mio-programme-page .etiquette-section {
  overflow: hidden;
  margin-bottom: clamp(72px, 8vw, 120px);
  border-radius: var(--mio-suite-radius);
}

/* RSVP */
.mio-rsvp-page {
  background:
    radial-gradient(circle at 100% 0, rgba(215,183,106,.18), transparent 31%),
    linear-gradient(135deg,#fffaf3 0%,#f8efe7 55%,#f4e5e5 100%);
}
.mio-rsvp-page main {
  width: var(--mio-suite-shell);
  max-width: 1440px;
  min-height: calc(100vh - var(--mio-header-height));
  padding-inline: 0;
}
.mio-rsvp-page .intro { padding-block: clamp(54px, 8vw, 100px); }
.mio-rsvp-page .lookup-card,
.mio-rsvp-page .rsvp-card,
.mio-rsvp-page .success-card {
  border: 1px solid rgba(90, 22, 61, .13);
  border-radius: 30px;
  box-shadow: var(--mio-suite-shadow);
}
.mio-rsvp-page .date-card {
  border-color: rgba(202, 159, 77, .22);
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 45px rgba(63, 10, 40, .08);
}
.mio-rsvp-page .response-option span { min-height: 118px; }
.mio-rsvp-page .ambient { z-index: -1; }

/* Tribute wall */
.mio-tributes-page .tribute-hero {
  min-height: clamp(700px, 79vh, 880px);
}
.mio-tributes-page .legacy-seal {
  filter: drop-shadow(0 36px 72px rgba(10,0,3,.35));
}
.mio-tributes-page .wall-section,
.mio-tributes-page .memory-section,
.mio-tributes-page .share-section,
.mio-tributes-page .legacy-cta {
  width: var(--mio-suite-shell);
  margin-inline: auto;
}
.mio-tributes-page .wall-section { padding-top: clamp(84px, 9vw, 136px); }
.mio-tributes-page .tribute-card,
.mio-tributes-page .tribute-form,
.mio-tributes-page .review-note {
  box-shadow: var(--mio-suite-shadow-soft);
}
.mio-tributes-page .wall-toolbar {
  border: 1px solid rgba(86, 28, 40, .12);
  box-shadow: 0 16px 46px rgba(40, 6, 13, .07);
}
.mio-tributes-page .share-section,
.mio-tributes-page .legacy-cta {
  border-radius: var(--mio-suite-radius);
}
.mio-tributes-page .legacy-cta { margin-bottom: clamp(72px, 8vw, 120px); }

/* Verification */
.mio-verify-page.verify-body {
  background:
    radial-gradient(circle at 10% 0, rgba(205, 163, 78, .16), transparent 28%),
    var(--mio-suite-wine-deep);
}
.mio-verify-page .verify-main {
  min-height: calc(100vh - var(--mio-header-height));
  padding-top: clamp(80px, 9vw, 130px);
  padding-bottom: clamp(72px, 8vw, 110px);
}
.mio-verify-page .verify-panel { align-self: center; }
.mio-verify-page .verify-card,
.mio-verify-page .result-card {
  border: 1px solid rgba(228, 200, 132, .2);
  border-radius: 30px;
  box-shadow: 0 38px 100px rgba(12, 0, 4, .42);
}
.mio-verify-page .event-mini-card {
  border-color: rgba(230, 203, 137, .22);
  background: rgba(255,255,255,.065);
  backdrop-filter: blur(12px);
}
.mio-verify-page .event-venue {
  margin-top: 5px !important;
  color: rgba(255,255,255,.66) !important;
  font-size: .78rem !important;
}
.mio-verify-page .code-field input {
  text-transform: uppercase;
  letter-spacing: .075em;
}

/* Shared responsive rules */
@media (max-width: 1100px) {
  :root { --mio-suite-shell: min(100% - 28px, 960px); }

  .mio-concierge-page .hero,
  .mio-gifts-page .hero,
  .mio-gallery-page .gallery-hero,
  .mio-programme-page .programme-hero,
  .mio-tributes-page .tribute-hero,
  .mio-verify-page .verify-main {
    min-height: auto;
  }

  .mio-concierge-page .journey-strip,
  .mio-gifts-page .purpose-strip,
  .mio-programme-page .live-overview {
    margin-top: 0;
  }

  .mio-gallery-page .hero-feature img { min-height: 520px; }

  .mio-rsvp-page main {
    width: var(--mio-suite-shell);
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mio-rsvp-page .intro { max-width: 760px; }
}

@media (max-width: 760px) {
  :root {
    --mio-suite-shell: min(100% - 22px, 680px);
    --mio-suite-radius: 22px;
  }

  body.mio-public-site :where(.hero, .gallery-hero, .programme-hero, .tribute-hero, .verify-main) {
    padding-top: 58px;
    padding-bottom: 62px;
  }

  body.mio-public-site :where(.hero-copy, .verify-intro) h1,
  body.mio-public-site :where(.gallery-hero, .programme-hero, .tribute-hero) h1 {
    max-width: none;
  }

  .mio-concierge-page .journey-strip,
  .mio-gifts-page .purpose-strip,
  .mio-programme-page .live-overview {
    border-radius: 20px;
  }

  .mio-gallery-page .hero-feature img { min-height: 430px; }
  .mio-gallery-page .gallery-tools,
  .mio-tributes-page .wall-toolbar { border-radius: 20px; }

  .mio-rsvp-page main { padding-bottom: 82px; }
  .mio-rsvp-page .intro { padding-block: 44px 10px; }
  .mio-rsvp-page .response-option span { min-height: 96px; }

  .mio-verify-page .verify-main { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --mio-suite-shell: calc(100% - 20px); }

  body.mio-public-site :where(.hero-actions, .venue-actions, .form-actions, .cta-actions) > * {
    width: 100%;
    justify-content: center;
  }

  .mio-gallery-page .hero-feature img { min-height: 390px; }
  .mio-gallery-page .collection-grid,
  .mio-programme-page .etiquette-grid,
  .mio-concierge-page .guidance-grid { gap: 12px; }

  .mio-verify-page .verify-intro h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .mio-rsvp-page .lookup-card,
  .mio-rsvp-page .rsvp-card,
  .mio-rsvp-page .success-card,
  .mio-verify-page .verify-card,
  .mio-verify-page .result-card { border-radius: 22px; }
}

@media (min-width: 1800px) {
  :root { --mio-suite-shell: min(100% - 100px, 1720px); }

  .mio-concierge-page .hero,
  .mio-gifts-page .hero,
  .mio-gallery-page .gallery-hero,
  .mio-programme-page .programme-hero,
  .mio-tributes-page .tribute-hero,
  .mio-verify-page .verify-main {
    padding-inline: max(6vw, calc((100vw - 1720px) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mio-public-site *,
  body.mio-public-site *::before,
  body.mio-public-site *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Integration safeguards for legacy page wrappers and modal layers. */
body.mio-overlay-open { overflow: hidden !important; }
.mio-gallery-page .page-shell,
.mio-programme-page .page-shell { overflow: visible; }

@media (max-width: 1100px) {
  body.mio-public-site main { scroll-margin-bottom: 92px; }
  body.mio-public-site :where(input, select, textarea) { font-size: 16px; }
}
