/* Site B, The Garden Walk. A wedding estate in bright morning mist: every screen a real photograph edge to edge,
   one huge serif line, one small line, one button. Plum ink on the mist, ivory on a soft plum shade. Rose gold only
   as hairlines. Buttons: the photographed plum linen with ivory capitals. Nothing under 16 px. No parallax, no drift.
   Loaded after v2's site.css (tokens, fonts, .sheet, forms), only on front b. */

html[data-site="b"] { --b-mist: 251, 241, 236; --b-shade: 42, 16, 32; --b-bar-h: max(118px, 11svh); background: #F3E6D9; }
html[data-site="b"] body.b { background: #F3E6D9; color: var(--ink); font-size: 18px; }
html[data-site="b"] body.b:not(.b-page) { background: transparent; }
html.b-menu-open { overflow: hidden; }
body.b main { overflow-x: clip; }
body.b :is(p, h1, h2, h3, li) { hyphens: manual; }

/* ---------- photographs ---------- */
.b-photo, .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.b-photo { z-index: 0; display: block; }
.b-photo img { object-fit: cover; object-position: 50% 50%; display: block; }
.b-mist, .b-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
/* soft mist behind the words, never a panel */
.b-mist { background: radial-gradient(ellipse 62% 46% at 50% 38%, rgba(var(--b-mist), 0.78), rgba(var(--b-mist), 0.42) 55%, rgba(var(--b-mist), 0) 100%),
  linear-gradient(to bottom, rgba(var(--b-mist), 0.72), rgba(var(--b-mist), 0) 22%); }
/* the plum shade of the bands he liked: strongest behind the words, the picture stays clear beyond */
.b-shade { background: linear-gradient(to bottom, rgba(var(--b-mist), 0.5), rgba(var(--b-mist), 0) 9%),
  radial-gradient(ellipse 66% 58% at 0% 100%, rgba(var(--b-shade), 0.74), rgba(var(--b-shade), 0.56) 34%, rgba(var(--b-shade), 0.22) 68%, rgba(var(--b-shade), 0) 100%); }
html[dir="rtl"] .b-shade { background: linear-gradient(to bottom, rgba(var(--b-mist), 0.5), rgba(var(--b-mist), 0) 9%),
  radial-gradient(ellipse 66% 58% at 100% 100%, rgba(var(--b-shade), 0.74), rgba(var(--b-shade), 0.56) 34%, rgba(var(--b-shade), 0.22) 68%, rgba(var(--b-shade), 0) 100%); }
@media (orientation: portrait), (max-width: 900px) {
  .b-shade, html[dir="rtl"] .b-shade { background: linear-gradient(to bottom, rgba(var(--b-mist), 0.5), rgba(var(--b-mist), 0) 11%),
    linear-gradient(to top, rgba(var(--b-shade), 0.58), rgba(var(--b-shade), 0.26) 28%, rgba(var(--b-shade), 0) 46%); }
}

/* ---------- type and buttons ---------- */
.b-h1 { margin: 0; font-family: var(--f-display); font-weight: 500; line-height: 0.98; letter-spacing: -0.01em; color: var(--plum);
  font-size: max(52px, min(12.5vw, 10.5svh)); text-wrap: balance; }
html[lang="ar"] .b-h1 { line-height: 1.3; letter-spacing: normal; font-weight: 700; font-size: max(46px, min(11vw, 9svh)); }
.b-h2 { margin: 0 0 0.4em; font-family: var(--f-display); font-weight: 500; line-height: 1.05; color: var(--plum); font-size: max(36px, min(8vw, 6svh)); }
html[lang="ar"] .b-h2 { line-height: 1.4; font-weight: 700; }
.b-h3 { margin: 1.4em 0 0.35em; font-family: var(--f-display); font-weight: 600; line-height: 1.15; color: var(--plum); font-size: max(26px, 2.6svh); }
html[lang="ar"] .b-h3 { line-height: 1.5; font-weight: 700; }
.b-line { margin: 0.7em auto 0; max-width: 30em; font-size: max(18px, min(4.6vw, 2.3svh)); line-height: 1.45; font-weight: 500; color: var(--ink); text-wrap: balance;
  text-shadow: 0 0 0.4em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.8); }
.b-btn { display: inline-flex; align-items: center; justify-content: center; min-height: max(52px, 6svh); padding: 0 32px; border-radius: 2px; white-space: nowrap;
  font-family: var(--f-text); font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--ivory); background: var(--plum); border: 0; cursor: pointer;
  box-shadow: none; touch-action: manipulation; user-select: none; } /* round 3: one flat plum square button, no shadow, no texture */
html[lang="ar"] .b-btn { letter-spacing: normal; font-size: max(18px, 2.1svh); }
.b-btn:hover { background: #5b2744; }
.b-link { font: inherit; font-size: max(17px, 1.9svh); color: var(--plum); background: none; border: 0; padding: 0.6em 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.b-act { margin: max(22px, 3.4svh) 0 0; }
.b-quiet { margin: 0.6em 0 0; }
.b-tpl-words .b-quiet { margin-top: 1em; }
:is(.b-btn, .b-link, .b-nav a, .b-lang, .b-menu-btn, .b-filter, .b-crop, .b-band):focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

/* ---------- the bar over the first picture ---------- */
.b-bar { position: absolute; top: 0; inset-inline: 0; z-index: 20; /* a slim solid plum strip on every page (owner 20 Nov) */
  display: flex; align-items: center; justify-content: space-between;
  padding: max(env(safe-area-inset-top), 10px) max(16px, 2.5vw) 10px; pointer-events: none;
  background: var(--plum); box-shadow: inset 0 -1px 0 rgba(201, 150, 130, 0.45), 0 2px 14px rgba(32, 10, 22, 0.18); }
.b-bar > * { pointer-events: auto; }
.b-logo { display: block; line-height: 0; position: relative; isolation: isolate; }
.b-logo img { width: clamp(150px, 11vw, 240px); height: auto; }
/* round 3: a soft ivory shade behind the mark only, so the foil never sits straight on leaves and roses */
.b-logo::before { content: ""; position: absolute; z-index: -1; inset: -22% -16%; pointer-events: none; background: radial-gradient(closest-side, rgba(251, 241, 236, 0.85), rgba(251, 241, 236, 0)); }
body.b-surf-dark .b-logo::before, body.b-card-dark .b-logo::before { display: none; }
.b-nav { display: flex; align-items: center; gap: max(26px, 3.6svh); font-size: max(16px, 1.85svh); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
html[lang="ar"] .b-nav { letter-spacing: normal; font-size: max(18px, 2.1svh); }
.b-nav a, .b-lang { color: var(--plum); text-decoration: none; padding: 0.6em 0; }
.b-nav a:hover, .b-nav a[aria-current] { color: var(--rose-lo); box-shadow: inset 0 -1px 0 var(--rose); }
.b-bar .b-logo::before { display: none; }
.b-bar .b-nav a, .b-bar .b-lang, .b-bar .b-menu-btn { color: #FBF1EC; }
.b-bar .b-nav a:hover, .b-bar .b-nav a[aria-current] { color: #EBC6B6; box-shadow: inset 0 -1px 0 #C99682; }
.b-lang { text-transform: none; letter-spacing: normal; }
.b-menu-btn { display: none; font: inherit; font-size: max(16px, 4.4vw); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum);
  background: none; border: 0; padding: 12px 0 12px 16px; cursor: pointer; }
html[lang="ar"] .b-menu-btn { letter-spacing: normal; }
/* The full-screen photographic menu (phones). */
.b-menu { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.b-menu[hidden] { display: none; }
.b-menu .b-mist { background: rgba(var(--b-mist), 0.62); }
.b-menu-links { position: relative; z-index: 2; display: grid; gap: 4px; text-align: center; }
.b-menu-links a { font-family: var(--f-display); font-size: max(44px, 11vw); line-height: 1.2; color: var(--plum); text-decoration: none; padding: 6px 12px; }
.b-menu-links .b-lang { font-size: max(26px, 6vw); }
.b-menu-close { position: absolute; z-index: 2; top: max(env(safe-area-inset-top), 16px); inset-inline-end: 16px; font: inherit; font-size: 18px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); background: none; border: 0; padding: 12px; cursor: pointer; }

/* Pages that keep v2's markup (editor, checkout, account): the bar sits in the flow over the garden backdrop. */
body.b:not(.b-page) .b-bar { position: relative; padding-bottom: 1svh; }
/* The backdrop of the form pages. Sign in and the other signed-out pages: the gate (sharp, its own 3840 and phone files). Editor, checkout
   and the account with an invitation: the place picture of the buyer's template; it is smaller than the screen, so it is shown
   deliberately defocused (an even blur of 0.4% of the screen width) under a soft mist shade, as depth behind the sharp card. */
body.b:not(.b-page)::before { content: ""; position: fixed; inset: 0; z-index: -2;
  background: #F3E6D9 url("/fronts/b/img/gate-1920.webp") center / cover no-repeat; }
@media (orientation: portrait) { body.b:not(.b-page)::before { background-image: url("/fronts/b/img/gate-phone-1215x2160.webp"); } }
@media (min-width: 2400px) and (orientation: landscape) { body.b:not(.b-page)::before { background-image: url("/fronts/b/img/gate-3840.webp"); } }
body.b.bd-place::before { background-image: var(--bd-wide); }
/* sharp whenever it is shown at or under 1.25 times (place-wide is 1920 wide: blur only on screens over 2400 px) */
@media (min-width: 2400px) and (orientation: landscape) { body.b.bd-place::before { filter: blur(0.4vw); transform: scale(1.03); } }
@media (orientation: portrait) { body.b.bd-place::before { background-image: var(--bd-tall); } }
body.b.bd-place::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--b-mist), 0.5), rgba(var(--b-mist), 0) 18%); }
/* A still card on a wide screen: the backdrop is its own open still (place-wide.jpg), left third and right third stretched and softly defocused, so
   no second card shows behind the form paper and the card preview. */
@media (min-width: 901px) and (orientation: landscape) {
  body.b.bd-still::before, body.b.bd-still::after { content: ""; position: fixed; inset: auto; top: -3%; bottom: -3%; width: 60%; z-index: -2; pointer-events: none;
    background: #b3aa9d var(--bd-wide) no-repeat; background-size: 400% 100%; filter: blur(max(10px, 0.5vw)); transform: none; }
  body.b.bd-still::before { left: -1%; right: auto; background-position: 0 0; }
  body.b.bd-still::after { right: -1%; left: auto; background-position: 100% 0; }
}

/* ---------- first screens ---------- */
.b-first { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; display: grid; }
.b-words { position: relative; z-index: 2; align-self: start; justify-self: center; text-align: center; display: grid; justify-items: center; max-width: min(92vw, 1500px);
  padding: calc(var(--b-bar-h) + 6svh) max(16px, 3vw) 10svh; }
.b-first.is-plum .b-words { align-self: end; justify-self: start; text-align: start; justify-items: start; padding-bottom: max(56px, 9svh); padding-inline: max(16px, 5vw); }
.b-first.is-plum .b-h1, .b-first.is-plum .b-line, .b-first.is-plum .b-soon-mark { color: var(--ivory); text-shadow: 0 2px 24px rgba(var(--b-shade), 0.55); }
.b-first.is-plum .b-line { margin-inline: 0; }
.b-soon-mark { margin: 1em 0 0; font-size: max(18px, 2.1svh); letter-spacing: 0.14em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .b-words > *, .b-wall-head > *, .b-table-head > *, .b-tpl-words > *, .b-band-words > * { animation: b-appear 0.5s ease-out both; }
  .b-words > :nth-child(2), .b-wall-head > :nth-child(2), .b-table-head > :nth-child(2), .b-tpl-words > :nth-child(2) { animation-delay: 0.08s; }
  .b-words > :nth-child(n+3), .b-wall-head > :nth-child(n+3), .b-table-head > :nth-child(n+3), .b-tpl-words > :nth-child(n+3) { animation-delay: 0.16s; }
}
@keyframes b-appear { from { opacity: 0; } to { opacity: 1; } }

/* ---------- text continues on the paper sheet over the same photograph, softened ---------- */
.b-cont { position: relative; overflow: clip; clip-path: inset(0); isolation: isolate; padding: 10svh max(16px, 4vw) 12svh; }
/* the photograph is one screen tall and stays fixed behind the scrolling sheet, never stretched over the whole page */
.b-cont-photo { position: fixed; z-index: -1; height: 100svh; }
.b-cont-photo img { filter: blur(4px) saturate(0.95); transform: scale(1.03); } /* round 3: the photograph stays sharp behind the paper (4 px at most) */
.b-cont::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(var(--b-mist), 0.10); pointer-events: none; } /* round 6, N16: a lighter veil keeps the photo sharp */
.b-cont-in { position: relative; z-index: 1; max-width: max(900px, 62.5vw); margin-inline: auto; }
.b-sheet { font-size: max(19px, 1.32vw); line-height: 1.65; }
.b-sheet p { margin: 0 0 1em; }
.b-statement { font-family: var(--f-display); font-size: max(28px, 2.6svh); line-height: 1.3; color: var(--plum); }
.b-steps { margin: 0 0 1.2em; padding-inline-start: 1.2em; }
.b-step::marker { font-family: var(--f-display); color: var(--rose-lo); font-size: 1.3em; }
.b-step .b-h3 { margin-top: 0.8em; }
.b-facts { display: grid; gap: 1em; margin: 0 0 1em; }
.b-facts dt { font-family: var(--f-display); font-size: max(24px, 2.4svh); color: var(--plum); }
.b-facts dd { margin: 0.2em 0 0; }
.b-small { font-size: max(17px, 1.18vw); color: var(--ink-soft); }
.b-mail a, .b-mail-big a { color: var(--plum); }
.b-mail-big { margin: 1em 0 0; font-size: max(20px, 2.4svh); font-weight: 500; text-shadow: 0 0 0.4em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.8); }
.b-search { margin: max(22px, 3svh) auto 0; width: 100%; max-width: max(560px, 60svh); }
.b-search input { width: 100%; min-height: max(58px, 5.6svh); padding: 0 1.2em; font: inherit; font-size: max(19px, 2.1svh); color: var(--ink); border-radius: 2px;
  border: 0; background: #F3E9DC; } /* round 6, N14: a square paper-tone field, no outline */
.b-help .b-sheet, .b-faq { max-width: 720px; margin-inline: auto; }
/* round 3: questions with no browser triangle, Cormorant 24 px in plum */
.qa-item summary { list-style: none; cursor: pointer; position: relative; padding: 14px 44px 14px 0; font-family: var(--f-display); font-weight: 500; font-size: 24px; line-height: 1.3; color: var(--plum); min-height: 44px; }
html[dir="rtl"] .qa-item summary { padding: 14px 0 14px 44px; font-weight: 700; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::marker { content: ""; }
.qa-item summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; translate: 0 -50%; font-family: var(--f-text); font-size: 26px; color: var(--rose-lo); transition: transform 0.2s; }
.qa-item[open] summary::after { transform: rotate(45deg); }
.qa-item p { margin: 0; padding: 0 0 14px; max-width: 60ch; font-size: 18px; }
.qa-item[hidden], .qa-group[hidden] { display: none; }

/* ---------- the film wall (designs, occasion pages) ---------- */
.b-wall-page { position: relative; isolation: isolate; clip-path: inset(0); overflow: clip; min-height: 100svh; padding: calc(var(--b-bar-h) + 4svh) max(16px, 3vw) 12svh; }
.b-wall-page.is-short { padding-top: 10svh; }
.b-backdrop { position: fixed; z-index: -1; }
.b-wall-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(var(--b-mist), 0.10); pointer-events: none; }
.b-backdrop.is-soft img { filter: blur(4px) saturate(0.95); transform: scale(1.03); }
.b-wall-head { position: relative; text-align: center; margin: 0 auto 6svh; max-width: 1400px; }
.b-wall-head::before { content: ""; position: absolute; z-index: -1; inset: -18% -12% -22%;
  background: radial-gradient(closest-side, rgba(var(--b-mist), 0.82), rgba(var(--b-mist), 0.5) 60%, rgba(var(--b-mist), 0)); }
