/* ============================================================
   Haley Wedding · style.css
   Palette: dusty blue · sage · gold · cream · warm ivory
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --blue:       #7ba3bf;
  --blue-rich:  #5c7db5;
  --blue-light: #b8d0e0;
  --blue-pale:  #eef4f8;
  --sage:       #8fa88a;
  --sage-light: #c8d8c4;
  --blush:      #dfc5b8;
  --cream:      #faf7f0;
  --warm-white: #fffdf8;
  --ink:        #2a2825;
  --muted:      #5a5450;   /* darkened for legibility */
  --gold:       #b8965a;
  --border:     #ddd6c8;

  --font-script:  'Pinyon Script', 'Great Vibes', cursive;
  --font-display: 'Cormorant Garant', serif;
  --font-body:    'Lato', sans-serif;

  --nav-h: 72px;
  --container: 1080px;
  --radius:    4px;
  --transition: 0.25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
svg { display: block; }

/* ── Typography helpers ─────────────────────────────────────── */
.t-script  { font-family: var(--font-script); font-weight: 400; }
.t-display { font-family: var(--font-display); }
.t-h1      { font-family: var(--font-display); font-style: italic; font-weight: 600;
              font-size: clamp(38px, 5.5vw, 68px); line-height: 1.1; }
.t-h2      { font-family: var(--font-display); font-style: italic; font-weight: 600;
              font-size: clamp(28px, 4vw, 48px); line-height: 1.2; }
.t-h3      { font-family: var(--font-display); font-style: italic; font-weight: 400;
              font-size: clamp(20px, 2.5vw, 28px); line-height: 1.3; }
.t-label   { font-family: var(--font-body); font-weight: 400; font-size: 13px;
              letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2.25rem;
}

.section {
  padding: 6rem 0;
}
.section--sm { padding: 4rem 0; }
.section--lg { padding: 8rem 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2.25rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(42, 40, 37, 0.07);
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--blue-rich);
  white-space: nowrap;
  transition: color var(--transition);
  line-height: 1;
}
.nav-logo:hover { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

.nav-links .nav-rsvp {
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  letter-spacing: 0.12em;
  transition: background var(--transition);
}
.nav-links .nav-rsvp:hover { background: #6991ad; color: #fff; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    url('/static/img/hero-bg.png') center center / cover no-repeat;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 5rem;
}

/* Soft veil so text stays crisp over the image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 240, 0.42);
  z-index: 1;
}

/* Everything inside sits above the veil */
.hero > * { position: relative; z-index: 2; }

.hero-wreath-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
  z-index: 2;
}

.hero-wreath { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(72px, 10vw, 116px);
  color: var(--blue-rich);
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 1px 8px rgba(250,247,240,0.6);
}

.hero-gold-rule {
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blue-rich), transparent);
  margin: 0 auto 1.5rem;
  opacity: 0.5;
}

.hero-date {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--blue-rich);
  margin-bottom: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(250,247,240,0.7);
}

.hero-venue {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--blue-rich);
  margin-bottom: 2.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(250,247,240,0.7);
}

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid rgba(92, 125, 181, 0.25);
  border-radius: 3px;
  padding: 0.75rem 1.75rem;
}
#countdown-days {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 3rem;
  color: var(--blue-rich);
  line-height: 1;
}
.countdown-label {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.hero-welcome {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  text-align: center;
}
.hero-welcome p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: var(--muted);
  animation: bob 2.2s ease-in-out infinite;
  opacity: 0.55;
}
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); }
                 50%        { transform: translateX(-50%) translateY(6px); } }

/* ── Section Navigation Cards (home page) ───────────────────── */
.section-cards {
  padding: 5rem 0 7rem;
  background: var(--warm-white);
}
.section-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}
.section-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.75rem 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 2.5px solid var(--sage-light);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), transform var(--transition),
              border-top-color var(--transition);
}
.section-card:hover {
  box-shadow: 0 6px 28px rgba(42, 40, 37, 0.07);
  transform: translateY(-3px);
  border-top-color: var(--sage);
}
.section-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  opacity: 0.85;
}
.section-card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.section-card-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Page Header (inner pages) ───────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background: var(--blue-pale);
  text-align: center;
}
.page-header-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.page-header-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--muted);
}

/* ── Ornamental dividers ─────────────────────────────────────── */
.sprig-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.sprig-ornament { width: 180px; }

.gold-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem auto;
  max-width: 360px;
}
.gold-rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.gold-rule-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.8;
  flex-shrink: 0;
}

