/* ═══════════════════════════════════════════════════════════════════════
   REVEAL DAY — Product Launch Flyer (Kundangan template)
   Category: Product Launch (Corporate)

   Design language: a cinematic "reveal poster". Near-black keynote stage,
   violet→cyan electric gradient, big Space Grotesk display type, live
   countdown. Content scrolls inside one 100dvh shell panel at a time.

   Layout model (progressive enhancement):
   - Default (no JS): normal top-to-bottom page flow, all panels visible.
   - html.js.shell (JS ready + booted OK): 100dvh shell; only the active
     panel scrolls internally.
   - prefers-reduced-motion: animations off, static countdown.
   - @media print: light, ink-friendly multi-page output.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #06070c;
  --bg-2: #0b0d16;
  --ink: #f4f6ff;
  --ink-soft: rgba(244, 246, 255, 0.74);
  --ink-dim: rgba(244, 246, 255, 0.48);
  --line: rgba(244, 246, 255, 0.12);
  --line-strong: rgba(244, 246, 255, 0.2);
  --accent: #8b5cf6;      /* violet   */
  --accent-2: #22d3ee;    /* cyan     */
  --danger: #fb7185;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.35));
  --radius: 16px;
  --radius-lg: 22px;
  --font-display: "Space Grotesk", "Avenir Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 14px 38px -12px rgba(139, 92, 246, 0.55);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }

[hidden] { display: none !important; }

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

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

/* ── Skip link ──────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ── Shell ──────────────────────────────────────────────────────────── */
.stage {
  display: flex;
  flex-direction: column;
  min-height: 100vh;            /* fallback */
  min-height: 100dvh;
}

.shell-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 32px) 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 5;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; }
.brand-mark { color: var(--accent-2); font-size: 12px; transform: translateY(-1px); }
.brand-text { font-size: 15px; }

.head-actions { display: flex; align-items: center; gap: 14px; }
.head-date { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-dim); }

.shell-viewport { flex: 1 1 auto; min-height: 0; }

.shell-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  padding: 10px clamp(12px, 3vw, 24px) calc(10px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: rgba(6, 7, 12, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 5;
}

.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 72px;
  padding: 8px 12px 6px;
  border-radius: 14px;
  color: var(--ink-dim);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-item:hover { color: var(--ink-soft); background: rgba(244, 246, 255, 0.06); }
.nav-item.is-current { color: var(--ink); }
.nav-item.is-current .nav-ico { stroke: var(--accent-2); }
.nav-item.is-orphan { display: none; }

/* ── Panels: default (no JS) = normal flow ─────────────────────────── */
.panel { position: relative; }

/* visible dividers only when the page flows (no-JS fallback) */
html.no-js .panel + .panel { border-top: 1px solid var(--line); }

/* ── Panels: JS shell = one active scrolling panel ─────────────────── */
html.js.shell .stage { height: 100vh; height: 100dvh; overflow: hidden; }
html.js.shell .shell-viewport { overflow: hidden; }
html.js.shell .panel { display: none; }
html.js.shell .panel.is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 246, 255, 0.22) transparent;
}
html.js.shell .panel.is-active::-webkit-scrollbar { width: 10px; }
html.js.shell .panel.is-active::-webkit-scrollbar-thumb {
  background: rgba(244, 246, 255, 0.2);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: content-box;
}
html.js.shell .panel.is-active::-webkit-scrollbar-track { background: transparent; }

/* The reveal poster (hero) is a flex child of the scrolling panel. Let it
   size to its own content instead of shrinking to min-height on short
   viewports — otherwise its overflow:hidden clips the CTA/countdown and
   the panel has nothing left to scroll. */
html.js.shell .panel.is-active .hero { flex-shrink: 0; }

.panel-inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 7vh, 72px) clamp(20px, 5vw, 40px) calc(clamp(40px, 8vh, 88px) + 24px);
}
html.js.shell .panel.is-active .panel-inner { padding-bottom: calc(clamp(40px, 8vh, 88px) + 24px); }