.b-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2em 1.2em; margin-top: 3svh; }
.b-filter { font-family: var(--f-display); font-size: max(26px, min(6vw, 3.6svh)); color: var(--plum); background: none; border: 0; padding: 0.15em 0.1em; cursor: pointer;
  text-shadow: 0 0 0.5em rgba(var(--b-mist), 1); }
.b-filter[aria-pressed="true"] { box-shadow: inset 0 -1px 0 var(--rose); color: var(--rose-lo); }
/* the film wall: one component (home, designs, occasion pages). Tiles edge to edge, parted by a thin light line. */
.b-wall-page:has(.b-fwall) { padding-bottom: 0; }
.b-wall-page .b-fwall { margin-inline: calc(-1 * max(16px, 3vw)); }
.b-fwall { --b-line: max(3px, 0.3svh); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--b-line); background: #2A1020; border-block: var(--b-line) solid #2A1020; } /* round 6, N8: the seams between tiles are the plum of the frame, not ivory hairlines */
.b-tile { position: relative; margin: 0; height: max(480px, 88svh); overflow: hidden; container-type: size; isolation: isolate; background: #3A172C; color: #FBF1EC; --fg: max(20px, 2.4cqh); }
.b-tile { grid-column: span 2; }
.b-tile.is-half { grid-column: span 3; }
.b-tile.is-wide { grid-column: 1 / -1; height: 80svh; } /* one tile left in the last row: it spans the width, film and poster cover it */
.b-tile[hidden] { display: none; }
.b-wall-all { width: 100%; max-width: none; box-sizing: border-box; grid-column: 1 / -1; margin: 0; padding: max(28px, 4svh) 16px; text-align: center; background: #3a1230 url("/fronts/b/img/home/paper-mid-2400.webp") center / cover; } /* round 6, N9: See all designs sits on the photographed plum paper, not a flat ivory strip */
.b-wall-all a { font-family: var(--f-display); font-size: max(30px, 3.6svh); color: var(--ivory); text-decoration: none; box-shadow: inset 0 -1px 0 var(--rose); padding: 0.2em 0.1em; display: inline-block; }
html[lang="ar"] .b-wall-all a { letter-spacing: 0; font-weight: 700; }
.b-tile-go { position: absolute; inset: 0; display: block; touch-action: manipulation; color: inherit; text-decoration: none; }
.b-tile-film, .b-tile-end, .b-tile-go .b-photo, .b-tile-go .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
/* sample names printed by code over the place part of the film, in the template's own font and place (same cover-fit box as the film) */
.b-tile-names { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.45s ease-out; }
.b-tile.is-names .b-tile-names { opacity: 1; }
.b-tile-names .b-tile-stage.card { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max(100cqw, 56.25cqh); background: transparent; overflow: visible; }
.b-tile-still img { filter: saturate(0.9); }
/* Fix 16: Sitara's title card sits low on the floor; on a tile it rises so the date stays clear of the caption bar (Sitara / arrow / PREMIUM) */
/* names that write in start when the tile shows them, not at page load */
.b-tile:not(.is-names) .b-tile-stage[data-names-arrive] :is(.card-age, .card-names, .card-date) { animation: none !important; }
/* a short soft plum shade, only over the lowest 16% of the tile */
.b-tile-go::after { content: ""; position: absolute; inset: auto 0 0; height: 16%; min-height: 110px; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--b-shade), 0.8) 0%, rgba(var(--b-shade), 0.55) 45%, rgba(var(--b-shade), 0) 100%); }
.b-tile-label { position: absolute; z-index: 2; inset-inline: var(--fg); bottom: max(20px, 3.2cqh); display: flex; align-items: center; gap: 0.32em;
  font-family: var(--f-display); font-weight: 500; font-size: max(30px, 4.6cqh); line-height: 1; white-space: nowrap; text-shadow: 0 0.04em 0.45em rgba(var(--b-shade), 0.6); }
html[lang="ar"] .b-tile-label { font-weight: 700; line-height: 1.3; }
.b-tile-label svg { flex: none; width: 0.62em; height: 0.62em; margin-top: 0.1em; fill: none; stroke: #F5D4CA; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease-out; }
html[dir="rtl"] .b-tile-label svg { scale: -1 1; }
.b-tile-go:hover svg { transform: translateX(5px); }
html[dir="rtl"] .b-tile-go:hover svg { transform: translateX(-5px); }
.b-tile-go:focus-visible { outline: 2px solid var(--rose-hi); outline-offset: -6px; }
.b-tile-soon { margin-inline-start: auto; font-family: var(--f-text); font-weight: 500; font-size: max(16px, 2.1cqh); letter-spacing: 0.16em; text-transform: uppercase; color: #F5D4CA; }
html[lang="ar"] .b-tile-soon { letter-spacing: 0; font-size: max(18px, 2.3cqh); text-transform: none; }
/* Premium: one small quiet word at the end of the tile's name line, no badge shape. */
.b-tile-tier { margin-inline-start: auto; font-family: var(--f-text); font-weight: 500; font-size: max(15px, 0.78vw); letter-spacing: 0.04em; text-transform: uppercase; color: #F5D4CA; opacity: 0.9; }
html[lang="ar"] .b-tile-tier { letter-spacing: 0; font-size: max(18px, 2.3cqh); text-transform: none; }
.b-tpl-tier { margin: 0.2em 0 0; font-family: var(--f-text); font-weight: 500; font-size: max(15px, 0.78vw); letter-spacing: 0.04em; text-transform: uppercase; color: var(--rose-lo); }
html[lang="ar"] .b-tpl-tier { letter-spacing: 0; font-size: max(18px, 2svh); text-transform: none; }

/* ---------- one design ----------
   Desktop and 4K: the template's OWN place picture fills the screen, sharp; the card stands on it at about 90% of the screen's
   height (never above 1.25 times its media: --card-cap) and opens by itself; the name, one line, the colours and ONE button sit
   beside it on a soft mist shade. Phone: the card fills the first screen, the name and the button sit over its lower part. */
.b-tpl { --card-cap: 2400px; --card-h: min(90svh, calc(100svh - 180px), var(--card-cap)); position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: grid;
  grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: max(40px, 6vw); padding: max(150px, 8svh) max(24px, 6vw) 2svh max(24px, 13vw); } /* round 3: the card starts 150 px or more below the top, clear of the logo */
@media (min-resolution: 1.5dppx) { .b-tpl { --card-cap: 1600px; } }
@media (min-resolution: 2dppx) { .b-tpl { --card-cap: 1200px; } }
.b-tpl-place, .b-tpl-place img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.b-tpl-place img { object-fit: cover; object-position: 50% 50%; }
/* place-wide.jpg is 1920 wide: on a screen over 2400 px (or a phone over 1.4 pixels per px) it would be an enlargement above 1.25 times, so it is
   shown deliberately defocused (0.4% of the screen width) as depth behind the sharp card, never as a soft enlargement.
   The card is capped at 1.25 times its 1080 x 1920 envelope and film (--card-cap); light.webp is a soft glow layer and is exempt. */
@media (min-width: 2400px) and (orientation: landscape) { .b-tpl-place img { filter: blur(min(4px, 0.4vw)); transform: scale(1.03); } }
@media (min-resolution: 1.4dppx) and (orientation: portrait) { .b-tpl-place img { filter: blur(min(4px, 0.4vw)); transform: scale(1.03); } }
@media (min-resolution: 1.4dppx) and (max-width: 900px) { .b-tpl-place img { filter: blur(min(4px, 0.4vw)); transform: scale(1.03); } }
/* No veil over the picture: it keeps its full colour to the right edge, softly defocused as depth behind the sharp card (the 4K rule above
   already blurs it; here the same on smaller screens). Only a thin light touch at the very top for the bar. */
@media (min-width: 901px) and (orientation: landscape) { .b-tpl-place img { filter: blur(min(4px, 0.3vw)) saturate(1.02); transform: scale(1.03); } }
/* A still card on a wide screen: the backdrop is the card's own open still (place-wide.jpg), its left third and right third stretched and softly
   defocused, so no second card shows behind the real one. On a phone or tall screen the full still stays behind the card as before. */
.b-tpl-sides { display: none; }
@media (min-width: 901px) and (orientation: landscape) {
  .b-tpl-place.is-still { display: none; }
  .b-tpl-sides { display: block; position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #b3aa9d; }
  .b-tpl-sides i { position: absolute; top: -3%; bottom: -3%; width: 60%; background: var(--side) no-repeat; background-size: 400% 100%; filter: blur(4px); }
  .b-tpl-sides i:first-child { left: -1%; background-position: 0 0; }
  .b-tpl-sides i:last-child { right: -1%; background-position: 100% 0; }
}
.b-tpl-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(var(--b-mist), 0.5), rgba(var(--b-mist), 0) 12%); }
html[dir="rtl"] .b-tpl-shade { background: linear-gradient(to bottom, rgba(var(--b-mist), 0.5), rgba(var(--b-mist), 0) 12%); }
/* the soft shade lives only behind the words block: ivory mist on a bright picture (plum words), see-through plum on a dark one (ivory words) */
@media (min-width: 901px) and (orientation: landscape) {
  .b-tpl-words::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -16% -26% -16% -18%;
    background: radial-gradient(closest-side, rgba(var(--b-mist), 0.94) 0%, rgba(var(--b-mist), 0.86) 50%, rgba(var(--b-mist), 0.5) 78%, rgba(var(--b-mist), 0) 100%); }
  html[dir="rtl"] .b-tpl-words::before { inset: -16% -18% -16% -26%; }
  .b-tpl[data-tone="dark"] .b-tpl-words::before { background: radial-gradient(closest-side, rgba(var(--b-shade), 0.66) 0%, rgba(var(--b-shade), 0.55) 45%, rgba(var(--b-shade), 0.26) 75%, rgba(var(--b-shade), 0) 100%); }
  .b-tpl[data-tone="dark"] .b-tpl-words :is(.b-h1, .b-line, .b-crop, .b-link) { color: var(--ivory); text-shadow: 0 2px 18px rgba(var(--b-shade), 0.6); }
  .b-tpl[data-tone="dark"] .b-tpl-words .b-tpl-tier { color: #F5D4CA; }
}
.b-tpl-card { height: var(--card-h); width: calc(var(--card-h) * 9 / 16); flex: none; box-shadow: 0 0 0 1px rgba(196, 138, 114, 0.5), 0 3em 5em -2em rgba(42, 16, 32, 0.5); }
.b-tpl-card .card { width: 100%; height: 100%; aspect-ratio: auto; }
.b-tpl-words { position: relative; max-width: 28em; font-size: max(16px, min(1.5vw, 2.4svh)); }
.b-tpl-words .b-h1 { font-size: max(64px, min(8.4vw, 13.5svh)); }
html[lang="ar"] .b-tpl-words .b-h1 { font-size: max(56px, min(7.6vw, 12svh)); }
.b-tpl-words .b-line { margin-inline: 0; max-width: 22em; font-size: max(18px, min(1.9vw, 2.9svh)); }
.b-crops { display: flex; gap: max(16px, 1.6vw); margin-top: max(22px, 3svh); }
.b-crop { position: relative; display: grid; gap: 8px; justify-items: center; padding: 0; background: none; border: 0; cursor: pointer; color: var(--plum);
  font: inherit; font-size: max(18px, 1.9svh); font-weight: 500; }
.b-crop img { width: max(112px, 9svh); aspect-ratio: 9 / 16; height: auto; object-fit: cover; box-shadow: 0 0 0 1px rgba(196, 138, 114, 0.45), 0 1em 1.6em -0.8em rgba(42, 16, 32, 0.5); }
.b-crop[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--rose), 0 1em 1.6em -0.8em rgba(42, 16, 32, 0.5); }
.b-crop[aria-pressed="true"] span { box-shadow: inset 0 -1px 0 var(--rose); }
/* "Watch the opening": a quiet second link, not a second button */
.b-tpl-words .b-quiet { margin-top: 0.9em; }
.b-tpl-words .b-link { color: var(--plum); font-weight: 500; text-shadow: 0 0 0.4em rgba(var(--b-mist), 1); }
/* the card is the main thing here: its small lines never drop under 16 px */
.b-tpl-card .card :is(.card-marry, .card-time) { font-size: max(16px, 5cqw); }
.b-tpl-card .card .card-date { font-size: max(16px, 6.2cqw); }
.b-tpl-card .card .card-initials-amp { font-size: max(16px, 0.62em); }
/* The design page card opens by itself and has its own button: the closed card's tap hint (made for the guest page) is never shown here, so no ghost line shows behind the Make it yours button after a colour is picked. */
.b-tpl-card .card :is(.card-tap, .card-guest) { display: none; }

/* ---------- occasions: the bands, each a full screen ---------- */
.b-band { position: relative; display: grid; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; text-decoration: none; }
.b-band + .b-band { border-top: 2px solid #2A1020; }
.b-band-words { position: relative; z-index: 2; align-self: end; display: grid; gap: 0.5em; padding: 0 max(16px, 5vw) max(56px, 9svh); max-width: 1500px; }
.b-band .b-h1 { line-height: 1.12; padding-bottom: 0.1em; }
.b-band .b-h1, .b-band .b-line { color: var(--ivory); text-shadow: 0 2px 24px rgba(var(--b-shade), 0.55); }
.b-band .b-line { margin: 0; }
.b-band-go { justify-self: start; margin-top: 0.9em; color: var(--ivory); font-size: max(17px, 1.9svh); letter-spacing: 0.14em; text-transform: uppercase; box-shadow: inset 0 -1px 0 var(--rose-hi); padding-bottom: 0.3em; }
html[lang="ar"] .b-band-go { letter-spacing: normal; font-size: max(19px, 2.1svh); }

/* ---------- prices: the table ----------
   The table picture fills the screen, sharp, fixed behind. The title sits in the bright mist at the top; the three
   place cards are solid photographed paper over the middle, so the near plate and linen show below them. */
.b-table { position: relative; isolation: isolate; clip-path: inset(0); overflow: clip; min-height: 100svh; padding: calc(var(--b-bar-h) + 1svh) max(16px, 4vw) 12svh; }
.b-table-photo img { object-position: 50% 50%; }
.b-table-head { position: relative; text-align: center; margin: 0 auto max(3svh, 22px); max-width: 1200px; }
.b-table-head .b-h1 { font-size: max(64px, min(14vw, 15svh)); }
html[lang="ar"] .b-table-head .b-h1 { font-size: max(56px, min(12vw, 13svh)); }
.b-table-head .b-line { margin-top: 0.3em; }
.b-cur { display: inline-flex; align-items: center; gap: 12px; margin-top: 1.6svh; font-size: max(18px, 1.9svh); }
.b-cur select { min-height: max(52px, 5.4svh); padding: 0 22px; font: inherit; font-size: max(18px, 1.9svh); color: var(--ink); border-radius: 999px; border: 1px solid rgba(162, 122, 114, 0.7); background: rgba(var(--b-mist), 0.94); }
.b-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: max(28px, 3vw); max-width: max(1700px, 66vw); margin: 0 auto 38svh; align-items: stretch; }
/* a solid photographed paper card: the paper sheet (see "the paper" below) */
.b-place { position: relative; display: flex; flex-direction: column; text-align: center; color: var(--ink); }
.b-place-name { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: max(36px, 4.2svh); color: var(--plum); }
.b-place-price { margin: 0.2em 0 0.5em; font-family: var(--f-display); font-size: max(64px, 8svh); line-height: 1.05; color: var(--rose-lo); } /* round 6, N13: the price is the second size */
.b-place-designs { margin: 0 0 0.9em; font-size: max(18px, 1.8svh); line-height: 1.4; font-weight: 500; color: var(--plum); }
.b-place-feats { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 12px; font-size: max(18px, 1.8svh); line-height: 1.4; }
.b-place .b-act { margin-top: 1.2em; }
.b-table-note { position: relative; text-align: center; max-width: 46em; margin: 0 auto; font-size: max(18px, 1.9svh); font-weight: 500; color: var(--plum); text-shadow: 0 0 0.4em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.8); }
.b-faq { margin-top: 8svh; }

