/* test4 3.0: the parts that came with the 3.0 code, in the garden colours of this card
   (opening line, date caption, scroll text, language menu, special program countdown, moved sections). */
@font-face { font-family: Miremad; src: url("../fonts/Miremad.woff2") format("woff2"); font-display: swap; }

.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); }

/* Language menu in the garden colours. */
.lang-switch { color: var(--ink); }
.lang-switch summary { border-color: var(--line); background: rgba(255, 253, 249, .92); box-shadow: 0 3px 14px rgba(84, 70, 58, .16); }
.lang-switch summary:focus-visible { outline-color: var(--rose-deep); }
.lang-switch ul { background: var(--paper); border-color: var(--line); box-shadow: 0 12px 34px rgba(84, 70, 58, .2); }
.lang-switch li a { color: var(--ink); }
.lang-switch li a b { background: var(--cream); color: var(--rose-deep); }
.lang-switch li a:hover, .lang-switch li a:focus-visible { background: var(--ivory); }
.lang-switch li a[aria-current] { background: var(--cream); }
.lang-switch li a[aria-current] b { background: var(--rose-deep); color: #fff; }

/* 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; }
