/* test5 3.0: the parts that came with the 3.0 code, in the burgundy and nabati colours of this card
   (opening line, date caption, scroll text, special program countdown, moved sections, box colours). */

.opening-quote { margin: 0 auto .7rem; max-width: 26rem; color: var(--rose-deep); font: 400 clamp(17px, 4.6vw, 21px)/2 Miremad, var(--fa); text-align: center; }
.hero-date .date-caption { display: block; margin-bottom: .1rem; color: var(--muted); font-size: 12px; letter-spacing: 0; }
.scroll-cue > .scroll-cue-text { display: block; margin-bottom: .35rem; color: rgba(255, 253, 249, .92); font-size: 11px; text-align: center; white-space: nowrap; text-shadow: 0 1px 8px rgba(40, 30, 25, .55); }

/* Panel: intro after the quiz. The video intro waits behind the quiz until the guest passes it. */
.intro-after-quiz.quiz-active .wedding-intro { display: none !important; }

/* A section moved by the couple keeps its own spacing; the guestbook on its own starts without the forms' top gap. */
.participation#guestbook .participation-forms:first-child { margin-top: 0; }

/* Special program countdown (panel: «نمایش شمارش معکوس»). */
.special-countdown { margin: 14px auto 16px; max-width: 340px; padding: 10px 6px 8px; border-block: 1px solid var(--line); }
.special-countdown-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); direction: ltr; }
.special-countdown-units[hidden] { display: none; }
.special-countdown-units > span { display: block; border-right: 1px solid var(--line); padding: 2px; }
.special-countdown-units > span:last-child { border: 0; }
.special-countdown strong { display: block; color: var(--rose-deep); font-size: 22px; font-weight: 400; line-height: 1.5; font-variant-numeric: tabular-nums; }
.special-countdown small { display: block; color: var(--muted); font-size: 11px; }
.special-countdown-state { margin: 0; color: var(--rose-deep); font-size: 15px; }
.special-countdown.is-done .special-countdown-state { color: var(--muted); font-size: 13px; }

/* Left-to-right languages: the invitation text and forms read from the left. */
html[dir="ltr"] .wedding-form, html[dir="ltr"] .special-rsvp { text-align: left; }
html[dir="ltr"] .program-week-days { direction: ltr; }

