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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 18px 72px;
}

@media (min-width: 900px) {
  .page {
    padding: 48px 24px 90px;
  }
}

/* ===== HERO ===== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border-radius: 26px;
  padding: 18px 18px 20px;
  border: 1px solid var(--border-soft);
}

.card--arch {
  border-radius: var(--radius-arch);
}

.hero-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
  background: rgba(0, 0, 0, .04);
}

.hero-names {
  text-align: center;
}

.hero-city {
  margin-top: 6px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .92;
}

.hero-tagline {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-names h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.3rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-names p {
  font-size: .9rem;
  color: var(--text-muted);
}

.hero-photo-main {
  border-radius: var(--radius-arch);
  overflow: hidden;
  min-height: 260px;
  background: rgba(0, 0, 0, .05);
}

.hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-center {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timer-card {
  background: var(--bg-card-light);
  border-radius: var(--radius-arch);
  padding: 22px 22px 20px;
  border: 1px solid var(--border-soft);
  text-align: center;
}

.pill-small {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card-light);
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 4px;
}

.timer-grid {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-end;
}

.timer-unit {
  flex: 1;
}

.timer-value {
  font-family: "Georgia", serif;
  font-size: 1.5rem;
  letter-spacing: .04em;
}

.timer-label {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timer-separator {
  font-size: 1.4rem;
  color: var(--accent-soft);
  padding: 0 6px;
  align-self: center;
}

.date-block {
  margin-top: 12px;
}

.date-main {
  font-family: "Georgia", serif;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.date-sub {
  font-size: .85rem;
  color: var(--text-muted);
}

.center-date-pill {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, .05);
  font-size: .85rem;
  color: var(--text-muted);
}

/* ===== INFO ===== */
.info-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 20px;
}

@media (max-width: 700px) {
  .info-tiles {
    grid-template-columns: 1fr;
  }
}

.info-tile {
  border-radius: var(--radius-arch);
  background: var(--bg-card-light);
  border: 1px solid var(--border-soft);
  padding: 16px 18px 18px;
  text-align: center;
}

.info-label {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info-title {
  font-family: "Georgia", serif;
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-text {
  font-size: .85rem;
  color: var(--text-muted);
}

/* ===== DETAILS ===== */
.details-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  margin: 16px 0 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .details-row {
    grid-template-columns: 1fr;
  }
}

.details-photo {
  border-radius: var(--radius-arch);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--border-soft);
  padding: 1px;
}

.details-photo-empty {
  background: var(--bg-card-light);
  padding: 18px;
  color: var(--text-muted);
}

.side-notes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note {
  border-radius: 22px;
  background: var(--bg-card-light);
  border: 1px solid var(--border-soft);
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
}

.note-icon {
  font-size: 1.05rem;
  color: var(--accent);
  text-align: center;
}

.note-title {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.note-text {
  font-size: .82rem;
  color: var(--text-muted);
  white-space: pre-line;
}

/* ===== TITLES ===== */
.section-kicker {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 6px;
}

.section-title {
  font-family: "Georgia", serif;
  font-size: 1.4rem;
  margin: 16px 0 10px;
}

.section-title--tight {
  margin: 0 0 8px;
}

.section-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ===== BUTTONS ===== */
.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .16);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  font-size: .8rem;
  letter-spacing: .16em;
}

/* ===== DRESSCODE ===== */
.iviDress {
  padding: 0;
  max-width: 980px;
  margin: 0 auto;
}

.iviDressWrap {
  border-radius: var(--radius-arch);
  border: 1px solid rgba(0, 0, 0, .06);
  background: var(--bg-card-light);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .10);
  padding: 18px 18px 16px;
  text-align: center;
}

.iviDressSwatches {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.iviDressDot {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
}

@media (max-width: 520px) {
  .iviDressDot {
    width: 48px;
    height: 48px;
  }
}

/* ===== LOCATION ===== */
#locationWrap {
  padding: 18px 18px 20px;
}

