/* The Yasmine invitation card (9:16), used in the editor preview, the design page and the guest page.
   Sizes are in cqw (the card's own width). Every cqw size has a vw-based line before it for browsers without
   container units: there the card is taken as about 90% of a phone's width and never more than 400 px. */
@property --r { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

.card {
  position: relative; aspect-ratio: 9 / 16; width: 100%; overflow: hidden;
  background: #3A172C; color: #3A172C; container-type: inline-size; isolation: isolate;
  -webkit-user-select: none; user-select: none;
}
.card--ivory { background: #F3E7DC; }
.card-face { position: absolute; inset: 0; transition: opacity 700ms cubic-bezier(.2,.7,.2,1); }
.card-env { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Light in patterns: the photo's own raised jasmine edges and seams (a light layer cut from the photo), turned the
   warm copper-gold of the home film by the card's SVG filter (renderCard), revealed from the seal slowly out to the
   edges at the speed of the approved home film (2.9 s). */
.card-fx { position: absolute; width: 0; height: 0; overflow: hidden; }
.card-glow-wrap {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle at var(--seal-x, 50%) var(--seal-y, 43.5%), #000 calc(var(--r) - 18%), transparent var(--r));
          mask: radial-gradient(circle at var(--seal-x, 50%) var(--seal-y, 43.5%), #000 calc(var(--r) - 18%), transparent var(--r));
}
/* The filtered light is drawn once on its own layer; only the mask moves. */
.card-glow { will-change: transform; }
/* On the ivory paper the light shows as warm gold drawn into the pattern itself. */
.card--ivory .card-glow-wrap { mix-blend-mode: multiply; }
.card.is-glowing .card-glow-wrap { animation: card-glow 2900ms cubic-bezier(.3, .1, .65, .95) forwards; }
@keyframes card-glow {
  0% { --r: 6%; opacity: 0; }
  10% { opacity: 1; }
  100% { --r: 118%; opacity: 1; }
}
.card.is-glowing :is(.card-tap, .card-guest) { opacity: 0; transition: opacity 450ms ease-out; animation: none; }
/* An open card never shows the tap hint (the design preview opens the card at once; the hint stayed half behind "Details and reply", 21 Nov). */
.card.is-open :is(.card-tap, .card-guest) { opacity: 0; visibility: hidden; animation: none; }
.card.is-slow :is(.card-face, .card-film) { transition-duration: 1200ms; }
.card-seal {
  position: absolute; left: var(--seal-x, 50%); top: var(--seal-y, 43.5%); translate: -50% -50%;
  width: var(--seal-w, 40%); aspect-ratio: 1 / 1.22; border: 0; padding: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  touch-action: manipulation;
}
.card-seal:focus-visible { outline: 3px solid #E2B39E; outline-offset: 4px; }

/* Seal initials: engraved in the plain inner oval of the wax (12 cqw wide, 19 cqw tall, centred 2 cqw below the
   button's centre). Latin letters only, stacked so they stay inside the oval. Pressed look: the dark tone of the wax,
   a light edge above and a dark edge below. */
.card-initials {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  translate: -0.3vw 1.8vw; translate: -0.3cqw 2cqw;
  max-width: 10.8vw; max-height: 17vw; max-width: 12cqw; max-height: 19cqw; overflow: hidden;
  font-family: "Cormorant Garamond", "Amiri", serif; font-weight: 600; font-style: normal;
  font-size: min(6.3vw, 28px); font-size: 7cqw;
  line-height: 0.92; letter-spacing: 0; text-align: center;
  color: #8a4a3b;
  text-shadow: 0 -0.5px 0 rgba(255, 224, 204, 0.55), 0 0.6px 0 rgba(70, 22, 16, 0.6);
  text-shadow: 0 -0.14cqw 0 rgba(255, 224, 204, 0.55), 0 0.16cqw 0 rgba(70, 22, 16, 0.6);
}
.card-initials:empty { display: none; }
.card--ivory .card-initials { color: #8e4d3e; }
.card.is-glowing .card-seal { animation: seal-press 380ms ease-out; }
@keyframes seal-press { 50% { scale: 0.96; } }

.card-tap, .card-guest {
  position: absolute; left: 6%; right: 6%; text-align: center; margin: 0; max-width: none;
  font-family: "Jost", "IBM Plex Sans Arabic", sans-serif; color: #FBF1EC;
}
/* The hint: 16 px or more on a 300 px card; it pulses three times, then rests. */
.card-tap {
  bottom: 7%;
  font-size: max(16px, min(4.9vw, 22px)); font-size: max(16px, 5.4cqw);
  font-weight: 500; letter-spacing: 0.02em; line-height: 1.3;
  text-shadow: 0 1px 10px rgba(30, 8, 18, 0.55);
  animation: tap-breathe 2.2s ease-in-out 1.2s 3;
}
.card[lang="ar"] .card-tap { letter-spacing: normal; }
.card-guest { bottom: 13%; font-family: "Cormorant Garamond", "Amiri", serif; font-size: min(5.8vw, 26px); font-size: 6.4cqw; }
.card--ivory .card-tap, .card--ivory .card-guest { color: #5a2440; text-shadow: 0 1px 8px rgba(255, 246, 236, 0.7); }
@keyframes tap-breathe { 50% { opacity: 0.5; } }

.card-film, .card-garden { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-film { opacity: 0; transition: opacity 400ms ease-out; pointer-events: none; }
.card.is-film .card-film { opacity: 1; }
/* A plate that rides the film (Misk, plate.js): the initials copy sits above the film and follows the plate frame by frame; the poster's own initials wait under the film. */
.card-ride { z-index: 3; pointer-events: none; cursor: default; }
.card.is-ride .card-closed .card-initials { visibility: hidden; }
.card-bloom { position: absolute; inset: 0; background: #FFF6EC; opacity: 0; pointer-events: none; }
.card.is-blooming .card-bloom { animation: bloom 900ms ease-in forwards; }
.card.is-blooming .card-closed .card-env { transition: transform 900ms cubic-bezier(.5,0,.8,.4); transform: scale(1.35); transform-origin: 50% 43%; }
@keyframes bloom { to { opacity: 1; } }

.card-open { opacity: 0; pointer-events: none; }
.card.is-open .card-open { opacity: 1; pointer-events: auto; }
.card.is-open .card-closed { opacity: 0; pointer-events: none; }
.card.is-open .card-bloom { animation: none; opacity: 0; transition: opacity 700ms; }

.card-words {
  position: absolute; top: 8%; left: 7%; right: 7%; text-align: center;
}
.card-words p { margin: 0 auto; max-width: none; }
.card-words { z-index: 2; } /* above the place film and its cross-fade twin (loop.js sets their z-index to 0 and 1) */
/* Still cards: the place is one picture; the words are printed on it by code at the registry's percent positions. */
.card-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-words.card-print { inset: 0; top: 0; left: 0; right: 0; }
.card-pr { position: absolute; margin: 0 !important; line-height: 1.12; letter-spacing: 0; text-wrap: balance; overflow-wrap: anywhere; }
.card-pr .card-amp { font-size: 0.8em; color: inherit; }
.card[lang="ar"] .card-pr { line-height: 1.45; letter-spacing: normal; }
/* the printed date is Latin digits with dots: it reads left to right on an Arabic card too, on one line */
.card-pr--date { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.card-host { font-family: "Cormorant Garamond", "Amiri", serif; font-size: min(4.1vw, 18px); font-size: 4.6cqw; margin-bottom: 1.8vw !important; margin-bottom: 2cqw !important; }
.card-names:focus { outline: none; }
.card-names {
  font-family: var(--name-font, "Pinyon Script", cursive); font-weight: 400; font-size: min(13.5vw, 60px); font-size: var(--name-size, 15cqw); line-height: 1; color: var(--name-colour, #3A172C);
  display: flex; flex-direction: column; align-items: center; letter-spacing: 0; margin: 0; text-wrap: balance;
}
.card[lang="ar"] .card-names { font-family: var(--name-font-ar, "Aref Ruqaa", "Amiri", serif); font-size: min(11.7vw, 52px); font-size: var(--name-size-ar, 13cqw); line-height: 1.35; font-weight: 700; color: var(--name-colour-ar, #3A172C); }
.card-amp { font-size: 0.8em; line-height: 0.9; color: var(--name-amp, #3A172C); } /* round 3: the ampersand reads at about 55% of the capital height, full plum, centred on the x-height */
.card[lang="ar"] .card-amp { font-size: 0.82em; line-height: 1; margin-block: 0.2em 0.12em; color: var(--name-amp-ar, #8C5D57); }
.card-names-alt { font-family: "Aref Ruqaa", "Pinyon Script", serif; font-size: min(6.3vw, 28px); font-size: 7cqw; color: #5a2440; margin-top: 0.9vw !important; margin-top: 1cqw !important; }
.card-names-alt[lang="en"] { font-family: "Pinyon Script", cursive; }
.card-marry { font-family: "Cormorant Garamond", "Amiri", serif; font-size: min(4.5vw, 20px); font-size: 5cqw; font-style: italic; margin-top: 2.7vw !important; margin-top: 3cqw !important; }
.card[lang="ar"] .card-marry { font-style: normal; font-size: min(4.1vw, 18px); font-size: 4.6cqw; line-height: 1.6; }
.card-date { font-family: "Cormorant Garamond", "Amiri", serif; font-weight: 600; font-size: min(5.6vw, 25px); font-size: 6.2cqw; margin-top: 3.6vw !important; margin-top: 4cqw !important; }
.card-time { font-family: "Cormorant Garamond", "Amiri", serif; font-size: min(4.5vw, 20px); font-size: 5cqw; margin-top: 0.9vw !important; margin-top: 1cqw !important; }
.card[lang="ar"] .card-date, .card[lang="ar"] .card-time { font-weight: 700; }
/* A short dots date ("12 . 06 . 2027", registry dateStyle 'dots') reads day first in both languages: a right-to-left card would otherwise
   lay the three numbers out as "2027 . 06 . 12". */
.card-date--dots { direction: ltr; unicode-bidi: isolate; }
.card[lang="ar"] :is(.card-host, .card-names, .card-marry, .card-date, .card-time, .card-tap, .card-guest) { letter-spacing: normal; }

/* A phone-shaped frame for previews */
.phone { width: min(360px, 82vw); padding: 10px; background: #160810; border-radius: 44px; }
.phone .card { border-radius: 34px; }

/* Khatim: blush velvet box. The seal is the star medallion (round tap target, no wax); the light goes into the rose-gold
   lattice (multiply); the names sit high on the sunrise terrace in Bodoni Moda (set in bold, the date in regular). */
/* Fix 12: the date, the time and the host line cross the bright sun: a soft pale halo behind each line keeps the deep wine words steady. */

/* Names that arrive close (registry namesArrive 'close', Bab): English letters start widely spaced and close in, 0.6em to
   0.2em over 1.0 s, ease-out, no bounce. Arabic never gets letter-spacing: it only fades in with the words. */
.card[data-names-arrive="close"]:not([lang="ar"]) .card-names { letter-spacing: 0.6em; transition: letter-spacing 1000ms ease-out; }
.card.is-open[data-names-arrive="close"]:not([lang="ar"]) .card-names { letter-spacing: 0.2em; }
@media (prefers-reduced-motion: reduce) {
  .card[data-names-arrive="close"]:not([lang="ar"]) .card-names { letter-spacing: 0.2em; transition: none; }
}

/* Bab: carved sandstone doors. The seal is the round bronze knocker disc (a tap target 22% wide; the initials sit on the
   disc itself, one row, no ampersand, never under 16 px); the names sit in the sky at the top, in capitals. */
 /* the open sky between the trees: x 22% to 78% */
/* a soft ivory halo behind the letters so they read over leaves */
/* Only the sky behind the names is readable; the host line, the line under the names and the time and place stay on the page below. */

/* Names written in (registry namesArrive 'write-in', Harir): a soft edge uncovers the names from the reading side (left in
   English, right in Arabic) over 1.2 s; the date fades in after. No letter-spacing anywhere. Reduced motion: shown at once. */
@property --wi { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.card:not([lang="ar"]) .card-names { font-style: var(--name-style, normal); }
.card[data-names-arrive="write-in"] { --wi-to: right; }
.card[data-names-arrive="write-in"][dir="rtl"] { --wi-to: left; }
.card[data-names-arrive="write-in"] .card-names { --wi: 0%;
  -webkit-mask-image: linear-gradient(to var(--wi-to), #000 calc(var(--wi) - 14%), transparent var(--wi));
          mask-image: linear-gradient(to var(--wi-to), #000 calc(var(--wi) - 14%), transparent var(--wi)); }
.card.is-open[data-names-arrive="write-in"] .card-names { animation: names-write 1200ms cubic-bezier(.35, .1, .5, 1) 350ms both; }
@keyframes names-write { from { --wi: 0%; } to { --wi: 128%; } }
.card[data-names-arrive="write-in"] :is(.card-date, .card-time, .card-marry, .card-host) { opacity: 0; }
.card.is-open[data-names-arrive="write-in"] :is(.card-date, .card-time, .card-marry, .card-host) { animation: names-date-in 700ms ease-out 1650ms both; }
@keyframes names-date-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .card[data-names-arrive="write-in"] .card-names { -webkit-mask-image: none; mask-image: none; animation: none !important; }
  .card[data-names-arrive="write-in"] :is(.card-date, .card-time, .card-marry, .card-host) { opacity: 1; animation: none !important; }
}

/* Harir: a silk veil over a lake. The seal is the round cord knot (a tap target 20% wide; the initials sit on it in one row,
   italic, never under 16 px); the names sit in the clear sky above the arch (above 15% of the frame), one line, in italic. */
/* Gateau (birthdays): a crystal dome over a cake. The tap target is the round star facet; the words sit in the clear wall above the cake (top 0.5% to 23%):
   the age as one big numeral, the name beside it, the date under, arriving one after the other (namesArrive 'stagger'). Latin digits in Arabic too. */
/* The date sits on the white cake: deep ink, Playfair Display Italic (contrast at least 4.5:1 on a screenshot; larger on a wide desktop in guest.css). */
/* Names that arrive one after the other (registry namesArrive 'stagger'): the numeral at once, the name 0.6 s later, the date 1.4 s later. */
.card[data-names-arrive="stagger"] :is(.card-age, .card-names, .card-date) { opacity: 0; }
.card.is-open[data-names-arrive="stagger"] .card-age { animation: names-date-in 600ms ease-out 0ms both; }
.card.is-open[data-names-arrive="stagger"] .card-names { animation: names-date-in 600ms ease-out 600ms both; }
.card.is-open[data-names-arrive="stagger"] .card-date { animation: names-date-in 600ms ease-out 1400ms both; }
@media (prefers-reduced-motion: reduce) {
  .card[data-names-arrive="stagger"] :is(.card-age, .card-names, .card-date) { opacity: 1; animation: none !important; }
}
/* Sitara (weddings): a velvet theatre curtain. The tap target is the seam of light (a tall hit area at the centre; the light runs along it). The open words are
   a THEATRE TITLE CARD on the polished floor (61% to 91% of the height): two thin champagne rules draw out from the centre, then the capitals close in on three
   beats (namesArrive 'title'; Arabic: the two names and the joining word step in as whole words, never any letter-spacing). --u is one percent of the picture's
   width as it is shown (a tall phone crops the sides, so the height decides: 9:16). Poiret One in English with a heavy stroke, Jomhuria in Arabic; Latin digits. */
 /* the title card holds the names and the date only */
/* the two rules, champagne gold, drawn out from the centre (half a rule = 26% of the width) */
@keyframes sitara-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sitara-space { from { letter-spacing: 0.34em; padding-left: 0.34em; } to { letter-spacing: 0.12em; padding-left: 0.12em; } }
@keyframes sitara-ink { from { opacity: 0; } to { opacity: 1; } }
.card.is-open[data-names-arrive="title"] .card-words::before, .card.is-open[data-names-arrive="title"] .card-words::after { animation: sitara-rule 400ms cubic-bezier(0.3, 0.1, 0.3, 1) both; }
.card.is-open[data-names-arrive="title"]:not([lang="ar"]) .card-names { animation: sitara-space 750ms steps(2, jump-end) 400ms both, sitara-ink 250ms linear 400ms both; }
.card.is-open[data-names-arrive="title"]:not([lang="ar"]) .card-date { animation: sitara-space 750ms steps(2, jump-end) 400ms both, sitara-ink 250ms linear 400ms both; }
.card.is-open[data-names-arrive="title"][lang="ar"] .card-names > span { animation: sitara-ink 1ms linear both; }
.card.is-open[data-names-arrive="title"][lang="ar"] .card-names > :nth-child(1) { animation-delay: 400ms; }
.card.is-open[data-names-arrive="title"][lang="ar"] .card-names > :nth-child(2) { animation-delay: 775ms; }
.card.is-open[data-names-arrive="title"][lang="ar"] .card-names > :nth-child(3) { animation-delay: 1150ms; }
.card.is-open[data-names-arrive="title"][lang="ar"] .card-date { animation: sitara-ink 250ms linear 400ms both; }
@media (prefers-reduced-motion: reduce) {
  .card[data-names-arrive="title"] :is(.card-names, .card-date, .card-names > span) { opacity: 1 !important; animation: none !important; }
  .card[data-names-arrive="title"] .card-words::before, .card[data-names-arrive="title"] .card-words::after { transform: scaleX(1); animation: none !important; }
}
/* the dark halo keeps a bright sky star from sitting next to a letter or a date dot and reading as an extra mark (Fix 16) */
/* Nujoom (weddings): a midnight-plum gatefold with rose-gold foil stars; the tap target is the middle of the star map (round). The names are set high on the dark sky:
   light wide capitals in cream (Jost), IBM Plex Sans Arabic in Arabic with no letter-spacing, and they arrive line by line each with a soft star flash (namesArrive 'stars'). */
 /* the sky holds the names and the date only */
@keyframes nujoom-star { 0% { opacity: 0; text-shadow: 0 0 0 rgba(255, 236, 200, 0); } 45% { opacity: 1; text-shadow: 0 0 0.45em rgba(255, 236, 200, 1), 0 0 1.1em rgba(255, 214, 160, 0.9); } 100% { opacity: 1; text-shadow: 0 0 0.4em rgba(12, 8, 26, 0.95), 0 0 0.9em rgba(12, 8, 26, 0.9), 0 0 1.5em rgba(12, 8, 26, 0.75); } }
.card[data-names-arrive="stars"] :is(.card-names > *, .card-date) { opacity: 0; }
.card.is-open[data-names-arrive="stars"] .card-names > * { animation: nujoom-star 900ms ease-out both; }
.card.is-open[data-names-arrive="stars"] .card-names > :nth-child(1) { animation-delay: 0ms; }
.card.is-open[data-names-arrive="stars"] .card-names > :nth-child(2) { animation-delay: 350ms; }
.card.is-open[data-names-arrive="stars"] .card-names > :nth-child(3) { animation-delay: 700ms; }
.card.is-open[data-names-arrive="stars"] .card-date { animation: nujoom-star 900ms ease-out 1300ms both; }
@media (prefers-reduced-motion: reduce) {
  .card[data-names-arrive="stars"] :is(.card-names > *, .card-date) { opacity: 1 !important; animation: none !important; }
}
/* Hadiya (birthdays): a gift in embossed champagne paper with a plum tear-strip; the whole strip is the tap target (a wide, low bar across the middle). The names are plum Abril Fatface
   (Lalezar in Arabic, no letter-spacing), large, at the top; the date right under in Latin digits, never under 16 px. They settle in 0.3 s (namesArrive 'settle'): a short rise and a soft
   scale-in with an ease-out that ends flat, no overshoot, no bounce; the date follows 0.2 s later. */
 /* the film holds the names and the date only */
@keyframes hadiya-settle { from { opacity: 0; transform: translateY(0.14em) scale(1.05); } to { opacity: 1; transform: none; } }
.card[data-names-arrive="settle"] :is(.card-names, .card-date) { opacity: 0; }
.card.is-open[data-names-arrive="settle"] .card-names { animation: hadiya-settle 300ms cubic-bezier(0.2, 0.8, 0.25, 1) 0ms both; }
.card.is-open[data-names-arrive="settle"] .card-date { animation: hadiya-settle 300ms cubic-bezier(0.2, 0.8, 0.25, 1) 200ms both; }
@media (prefers-reduced-motion: reduce) {
  .card[data-names-arrive="settle"] :is(.card-names, .card-date) { opacity: 1 !important; animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .card.is-glowing .card-glow-wrap { animation-duration: 1ms; }
  .card-tap { animation: none; }
}
.card-initials-amp { font-size: 0.62em; line-height: 1.1; font-style: italic; font-weight: 500; }

/* Misk (wine, and ivory on the same plate): the foil plate on the paper band is a rectangle (41.9% of the width wide, 34.0% of the width tall); the initials are pressed into it in rose-gold-dark, never under 16 px. */
.card--wine { background: #2a1414; }
:is(.card--wine, .card[data-card-tpl="misk"].card--ivory) .card-seal { aspect-ratio: 41.9 / 34; border-radius: 2%; }
:is(.card--wine, .card[data-card-tpl="misk"].card--ivory) .card-initials { translate: 0 0; flex-direction: row; gap: 0.2em; max-width: none; max-height: none; overflow: visible; font-family: "Gilda Display", "Cormorant Garamond", serif; font-weight: 400; font-style: normal; font-size: max(18px, 10cqw); line-height: 1; color: #8a4a34; white-space: nowrap; letter-spacing: 0.04em; text-shadow: 0 0.16cqw 0 rgba(255, 226, 206, 0.6), 0 -0.2cqw 0 rgba(78, 30, 18, 0.55); }
:is(.card--wine, .card[data-card-tpl="misk"].card--ivory) .card-initials-amp { display: inline; font-size: 0.7em; }
.card--wine .card-tap, .card--wine .card-guest { color: #FBF1EC; text-shadow: 0 1px 12px rgba(20, 8, 20, 0.85); }
/* Misk: rose-gold words on dark wine take no light halo (the guest page's pale glow is for dark ink). */
.card--wine .card-words.card-print p.card-pr { text-shadow: none; }

/* ---------- Fan card (Mirwaha, data-fan) ----------
   One 9:16 picture box (the film's own cover crop) holds the printed words, the canvas where fan.js redraws the film's turning cards over them,
   and the foil initials, which turn with the cover. The still is hidden until the card is open; the words are drawn under the cards from the first
   frame of the film (is-fan-live) and never fade in. Without it (no frame callback, reduced motion) they fade in when the card is open. */
.card--champagne { background: #E9DCC8; }
.card--champagne .card-seal { aspect-ratio: 0.58; border-radius: 2%; }
.card--champagne .card-tap, .card--champagne .card-guest { color: #48203e; text-shadow: 0 1px 10px rgba(255, 246, 232, 0.85); }
.card-fanbox { display: none; }
.card[data-fan] .card-open { opacity: 1; transition: none; }
.card[data-fan] .card-fanbox { display: block; position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: max(100%, 177.78cqw); aspect-ratio: 9 / 16; container-type: size; overflow: hidden; pointer-events: none; }
.card[data-fan] .card-fanbox .card-words.card-print { position: absolute; inset: 0; width: auto; height: auto; translate: none; }
.card[data-fan] .card-still { transition: opacity 700ms cubic-bezier(.2, .7, .2, 1); }
.card[data-fan]:not(.is-open) .card-still { opacity: 0; }
.card[data-fan] .card-fanbox .card-words { opacity: 0; transition: opacity 700ms cubic-bezier(.2, .7, .2, 1); }
.card[data-fan].is-open .card-fanbox .card-words { opacity: 1; }
.card[data-fan].is-fan-live .card-fanbox .card-words { opacity: 1; transition: none; }
.card[data-fan].is-fan-live .card-fanbox .card-words > * { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
.card-fan-cover { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; } /* above the words (z-index 2) */
.card[data-fan].is-open .card-fan-cover { opacity: 0; transition: opacity 600ms ease-out 150ms; }
.card-fan-rot { position: absolute; inset: 0; will-change: transform; z-index: 4; }
.card-fan-ini { position: absolute; translate: -50% -50%; white-space: nowrap; line-height: 1; letter-spacing: 0.04em; font-weight: 400; text-shadow: 0 -0.14cqw 0 rgba(255, 238, 220, 0.7), 0 0.16cqw 0 rgba(96, 48, 32, 0.4); }
.card[data-fan].is-open .card-fan-rot { opacity: 0; }

/* ---------- Maida (celebrations): a napkin folded round a menu card, then a long table in the sun. Two layers of words, as in the finished film:
   (1) the names, date and line large in ivory on a soft plum shade between two thin rose-gold rules across the table (they settle in 0.3 s, namesArrive 'settle');
   (2) the same words printed small on the BLANK menu card on the front plate of the place film, pinned to the card's corners (matrix3d, .card-menu below).
   Cormorant SC (Noto Naskh Arabic in Arabic), small capitals, thin rules, like a menu. Latin digits in both languages. ---------- */
@media (prefers-reduced-motion: reduce) {  }

/* The printed menu card: a box with the video's cover size (9:16 filling the card; object-position 50% --py) holds a 1080x1920 sheet scaled to it (--s: the box width over
   1080; the tan(atan2()) form gives the same number in CSS, menu.js also sets it). The print is 1000x515 px, mapped onto the card's corners by the inline matrix3d, moved by
   (--mx, --my) = the card's shift in this frame of the loop (menu-track.json, menu.js). Never on a wide screen (the wide film is a different crop with no card). */
.card-menu { position: absolute; z-index: 1; --bw: max(100cqw, 56.25cqh); --bh: max(100cqh, 177.78cqw); width: var(--bw); height: var(--bh); left: calc((100cqw - var(--bw)) * 0.5); top: calc((100cqh - var(--bh)) * var(--py, 0.5)); pointer-events: none; }
.card-menu-sheet { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0; scale: var(--s, tan(atan2(var(--bw), 1080px))); }
.card-menu-card { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; color: #3A172C; text-align: center; font-family: var(--name-font); font-weight: 700; mix-blend-mode: multiply; }
.card[lang="ar"] .card-menu-card { font-family: var(--name-font-ar); }
.mn-names { display: flex; align-items: baseline; justify-content: center; gap: 0.3em; font-size: var(--mn, 104px); line-height: 1; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.03em; }
.mn-names i { font-style: normal; font-size: 0.6em; color: #6E3A3A; }
.card[lang="ar"] .mn-names { text-transform: none; letter-spacing: normal; }
.mn-date { font-size: 84px; line-height: 1; letter-spacing: 0.1em; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.mn-line { font-size: 54px; line-height: 1.1; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.card[lang="ar"] .mn-date, .card[lang="ar"] .mn-line { letter-spacing: normal; text-transform: none; }
.card:not(.is-open) .card-menu { display: none; }
/* ---------- Round 7: four premium designs live (Makhtoota, Sanduq, Mashrabiya, Shama). The film holds the object; the words are drawn by code on the place, in each design's signature fonts. Latin digits. ---------- */
 /* the film holds the names and the date only */

/* Makhtoota: a scroll unrolled on an engraved brass tray; the parchment is the page. The tap target is the rolled scroll (a wide band at 47%), the light starts at the ribbon cross. Names low on the parchment: Layla / & / Omar, a thin gold rule, the date. */

/* Sanduq: the chest front. Names at the top of the majlis: Layla & Omar on one line, the date under it in wide spaced figures. */

/* Mashrabiya: capitals one above the other with a copper eight-point star between them, the date under. */

/* Shama: ONE name and an age ("Layla 30") in warm ivory at the top of the dark cake; the date at the bottom of a phone screen (guest.css), under the name elsewhere. */
@media (prefers-reduced-motion: reduce) {  }

/* ==== words: GENERATED by scripts/words-css.mjs from the registry `look` blocks. Do not edit; change the registry and run the script. ==== */
.card:where([data-w~="card_age_ar_font-family"])[lang="ar"] .card-age { font-family: var(--w-card_age_ar_font-family); }
.card:where([data-w~="card_age_ar_font-size"])[lang="ar"] .card-age { font-size: var(--w-card_age_ar_font-size); }
.card:where([data-w~="card_age_ar_font-style"])[lang="ar"] .card-age { font-style: var(--w-card_age_ar_font-style); }
.card:where([data-w~="card_age_ar_font-weight"])[lang="ar"] .card-age { font-weight: var(--w-card_age_ar_font-weight); }
.card:where([data-w~="card_age_ar_line-height"])[lang="ar"] .card-age { line-height: var(--w-card_age_ar_line-height); }
.card:where([data-w~="card_age_color"]) .card-age { color: var(--w-card_age_color); }
.card:where([data-w~="card_age_direction"]) .card-age { direction: var(--w-card_age_direction); }
.card:where([data-w~="card_age_font-family"]) .card-age { font-family: var(--w-card_age_font-family); }
.card:where([data-w~="card_age_font-size"]) .card-age { font-size: var(--w-card_age_font-size); }
.card:where([data-w~="card_age_font-style"]) .card-age { font-style: var(--w-card_age_font-style); }
.card:where([data-w~="card_age_font-weight"]) .card-age { font-weight: var(--w-card_age_font-weight); }
.card:where([data-w~="card_age_is-open_animation"]).is-open .card-age { animation: var(--w-card_age_is-open_animation); }
.card:where([data-w~="card_age_line-height"]) .card-age { line-height: var(--w-card_age_line-height); }
.card:where([data-w~="card_age_margin"]) .card-age { margin: var(--w-card_age_margin); }
.card:where([data-w~="card_age_opacity"]) .card-age { opacity: var(--w-card_age_opacity); }
.card:where([data-w~="card_age_order"]) .card-age { order: var(--w-card_age_order); }
.card:where([data-w~="card_alt_color"]) .card-names-alt { color: var(--w-card_alt_color); }
.card:where([data-w~="card_alt_opacity"]) .card-names-alt { opacity: var(--w-card_alt_opacity); }
.card:where([data-w~="card_amp_-webkit-text-stroke-width"]) .card-amp { -webkit-text-stroke-width: var(--w-card_amp_-webkit-text-stroke-width); }
.card:where([data-w~="card_amp_ar_font-size"])[lang="ar"] .card-amp { font-size: var(--w-card_amp_ar_font-size); }
.card:where([data-w~="card_amp_ar_line-height"])[lang="ar"] .card-amp { line-height: var(--w-card_amp_ar_line-height); }
.card:where([data-w~="card_amp_ar_margin"])[lang="ar"] .card-amp { margin: var(--w-card_amp_ar_margin); }
.card:where([data-w~="card_amp_ar_margin-block"])[lang="ar"] .card-amp { margin-block: var(--w-card_amp_ar_margin-block); }
.card:where([data-w~="card_amp_background"]) .card-amp { background: var(--w-card_amp_background); }
.card:where([data-w~="card_amp_color"]) .card-amp { color: var(--w-card_amp_color); }
.card:where([data-w~="card_amp_display"]) .card-amp { display: var(--w-card_amp_display); }
.card:where([data-w~="card_amp_en_font-size"]):not([lang="ar"]) .card-amp { font-size: var(--w-card_amp_en_font-size); }
.card:where([data-w~="card_amp_en_letter-spacing"]):not([lang="ar"]) .card-amp { letter-spacing: var(--w-card_amp_en_letter-spacing); }
.card:where([data-w~="card_amp_en_line-height"]):not([lang="ar"]) .card-amp { line-height: var(--w-card_amp_en_line-height); }
.card:where([data-w~="card_amp_flex"]) .card-amp { flex: var(--w-card_amp_flex); }
.card:where([data-w~="card_amp_font-size"]) .card-amp { font-size: var(--w-card_amp_font-size); }
.card:where([data-w~="card_amp_font-style"]) .card-amp { font-style: var(--w-card_amp_font-style); }
.card:where([data-w~="card_amp_font-weight"]) .card-amp { font-weight: var(--w-card_amp_font-weight); }
.card:where([data-w~="card_amp_height"]) .card-amp { height: var(--w-card_amp_height); }
.card:where([data-w~="card_amp_letter-spacing"]) .card-amp { letter-spacing: var(--w-card_amp_letter-spacing); }
.card:where([data-w~="card_amp_line-height"]) .card-amp { line-height: var(--w-card_amp_line-height); }
.card:where([data-w~="card_amp_margin"]) .card-amp { margin: var(--w-card_amp_margin); }
.card:where([data-w~="card_amp_padding"]) .card-amp { padding: var(--w-card_amp_padding); }
.card:where([data-w~="card_amp_width"]) .card-amp { width: var(--w-card_amp_width); }
.card:where([data-w~="card_date_-webkit-text-stroke"]) .card-date { -webkit-text-stroke: var(--w-card_date_-webkit-text-stroke); }
.card:where([data-w~="card_date_ar_color"])[lang="ar"] .card-date { color: var(--w-card_date_ar_color); }
.card:where([data-w~="card_date_ar_font-family"])[lang="ar"] .card-date { font-family: var(--w-card_date_ar_font-family); }
.card:where([data-w~="card_date_ar_font-size"])[lang="ar"] .card-date { font-size: var(--w-card_date_ar_font-size); }
.card:where([data-w~="card_date_ar_font-weight"])[lang="ar"] .card-date { font-weight: var(--w-card_date_ar_font-weight); }
.card:where([data-w~="card_date_ar_letter-spacing"])[lang="ar"] .card-date { letter-spacing: var(--w-card_date_ar_letter-spacing); }
.card:where([data-w~="card_date_ar_margin-top"])[lang="ar"] .card-date { margin-top: var(--w-card_date_ar_margin-top) !important; }
.card:where([data-w~="card_date_ar_padding-left"])[lang="ar"] .card-date { padding-left: var(--w-card_date_ar_padding-left); }
.card:where([data-w~="card_date_ar_text-shadow"])[lang="ar"] .card-date { text-shadow: var(--w-card_date_ar_text-shadow); }
.card:where([data-w~="card_date_ar_word-spacing"])[lang="ar"] .card-date { word-spacing: var(--w-card_date_ar_word-spacing); }
.card:where([data-w~="card_date_before_background"]) .card-date::before { background: var(--w-card_date_before_background); }
.card:where([data-w~="card_date_before_content"]) .card-date::before { content: var(--w-card_date_before_content); }
.card:where([data-w~="card_date_before_height"]) .card-date::before { height: var(--w-card_date_before_height); }
.card:where([data-w~="card_date_before_left"]) .card-date::before { left: var(--w-card_date_before_left); }
.card:where([data-w~="card_date_before_position"]) .card-date::before { position: var(--w-card_date_before_position); }
.card:where([data-w~="card_date_before_top"]) .card-date::before { top: var(--w-card_date_before_top); }
.card:where([data-w~="card_date_before_translate"]) .card-date::before { translate: var(--w-card_date_before_translate); }
.card:where([data-w~="card_date_before_width"]) .card-date::before { width: var(--w-card_date_before_width); }
.card:where([data-w~="card_date_color"]) .card-date { color: var(--w-card_date_color); }
.card:where([data-w~="card_date_direction"]) .card-date { direction: var(--w-card_date_direction); }
.card:where([data-w~="card_date_en_color"]):not([lang="ar"]) .card-date { color: var(--w-card_date_en_color); }
.card:where([data-w~="card_date_en_font-family"]):not([lang="ar"]) .card-date { font-family: var(--w-card_date_en_font-family); }
.card:where([data-w~="card_date_en_font-size"]):not([lang="ar"]) .card-date { font-size: var(--w-card_date_en_font-size); }
.card:where([data-w~="card_date_en_font-style"]):not([lang="ar"]) .card-date { font-style: var(--w-card_date_en_font-style); }
.card:where([data-w~="card_date_en_font-weight"]):not([lang="ar"]) .card-date { font-weight: var(--w-card_date_en_font-weight); }
.card:where([data-w~="card_date_en_letter-spacing"]):not([lang="ar"]) .card-date { letter-spacing: var(--w-card_date_en_letter-spacing); }
.card:where([data-w~="card_date_en_margin-top"]):not([lang="ar"]) .card-date { margin-top: var(--w-card_date_en_margin-top) !important; }
.card:where([data-w~="card_date_en_text-shadow"]):not([lang="ar"]) .card-date { text-shadow: var(--w-card_date_en_text-shadow); }
.card:where([data-w~="card_date_flex-basis"]) .card-date { flex-basis: var(--w-card_date_flex-basis); }
.card:where([data-w~="card_date_font-family"]) .card-date { font-family: var(--w-card_date_font-family); }
.card:where([data-w~="card_date_font-size"]) .card-date { font-size: var(--w-card_date_font-size); }
.card:where([data-w~="card_date_font-style"]) .card-date { font-style: var(--w-card_date_font-style); }
.card:where([data-w~="card_date_font-weight"]) .card-date { font-weight: var(--w-card_date_font-weight); }
.card:where([data-w~="card_date_letter-spacing"]) .card-date { letter-spacing: var(--w-card_date_letter-spacing); }
.card:where([data-w~="card_date_margin"]) .card-date { margin: var(--w-card_date_margin) !important; }
.card:where([data-w~="card_date_margin-top"]) .card-date { margin-top: var(--w-card_date_margin-top) !important; }
.card:where([data-w~="card_date_opacity"]) .card-date { opacity: var(--w-card_date_opacity); }
.card:where([data-w~="card_date_order"]) .card-date { order: var(--w-card_date_order); }
.card:where([data-w~="card_date_padding-left"]) .card-date { padding-left: var(--w-card_date_padding-left); }
.card:where([data-w~="card_date_paint-order"]) .card-date { paint-order: var(--w-card_date_paint-order); }
.card:where([data-w~="card_date_position"]) .card-date { position: var(--w-card_date_position); }
.card:where([data-w~="card_date_text-shadow"]) .card-date { text-shadow: var(--w-card_date_text-shadow); }
.card:where([data-w~="card_date_unicode-bidi"]) .card-date { unicode-bidi: var(--w-card_date_unicode-bidi); }
.card:where([data-w~="card_date_white-space"]) .card-date { white-space: var(--w-card_date_white-space); }
.card:where([data-w~="card_glow_mix-blend-mode"]) .card-glow-wrap { mix-blend-mode: var(--w-card_glow_mix-blend-mode); }
.card:where([data-w~="card_guest_card--midnight_color"]).card--midnight .card-guest { color: var(--w-card_guest_card--midnight_color); }
.card:where([data-w~="card_guest_card--midnight_text-shadow"]).card--midnight .card-guest { text-shadow: var(--w-card_guest_card--midnight_text-shadow); }
.card:where([data-w~="card_guest_color"]) .card-guest { color: var(--w-card_guest_color); }
.card:where([data-w~="card_guest_text-shadow"]) .card-guest { text-shadow: var(--w-card_guest_text-shadow); }
.card:where([data-w~="card_host_marry_date_time_ar_color"])[lang="ar"] :is(.card-host, .card-marry, .card-date, .card-time) { color: var(--w-card_host_marry_date_time_ar_color); }
.card:where([data-w~="card_host_marry_date_time_en_color"]):not([lang="ar"]) :is(.card-host, .card-marry, .card-date, .card-time) { color: var(--w-card_host_marry_date_time_en_color); }
.card:where([data-w~="card_host_marry_date_time_en_font-family"]):not([lang="ar"]) :is(.card-host, .card-marry, .card-date, .card-time) { font-family: var(--w-card_host_marry_date_time_en_font-family); }
.card:where([data-w~="card_host_marry_date_time_en_font-style"]):not([lang="ar"]) :is(.card-host, .card-marry, .card-date, .card-time) { font-style: var(--w-card_host_marry_date_time_en_font-style); }
.card:where([data-w~="card_host_marry_time_alt_display"]) :is(.card-host, .card-marry, .card-time, .card-names-alt) { display: var(--w-card_host_marry_time_alt_display); }
.card:where([data-w~="card_host_marry_time_ar_color"])[lang="ar"] :is(.card-host, .card-marry, .card-time) { color: var(--w-card_host_marry_time_ar_color); }
.card:where([data-w~="card_host_marry_time_display"]) :is(.card-host, .card-marry, .card-time) { display: var(--w-card_host_marry_time_display); }
.card:where([data-w~="card_host_time_alt_display"]) :is(.card-host, .card-time, .card-names-alt) { display: var(--w-card_host_time_alt_display); }
.card:where([data-w~="card_initials-amp_display"]) .card-initials-amp { display: var(--w-card_initials-amp_display); }
.card:where([data-w~="card_initials-amp_font-size"]) .card-initials-amp { font-size: var(--w-card_initials-amp_font-size); }
.card:where([data-w~="card_initials_color"]) .card-initials { color: var(--w-card_initials_color); }
.card:where([data-w~="card_initials_flex-direction"]) .card-initials { flex-direction: var(--w-card_initials_flex-direction); }
.card:where([data-w~="card_initials_font-family"]) .card-initials { font-family: var(--w-card_initials_font-family); }
.card:where([data-w~="card_initials_font-size"]) .card-initials { font-size: var(--w-card_initials_font-size); }
.card:where([data-w~="card_initials_font-style"]) .card-initials { font-style: var(--w-card_initials_font-style); }
.card:where([data-w~="card_initials_font-weight"]) .card-initials { font-weight: var(--w-card_initials_font-weight); }
.card:where([data-w~="card_initials_gap"]) .card-initials { gap: var(--w-card_initials_gap); }
.card:where([data-w~="card_initials_max-height"]) .card-initials { max-height: var(--w-card_initials_max-height); }
.card:where([data-w~="card_initials_max-width"]) .card-initials { max-width: var(--w-card_initials_max-width); }
.card:where([data-w~="card_initials_overflow"]) .card-initials { overflow: var(--w-card_initials_overflow); }
.card:where([data-w~="card_initials_text-shadow"]) .card-initials { text-shadow: var(--w-card_initials_text-shadow); }
.card:where([data-w~="card_initials_translate"]) .card-initials { translate: var(--w-card_initials_translate); }
.card:where([data-w~="card_initials_white-space"]) .card-initials { white-space: var(--w-card_initials_white-space); }
.card:where([data-w~="card_marry_ar_font-family"])[lang="ar"] .card-marry { font-family: var(--w-card_marry_ar_font-family); }
.card:where([data-w~="card_marry_ar_font-weight"])[lang="ar"] .card-marry { font-weight: var(--w-card_marry_ar_font-weight); }
.card:where([data-w~="card_marry_ar_letter-spacing"])[lang="ar"] .card-marry { letter-spacing: var(--w-card_marry_ar_letter-spacing); }
.card:where([data-w~="card_marry_ar_text-transform"])[lang="ar"] .card-marry { text-transform: var(--w-card_marry_ar_text-transform); }
.card:where([data-w~="card_marry_color"]) .card-marry { color: var(--w-card_marry_color); }
.card:where([data-w~="card_marry_en_font-style"]):not([lang="ar"]) .card-marry { font-style: var(--w-card_marry_en_font-style); }
.card:where([data-w~="card_marry_font-family"]) .card-marry { font-family: var(--w-card_marry_font-family); }
.card:where([data-w~="card_marry_font-size"]) .card-marry { font-size: var(--w-card_marry_font-size); }
.card:where([data-w~="card_marry_font-style"]) .card-marry { font-style: var(--w-card_marry_font-style); }
.card:where([data-w~="card_marry_font-weight"]) .card-marry { font-weight: var(--w-card_marry_font-weight); }
.card:where([data-w~="card_marry_letter-spacing"]) .card-marry { letter-spacing: var(--w-card_marry_letter-spacing); }
.card:where([data-w~="card_marry_margin"]) .card-marry { margin: var(--w-card_marry_margin) !important; }
.card:where([data-w~="card_marry_order"]) .card-marry { order: var(--w-card_marry_order); }
.card:where([data-w~="card_marry_text-shadow"]) .card-marry { text-shadow: var(--w-card_marry_text-shadow); }
.card:where([data-w~="card_marry_text-transform"]) .card-marry { text-transform: var(--w-card_marry_text-transform); }
.card:where([data-w~="card_names_-webkit-text-stroke"]) .card-names { -webkit-text-stroke: var(--w-card_names_-webkit-text-stroke); }
.card:where([data-w~="card_names_align-items"]) .card-names { align-items: var(--w-card_names_align-items); }
.card:where([data-w~="card_names_ar_-webkit-text-stroke"])[lang="ar"] .card-names { -webkit-text-stroke: var(--w-card_names_ar_-webkit-text-stroke); }
.card:where([data-w~="card_names_ar_font-family"])[lang="ar"] .card-names { font-family: var(--w-card_names_ar_font-family); }
.card:where([data-w~="card_names_ar_font-size"])[lang="ar"] .card-names { font-size: var(--w-card_names_ar_font-size); }
.card:where([data-w~="card_names_ar_font-style"])[lang="ar"] .card-names { font-style: var(--w-card_names_ar_font-style); }
.card:where([data-w~="card_names_ar_font-weight"])[lang="ar"] .card-names { font-weight: var(--w-card_names_ar_font-weight); }
.card:where([data-w~="card_names_ar_letter-spacing"])[lang="ar"] .card-names { letter-spacing: var(--w-card_names_ar_letter-spacing); }
.card:where([data-w~="card_names_ar_line-height"])[lang="ar"] .card-names { line-height: var(--w-card_names_ar_line-height); }
.card:where([data-w~="card_names_ar_opacity"])[lang="ar"] .card-names { opacity: var(--w-card_names_ar_opacity); }
.card:where([data-w~="card_names_ar_padding-left"])[lang="ar"] .card-names { padding-left: var(--w-card_names_ar_padding-left); }
.card:where([data-w~="card_names_ar_text-transform"])[lang="ar"] .card-names { text-transform: var(--w-card_names_ar_text-transform); }
.card:where([data-w~="card_names_column-gap"]) .card-names { column-gap: var(--w-card_names_column-gap); }
.card:where([data-w~="card_names_display"]) .card-names { display: var(--w-card_names_display); }
.card:where([data-w~="card_names_en_font-weight"]):not([lang="ar"]) .card-names { font-weight: var(--w-card_names_en_font-weight); }
.card:where([data-w~="card_names_en_line-height"]):not([lang="ar"]) .card-names { line-height: var(--w-card_names_en_line-height); }
.card:where([data-w~="card_names_en_text-transform"]):not([lang="ar"]) .card-names { text-transform: var(--w-card_names_en_text-transform); }
.card:where([data-w~="card_names_flex-direction"]) .card-names { flex-direction: var(--w-card_names_flex-direction); }
.card:where([data-w~="card_names_flex-wrap"]) .card-names { flex-wrap: var(--w-card_names_flex-wrap); }
.card:where([data-w~="card_names_font-size"]) .card-names { font-size: var(--w-card_names_font-size); }
.card:where([data-w~="card_names_font-style"]) .card-names { font-style: var(--w-card_names_font-style); }
.card:where([data-w~="card_names_font-weight"]) .card-names { font-weight: var(--w-card_names_font-weight); }
.card:where([data-w~="card_names_justify-content"]) .card-names { justify-content: var(--w-card_names_justify-content); }
.card:where([data-w~="card_names_letter-spacing"]) .card-names { letter-spacing: var(--w-card_names_letter-spacing); }
.card:where([data-w~="card_names_line-height"]) .card-names { line-height: var(--w-card_names_line-height); }
.card:where([data-w~="card_names_opacity"]) .card-names { opacity: var(--w-card_names_opacity); }
.card:where([data-w~="card_names_order"]) .card-names { order: var(--w-card_names_order); }
.card:where([data-w~="card_names_padding-left"]) .card-names { padding-left: var(--w-card_names_padding-left); }
.card:where([data-w~="card_names_paint-order"]) .card-names { paint-order: var(--w-card_names_paint-order); }
.card:where([data-w~="card_names_span_ar_opacity"])[lang="ar"] .card-names > span { opacity: var(--w-card_names_span_ar_opacity); }
.card:where([data-w~="card_names_span_max-width"]) .card-names > span { max-width: var(--w-card_names_span_max-width); }
.card:where([data-w~="card_names_span_min-width"]) .card-names > span { min-width: var(--w-card_names_span_min-width); }
.card:where([data-w~="card_names_span_text-align"]) .card-names > span { text-align: var(--w-card_names_span_text-align); }
.card:where([data-w~="card_names_text-shadow"]) .card-names { text-shadow: var(--w-card_names_text-shadow); }
.card:where([data-w~="card_names_text-transform"]) .card-names { text-transform: var(--w-card_names_text-transform); }
.card:where([data-w~="card_names_text-wrap"]) .card-names { text-wrap: var(--w-card_names_text-wrap); }
.card:where([data-w~="card_names_white-space"]) .card-names { white-space: var(--w-card_names_white-space); }
.card:where([data-w~="card_seal_aspect-ratio"]) .card-seal { aspect-ratio: var(--w-card_seal_aspect-ratio); }
.card:where([data-w~="card_seal_border-radius"]) .card-seal { border-radius: var(--w-card_seal_border-radius); }
.card:where([data-w~="card_self_--u"]) { --u: var(--w-card_self_--u); }
.card:where([data-w~="card_self_--wr"]) { --wr: var(--w-card_self_--wr); }
.card:where([data-w~="card_self_background"]) { background: var(--w-card_self_background); }
.card:where([data-w~="card_self_card--midnight_background"]).card--midnight { background: var(--w-card_self_card--midnight_background); }
.card:where([data-w~="card_tap_bottom"]) .card-tap { bottom: var(--w-card_tap_bottom); }
.card:where([data-w~="card_tap_card--midnight_color"]).card--midnight .card-tap { color: var(--w-card_tap_card--midnight_color); }
.card:where([data-w~="card_tap_card--midnight_text-shadow"]).card--midnight .card-tap { text-shadow: var(--w-card_tap_card--midnight_text-shadow); }
.card:where([data-w~="card_tap_color"]) .card-tap { color: var(--w-card_tap_color); }
.card:where([data-w~="card_tap_guest_color"]) :is(.card-tap, .card-guest) { color: var(--w-card_tap_guest_color); }
.card:where([data-w~="card_tap_guest_text-shadow"]) :is(.card-tap, .card-guest) { text-shadow: var(--w-card_tap_guest_text-shadow); }
.card:where([data-w~="card_tap_text-shadow"]) .card-tap { text-shadow: var(--w-card_tap_text-shadow); }
.card:where([data-w~="card_words_--fit"]) .card-words { --fit: var(--w-card_words_--fit); }
.card:where([data-w~="card_words_after_background"]) .card-words::after { background: var(--w-card_words_after_background); }
.card:where([data-w~="card_words_after_bottom"]) .card-words::after { bottom: var(--w-card_words_after_bottom); }
.card:where([data-w~="card_words_after_content"]) .card-words::after { content: var(--w-card_words_after_content); }
.card:where([data-w~="card_words_after_height"]) .card-words::after { height: var(--w-card_words_after_height); }
.card:where([data-w~="card_words_after_left"]) .card-words::after { left: var(--w-card_words_after_left); }
.card:where([data-w~="card_words_after_pointer-events"]) .card-words::after { pointer-events: var(--w-card_words_after_pointer-events); }
.card:where([data-w~="card_words_after_position"]) .card-words::after { position: var(--w-card_words_after_position); }
.card:where([data-w~="card_words_after_transform"]) .card-words::after { transform: var(--w-card_words_after_transform); }
.card:where([data-w~="card_words_after_transform-origin"]) .card-words::after { transform-origin: var(--w-card_words_after_transform-origin); }
.card:where([data-w~="card_words_after_width"]) .card-words::after { width: var(--w-card_words_after_width); }
.card:where([data-w~="card_words_align-items"]) .card-words { align-items: var(--w-card_words_align-items); }
.card:where([data-w~="card_words_background"]) .card-words { background: var(--w-card_words_background); }
.card:where([data-w~="card_words_before_background"]) .card-words::before { background: var(--w-card_words_before_background); }
.card:where([data-w~="card_words_before_content"]) .card-words::before { content: var(--w-card_words_before_content); }
.card:where([data-w~="card_words_before_height"]) .card-words::before { height: var(--w-card_words_before_height); }
.card:where([data-w~="card_words_before_inset"]) .card-words::before { inset: var(--w-card_words_before_inset); }
.card:where([data-w~="card_words_before_left"]) .card-words::before { left: var(--w-card_words_before_left); }
.card:where([data-w~="card_words_before_pointer-events"]) .card-words::before { pointer-events: var(--w-card_words_before_pointer-events); }
.card:where([data-w~="card_words_before_position"]) .card-words::before { position: var(--w-card_words_before_position); }
.card:where([data-w~="card_words_before_top"]) .card-words::before { top: var(--w-card_words_before_top); }
.card:where([data-w~="card_words_before_transform"]) .card-words::before { transform: var(--w-card_words_before_transform); }
.card:where([data-w~="card_words_before_transform-origin"]) .card-words::before { transform-origin: var(--w-card_words_before_transform-origin); }
.card:where([data-w~="card_words_before_width"]) .card-words::before { width: var(--w-card_words_before_width); }
.card:where([data-w~="card_words_before_z-index"]) .card-words::before { z-index: var(--w-card_words_before_z-index); }
.card:where([data-w~="card_words_color"]) .card-words { color: var(--w-card_words_color); }
.card:where([data-w~="card_words_column-gap"]) .card-words { column-gap: var(--w-card_words_column-gap); }
.card:where([data-w~="card_words_display"]) .card-words { display: var(--w-card_words_display); }
.card:where([data-w~="card_words_flex-direction"]) .card-words { flex-direction: var(--w-card_words_flex-direction); }
.card:where([data-w~="card_words_flex-wrap"]) .card-words { flex-wrap: var(--w-card_words_flex-wrap); }
.card:where([data-w~="card_words_host_marry_date_time_place_text-shadow"]) .card-words :is(.card-host, .card-marry, .card-date, .card-time, .card-place) { text-shadow: var(--w-card_words_host_marry_date_time_place_text-shadow); }
.card:where([data-w~="card_words_isolation"]) .card-words { isolation: var(--w-card_words_isolation); }
.card:where([data-w~="card_words_justify-content"]) .card-words { justify-content: var(--w-card_words_justify-content); }
.card:where([data-w~="card_words_left"]) .card-words { left: var(--w-card_words_left); }
.card:where([data-w~="card_words_padding"]) .card-words { padding: var(--w-card_words_padding); }
.card:where([data-w~="card_words_right"]) .card-words { right: var(--w-card_words_right); }
.card:where([data-w~="card_words_text-align"]) .card-words { text-align: var(--w-card_words_text-align); }
.card:where([data-w~="card_words_text-shadow"]) .card-words { text-shadow: var(--w-card_words_text-shadow); }
.card:where([data-w~="card_words_top"]) .card-words { top: var(--w-card_words_top); }
.card.card:where([data-w~="cardx_marry_data-names-arrive_settle_opacity"])[data-names-arrive="settle"] .card-marry { opacity: var(--w-cardx_marry_data-names-arrive_settle_opacity); }
.card.card:where([data-w~="cardx_marry_is-open_data-names-arrive_settle_animation"]).is-open[data-names-arrive="settle"] .card-marry { animation: var(--w-cardx_marry_is-open_data-names-arrive_settle_animation); }
.card.card:where([data-w~="cardx_print_card--plum_text-shadow"]).card--plum .card-words.card-print p.card-pr { text-shadow: var(--w-cardx_print_card--plum_text-shadow); }
.card.card.card:where([data-w~="cardxx_initials-amp_display"]) .card-initials-amp { display: var(--w-cardxx_initials-amp_display); }
.card.card.card:where([data-w~="cardxx_initials-amp_font-size"]) .card-initials-amp { font-size: var(--w-cardxx_initials-amp_font-size); }
.card.card.card:where([data-w~="cardxx_initials_color"]) .card-initials { color: var(--w-cardxx_initials_color); }
.card.card.card:where([data-w~="cardxx_initials_flex-direction"]) .card-initials { flex-direction: var(--w-cardxx_initials_flex-direction); }
.card.card.card:where([data-w~="cardxx_initials_font-family"]) .card-initials { font-family: var(--w-cardxx_initials_font-family); }
.card.card.card:where([data-w~="cardxx_initials_font-size"]) .card-initials { font-size: var(--w-cardxx_initials_font-size); }
.card.card.card:where([data-w~="cardxx_initials_font-style"]) .card-initials { font-style: var(--w-cardxx_initials_font-style); }
.card.card.card:where([data-w~="cardxx_initials_font-weight"]) .card-initials { font-weight: var(--w-cardxx_initials_font-weight); }
.card.card.card:where([data-w~="cardxx_initials_gap"]) .card-initials { gap: var(--w-cardxx_initials_gap); }
.card.card.card:where([data-w~="cardxx_initials_letter-spacing"]) .card-initials { letter-spacing: var(--w-cardxx_initials_letter-spacing); }
.card.card.card:where([data-w~="cardxx_initials_max-height"]) .card-initials { max-height: var(--w-cardxx_initials_max-height); }
.card.card.card:where([data-w~="cardxx_initials_max-width"]) .card-initials { max-width: var(--w-cardxx_initials_max-width); }
.card.card.card:where([data-w~="cardxx_initials_overflow"]) .card-initials { overflow: var(--w-cardxx_initials_overflow); }
.card.card.card:where([data-w~="cardxx_initials_text-shadow"]) .card-initials { text-shadow: var(--w-cardxx_initials_text-shadow); }
.card.card.card:where([data-w~="cardxx_initials_translate"]) .card-initials { translate: var(--w-cardxx_initials_translate); }
.card.card.card:where([data-w~="cardxx_initials_white-space"]) .card-initials { white-space: var(--w-cardxx_initials_white-space); }
.card.card.card:where([data-w~="cardxx_seal_aspect-ratio"]) .card-seal { aspect-ratio: var(--w-cardxx_seal_aspect-ratio); }
.card.card.card:where([data-w~="cardxx_seal_border-radius"]) .card-seal { border-radius: var(--w-cardxx_seal_border-radius); }
@media (prefers-reduced-motion: reduce) {
  .card:where([data-w~="calm_age_animation"]) .card-age { animation: var(--w-calm_age_animation) !important; }
  .card:where([data-w~="calm_age_opacity"]) .card-age { opacity: var(--w-calm_age_opacity) !important; }
  .card.card:where([data-w~="calmx_marry_data-names-arrive_settle_animation"])[data-names-arrive="settle"] .card-marry { animation: var(--w-calmx_marry_data-names-arrive_settle_animation) !important; }
  .card.card:where([data-w~="calmx_marry_data-names-arrive_settle_opacity"])[data-names-arrive="settle"] .card-marry { opacity: var(--w-calmx_marry_data-names-arrive_settle_opacity) !important; }
}
/* ==== words: end ==== */

/* ==== News banner and More events (Template chat, 21 Nov 2026). Classic and v2 pages both load this file. ====
   src/pages/news.js and extras.js print a small plain <style> in the body; these rules start at `body` so they win over it.
   Both use the real deckle-edged cotton paper (media/img/deckle-*, cut from the site's own photo). */
body .gi-news { display: block;
  position: relative; z-index: 60; box-sizing: border-box; width: 100%; margin: 0 0 -10px; padding: 12px 18px 14px; text-align: center;
  color: var(--plum, #3A172C); font: 400 16px/1.45 var(--f-text);
  border: 0 solid transparent; border-bottom-width: 10px; border-image: url("/media/img/deckle-card.webp") 0 60 34 60 / 0 0 10px 0 round;
  background: #ECE7D8 url("/media/img/deckle-paper.jpg") center / cover no-repeat padding-box;
  filter: drop-shadow(0 6px 10px rgba(16, 6, 12, 0.3));
}
body .gi-news > p { max-width: min(46rem, 100%); margin: 0 auto; text-align: center; }
body .gi-news .gi-news-k { font-size: 16px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #6B3F3C; opacity: 1; }
body .gi-news .gi-news-day { display: block; letter-spacing: 0.02em; text-transform: none; font-weight: 400; color: var(--ink-soft, #6B4A50); }
body .gi-news .gi-news-t { margin-top: 2px; font-family: "Cormorant Garamond", "Amiri", serif; font-weight: 600; font-size: 21px; line-height: 1.35; text-wrap: balance; }
html[lang="ar"] body .gi-news .gi-news-k { letter-spacing: normal; font-family: "IBM Plex Sans Arabic", var(--f-text); }
html[lang="ar"] body .gi-news .gi-news-day { letter-spacing: normal; }
html[lang="ar"] body .gi-news .gi-news-t { font-family: "Amiri", "Cormorant Garamond", serif; font-weight: 700; font-size: 19px; line-height: 1.7; }
@media (min-width: 1100px) { body .gi-news { padding-block: clamp(16px, 0.9vw, 34px) clamp(18px, 1vw, 38px); } body .gi-news .gi-news-k { font-size: clamp(16px, 0.62vw, 24px); } body .gi-news .gi-news-t { font-size: clamp(25px, 1.05vw, 40px); } html[lang="ar"] body .gi-news .gi-news-t { font-size: clamp(22px, 0.95vw, 36px); } }

body .gi-extras {
  grid-column: 1 / -1; box-sizing: border-box; width: min(100% - 28px, 520px); max-width: none; margin: 28px auto 12px; padding: 26px clamp(16px, 5vw, 32px) 24px;
  text-align: center; color: var(--plum, #3A172C);
  border: 12px solid transparent; border-image: url("/media/img/deckle-card.webp") 34 / 12px round;
  background: #ECE7D8 url("/media/img/deckle-paper.jpg") center / cover no-repeat padding-box;
  filter: drop-shadow(0 14px 22px rgba(16, 6, 12, 0.32)) drop-shadow(0 1px 2px rgba(16, 6, 12, 0.22));
}
body .gi-extras .gi-extras-h { margin: 0 0 8px; font-family: "Pinyon Script", "Cormorant Garamond", cursive; font-weight: 400; font-size: clamp(38px, 10.5vw, 48px); line-height: 1.25; color: var(--plum, #3A172C); letter-spacing: 0; text-transform: none; }
html[lang="ar"] body .gi-extras .gi-extras-h { font-family: "Aref Ruqaa", "Amiri", serif; font-weight: 700; font-size: clamp(32px, 9vw, 40px); line-height: 1.6; }
body .gi-extras ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
body .gi-extras .gi-extra { padding: 0; border: 0; border-radius: 0; background: none; }
body .gi-extras .gi-extra h3 { margin: 0 0 4px; font-family: "Cormorant Garamond", "Amiri", serif; font-weight: 600; font-size: 27px; line-height: 1.2; color: var(--plum, #3A172C); letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
body .gi-extras .gi-extra p { margin: 2px 0; font-family: var(--f-text); font-size: 17px; line-height: 1.5; color: var(--ink-soft, #6B4A50); }
body .gi-extras .gi-extra .gi-extra-when { font-family: "Cormorant Garamond", "Amiri", serif; font-weight: 500; font-size: 21px; line-height: 1.35; color: var(--plum, #3A172C); text-wrap: balance; }
body .gi-extras .gi-extra .gi-extra-line { margin-top: 6px; font-family: "Cormorant Garamond", "Amiri", serif; font-style: italic; font-size: 20px; line-height: 1.45; color: var(--plum, #3A172C); text-wrap: pretty; }
body .gi-extras .gi-extra a { display: inline-block; min-height: 44px; padding: 10px 6px 0; color: var(--plum, #3A172C); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
html[lang="ar"] body .gi-extras .gi-extra h3 { font-family: "Amiri", "Cormorant Garamond", serif; font-weight: 700; font-size: 25px; line-height: 1.5; }
html[lang="ar"] body .gi-extras .gi-extra :is(.gi-extra-when, .gi-extra-line) { font-family: "Amiri", "Cormorant Garamond", serif; font-style: normal; font-size: 19px; line-height: 1.7; }
body .gi-extras a:focus-visible { outline: 2px solid var(--plum, #3A172C); outline-offset: 3px; }
