/* ==========================================================================
   Safari Baby Shower — extracted & extended theme
   Ported from safari-baby-shower-v5.html; Outfit display + Dancing Script + Nunito.
   ========================================================================== */
:root{
  --sun:        #E8A83E;
  --tangerine:  #DE7A3C;
  --flamingo:   #D95E72;
  --jungle:     #213A31;
  --leaf:       #467C68;
  --lagoon:     #4E9BA3;
  --night:      #23150C;
  --paper:      #F7EFDD;
  --required:   var(--flamingo);

  --display: 'Outfit', system-ui, sans-serif;
  --script: 'Dancing Script', cursive;
  --body: 'Nunito', system-ui, sans-serif;
  --typewriter: 'Special Elite', 'Courier New', Courier, monospace;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  font-family:var(--body);
  color:var(--night);
  background:var(--jungle);
  line-height:1.6;
  min-height:100vh;
  min-height:100dvh;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:999;
  pointer-events:none;
  opacity:.07;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,h2,h3{ font-family:var(--display); font-weight:700; letter-spacing:.01em; }

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

a{ color:inherit; }

.wrap{ width:min(1060px, 92%); margin-inline:auto; }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  background:linear-gradient(180deg, var(--flamingo) 0%, var(--tangerine) 42%, var(--sun) 100%);
  overflow:hidden;
  text-align:center;
  color:#fff;
  padding-top:env(safe-area-inset-top);
}

.hero-inner{
  position:relative;
  z-index:3;
  width:min(1060px, 92%);
  margin-inline:auto;
  padding-top:clamp(3rem,8vw,5.5rem);
  text-align:left;
  max-width:none;
}
.hero-text{ max-width:600px; }

.hero h1{ margin:.25em 0 .15em; text-shadow:none; }
.hero h1 .script{
  display:block;
  font-family:var(--script);
  font-weight:700;
  font-size:clamp(4rem, 12vw, 8.2rem);
  color:var(--night);
  margin:-.22em 0 .15em .35em;
  padding-bottom:.08em;
  line-height:.88;
  transform:rotate(-4deg);
  animation:text-rise-script .9s ease-out .25s both;
}
.hero h1 .loud{
  display:block;
  font-family:var(--display);
  font-weight:800;
  font-size:clamp(2.2rem, 6vw, 4rem);
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#fff;
  text-shadow:0 4px 0 rgba(35,21,12,.28);
  animation:text-rise .8s ease-out .1s both;
}

.hero .date{
  display:inline-block;
  position:relative;
  font-family:var(--typewriter);
  font-weight:400;
  font-size:clamp(.78rem, 2.2vw, 1.05rem);
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#3a2a18;
  background:
    linear-gradient(135deg, rgba(180,120,60,.08), transparent 40%),
    linear-gradient(to bottom, #f6edd8 0%, #efe2c4 55%, #e8d6b0 100%);
  padding:.45em 1.35em .5em;
  margin-top:.55rem;
  border:none;
  border-radius:0;
  box-shadow:
    1px 2px 0 rgba(35,21,12,.12),
    3px 5px 12px rgba(35,21,12,.14),
    inset 0 0 28px rgba(120,80,30,.07);
  /* torn-paper silhouette */
  clip-path: polygon(
    0% 4%, 1.5% 1%, 3.5% 5%, 5.5% 0%, 8% 4%, 10.5% 1%, 13% 5%, 15.5% 0%,
    18% 3%, 21% 0%, 24% 4%, 27% 1%, 30% 5%, 33% 0%, 36% 3%, 39% 1%,
    42% 5%, 45% 0%, 48% 4%, 51% 1%, 54% 5%, 57% 0%, 60% 3%, 63% 1%,
    66% 4%, 69% 0%, 72% 5%, 75% 1%, 78% 4%, 81% 0%, 84% 3%, 87% 1%,
    90% 5%, 93% 0%, 96% 4%, 98.5% 1%, 100% 5%,
    100% 95%, 98% 99%, 95.5% 96%, 93% 100%, 90% 97%, 87% 100%, 84% 96%,
    81% 99%, 78% 95%, 75% 100%, 72% 97%, 69% 100%, 66% 96%, 63% 99%,
    60% 95%, 57% 100%, 54% 97%, 51% 100%, 48% 96%, 45% 99%, 42% 95%,
    39% 100%, 36% 97%, 33% 100%, 30% 96%, 27% 99%, 24% 95%, 21% 100%,
    18% 97%, 15% 100%, 12% 96%, 9% 99%, 6% 95%, 3.5% 100%, 1.5% 97%, 0% 99%
  );
  transform:rotate(-2deg);
  text-shadow:none;
  animation:text-rise-date .8s ease-out .4s both;
}
.hero .date::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.35;
  background-image:
    radial-gradient(ellipse 3px 2px at 12% 28%, rgba(90,60,30,.35), transparent),
    radial-gradient(ellipse 2px 2px at 78% 62%, rgba(90,60,30,.3), transparent),
    radial-gradient(ellipse 2.5px 1.5px at 55% 18%, rgba(90,60,30,.25), transparent),
    radial-gradient(ellipse 2px 2px at 34% 78%, rgba(90,60,30,.28), transparent);
}

.hero .tagline{
  max-width:30em;
  margin:1.1rem 0 0;
  font-size:1.05rem;
  font-weight:600;
  color:rgba(35,21,12,.85);
  animation:text-rise .8s ease-out .55s both;
}

.hero-cta{
  margin-top:1.4rem;
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  animation:text-rise .8s ease-out .7s both;
}

.eyebrow{
  display:inline-block;
  font-family:var(--display);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:clamp(.55rem, 1.55vw, .78rem);
  white-space:nowrap;
  line-height:1.3;
  background:var(--night);
  color:var(--sun);
  padding:.5em 1.15em;
  border-radius:999px;
  transform:rotate(-2deg);
  animation:text-rise-eyebrow .7s ease-out both;
}

.sun{
  position:absolute;
  right:5%;
  bottom:36%;
  width:clamp(160px, 28vw, 320px);
  height:auto;
  filter:drop-shadow(0 0 45px rgba(232,168,62,.5));
  z-index:1;
  animation:sunrise 2.2s ease-out both;
}
.sun #lp-sun{
  transform-origin:100px 100px;
  animation:sun-spin 120s linear infinite;
}