/* ---------- the closing band ---------- */
.b-close { position: relative; isolation: isolate; min-height: 92svh; display: grid; overflow: hidden; color: var(--ivory); }
.b-close::before { content: ""; position: absolute; inset: 0 0 auto; height: 16svh; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(var(--b-mist), 0.75), rgba(var(--b-mist), 0)); }
.b-close-photo img { object-position: 50% 32%; }
.b-close-ext { display: none; }
.b-close-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(var(--b-shade), 0.88), rgba(var(--b-shade), 0.55) 34%, rgba(var(--b-shade), 0) 62%); }
.b-close-in { position: relative; z-index: 2; align-self: end; display: grid; justify-items: center; text-align: center; gap: 2.4svh; padding: 0 max(16px, 4vw) max(36px, 5svh); }
.b-close-line { margin: 0; font-family: var(--f-display); font-size: max(30px, min(7vw, 4.4svh)); line-height: 1.15; max-width: 22em; text-wrap: balance; }
.b-close-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em 2em; }
.b-close-links a { font-family: var(--f-display); font-size: max(30px, min(7vw, 4svh)); color: var(--ivory); text-decoration: none; box-shadow: inset 0 -1px 0 var(--rose-hi); }
.b-close-small { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3em 1.2em; font-size: max(16px, 1.1vw); line-height: 1.6; color: rgba(var(--b-mist), 0.9); }
.b-close-small span { flex-basis: 100%; }
.b-close-small a { color: rgba(var(--b-mist), 0.95); }

/* v2's floating dove sits above the photographs on this front too; the draft line lives in the closing band. */

