/* ==========================================================================
   Blue or Pink? — Gender Reveal Flyer (Reveal Poster)
   Midnight-indigo poster, falling blue/pink/gold confetti, a split question
   seal, details ledger, RSVP and guestbook — one continuous scroll.

   Architecture: every section is a full-viewport "scene" stacked in normal
   document flow. The fixed header, floating dock, slide-down menu and the
   reading-progress line are progressive enhancement built by main.js from
   the sections that exist. Geometry tokens (--header-h / --dock-h) drive
   the fixed chrome, the cover cap and every anchor offset — real chrome
   never drifts from them.

   Customize the whole look by editing the palette below — every component
   reads from these variables.
   ========================================================================== */

:root {
  /* Palette — midnight indigo night, electric blue, hot pink, gold confetti */
  --indigo-900: #141a3d;
  --indigo-800: #1d2557;
  --indigo-700: #2a3372;
  --indigo-600: #3b467f;
  --blue-500:   #4d7cf6;
  --blue-400:   #7ba0f8;
  --pink-500:   #ec4899;
  --pink-400:   #f472b6;
  --gold:       #f5c46a;
  --cream:      #fff7ef;
  --ink:        #232a5e;
  --error:      #ff7d88;

  /* Type */
  --font-display: 'Fredoka', 'Baloo 2', system-ui, sans-serif;
  --font-script:  'Great Vibes', cursive;
  --font-body:    'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 30px 70px -30px rgba(10, 14, 40, 0.55);
  --shadow-card: 0 16px 38px -20px rgba(20, 26, 61, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Geometry tokens — the fixed chrome and all scroll offsets derive from
     these two numbers. Change them here and everything follows. */
  --header-h: 58px;
  --dock-h: 64px;

  /* Safe areas */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Anchor / deep-link jumps land their target just below the fixed header */
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 124, 246, 0.16), transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(236, 72, 153, 0.14), transparent 42%),
    linear-gradient(180deg, #f2f4fd, #fbeff6);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: inline-block; vertical-align: middle; }

button { font: inherit; cursor: pointer; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pink-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--indigo-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- custom scrollbars (palette-matched) ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(77, 124, 246, 0.55) rgba(29, 37, 87, 0.10); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(29, 37, 87, 0.08); }
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(180deg, var(--blue-500), var(--pink-500));
}
::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(180deg, var(--blue-400), var(--pink-400)); }

/* ==========================================================================
   CONTINUOUS SCROLL — stacked full-viewport scenes
   ==========================================================================
   Sections stack in normal document flow; the guest scrolls from the cover
   to the last section. Each scene centers its card; taller scenes simply
   grow. Without JS the page is identical minus the fixed chrome. */

html.js body { padding-top: var(--header-h); } /* clear the fixed header */

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(22px, 4vh, 40px) clamp(12px, 3vw, 28px) clamp(30px, 6vh, 56px);
  outline: none;
}
/* Native anchor jumps AND scrollIntoView stop just below the fixed header:
   the offset lives once, on the scroll port (html scroll-padding-top). */

/* ---- the cover: exactly one screen --------------------------------------
   Capped at the viewport minus the header, vertically centred, fully
   visible at load. Fluid type/sizing (clamp with dvh/vh) stops growing past
   ~700px-tall viewports. If content still overflows, main.js hides
   decorative pieces in a documented priority order (.fit-hidden) and only
   then enables this internal scroll as a last-resort safety valve. */
.scene--cover {
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 0;
  gap: clamp(14px, 2.6vh, 24px);
  padding-top: clamp(14px, 2.4vh, 26px);
  padding-bottom: clamp(14px, 2.4vh, 26px);
}
.scene--cover.is-valve { overflow-y: auto; } /* extreme-viewports safety valve */

/* Decorative/secondary pieces hidden by the cover-fit routine (main.js).
   Visually hidden only — present in the DOM, restored for print. */
.fit-hidden { display: none !important; }

/* Empty-value helper (empty-state audit): visually hidden, in the DOM,
   restored in print. Applied by main.js when a bound value is empty so no
   orphan label/wrapper/row is ever left behind. */
.is-empty { display: none !important; }

/* ==========================================================================
   FIXED HEADER — brand · desktop pills · burger · progress line
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h); /* locked — the cover cap derives from this token */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(14px, 3.5vw, 26px);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 91, 160, 0.22);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.app-header.is-scrolled {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 34px -22px rgba(20, 26, 61, 0.55);
}

