/* ════════════════════════════════════════════════════════════════════════
   Holiday Christmas Party Card — "Jingle & Mingle"
   · template/creative/html/party-christmas-card-jingle-and-mingle
   Digital-stationery aesthetic: ivory paper, evergreen double frame, a
   hand-drawn wreath emblem, gold accents and serif voice — the card reads
   like something mailed and opened by the fire.
   ────────────────────────────────────────────────────────────────────────
   Design tokens — edit the palette here to re-skin the whole card.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --ivory:      #F6EEDC;   /* page background */
  --ivory-2:    #EFE3C9;   /* deeper ivory */
  --card-bg:    #FFFCF3;   /* card surface */
  --evergreen:  #1E4D3B;   /* primary green */
  --evergreen-2:#15382B;   /* deeper green */
  --pine:       #2E6B4F;   /* leaves */
  --cranberry:  #B23A2E;   /* primary red */
  --cranberry-d:#93281F;   /* pressed red */
  --gold:       #D9A441;   /* gold */
  --gold-soft:  #EBCB8A;
  --ink:        #232A26;   /* near-black */
  --ink-soft:   #626E66;   /* muted */
  --line:       rgba(35, 42, 38, .18);
  --error:      #B3261E;

  /* type */
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* geometry */
  --radius: 14px;
  --shadow-soft: 0 12px 30px rgba(35, 42, 38, .18);
  --shadow-hard: 5px 5px 0 rgba(35, 42, 38, .22);
}

/* ── reset & base ─────────────────────────────────────────────────────── */

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

html { height: 100%; }

body {
  margin: 0;
  height: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ivory);
  background-image: radial-gradient(rgba(30, 77, 59, .10) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* JS-enabled app shell: a single-viewport (100dvh) layout where only the
   active panel scrolls internally. Without JS everything stacks and the
   page scrolls normally (progressive enhancement). */
.js body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.js .shell-head { flex: 0 0 auto; }
.js .shell-view { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; }
.js .panel { display: none; }
.js .panel.is-active { display: block; }
.js .panel[hidden] { display: none; }

img { max-width: 100%; display: block; }

/* ── accessibility helpers ────────────────────────────────────────────── */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--evergreen);
  color: var(--ivory);
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── shell header ─────────────────────────────────────────────────────── */

.shell-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--card-bg);
  border-bottom: 2px solid var(--gold);
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--evergreen-2);
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--evergreen);
  color: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.shell-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shell-nav::-webkit-scrollbar { display: none; }

.nav-link {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border: 2px solid transparent;
  border-radius: 999px;
}
.nav-link:hover { color: var(--cranberry); }
.nav-link.is-active {
  background: var(--evergreen);
  color: var(--ivory);
  border-color: var(--evergreen);
}
.nav-link.nav-hidden { display: none; }

/* ── panels ───────────────────────────────────────────────────────────── */

.panel { padding: 28px 16px; }

/* the cover panel anchors its .snow-dots layer (also correct in the no-JS
   stacked layout, where .shell-view has no positioning) */
.panel[data-panel="cover"] { position: relative; }

.js .panel {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
.js .panel:focus { outline: none; }

.panel-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.panel-inner-card { max-width: 620px; }

/* faint drifting snow dots behind the card cover */
.snow-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, .7) 1.5px, transparent 2px),
    radial-gradient(rgba(217, 164, 65, .5) 1px, transparent 1.5px);
  background-size: 120px 120px, 90px 90px;
  background-position: 0 0, 40px 60px;
}

/* ── section headings ─────────────────────────────────────────────────── */

.section-head { margin-bottom: 18px; }

.kicker {
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cranberry);
}
.kicker::before { content: "✦ "; color: var(--gold); }

.section-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--evergreen-2);
}

.section-desc { margin: 0; color: var(--ink-soft); font-size: 16px; }

.sub-title {
  margin: 32px 0 14px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--evergreen-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-title::after {
  content: "";
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 16px, transparent 16px 26px);
}

/* snowflake divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 15px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ── Cover / the card ─────────────────────────────────────────────────── */

.card-frame {
  position: relative;
  background: var(--card-bg);
  border: 3px solid var(--evergreen);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), var(--shadow-hard);
  padding: clamp(28px, 6vw, 52px) clamp(22px, 6vw, 56px);
  text-align: center;
}