@media (max-width: 520px) {
  #locationWrap {
    padding: 14px 14px 16px;
  }
}

#locationWrap #location.iviLoc {
  margin: 0 !important;
  padding: 0 !important;
}

#locationWrap .iviLocHead {
  margin: 0 0 14px !important;
  text-align: left !important;
}

#locationWrap .iviLocKicker {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#locationWrap .iviLocTitle {
  margin-top: 8px;
  font-family: "Georgia", serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

#locationWrap .iviLocGrid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 860px) {
  #locationWrap .iviLocGrid {
    grid-template-columns: 1fr;
  }
}

#locationWrap .iviLocCard {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .10);
}

#locationWrap .iviLocPhoto img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

@media (max-width: 520px) {
  #locationWrap .iviLocPhoto img {
    height: 210px;
  }
}

#locationWrap .iviLocBody {
  padding: 14px 14px 16px;
  text-align: left;
}

#locationWrap .iviLocBadge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(255, 255, 255, .70);
  color: var(--text-muted);
}

#locationWrap .iviLocName {
  margin: 12px 0 6px;
  font-family: "Georgia", serif;
  font-size: 1.08rem;
  letter-spacing: .04em;
  font-weight: 900;
  color: var(--text-main);
}

#locationWrap .iviLocAddr {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
}

#locationWrap .iviLocNote {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.55;
  white-space: pre-line;
}

#locationWrap .iviLocActions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  #locationWrap .iviLocActions {
    grid-template-columns: 1fr;
  }
}

#locationWrap .iviBtn {
  height: 48px;
  border-radius: 999px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  transition: transform .15s ease, opacity .15s ease;
}

#locationWrap .iviBtn:hover {
  transform: translateY(-1px);
  opacity: .96;
}

#locationWrap .iviBtnPrimary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}

#locationWrap .iviBtnGhost {
  background: rgba(255, 255, 255, .80);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

/* ===== PROGRAM ===== */
.program-wrap {
  margin-top: 18px;
}

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

.program-grid.program-grid--single {
  grid-template-columns: 1fr !important;
}

.program-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-arch);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .08);
  overflow: hidden;
  position: relative;
}

.program-card--list {
  padding: 18px 18px 16px;
  position: relative;
}

.program-card--list::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 86px;
  width: 1px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(0, 0, 0, .08) 8%,
      rgba(0, 0, 0, .08) 92%,
      transparent);
  pointer-events: none;
}

.program-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  position: relative;
  padding: 16px 0;
}

.program-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 98px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, .08),
      rgba(0, 0, 0, .04),
      transparent);
}

.program-time {
  position: relative;
  z-index: 2;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
  font-family: "Georgia", serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--text-main);
}

.program-item>div:last-child {
  position: relative;
  margin-left: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
  padding: 14px 18px 13px;
}

.program-item>div:last-child::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accentRgb), .16);
  z-index: 3;
}

.program-label {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.program-text {
  margin-top: 6px;
  color: var(--text-main);
  opacity: .9;
  font-size: .98rem;
  line-height: 1.55;
}

.program-text--muted {
  color: var(--text-muted);
}

.program-card--side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-sidePhoto {
  border-radius: calc(var(--radius-arch) - 10px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(0, 0, 0, .04);
}

.program-sidePhoto img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .program-sidePhoto img {
    height: 240px;
  }
}

.program-sideText {
  border-radius: calc(var(--radius-arch) - 10px);
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .55);
  padding: 14px 14px 12px;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.65;
  white-space: pre-line;
}

@media (hover:hover) {
  .program-item:hover .program-time {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .10);
  }

  .program-item:hover>div:last-child {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
  }
}