.app-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--pink-500);
  white-space: nowrap;
  text-decoration: none;
}
.app-header__mark { flex: 0 0 auto; }

/* Reading progress — whisper-thin blue→pink line along the header's bottom edge */
.app-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue-500), var(--pink-500));
  pointer-events: none;
}

/* ---------- desktop pills (built by main.js; ≥861px) ---------- */
.topnav { display: none; }
.js .topnav { display: none; gap: 6px; }
@media (min-width: 861px) {
  .js .topnav { display: flex; }
}
.topnav__pill {
  appearance: none;
  border: 1px solid rgba(74, 91, 160, 0.35);
  background: transparent;
  color: var(--indigo-700);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  min-height: 40px; /* comfortable touch target */
  border-radius: 100px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.topnav__pill:hover { background: #f3f5fd; }
.topnav__pill[aria-current="page"] {
  background: linear-gradient(135deg, var(--blue-500), var(--pink-500));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(77, 124, 246, 0.8);
}
.topnav__pill:active { transform: scale(0.97); }

/* ---------- burger (<861px, JS-built rows live in the sheet below) ------- */
.nav-burger { display: none; }
.js .nav-burger {
  display: grid;
  place-items: center;
  appearance: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(74, 91, 160, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--indigo-700);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.js .nav-burger:hover { color: var(--pink-500); border-color: var(--pink-400); }
.nav-burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-open { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 861px) {
  .js .nav-burger { display: none; }
}

/* ---------- slide-down section menu (<861px) ----------
   Labelled rows over a dimmed backdrop, sliding from beneath the header.
   Rows are built by main.js from the live sections, so deleted sections
   lose their row automatically. */
.menu-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: rgba(20, 26, 61, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu { display: none; }
.js .mobile-menu {
  display: block;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 56;
  margin: 0;
  padding: 6px clamp(14px, 4vw, 22px) calc(12px + var(--safe-b));
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 91, 160, 0.22);
  box-shadow: 0 26px 46px -30px rgba(20, 26, 61, 0.6);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}
.mobile-menu__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(245, 196, 106, 0.55);
  padding: 13px 6px;
  color: var(--indigo-700);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  transition: color 0.15s var(--ease);
}
.mobile-menu__row:last-child { border-bottom: 0; }
.mobile-menu__row svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--blue-500);
}
.mobile-menu__row .mobile-menu__num {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--indigo-600);
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.mobile-menu__row:hover { color: var(--pink-500); }
.mobile-menu__row.is-current {
  color: var(--pink-500);
}
.mobile-menu__row.is-current .mobile-menu__num { color: var(--pink-500); opacity: 1; }
@media (min-width: 861px) {
  /* Crossing into the desktop layout force-closes the sheet (also in JS) */
  .mobile-menu.is-open { visibility: hidden; opacity: 0; pointer-events: none; }
}

/* ==========================================================================
   FLOATING DOCK — glass pill built by main.js from the live sections
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 58;
  display: flex;
  align-items: stretch;
  gap: 2px;
  max-width: calc(100vw - 16px);
  padding: 6px 8px;
  background: rgba(29, 37, 87, 0.88);
  border: 1px solid rgba(245, 196, 106, 0.25);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 52px -22px rgba(10, 14, 40, 0.7);
}
.dock__btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  appearance: none;
  min-width: 48px;
  height: 50px;
  padding: 6px 7px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(255, 247, 239, 0.66);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.dock__btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock__btn:hover { color: var(--cream); background: rgba(255, 247, 239, 0.09); }
.dock__btn:active { transform: scale(0.94); }
.dock__btn.is-current { color: var(--gold); background: rgba(245, 196, 106, 0.14); }
.dock__btn.is-current::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink-400);
  box-shadow: 0 0 8px var(--pink-400);
}
.dock__label {
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .dock { padding: 5px 6px; gap: 1px; bottom: calc(10px + var(--safe-b)); }
  .dock__btn { min-width: 44px; height: 48px; padding: 5px 5px; border-radius: 11px; }
  .dock__label { font-size: 0.5rem; }
}

/* ==========================================================================
   THE POSTER (reveal flyer art) — unchanged art direction
   ========================================================================== */