.badge-icon{ width:36px; height:36px; color:var(--night); }
.inline-icon{ width:1em; height:1em; display:inline-block; vertical-align:-0.08em; }
footer .animals{ display:flex; justify-content:center; gap:1.2rem; }
footer .animals .inline-icon{ width:1.5em; height:1.5em; color:var(--sun); }
@keyframes sunrise{
  from{ transform:translateY(45%) rotate(-14deg); opacity:.4; }
  to{ transform:translateY(0) rotate(0); opacity:1; }
}
@keyframes sun-spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
@keyframes text-rise{
  from{ opacity:0; transform:translateY(.55em); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes text-rise-script{
  from{ opacity:0; transform:translateY(.55em) rotate(-4deg); }
  to{ opacity:1; transform:translateY(0) rotate(-4deg); }
}
@keyframes text-rise-date{
  from{ opacity:0; transform:translateY(.45em) rotate(1.5deg); }
  to{ opacity:1; transform:translateY(0) rotate(1.5deg); }
}
@keyframes text-rise-eyebrow{
  from{ opacity:0; transform:translateY(.4em) rotate(-2deg); }
  to{ opacity:1; transform:translateY(0) rotate(-2deg); }
}

.horizon{ position:relative; z-index:2; margin-top:clamp(2rem,6vw,4rem); }
.horizon > svg{ width:100%; height:auto; }

.parade{ transform-origin:bottom; }

/* Origami fold-up from the ground, then soft living motion */
.creature{
  transform-box:fill-box;
  transform-origin:center bottom;
  animation:
    fold-up .85s cubic-bezier(.34,1.45,.64,1) both,
    creature-breathe 5.5s ease-in-out infinite;
  animation-delay:.15s, 1.15s;
}
.creature.calf{
  animation-delay:.35s, 1.35s;
  animation-duration:.75s, 4.2s;
}
.creature.giraffe{
  animation-delay:.55s, 1.55s;
  animation-duration:.95s, 6.8s;
}
.creature.lion{
  animation-delay:.7s, 1.7s;
  animation-duration:.8s, 4.8s;
}
.acacia{
  transform-box:fill-box;
  transform-origin:center bottom;
  animation:
    fold-up 1s cubic-bezier(.34,1.45,.64,1) both,
    tree-sway 9s ease-in-out infinite;
  animation-delay:0s, 1.2s;
}
@keyframes fold-up{
  from{
    opacity:0;
    transform:scaleY(.08) translateY(12px);
  }
  72%{
    opacity:1;
    transform:scaleY(1.06) translateY(-3px);
  }
  to{
    opacity:1;
    transform:scaleY(1) translateY(0);
  }
}
@keyframes creature-breathe{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-2.5px); }
}
@keyframes tree-sway{
  0%,100%{ transform:rotate(0deg); }
  50%{ transform:rotate(.6deg); }
}

@media (prefers-reduced-motion: reduce){
  .sun,.parade,.sun #lp-sun,.creature,.acacia,.jeep-body,
  .eyebrow,.hero h1 .loud,.hero h1 .script,.hero .date,.hero .tagline,.hero-cta,
  .script-lead,.leaf-card{
    animation:none !important;
  }
  html{ scroll-behavior:auto; }
}

.grass{ background:var(--jungle); }
.grass svg{ width:100%; height:auto; margin-top:-1px; }

/* ---------- SECTIONS ---------- */
section{ padding:clamp(3rem,7vw,5rem) 0; }

.section-title{
  text-align:center;
  color:#fff;
  font-size:clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom:.4em;
}
.section-title .paw{ color:var(--sun); }
.script-lead{
  font-family:var(--script);
  font-weight:700;
  font-size:1.2em;
  color:var(--sun);
  display:inline-block;
  transform:rotate(-4deg);
  margin-right:.12em;
  animation:script-float 5.5s ease-in-out infinite;
}
@keyframes script-float{
  0%,100%{ transform:rotate(-4deg) translateY(0); }
  50%{ transform:rotate(-3deg) translateY(-2px); }
}
.zig{ display:block; width:150px; height:12px; margin:.5rem auto 0; color:var(--sun); }

.section-sub{
  text-align:center;
  color:rgba(255,255,255,.85);
  max-width:38em;
  margin:0 auto 2.5rem;
  font-weight:600;
}

/* ---------- DETAILS: leaf canopy ---------- */
#details{
  position:relative;
  overflow:hidden;
  padding-bottom:0;
}
#details > .wrap{
  padding-bottom:clamp(1.5rem,4vw,2.5rem);
}
.details-horizon{
  position:relative;
  z-index:1;
  margin-top:clamp(1rem,3vw,2rem);
  line-height:0;
}
.details-horizon > svg{
  width:100%;
  height:auto;
  display:block;
}