@media (max-width: 640px) {
  .program-card--list {
    padding: 14px 14px 12px;
  }

  .program-card--list::after {
    left: 54px;
    top: 22px;
    bottom: 22px;
  }

  .program-item {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    padding: 14px 0;
  }

  .program-item:not(:last-child)::after {
    left: 66px;
  }

  .program-time {
    min-height: 40px;
    padding: 0 10px;
    font-size: .92rem;
  }

  .program-item>div:last-child {
    margin-left: 10px;
    padding: 12px 14px 11px;
    border-radius: 22px;
  }

  .program-item>div:last-child::before {
    left: -12px;
    top: 22px;
    transform: none;
    width: 9px;
    height: 9px;
  }

  .program-label {
    font-size: .72rem;
    letter-spacing: .18em;
  }

  .program-text {
    font-size: .92rem;
  }
}

/* ===== GALLERY ===== */
.gallery-wrap {
  margin-top: 18px;
}

.gallery-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-arch);
  padding: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .08);
}

.gallery-card .iviGallery {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gallery-card .iviGalleryGrid {
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  gap: 12px !important;
}

.gallery-card .iviGalleryItem {
  grid-column: span 4 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, .08) !important;
  background: rgba(0, 0, 0, .03) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .10) !important;
  display: block !important;
  position: relative !important;
  text-decoration: none !important;
}

.gallery-card .iviGalleryItem img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 860px) {
  .gallery-card .iviGalleryItem {
    grid-column: span 6 !important;
  }
}

@media (max-width: 520px) {
  .gallery-card .iviGalleryItem {
    grid-column: span 12 !important;
  }

  .gallery-card .iviGalleryItem img {
    height: 220px !important;
  }
}

.gallery-card .iviGalleryCaption {
  position: absolute !important;
  left: 10px !important;
  bottom: 10px !important;
  background: rgba(255, 255, 255, .86) !important;
  border: 1px solid rgba(0, 0, 0, .10) !important;
  border-radius: 999px !important;
  padding: 7px 10px !important;
  font-size: 10px !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  font-weight: 900 !important;
  color: rgba(0, 0, 0, .72) !important;
  max-width: calc(100% - 20px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ===== RSVP ===== */
#rsvp.rsvpSection {
  margin-top: 40px;
  scroll-margin-top: 18px;
}

#rsvp.rsvpSection h2 {
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .10em;
}

#rsvp .rose-line-svg {
  width: 160px;
  margin: 10px 0 16px;
  color: rgba(0, 0, 0, .22);
}

#rsvp .rsvpGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

#rsvp .rsvpFormCard {
  background: var(--bg-card);
  border-radius: var(--radius-arch);
  border: 1px solid var(--border-soft);
  padding: 20px 22px 22px;
}

#rsvp .statusBox {
  font-size: .85rem;
  padding: 9px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

#rsvp .statusBox.ok {
  background: rgba(16, 185, 129, .07);
  color: #166534;
  border-color: rgba(16, 185, 129, .35);
}

#rsvp .statusBox.bad {
  background: rgba(239, 68, 68, .07);
  color: #991b1b;
  border-color: rgba(239, 68, 68, .35);
}

#rsvp .rsvpHint {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

#rsvpForm .row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  #rsvpForm .row2 {
    grid-template-columns: 1fr;
  }
}

#rsvpForm .formRow {
  margin-bottom: 10px;
}

#rsvpForm .label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

#rsvpForm .field {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .70);
  padding: 10px 14px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
}

#rsvpForm textarea.field {
  min-height: 90px;
  resize: vertical;
  line-height: 1.4;
}

#rsvpForm .field:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(var(--accentRgb), .25);
  background: #fffaf5;
}

#rsvpForm .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#rsvpForm .chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .60);
  padding: 7px 13px;
  font-size: .85rem;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, transform .1s ease, box-shadow .1s ease;
}

#rsvpForm .chip[data-active="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

#rsvpForm .consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: flex-start;
  font-size: .78rem;
  color: var(--text-muted);
  margin: 10px 0;
}

#rsvpForm .consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