.wreath {
  display: flex;
  justify-content: center;
  margin: -6px 0 6px;
}
.wreath svg { display: block; }

.guest-greeting {
  margin: 0 0 2px;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cranberry);
}
.private-note {
  margin: 0 0 12px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
}

.invite-line {
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 10vw, 76px);
  line-height: 1.02;
  color: var(--evergreen-2);
  overflow-wrap: break-word;
}
.amp { color: var(--gold); font-style: italic; }
.title-accent { font-style: italic; color: var(--cranberry); }

.card-sub {
  margin: 16px 0 0;
  font-size: clamp(16px, 2.6vw, 18.5px);
  font-weight: 600;
  font-style: italic;
  color: var(--ink-soft);
}

.card-frame .divider { margin: 22px 0; }

.when-line {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 700;
  color: var(--evergreen-2);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.when-line .event-time::before {
  content: "·";
  margin-right: 8px;
  color: var(--gold);
  font-weight: 900;
}

.where-line { margin: 0 0 16px; }
.where-line .venue-name {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.reply-line {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink-soft);
}
.rsvp-deadline {
  font-weight: 800;
  color: var(--cranberry);
  white-space: nowrap;
}

.card-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 3px solid var(--evergreen);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(35, 42, 38, .25);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(35, 42, 38, .25); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(35, 42, 38, .25); }

.btn-primary { background: var(--cranberry); color: var(--ivory); border-color: var(--cranberry-d); }
.btn-primary:hover { background: var(--cranberry-d); }

.btn-ghost { background: transparent; color: var(--evergreen); }
.btn-ghost:hover { background: rgba(30, 77, 59, .08); }

/* ── feature cards (photo highlights) ─────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 20px;
}

.feature-card {
  margin: 0;
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(35, 42, 38, .22); }

.feature-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--evergreen-2);
  overflow: hidden;
  border-bottom: 2px solid var(--evergreen);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* graceful placeholder when a photo is missing/not yet uploaded */
.feature-media.media-missing,
.snap-media.media-missing,
.free-media.media-missing,
.flyer-media.media-missing,
.video-media.media-missing {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--evergreen-2) 0 14px, #174F39 14px 28px);
}
.flyer-media.media-missing { min-height: 220px; }
.feature-media.media-missing::after,
.snap-media.media-missing::after,
.free-media.media-missing::after,
.flyer-media.media-missing::after,
.video-media.media-missing::after {
  content: "❄";
  font-size: 44px;
  color: var(--gold);
  opacity: .85;
}
.feature-media .img-missing,
.snap-media .img-missing,
.free-media .img-missing,
.flyer-media .img-missing,
.video-media .img-missing { display: none; }

.feature-card figcaption { padding: 14px 16px 16px; }