/* ── Shared panel head ──────────────────────────────────────────────── */
.panel-head { text-align: center; margin-bottom: clamp(28px, 5vh, 44px); }
.panel-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.panel-sub { color: var(--ink-soft); max-width: 560px; margin: 12px auto 0; }

/* ── Hero / reveal poster ───────────────────────────────────────────── */
.hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  padding: clamp(40px, 8vh, 84px) clamp(20px, 5vw, 48px);
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {   /* faint engineering grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 246, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 246, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, #000 25%, transparent 78%);
}
.hero-bg::after {    /* ambient light wash */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 110% 85% at 50% -10%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 60%);
}

/* ── Hero photo backdrop (optional — delete the .hero-photo-wrap block
      in index.html to return to the pure-CSS poster) ─────────────────── */
.hero-photo-wrap { position: absolute; inset: 0; }
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Scrim keeps the white display type readable over any photo (bright or
   dark); the orbs and .hero-bg::after wash still tint the scene. */
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 80% at 50% 42%, rgba(6, 7, 12, 0.24), rgba(6, 7, 12, 0.5) 82%),
    linear-gradient(180deg, rgba(6, 7, 12, 0.52), rgba(6, 7, 12, 0.32) 48%, rgba(6, 7, 12, 0.78));
}

.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.hero-orb-a { width: 420px; height: 420px; left: -8%; top: -14%; background: radial-gradient(circle, rgba(139, 92, 246, 0.75), transparent 65%); }
.hero-orb-b { width: 380px; height: 380px; right: -8%; bottom: -12%; background: radial-gradient(circle, rgba(34, 211, 238, 0.6), transparent 65%); }

.hero-ring {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(76vw, 840px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.5;
  background: conic-gradient(from 0deg, transparent 0% 38%, rgba(139, 92, 246, 0.55) 50%, transparent 62% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
}

.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 860px; margin: 0 auto; }

.hero-kickers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: clamp(22px, 4vh, 36px); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(244, 246, 255, 0.05);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-title { margin-bottom: 18px; }
.product-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 13vw, 9rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
  background: linear-gradient(115deg, #ffffff 15%, var(--accent) 55%, var(--accent-2) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 0 80px rgba(139, 92, 246, 0.35);
}
.hero-title-rule {
  display: block;
  width: min(240px, 40vw);
  height: 2px;
  margin: clamp(14px, 3vh, 26px) auto;
  background: var(--grad);
  border-radius: 2px;
}
.hero-title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-tagline {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: clamp(28px, 5vh, 44px);
}

/* ── Countdown ──────────────────────────────────────────────────────── */
.countdown { margin-bottom: clamp(30px, 5vh, 48px); }
.countdown-caption { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; }

.countdown-tiles {
  display: none;              /* shown only when JS drives the timer */
  justify-content: center;
  align-items: stretch;
  gap: 8px;
}
.count-tile {
  min-width: clamp(68px, 14vw, 96px);
  padding: 14px 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(244, 246, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.count-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.count-label { display: block; margin-top: 7px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim); }
.count-sep { align-self: center; font-family: var(--font-display); font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 600; color: var(--ink-dim); padding: 0 2px; }

.countdown-live, .countdown-tba { display: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--accent-2); padding: 26px 0 6px; }
.countdown.is-live .countdown-live { display: block; }
.countdown.is-live .countdown-tiles, .countdown.is-live .countdown-caption { display: none; }
.countdown.is-tba .countdown-tba { display: block; }
.countdown.is-tba .countdown-tiles, .countdown.is-tba .countdown-caption { display: none; }
.countdown-fallback { display: block; color: var(--ink-soft); font-size: 1.05rem; }  /* no-JS: show the date text */

/* JS on: live ticking timer replaces the static date text */
html.js.shell .countdown-tiles { display: flex; }
html.js.shell .countdown-fallback { display: none; }

/* subtle "tick" when a digit changes */
html.js.shell .count-value { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease; }
.count-value.is-tick { transform: translateY(-5px); opacity: 0.55; }

/* ── Hero CTA ───────────────────────────────────────────────────────── */
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:disabled { opacity: 0.6; cursor: default; }

.btn-primary {
  background: var(--grad);
  color: #080a12;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(139, 92, 246, 0.7); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(244, 246, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 9px 18px;
}
.btn-ghost:hover { background: rgba(244, 246, 255, 0.1); color: var(--ink); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: min(100%, 420px); }

.hero-meta { color: var(--ink-dim); font-size: 13.5px; }

/* Optional gallery CTA on the Details panel (hidden automatically if the
   gallery section is removed — see main.js orphan logic) */
[data-scroll-to].is-orphan { display: none; }
.panel-cta { display: flex; justify-content: center; margin-top: clamp(26px, 4vh, 40px); }

.seat-chip {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ── At-a-glance grid (details panel) ──────────────────────────────── */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: clamp(34px, 6vh, 52px);
}
.glance-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  /* faint top-down wash so each panel reads as lit, not as a drawn box */
  background:
    radial-gradient(130% 80% at 50% 0%, rgba(139, 92, 246, 0.1), transparent 68%),
    rgba(244, 246, 255, 0.035);
  text-align: left;
  overflow: hidden;
}
/* gradient edge-light along the top — replaces the flat box feel with a lit-panel feel */
.glance-item::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.65;
}
.glance-ico {
  color: var(--accent-2);
  margin-bottom: 4px;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}