#rsvpForm .btn,
#rsvpForm .btn.btn-full,
#rsvpForm button[type="submit"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .16);
}

#rsvpForm button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent) 86%, #000 14%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

#rsvpForm input.field,
#rsvpForm textarea.field,
#rsvpForm select.field,
#rsvpForm .field {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  caret-color: #111 !important;
}

#rsvpForm .field::placeholder {
  color: rgba(0, 0, 0, .45) !important;
  -webkit-text-fill-color: rgba(0, 0, 0, .45) !important;
}

#rsvpForm input.field:-webkit-autofill,
#rsvpForm textarea.field:-webkit-autofill,
#rsvpForm select.field:-webkit-autofill {
  -webkit-text-fill-color: #111 !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, .85) inset !important;
  transition: background-color 9999s ease-out 0s;
}

#rsvp input[type="text"],
#rsvp input[type="tel"],
#rsvp input[type="email"],
#rsvp textarea {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

#rsvp input[type="text"]::placeholder,
#rsvp input[type="tel"]::placeholder,
#rsvp input[type="email"]::placeholder,
#rsvp textarea::placeholder {
  color: rgba(0, 0, 0, .45) !important;
}

/* ===== STORY ===== */
.story-wrap {
  margin-top: 18px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
}

.story-photo {
  border-radius: var(--radius-arch);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--border-soft);
  padding: 1px;
}

.story-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 860px) {
  .story-photo img {
    height: 280px;
  }
}

.story-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-arch);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .08);
}

.story-text {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.65;
  white-space: pre-line;
}

/* helpers */
.section-spacer {
  margin-top: 18px;
}

.empty-card {
  background: var(--bg-card-light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-arch);
  padding: 16px;
  color: var(--text-muted);
}

.footer-note {
  margin-top: 26px;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}

.iviDressText {
  margin-top: 20px;
}

/* ===== DARK THEME FIXES ===== */
body.is-dark #locationWrap .iviLocCard {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45) !important;
}

body.is-dark #locationWrap .iviLocBadge {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: rgba(255, 255, 255, .75) !important;
}

body.is-dark #locationWrap .iviLocName {
  color: rgba(255, 255, 255, .95) !important;
}

body.is-dark #locationWrap .iviLocAddr,
body.is-dark #locationWrap .iviLocNote {
  color: rgba(255, 255, 255, .72) !important;
}

body.is-dark #locationWrap .iviBtnGhost {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  color: rgba(255, 255, 255, .90) !important;
  box-shadow: none !important;
}

body.is-dark #locationWrap .iviLocPhoto img {
  filter: saturate(1.02) contrast(1.02) brightness(.92);
}

/* ===== PROGRAM DARK MODE ===== */
body.is-dark .program-wrap .section-title {
  color: rgba(255, 248, 240, .96);
}

body.is-dark .program-wrap .section-sub {
  color: rgba(255, 248, 240, .68);
}

body.is-dark .program-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .34);
}

body.is-dark .program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(var(--accentRgb), .12), transparent 60%),
    radial-gradient(280px 160px at 100% 100%, rgba(var(--accentRgb), .08), transparent 60%);
}

body.is-dark .program-card--list::after {
  left: 86px;
  background: linear-gradient(to bottom,
      transparent,
      rgba(255, 255, 255, .12) 8%,
      rgba(255, 255, 255, .12) 92%,
      transparent);
}

body.is-dark .program-item:not(:last-child)::after {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, .10),
      rgba(255, 255, 255, .04),
      transparent);
}

body.is-dark .program-time {
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .08));
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 248, 240, .96);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .26),
    0 0 0 6px rgba(var(--accentRgb), .12);
}

body.is-dark .program-label {
  color: rgba(var(--accentRgb), .78);
}

body.is-dark .program-text {
  color: rgba(255, 248, 240, .88);
}

body.is-dark .program-text--muted {
  color: rgba(255, 248, 240, .60);
}