.feature-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  background: var(--gold-soft);
  color: var(--evergreen-2);
  border: 2px solid var(--evergreen);
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.feature-name { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; color: var(--evergreen-2); }
.feature-desc { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ── "Party snaps" photo gallery (optional — delete .snaps-block to hide) ─ */

.snaps-intro {
  margin: -6px 0 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.snaps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.snap-card {
  margin: 0;
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 2px 2px 0 rgba(35, 42, 38, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.snap-card:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(35, 42, 38, .2); }

.snap-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--evergreen-2);
  overflow: hidden;
  border-bottom: 2px solid var(--evergreen);
}
.snap-media img { width: 100%; height: 100%; object-fit: cover; }

.snap-card figcaption { padding: 10px 12px 12px; }
.snap-name { margin: 0; font-family: var(--serif); font-size: 15.5px; color: var(--evergreen-2); }

/* ── clickable media links (lightbox triggers) ────────────────────────── */

.media-link {
  display: block;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}

.media-hint {
  position: absolute;
  left: 10px; bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(21, 56, 43, .88);
  color: var(--ivory);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.media-link:hover .media-hint,
.media-link:focus-visible .media-hint { opacity: 1; transform: none; }

/* on touch there is no hover — keep the hint visible so the zoom affordance stays obvious */
@media (hover: none) {
  .media-hint { opacity: 1; transform: none; }
}

/* ── optional event flyer / banner (delete .flyer-block to hide) ──────── */

.flyer-block { margin-top: 26px; }

.flyer-link {
  display: block;
  margin-inline: auto;
  max-width: 440px;
  position: relative;
  background: var(--card-bg);
  border: 3px solid var(--evergreen);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--shadow-hard);
  text-decoration: none;
  cursor: zoom-in;
}

.flyer-media { display: block; }
.flyer-media img { width: 100%; height: auto; display: block; }

.flyer-note {
  margin: 12px auto 0;
  max-width: 460px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ── optional highlight video (delete .video-block to hide) ───────────── */

.video-block { margin-top: 32px; }

.video-intro { margin: -6px 0 16px; font-size: 14.5px; color: var(--ink-soft); }

.video-card {
  position: relative;
  display: block;
  max-width: 640px;
  margin-inline: auto;
  background: var(--evergreen-2);
  border: 3px solid var(--evergreen);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--shadow-hard);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(35, 42, 38, .22); }

.video-media { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--evergreen-2); }
.video-media img { width: 100%; height: 100%; object-fit: cover; }

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(21, 56, 43, .22);
}
.video-play-ring {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--cranberry);
  border: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  transition: transform .18s ease;
}
.video-play-ring::after {
  content: "";
  width: 0; height: 0;
  margin-left: 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid var(--ivory);
}
.video-card:hover .video-play-ring { transform: scale(1.08); }

.video-tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(21, 56, 43, .88);
  color: var(--ivory);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-note { margin: 12px auto 0; max-width: 560px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.video-note code { background: var(--card-bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12px; }

/* ── optional free page (delete .panel-free to hide; the render engine
       removes it when the "Free Page" section has no blocks) ─────────── */

.free-blocks {
  display: grid;
  gap: 26px;
  margin-top: 4px;
}

.free-block {
  margin: 0;
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 4vw, 30px);
  text-align: center;
}

.free-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(19px, 3.4vw, 23px);
  line-height: 1.2;
  color: var(--evergreen-2);
  overflow-wrap: break-word;
}

/* the photo wrapper collapses when the engine leaves it empty (no photo) */
.free-media {
  display: block;
  position: relative;
  max-width: 480px;
  margin: 0 auto 16px;
  border: 3px solid var(--evergreen);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  cursor: zoom-in;
}
.free-media:empty,
.free-media.media-missing { display: none; }
.free-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.free-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  white-space: pre-line;
  text-align: left;
  max-width: 60ch;
  margin-inline: auto;
}

/* ── powered-by brand line (full-width footer div, exact class
       .powered-by) — the platform swaps the "Kundangi" token inside
       .link-footer at render. Static platform HTML; never register
       this as a morph. Sits full-width between the panels and the
       footer brand bar; a plain closing bar in the no-JS stacked
       document. ── */

.powered-by {
  width: 100%;
  text-align: center;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--card-bg);
}
.js .powered-by { flex: 0 0 auto; }
.powered-by .link-footer {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: .04em;
  font-size: 1.3em;
  color: var(--evergreen);
}

/* ── shell footer (brand placeholder) ─────────────────────────────────── */

.shell-foot {
  flex: 0 0 auto;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--card-bg);
  border-top: 2px solid var(--gold);
  text-align: center;
}
.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── lightbox: photo & video viewer with zoom ─────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: rgba(18, 25, 21, .94);
}
.lightbox.is-open { display: flex; }

.lb-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ivory);
}
.lb-caption {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.lb-count {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(246, 238, 220, .65);
}
.lb-btn {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--ivory);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--sans);
}
.lb-btn:hover { background: rgba(217, 164, 65, .18); }

/* CSS `display` rules above would override the `hidden` attribute —
   restore it so toggling works for every lightbox part. */
.lb-btn[hidden],
.lb-tools[hidden],
.lb-img[hidden],
.lb-video[hidden] { display: none !important; }

.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}