.glance-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.glance-value { font-size: 14.5px; font-weight: 500; line-height: 1.45; }

/* ── Agenda timeline ────────────────────────────────────────────────── */
.agenda { max-width: 620px; margin: 0 auto; }
.agenda-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 22px;
  color: var(--ink-soft);
}
.agenda-list { position: relative; }
.agenda-list::before {
  content: "";
  position: absolute;
  left: 74px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.45;
}
.agenda-item { position: relative; display: flex; gap: 20px; padding: 12px 0; }
.agenda-item::before {
  content: "";
  position: absolute;
  left: 69px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.agenda-time {
  flex: 0 0 64px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-align: right;
  padding-top: 2px;
}
.agenda-copy { color: var(--ink-soft); max-width: 480px; }
.agenda-copy strong { display: block; color: var(--ink); font-weight: 600; }

/* ── Note card ──────────────────────────────────────────────────────── */
.note-card {
  position: relative;
  max-width: 620px;
  margin: clamp(30px, 5vh, 44px) auto 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.2);
  /* soft dual-tone wash instead of a flat tint + single accent edge */
  background:
    linear-gradient(rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.05));
  color: var(--ink-soft);
  font-size: 14.5px;
  overflow: hidden;
}
/* gradient edge-light along the left edge — replaces the flat 3px accent stripe */
.note-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad);
  opacity: 0.8;
}
.note-card strong { color: var(--ink); }

/* ── RSVP form ──────────────────────────────────────────────────────── */
#rsvp-form { max-width: 620px; margin: 0 auto; }