body.is-dark .program-item>div:last-child {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .20);
}

body.is-dark .program-item>div:last-child::before {
  background: rgb(var(--accentRgb));
  box-shadow: 0 0 0 4px rgba(var(--accentRgb), .16);
}

@media (hover:hover) {
  body.is-dark .program-item:hover .program-time {
    box-shadow:
      0 14px 28px rgba(0, 0, 0, .32),
      0 0 0 8px rgba(var(--accentRgb), .16);
  }

  body.is-dark .program-item:hover>div:last-child {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(var(--accentRgb), .18);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .24);
  }
}

@media (max-width: 640px) {
  body.is-dark .program-card--list::after {
    left: 54px;
  }
}

/* ===== CONTACTS / DARK THEME =====
   Shared contacts.php has its own neutral palette. In dark presets we remap it
   to the Terracotta Arch tokens so the block does not stay grey. */
body.is-dark {
  --contacts-bg: var(--bg-card);
  --contacts-card-bg: var(--bg-card-light);
  --contacts-text: var(--text-main);
  --contacts-muted: var(--text-muted);
  --contacts-accent: var(--accent);
  --contacts-border: var(--border-soft);
}

body.is-dark .page :is(
  #contacts,
  #contactsWrap,
  .contacts,
  .contacts-section,
  .contactsSection,
  .contacts-block,
  .contactsBlock,
  .ivi-contacts,
  .iviContacts
) {
  color: var(--text-main) !important;
  background: var(--bg-card) !important;
  border-color: var(--border-soft) !important;
}

body.is-dark .page :is(
  #contacts,
  #contactsWrap,
  .contacts,
  .contacts-section,
  .contactsSection,
  .contacts-block,
  .contactsBlock,
  .ivi-contacts,
  .iviContacts
) :is(
  .contact-card,
  .contactCard,
  .contacts-card,
  .contactsCard,
  .contact-item,
  .contactItem,
  .contact-person,
  .contactPerson,
  article,
  li
) {
  color: var(--text-main) !important;
  background: var(--bg-card-light) !important;
  border-color: var(--border-soft) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24) !important;
}

body.is-dark .page :is(
  #contacts,
  #contactsWrap,
  .contacts,
  .contacts-section,
  .contactsSection,
  .contacts-block,
  .contactsBlock,
  .ivi-contacts,
  .iviContacts
) :is(h1, h2, h3, h4, strong, .contact-name, .contactName, .contacts-title, .contactsTitle) {
  color: var(--text-main) !important;
}

body.is-dark .page :is(
  #contacts,
  #contactsWrap,
  .contacts,
  .contacts-section,
  .contactsSection,
  .contacts-block,
  .contactsBlock,
  .ivi-contacts,
  .iviContacts
) :is(p, small, .contact-role, .contactRole, .contact-note, .contactNote, .contacts-subtitle, .contactsSubtitle) {
  color: var(--text-muted) !important;
}

body.is-dark .page :is(
  #contacts,
  #contactsWrap,
  .contacts,
  .contacts-section,
  .contactsSection,
  .contacts-block,
  .contactsBlock,
  .ivi-contacts,
  .iviContacts
) a {
  color: var(--text-main) !important;
  background: rgba(var(--accentRgb), .14) !important;
  border-color: rgba(var(--accentRgb), .32) !important;
}

body.is-dark .page :is(
  #contacts,
  #contactsWrap,
  .contacts,
  .contacts-section,
  .contactsSection,
  .contacts-block,
  .contactsBlock,
  .ivi-contacts,
  .iviContacts
) a:hover {
  color: #fffaf5 !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

body.is-dark .page :is(
  #contacts,
  #contactsWrap,
  .contacts,
  .contacts-section,
  .contactsSection,
  .contacts-block,
  .contactsBlock,
  .ivi-contacts,
  .iviContacts
) :is(svg, i) {
  color: var(--accent) !important;
}