.poster {
  position: relative;
  width: 100%;
  max-width: 680px;
  background:
    radial-gradient(circle at 50% 18%, rgba(77, 124, 246, 0.28), transparent 46%),
    radial-gradient(circle at 50% 82%, rgba(236, 72, 153, 0.2), transparent 46%),
    linear-gradient(162deg, var(--indigo-700) 0%, var(--indigo-800) 42%, var(--indigo-900) 100%);
  border: 1px solid rgba(245, 196, 106, 0.4);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 5.5vh, 54px) clamp(18px, 5vw, 46px) clamp(20px, 4.5vh, 40px);
  text-align: center;
  overflow: hidden;
  color: var(--cream);
}

/* double frame: gold hairline outer (border above) + dashed cream inner */
.poster::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 247, 239, 0.28);
  border-radius: 14px;
  pointer-events: none;
}

/* ---------- falling confetti ---------- */
.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.confetti span {
  position: absolute;
  top: -6vh;              /* start just above the poster, then fall through */
  left: var(--x);         /* % of the poster width — spreads the pieces across */
  width: calc(8px * var(--s, 1));
  height: calc(13px * var(--s, 1));
  background: var(--c);
  border-radius: var(--shape, 2px);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .confetti span {
    animation: confetti-fall var(--dur, 9s) linear var(--d, 0s) infinite;
  }
  @keyframes confetti-fall {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.95; }
    85%  { opacity: 0.95; }
    100% { transform: translate3d(var(--dx), 122vh, 0) rotate(660deg); opacity: 0; }
  }
}

/* ---------- ribbon ---------- */
.poster__ribbon {
  position: relative;
  z-index: 2;
  margin: 0 auto clamp(14px, 3.4vh, 30px);
  max-width: 340px;
  background: var(--pink-500);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 3px;
  box-shadow: 0 10px 22px -10px rgba(236, 72, 153, 0.9);
}
.poster__ribbon-inner {
  position: relative;
  display: block;
}
/* ribbon notches */
.poster__ribbon-inner::before,
.poster__ribbon-inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--indigo-900);
  border-radius: 50%;
  transform: translateY(-50%);
}
.poster__ribbon-inner::before { left: -24px; }
.poster__ribbon-inner::after { right: -24px; }

/* ---------- split seal + burst ---------- */
.poster__seal-wrap {
  position: relative;
  z-index: 2;
  width: clamp(132px, min(42vw, 27vh), 216px);
  margin: 0 auto;
}

.poster__burst {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  opacity: 0.9;
}

.poster__seal {
  position: relative;
  width: clamp(92px, min(30vw, 19vh), 148px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--blue-500) 0 50%, var(--pink-500) 50% 100%);
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 8px rgba(245, 196, 106, 0.16),
    0 0 0 16px rgba(255, 255, 255, 0.05),
    0 22px 44px -18px rgba(4, 8, 30, 0.8);
  display: grid;
  place-items: center;
}
.poster__seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  pointer-events: none;
}
.poster__seal-letter {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, min(13vw, 9.5vh), 4.4rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 16px rgba(10, 14, 40, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .poster__seal-wrap { animation: seal-pop 0.65s var(--ease) both; }
  @keyframes seal-pop {
    0%   { transform: scale(0.55); opacity: 0; }
    62%  { transform: scale(1.07); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }
}

/* ---------- headline ----------
   Fluid sizing keyed to BOTH axes (min(vw, vh)): type grows with the
   viewport until roughly a 700px-tall screen, then stops — mid-size
   phones never lose content to oversized art. */
.poster__script {
  position: relative;
  z-index: 2;
  margin: clamp(12px, 3.4vh, 26px) 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.6rem, min(7.5vw, 4.8vh), 2.5rem);
  line-height: 1.15;
  color: var(--pink-400);
}

.poster__title {
  position: relative;
  z-index: 2;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, min(11.5vw, 7.6vh), 4.4rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(4, 8, 30, 0.5);
}

.poster__line {
  position: relative;
  z-index: 2;
  margin: clamp(8px, 2.2vh, 18px) auto 0;
  max-width: 30em;
  font-size: clamp(0.9rem, 3.4vw, 1.05rem);
  font-weight: 400;
  color: rgba(255, 247, 239, 0.88);
}
.poster__line strong { color: var(--gold); font-weight: 600; }

/* Save-the-date pill — mirrors the Main Date at the top of the poster.
   If the platform-bound value is ever empty the :empty rule collapses it
   (the default text in index.html normally covers that case). */
.poster__when {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: clamp(8px, 2.2vh, 16px) auto 0;
  padding: 5px 16px;
  border: 1px solid rgba(245, 196, 106, 0.45);
  border-radius: 999px;
  background: rgba(77, 124, 246, 0.14);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--gold);
}
.poster__when:empty { display: none; }