.lb-img {
  position: absolute;
  left: 50%; top: 50%;
  max-width: 94%;
  max-height: 94%;
  width: auto; height: auto;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.lb-img.is-dragging { cursor: grabbing; }

.lb-video {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lb-video iframe,
.lb-video video {
  width: 100%;
  max-width: 920px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lb-video-empty {
  color: rgba(246, 238, 220, .75);
  font-size: 15px;
  text-align: center;
  max-width: 44ch;
  line-height: 1.6;
}

.lb-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

@media (max-width: 520px) {
  .lb-top { flex-wrap: wrap; }
  .lb-count { order: 2; margin-left: 0; }
}

/* ── mobile prev/next panel arrows ─────────────────────────────────────
   The pill nav scrolls horizontally on small screens; these floating
   buttons give a thumb-friendly way to flip between panels. Desktop
   keeps the text nav only. */

.panel-arrows {
  position: fixed;
  left: 50%;
  bottom: calc(46px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  display: none;
  gap: 12px;
}
@media (max-width: 640px) {
  .panel-arrows { display: flex; }
}

.panel-arrow {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--evergreen);
  color: var(--ivory);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(35, 42, 38, .25);
}
.panel-arrow:hover { background: var(--pine); }
.panel-arrow:disabled { opacity: .35; cursor: default; }

/* ── small screens: trim the header so navigation stays easy to use ───── */

@media (max-width: 640px) {
  .shell-head { gap: 8px; padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .brand-name { display: none; }
  .nav-link { padding: 8px 10px; font-size: 12px; letter-spacing: .06em; }
}

/* ── ornament bullet list ─────────────────────────────────────────────── */

.ornament-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px 18px;
}

.ornament-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(35, 42, 38, .18);
  font-weight: 700;
  font-size: 14.5px;
}

/* tiny hanging-ornament bullet */
.ornament-dot {
  flex: 0 0 auto;
  position: relative;
  margin-top: 6px;
  width: 15px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 35% 30%, #E96A50, var(--cranberry) 55%, #7E2118 100%);
  border: 2px solid var(--gold);
}
.ornament-dot::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 6px; height: 5px;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: 2px 2px 1px 1px;
}
.ornament-item:nth-child(3n+2) .ornament-dot { background: radial-gradient(circle at 35% 30%, #7FC39A, var(--pine) 55%, #1D5338 100%); }
.ornament-item:nth-child(3n)   .ornament-dot { background: radial-gradient(circle at 35% 30%, #FFE9AE, var(--gold) 55%, #C08A2E 100%); }

.ornament-text { line-height: 1.42; }

/* ── note card ────────────────────────────────────────────────────────── */

.note-card {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--evergreen);
  color: var(--ivory);
  border: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow-hard);
}
.note-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.note-text { margin: 0; font-size: 14.5px; }

/* ── info: events, venue, organizers ──────────────────────────────────── */

.event-list { display: grid; gap: 16px; }

.event-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 12px;
  box-shadow: var(--shadow-hard);
  padding: 14px 16px;
}

.event-badge {
  flex: 0 0 auto;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--cranberry);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  text-transform: uppercase;
  line-height: 1;
  color: var(--ivory);
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14);
}
.event-day   { font-size: 12px; letter-spacing: .14em; color: var(--gold-soft); }
.event-date  { font-size: 30px; }
.event-month { font-size: 12px; letter-spacing: .14em; }

.event-detail { min-width: 0; }
.event-title { margin: 0 0 4px; font-family: var(--serif); font-size: 18px; color: var(--evergreen-2); }
.event-time  { margin: 0 0 2px; font-weight: 800; color: var(--cranberry); font-size: 15px; }
.event-note  { margin: 0; color: var(--ink-soft); font-size: 14px; }

.venue-card {
  margin-top: 22px;
  padding: 18px;
  background: var(--card-bg);
  border: 2px dashed var(--evergreen);
  border-radius: 12px;
}
.venue-name { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; color: var(--evergreen-2); }
.venue-address { margin: 0 0 12px; color: var(--ink-soft); font-size: 14.5px; }

.venue-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.venue-tip { padding-left: 24px; position: relative; font-size: 14.5px; }
.venue-tip::before {
  content: "❄";
  position: absolute;
  left: 0;
  color: var(--cranberry);
  font-size: 12px;
  top: 1px;
}

.organizer-list { display: grid; gap: 12px; }