/* ── Story Timeline ──────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage-light) 10%, var(--sage-light) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0 1.5rem;
  margin-bottom: 4rem;
  align-items: start;
}
.timeline-entry:nth-child(odd)  .entry-body { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-entry:nth-child(odd)  .entry-dot  { grid-column: 2; grid-row: 1; }
.timeline-entry:nth-child(odd)  .entry-year { grid-column: 3; grid-row: 1; text-align: left; }
.timeline-entry:nth-child(even) .entry-body { grid-column: 3; grid-row: 1; text-align: left; }
.timeline-entry:nth-child(even) .entry-dot  { grid-column: 2; grid-row: 1; }
.timeline-entry:nth-child(even) .entry-year { grid-column: 1; grid-row: 1; text-align: right; }

.entry-dot {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}
.entry-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 2px solid var(--sage);
  position: relative;
  z-index: 1;
}

.entry-year {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.2;
  padding-top: 0.15rem;
}

.entry-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.entry-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── The Day — schedule ──────────────────────────────────────── */
.venue-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--sage);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  margin-bottom: 3.5rem;
}
.venue-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.venue-card-addr { font-size: 15px; color: var(--muted); margin-bottom: 0.75rem; }
.venue-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--blue);
  border-bottom: 1px solid var(--blue-light);
  transition: color var(--transition), border-color var(--transition);
}
.venue-card-link:hover { color: var(--ink); border-color: var(--border); }

.day-schedule {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.day-schedule::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage-light) 8%, var(--sage-light) 92%, transparent);
}

.schedule-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0 2rem;
  margin-bottom: 2.75rem;
  position: relative;
}
.schedule-time {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.3rem;
  text-align: right;
}
.schedule-dot {
  position: absolute;
  left: 92px;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage-light);
  border: 1.5px solid var(--sage);
  z-index: 1;
}
.schedule-event {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.schedule-desc {
  font-size: 15px;
  color: var(--muted);
}

.dress-code-note {
  max-width: 560px;
  margin: 3rem auto 0;
  text-align: center;
  padding: 1.75rem 2rem;
  background: var(--blue-pale);
  border-radius: var(--radius);
}
.dress-code-note .t-label { margin-bottom: 0.5rem; display: block; }
.dress-code-note p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ── Wedding Party ───────────────────────────────────────────── */
.party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem 3rem;
}
.party-side-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.party-member {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}
.party-member:last-child { border-bottom: none; }
.party-member-ornament {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.15rem;
  opacity: 0.7;
}
.party-member-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.2;
}
.party-member-role {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.1rem;
}

/* ── Travel & Stay ───────────────────────────────────────────── */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.hotel-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.hotel-card:hover {
  box-shadow: 0 6px 24px rgba(42, 40, 37, 0.07);
  transform: translateY(-2px);
}
.hotel-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.hotel-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hotel-badge {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  background: var(--blue-pale);
  color: var(--blue);
}
.hotel-note { font-size: 17px; color: var(--muted); flex-grow: 1; }
.hotel-book {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid var(--blue-light);
  transition: color var(--transition), border-color var(--transition);
  align-self: flex-start;
}
.hotel-book:hover { color: var(--ink); border-color: var(--border); }

.map-embed {
  width: 100%;
  height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.travel-note {
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 1rem;
}
.travel-note strong { color: var(--ink); font-weight: 400; }

/* ── Registry ────────────────────────────────────────────────── */
.registry-center {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0 2rem;
}
.registry-center p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #6a92ae;
  box-shadow: 0 4px 16px rgba(123, 163, 191, 0.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-pale);
}
.btn-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: rgba(184, 150, 90, 0.08);
}
.btn-lg { padding: 1rem 2.75rem; font-size: 15px; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-section {
  max-width: 620px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.75rem;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.12);
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a746e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
               background-repeat: no-repeat;
               background-position: right 1rem center;
               padding-right: 2.5rem; }
.form-textarea { resize: vertical; min-height: 100px; }

.radio-group { display: flex; gap: 1.5rem; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
}
.radio-item input { accent-color: var(--blue); width: 17px; height: 17px; cursor: pointer; }

.attending-details {
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 0.5rem;
}
.attending-details.hidden { display: none; }