/* ---------- details ledger ---------- */
.poster__ledger {
  position: relative;
  z-index: 2;
  margin: clamp(14px, 3.8vh, 32px) auto 0;
  max-width: 420px;
  width: 100%;
  text-align: left;
}

.poster-ledger-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(7px, 1.5vh, 11px) 0;
  border-bottom: 1px solid rgba(255, 247, 239, 0.18);
  min-width: 0;
}
.poster-ledger-row--last { border-bottom: 0; }
/* orphan guard: an emptied value must not leave a bare dt row behind */
.poster-ledger-row dd:empty { display: none; }

.poster-ledger-row dt {
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.poster-ledger-row dd {
  margin: 0;
  min-width: 0;
  font-weight: 500;
  font-size: clamp(0.92rem, 3.2vw, 1.02rem);
  color: var(--cream);
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere; /* long venue / host names wrap safely */
}

/* ---------- Add to Calendar ---------- */
.poster__cal {
  position: relative;
  z-index: 2;
  margin: clamp(12px, 2.6vh, 20px) auto 0;
}
.btn-cal {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(245, 196, 106, 0.55);
  background: rgba(245, 196, 106, 0.12);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: 100px;
  transition: background 0.25s var(--ease), transform 0.15s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-cal svg { width: 17px; height: 17px; }
.btn-cal:hover { background: rgba(245, 196, 106, 0.24); box-shadow: 0 10px 22px -12px rgba(245, 196, 106, 0.7); }
.btn-cal:active { transform: scale(0.97); }

/* ---------- dress note, tail, p.s. ---------- */
.poster__dress {
  position: relative;
  z-index: 2;
  margin: clamp(10px, 2.6vh, 22px) auto 0;
  max-width: 30em;
  font-style: italic;
  font-size: clamp(0.88rem, 3.2vw, 0.98rem);
  color: var(--blue-400);
}

.poster__tail {
  position: relative;
  z-index: 2;
  margin: clamp(9px, 2.2vh, 18px) 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.5rem, min(6.8vw, 4.2vh), 2.2rem);
  color: var(--gold);
  line-height: 1.2;
}

.poster__ps {
  position: relative;
  z-index: 2;
  margin: 12px auto 0;
  max-width: 30em;
  font-size: 0.8rem;
  color: rgba(255, 247, 239, 0.62);
}

/* ---------- cover squeeze (final JS fallback before the safety valve) --- */
.cover-squeeze .poster { padding-top: 16px; padding-bottom: 14px; }
.cover-squeeze .poster__ribbon { margin-bottom: 10px; padding: 7px 14px; }
.cover-squeeze .poster__script { margin-top: 8px; }
.cover-squeeze .poster__ledger { margin-top: 10px; }
.cover-squeeze .poster-ledger-row { padding: 5px 0; }
.cover-squeeze .poster__cal { margin-top: 8px; }
.cover-squeeze .btn-cal { min-height: 38px; padding: 7px 16px; }
.cover-squeeze .poster__dress { margin-top: 8px; }
.cover-squeeze .poster__tail { margin-top: 6px; }
.cover-squeeze .poster__ps { margin-top: 7px; }

/* ==========================================================================
   PANEL HEADS (gallery / video / RSVP / guestbook / free page)
   ========================================================================== */
.panel-head {
  max-width: 560px;
  width: 100%;
  margin: 0 auto clamp(18px, 4vh, 30px);
  text-align: center;
}
.panel-head__script {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--pink-500);
  line-height: 1.1;
}
.panel-head__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  letter-spacing: 0.01em;
  color: var(--indigo-800);
}
.panel-head__intro {
  margin: 8px auto 0;
  max-width: 34em;
  font-size: 0.92rem;
  color: var(--indigo-600);
}

/* ==========================================================================
   RSVP FORM
   ========================================================================== */
.rsvp-wrap { max-width: 560px; }