.field { margin-bottom: 20px; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label, .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.opt { color: var(--ink-dim); font-weight: 400; font-size: 12px; }

.control {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(244, 246, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.control::placeholder { color: var(--ink-dim); }
.control:hover { border-color: rgba(244, 246, 255, 0.3); }
.control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
  background: rgba(244, 246, 255, 0.07);
}
textarea.control { resize: vertical; min-height: 64px; }

select.control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aab0c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select.control option { background: var(--bg-2); color: var(--ink); }

.control-narrow { max-width: 140px; }

.error { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; line-height: 1.4; }
.error:not(:empty) { display: block; }

.field-hint { font-size: 13px; color: var(--ink-dim); margin: -6px 0 20px; }

/* attending segmented switch (JS enhancement; native select shown otherwise) */
.attending-switch { display: none; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch-opt {
  padding: 13px 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.switch-opt:hover { background: rgba(244, 246, 255, 0.08); }
.switch-opt.is-on {
  background: var(--grad);
  border-color: transparent;
  color: #080a12;
  font-weight: 600;
}
.switch-opt[aria-pressed="true"]:focus-visible { outline-color: #080a12; }

.field-note { font-size: 13px; color: var(--ink-dim); margin-top: 8px; }
.field-note-no { display: none; }
.rsvp-form.is-not-attending .field-note-no { display: block; }
.rsvp-form.is-not-attending .guests-field { opacity: 0.55; }

/* JS on: hide the native select, show the segmented control */
html.js.shell .attending-native { display: none; }
html.js.shell .attending-switch { display: grid; }

/* guests field */
.guests-field { max-width: 360px; }

.rsvp-actions { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* .loading — visibility is managed by the platform (rsvp_user.js). We only
   style it; the platform .show()/.hide() sets inline styles that win. */
.loading {
  font-size: 13.5px;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(244, 246, 255, 0.2);
  border-top-color: var(--accent-2);
  animation: spin 0.8s linear infinite;
}

/* thank-you state (platform swaps the form content) */
.rsvp-wrap .thank-you-message { text-align: center; padding: 20px 8px 12px; }
.rsvp-wrap .thank-you-message h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 10px; }
.rsvp-wrap .thank-you-message p { color: var(--ink-soft); margin: 6px 0; }
.rsvp-wrap .thank-you-message small { color: var(--ink-dim); }

/* ── RSVP deadline (host-set countdown rendered by rsvp_user.js) ─────── */
.rsvp-deadline {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
}
.rsvp-deadline-label { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); font-weight: 700; }
.rsvp-deadline-digits { font-size: 1.35rem; font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.rsvp-deadline-digits .rsvp-unit { font-size: 0.8em; color: var(--ink-dim); margin: 0 8px 0 2px; }
.rsvp-deadline-digits .rsvp-unit:last-child { margin-right: 0; }

/* ── Guestbook (mount point + injected markup styling) ─────────────── */
.guestbook-body { max-width: 620px; margin: 0 auto; }

.guestbook-section .guestbook-form { border-radius: var(--radius-lg); }

.guestbook-section .form-group { margin-bottom: 18px; text-align: left; }
.guestbook-section .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.guestbook-section .form-control {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(244, 246, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.guestbook-section .form-control::placeholder { color: var(--ink-dim); }
.guestbook-section .form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
  background: rgba(244, 246, 255, 0.07);
}
.guestbook-section textarea.form-control { resize: vertical; min-height: 90px; }

/* injected submit button utilities (scoped so we don't fight platform CSS) */
.guestbook-section .d-flex { display: flex; justify-content: center; }
.guestbook-section .d-inline-flex { display: inline-flex; align-items: center; }
.guestbook-section .mx-auto { margin-left: auto; margin-right: auto; }
.guestbook-section .mt-2 { margin-top: 0.5rem; }
.guestbook-section .px-3 { padding-left: 1rem; padding-right: 1rem; }
.guestbook-section .btn.badge-pill {
  background: var(--grad);
  color: #080a12;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}
.guestbook-section .btn.badge-pill:hover { transform: translateY(-2px); }
.guestbook-section .ph { vertical-align: -0.125em; margin-right: 6px; }

.guestbook-section .guestbook-chapta {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin: 0 auto 18px;
  max-width: 304px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.guestbook-section .loading-guestbook { text-align: center; color: var(--ink-dim); font-size: 13.5px; padding: 8px; }

/* message list + entries (injected markup) */
.guestbook-section #comments-container {
  border-top: 1px solid var(--line) !important;
  margin-top: 26px !important;
  max-height: none !important;
}
.guestbook-section .guestbook-entry {
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.guestbook-section .guestbook-entry:last-child { border-bottom: 0; }
.guestbook-section .guestbook-entry h5 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.guestbook-section .guestbook-entry p { margin: 0 0 6px; color: var(--ink-soft); overflow-wrap: anywhere; }
.guestbook-section .guestbook-entry small { color: var(--ink-dim); font-size: 12px; }

.guestbook-section .more-guestbook-wrap { text-align: center; margin-top: 18px; }
.guestbook-section #load-more {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}
.guestbook-section #load-more:hover { background: rgba(244, 246, 255, 0.08); color: var(--ink); }

.guestbook-section .thank-you-message { text-align: center; padding: 18px 8px; }
.guestbook-section .thank-you-message h4 { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 8px; }
.guestbook-section .thank-you-message p { color: var(--ink-soft); margin: 0; }

/* generic utility the injected markup may rely on */
.text-center { text-align: center; }

/* ── Gallery (optional photography panel) ───────────────────────────── */
.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 16 / 10;
}
@media (min-width: 620px) { .gallery-item--wide { grid-column: span 2; } }

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Scrim so captions stay legible over any photo */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(6, 7, 12, 0.85));
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px 15px;
}
.g-cap-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.g-cap-text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ── Video: optional trailer embed (accepts a YouTube / Vimeo embed URL
      in the iframe, or a direct .mp4 in a <video> tag) ──────────────── */
.film-figure { margin: 0; }
.film-embed {
  position: relative;
  width: 100%;
  /* Cap by height so a tall phone screen never inflates the video; the
     16/9 ratio is preserved (width caps first on phones). */
  max-width: calc(56vh * 16 / 9);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  /* Gentle keynote glow as the embed loads — nothing ever looks broken */
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.22), transparent 62%),
    linear-gradient(165deg, #14162a 0%, #0b0d16 62%, #06070c 100%);
}
.film-embed::after {   /* soft inner vignette so the frame reads as lit */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(244, 246, 255, 0.06), inset 0 -40px 80px -40px rgba(6, 7, 12, 0.6);
}
.film-embed iframe,
.film-embed video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.film-cap {
  margin: 12px auto 0;
  max-width: 560px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-dim);
}
.film-open { margin: 18px 0 0; text-align: center; }
.film-open a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.film-open a:hover { background: rgba(244, 246, 255, 0.08); color: var(--ink); }

/* ── The official flyer / banner (optional showcase) ─────────────────── */
.flyer-figure {
  margin: 0 auto;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  box-shadow: var(--shadow);
}
.gallery-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.gallery-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.flyer-figure:hover .gallery-open img { transform: scale(1.04); }
.flyer-cap {
  padding: 13px 16px 15px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Free page (optional panel: repeatable free blocks) ──────────────
      The cockpit's Free Page group clones the first .free-block per row
      the host adds (Free Title + Free Content + optional Free Image). A
      block without a photo stays clean: the engine removes the img and
      the :has() fallback below hides the whole figure. */
.free-blocks {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.free-block {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  /* faint top-down wash so each block reads as lit, not as a drawn box */
  background:
    radial-gradient(130% 80% at 50% 0%, rgba(139, 92, 246, 0.1), transparent 68%),
    rgba(244, 246, 255, 0.035);
  overflow: hidden;
}
/* gradient edge-light along the top — matches .glance-item */
.free-block::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0.65;
}
.free-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}
.free-title:focus { outline: none; }
.free-content {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  white-space: pre-line; /* blank lines from the morph textarea are kept */
  overflow-wrap: anywhere;
}
.free-figure {
  margin: 20px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
/* no-photo fallback (the engine removes the img — and the morph's
   css_if_empty the figure — when the host left the photo blank) */
.free-figure:not(:has(img)) { display: none; }
.free-figure img.free-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease;
}
.free-figure:hover img.free-img { transform: scale(1.03); }
.free-cap {
  display: block;
  padding: 11px 16px 13px;
  font-size: 12.5px;
  color: var(--ink-dim);
  text-align: center;
}

/* Free page with no content left (the server removed .free-blocks when
   the host filled no free blocks): hide the whole panel — also in the
   no-JS fallback, where the JS orphan logic cannot run. */
.panel-free:not(:has(.free-blocks)) { display: none; }

/* ── Photo lightbox (progressive enhancement) ──────────────────────────
      Every photo feature opens here: gallery cards, the flyer/banner
      showcase and the hero backdrop. Fit-to-screen by default; click the
      photo or use the +/− tools to zoom in and pan (scroll / drag). */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 11, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox-panel {
  position: relative;
  max-width: min(1080px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}
.lightbox-figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox-stage {
  overflow: hidden;
  max-height: 78vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--bg-2);
}
.lightbox-stage.is-zoomed {
  overflow: auto;
  max-height: 80vh;
  overscroll-behavior: contain;
  cursor: grab;
}
.lightbox-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  cursor: zoom-in;
}
.lightbox-stage.is-zoomed img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.lightbox-caption {
  color: var(--ink-soft);
  font-size: 14.5px;
  text-align: center;
  /* side room so the zoom tools never cover the caption on small screens */
  padding: 0 76px;
}
.lightbox-caption strong { color: var(--ink); font-weight: 600; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(11, 13, 22, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { background: rgba(244, 246, 255, 0.1); color: #fff; }
.lightbox-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.lightbox-tool {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(11, 13, 22, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.lightbox-tool:hover { background: rgba(244, 246, 255, 0.14); }
.lightbox-tool:disabled { opacity: 0.35; cursor: default; }

/* keep the panel behind from scrolling while the lightbox is open */
html.lightbox-open .panel.is-active { overflow: hidden; }

/* ── Powered by — full-width static brand strip above the bottom tabs ──
      Platform HTML, not a morph: never bound to an editor field. */
.powered-by {
  width: 100%;
  margin: 0;
  padding: 13px clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--line);
  background: rgba(6, 7, 12, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.powered-by .link-footer { font-weight: 700; color: var(--accent-2); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .at-a-glance { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  /* Bottom nav: with 8 tabs the bar scrolls horizontally on phones
     instead of cramming — swipe to reach every tab; every label stays
     legible (no wrapping, no cut-off icons). */
  .shell-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shell-nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 auto; min-width: 60px; padding: 8px 8px 6px; }
  .head-date { display: none; }
}

@media (max-width: 420px) {
  .countdown-tiles { gap: 5px; }
  .count-tile { min-width: 60px; padding: 11px 6px 10px; }
  .count-sep { padding: 0 0; }
  .attending-switch { grid-template-columns: 1fr; }
}

/* ── Motion preferences ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .hero-orb { animation: none; }
  .hero-ring { animation: none; transform: translate(-50%, -50%); }
  .count-value.is-tick { transform: none; opacity: 1; }
  .btn-primary:hover { transform: none; }
  .btn-arrow { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(26px, -20px, 0); } }
  @keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

  .hero-orb-a { animation: drift 16s ease-in-out infinite alternate; }
  .hero-orb-b { animation: drift 20s ease-in-out infinite alternate-reverse; }
  .hero-ring { animation: ring-spin 28s linear infinite; }

  html.js.shell .shell-viewport { scroll-behavior: smooth; }
}

/* ── Print: light, ink-friendly, every panel on its own page ────────── */
@media print {
  @page { margin: 14mm 12mm; }

  html, body { height: auto; background: #fff !important; color: #111 !important; }

  .skip-link, .shell-head, .shell-nav, .hero-bg, .seat-chip, .loading, .lightbox { display: none !important; }

  .stage { display: block !important; min-height: 0 !important; height: auto !important; overflow: visible !important; }
  .shell-viewport { overflow: visible !important; }

  /* all panels visible, one per page */
  html.js.shell .panel { display: block !important; height: auto !important; overflow: visible !important; }
  html.js.shell .panel.is-active { height: auto !important; overflow: visible !important; }
  .panel { break-after: page; }
  .panel:last-child { break-after: auto; }

  .panel-inner { max-width: 100%; padding: 0; }

  body, .hero, .panel-inner, .glance-item, .note-card, .control, .count-tile,
  .switch-opt, .guestbook-section .form-control, .free-block {
    background: #fff !important;
    color: #111 !important;
    border-color: #d9d9d9 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hero { min-height: 0 !important; padding: 0 !important; }

  /* solid ink for gradient text (background-clip breaks in print) */
  .product-name {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #111 !important;
    color: #111 !important;
    text-shadow: none !important;
  }
  .count-value {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #111 !important;
    color: #111 !important;
  }

  /* countdown prints as a static line of numbers */
  html.js.shell .countdown-tiles { display: flex !important; }
  html.js.shell .countdown-fallback { display: none !important; }
  .countdown-live, .countdown-tba { display: none !important; }

  .hero-title-rule, .hero-kickers, .hero-tagline, .countdown-caption { margin-bottom: 8px; }
  .panel-eyebrow { color: #666 !important; }
  .panel-sub, .hero-meta, .hero-tagline, .field-hint, .field-note,
  .agenda-copy, .note-card, .glance-label, .glance-value, .opt,
  .guestbook-section .guestbook-entry p, .guestbook-section .guestbook-entry small {
    color: #333 !important;
  }
  .agenda-time, .glance-ico, .countdown-live { color: #555 !important; }
  .free-title { color: #111 !important; }
  .free-content, .free-cap { color: #333 !important; }
  .free-block::before { opacity: 0; }
  .agenda-item::before { border-color: #888 !important; background: #fff !important; }
  .agenda-list::before { background: #bbb !important; opacity: 1 !important; }
  .note-card { border-left-color: #888 !important; background: #f7f7f7 !important; }

  select.control { background-image: none !important; padding-right: 15px !important; }

  /* avoid awkward form breaks */
  .rsvp-actions { break-inside: avoid; }
  .at-a-glance { break-inside: avoid; }
  .agenda { break-inside: avoid; }
  .gallery-item { break-inside: avoid; }
  .free-block { break-inside: avoid; }
}


/* ── Guestbook (platform-injected form + message list) ─────────────── */
/* Complements the existing .guestbook-section rules with the injected
   markup's own selectors; adds a card shell for the form on the dark bg. */
.guestbook-body .guestbook-form { text-align: left; }

.guestbook-body #guestbookForm {
  padding: 24px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.guestbook-body #guestbookForm .form-group { margin-bottom: 18px; }
.guestbook-body #guestbookForm .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.guestbook-body #guestbookForm .form-control {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(244, 246, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.guestbook-body #guestbookForm .form-control::placeholder { color: var(--ink-dim); }
.guestbook-body #guestbookForm .form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
  background: rgba(244, 246, 255, 0.07);
}
.guestbook-body #guestbookForm .error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}

.guestbook-body #guestbookForm .guestbook-chapta {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin: 0 auto 18px;
  max-width: 304px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.guestbook-body .loading-guestbook {
  text-align: center;
  color: var(--ink-dim);
  font-size: 13.5px;
  padding: 8px;
}

/* !important beats Bootstrap .bg-kundangan / .text-white / .px-3 */
.guestbook-body #guestbookForm button[type="submit"] {
  background: var(--grad) !important;
  color: #080a12 !important;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px !important;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}
.guestbook-body #guestbookForm button[type="submit"]:hover { transform: translateY(-2px); }

#comments-container.guestbook-wrap {
  border-top: 1px solid var(--line) !important;
  margin-top: 26px !important;
  max-height: none !important;
  padding-top: 18px;
}

.guestbook-entry { padding: 18px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.guestbook-entry:last-child { border-bottom: 0; }
.guestbook-entry h5 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.guestbook-entry p { margin: 0 0 6px; color: var(--ink-soft); overflow-wrap: anywhere; }
.guestbook-entry small { color: var(--ink-dim); font-size: 12px; }

.more-guestbook-wrap { text-align: center; margin-top: 18px; }
#load-more {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}
#load-more:hover { background: rgba(244, 246, 255, 0.08); color: var(--ink); }