/* Invitation text in a plain box like the other sections (panel «کادرها»; the arch frame with the seal is the default). */
#invitationText .message-card.is-simple { width: min(calc(100% - 24px), 660px) !important; min-height: 0 !important; height: auto !important; padding: 42px 24px 38px !important; display: block !important; border-radius: 28px; background: linear-gradient(110deg, #fffbf3, #fdefd7) !important; border: 1px solid #c8ab7180; box-shadow: inset 0 0 0 6px #ffffff88, var(--shadow) !important; }
#invitationText .message-card.is-simple .message-content { width: 100%; max-width: 440px; padding: 0; transform: none; }
#invitationText .message-card.is-simple.is-fitted { height: auto !important; }
#invitationText .message-card.is-simple.is-fitted .message-content { transform: none; }
@media (min-width: 600px) { #invitationText .message-card.is-simple { padding: 48px 45px !important; } }

/* Box colour chosen in the panel. Every section box takes the same colour. */
html[class*="box-"]:not(.box-theme) :is(.calendar-card, .program-paper, .dress-code-paper, .venue-card, .wedding-form, .guestbook-wall, .guest-media-paper, .special-card, #invitationText .message-card.is-simple) {
  background: var(--box-bg, #fbf7eff7) !important;
  border-color: var(--box-line, #eddfce) !important;
}

/* Glass: the card background shows through, blurred. */
html.box-glass :is(.calendar-card, .program-paper, .dress-code-paper, .venue-card, .wedding-form, .guestbook-wall, .guest-media-paper, .special-card, #invitationText .message-card.is-simple) {
  background: linear-gradient(150deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .5)) !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  box-shadow: 0 18px 45px rgba(20, 12, 18, .22), inset 0 1px 0 rgba(255, 255, 255, .8) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
  backdrop-filter: blur(18px) saturate(1.25) !important;
}

/* A dark box colour: light text inside the boxes. */
html.box-dark :is(.calendar-card, .program-paper, .dress-code-paper, .venue-card, .wedding-form, .guestbook-wall, .guest-media-paper, .special-card, #invitationText .message-card.is-simple) {
  --ink: #fbf4ec; --muted: #eedcd2; --wine: #f7e3e6; --wine-soft: #f0d3d8; --rose-deep: #f4d4da; --rose: #ecc9cd; --champagne: #e9d2a4; --line: rgba(255, 255, 255, .22); --soft-line: rgba(255, 255, 255, .14);
  color: var(--ink);
}
html.box-dark :is(.calendar-card, .program-paper, .dress-code-paper, .venue-card, .wedding-form, .guestbook-wall, .guest-media-paper, .special-card, #invitationText .message-card.is-simple) :is(h1, h2, h3, h4, p, span, small, strong, time, figcaption, legend, label, li, b, dt, dd):not(input, textarea, select, button, .button, a.button) {
  color: inherit;
}
html.box-dark :is(.calendar-card, .program-paper, .dress-code-paper, .venue-card, .wedding-form, .guestbook-wall, .guest-media-paper, .special-card, #invitationText .message-card.is-simple) { --wine-soft: #f0d3d8; }
html.box-dark #invitationText .message-card.is-simple :is(h2, h3, p, strong) { color: var(--ink) !important; }
html.box-dark .program-section .program-heading > p { color: var(--muted) !important; }
html.box-dark .program-section .program-icon { color: var(--champagne); }
#invitationText .message-card.is-simple .invitation-copy { font-size: clamp(15px, 4.1vw, 17px) !important; line-height: 2.2 !important; }
#invitationText .message-card.is-simple strong { font-size: 15px !important; }
#invitationText .message-card.is-simple h2 { font-size: clamp(23px, 5.6vw, 32px) !important; }

/* The plain invitation box drops the arch, the seal and the inner line of the default frame. */
#invitationText .message-card.is-simple::before, #invitationText .message-card.is-simple::after { display: none; }
#invitationText .message-card.is-simple .message-content { display: flex; }
/* With a box colour picked, the default arch takes it too. */
html[class*="box-"]:not(.box-theme) #invitationText .message-card:not(.is-simple) { background: var(--box-bg, #fffbf3) !important; }
html.box-glass #invitationText .message-card:not(.is-simple) { background: linear-gradient(150deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .5)) !important; -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
html.box-dark #invitationText .message-card:not(.is-simple) { --ink: #fbf4ec; --muted: #eedcd2; --wine: #f7e3e6; --champagne: #e9d2a4; color: var(--ink); }
html.box-dark #invitationText .message-card:not(.is-simple) :is(h2, h3, p, strong, span) { color: inherit; }
.opening-quote { color: var(--wine); }
/* Auto-delete warning inside the guest album. */
.media-delete-warning { max-width: 520px; margin: -6px auto 22px; padding: 12px 16px; color: #7a3b45; font: 600 14px/2.1 var(--fa); text-align: center; background: #fbf0f0; border: 1px solid rgba(122, 59, 69, .25); border-radius: 16px; }
.media-delete-warning span { color: var(--wine); }

/* RSVP fields the couple added in the panel. */
.wedding-form .rsvp-help { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.8; opacity: .75; font-weight: 400; }
.wedding-form select { width: 100%; margin-top: .38rem; padding: .68rem .15rem; color: var(--ink); font: inherit; background: transparent; border: 0; border-bottom: 1px solid rgba(122,103,84,.26); border-radius: 0; outline: none; }
.wedding-form select:focus { border-color: var(--sage); }
html.box-dark .wedding-form select option { color: #222; }

@font-face { font-family: "Mina Miremad"; src: url("../fonts/Miremad.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* ---------- 3.1: the couple's names in English or Persian letters (panel: عروس و داماد ← خط نام‌ها) ---------- */
@font-face { font-family: "Name Ruqaa"; src: url("../fonts/aref-ruqaa-700.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Name Amiri"; src: url("../fonts/amiri-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Name Lalezar"; src: url("../fonts/lalezar-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Name Vibes"; src: url("../fonts/great-vibes-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.hero-content h1.names-font-vibes, .footer-couple.names-font-vibes { font-family: "Name Vibes", "Wedding Script", cursive; }

/* Persian names: bride on the right, «و» in the middle, each font sized to look as large as the English script. */
.hero-content h1.names-fa, .footer-couple.names-fa { direction: rtl; font-weight: 400; letter-spacing: 0; }
.hero-content h1.names-fa b, .footer-couple.names-fa b { font-family: inherit; font-style: normal; font-size: .8em; color: var(--gold-soft, #e9d2a4); }
.footer-couple.names-fa b { color: var(--gold); }
.names-fa.names-font-nastaliq { font-family: "Mina Miremad", "Vazirmatn", serif; line-height: 1.75; }
.hero-content h1.names-fa.names-font-nastaliq { font-size: clamp(2.8rem, 9vw, 6.8rem); padding: .1em .02em .45em; }
.names-fa.names-font-ruqaa { font-family: "Name Ruqaa", "Vazirmatn", serif; line-height: 1.6; }
.hero-content h1.names-fa.names-font-ruqaa { font-size: clamp(2.8rem, 9vw, 6.6rem); }
.names-fa.names-font-amiri { font-family: "Name Amiri", "Vazirmatn", serif; line-height: 1.7; }
.hero-content h1.names-fa.names-font-amiri { font-size: clamp(2.8rem, 9vw, 6.6rem); }
.names-fa.names-font-lalezar { font-family: "Name Lalezar", "Vazirmatn", sans-serif; line-height: 1.6; }
.hero-content h1.names-fa.names-font-lalezar { font-size: clamp(2.5rem, 8vw, 5.8rem); }
.footer-couple.names-fa { font-size: clamp(2.3rem, 9vw, 3.6rem); }
@media (max-width: 520px) {
  .hero-content h1.names-fa { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .hero-content h1.names-fa.names-font-nastaliq { font-size: clamp(2.8rem, 14vw, 4.4rem); padding-bottom: .45em; }
  .hero-content h1.names-fa.names-font-lalezar { font-size: clamp(2.5rem, 13vw, 4rem); }
}


/* 3.1: the guest's name at the top of the invitation text (panel: لینک‌های اختصاصی ← صفحهٔ دوم). */
.personal-welcome.is-second { margin: 0 auto 1.1rem; color: var(--muted, #7a6658); text-shadow: none; }
.personal-welcome.is-second strong { color: var(--wine, #6e1f2c); font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.7; }
html.box-dark .personal-welcome.is-second, html.box-dark .personal-welcome.is-second strong { color: var(--ink) !important; }

/* 3.1.1: wedding.css forces "Wedding Script" and left-to-right on the names with !important; the chosen name font and Persian order win here. */
.hero-content h1.names-fa, .footer-couple.names-fa { direction: rtl !important; }
.hero-content h1.names-font-nastaliq, .hero-content h1.names-font-nastaliq span, .hero-content h1.names-font-nastaliq b, .footer-couple.names-font-nastaliq, .footer-couple.names-font-nastaliq span, .footer-couple.names-font-nastaliq b { font-family: "Mina Miremad", "Vazirmatn", serif !important; }
.hero-content h1.names-font-ruqaa, .hero-content h1.names-font-ruqaa span, .hero-content h1.names-font-ruqaa b, .footer-couple.names-font-ruqaa, .footer-couple.names-font-ruqaa span, .footer-couple.names-font-ruqaa b { font-family: "Name Ruqaa", "Vazirmatn", serif !important; }
.hero-content h1.names-font-amiri, .hero-content h1.names-font-amiri span, .hero-content h1.names-font-amiri b, .footer-couple.names-font-amiri, .footer-couple.names-font-amiri span, .footer-couple.names-font-amiri b { font-family: "Name Amiri", "Vazirmatn", serif !important; }
.hero-content h1.names-font-lalezar, .hero-content h1.names-font-lalezar span, .hero-content h1.names-font-lalezar b, .footer-couple.names-font-lalezar, .footer-couple.names-font-lalezar span, .footer-couple.names-font-lalezar b { font-family: "Name Lalezar", "Vazirmatn", sans-serif !important; }
.hero-content h1.names-font-vibes, .hero-content h1.names-font-vibes span, .hero-content h1.names-font-vibes b, .footer-couple.names-font-vibes, .footer-couple.names-font-vibes span, .footer-couple.names-font-vibes b { font-family: "Name Vibes", "Wedding Script", cursive !important; }
.hero-content h1.names-fa, .footer-couple.names-fa { display: flex !important; flex-wrap: wrap; justify-content: center !important; align-items: baseline !important; gap: 0 .35em !important; max-width: 100%; }
.hero-content h1.names-fa span, .footer-couple.names-fa span { justify-self: auto; margin: 0 !important; }
@media (max-width: 520px) {
  .hero-content h1.names-fa { font-size: clamp(2.3rem, 12.5vw, 4.4rem) !important; }
  .hero-content h1.names-fa.names-font-nastaliq { font-size: clamp(2.2rem, 11vw, 4rem) !important; }
  .hero-content h1.names-fa.names-font-lalezar { font-size: clamp(2.1rem, 10.5vw, 3.8rem) !important; }
}
.site-footer .footer-couple.names-fa b, .hero-content h1.names-fa b { margin: 0 .05em !important; }
.hero-content h1.names-fa.names-font-nastaliq { font-size: clamp(2.2rem, 6.5vw, 5rem) !important; padding-bottom: .35em; }
@media (max-width: 520px) { .hero-content h1.names-fa.names-font-nastaliq { font-size: clamp(2.2rem, 11vw, 4rem) !important; } }

/* 3.1 (from test1 3.3): ceremony clips and videos in the couple gallery. */
.clips-section { position: relative; }
.clips-list { position: relative; z-index: 2; display: grid; gap: 22px; width: min(100%, 720px); margin: 0 auto; }
.clip-card { margin: 0; padding: 9px; border-radius: 22px; background: var(--box-bg, linear-gradient(110deg, #fffbf3, #fdefd7)); border: 1px solid var(--box-line, #c8ab7180); box-shadow: inset 0 0 0 5px #ffffff88, var(--shadow); }
.clip-card video { display: block; width: 100%; max-height: 78vh; aspect-ratio: 16 / 9; border-radius: 14px; background: #1c0a0d; object-fit: contain; }
.clip-card figcaption { padding: 10px 6px 4px; color: var(--wine); font-size: 15px; font-weight: 600; text-align: center; }
html.box-dark .clip-card figcaption { color: var(--ink); }
.gallery-card.is-video { cursor: default; }
.gallery-card.is-video video { display: block; width: 100%; height: 260px; object-fit: contain; background: #1c0a0d; }
.single-item-carousel > .gallery-card.is-video video { height: auto; max-height: 480px; aspect-ratio: 4 / 5; }