.rsvp-form {
  width: 100%;
  background: linear-gradient(165deg, #ffffff, #fbf7ff);
  border: 1px solid rgba(74, 91, 160, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 4vw, 34px);
}

.rsvp-fieldset {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}
.rsvp-fieldset__legend {
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(245, 196, 106, 0.9);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--indigo-600);
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--indigo-800);
  margin-bottom: 6px;
}
.form-group__hint { font-weight: 400; color: var(--indigo-600); opacity: 0.85; }

.form-control {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--indigo-800);
  background: #fff;
  border: 1.5px solid #d6dcf3;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-control::placeholder { color: rgba(35, 42, 94, 0.42); }
.form-control:hover { border-color: #b6c1ea; }
.form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(77, 124, 246, 0.22);
}
textarea.form-control { resize: vertical; min-height: 84px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233b467f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* error messages — the platform fills these spans */
.error {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--error);
  min-height: 0;
}
.error:empty { display: none; }

/* submit */
.btn {
  appearance: none;
  border: 0;
  border-radius: 100px;
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(120deg, var(--blue-500), var(--pink-500));
  box-shadow: 0 14px 26px -12px rgba(77, 124, 246, 0.85);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 16px 30px -12px rgba(236, 72, 153, 0.9); }
.btn:active { transform: scale(0.98); }

/* loading — hidden by default; the platform toggles visibility while submitting */
.loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--indigo-600);
}
.loading__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d6dcf3;
  border-top-color: var(--pink-500);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   GUESTBOOK
   ========================================================================== */
.guestbook-section { max-width: 560px; }

/* The platform injects the guestbook UI into .guestbook-body */
.guestbook-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

/* ==========================================================================
   OPTIONAL EVENT FLYER / BANNER
   --------------------------------------------------------------------------
   A wide banner slot at the top of the cover scene for an event that
   already has its own designed flyer. Ships visible with a themed
   placeholder SVG; delete the whole figure (or leave the platform's Flyer
   Image empty) to drop it — including its caption, with no orphans. Opens
   in the same zoomable lightbox as the Gallery photos.
   ========================================================================== */
.flyer-banner {
  display: none;
  width: 100%;
  max-width: 680px;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(74, 91, 160, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.flyer-banner:not([hidden]):not(.is-empty) { display: block; }
.flyer-banner:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -22px rgba(20, 26, 61, 0.5); }

.flyer-banner__frame {
  position: relative;
  display: block;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  background: var(--indigo-900);
}
.js a[data-photo].flyer-banner__frame,
.js a[data-photo].gallery__frame,
.js a[data-photo].free-block__figure { cursor: zoom-in; }
.flyer-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.flyer-banner:hover .flyer-banner__img { transform: scale(1.03); }

.flyer-banner__cap {
  padding: 10px 16px 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--indigo-800);
}

/* ==========================================================================
   VIDEO (optional reveal-video scene)
   ========================================================================== */
.video-wrap { width: 100%; max-width: 720px; }

.video-embed {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--indigo-900);
  border: 1px solid rgba(245, 196, 106, 0.35);
  box-shadow: var(--shadow-soft);
}
.video-embed__frame,
.video-embed > iframe,
.video-embed > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-note { margin: 14px 0 0; text-align: center; }

.video-expand {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(74, 91, 160, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--indigo-700);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  min-height: 40px;
  border-radius: 100px;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.video-expand svg { width: 16px; height: 16px; }
.video-expand:hover { background: #fff; box-shadow: 0 10px 22px -12px rgba(20, 26, 61, 0.4); }
.video-expand:active { transform: scale(0.97); }

/* ==========================================================================
   GALLERY (optional photo showcase)
   --------------------------------------------------------------------------
   Each <figure class="gallery__item"> is one photo slot; the inner
   <a data-photo> opens the original full-size in the zoomable lightbox
   (and falls back to a plain new-tab link without JS). Placeholders are
   local SVGs in assets/img/.
   ========================================================================== */
.gallery-wrap { width: 100%; max-width: 680px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 18px);
  width: 100%;
}
@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gallery__item {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(74, 91, 160, 0.25);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.gallery__item:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -22px rgba(20, 26, 61, 0.5); }

/* the first photo spans the full width as a wide banner slot; because the
   gallery is a repeatable group rendered from the platform, the first item
   is featured via :first-child so a cloned row keeps the same look */
.gallery__item:first-child { grid-column: 1 / -1; }

.gallery__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--indigo-900);
}
.gallery__item:first-child .gallery__frame { aspect-ratio: 16 / 9; }

.gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
}
.gallery__item:hover .gallery__img { transform: scale(1.045); filter: saturate(1.05); }

.gallery__cap {
  padding: 10px 14px 12px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--indigo-800);
}

/* ==========================================================================
   UNIFIED LIGHTBOX — photos zoom + pan; the reveal video plays large
   --------------------------------------------------------------------------
   Opened from any <a data-photo> (gallery, flyer, free-page photos) and
   from the video's "Watch it full screen" button. Wheel / pinch /
   double-tap / +− buttons zoom; drag pans while zoomed. Escape, ✕ and a
   backdrop tap close. Without JS the anchors simply open the original.
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(18px + var(--safe-t)) 14px calc(18px + var(--safe-b));
}
.lightbox[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 40, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox__stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox__figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 0;
}

.lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  width: 100%; /* definite width so the img's max-width:100% cannot cycle */
  min-height: 0;
}

.lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-md);
  background: var(--indigo-800);
  border: 1px solid rgba(255, 247, 239, 0.25);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform 0.2s var(--ease);
}
.lightbox__frame.is-zoomed .lightbox__img { cursor: grab; }
.lightbox__frame.is-zoomed .lightbox__img:active { cursor: grabbing; }
.lightbox__frame.is-panning .lightbox__img { transition: none; }

/* embedded / direct video mode — the actual player node is moved here so
   playback position survives opening and closing */
.lightbox__video {
  width: min(880px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: 76vh;
}
.lightbox__video iframe,
.lightbox__video video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

.lightbox__cap {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-align: center;
  overflow-wrap: anywhere;
}
.lightbox__cap:empty { display: none; }

.lightbox__count {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 247, 239, 0.65);
}
.lightbox__count:empty { display: none; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 3;
  appearance: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 247, 239, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.24); border-color: var(--pink-400); }
.lightbox__close:active,
.lightbox__nav:active { transform: scale(0.94); }
.lightbox__close {
  top: 0;
  right: 0;
  z-index: 4; /* above the side arrows when stages run short */
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav:active { transform: translateY(-50%) scale(0.94); }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }

/* zoom tools (photos) + open-original link */
.lightbox__tools {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.lightbox__tools[hidden] { display: none; }
.lightbox__tool {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 239, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.lightbox__tool:hover { border-color: var(--pink-400); color: var(--pink-400); background: rgba(255, 255, 255, 0.2); }
.lightbox__tool:disabled { opacity: 0.3; cursor: default; }
.lightbox__tool--readout {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.lightbox__original {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 247, 239, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.lightbox__original:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 255, 255, 0.2); }
.lightbox__original[hidden] { display: none; }

/* ==========================================================================
   FREE PAGE (optional extra-content scene(s))
   --------------------------------------------------------------------------
   A flexible canvas of stacked blocks; each <article class="free-block"> is
   a title, text and an optional photo. Duplicate the whole section for
   multiple free pages — navigation follows the DOM automatically.
   ========================================================================== */
.free-wrap { width: 100%; max-width: 680px; }

.free-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3vw, 22px);
  width: 100%;
}

.free-block {
  background: #fff;
  border: 1px solid rgba(74, 91, 160, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 4vw, 30px);
}
/* orphan guard: a block emptied of title, text AND photo leaves no card */
.free-block.is-empty { display: none !important; }

.free-block__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  letter-spacing: 0.01em;
  color: var(--indigo-800);
}
.free-block__title:empty { display: none; }

.free-block__content {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--indigo-600);
  white-space: pre-line; /* keep the host's line breaks from the editor */
}
.free-block__content:empty { display: none; }

.free-block__media { margin: 16px 0 0; }
.free-block__media:first-child { margin-top: 0; }

.free-block__figure {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(74, 91, 160, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.free-block__figure:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -22px rgba(20, 26, 61, 0.5); }
/* a block without a photo: the engine removes the img, so no empty frame */
.free-block__figure:empty { display: none; }

.free-block__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ==========================================================================
   FOOTER — flows at the end of the document; clears the floating dock
   ========================================================================== */
.app-footer {
  padding: 14px 16px calc(calc(12px + var(--safe-b)) + var(--dock-h) + 10px);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(74, 91, 160, 0.22);
}
.app-footer p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-600);
}
/* Brand placeholder the platform can bind/swap */
.footer-brand { font-weight: 500; }
.app-footer__heart { color: var(--pink-500); }