.guest-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.guest-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.flash-msg {
  background: rgba(184, 150, 90, 0.12);
  border: 1px solid rgba(184, 150, 90, 0.3);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.rsvp-deadline {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.75rem;
}

/* ── RSVP Thanks ─────────────────────────────────────────────── */
.thanks-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.thanks-inner { max-width: 520px; }
.thanks-inner h1 {
  font-family: var(--font-script);
  font-size: clamp(44px, 7vw, 72px);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.thanks-inner p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ── Password Page ───────────────────────────────────────────── */
.password-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 2rem;
}
.password-inner {
  text-align: center;
  max-width: 440px;
  width: 100%;
  position: relative;
}
.password-wreath-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 380px;
  height: 380px;
  pointer-events: none;
  opacity: 0.6;
}
.password-content { position: relative; z-index: 2; }
.password-names {
  font-family: var(--font-script);
  font-size: clamp(52px, 10vw, 78px);
  color: var(--blue-rich);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.password-invite {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-rich);
  opacity: 0.75;
  margin-bottom: 1.75rem;
}
.password-form {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.password-form .form-input { flex: 1; text-align: center; letter-spacing: 0.06em; }
.password-error {
  font-size: 15px;
  color: #c0735a;
  margin-top: 0.75rem;
  font-style: italic;
}

/* ── Admin Panel ─────────────────────────────────────────────── */
.admin-page {
  min-height: 100vh;
  background: var(--cream);
  font-family: var(--font-body);
}
.admin-header {
  background: var(--ink);
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-header h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  flex: 1;
}
.admin-header a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.admin-header a:hover { color: #fff; }

.admin-body { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.stat-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--sage-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}
.stat-number {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 3rem;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.admin-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.rsvp-table-wrap { overflow-x: auto; }
.rsvp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.rsvp-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--blue-pale);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.rsvp-table td {
  padding: 0.9rem 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rsvp-table tr:last-child td { border-bottom: none; }
.rsvp-table tr:nth-child(even) td { background: rgba(238, 244, 248, 0.4); }
.badge-yes { display: inline-block; padding: 0.2rem 0.6rem; background: rgba(143,168,138,0.2);
             color: #5a8055; border-radius: 2px; font-size: 11px; font-weight: 400; letter-spacing: 0.06em; }
.badge-no  { display: inline-block; padding: 0.2rem 0.6rem; background: rgba(223,197,184,0.3);
             color: #8a5a47; border-radius: 2px; font-size: 11px; font-weight: 400; letter-spacing: 0.06em; }
.meal-list { font-size: 13px; color: var(--muted); }
.meal-list li { margin-bottom: 0.2rem; }

.admin-login-form {
  max-width: 360px;
  margin: 8rem auto;
  text-align: center;
  background: var(--warm-white);
  border: 1px solid var(--border);
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
}
.admin-login-form h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.admin-login-form p { font-size: 15px; color: var(--muted); margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,253,248,0.7);
  text-align: center;
  padding: 3.5rem 2rem;
}
.footer-names {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: rgba(255,253,248,0.9);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.footer-date,
.footer-venue {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.footer-ornament {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
  opacity: 0.35;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .section-cards-grid  { grid-template-columns: 1fr 1fr; }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .party-grid          { grid-template-columns: 1fr; gap: 3rem; }
  .hotel-grid          { grid-template-columns: 1fr; }
  .timeline::before    { left: 24px; }
  .timeline-entry      { grid-template-columns: 24px 1fr; }
  .timeline-entry:nth-child(odd) .entry-body,
  .timeline-entry:nth-child(even) .entry-body {
    grid-column: 2; grid-row: 2; text-align: left;
  }
  .timeline-entry:nth-child(odd) .entry-dot,
  .timeline-entry:nth-child(even) .entry-dot  { grid-column: 1; grid-row: 1; }
  .timeline-entry:nth-child(odd) .entry-year,
  .timeline-entry:nth-child(even) .entry-year  { grid-column: 2; grid-row: 1; text-align: left; }
  .entry-dot { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(250, 247, 240, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0 1.5rem;
    box-shadow: 0 8px 24px rgba(42,40,37,0.1);
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 0.85rem 2.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links .nav-rsvp {
    margin: 0.75rem 2.25rem 0;
    width: calc(100% - 4.5rem);
    text-align: center;
    border-radius: 2px;
  }
  .nav-hamburger { display: flex; }
  .nav-search-btn { margin-left: auto; }
  .site-nav { background: rgba(250,247,240,0.97); }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .section-cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-wreath-wrap { width: min(340px, 88vw); height: min(340px, 88vw); }
  .guest-row { grid-template-columns: 1fr; }
  .password-wreath-wrap { width: 280px; height: 280px; }
  .day-schedule::before { left: 80px; }
  .schedule-entry { grid-template-columns: 80px 1fr; }
}

@media (max-width: 480px) {
  .party-grid   { gap: 2.5rem; }
  .admin-body   { padding: 2rem 1.25rem; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Additional styles for inner pages (appended)
   ============================================================ */

/* ── Container narrow ───────────────────────────────────────── */
.container--narrow { max-width: 720px; }

/* ── Section backgrounds ────────────────────────────────────── */
.section--pale { background: var(--blue-pale); }
.section--xs   { padding: 1.5rem 0; }

/* ── Spacing utilities ──────────────────────────────────────── */
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.text-center { text-align: center; }

/* ── Page header inner ──────────────────────────────────────── */
.page-header-inner { max-width: 640px; margin: 0 auto; padding: 0 2rem; }
.page-header h1.t-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 64px);
  color: var(--ink);
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

/* ── Standalone gold-rule (no children needed) ───────────────── */
.gold-rule {
  position: relative;
  max-width: 220px;
  margin: 1.75rem auto;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.7;
}
/* override the flex-children version if inner elements absent */
.gold-rule:not(:has(.gold-rule-line)) { display: block; }

/* ── Entry dot standalone ────────────────────────────────────── */
.entry-dot::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 2px solid var(--sage);
  position: relative;
  z-index: 1;
  margin: 0 auto;
  margin-top: 0.35rem;
}
.entry-dot--gold::after {
  border-color: var(--gold);
  background: rgba(184,150,90,0.15);
}
.entry-text {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
}
.entry-body--featured {
  background: rgba(184,150,90,0.06);
  border: 1px solid rgba(184,150,90,0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.entry-body--featured .entry-title { color: var(--gold); }

/* ── Schedule dot variants ───────────────────────────────────── */
.schedule-dot--accent {
  background: rgba(184,150,90,0.15);
  border-color: var(--gold);
  width: 12px; height: 12px;
  left: 90px;
}
.schedule-dot--end {
  background: var(--sage-light);
  border-color: var(--sage);
}
/* Schedule event as wrapper */
.schedule-event h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.schedule-event p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Venue grid ──────────────────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 640px) { .venue-grid { grid-template-columns: 1fr; } }

.venue-card-icon { margin-bottom: 1rem; }
.venue-card-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.venue-card-address {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Map embed wrapper ───────────────────────────────────────── */
.map-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(42,40,37,0.08);
}
.map-embed { border: none; width: 100%; height: 340px; display: block; }

/* ── Info panel ──────────────────────────────────────────────── */
.info-panel {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
}
.info-panel--blue {
  background: var(--blue-pale);
  border: 1px solid var(--blue-light);
}
.info-panel--sage {
  background: rgba(143,168,138,0.1);
  border: 1px solid var(--sage-light);
}
.info-panel-icon { flex-shrink: 0; margin-top: 0.15rem; }
.info-panel p { font-size: 17px; color: var(--muted); line-height: 1.75; }

/* ── Tips grid ───────────────────────────────────────────────── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) { .tips-grid { grid-template-columns: 1fr; } }
.tip-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tip-icon { margin-bottom: 0.85rem; }
.tip-card h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.tip-card p { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* ── Wedding party side ──────────────────────────────────────── */
.party-side { max-width: 900px; margin: 0 auto; }
.party-side-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.party-side-ornament { flex-shrink: 0; }
.party-side .party-side-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.party-member-note {
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
  line-height: 1.65;
}
.party-member { flex-direction: column; }
.party-member-ornament { width: 60px; height: 60px; margin-bottom: 0.6rem; opacity: 0.75; }

/* ── Travel grid ─────────────────────────────────────────────── */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) { .travel-grid { grid-template-columns: 1fr; } }
.travel-info-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.travel-card-icon { margin-bottom: 1rem; }
.travel-info-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.travel-info-card p { font-size: 17px; color: var(--muted); line-height: 1.75; }
.travel-list {
  list-style: none;
  padding: 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.9;
}
.travel-list strong { color: var(--ink); font-weight: 400; }
.section-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ── Hotel badge variants ────────────────────────────────────── */
.hotel-badge--recommended {
  background: rgba(143,168,138,0.15);
  color: var(--sage);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.hotel-badge--airbnb {
  background: rgba(184,150,90,0.1);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.hotel-location { font-size: 17px; color: var(--muted); margin-bottom: 0.6rem; }
.hotel-card-top { margin-bottom: 0.5rem; }

/* ── Registry page ───────────────────────────────────────────── */
.registry-wreath {
  display: flex;
  justify-content: center;
  margin: 0 auto 2rem;
}
.registry-message {
  max-width: 480px;
  margin: 0 auto 2.5rem;
}
.registry-message p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.85rem;
}
.registry-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.registry-btn {
  min-width: 200px;
  text-align: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  display: inline-block;
}
.btn-primary.registry-btn { background: var(--blue); color: #fff; }
.btn-primary.registry-btn:hover { background: #6a92ae; }
.btn-outline.registry-btn { color: var(--blue); border: 1px solid var(--blue); }
.btn-outline.registry-btn:hover { background: var(--blue-pale); }
.registry-note {
  max-width: 460px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: var(--blue-pale);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  text-align: left;
}
.registry-note strong { color: var(--ink); font-weight: 400; }
.registry-center { padding-top: 2rem; padding-bottom: 4rem; }

/* ── RSVP form extras ────────────────────────────────────────── */
.form-wrap {
  max-width: 660px;
  margin: 0 auto;
}
.form-row { display: flex; flex-direction: column; gap: 0; }
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) { .form-row--two { grid-template-columns: 1fr; } }
.form-section { margin-bottom: 2rem; }
.form-group--sm .form-select { max-width: 240px; }
.form-hint { font-size: 15px; color: var(--muted); margin-top: 0.4rem; font-style: italic; }
.form-optional { font-size: 10px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-left: 0.4rem; }
.req { color: var(--gold); margin-left: 2px; }
.form-submit { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ── Radio options (custom styled) ──────────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.75rem; }
@media (min-width: 480px) { .radio-group { flex-direction: row; gap: 1.5rem; } }
.radio-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  transition: border-color var(--transition), background var(--transition);
  flex: 1;
}
.radio-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.radio-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-custom {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.radio-option:has(input:checked) .radio-custom {
  border-color: var(--blue);
}
.radio-option:has(input:checked) .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.radio-label { display: flex; flex-direction: column; gap: 1px; }
.radio-main { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.radio-sub { font-size: 14px; color: var(--muted); }

/* ── Attending details panel ─────────────────────────────────── */
.attending-details[hidden] { display: none; }
.meal-rows-wrap { padding: 1.25rem 0; }

/* ── RSVP thanks extras ──────────────────────────────────────── */
.thanks-page { padding-top: calc(var(--nav-h) + 3rem); }
.thanks-wreath {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.thanks-heading {
  font-family: var(--font-script);
  font-size: clamp(42px, 7vw, 70px);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.thanks-message {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 1.5rem 0;
}
.thanks-message strong { color: var(--ink); font-weight: 600; }
.thanks-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.5rem auto;
  max-width: 380px;
  text-align: left;
}
.thanks-detail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 15px;
  color: var(--muted);
}
.thanks-detail svg { flex-shrink: 0; opacity: 0.6; }
.thanks-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 0.5rem;
}
.thanks-sub a { color: var(--blue); border-bottom: 1px solid var(--blue-light); }

/* ── Button size variants ────────────────────────────────────── */
.btn-sm { padding: 0.55rem 1.25rem; font-size: 11px; }

/* ============================================================
   RSVP Guest Search & Party Checkboxes
   ============================================================ */

/* ── Search input wrap ──────────────────────────────────────── */
.rsvp-search-section { margin-bottom: 2.5rem; }

.search-wrap {
  position: relative;
  max-width: 420px;
}
.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: block;
}
.search-input { padding-left: 2.6rem !important; }

/* ── Dropdown ───────────────────────────────────────────────── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(42,40,37,0.12);
  z-index: 100;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover:not(:disabled) { background: var(--blue-pale); }
.search-result-item--done { opacity: 0.55; cursor: not-allowed; }
.result-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.result-party {
  font-size: 13px;
  color: var(--muted);
}
.result-done {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}
.search-not-found {
  margin-top: 0.6rem;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}
.search-not-found a { color: var(--blue); border-bottom: 1px solid var(--blue-light); }

/* ── Party section (checkboxes) ─────────────────────────────── */
.party-section {
  background: var(--blue-pale);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.1rem;
  margin-bottom: 2rem;
}
.party-section-header { margin-bottom: 1rem; }
.party-section-header .t-label { margin-bottom: 0.15rem; }
.party-section-hint { font-size: 17px; color: var(--muted); font-style: italic; }

.member-check-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.member-check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.member-check-row:has(.member-checkbox:checked) {
  border-color: var(--blue);
  background: #fff;
}
.member-check-row:has(.member-checkbox:not(:checked)) {
  opacity: 0.6;
}
.member-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.member-check-box {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.member-check-row:has(.member-checkbox:checked) .member-check-box {
  border-color: var(--blue);
  background: var(--blue);
}
.member-check-row:has(.member-checkbox:checked) .member-check-box::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.member-check-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.not-you-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--font-body);
  display: block;
  margin-top: 0.25rem;
}
.not-you-link:hover { color: var(--ink); }

/* ── Meal section header ────────────────────────────────────── */
.meal-section-header { margin-bottom: 0.75rem; }

/* ── Plus-one slots ─────────────────────────────────────────── */
.member-check-row--plusone {
  border-style: dashed;
  border-color: var(--sage-light);
}
.member-check-row--plusone .member-check-name {
  color: var(--muted);
  font-style: italic;
}
.member-check-row--plusone:has(.member-checkbox:checked) {
  border-color: var(--sage);
  background: rgba(143,168,138,0.06);
}
.plusone-name-input {
  border-style: dashed !important;
  background: var(--cream) !important;
}
.plusone-name-input:focus {
  border-style: solid !important;
}

/* ── Dietary restriction checkboxes ────────────────────────── */
.dietary-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
.dietary-check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-size: 16px;
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.dietary-check-row:has(input:checked) {
  border-color: var(--sage);
  background: rgba(143,168,138,0.08);
}
.dietary-check-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.dietary-check-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}
.dietary-check-row:has(input:checked) .dietary-check-box {
  border-color: var(--sage);
  background: var(--sage);
}
.dietary-check-row:has(input:checked) .dietary-check-box::after {
  content: '';
  position: absolute;
  left: 3px; top: 0px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Map button group ───────────────────────────────────────── */
.map-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ── Nav dropdown ───────────────────────────────────────────── */
.nav-dropdown-wrap {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color var(--transition);
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.nav-active { color: var(--blue-rich); }
.dropdown-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-dropdown-wrap.open .dropdown-chevron,
.nav-dropdown-wrap:hover .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;           /* flush — no gap to fall through */
  left: 50%;
  transform: translateX(-50%);
  min-width: 170px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(42,40,37,0.11);
  padding: 8px 0 0.4rem;  /* top padding replaces the gap visually */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translateX(-50%) translateY(-4px);
  z-index: 300;
}

/* Show on hover (desktop) */
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Show on .open class (mobile tap) */
.nav-dropdown-wrap.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Arrow pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--warm-white);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.nav-dropdown li a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-dropdown li a:hover {
  background: var(--blue-pale);
  color: var(--blue-rich);
}

/* Mobile — dropdown stacks inside hamburger menu */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--blue-pale);
    padding: 0.25rem 0 0.5rem 1rem;
    opacity: 1;
    pointer-events: auto;
    display: none;
  }
  .nav-dropdown-wrap.open .nav-dropdown { display: block; }
  .nav-dropdown::before { display: none; }
  .nav-dropdown li a { font-size: 13px; padding: 0.4rem 0.75rem; }
}

/* ── Search button in nav ───────────────────────────────────── */
.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.4rem;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 0.75rem;
}
.nav-search-btn:hover { color: var(--blue-rich); background: var(--blue-pale); }

/* ── Search modal ───────────────────────────────────────────── */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.search-modal[hidden] { display: none; }

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 40, 37, 0.45);
  backdrop-filter: blur(3px);
}

.search-modal-box {
  position: relative;
  z-index: 1;
  width: min(600px, calc(100vw - 2rem));
  background: var(--warm-white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(42, 40, 37, 0.22);
  overflow: hidden;
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  font-weight: 300;
}
.search-modal-input::placeholder { color: var(--muted); }

.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  flex-shrink: 0;
}
.search-close-btn:hover { color: var(--ink); }

/* ── Search results ─────────────────────────────────────────── */
.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 0.4rem 0;
}

.search-result {
  display: block;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  text-decoration: none;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result:focus { background: var(--blue-pale); outline: none; }

.search-result-page {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-rich);
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.search-result-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.search-result-snippet {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.search-result-snippet mark {
  background: rgba(92, 125, 181, 0.18);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 2px;
  font-style: normal;
}

.search-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 15px;
}

.search-hint {
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.search-hint strong { color: var(--ink); font-weight: 400; }