.organizer {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(35, 42, 38, .18);
  padding: 12px 14px;
}
.organizer-avatar {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cranberry);
  color: var(--gold);
  border: 2px solid var(--gold);
  display: inline-grid;
  place-items: center;
  font-size: 17px;
}
.organizer-copy { min-width: 0; }
.organizer-name { margin: 0; font-weight: 900; font-size: 15px; }
.organizer-role { margin: 0; color: var(--ink-soft); font-size: 13.5px; }

/* ── RSVP form (the reply card) ───────────────────────────────────────── */

.rsvp-card {
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow-soft), var(--shadow-hard);
  position: relative;
}

.reply-card-head {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cranberry);
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 18px;
}

.form-group { margin-bottom: 2px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .02em;
  color: var(--evergreen-2);
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--ivory);
  border: 2px solid var(--line);
  border-radius: 9px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(46, 107, 79, .28);
  background: var(--card-bg);
}
.form-control::placeholder { color: var(--ink-soft); opacity: .8; }

textarea.form-control { resize: vertical; min-height: 64px; }

.error {
  display: block;
  min-height: 1.15em;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

/* dashed tear line of a classic reply card */
.tear-line {
  margin: 22px 0 18px;
  border-top: 2px dashed var(--gold);
  position: relative;
}
.tear-line::after {
  content: "❄";
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  padding: 0 8px;
  color: var(--gold);
  font-size: 13px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.loading, .loading-guestbook {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.form-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }

/* injected "thank you" state from the platform's rsvp script */
.thank-you-message {
  text-align: center;
  padding: 26px 12px;
}
.thank-you-message h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; color: var(--evergreen-2); }
.thank-you-message p { margin: 0; color: var(--ink-soft); }
.thank-you-message small { display: block; margin-top: 14px; color: var(--ink-soft); font-size: 12.5px; max-width: 34ch; margin-inline: auto; }

/* ── guestbook (mount point — the platform injects the markup) ────────── */

.guestbook-body { min-height: 40px; }

#guestbookForm { display: grid; gap: 14px; }

#guestbookForm textarea.form-control { min-height: 84px; }

#guestbookForm button[type="submit"] {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 3px solid var(--evergreen);
  background: var(--cranberry);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(35, 42, 38, .25);
}
#guestbookForm button[type="submit"]:hover { background: var(--cranberry-d); }

.guestbook-chapta { margin: 2px 0; }

.guestbook-wrap { margin-top: 26px; display: grid; gap: 12px; }

.guestbook-entry {
  background: var(--card-bg);
  border: 2px solid var(--evergreen);
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(35, 42, 38, .18);
  padding: 13px 15px;
}
.guestbook-entry h5 {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--evergreen-2);
}
.guestbook-entry p { margin: 6px 0 4px; font-size: 14.5px; }
.guestbook-entry small { color: var(--ink-soft); font-size: 12.5px; }

.more-guestbook-wrap { text-align: center; margin-top: 16px; }

#load-more {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 3px solid var(--evergreen);
  background: var(--card-bg);
  color: var(--evergreen-2);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(35, 42, 38, .2);
}
#load-more:hover { background: var(--ivory); }

/* ── reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn, .feature-card, .event-entry, .note-card, .rsvp-card { box-shadow: 2px 2px 0 rgba(35, 42, 38, .22); }
}
html.no-motion .btn, html.no-motion .feature-card,
html.no-motion .event-entry, html.no-motion .note-card,
html.no-motion .rsvp-card { box-shadow: 2px 2px 0 rgba(35, 42, 38, .22); }

/* ── print: show every panel stacked, hide chrome & forms ─────────────── */

@media print {
  body { height: auto; overflow: visible; display: block; background-image: none; }
  .shell-head, .shell-foot, .skip-link, .card-cta, .form-actions, .form-note, .lightbox, .powered-by, .panel-arrows { display: none !important; }
  .shell-view { height: auto; overflow: visible; display: block; }
  .panel { display: block !important; height: auto; overflow: visible; padding: 16px 0; page-break-inside: avoid; }
  .panel[hidden] { display: block !important; }
  .panel-inner { max-width: 100%; }
  #rsvp-form, .guestbook-body, #panel-live, .snow-dots { display: none; }
  .card-frame, .rsvp-card, .note-card, .event-entry { box-shadow: none; }
  .js body { height: auto; overflow: visible; }
}