/* ---------- phones and tall screens ---------- */
@media (orientation: portrait), (max-width: 900px) {
  html[data-site="b"] { --b-bar-h: 112px; }
  .b-nav { display: none; }
  .b-menu-btn { display: block; }
  .b-bar { padding-top: max(env(safe-area-inset-top), 14px); }
  .b-words { padding-top: calc(var(--b-bar-h) + 10svh); }
  .b-h1 { font-size: max(52px, min(15vw, 9svh)); }
  html[lang="ar"] .b-h1 { font-size: max(46px, min(13vw, 8svh)); }
  .b-line { font-size: max(18px, 4.6vw); }
  .b-btn { min-height: 56px; font-size: 15px; padding: 0 28px; }
  html[lang="ar"] .b-btn { font-size: 18px; }
  .b-fwall { grid-template-columns: 1fr; }
  .b-tile, .b-tile.is-half, .b-tile.is-wide { grid-column: auto; }
  .b-tile.is-wide { height: max(440px, 78svh); }
  .b-tile { height: max(440px, 78svh); }
  .b-tile-label { font-size: max(28px, 8cqw); bottom: max(18px, 3cqh); }
  /* the home: one sideways row that snaps; the next film peeks in */
  .b-fwall.is-row { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .b-fwall.is-row::-webkit-scrollbar { display: none; }
  .b-fwall.is-row .b-tile { flex: 0 0 min(86%, calc(max(440px, 78svh) * 0.6)); scroll-snap-align: center; scroll-snap-stop: always; }
  .b-fwall.is-row .b-tile:first-child { scroll-snap-align: start; }
  .b-fwall.is-row .b-tile:last-child { scroll-snap-align: end; }
  /* design page, phone: the card fills the first screen; the name and the button sit over its lower part */
  .b-tpl { display: flex; flex-direction: column; padding: 44px 0 6svh; min-height: 100svh; } /* round 3: the card starts 44 px down, so the larger logo never sits on its printed names */
  .b-tpl-card { width: 100%; height: calc(100svh - 44px); box-shadow: none; flex: none; }
  .b-tpl-shade { background: linear-gradient(to bottom, rgba(var(--b-shade), 0) 0, rgba(var(--b-shade), 0) 100svh, rgba(var(--b-shade), 0.8) 112svh); }
  html[dir="rtl"] .b-tpl-shade { background: linear-gradient(to bottom, rgba(var(--b-shade), 0) 0, rgba(var(--b-shade), 0) 100svh, rgba(var(--b-shade), 0.8) 112svh); }
  .b-tpl-words { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: none; margin-top: -215px; padding: 0 16px;
    /* a still card: start below the card's last printed word (its top + height, from the registry), with a gap; if that is under the card, the overlay sits below it */
    margin-top: max(-215px, calc(var(--pr-y, 0) * 1svh + var(--pr-h, 0) * 1vw + 40px - 100svh)); z-index: 3; position: relative; }
  .b-tpl-words::before { content: ""; position: absolute; z-index: -1; inset: -90px 0 0; pointer-events: none;
    background: linear-gradient(to top, rgba(var(--b-shade), 0.82), rgba(var(--b-shade), 0.55) 55%, rgba(var(--b-shade), 0)); }
  .b-tpl-head { order: 1; }
  .b-tpl-words .b-act { order: 2; margin-top: 14px; }
  .b-tpl-words .b-line { order: 3; margin: 6svh auto 0; color: var(--ivory); text-shadow: 0 2px 18px rgba(var(--b-shade), 0.6); }
  .b-tpl-words .b-crops { order: 4; justify-content: center; }
  .b-tpl-words .b-quiet { order: 5; }
  .b-tpl-words .b-h1, .b-tpl-words .b-tpl-tier, .b-crop { color: var(--ivory); text-shadow: 0 2px 18px rgba(var(--b-shade), 0.6); }
  .b-tpl-words .b-link { color: var(--ivory); text-shadow: 0 2px 18px rgba(var(--b-shade), 0.6); }
  .b-tpl-words .b-h1 { font-size: max(52px, 15vw); }
  html[lang="ar"] .b-tpl-words .b-h1 { font-size: max(48px, 13vw); }
  .b-tpl-words .b-line { font-size: max(18px, 4.6vw); }
  .b-tpl-words .b-tpl-tier { color: #F5D4CA; text-shadow: none; }
  .b-places { grid-template-columns: 1fr; max-width: 560px; }
  .b-close-links a { font-size: max(28px, 7vw); }
}
@media (prefers-reduced-motion: reduce) { .b-btn, .b-link { transition: none; } }

/* ---------- form pages (v2 markup kept: editor, checkout, sign in, account) ----------
   The garden fills the screen behind; every form sits on the photographed ivory paper with the torn edge (the same
   price-card photo as v2's .sheet, nine-sliced), never on a flat panel. */
body.b:not(.b-page) { --nav-h: 0px; background: transparent; }
body.b:not(.b-page) :is(.ground-plum, .ground-ivory, .ground-ink, .ground-blush, .ground-paper), body.b.page-editor, body.b .ed-preview, body.b .auth-panel { background: transparent; }
body.b:not(.b-page) :is(.ground-plum, .ground-ink) { color: var(--ink); --focus: var(--plum); }
body.b:not(.b-page) :is(.co-title, .acc-head h1, .acc-head p, .acc-head a:not(.btn, .acc-tabs a, .acc-out)) { color: var(--plum); text-shadow: 0 0 0.4em rgba(var(--b-mist), 1), 0 0 1.2em rgba(var(--b-mist), 0.9); }
body.b .co-preview-names { color: var(--plum); text-shadow: 0 0 0.4em rgba(var(--b-mist), 1); }
/* the paper: every card and sheet (prices, forms, text sheets, account) is the same real paper sheet, a nine-slice with a soft deckled
   edge on transparent, so the garden shows through the edge; the soft shadow is drawn by CSS, warm and wide, never a dark line. */
body.b { --b-paper: url("/fronts/b/img/paper-sheet.webp"); --paper-slice: 80; }
body.b :is(.sheet, .b-place),
body.b:not(.b-page) :is(.page-editor .ed-form, .auth-form, .co-main, .acc-list > .wrap, .acc-one > .wrap, section.ground-ivory > .wrap) {
  --sheet-k: 0.44; --edge: calc(var(--paper-slice) * 1px * var(--sheet-k));
  position: relative; color: var(--ink);
  border: var(--edge) solid transparent;
  border-image: var(--b-paper) var(--paper-slice) fill / var(--edge) / 0 stretch round;
  clip-path: none; background: none;
  padding: clamp(14px, 2.4vw, 44px);
  filter: drop-shadow(0 0.1em 0.18em rgba(74, 40, 30, 0.2)) drop-shadow(0 0.7em 1.1em rgba(74, 40, 30, 0.22));
}
@media (max-width: 760px) { body.b :is(.sheet, .b-place), body.b:not(.b-page) :is(.page-editor .ed-form, .auth-form, .co-main, .acc-list > .wrap, .acc-one > .wrap, section.ground-ivory > .wrap) { --sheet-k: 0.3; padding: 16px; } }
body.b:not(.b-page) .co-main .sheet { border: 0; border-image: none; padding: 0; clip-path: none; background: none; filter: none; }
body.b.page-editor .ed-form { margin: 1svh max(10px, 1.6vw) 4svh; }
body.b.page-editor .ed-actions { background: #F3E9DC url("/media/img/btn-cream.webp") center / cover; }
body.b .auth { min-height: calc(100svh - var(--b-bar-h)); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; }
body.b .auth-pic { display: none; }
body.b .auth-form { max-width: min(720px, 100%); }
body.b .auth-panel { align-content: start; width: min(760px, 100%); padding-top: 2svh; }
body.b .auth-kept { background: rgba(245, 212, 202, 0.7); }
body.b:not(.b-page) :is(.acc-list, .acc-one, section.ground-ivory) > .wrap { margin-block: 3svh; }
body.b:not(.b-page) .co-grid { padding-inline: max(12px, 2vw); }
body.b .btn, body.b button.btn { border-radius: 2px; box-shadow: none; }
body.b .btn:not(.btn-quiet):hover, body.b .btn:active { box-shadow: none; }
.b-place .b-btn { white-space: nowrap; min-height: 52px; padding: 0 32px; }
body.b .inv-row { background: transparent; box-shadow: inset 0 -1px 0 rgba(196, 138, 114, 0.45); align-items: start; }
body.b .inv-pic img { box-shadow: 0 0 0 1px rgba(196, 138, 114, 0.45), 0 0.8em 1.2em -0.6em rgba(42, 16, 32, 0.5); }
/* the editor preview: no flat peach panel; the live card stands on the garden like the cards of the wall */
body.b .ed-phone-photo { display: none; }
body.b .ed-screen { top: 13cqh; width: min(43cqh, calc(0.5625 * var(--card-cap, 1600px))); height: min(76.5cqh, var(--card-cap, 1600px)); left: 50%; border-radius: 0; box-shadow: 0 0 0 1px rgba(196, 138, 114, 0.5), 0 3em 5em -2em rgba(42, 16, 32, 0.5); }
body.b .ed-pv-row { height: 13cqh; }
/* Round 3, item 4 (desktop): the buyer's own live card is the picture. It is 9:16, as tall as the window leaves room for (100vh minus 120 px,
   never above the 1600 px a 3840 screen shows sharp), right-aligned with a 32 px margin; the note and the guest button stand to its left. */
@media (min-width: 861px) {
  body.b .ed-sticky { --ph: min(calc(100vh - 120px), var(--card-cap, 1600px)); --ph: min(calc(100svh - 120px), var(--card-cap, 1600px)); }
  body.b .ed-screen { top: 96px; left: auto; inset-inline-end: 32px; translate: none; height: var(--ph); width: calc(var(--ph) * 0.5625); }
  body.b .ed-pv-row { top: 96px; height: auto; inset-inline: 0 calc(32px + var(--ph) * 0.5625 + 28px); padding: 0; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 16px; text-align: end; }
  html[dir="rtl"] body.b .ed-pv-row { inset-inline: 0 calc(32px + var(--ph) * 0.5625 + 28px); }
  body.b .ed-note { max-width: 12em; }
}
/* the editor's backdrop of the garden design is the sharp 3840 picture, never an enlarged blurred copy */
@media (min-width: 861px) and (orientation: landscape) {
  body.b.bd-garden::before { background-image: url("/fronts/b/img/garden-wide-1920.webp"); filter: none; transform: none; }
}
@media (min-width: 2400px) and (orientation: landscape) { body.b.bd-garden::before { background-image: url("/fronts/b/img/garden-wide-3840.webp"); filter: none; transform: none; } }
@media (orientation: portrait), (max-width: 900px) {
  body.b:not(.b-page) :is(.page-editor .ed-form, .auth-form, .co-main, .acc-list > .wrap, .acc-one > .wrap, section.ground-ivory > .wrap) { --sheet-k: 0.3; padding: 18px; }
  body.b .auth { grid-template-columns: 1fr; }
}
/* account tabs on the garden: plum linen for the tabs, the current one on paper; plum words for "Sign out" */
body.b .acc-head { position: relative; isolation: isolate; }
body.b .acc-head::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -2svh; background: radial-gradient(ellipse closest-side at 40% 45%, rgba(var(--b-mist), 0.8), rgba(var(--b-mist), 0.45) 60%, rgba(var(--b-mist), 0)); }
body.b.b .acc-tabs a:not([aria-current="page"]), body.b .acc-tabs a { text-shadow: none; color: var(--ivory); background: var(--plum); border-radius: 2px; box-shadow: none; }
body.b.b .acc-tabs a[aria-current="page"] { text-shadow: none; color: var(--plum); background: #F3E9DC url("/media/img/btn-cream.webp") center / cover; }
body.b.b .acc-out { color: var(--plum); font-weight: 500; font-size: max(18px, 1.9svh); text-shadow: 0 0 0.4em rgba(var(--b-mist), 1); }
/* v2's form pages are sized in px; on large screens they grow with the screen so the words stay sturdy at 3840 x 2160 */
@media (min-width: 2000px) and (min-height: 1100px) { body.b:not(.b-page) main { zoom: 1.45; --z: 1.45; } }
@media (min-width: 3000px) and (min-height: 1600px) { body.b:not(.b-page) main { zoom: 1.9; --z: 1.9; } }
/* a card is never shown above 1.25 times its media (the light layer is 1280 tall): cap its height in the page's own pixels, by zoom and pixel ratio */
body.b:not(.b-page) main { --dpr: 1; --card-cap: calc(1600px / (var(--z, 1) * var(--dpr))); }
@media (min-resolution: 1.5dppx) { body.b:not(.b-page) main { --dpr: 1.5; } }
@media (min-resolution: 2dppx) { body.b:not(.b-page) main { --dpr: 2; } }
@media (min-resolution: 3dppx) { body.b:not(.b-page) main { --dpr: 3; } }
/* checkout: the envelope card has its own space, a soft shadow, and the script names sit well below it */
body.b .co-preview { gap: max(30px, 2.4vw); align-content: start; padding-inline: 8px; }
body.b .co-preview img { max-width: min(320px, calc(0.5625 * var(--card-cap, 1600px))); box-shadow: 0 0 0 1px rgba(196, 138, 114, 0.45), 0 2.2em 3.6em -1.6em rgba(42, 16, 32, 0.5), 0 0.5em 1em -0.5em rgba(42, 16, 32, 0.25); }
body.b .co-preview-names { line-height: 1.7; margin-top: 12px; padding-bottom: 14px; }

/* Arabic: never any added spacing, full joining and ligatures (the filter words, the bands, the menu) */
html[lang="ar"] :is(.b-filter, .b-h1, .b-h2, .b-h3, .b-line, .b-nav, .b-menu-links a, .b-btn, .b-tile-name, .b-band-go) { letter-spacing: 0; word-spacing: 0; font-kerning: normal; font-variant-ligatures: common-ligatures contextual; text-rendering: optimizeLegibility; }
body.b .ed-pv-row { background: radial-gradient(ellipse 60% 90% at 50% 50%, rgba(var(--b-mist), 0.8), rgba(var(--b-mist), 0) 100%); }
body.b .ed-note { color: var(--plum); font-weight: 500; text-shadow: 0 0 0.5em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.9); }
@media (min-width: 901px) { body.b.page-editor .ed-actions { background: transparent; } }
@media (orientation: portrait), (max-width: 900px) {
  /* Gateau on the phone: the numeral, the name and the date start below the logo bar (9.5% of the frame) and end above the cake (it starts at 24%); the date never goes under 16 px */
  /* Sitara on the phone: the title card rises a little and is set smaller so the name, the tag and the button sit below it (ends about 75%) */
}
/* Help on a wide screen: the title, the line and the search box sit together in the calm mist above the pavilion's dome (the bar's middle is empty,
   so the title rises into it; the picture is shown a little larger from its top edge so the dome sits lower). Still under 1.25 times. */
@media (min-width: 901px) and (orientation: landscape) {
  .b-help .b-first .b-words { padding-top: calc(var(--b-bar-h) + 2svh); padding-bottom: 4svh; } /* clear below the bar row */
  .b-help .b-first .b-h1 { font-size: max(56px, min(8vw, 8svh)); }
  .b-help .b-first .b-line { margin-top: 0.3em; }
  .b-help .b-first .b-search { margin-top: max(12px, 1.6svh); }
  .b-help .b-first .b-photo img { transform: scale(1.3); transform-origin: 50% 0; }
}
body.b:not(.b-page) .acc-head::before { inset: -2svh 0 -2svh; background: linear-gradient(to bottom, rgba(var(--b-mist), 0) 0%, rgba(var(--b-mist), 0.74) 24%, rgba(var(--b-mist), 0.74) 72%, rgba(var(--b-mist), 0) 100%); }

/* A design whose printed card face is dark (Misk, wine): on phones the bar sits on the wine card, so the logo and the menu button are ivory and the bar does not multiply. */
@media (orientation: portrait), (max-width: 900px) {
  body.b-card-dark .b-bar { mix-blend-mode: normal; }
  body.b-card-dark .b-logo img { content: url("/fronts/b/img/logo-foil-ivory.png"); }
  body.b-card-dark .b-menu-btn { color: var(--ivory); text-shadow: 0 1px 12px rgba(var(--b-shade), 0.8); }
}

/* Fix 12, phones. (D) The footer: the photo of the foil wordmark gets its own block, the tagline and the links sit on plum cloth below it, so nothing prints over the wordmark.
   (B) A LIGHT still card (Durra, Nada): deep plum words on a pale mist, not ivory on the paper. A dark card keeps ivory on the plum shade. */
@media (orientation: portrait), (max-width: 900px) {
  /* Arabic on a light card prints three stacked name lines: the title and the button sit closer so the button stays in the first screen */
  html[lang="ar"] .b-tpl[data-ptone="light"] .b-tpl-words { margin-top: max(-215px, calc(var(--pr-y, 0) * 1svh + var(--pr-h, 0) * 1vw + 24px - 100svh)); }
  html[lang="ar"] .b-tpl[data-ptone="light"] .b-tpl-words .b-h1 { font-size: 36px; line-height: 1.05; }
  html[lang="ar"] .b-tpl[data-ptone="light"] .b-tpl-words .b-act { margin-top: 2px; }
  html[lang="ar"] .b-tpl[data-ptone="light"] .b-tpl-words .b-btn { min-height: 50px; }
  body.b-card-dark .b-tpl-words { padding-top: 18px; } /* Misk: the title no longer touches the card's gold rule */
  /* One continuous photographed band: the foil-wordmark photo, carried on down with the cloth's own weave (scripts/make-footer-tall.py). The logo keeps the top 111vw; the words sit on the cloth under it, with only a soft shade. */
  .b-close { display: block; min-height: 0; background: #3a1230; }
  .b-close::before { display: none; }
  .b-close-photo.b-photo { display: none; }
  .b-close-ext { display: block; position: absolute; inset: 0 auto auto 0; width: 100%; height: auto; z-index: 0; }
  .b-close-shade { display: block; background: linear-gradient(to bottom, rgba(var(--b-shade), 0) 0, rgba(var(--b-shade), 0) 104vw, rgba(var(--b-shade), 0.4) 128vw, rgba(var(--b-shade), 0.55) 100%); }
  .b-close-in { padding-top: 119vw; }
  .b-tpl[data-ptone="light"] .b-tpl-words::before { background: linear-gradient(to top, rgba(var(--b-mist), 0.94), rgba(var(--b-mist), 0.86) 60%, rgba(var(--b-mist), 0)); }
  .b-tpl[data-ptone="light"] .b-tpl-words :is(.b-h1, .b-line, .b-crop, .b-link, .b-tpl-tier) { color: var(--plum); text-shadow: none; }
}

/* Round 6, N1: a page whose first screen is a night sky (Nujoom): the light foil logo, ivory links and menu on every screen size, and a soft dark fade instead of the grey fog band */
body.b-night .b-bar { mix-blend-mode: normal; }
body.b-night .b-logo img { content: url("/fronts/b/img/logo-foil-ivory.png"); }
body.b-night .b-logo::before { display: none; }
body.b-night :is(.b-nav a, .b-lang, .b-menu-btn) { color: var(--ivory); text-shadow: 0 1px 12px rgba(var(--b-shade), 0.8); }
body.b-night .b-nav a:hover, body.b-night .b-nav a[aria-current] { color: #F5D4CA; box-shadow: inset 0 -1px 0 var(--rose-hi); }
html[dir] body.b-night.b-design .b-tpl[data-tone="dark"]:not([data-surf]) .b-tpl-shade { height: calc(var(--b-bar-h) + 5svh); inset-block-end: auto;
  background: linear-gradient(to bottom, rgba(var(--b-shade), 0.55), rgba(var(--b-shade), 0)); }

/* Round 6, N7: the editor's preview row is one stack, the single button with its note under it, centred in the mist above the phone (no pair floating side by side) */
@media (min-width: 861px) {
  body.b .editor:not(.is-guest) .ed-pv-row { flex-direction: column; justify-content: center; gap: 10px; }
  body.b .editor:not(.is-guest) .ed-pv-row .btn { order: -1; }
  body.b .editor:not(.is-guest) .ed-note { font-size: max(17px, 1.2vw); line-height: 1.25; text-align: center; }
}

/* Round 6, N9: "Designs for this occasion" is a band of the photographed plum paper (full width), not a title floating on flat mist */
.b-wall-page.is-short { padding-top: 0; }
.b-wall-page.is-short .b-wall-head { margin: 0 calc(-1 * max(16px, 3vw)) 0; max-width: none; padding: max(40px, 7svh) 16px; background: #3a1230 url("/fronts/b/img/home/paper-mid-2400.webp") center / cover; }
.b-wall-page.is-short .b-wall-head::before { display: none; }
.b-wall-page.is-short .b-wall-head .b-h2 { color: var(--ivory); text-shadow: none; margin: 0; }

/* Round 6, N10: in a wide tile (the last row of 2 or 1) the film is cropped higher (30%) and the sample names follow it, so they stay clear of the caption bar at the bottom */
.b-tile:is(.is-half, .is-wide) { --ih: calc(max(100cqw, 56.25cqh) * 1.7778); }
.b-tile:is(.is-half, .is-wide) :is(.b-tile-film, .b-tile-end) { object-position: 50% 30%; }
.b-tile:is(.is-half, .is-wide) .b-tile-names .b-tile-stage.card { top: calc((var(--ih) - 100cqh) * -0.3 + var(--ih) / 2); }

/* ---------- Still cards on wide screens (1000 px and up): the card's own photographed surface, sharp, edge to edge ----------
   Fix 8 and 9. The backdrop is the surface file of the template (surface-1920.jpg; surface-3840.jpg, or the lane's place-wide-4k.jpg, on screens
   over 2400 device pixels), so it is never shown above 1.25 times. Only a screen over 4800 device pixels would enlarge it more, and
   then it is blurred strongly and evenly under a soft vignette. Registry `tone` decides the rest:
   - 'dark' surface: ivory words on a soft dark plum shade that fades out, the ivory bar with a transparent light logo, a soft dark fade behind the bar;
   - 'light' surface (travertine, marble): deep plum words straight on the stone with at most a very soft ivory lift, the plum bar as everywhere.
   The card picture is feathered 3% into the surface, so no rectangle edge shows. Phones keep their look: nothing here applies below 1000 px. */
:root { --feather: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%), linear-gradient(180deg, transparent 0, #000 1.7%, #000 98.3%, transparent 100%); }
.b-tpl-surface { display: none; }
@media (min-width: 1000px) and (orientation: landscape) {
  .b-tpl-place.is-still, .b-tpl-sides { display: none; }
  .b-tpl-surface { display: block; position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: #2c2b2d var(--surf) center / cover no-repeat; }
  .b-tpl-surface::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(var(--b-shade), 0) 45%, rgba(var(--b-shade), 0.46) 100%); }
  .b-tpl[data-surf="light"] .b-tpl-surface::after { background: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(var(--b-shade), 0) 55%, rgba(var(--b-shade), 0.14) 100%); }
  /* the card and its edge */
  .b-tpl[data-surf] .b-tpl-card { box-shadow: none; -webkit-mask-image: var(--feather); mask-image: var(--feather); -webkit-mask-composite: source-in; mask-composite: intersect; }
  /* dark: soft dark plum shade behind the words, ivory words */
  .b-tpl[data-tone="dark"] .b-tpl-words::before { background: radial-gradient(closest-side, rgba(var(--b-shade), 0.8) 0%, rgba(var(--b-shade), 0.68) 50%, rgba(var(--b-shade), 0.34) 78%, rgba(var(--b-shade), 0) 100%); }
  .b-tpl[data-tone="dark"] .b-tpl-words :is(.b-h1, .b-line, .b-crop, .b-link) { text-shadow: 0 2px 16px rgba(var(--b-shade), 0.8); }
  .b-tpl[data-tone="dark"] .b-tpl-words .b-btn { color: var(--plum); background: #F3E9DC url("/media/img/btn-cream.webp") center / cover; box-shadow: inset 0 0 0 1px rgba(196, 138, 114, 0.7), 0 0.6em 1.6em -0.6em rgba(0, 0, 0, 0.6); }
  /* a film design with a pale picture keeps the pale fade behind its bar */
  .b-tpl[data-tone="dark"]:not([data-surf]) .b-tpl-shade, html[dir="rtl"] .b-tpl[data-tone="dark"]:not([data-surf]) .b-tpl-shade { height: calc(var(--b-bar-h) + 6svh); inset-block-end: auto;
    background: linear-gradient(to bottom, rgba(var(--b-mist), 0.86), rgba(var(--b-mist), 0.5) 55%, rgba(var(--b-mist), 0)); }
  /* a dark surface: no pale band, only a soft dark fade behind the light logo and the ivory menu */
  .b-tpl[data-surf="dark"] .b-tpl-shade, html[dir="rtl"] .b-tpl[data-surf="dark"] .b-tpl-shade { height: calc(var(--b-bar-h) + 5svh); inset-block-end: auto;
    background: linear-gradient(to bottom, rgba(var(--b-shade), 0.55), rgba(var(--b-shade), 0)); }
  /* light: deep plum words straight on the stone, a very soft ivory lift only */
  .b-tpl[data-tone="light"] .b-tpl-words::before { background: radial-gradient(closest-side, rgba(var(--b-mist), 0.42) 0%, rgba(var(--b-mist), 0.26) 55%, rgba(var(--b-mist), 0) 100%); }
  .b-tpl[data-tone="light"] .b-tpl-words :is(.b-h1, .b-line, .b-crop, .b-link) { color: #3a1a30; text-shadow: 0 0 0.5em rgba(var(--b-mist), 0.7); }
  .b-tpl[data-tone="light"] .b-tpl-shade, html[dir="rtl"] .b-tpl[data-tone="light"] .b-tpl-shade { background: linear-gradient(to bottom, rgba(var(--b-mist), 0.4), rgba(var(--b-mist), 0) 12%); }
  /* the bar on a dark surface */
  body.b-surf-dark .b-bar { mix-blend-mode: normal; }
  body.b-surf-dark .b-logo img { content: url("/fronts/b/img/logo-foil-ivory.png"); }
  body.b-surf-dark .b-nav a, body.b-surf-dark .b-lang { color: var(--ivory); text-shadow: 0 1px 12px rgba(var(--b-shade), 0.8); }
  body.b-surf-dark .b-nav a:hover, body.b-surf-dark .b-nav a[aria-current] { color: #F5D4CA; box-shadow: inset 0 -1px 0 var(--rose-hi); }
}
@media (min-width: 1000px) and (orientation: landscape) and ((min-width: 2400px) or (min-resolution: 1.4dppx)) { .b-tpl-surface { background-image: var(--surf4k); } }
@media (min-width: 1000px) and (orientation: landscape) and ((min-width: 4800px) or ((min-width: 2400px) and (min-resolution: 2dppx))) {
  .b-tpl-surface { background-size: 106% auto; filter: blur(0.5vw); }
}
/* editor, checkout and account of a still card: the same surface behind the form paper and the live card */
@media (min-width: 1000px) and (orientation: landscape) {
  body.b.bd-surf::before { background: #2c2b2d var(--bd-surf) center / cover no-repeat; filter: none; transform: none; }
  body.b.bd-surf.bd-dark::after { background: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(var(--b-shade), 0) 45%, rgba(var(--b-shade), 0.46) 100%),
    linear-gradient(to bottom, rgba(var(--b-shade), 0.55), rgba(var(--b-shade), 0) calc(var(--b-bar-h) + 6svh)); }
  body.b.bd-surf.bd-lightsurf::after { background: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(var(--b-shade), 0) 55%, rgba(var(--b-shade), 0.14) 100%),
    linear-gradient(to bottom, rgba(var(--b-mist), 0.4), rgba(var(--b-mist), 0) calc(var(--b-bar-h) + 2svh)); }
  body.b.bd-surf .ed-pv-row { background: none; isolation: isolate; }
  body.b.bd-surf .ed-pv-row::before { content: ""; position: absolute; z-index: -1; inset: 0 4% -4%; pointer-events: none; }
  body.b.bd-dark .ed-pv-row::before { background: radial-gradient(ellipse closest-side, rgba(var(--b-shade), 0.82) 0%, rgba(var(--b-shade), 0.6) 55%, rgba(var(--b-shade), 0) 100%); }
  body.b.bd-dark .ed-note { color: var(--ivory); text-shadow: 0 2px 16px rgba(var(--b-shade), 0.85); }
  body.b.bd-lightsurf .ed-pv-row::before { background: radial-gradient(ellipse closest-side, rgba(var(--b-mist), 0.42) 0%, rgba(var(--b-mist), 0.26) 55%, rgba(var(--b-mist), 0) 100%); }
  body.b.bd-lightsurf .ed-note { color: #3a1a30; text-shadow: 0 0 0.5em rgba(var(--b-mist), 0.7); }
  /* the live card, feathered into the surface (its dark fill and ring would show the rectangle) */
  body.b.bd-surf .ed-screen { background: transparent; box-shadow: none; -webkit-mask-image: var(--feather); mask-image: var(--feather); -webkit-mask-composite: source-in; mask-composite: intersect; }
}
@media (min-width: 1000px) and (orientation: landscape) and ((min-width: 2400px) or (min-resolution: 1.4dppx)) { body.b.bd-surf::before { background-image: var(--bd-surf4k); } }
@media (min-width: 1000px) and (orientation: landscape) and ((min-width: 4800px) or ((min-width: 2400px) and (min-resolution: 2dppx))) { body.b.bd-surf::before { background-size: 106% auto; filter: blur(0.5vw); } }

/* round 3, item 13: the checkout's empty state is the paper card only (no pasted envelope) */
body.b .co-grid:has([data-empty]:not([hidden])) .co-preview { display: none; }

body.b input[type="checkbox"], body.b input[type="radio"] { accent-color: #4a1d36; }
body.b .btn-dark, body.b :is(.ed-form, .auth-panel, .sheet) .btn:not(.btn-quiet) { background: var(--plum); color: var(--ivory); }

/* Round 4: ONE button shape everywhere on Site B (editor, guest page, reply card, account, checkout): flat plum, 2 px corner, no shadow, no linen texture,
   15 px capitals at 0.1em (Arabic: no spacing, no capitals). Quiet text links stay underlined words. */
body.b :is(.b-btn, .btn, button.btn, .ed-close, .gi .btn, .gi-details .btn):not(.btn-quiet) {
  background: var(--plum); color: var(--ivory); border: 0; border-radius: 2px; box-shadow: none; filter: none;
  font-family: var(--f-text); font-size: max(15px, 0.78vw); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; text-shadow: none;
}
body.b :is(.btn, button.btn, .ed-close):not(.btn-quiet):is(:hover, :active) { background: #5b2744; box-shadow: none; filter: none; transform: none; }
html[lang="ar"] body.b :is(.btn, button.btn, .ed-close):not(.btn-quiet) { letter-spacing: normal; text-transform: none; font-size: max(18px, 0.94vw); }
body.b :is(.gi--tonedark, .gi--darkcover) .gi-lang { border-radius: 2px; }

/* ===================== Site B v2 (branch site-b-v2) ===================== */
/* Finding 4: prices. Tier labels are 16 px with no extra tracking; the price line sits above the main button on a design page; the tier filter is plain text beside the occasions. */
.b-tile-tier, .b-tpl-tier { font-size: 16px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .b-tile-tier, html[lang="ar"] .b-tpl-tier { font-size: 16px; }
.b-tile-tier { white-space: nowrap; }
.b-priceline { margin: 0.9em 0 0; font-size: 18px; line-height: 1.4; font-weight: 500; color: var(--ink); max-width: 340px; text-wrap: balance; }
.b-priceline + .b-act { margin-top: 12px; }
.b-tier-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.1em 1.2em; margin-top: 0.4svh; }
.b-filter--tier { font-size: max(22px, min(5vw, 3svh)); }
/* Codex 5 (v2): a design page shows only the selected design's price, directly above the main button (the general "Cards from / films from" line stays on the home).
   Phone: name, price, button with 8 px then 12 px between; the price is 18 px / 1.4. */
body.b .b-tpl-words .b-tpl-tier { font-size: 18px; line-height: 1.4; margin: 14px 0 0; }
body.b .b-tpl-words .b-tpl-tier + .b-act { margin-top: 8px; }
@media (max-width: 760px), (orientation: portrait) {
  body.b .b-tpl-words .b-tpl-tier { order: 2; margin: 8px 0 0; }
  body.b .b-tpl-words .b-tpl-tier + .b-act { order: 2; margin-top: 12px; }
}

/* Finding 5: on a landscape screen a three-column tile is exactly 9:16, so the film, the names stage and the tile share the same bounds and nothing is cropped
   (before: a fixed 88svh height cut Harir's lettering at 1440 and 4K). The last-row tiles (is-half / is-wide) keep their own taller crop. Phones keep the tall full-width tiles. */
@media (min-width: 901px) and (orientation: landscape) {
  .b-tile:not(.is-half):not(.is-wide) { height: auto; aspect-ratio: 9 / 16; }
}

/* Finding 2 (phone editor): the 60svh preview is the real opened invitation (the same words, lettering and place as the card), live. On focus the strip
   compacts to names and date in the design's own lettering, with a 44 px "Preview" control that opens the large preview again. */
.ed-strip-card, .ed-strip-preview { display: none; }
@media (max-width: 860px) {
  body.b .ed-strip { background: #e9dccd; }
  body.b .ed-strip-bg { object-position: 50% 50%; filter: blur(20px); transform: scale(1.15); } /* a soft wash of the same place behind the card slide, so a gap above it is sky, never a second copy */
  body.b .ed-strip-card { display: block; position: absolute; inset: 0; z-index: 1; overflow: hidden; container-type: size; pointer-events: none; }
  /* the slide is the card at full width (9:16); invite.js-style: it is moved up or down (--sy, set by editor.js) so the opened words sit below the logo */
  body.b .ed-strip-slide { position: absolute; left: 0; right: 0; top: var(--sy, 0px); width: 100%; aspect-ratio: 9 / 16; }
  body.b .ed-strip-slide.is-gap { -webkit-mask: linear-gradient(to bottom, transparent 0, #000 56px); mask: linear-gradient(to bottom, transparent 0, #000 56px); } /* only when it sits lower than the window's top, so its edge melts into the wash */
  body.b .ed-strip-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  body.b .ed-strip-slide [data-strip-host] { position: absolute; inset: 0; }
  body.b .ed-strip-slide .b-tile-stage.card { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background: transparent; overflow: visible; }
  /* Codex 2 (v2): the static phone preview shows the FINISHED lettering for every template. A template's names wait at opacity 0 for its arrival (data-names-arrive, which the
     editor strips, or Sitara's own rule); here nothing waits: names, their parts, the date and the two rules are all in place. The guest opening keeps its animated arrival. */
  body.b .ed-strip-card .card :is(.card-words, .card-age, .card-names, .card-names > *, .card-date, .card-time, .card-marry, .card-host) { opacity: 1 !important; animation: none !important; translate: none; }
  body.b .ed-strip .ed-strip-words { display: none; }
  body.b .ed-strip.is-pinned .ed-strip-card { display: none; }
  body.b .ed-strip.is-pinned .ed-strip-words { display: grid; z-index: 2; padding-inline-end: 118px; }
  body.b .ed-strip-names { font-family: var(--sfont, "Pinyon Script", cursive); }
  body.b .ed-strip-words[dir="rtl"] .ed-strip-names, body.b .ed-strip-names[lang="ar"] { font-family: var(--sfont-ar, "Aref Ruqaa", "Amiri", serif); }
  body.b .ed-strip.is-pinned .ed-strip-preview { display: inline-flex; align-items: center; justify-content: center; position: absolute; z-index: 3; top: 50%; translate: 0 -50%;
    inset-inline-end: 10px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--plum); font-family: var(--f-text); font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: inset 0 -1px 0 var(--rose); }
  body.b .ed-strip[data-tone="dark"].is-pinned .ed-strip-preview { color: #fbf3e6; }
  body.b .ed-strip-preview:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
}

/* Finding 7 (editor, desktop): the preview card is as tall as the window leaves room for (100svh - 208 px), 24 px below the top of the preview column, 32 px from
   the edge; "See it as a guest" is a plain 18 px text link, 44 px high, directly under the card. The floating note is gone; payment stays the one filled button. */
@media (min-width: 861px) {
  body.b .ed-sticky { --ph: min(calc((100svh - 110px) / var(--z, 1) - 100px), var(--card-cap, 1600px)); /* main is zoomed on wide screens (--z): the window's height is divided by it */ }
  body.b .ed-screen { top: 24px; }
  body.b .ed-pv-row, html[dir="rtl"] body.b .ed-pv-row { top: calc(24px + var(--ph) + 6px); inset-inline: auto 32px; width: calc(var(--ph) * 0.5625); height: 44px; padding: 0;
    flex-direction: row; align-items: center; justify-content: center; gap: 20px; text-align: center; background: none; }
  body.b .ed-pv-row::before { display: none; }
  body.b .editor:not(.is-guest) .ed-pv-row { flex-direction: row; justify-content: center; gap: 20px; }
  body.b .ed-pv-row .btn { min-height: 44px; height: 44px; padding: 0 2px; font-size: 18px; font-weight: 500; letter-spacing: 0; text-transform: none; background: none; color: var(--plum);
    box-shadow: inset 0 -1px 0 var(--rose); border-radius: 0; text-shadow: 0 0 0.5em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.9); }
  body.b .ed-pv-row .btn:hover, body.b .ed-pv-row .btn:active { background: none; color: var(--rose-lo); }
  body.b.bd-dark .ed-pv-row .btn { color: var(--ivory); text-shadow: 0 2px 16px rgba(var(--b-shade), 0.85); }
  body.b.bd-lightsurf .ed-pv-row .btn { color: #3a1a30; }
}

/* Finding 8 (Yasmine's design page): the backdrop is the sharp garden, not an enlarged blurred copy; the soft mist behind the copy is at most 35% and stays inside the copy area. */
.b-tpl.is-garden .b-tpl-place img { filter: none; transform: none; }
@media (min-width: 901px) and (orientation: landscape) {
  .b-tpl.is-garden .b-tpl-words::before, html[dir="rtl"] .b-tpl.is-garden .b-tpl-words::before { inset: -6% -8% -8% -8%;
    background: radial-gradient(closest-side, rgba(var(--b-mist), 0.35) 0%, rgba(var(--b-mist), 0.3) 55%, rgba(var(--b-mist), 0) 100%); }
  .b-tpl.is-garden .b-tpl-words :is(.b-h1, .b-line, .b-crop, .b-tpl-tier, .b-priceline) { text-shadow: 0 0 0.45em rgba(var(--b-mist), 0.85); }
}

/* Finding 9 (Arabic phone editor): the date row is a grid (day 76 / month / year 90) so the year label is whole; an empty venue or city starts on the Arabic side. */
@media (max-width: 860px) {
  body.b .ed-form .ed-dsel { display: grid; grid-template-columns: 76px minmax(0, 1fr) 90px; gap: 8px; }
  body.b .ed-form .ed-dsel select, body.b .ed-form .ed-dsel select:nth-child(2) { width: 100%; min-width: 0; height: 56px; min-height: 56px; padding-block: 0; padding-inline: 8px; font-size: 18px; }
}
html[dir="rtl"] body.b :is(#f-venue, #f-city):placeholder-shown { direction: rtl; }
body.b :is(#f-venue, #f-city) { text-align: start; }

/* Finding 1 (the wall shows the real openings): the opening film plays once; at its end the clear place picture fades in under the names and the tile holds there. */
.b-tile-end { opacity: 0; transition: opacity 0.45s ease-out; pointer-events: none; }
.b-tile.is-ended .b-tile-end { opacity: 1; }
html.no-js .b-tile.is-film .b-tile-end, html.no-js .b-tile.is-film .b-tile-names { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .b-tile-end, .b-tile-names { transition: none; } }

/* Finding 7: "See it as a guest" is a text link, not a filled button (beats the Round 4 button rule, which has a longer selector) */
@media (min-width: 861px) {
  body.b .editor .ed-pv-row button.btn:not(.btn-quiet), body.b .editor .ed-pv-row button.btn:not(.btn-quiet):is(:hover, :active) { background: none; color: var(--plum); border: 0; border-radius: 0; min-height: 44px; height: 44px; padding: 0 2px;
    font-family: var(--f-text); font-size: 18px; font-weight: 500; letter-spacing: 0; text-transform: none; box-shadow: inset 0 -1px 0 var(--rose); filter: none;
    text-shadow: 0 0 0.5em rgba(var(--b-mist), 1), 0 0 1em rgba(var(--b-mist), 0.9); }
  body.b.bd-dark .editor .ed-pv-row button.btn:not(.btn-quiet) { color: var(--ivory); text-shadow: 0 2px 16px rgba(var(--b-shade), 0.85); }
  body.b.bd-lightsurf .editor .ed-pv-row button.btn:not(.btn-quiet) { color: #3a1a30; }
  body.b .editor .ed-pv-row button.btn:not(.btn-quiet):hover { color: var(--rose-lo); }
}
@media (max-width: 860px) { body.b .ed-strip[data-tone="dark"] .ed-strip-bg { filter: blur(20px) brightness(0.8); } }

/* Codex 6 (v2): small text follows the larger layout. Tier labels and form labels grow with the screen (16 px on a phone up to 32 px at 3840); the selected design's price and
   "See it as a guest" grow from 18 px up to 36 px. The guest link is 1.8 em high instead of a fixed 44 px. Phone sizes and Arabic's zero tracking are unchanged. */
body.b .b-tile-tier { font-size: clamp(16px, 0.85vw, 32px); }
body.b .b-tpl-words .b-tpl-tier { font-size: clamp(18px, 0.94vw, 36px); }
body.b :is(.ed-row-label, .ed-form .field label, .ed-form .field .label) { font-size: clamp(16px, 0.85vw, 32px); }
body.b .ed-form .field label, body.b .ed-form .field .label { font-size: clamp(17px, 0.85vw, 32px); }
@media (min-width: 861px) {
  body.b .editor .ed-pv-row button.btn:not(.btn-quiet), body.b .editor .ed-pv-row button.btn:not(.btn-quiet):is(:hover, :active) { font-size: clamp(18px, 0.94vw, 36px); min-height: 1.8em; height: auto; }
  body.b .ed-pv-row { height: auto; min-height: 1.8em; }
}

/* Codex 8 (v2): the focused editor field has one quiet frame: its own 2 px border plus a 2 px plum outline 2 px away, no shadow. */
body.b :is(.input, .field input, .field select, .field textarea):is(:focus, :focus-visible) { outline: 2px solid var(--plum); outline-offset: 2px; box-shadow: none; border-color: var(--plum); }

/* Codex 5b (v2): the Films / Cards filter (English) reads like the occasion filters: same ink, 44 px high, 24 px on a phone, 16 px between, readable over the garden. */
.b-tier-filter { gap: 16px; margin-top: 8px; }
body.b .b-filter--tier { min-height: 44px; font-size: max(24px, min(4vw, 3svh)); color: var(--plum); text-shadow: 0 0 0.5em rgba(var(--b-mist), 0.9), 0 0 1em rgba(var(--b-mist), 0.7); display: inline-flex; align-items: center; }
body.b .b-filter--tier[aria-pressed="true"] { color: var(--rose-lo); }

/* Codex 7 (v2): the one line that tells the tiers apart sits under the Prices heading line. */
.b-table-head .b-tierline { margin-top: 0.6em; max-width: 32em; font-size: max(18px, min(4.2vw, 2.1svh)); }

/* owner 20 Nov ("those are zoomed too much"): on wide screens each tile has the card's own shape (9:16) and the screen's height, so the whole
   invitation shows, names and date included; as many tiles per row as fit, centred on the plum frame. Phones keep the stacked full-width wall. */
@media (min-width: 901px) and (orientation: landscape) {
  .b-fwall { --b-tile-h: max(480px, 86svh); display: flex; flex-wrap: wrap; justify-content: center; }
  .b-tile, .b-tile.is-half, .b-tile.is-wide { grid-column: auto; flex: none; height: var(--b-tile-h); width: calc(var(--b-tile-h) * 9 / 16); }
}

/* The live preview is the whole guest page in a phone-shaped frame (iframe): a real phone edge, no feathered mask, no flat peach panel. */
@media (min-width: 861px) {
  body.b .ed-screen:has(.ed-frame), body.b.bd-surf .ed-screen:has(.ed-frame) { border-radius: 34px; background: #160810; -webkit-mask-image: none; mask-image: none;
    box-shadow: 0 0 0 9px #1b0e18, 0 0 0 10px rgba(196, 138, 114, 0.6), 0 3em 5em -2em rgba(42, 16, 32, 0.55); }
}

/* Designs: Premium and Essential are two sections, each with its own heading (never mixed) */
.b-wall-sec { position: relative; margin: 0 auto; }
.b-wall-sec + .b-wall-sec { margin-top: 9svh; }
.b-wall-sec[hidden] { display: none; }
.b-wall-sec-h { text-align: center; margin: 0 0 3svh; padding: 3.5svh 16px; background: #F3E6D9; color: var(--plum); }
html[lang="ar"] .b-wall-sec-h { letter-spacing: 0; }
/* a plan that is not on sale yet */
.b-place.is-soon .b-place-price { font-size: max(36px, 4.4svh); padding-block: 0.5em; }

/* ===================== Redesign 20 Nov 2026 (owner: "plain and unorganized ... re make them"): the editor as a printed order form =====================
   Numbered chapters (an eyebrow, a Cormorant title, one rose-gold hairline), underline fields on the paper (a small-caps label, the typed words
   larger in Cormorant, a hairline that warms to plum on focus), refined pills, the date and time written in words, a slim chapter index pinned at
   the top of the paper and a quiet bar at its foot. Spacing in 8 px steps. Arabic: no tracking, no capitals, Amiri and IBM Plex Sans Arabic. */
body.b .ed-form {
  --lx-eye: #7E4F4A;        /* small capitals: 5.6:1 on the paper */
  --lx-line: #8C5D57;       /* a field's underline: 4.5:1 on the paper */
  --lx-hair: rgba(168, 112, 92, 0.42); /* rose-gold hairlines (dividers only) */
  --lx-paper: #F5E8D4;      /* the photographed paper's own tone, for the pinned index */
  --lx-ink: var(--plum);
}
@media (min-width: 861px) {
  body.b.page-editor .ed-form { padding: 0; }
  body.b .ed-scroll { padding: 40px 48px 40px; container-type: inline-size; }
}

/* the head */
body.b .ed-form .ed-head { margin: 0; }
body.b .ed-form .ed-sub { margin: 0 0 12px; font: 500 16px/1.3 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lx-eye); }
body.b .ed-form .ed-title { margin: 0; font-family: "Cormorant Garamond", var(--f-display); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.01em; color: var(--lx-ink); }
body.b .ed-form .ed-lede { margin: 12px 0 0; max-width: 46ch; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 21px; line-height: 1.4; color: var(--ink-soft); }
html[lang="ar"] body.b .ed-form .ed-sub { font-family: "IBM Plex Sans Arabic", var(--f-text); font-size: 16px; letter-spacing: normal; text-transform: none; }
html[lang="ar"] body.b .ed-form .ed-title { font-family: "Amiri", serif; font-weight: 700; font-size: 48px; line-height: 1.35; letter-spacing: normal; }
html[lang="ar"] body.b .ed-form .ed-lede { font-family: "Amiri", serif; font-style: normal; font-size: 20px; line-height: 1.75; }

/* the chapter index: pinned at the top of the paper while the fields scroll under it (desktop) */
body.b .ed-prog { position: sticky; top: -40px; z-index: 6; margin: 32px 0 0; background: var(--lx-paper); } /* the scroll block's top padding is 40 px: the index pins to the paper's very top */
body.b .ed-prog ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--lx-hair); }
body.b .ed-prog li { min-width: 0; }
body.b .ed-prog a { display: flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 14px 0 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-soft); text-decoration: none; white-space: nowrap; transition: color var(--t-fast), border-color var(--t-fast); }
body.b .ed-prog-no { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: 20px; line-height: 1; }
body.b .ed-prog-t { font: 500 16px/1.2 var(--f-text); letter-spacing: 0.01em; }
body.b .ed-prog a[aria-current] { color: var(--lx-ink); border-bottom-color: var(--lx-ink); }
@media (hover: hover) and (pointer: fine) { body.b .ed-prog a:hover { color: var(--lx-ink); } }
body.b .ed-prog a:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
html[lang="ar"] body.b .ed-prog-no { font-family: "Amiri", serif; font-style: normal; font-weight: 700; font-size: 19px; }
html[lang="ar"] body.b .ed-prog-t { font-family: "IBM Plex Sans Arabic", var(--f-text); font-size: 16px; letter-spacing: normal; }
@container (max-width: 520px) { body.b .ed-prog-t { letter-spacing: 0; } body.b .ed-prog a { gap: 5px; } }

/* a chapter: the eyebrow (its number and what it is for), the title, one hairline */
body.b .ed-form .ed-group.ed-ch { margin: 72px 0 0; scroll-margin-top: 64px; }
body.b .ed-form .ed-prog + .ed-ch { margin-top: 40px; }
body.b .ed-form .ed-group legend.ed-ch-title { display: block; float: left; width: 100%; padding: 0 0 20px; margin: 0 0 32px; border-bottom: 1px solid var(--lx-hair); font: inherit; line-height: normal; }
body.b .ed-form .ed-ch-title + * { clear: both; }
body.b .ed-ch-eye { display: block; margin: 0 0 10px; font: 500 16px/1.3 var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lx-eye); }
body.b .ed-ch-name { display: block; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 42px; line-height: 1.05; letter-spacing: -0.005em; color: var(--lx-ink); }
html[lang="ar"] body.b .ed-ch-eye { font-family: "IBM Plex Sans Arabic", var(--f-text); font-size: 16px; letter-spacing: normal; text-transform: none; }
html[lang="ar"] body.b .ed-ch-name { font-family: "Amiri", serif; font-weight: 700; font-size: 36px; line-height: 1.4; letter-spacing: normal; }
body.b .ed-form .ed-ch-note { margin: 0 0 24px; }

/* fields: a small-caps label, the typed words larger on one underline */
body.b .ed-form .field { gap: 4px; margin-bottom: 32px; align-content: start; }
body.b .ed-form .field.field > label, body.b .ed-form .field.field > .label { /* .field.field: beats the Codex 6 :is() rule above (0,4,1) */
  font: 500 16px/1.3 var(--f-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lx-eye); }
html[lang="ar"] body.b .ed-form .field.field > label, html[lang="ar"] body.b .ed-form .field.field > .label { font-family: "IBM Plex Sans Arabic", var(--f-text); font-size: 16px; letter-spacing: normal; text-transform: none; }
body.b .ed-form .field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  width: 100%; min-height: 52px; padding: 8px 0 10px; margin: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--lx-line); border-radius: 0; box-shadow: none; outline: none;
  font-family: "Cormorant Garamond", "Amiri", serif; font-size: 24px; font-weight: 500; line-height: 1.25; color: var(--lx-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
body.b .ed-form .field :is(input[type="url"], input[type="number"]) { font-family: var(--f-text); font-size: 19px; font-weight: 400; }
body.b .ed-form .field :is(input, textarea)[lang="ar"], html[lang="ar"] body.b .ed-form .field :is(input:not([dir="ltr"]), textarea, select) { font-family: "Amiri", "Cormorant Garamond", serif; font-size: 22px; font-weight: 400; line-height: 1.5; }
body.b .ed-form .field textarea { min-height: 104px; padding-top: 10px; line-height: 1.4; resize: vertical; }
body.b .ed-form .field :is(input, textarea)::placeholder { color: #7A6166; opacity: 1; font-style: italic; font-weight: 400; }
html[lang="ar"] body.b .ed-form .field :is(input, textarea)::placeholder, body.b .ed-form .field [lang="ar"]::placeholder { font-style: normal; }
body.b .ed-form .field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):is(:focus, :focus-visible) {
  outline: none; outline-offset: 0; border-bottom-color: var(--plum); box-shadow: inset 0 -1px 0 var(--plum); background: rgba(255, 251, 245, 0.55); }
body.b .ed-form .field [aria-invalid="true"] { border-bottom-color: var(--bad); box-shadow: inset 0 -1px 0 var(--bad); }
body.b .ed-form .field select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 32px; cursor: pointer; text-overflow: ellipsis;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%237E4F4A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center / 14px 9px;
}
html[dir="rtl"] body.b .ed-form .field select { background-position: left 4px center; }
body.b .ed-form .field select:is(:focus, :focus-visible) { background-color: rgba(255, 251, 245, 0.55); }
body.b .ed-form .hint, body.b .ed-form .field .hint { margin: 6px 0 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 18px; line-height: 1.4; color: var(--ink-soft); }
html[lang="ar"] body.b .ed-form .hint, html[lang="ar"] body.b .ed-form .field .hint { font-family: "Amiri", serif; font-style: normal; font-size: 18px; line-height: 1.7; }
body.b .ed-form .ed-two { gap: 0 40px; align-items: end; } /* a label on two lines never lifts its neighbour's underline */
body.b .ed-form .ed-two--time { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
body.b .ed-form .ed-two--time .field.field > label { white-space: normal; }

/* the names: one row per language */
body.b .ed-form .ed-row { margin: 0 0 8px; }
body.b .ed-form .ed-row + .ed-row { margin-top: 16px; }
body.b .ed-form .ed-row-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 16px; }
body.b .ed-form .ed-row-label span:first-child { font-family: "Cormorant Garamond", "Amiri", serif; font-style: italic; font-weight: 500; font-size: 22px; color: var(--lx-ink); }
body.b .ed-form .ed-row-label span[lang="ar"], html[lang="ar"] body.b .ed-form .ed-row-label span:first-child { font-family: "Amiri", serif; font-style: normal; font-weight: 700; font-size: 21px; }
body.b .ed-form .ed-opt { margin: 0; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 17px; color: var(--ink-soft); }
html[lang="ar"] body.b .ed-form .ed-opt { font-family: "Amiri", serif; font-style: normal; }

/* quick picks: refined pills with a hairline; the chosen one is plum with ivory words */
body.b .ed-form .ed-pills { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
body.b .ed-form .ed-pills .choice span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  background: transparent; border: 1px solid var(--lx-line); border-radius: 999px; box-shadow: none;
  font: 500 17px/1.2 var(--f-text); letter-spacing: 0.01em; color: var(--lx-ink);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
html[lang="ar"] body.b .ed-form .ed-pills .choice span, body.b .ed-form .ed-pills .choice span[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--f-text); font-size: 17px; letter-spacing: normal; }
@media (hover: hover) and (pointer: fine) { body.b .ed-form .ed-pills .choice:hover span { background: rgba(58, 23, 44, 0.06); } }
body.b .ed-form .ed-pills .choice input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--ivory); }
body.b .ed-form .ed-pills .choice input:focus-visible + span { outline: 2px solid var(--plum); outline-offset: 3px; }
body.b .ed-form .ed-pills--sw .choice span { padding-inline-start: 6px; }
body.b .ed-form .ed-pills--sw .choice .swatch { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 44%; }
body.b .ed-form [data-occ-custom] { margin-top: 8px; grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: no-preference) {
  body.b .ed-form [data-occ-custom]:not([hidden]) { animation: lx-reveal 360ms var(--ease-out) both; }
}
@keyframes lx-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* the date and time: written in words on the line; the browser's own picker lies over the whole field, invisible, and opens on a tap */
body.b .ed-form .ed-when-box { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0 10px; border-bottom: 1px solid var(--lx-line); cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast); }
body.b .ed-form .ed-when-box .ed-written { flex: 1 1 auto; min-width: 0; margin: 0; font-family: "Cormorant Garamond", "Amiri", serif; font-style: normal; font-size: 24px; font-weight: 500; line-height: 1.25; color: var(--lx-ink); }
body.b .ed-form .ed-when-box .ed-written.is-eg { font-style: italic; font-weight: 400; font-size: 21px; color: var(--ink-soft); }
html[lang="ar"] body.b .ed-form .ed-when-box .ed-written { font-family: "Amiri", serif; font-weight: 700; font-size: 21px; line-height: 1.6; }
html[lang="ar"] body.b .ed-form .ed-when-box .ed-written.is-eg { font-style: normal; font-weight: 400; font-size: 19px; }
body.b .ed-form .field .ed-when-box > input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; cursor: pointer; background: none; box-shadow: none; color: transparent; }
body.b .ed-form .ed-when-box > input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
body.b .ed-form .ed-when-ic { flex: none; width: 22px; height: 22px; color: var(--lx-eye); }
body.b .ed-form .ed-when-box:focus-within { border-bottom-color: var(--plum); box-shadow: inset 0 -1px 0 var(--plum); background: rgba(255, 251, 245, 0.55); }
body.b .ed-form .ed-when-box:has([aria-invalid="true"]) { border-bottom-color: var(--bad); box-shadow: inset 0 -1px 0 var(--bad); }
@media (hover: hover) and (pointer: fine) { body.b .ed-form .ed-when-box:hover .ed-when-ic { color: var(--plum); } }
/* Arabic: the three selects (day, month, year) stay; the written date sits under them */
body.b .ed-form .ed-when-box:has(.ed-dsel) { flex-wrap: wrap; border-bottom: 0; padding: 0; cursor: default; box-shadow: none; background: none; }
body.b .ed-form .ed-when-box:has(.ed-dsel) .ed-when-ic { display: none; }
body.b .ed-form .ed-when-box:has(.ed-dsel) .ed-written { order: 2; flex: 1 1 100%; margin-top: 10px; }
body.b .ed-form .ed-when-box .ed-dsel { order: 1; flex: 1 1 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr) 96px; gap: 16px; }
body.b .ed-form .ed-when-box .ed-dsel select, body.b .ed-form .ed-when-box .ed-dsel select:nth-child(2) {
  width: 100%; min-width: 0; height: 52px; min-height: 52px; padding: 6px 0 8px; padding-inline-end: 24px; border: 0; border-bottom: 1px solid var(--lx-line); border-radius: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer; color: var(--lx-ink); font-family: "Amiri", serif; font-size: 20px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237E4F4A' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat left 2px center / 12px 8px; }
body.b .ed-form .ed-when-box .ed-dsel select:is(:focus, :focus-visible) { outline: none; border-bottom-color: var(--plum); box-shadow: inset 0 -1px 0 var(--plum); background-color: rgba(255, 251, 245, 0.55); }

/* ticks (replies): quiet rows on hairlines */
body.b .ed-form .check.ed-tick { display: flex; align-items: flex-start; gap: 16px; min-height: 56px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--lx-hair); font-size: 18px; line-height: 1.4; color: var(--ink); cursor: pointer; }
body.b .ed-form .check.ed-tick input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--plum); }
html[lang="ar"] body.b .ed-form .check.ed-tick { font-size: 18px; line-height: 1.6; }
body.b .ed-form .ed-tick + .ed-two { margin-top: 32px; }
/* the last tick of a chapter has no rule of its own: the rule above the actions closes the list (no empty-looking row between two rules) */
body.b .ed-form .ed-ch > .check.ed-tick:last-child { border-bottom: 0; }

/* the programme (premium): each event a quiet block under a hairline, not a box */
body.b .ed-form .ed-evs { gap: 0; margin: 8px 0 16px; }
body.b .ed-form .ed-ev { border: 0; border-top: 1px solid var(--lx-hair); background: none; padding: 24px 0 8px; }
body.b .ed-form .ed-ev-title { margin: 0 0 16px; font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; font-size: 24px; color: var(--lx-ink); }
html[lang="ar"] body.b .ed-form .ed-ev-title { font-family: "Amiri", serif; font-style: normal; font-weight: 700; }
body.b .ed-form .ed-ev-acts { gap: 8px 24px; }
body.b .ed-form .ed-ev-acts .btn-quiet, body.b .ed-form .ed-ev-add { font-size: 17px; color: var(--lx-ink); }
body.b .ed-form .ed-ph { border-top-color: var(--lx-hair); }
body.b .ed-form .ed-ph .choice span { border-width: 1px; border-radius: 999px; background: transparent; min-height: 48px; }
body.b .ed-form .ed-ph .choice input:checked + span { background: var(--plum); color: var(--ivory); border-color: var(--plum); }
body.b .ed-form .ed-ph-thumb { border-width: 1px; }

/* the bar at the foot of the paper: the price line, a quiet "Save draft", one plum button */
body.b .ed-form .ed-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "err err" "plan save" "go go" "saved saved"; align-items: center; gap: 12px 24px; }
body.b .ed-form .ed-actions [data-err] { grid-area: err; }
body.b .ed-form .ed-plan { grid-area: plan; }
body.b .ed-form .ed-actions .ed-save { grid-area: save; justify-self: end; }
body.b .ed-form .ed-actions .ed-go { grid-area: go; width: 100%; }
body.b .ed-form .ed-actions .ed-saved { grid-area: saved; }
body.b .ed-form .ed-plan { margin: 0; display: grid; gap: 2px; min-width: 0; }
body.b .ed-form .ed-plan-k { font: 500 16px/1.3 var(--f-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lx-eye); }
body.b .ed-form .ed-plan-v { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--lx-ink); font-variant-numeric: lining-nums; }
html[lang="ar"] body.b .ed-form .ed-plan-k { font-family: "IBM Plex Sans Arabic", var(--f-text); font-size: 16px; letter-spacing: normal; text-transform: none; }
html[lang="ar"] body.b .ed-form .ed-plan-v { font-family: "Amiri", serif; font-weight: 700; font-size: 23px; line-height: 1.5; }
body.b .ed-form .ed-actions .ed-save { min-height: 48px; font-size: 17px; font-weight: 500; color: var(--lx-ink); text-underline-offset: 7px; text-decoration-color: var(--lx-line); }
@media (hover: hover) and (pointer: fine) { body.b .ed-form .ed-actions .ed-save:hover { text-decoration-color: currentColor; } }
body.b .ed-form .ed-actions .ed-go { min-height: 56px; padding: 0 36px; }
body.b .ed-form .ed-saved { margin: 0; font-size: 16px; }
body.b .ed-form .ed-saved:empty { display: none; }
@media (min-width: 861px) {
  body.b.page-editor .ed-form .ed-actions { margin: 0 48px; padding: 20px 0 calc(16px + var(--safe-b)); border-top: 1px solid var(--lx-hair); box-shadow: none; background: transparent; }
}

/* phones: the paper is the page; the chapter index steps aside (the live strip is pinned at the top); fields stack */
@media (max-width: 860px) {
  body.b .ed-prog { display: none; }
  body.b .ed-form .ed-head { padding-top: 8px; }
  body.b .ed-form .ed-title { font-size: 46px; }
  html[lang="ar"] body.b .ed-form .ed-title { font-size: 40px; }
  body.b .ed-form .ed-lede { font-size: 20px; }
  body.b .ed-form .ed-guest-m { margin-top: 24px; }
  body.b .ed-form .ed-group.ed-ch { margin-top: 64px; }
  body.b .ed-form .ed-head + .ed-prog + .ed-ch { margin-top: 48px; }
  body.b .ed-form .ed-ch-name { font-size: 38px; }
  html[lang="ar"] body.b .ed-form .ed-ch-name { font-size: 32px; }
  body.b .ed-form .ed-two, body.b .ed-form .ed-two--time { grid-template-columns: minmax(0, 1fr); }
  body.b .ed-form .field { margin-bottom: 28px; }
  body.b .ed-form .ed-actions { gap: 16px 24px; margin-top: 48px; padding: 24px 0 8px; border-top: 1px solid var(--lx-hair); background: transparent; }
  body.b .ed-form .ed-actions .ed-saved { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { body.b .ed-prog a, body.b .ed-form .ed-when-box, body.b .ed-form .ed-pills .choice span { transition: none; } }
/* the phone's "See it as a guest" is a quiet outline: the one filled button of the editor is the payment */
body.b .ed-form button.ed-guest-m.btn:not(.btn-quiet), body.b .ed-form button.ed-guest-m.btn:not(.btn-quiet):is(:hover, :active) { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
body.b .ed-form #ch-replies .ed-two { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@container (max-width: 560px) { body.b .ed-form .ed-two--time, body.b .ed-form #ch-replies .ed-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { body.b .ed-form #ch-replies .ed-two { grid-template-columns: minmax(0, 1fr); } }

/* ===================== Redesign round 2 (checker, 20 Nov 2026) ===================== */
/* The bar at the foot of the paper is one compact row (plan and price at the start, Save draft and the button at the end); a soft paper fade
   lies above it and under the pinned index, so a field is never cut by a hard edge; the fields end well above the bar. */
@media (min-width: 861px) {
  body.b .ed-scroll { padding-bottom: 88px; }
  body.b.page-editor .ed-form .ed-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 32px; padding: 14px 0 calc(14px + var(--safe-b)); }
  body.b.page-editor .ed-form .ed-actions::before { content: ""; position: absolute; inset-inline: -32px; bottom: calc(100% + 1px); height: 56px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(245, 232, 212, 0), rgba(245, 232, 212, 0.94) 72%, #F5E8D4); }
  body.b.page-editor .ed-form .ed-actions [data-err] { flex: 1 0 100%; order: -1; }
  body.b.page-editor .ed-form .ed-plan { flex: 1 1 auto; gap: 0; }
  body.b.page-editor .ed-form .ed-plan-v { font-size: 24px; white-space: nowrap; }
  body.b.page-editor .ed-form .ed-actions .ed-save { flex: none; }
  body.b.page-editor .ed-form .ed-actions .ed-go.btn { flex: none; width: auto; min-height: 52px; padding: 0 18px; font-size: 16px; letter-spacing: 0.04em; }
  html[lang="ar"] body.b.page-editor .ed-form .ed-actions .ed-go.btn { font-size: 18px; letter-spacing: normal; }
  body.b.page-editor .ed-form .ed-actions .ed-saved { flex: 1 0 100%; }
  body.b .ed-prog::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 32px; pointer-events: none;
    background: linear-gradient(to bottom, #F5E8D4, rgba(245, 232, 212, 0.9) 35%, rgba(245, 232, 212, 0)); }
  body.b .ed-form .ed-group.ed-ch { scroll-margin-top: 96px; }
}
/* focus is the plum underline alone (no pale block behind the words) */
body.b .ed-form .field :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):is(:focus, :focus-visible),
body.b .ed-form .field select:is(:focus, :focus-visible), body.b .ed-form .ed-when-box:focus-within,
body.b .ed-form .ed-when-box .ed-dsel select:is(:focus, :focus-visible) { background-color: transparent; }
/* the programme's two event names stack where the paper is narrow, so each label stays on one line */
@container (max-width: 640px) { body.b .ed-form .ed-ev > .ed-two:first-of-type { grid-template-columns: minmax(0, 1fr); } }
body.b .ed-form .ed-ev .field.field > label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Arabic date: day, month and year as one row of underline fields with a chevron each; an empty one reads as a quiet placeholder */
body.b .ed-form .ed-when-box .ed-dsel { column-gap: 24px; }
body.b .ed-form .ed-when-box .ed-dsel select, body.b .ed-form .ed-when-box .ed-dsel select:nth-child(2) {
  height: 56px; min-height: 56px; padding-inline: 0 28px; color: var(--lx-ink); font-weight: 700; font-size: 21px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%237E4F4A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 4px center / 14px 9px; }
body.b .ed-form .ed-when-box .ed-dsel select.is-empty { color: var(--ink-soft); font-weight: 400; }
body.b .ed-form .ed-when-box .ed-dsel select option { color: var(--ink); font-weight: 400; }

/* Prices (2560 and everywhere): the tier line sits on a soft ivory veil and is larger; the cards' words grow with the screen;
   no empty band before the questions, a shorter way to the closing band. */
.b-table-head .b-tierline { display: inline-block; margin-top: 0.8em; padding: 0.55em 1.2em; max-width: 34em; font-size: max(19px, min(4.4vw, 2.5svh)); line-height: 1.45; font-weight: 500;
  color: var(--plum); background: rgba(var(--b-mist), 0.86); border-radius: 2px; text-shadow: none; }
.b-place-designs { font-size: max(18px, min(2.2svh, 1.1vw)); }
.b-place-feats { font-size: max(18px, min(2.1svh, 1.05vw)); gap: max(12px, 1.1svh); }
.b-places { margin-bottom: 6svh; }
.b-prices .b-faq { margin-top: 0; }
.b-prices .b-table { padding-bottom: 8svh; min-height: 0; }
@media (min-width: 1800px) { .b-prices .b-faq { max-width: 900px; } .b-prices .qa-item summary { font-size: max(24px, 1.2vw); } .b-prices .qa-item p { font-size: max(18px, 0.95vw); } }
/* the Arabic date selects beat the general field rule above (it is (0,6,2)): the selector is lengthened on purpose */
html body.b .ed-form .field.ed-when .ed-when-box .ed-dsel select:not(.lx-a):not(.lx-b) {
  height: 56px; min-height: 56px; padding: 6px 0 8px; padding-inline-end: 28px; border: 0; border-bottom: 1px solid var(--lx-line); border-radius: 0; box-shadow: none;
  -webkit-appearance: none; appearance: none; cursor: pointer; font-family: "Amiri", serif; font-weight: 700; font-size: 21px; line-height: 1.4; color: var(--lx-ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%237E4F4A' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat left 4px center / 14px 9px; }
html body.b .ed-form .field.ed-when .ed-when-box .ed-dsel select.is-empty:not(.lx-a) { color: var(--ink-soft); font-weight: 400; }
html body.b .ed-form .field.ed-when .ed-when-box .ed-dsel select:not(.lx-a):not(.lx-b):is(:focus, :focus-visible) { outline: none; border-bottom-color: var(--plum); box-shadow: inset 0 -1px 0 var(--plum); }

/* Phone preview: ONE quiet round "x" in the top corner (right in English, left in Arabic); it never covers a card. */
@media (max-width: 860px) {
  body.b .editor.is-guest .ed-close, body.b .editor.is-guest .ed-close:hover, body.b .editor.is-guest .ed-close:active {
    width: 38px; height: 38px; min-width: 0; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--plum);
    background: rgba(251, 243, 230, 0.92); color: var(--plum); box-shadow: none; text-transform: none; letter-spacing: 0;
    font-family: var(--f-text); font-size: 24px; font-weight: 300; line-height: 1;
    top: calc(8px + env(safe-area-inset-top, 0px)); inset-inline-end: calc(8px + env(safe-area-inset-right, 0px)); inset-inline-start: auto;
  }
  html[lang="ar"] body.b .editor.is-guest .ed-close { inset-inline-end: auto; inset-inline-start: calc(8px + env(safe-area-inset-left, 0px)); right: auto; left: calc(8px + env(safe-area-inset-left, 0px)); font-size: 24px; }
  body.b .editor.is-guest .ed-close::after { content: ""; position: absolute; inset: -5px; }
  body.b .editor.is-guest .ed-close:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
}

/* "See it as a guest" on EVERY screen size: the real guest page fills the window (no phone frame, no photo); one round ivory "x" in the corner
   (right in English, left in Arabic). The editor page under it stays where it was. main may be zoomed on wide screens (--z), so the size is divided by it. */
html body.b .editor.is-guest .ed-preview { display: block; position: fixed; top: 0; left: 0; right: auto; width: calc(100vw / var(--z, 1)); height: calc(100dvh / var(--z, 1)); z-index: 90; background: #160810; }
html body.b .editor.is-guest .ed-sticky { position: absolute; inset: 0; height: 100%; --ph: 100%; }
html body.b .editor.is-guest .ed-phone { position: absolute; inset: 0; }
html body.b .editor.is-guest .ed-phone-photo, html body.b .editor.is-guest .ed-pv-row, html body.b .editor.is-guest .ed-note { display: none; }
html body.b .editor.is-guest .ed-screen, html body.b.bd-surf .editor.is-guest .ed-screen:has(.ed-frame), html body.b .editor.is-guest .ed-screen:has(.ed-frame) {
  position: absolute; top: 0; left: 0; right: auto; translate: none; width: 100%; height: 100%; border-radius: 0; box-shadow: none; background: #160810; }
html body.b .editor.is-guest .ed-close, html body.b .editor.is-guest .ed-close:hover, html body.b .editor.is-guest .ed-close:active {
  display: inline-flex; align-items: center; justify-content: center; position: absolute; z-index: 5; width: 38px; height: 38px; min-width: 0; min-height: 0; padding: 0; border-radius: 50%;
  border: 1px solid var(--plum); background: rgba(251, 243, 230, 0.92); color: var(--plum); box-shadow: none; text-transform: none; letter-spacing: 0;
  font-family: var(--f-text); font-size: 24px; font-weight: 300; line-height: 1; cursor: pointer;
  top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); left: auto; }
html[lang="ar"] body.b .editor.is-guest .ed-close, html[dir="rtl"] body.b .editor.is-guest .ed-close { right: auto; left: calc(8px + env(safe-area-inset-left, 0px)); }
html body.b .editor.is-guest .ed-close::after { content: ""; position: absolute; inset: -5px; }
html body.b .editor.is-guest .ed-close:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

/* ==== words: GENERATED by scripts/words-css.mjs from the registry `look` blocks. Do not edit; change the registry and run the script. ==== */
.b-tpl-card .card:where([data-w~="pageall_date_en_font-size"]):not([lang="ar"]) .card-date { font-size: var(--w-pageall_date_en_font-size); }
.b-tile-stage.card:where([data-w~="tile_words_top"]) .card-words { top: var(--w-tile_words_top); }
@media (orientation: portrait), (max-width: 900px) {
  .b-tpl-card .card:where([data-w~="page_age_ar_font-size"])[lang="ar"] .card-age { font-size: var(--w-page_age_ar_font-size); }
  .b-tpl-card .card:where([data-w~="page_age_font-size"]) .card-age { font-size: var(--w-page_age_font-size); }
  .b-tpl-card .card:where([data-w~="page_date_ar_font-size"])[lang="ar"] .card-date { font-size: var(--w-page_date_ar_font-size); }
  .b-tpl-card .card:where([data-w~="page_date_ar_margin-top"])[lang="ar"] .card-date { margin-top: var(--w-page_date_ar_margin-top) !important; }
  .b-tpl-card .card:where([data-w~="page_date_en_font-size"]):not([lang="ar"]) .card-date { font-size: var(--w-page_date_en_font-size); }
  .b-tpl-card .card:where([data-w~="page_date_en_letter-spacing"]):not([lang="ar"]) .card-date { letter-spacing: var(--w-page_date_en_letter-spacing); }
  .b-tpl-card .card:where([data-w~="page_date_en_margin-top"]):not([lang="ar"]) .card-date { margin-top: var(--w-page_date_en_margin-top) !important; }
  .b-tpl-card .card:where([data-w~="page_date_font-size"]) .card-date { font-size: var(--w-page_date_font-size); }
  .b-tpl-card .card:where([data-w~="page_date_margin-top"]) .card-date { margin-top: var(--w-page_date_margin-top) !important; }
  .b-tpl-card .card:where([data-w~="page_names_ar_font-size"])[lang="ar"] .card-names { font-size: var(--w-page_names_ar_font-size); }
  .b-tpl-card .card:where([data-w~="page_names_font-size"]) .card-names { font-size: var(--w-page_names_font-size); }
  .b-tpl-card .card:where([data-w~="page_self_--fit"]) { --fit: var(--w-page_self_--fit); }
  .b-tpl-card .card:where([data-w~="page_self_ar_--fit"])[lang="ar"] { --fit: var(--w-page_self_ar_--fit); }
  .b-tpl-card .card:where([data-w~="page_words_--fit"]) .card-words { --fit: var(--w-page_words_--fit); }
  .b-tpl-card .card:where([data-w~="page_words_ar_--fit"])[lang="ar"] .card-words { --fit: var(--w-page_words_ar_--fit); }
  .b-tpl-card .card:where([data-w~="page_words_top"]) .card-words { top: var(--w-page_words_top); }
}
@media (max-width: 860px) {
  body.b .ed-strip-card .card:where([data-w~="strip_words_after_animation"]) .card-words::after { animation: var(--w-strip_words_after_animation) !important; }
  body.b .ed-strip-card .card:where([data-w~="strip_words_after_transform"]) .card-words::after { transform: var(--w-strip_words_after_transform) !important; }
  body.b .ed-strip-card .card:where([data-w~="strip_words_b-tile-stage_top"]).b-tile-stage .card-words { top: var(--w-strip_words_b-tile-stage_top); }
  body.b .ed-strip-card .card:where([data-w~="strip_words_before_animation"]) .card-words::before { animation: var(--w-strip_words_before_animation) !important; }
  body.b .ed-strip-card .card:where([data-w~="strip_words_before_transform"]) .card-words::before { transform: var(--w-strip_words_before_transform) !important; }
}
/* ==== words: end ==== */

/* the account page: the wishes book (hide or show each wish) */
body.b .acc-wishes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lx-hair); }
body.b .acc-wish { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--lx-hair); }
body.b .acc-wish.is-hidden .acc-wish-t { opacity: 0.55; }
body.b .acc-wish-t { grid-column: 1; margin: 0; font-size: 18px; line-height: 1.5; color: var(--lx-ink); overflow-wrap: anywhere; }
body.b .acc-wish-by { grid-column: 1; margin: 0; font-size: 16px; color: var(--lx-eye); }
body.b .acc-wish .acc-act { grid-column: 2; grid-row: 1 / span 2; min-height: 48px; }
@media (max-width: 560px) { body.b .acc-wish { grid-template-columns: 1fr; } body.b .acc-wish .acc-act { grid-column: 1; grid-row: auto; justify-self: start; } }

/* the editor: the gift box's QR picture */
body.b .ed-form .ed-qr { margin: 24px 0 0; }
body.b .ed-form .ed-qr-img { display: block; width: 140px; height: 140px; object-fit: contain; margin: 12px 0; background: #fff; padding: 6px; border: 1px solid var(--lx-hair); }
body.b .ed-form .ed-qr-img[hidden] { display: none; }
body.b .ed-form .ed-qr-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.b .ed-form .ed-plan-note { margin: 0 0 24px; }

/* the editor: the music chapter */
body.b .ed-form .ed-tracks { display: grid; gap: 10px; margin: 8px 0 0; }
body.b .ed-form .ed-track-audio { width: 100%; height: 40px; margin: 0 0 8px; }
body.b .ed-form .ed-own-music { margin: 28px 0 0; }
body.b .ed-form .ed-own-name { margin: 8px 0; font-size: 18px; color: var(--lx-ink); }
.acc-album { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.acc-album-i img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.acc-album-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.acc-tables-box { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; }
.ed-looks { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.ed-look { display: grid; gap: 6px; justify-items: center; cursor: pointer; font-size: 16px; }
.ed-look img { width: 108px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.ed-look input { position: absolute; opacity: 0; pointer-events: none; }
.ed-look input:checked + img { border-color: currentColor; }
.ed-look input:focus-visible + img { outline: 2px solid currentColor; outline-offset: 3px; }
/* The editor's look choice (Template chat 5, 21 Nov 2026): two paper tiles, the look's picture and its name; the chosen one has a plum ring and a check. */
body.b .ed-looks { display: flex; gap: 14px; flex-wrap: nowrap; margin: 12px 0 6px; }
body.b .ed-look { position: relative; display: grid; gap: 8px; justify-items: center; flex: 1 1 0; min-width: 0; max-width: 168px; padding: 6px 6px 10px; box-sizing: border-box; cursor: pointer;
  border-radius: 14px; background: #FFFCF7; border: 1px solid rgba(58, 23, 44, 0.14);
  box-shadow: 0 1px 2px rgba(58, 23, 44, 0.1), 0 10px 20px -12px rgba(58, 23, 44, 0.4);
  font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--lx-ink, #3A172C); transition: box-shadow 200ms ease-out, border-color 200ms ease-out; }
body.b .ed-look:lang(ar) { font-family: "Amiri", serif; font-weight: 700; font-size: 18px; }
body.b .ed-look img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 9px; border: 0; }
body.b .ed-look input:checked + img { border: 0; }
body.b .ed-look:has(input:checked) { border-color: var(--lx-ink, #3A172C); box-shadow: 0 0 0 1.5px var(--lx-ink, #3A172C), 0 12px 24px -12px rgba(58, 23, 44, 0.5); }
body.b .ed-look:has(input:checked)::after { content: "✓"; position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--lx-ink, #3A172C); color: #FBF1EC; font: 700 15px/1 system-ui, sans-serif; box-shadow: 0 2px 6px rgba(20, 8, 14, 0.35); }
body.b .ed-look:has(input:focus-visible) { outline: 2px solid var(--lx-ink, #3A172C); outline-offset: 3px; }
body.b .ed-look input:focus-visible + img { outline: none; }
@media (hover: hover) and (pointer: fine) { body.b .ed-look:not(:has(input:checked)):hover { border-color: rgba(58, 23, 44, 0.35); } }