.leaf-canopy{
  position:relative;
  padding:0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.leaf-cards{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:clamp(1rem, 3vw, 2rem);
  align-items:end;
}
@media (max-width:820px){
  .leaf-cards{ grid-template-columns:1fr; align-items:center; max-width:360px; margin-inline:auto; gap:1.5rem; }
}

.leaf-card{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:clamp(360px, 48vw, 460px);
  transform:rotate(var(--leaf-tilt, 0deg));
  transition:transform .22s ease;
  animation:leaf-sway 7s ease-in-out infinite;
  animation-delay:var(--sway-delay, 0s);
}
.leaf-card.when{ --leaf-tilt:-9deg; --sway-delay:0s; --card-accent:var(--sun); }
.leaf-card.where{
  --leaf-tilt:7deg;
  --sway-delay:.6s;
  --card-accent:var(--tangerine);
  margin-bottom:clamp(0px, 4vw, 2.5rem);
  perspective:1400px;
}
.leaf-card.rsvp{ --leaf-tilt:-8deg; --sway-delay:1.1s; --card-accent:var(--flamingo); }
.leaf-card:hover{ transform:rotate(calc(var(--leaf-tilt, 0deg) * 0.45)) translateY(-6px); }
.leaf-card.where.is-flipped,
.leaf-card.where.is-flipped:hover{
  animation:none;
  transform:rotate(var(--leaf-tilt, 7deg));
}
@media (prefers-reduced-motion: reduce){
  .leaf-card{ animation:none; }
}
@media (hover:none){
  .leaf-card{ transform:rotate(var(--leaf-tilt, 0deg)); }
  .leaf-card.where.is-flipped{ transform:rotate(var(--leaf-tilt, 7deg)); }
}
@media (max-width:820px){
  .leaf-card.where{ margin-bottom:0; }
  .leaf-card.when{ --leaf-tilt:-7deg; }
  .leaf-card.where{ --leaf-tilt:6deg; }
  .leaf-card.rsvp{ --leaf-tilt:-6deg; }
  .leaf-cards{ max-width:400px; }
}

@keyframes leaf-sway{
  0%,100%{ transform:rotate(var(--leaf-tilt, 0deg)) translateY(0); }
  50%{ transform:rotate(calc(var(--leaf-tilt, 0deg) + 1.6deg)) translateY(-4px); }
}

/* Where leaf flip — front unlock / back venue */
.leaf-card.where .leaf-flip{
  position:relative;
  width:100%;
  min-height:clamp(360px, 48vw, 460px);
  transform-style:preserve-3d;
  transition:transform .85s cubic-bezier(.2,.8,.2,1);
}
.leaf-card.where.is-flipped .leaf-flip{
  transform:rotateY(180deg);
}
.leaf-card.where .leaf-face{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.leaf-card.where .leaf-face-front{ transform:rotateY(0deg); }
.leaf-card.where .leaf-face-back{ transform:rotateY(180deg); }
@media (prefers-reduced-motion: reduce){
  .leaf-card.where .leaf-flip{ transition:none; }
}

/* Locked venue / Where card unlock */
.venue-card{ width:100%; }
.venue-teaser{
  margin:0 0 .55rem;
  font-size:.95rem;
  line-height:1.3;
}
.venue-address{ margin:0 0 .5rem; line-height:1.45; font-weight:700; }
.venue-map{ display:block; }
.venue-unlock-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  justify-content:center;
  margin:0 0 .55rem;
}
.venue-tab{
  appearance:none;
  border:1.5px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.18);
  color:#fff;
  border-radius:999px;
  padding:.28rem .65rem;
  font:inherit;
  font-size:.78rem;
  font-weight:700;
  cursor:pointer;
  min-height:32px;
}
.venue-tab.is-active{
  border-color:var(--tangerine);
  background:rgba(232,140,62,.35);
}
.venue-unlock-panel .field{ margin-bottom:.5rem; text-align:left; }
.venue-unlock-panel .field label{
  font-size:.75rem;
  color:rgba(255,255,255,.9);
  margin-bottom:.15rem;
}
.venue-unlock-panel .field input{
  min-height:36px;
  padding:.4em .55em;
  font-size:.9rem;
  background:rgba(255,253,248,.92);
}
.venue-unlock-panel .btn{
  margin-top:.2rem;
  background:var(--card-accent, var(--tangerine));
  color:var(--night);
}
.venue-unlock-panel .btn:hover{
  box-shadow:0 7px 0 rgba(90,45,15,.35);
}
.venue-unlock-status{ margin:.45rem 0 0; color:rgba(255,255,255,.9); }
.venue-unlock-status.is-error{ color:#ffd4d4; }
.venue-question-label{ font-weight:700; color:#fff; margin:0 0 .4rem; font-size:.9rem; }
.leaf-card.where .leaf-content .hint{ color:rgba(255,255,255,.75); }

.leaf-blade{
  position:absolute;
  inset:-8% -10%;
  width:120%;
  height:116%;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%) scale(1.18) rotate(var(--blade-twist, 0deg));
  filter:drop-shadow(0 14px 22px rgba(0,0,0,.4));
  pointer-events:none;
}
.leaf-card.when .leaf-blade{ --blade-twist:-4deg; }
.leaf-card.where .leaf-blade{ --blade-twist:3deg; }
.leaf-card.rsvp .leaf-blade{ --blade-twist:-3deg; }
.leaf-card.where .leaf-blade-back{ --blade-twist:-3deg; }

.leaf-content{
  position:relative;
  z-index:1;
  text-align:center;
  color:#fff;
  padding:clamp(2.4rem, 5.5vw, 3.2rem) clamp(1.6rem, 4.5vw, 2.4rem) clamp(2.8rem, 6.5vw, 3.6rem);
  max-width:62%;
  text-shadow:0 1px 2px rgba(0,0,0,.35);
}

.leaf-content .badge{
  width:52px; height:46px;
  margin:0 auto .85rem;
  border-radius:0;
  display:grid; place-items:center;
  background:var(--card-accent);
  color:var(--night);
  clip-path:polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  box-shadow:0 3px 0 rgba(0,0,0,.2);
}
.leaf-content .badge .badge-icon{ width:24px; height:24px; }
.leaf-content h3{
  font-size:1.4rem;
  margin-bottom:.55rem;
  color:#fff;
  letter-spacing:.03em;
}
.leaf-content h3::after{
  content:"";
  display:block;
  width:2.4rem;
  height:3px;
  margin:.5rem auto 0;
  background:var(--card-accent, var(--sun));
  clip-path:polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.leaf-content p{ font-weight:700; color:rgba(255,255,255,.95); line-height:1.45; }
.leaf-content small{ display:block; margin-top:.55rem; color:rgba(255,255,255,.78); font-weight:600; }
.leaf-content small a{ color:var(--sun); text-decoration:underline; text-underline-offset:2px; }
.leaf-content .btn{ margin-top:1rem; }

/* keep reduced-motion covers leaf sway */
@media (prefers-reduced-motion: reduce){
  .leaf-card{ animation:none !important; }
}

.btn{
  display:inline-block;
  font-family:var(--display);
  font-weight:600;
  font-size:1.05rem;
  background:var(--flamingo);
  color:#fff;
  text-decoration:none;
  padding:.75em 1.8em;
  border-radius:999px;
  margin-top:.8rem;
  box-shadow:0 5px 0 rgba(35,21,12,.35);
  transition:transform .12s ease, box-shadow .12s ease;
  min-height:44px;
  min-width:44px;
  cursor:pointer;
  border:none;
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 7px 0 rgba(35,21,12,.35); }
.btn:focus-visible{ outline:3px solid var(--sun); outline-offset:3px; }
.btn.gold{ background:var(--tangerine); }
.btn.leaf{ background:var(--leaf); }
.btn.leaf:hover{ box-shadow:0 7px 0 rgba(33,58,49,.4); }
.btn.outline{ background:transparent; color:#fff; box-shadow:none; border:2px solid rgba(255,255,255,.7); }
.btn.small{ font-size:.9rem; padding:.55em 1.3em; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- GIVING / GOFUNDME ---------- */
.giving{
  background: linear-gradient(180deg, #1B0F07 0%, #140A05 42%, #0A0502 100%);
}

.giving-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2.5rem;
  align-items:start;
}
@media (max-width:820px){ .giving-grid{ grid-template-columns:1fr; } }

.giving-copy{ color:#fff; }
.giving-copy h2{ font-size:clamp(1.9rem,4.5vw,2.8rem); color:var(--sun); }
.giving-copy p{
  margin-top:1rem;
  font-family:var(--serif);
  font-weight:400;
  font-size:1.02rem;
  line-height:1.75;
  letter-spacing:.01em;
  color:rgba(255,255,255,.82);
}
.giving-copy .big{ font-size:1.2rem; color:rgba(255,255,255,.95); }
.giving-copy .big a{
  color:var(--sun);
  text-decoration:underline;
  text-underline-offset:.15em;
}
.giving-copy .big a:hover{ color:#fff; }

.gfm-frame{
  position:relative;
  transform:rotate(1.6deg);
  background:var(--paper);
  border-radius:22px;
  padding:1.2rem;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
  border-top:10px solid var(--leaf);
}
@media (max-width:600px){ .gfm-frame{ transform:none; } }

.gfm-side{ display:flex; flex-direction:column; gap:1.1rem; }
.gfm-fallback{
  text-align:center;
  padding:.2rem .4rem 0;
  color:rgba(255,255,255,.82);
  font-family:var(--serif);
  font-weight:400;
  letter-spacing:.01em;
}
.gfm-fallback p{ margin:0 0 .9rem; }
.sticker{
  position:absolute;
  top:-28px; left:-28px;
  width:78px; height:78px;
  border-radius:50%;
  background:var(--flamingo);
  border:4px solid var(--paper);
  display:grid; place-items:center;
  transform:rotate(-12deg);
  color:#fff;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}
.sticker svg{ width:40px; height:40px; }

.consent-box{
  background:rgba(33,58,49,.07);
  border:1.5px dashed rgba(33,58,49,.35);
  border-radius:16px;
  padding:1.2rem;
  text-align:center;
  color:var(--jungle);
}
.consent-box p{ font-weight:700; margin-bottom:.8rem; color:var(--jungle); }
.consent-actions{ display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; }

/* ---------- RSVP SECTION (public landing link) ---------- */
.rsvp-cta{ text-align:center; }

/* ---------- FOOTER ---------- */
footer{
  background:#0A0502;
  color:rgba(255,255,255,.75);
  text-align:center;
  padding:2rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  font-weight:600;
}
footer .animals{ font-size:1.6rem; letter-spacing:.4em; margin-bottom:.6rem; }
footer a{ color:inherit; text-decoration:underline; text-underline-offset:.15em; }
footer a:hover{ color:#fff; }
footer nav{ margin-top:.8rem; display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
footer nav a{ text-decoration:underline; }

#top, #details, #give{
  scroll-margin-top:5.5rem;
}

/* ---------- SITE NAV (burger) ---------- */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.site-nav{
  position:fixed;
  top:max(.85rem, env(safe-area-inset-top));
  right:max(.85rem, env(safe-area-inset-right));
  z-index:1100;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.55rem;
}

.site-nav-toggle{
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:14px;
  background:rgba(35,21,12,.42);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 6px 20px rgba(0,0,0,.22);
  cursor:pointer;
  display:grid;
  place-items:center;
  padding:0;
  color:#fff;
}
.site-nav-toggle:focus-visible{
  outline:3px solid var(--sun);
  outline-offset:3px;
}

.burger-lines{
  display:flex;
  flex-direction:column;
  gap:5px;
  width:20px;
}
.burger-lines span{
  display:block;
  height:2px;
  width:100%;
  background:currentColor;
  border-radius:2px;
  transition:transform .22s ease, opacity .18s ease;
  transform-origin:center;
}
.site-nav.is-open .burger-lines span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}
.site-nav.is-open .burger-lines span:nth-child(2){
  opacity:0;
}
.site-nav.is-open .burger-lines span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}

.site-nav-panel{
  min-width:11.5rem;
  padding:.55rem;
  border-radius:16px;
  background:rgba(35,21,12,.55);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.site-nav-panel[hidden]{ display:none; }
.site-nav-panel a,
.site-nav-panel button{
  display:block;
  width:100%;
  text-align:left;
  font-family:var(--display);
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-decoration:none;
  color:#fff;
  background:transparent;
  border:none;
  border-radius:10px;
  padding:.7em .9em;
  cursor:pointer;
}
.site-nav-panel a:hover,
.site-nav-panel button:hover{
  background:rgba(255,255,255,.12);
  color:var(--sun);
}
.site-nav-panel a:focus-visible,
.site-nav-panel button:focus-visible{
  outline:2px solid var(--sun);
  outline-offset:1px;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner{
  position:fixed;
  top:max(.85rem, env(safe-area-inset-top));
  right:max(.85rem, env(safe-area-inset-right));
  left:auto;
  bottom:auto;
  z-index:1050;
  width:min(300px, calc(100vw - 5.5rem));
  max-width:300px;
  background:rgba(35,21,12,.48);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:#fff;
  padding:.9rem 1rem;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.2);
  box-shadow:0 10px 28px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  gap:.75rem;
  align-items:stretch;
}
body:has(.site-nav) .cookie-banner{
  top:calc(max(.85rem, env(safe-area-inset-top)) + 3.4rem);
  right:max(.85rem, env(safe-area-inset-right));
}
.cookie-banner p{
  font-weight:600;
  font-size:.78rem;
  line-height:1.45;
  margin:0;
  color:rgba(255,255,255,.92);
}
.cookie-banner a{ color:var(--sun); text-decoration:underline; }
.cookie-banner .actions{
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
}
.cookie-banner .actions .btn{
  flex:1 1 auto;
  font-size:.78rem;
  padding:.5em .8em;
  text-align:center;
}
.cookie-banner .actions .btn.outline{
  background:transparent;
  color:#fff;
  border:2px solid rgba(255,255,255,.65);
  box-shadow:none;
}
.cookie-banner[hidden]{ display:none; }

/* ---------- PLAIN CONTENT PAGES (privacy etc) ---------- */
.content-page{ background:var(--paper); min-height:60vh; }
.content-page .wrap{ padding:clamp(2rem,6vw,4rem) 0; color:var(--night); }
.content-page h1{ color:var(--jungle); margin-bottom:1rem; }
.content-page h2{ color:var(--jungle); margin:1.6rem 0 .6rem; font-size:1.4rem; }
.content-page p, .content-page li{ margin-bottom:.8rem; }
.content-page ul{ padding-left:1.4rem; }
.content-page a{ text-decoration:underline; }

/* ==========================================================================
   FORMS (RSVP + Admin) — shared form kit, safari-flavoured
   ========================================================================== */
.form-page{ background:var(--paper); min-height:100vh; }
.form-page .wrap{ padding:clamp(2rem,6vw,3.5rem) 0; }
.form-shell{
  background:#fff;
  border-radius:20px;
  padding:clamp(1.4rem,4vw,2.4rem);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
  max-width:820px;
  margin-inline:auto;
}
.form-shell-wide{ max-width:980px; }
.form-shell h1{ color:var(--jungle); font-size:clamp(1.6rem,4vw,2.2rem); margin-bottom:.3rem; }
.form-shell .lede{ color:#54402c; font-weight:600; margin-bottom:1.6rem; }

fieldset{ border:2px solid #eadfc7; border-radius:16px; padding:1.2rem; margin-bottom:1.4rem; }
legend{ font-family:var(--display); color:var(--jungle); padding:0 .5rem; font-size:1.1rem; }

.field{ margin-bottom:1rem; }
.field label{ display:block; font-weight:700; margin-bottom:.35rem; color:var(--night); }
.field .hint{ font-size:.85rem; color:#7a6a56; margin-top:.25rem; }
label .hint, legend .hint, .member-name-hint{ font-weight:500; color:#7a6a56; }
.member-name-hint{ font-size:.85rem; margin:.15rem 0 .8rem; }

/* Required-field asterisk — flamingo accent from the safari palette */
.req,
.required-mark{
  color:var(--required);
  font-weight:800;
  margin-left:.12em;
  font-style:normal;
  speak:never;
}
.req[hidden]{ display:none !important; }
.leaf-card.where .req,
.leaf-card.where .required-mark{
  color:var(--sun);
}
/* Auto-mark labels for native HTML required controls (when no explicit .req yet) */
.field:has(input[required], select[required], textarea[required]):not(:has(.req)) > label::after,
.field:has(input[required], select[required], textarea[required]):not(:has(.req)) > legend::after{
  content:"\00a0*";
  color:var(--required);
  font-weight:800;
}
.login-card .field:has(input[required]):not(:has(.req)) > label::after{
  content:"\00a0*";
  color:var(--required);
  font-weight:800;
}

.name-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:.8rem 1rem;
}
.name-grid .field{ margin-bottom:0; }
.date-check-row{ margin-top:.2rem; }
.date-check-row label.is-disabled,
.radio-row label.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  color:#8a7a66;
}
.date-check-row label.is-disabled input{
  cursor:not-allowed;
}
.member-dates-hint{ margin:.2rem 0 .45rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"],
select, textarea{
  width:100%;
  padding:.7em .9em;
  border-radius:10px;
  border:2px solid #e2d6bb;
  font-family:inherit;
  font-size:1rem;
  background:#fffdf8;
  min-height:44px;
}
textarea{ min-height:88px; resize:vertical; }
input:focus, select:focus, textarea:focus{ outline:3px solid var(--lagoon); outline-offset:1px; border-color:var(--lagoon); }

.radio-row, .checkbox-row{ display:flex; gap:1.4rem; flex-wrap:wrap; align-items:center; }
.radio-row label, .checkbox-row label{ display:flex; align-items:center; gap:.4rem; font-weight:600; }
.checkbox-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:.5rem .8rem; }
.checkbox-grid label{ display:flex; align-items:center; gap:.5rem; font-weight:600; font-size:.95rem; }
input[type="checkbox"], input[type="radio"]{ width:20px; height:20px; flex:0 0 auto; }

.member-card{
  border:2px solid #eadfc7;
  border-radius:16px;
  padding:1rem 1.1rem;
  margin-bottom:1rem;
  background:#fffdf8;
  position:relative;
}
.member-card .member-head{ display:flex; justify-content:space-between; align-items:center; gap:.6rem; margin-bottom:.6rem; flex-wrap:wrap; }
.member-card .tag{
  display:inline-block; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em;
  background:var(--leaf); color:#fff; padding:.2em .7em; border-radius:999px; font-weight:800;
}
.member-card .tag.child{ background:var(--tangerine); }
.remove-member{ background:none; border:none; color:var(--flamingo); font-weight:800; cursor:pointer; font-size:.9rem; min-height:44px; }

.add-member-row{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.6rem; }

.alert{ border-radius:12px; padding:.9rem 1.1rem; margin-bottom:1.2rem; font-weight:700; }
.alert.success{ background:#e3f3e6; color:#1e5c2c; border:2px solid #b7e0c1; }
.alert.error{ background:#fbe4e4; color:#7c1d1d; border:2px solid #f3b8b8; }
.alert.info{ background:#eaf3f6; color:#1c4d59; border:2px solid #bfe0e8; }

table.data-table{ width:100%; border-collapse:collapse; font-size:.92rem; }
table.data-table th, table.data-table td{ text-align:left; padding:.6em .7em; border-bottom:1px solid #eee; }
table.data-table th{ background:#f4ede0; color:var(--night); font-family:var(--display); font-weight:600; }
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:12px; border:1px solid #eee; }

/* ==========================================================================
   ADMIN CHROME — safari green
   ========================================================================== */
.admin-body{
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(70,124,104,.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(78,155,163,.08), transparent 50%),
    #eef4f1;
  min-height:100vh;
  color:var(--jungle);
}
.admin-body::after{ opacity:.04; }
.admin-shell{ display:flex; min-height:100vh; }
.admin-nav{
  background:linear-gradient(180deg, #1a3229 0%, var(--jungle) 55%, #182e27 100%);
  color:#fff;
  width:250px;
  flex:0 0 250px;
  padding:1.35rem 1rem 1.5rem;
  display:flex;
  flex-direction:column;
  gap:.15rem;
  box-shadow:4px 0 24px rgba(33,58,49,.18);
}
.admin-nav .brand{
  font-family:var(--display);
  color:#fff;
  font-size:1.15rem;
  font-weight:800;
  margin:0 0 .85rem;
  padding:.55em .7em;
  display:flex;
  align-items:center;
  gap:.55rem;
  text-decoration:none;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.admin-nav .brand:hover{ background:rgba(255,255,255,.1); color:#fff; }
.admin-nav .brand-icon{ color:var(--sun); width:1.35rem; height:1.35rem; }
.admin-nav .nav-section{
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(232,168,62,.75);
  margin:.85rem 0 .35rem .7em;
}
.admin-nav a{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-wrap:wrap;
  padding:.65em .75em;
  border-radius:12px;
  color:rgba(255,255,255,.88);
  text-decoration:none;
  font-weight:700;
  font-size:.95rem;
  min-height:44px;
  transition:background .15s ease, color .15s ease;
}
.admin-nav a:hover{
  background:rgba(70,124,104,.45);
  color:#fff;
}
.admin-nav a.active{
  background:var(--leaf);
  color:#fff;
  box-shadow:0 2px 0 rgba(0,0,0,.2);
}
.admin-nav .nav-icon{
  width:1.2rem;
  height:1.2rem;
  flex:0 0 auto;
  opacity:.92;
}
.admin-nav a.active .nav-icon{ opacity:1; }
.admin-nav .nav-logout{ margin-top:auto; }
.admin-nav .nav-email{
  flex:1 1 100%;
  margin-left:1.85rem;
  font-size:.72rem;
  font-weight:600;
  color:rgba(255,255,255,.55);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-main{ flex:1; min-width:0; padding:clamp(1rem,3vw,2.4rem); }
.admin-topbar{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:1.4rem; flex-wrap:wrap; gap:.6rem; }
.admin-topbar h1{ color:var(--jungle); font-size:1.6rem; }
.admin-lede{
  flex:1 1 100%;
  margin:-.55rem 0 0;
  color:#4a6358;
  font-weight:600;
  font-size:.98rem;
}
.admin-body .btn{ background:var(--leaf); }
.admin-body .btn:hover{ box-shadow:0 7px 0 rgba(33,58,49,.35); }
.admin-body .btn.gold{ background:var(--tangerine); }

.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1rem; margin-bottom:1.6rem; }
.stat-card{
  background:#fff;
  border-radius:16px;
  padding:1.15rem 1.2rem;
  box-shadow:0 4px 16px rgba(33,58,49,.08);
  border:1px solid rgba(70,124,104,.12);
  border-bottom:6px solid var(--leaf);
  display:flex;
  flex-direction:column;
  gap:.15rem;
}
.stat-card .stat-icon{
  width:1.35rem; height:1.35rem;
  color:var(--leaf);
  margin-bottom:.35rem;
}
.stat-card .num{ font-family:var(--display); font-size:2rem; color:var(--jungle); line-height:1.1; }
.stat-card .lbl{ font-weight:700; color:#4a6358; font-size:.85rem; text-transform:uppercase; letter-spacing:.04em; }

.panel{
  background:#fff;
  border-radius:16px;
  padding:1.3rem 1.4rem;
  margin-bottom:1.4rem;
  box-shadow:0 4px 16px rgba(33,58,49,.06);
  border:1px solid rgba(70,124,104,.1);
}
.admin-rsvp-summary{ margin:.4rem 0 0; }
.admin-rsvp-summary .status-yes{ color:#1e5c2c; }
.admin-rsvp-summary .status-no{ color:#7c1d1d; }
.attending-row .clear-attending{
  margin:0;
  padding:.35rem .7rem;
  min-height:36px;
  width:auto;
}
.admin-body .rsvp-panels .member-card{
  border:none;
  background:transparent;
  padding:0;
  margin-bottom:0;
  box-shadow:none;
}
.panel h2{
  color:var(--jungle);
  font-size:1.2rem;
  margin-bottom:1rem;
  display:flex;
  align-items:center;
  gap:.55rem;
}
.panel h2 .panel-icon{
  width:1.25rem; height:1.25rem;
  color:var(--leaf);
  flex:0 0 auto;
}

.board-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.board-item{
  display:flex; justify-content:space-between; align-items:center;
  padding:.65em .75em;
  border-radius:10px;
  background:#f4f9f6;
  font-weight:700;
  gap:.5rem;
}
.board-item .count{
  color:#fff;
  background:var(--leaf);
  min-width:2rem;
  text-align:center;
  padding:.15em .55em;
  border-radius:999px;
  font-size:.9rem;
}

.admin-body table.data-table th{ background:#e8f1ec; color:var(--jungle); }
.admin-body .table-scroll{ border-color:rgba(70,124,104,.15); }
.admin-body .hint{ color:#4a6358; }

.admin-list{ display:flex; flex-direction:column; gap:.55rem; margin-bottom:1.2rem; }
.admin-list-row{
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  padding:.75rem .9rem; border-radius:12px; background:#f4f9f6;
  border:1px solid rgba(70,124,104,.12);
}
.admin-list-row strong{ display:block; color:var(--jungle); }
.admin-list-row .hint{ display:block; margin-top:.15rem; font-size:.82rem; }
.admin-add-row{ display:flex; gap:.6rem; flex-wrap:wrap; align-items:stretch; }
.admin-add-row input{ flex:1 1 220px; margin:0; }
.admin-add-row .btn{ margin-top:0; }

.hamburger{ display:none; }
@media (max-width: 860px){
  .admin-shell{ flex-direction:column; }
  .admin-nav{
    width:100%; flex:none;
    flex-direction:row; flex-wrap:nowrap;
    align-items:center;
    gap:.35rem;
    padding:.75rem .85rem;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    box-shadow:0 4px 18px rgba(33,58,49,.15);
  }
  .admin-nav .brand{ margin:0; white-space:nowrap; flex:0 0 auto; }
  .admin-nav .nav-section{ display:none; }
  .admin-nav a{ white-space:nowrap; flex:0 0 auto; }
  .admin-nav .nav-logout{ margin-top:0; }
  .admin-nav .nav-email{ display:none; }
}

.login-shell{
  min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--jungle); padding:1.5rem;
}
.login-card{ background:#fffdf8; border-radius:20px; padding:2rem; max-width:420px; width:100%; box-shadow:0 20px 50px rgba(0,0,0,.35); text-align:center; }
.login-card h1{ color:var(--jungle); margin-bottom:.3rem; }
.login-card p{ color:#6b5c47; margin-bottom:1.4rem; font-weight:600; }
.oauth-buttons{ display:flex; flex-direction:column; gap:.6rem; margin-bottom:1.2rem; }
.oauth-buttons .btn{ margin-top:0; }
.divider{ display:flex; align-items:center; gap:.7rem; margin:1rem 0; color:#a5967d; font-weight:700; font-size:.85rem; }
.divider::before, .divider::after{ content:""; flex:1; height:1px; background:#e5dbc4; }

.badge-pill{ display:inline-block; padding:.2em .7em; border-radius:999px; font-size:.75rem; font-weight:800; }
.badge-pill.on{ background:#dcf3e1; color:#1e5c2c; }
.badge-pill.off{ background:#f1e6e6; color:#7c1d1d; }

.toolbar{ display:flex; gap:.6rem; flex-wrap:wrap; margin-bottom:1rem; align-items:center; }
.toolbar .spacer{ flex:1; }
.guest-bulk-bar{
  padding:.75rem .9rem;
  margin-bottom:1rem;
  background:#eef5f0;
  border:1px solid rgba(70,124,104,.2);
  border-radius:12px;
}
.guest-bulk-bar .bulk-select-all{
  display:flex; align-items:center; gap:.45rem;
  font-weight:700; color:var(--jungle); margin:0;
}
.guest-bulk-bar #merge-family-btn:disabled{ opacity:.45; cursor:not-allowed; }

.guest-date-filters{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:0 0 .65rem;
}
.guest-date-filter{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  border:2px solid rgba(70,124,104,.22);
  background:#fff;
  color:var(--jungle);
  border-radius:999px;
  padding:.45rem .85rem;
  font:inherit;
  font-weight:700;
  font-size:.88rem;
  cursor:pointer;
  min-height:40px;
}
.guest-date-filter:hover{ border-color:var(--leaf); }
.guest-date-filter.is-active{
  background:#e8f3ec;
  border-color:var(--leaf);
  box-shadow:inset 0 0 0 1px rgba(70,124,104,.15);
}
.guest-date-filter .count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.5rem;
  padding:0 .35rem;
  border-radius:999px;
  background:rgba(70,124,104,.12);
  font-size:.78rem;
  font-weight:800;
}
.guest-date-filter.is-active .count{ background:var(--leaf); color:#fff; }
.guest-filter-status{ margin:0 0 1rem; }
.guest-date-cell{ white-space:nowrap; }
.badge-pill.muted{
  background:#f1ece3;
  color:#8a7b66;
  font-weight:700;
}
.guest-list-table .guest-row[hidden]{ display:none; }

/* ---------- RSVP split: member list + detail ---------- */
.rsvp-family-fieldset{ padding-top:1rem; }
.rsvp-split{
  display:grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap:1rem 1.2rem;
  align-items:start;
}
.rsvp-member-nav{
  background:#f7f1e6;
  border:2px solid #eadfc7;
  border-radius:14px;
  padding:.85rem;
  position:sticky;
  top:1rem;
}
.rsvp-nav-toggle{
  display:none;
  width:100%;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  text-align:left;
  background:#fff;
  border:2px solid #e2d6bb;
  border-radius:12px;
  padding:.7rem .85rem;
  cursor:pointer;
  min-height:48px;
  font:inherit;
  color:var(--night);
}
.rsvp-nav-toggle-label{ display:flex; flex-direction:column; gap:.1rem; min-width:0; }
.rsvp-nav-toggle-label .hint{ font-size:.75rem; }
.rsvp-nav-toggle-label strong{
  font-size:1rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rsvp-nav-toggle-chevron{
  width:.65rem; height:.65rem;
  border-right:2px solid var(--jungle);
  border-bottom:2px solid var(--jungle);
  transform:rotate(45deg);
  transition:transform .2s ease;
  flex:0 0 auto;
  margin-top:-.2rem;
}
.rsvp-member-nav.is-open .rsvp-nav-toggle-chevron{ transform:rotate(-135deg); margin-top:.25rem; }
.rsvp-nav-hint{ margin:0 0 .45rem; font-size:.82rem; }
.rsvp-nav-list{
  list-style:none;
  margin:0 0 .55rem;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:.4rem;
}
.rsvp-nav-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.15rem;
  width:100%;
  text-align:left;
  border:2px solid transparent;
  border-radius:12px;
  background:#fffdf8;
  padding:.65rem .75rem;
  cursor:pointer;
  font:inherit;
  color:var(--night);
  min-height:48px;
}
.rsvp-nav-item:hover{ border-color:#d7c9a8; }
.rsvp-nav-item.is-active{
  border-color:var(--leaf);
  background:#e8f3ec;
  box-shadow:inset 3px 0 0 var(--leaf);
}
.rsvp-nav-name{ font-weight:800; font-size:.95rem; }
.rsvp-nav-meta{ font-size:.75rem; font-weight:700; color:#7a6a56; }
.rsvp-nav-item.is-yes .rsvp-nav-meta{ color:#1e5c2c; }
.rsvp-nav-item.is-no .rsvp-nav-meta{ color:#7c1d1d; }
.rsvp-nav-item.is-unset .rsvp-nav-meta{ color:#9a6b1f; }
.rsvp-member-detail{
  min-width:0;
  border:2px solid #eadfc7;
  border-radius:14px;
  padding:1rem 1.1rem;
  background:#fffdf8;
  min-height:280px;
  scroll-margin-top:1rem;
}
.rsvp-panels .member-panel{
  margin-bottom:0;
  border:none;
  background:transparent;
  padding:0;
  scroll-margin-top:1rem;
}
.rsvp-detail-empty{ margin:1.5rem 0; text-align:center; }
.member-save-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem 1rem;
  margin-top:1.2rem;
  padding-top:1rem;
  border-top:1px solid #eadfc7;
}
.member-save-row .save-member{ margin:0; min-width:9.5rem; }
.member-save-row .save-member:disabled,
.member-save-row .save-member.is-clean{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
  background:#9aa89f;
}
.member-save-row .save-status.is-clean{ color:#1e5c2c; }
.member-save-row .save-status.is-dirty{ color:#9a6b1f; font-weight:700; }
.rsvp-nav-item.is-dirty .rsvp-nav-meta{ color:#9a6b1f; }
.rsvp-nav-item.is-just-added{
  animation: rsvpNavFlash .9s ease;
}
@keyframes rsvpNavFlash{
  0%{ background:var(--sun); }
  100%{ background:#fffdf8; }
}
.rsvp-add-actions{
  display:flex;
  flex-direction:column;
  gap:.45rem;
  margin-top:.75rem;
  padding-top:.75rem;
  border-top:1px solid rgba(70,124,104,.18);
}
.rsvp-add-actions .btn{ width:100%; margin:0; }
.rsvp-finish-hint{ margin:0 0 1rem; }
.form-shell .btn.outline.dark{ display:inline-flex; }

@media (max-width:760px){
  .rsvp-split{
    grid-template-columns:1fr;
  }
  .rsvp-member-nav{
    position:static;
    padding:.65rem;
  }
  .rsvp-nav-toggle{ display:flex; }
  .rsvp-nav-body{ display:none; margin-top:.65rem; }
  .rsvp-member-nav.is-open .rsvp-nav-body{ display:block; }
  .rsvp-member-detail{ min-height:0; }
}

.icon-btn{ background:none; border:none; cursor:pointer; color:var(--jungle); font-weight:800; padding:.3em .5em; min-height:44px; }

/* ---------- RSVP LOOKUP MODAL ---------- */
body.modal-open{ overflow:hidden; }

.rsvp-modal{
  position:fixed;
  inset:0;
  z-index:1100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background:rgba(35,21,12,.55);
  border:none;
  max-width:none;
  max-height:none;
  width:100%;
  height:100%;
  margin:0;
}
.rsvp-modal[hidden]{ display:none; }

.rsvp-modal-panel{
  position:relative;
  width:min(440px, 100%);
  background:#fffdf8;
  border-radius:22px;
  padding:1.8rem 1.5rem 1.5rem;
  box-shadow:0 24px 60px rgba(0,0,0,.4);
  max-height:min(90dvh, 640px);
  overflow:auto;
  animation:rsvp-pop .22s ease-out;
}
@keyframes rsvp-pop{
  from{ opacity:0; transform:translateY(12px) scale(.97); }
  to{ opacity:1; transform:none; }
}
@media (prefers-reduced-motion: reduce){
  .rsvp-modal-panel{ animation:none; }
}

.rsvp-modal-close{
  position:absolute;
  top:.6rem; right:.75rem;
  border:none; background:transparent;
  font-size:1.8rem; line-height:1;
  color:var(--night); cursor:pointer;
  min-width:44px; min-height:44px;
}
.rsvp-modal-panel h2{
  color:var(--jungle);
  font-size:clamp(1.4rem, 4vw, 1.75rem);
  margin-bottom:.35rem;
  padding-right:2rem;
}
.rsvp-modal-lede{
  color:#6b5c47;
  font-weight:600;
  margin-bottom:1.2rem;
  font-size:.98rem;
}
.rsvp-name-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:.8rem;
  margin-bottom:1rem;
}
@media (max-width:560px){
  .rsvp-name-grid{ grid-template-columns:1fr; }
}
.rsvp-modal .field label{ display:block; font-weight:800; font-size:.85rem; margin-bottom:.35rem; color:var(--jungle); }
.rsvp-modal .field input{
  width:100%;
  border:2px solid #e5dbc4;
  border-radius:12px;
  padding:.75rem .9rem;
  font:inherit;
  font-weight:600;
  background:#fff;
  min-height:48px;
}
.rsvp-modal .field input:focus{
  outline:3px solid var(--sun);
  outline-offset:1px;
  border-color:var(--sun);
}
.rsvp-modal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin-top:1rem;
}
.rsvp-modal-actions .btn{ margin:0; }
.btn.outline.dark{
  background:transparent;
  color:var(--jungle);
  border:2px solid var(--jungle);
  box-shadow:none;
}
.btn.outline.dark:hover{ background:rgba(42,92,60,.08); }

.rsvp-lookup-status{
  font-weight:700;
  font-size:.92rem;
  margin:.2rem 0 .6rem;
}
.rsvp-lookup-status.ok{ color:#1e5c2c; }
.rsvp-lookup-status.warn{ color:#8a5a12; }
.rsvp-lookup-status.error{ color:#7c1d1d; }

.rsvp-lookup-results{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  margin-bottom:.4rem;
}
.rsvp-match-btn{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.15rem;
  width:100%;
  text-align:left;
  padding:.85rem 1rem;
  border:2px solid #e5dbc4;
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  font:inherit;
  min-height:48px;
  transition:border-color .15s, background .15s;
}
.rsvp-match-btn:hover,
.rsvp-match-btn:focus-visible{
  border-color:var(--leaf);
  background:#f3faf4;
  outline:none;
}
.rsvp-match-btn .match-family{ font-weight:800; color:var(--jungle); }
.rsvp-match-btn .match-who,
.rsvp-match-btn .match-meta{ font-size:.88rem; color:#6b5c47; font-weight:600; }

.rsvp-not-found p{ font-weight:600; color:#6b5c47; margin-bottom:.8rem; font-size:.95rem; }

.eyebrow-soft{
  display:inline-block;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.75rem;
  color:var(--flamingo);
  margin-bottom:.4rem;
}

button.btn{
  font:inherit;
  cursor:pointer;
  border:none;
}