/* Full-width platform credit line (class "powered-by" is the platform
   contract — keep this element and its class) */
.powered-by {
  width: 100%;
  margin-top: 7px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(35, 42, 94, 0.55);
}
.powered-by__name {
  color: var(--pink-500);
  font-weight: 600;
}

/* ==========================================================================
   NO-JS — the page reads perfectly as a plain scrolling document
   ========================================================================== */
html.no-js .topnav,
html.no-js .nav-burger,
html.no-js .app-header__progress,
html.no-js .mobile-menu,
html.no-js .menu-backdrop,
html.no-js .dock { display: none !important; }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .confetti { display: none !important; }
}

/* ==========================================================================
   PRINT — the poster prints as a single centred sheet; everything hidden
   by the cover-fit routine or the empty-state audit is restored
   ========================================================================== */
@media print {
  body {
    background: #fff;
    padding-top: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .app-header, .dock, .mobile-menu, .menu-backdrop, .skip-link,
  .lightbox, .video-note { display: none !important; }
  .confetti { display: none !important; }

  /* restore anything the interactive layers hid */
  .fit-hidden, .is-empty { display: block !important; }
  .poster__cal { display: block !important; }

  .scene {
    min-height: 0 !important;
    height: auto !important;
    padding: 10mm 8mm !important;
    overflow: visible !important;
  }
  .scene--cover { display: flex !important; align-items: center; justify-content: center; }
  .scene:not(.scene--cover) { display: none !important; }

  .poster {
    max-width: 7in;
    box-shadow: none;
    border-radius: 0;
    padding: 0.9in 0.7in;
    overflow: visible;
    border: 1px solid #f5c46a;
  }
  .poster::before { inset: 0.18in; border-radius: 0; }
}

/* ── Guestbook (platform-injected form + message list) ───────────────
   Global .form-group / .form-control / .error / .btn already cover the
   injected markup (the RSVP form uses the same classes); the rules below
   only fill gaps (card, chapta, loading, message list, load-more) and
   pin the submit button on-brand past Bootstrap's utility classes. */

#guestbookForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  background: var(--cream);
  border: 1.5px solid #d6dcf3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
#guestbookForm .form-group { margin-bottom: 0; }
#guestbookForm .form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--indigo-800);
  margin-bottom: 6px;
}
#guestbookForm .form-control {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--indigo-800);
  background: #fff;
  border: 1.5px solid #d6dcf3;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#guestbookForm .form-control::placeholder { color: rgba(35, 42, 94, 0.42); }
#guestbookForm .form-control:hover { border-color: #b6c1ea; }
#guestbookForm .form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(77, 124, 246, 0.22);
}
#guestbookForm textarea.form-control { resize: vertical; min-height: 84px; }
#guestbookForm .error {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--error);
}

.guestbook-chapta { margin-top: 10px; }

#guestbookForm button[type="submit"] {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin: 0 auto;
  border: 0;
  border-radius: 100px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(120deg, var(--blue-500), var(--pink-500));
  box-shadow: 0 14px 26px -12px rgba(77, 124, 246, 0.85);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}
#guestbookForm button[type="submit"]:hover { filter: brightness(1.06); box-shadow: 0 16px 30px -12px rgba(236, 72, 153, 0.9); }

.loading-guestbook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--indigo-600);
}

/* Message list (#comments-container.guestbook-wrap) */
.guestbook-wrap {
  margin-top: 22px !important;
  border-top: 1.5px solid rgba(59, 70, 127, 0.25) !important;
  padding-top: 18px !important;
}
.guestbook-entry {
  background: #fff;
  border: 1.5px solid rgba(59, 70, 127, 0.18);
  border-left: 3px solid var(--pink-400);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.guestbook-entry h5 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1rem; color: var(--indigo-800); }
.guestbook-entry p { margin: 0 0 6px; font-size: 0.9rem; color: var(--ink); overflow-wrap: anywhere; }
.guestbook-entry small { font-size: 0.74rem; color: var(--indigo-600); opacity: 0.85; }

.more-guestbook-wrap { text-align: center; margin-top: 4px; }
#load-more {
  appearance: none;
  border: 1.5px solid rgba(59, 70, 127, 0.3);
  border-radius: 100px;
  background: transparent;
  color: var(--indigo-700);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 26px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
#load-more:hover { border-color: var(--pink-500); color: var(--pink-500); }
