/* Hallmark · shape: app screen · genre: modern-minimal · theme: brand (Zonuru, DESIGN.md) under the host's photo colour and fonts · redesign: full (shared parts) · surface: absolute
 * paper: from the host's photo · accent: from the host's photo · display: the host's title font · body: Hanken Grotesk (Clean), or the host's text font
 * nav: kept, the mark and wordmark, quiet · signature: the host's photo and title, with the countdown and the one main action in the first panel · states: before, on the day, after, empty, sent
 * axes: light-or-dark/grotesk-sans/warm · posture: settled · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the giving panel stacked grey boxes inside a white panel; the totals now lead as a figure and the boxes are rows */
/* Hallmark · waive 7b · panel #FFFFFF on the photo-tinted page · white panels on a tint taken from the host's photo are the approved event page (CLAUDE.md, Decisions) */
/* Hallmark · finish-review: subagent · 8 findings · 8 resolved (double thank-you, give-or-pledge as one track, selection in ink, sticky hover, cut placeholder, checkbox alignment, amounts on the name line, photo name asked after picking) */
/* Hallmark · waive 39b · the envelope seal 64px · the wax seal on the optional envelope opening is a picture you tap, not a toolbar button */
/* avoid-ai-design-ignore: SD4d (Hallmark's stamp uses middle dots by design) */
@import url("./tokens.css?v=51f9aa6mwpg4uq7");
@import url("./weddings.css?v=51f9aa6mwpg4uq7");
@import url("./occasions.css?v=51f9aa6mwpg4uq7");
@import url("./tpl/tpl.css?v=51f9aa6mwpg4uq7");

/* Event page, built to docs/DESIGN.md Part 2.
   Layout: Luma (cover, title, host, date and place rows, action card, quiet sections; two columns on desktop).
   Colour: the accent comes from the host's photo; the page itself is flat (Apple grouped surfaces). No gradients.
   One main action, as on Posh and Dice. */
:root {
  --accent: #1d1d1f;
  --on-accent: #ffffff;
  --sans: var(--z-sans);
  --title-font: var(--sans); --title-weight: 700; --title-style: normal; --title-tracking: -0.025em;
  --page: #f2f2f7;
  --ink: #111113;
  --muted: rgba(17,17,19,.56);
  --hair: rgba(17,17,19,.1);
  --surface: rgba(255,255,255,.68);
  --surface-line: rgba(17,17,19,.08);
  --tile: rgba(255,255,255,.7);
  --veil: rgba(255,255,255,.72);
  --material: #ffffff;
  --fill: rgba(118,118,128,.12);
  --fill-2: rgba(118,118,128,.2);
  --seg-on: #ffffff;
  --edge: rgba(17,17,19,.5);
  --knob: #ffffff;
  --shadow-photo: 0 1px 2px rgba(0,0,0,.08), 0 24px 48px -24px rgba(0,0,0,.4);
  --shadow-panel: 0 1px 2px rgba(0,0,0,.04);
  --shadow-knob: 0 2px 4px rgba(0,0,0,.2);
  --pass-bg: #ffffff; --pass-ink: #111113; --pass-mute: #555555;
  --env-back: #e6e0d4; --env-card: #fffdf8; --env-front: #efe9dd; --env-front-2: #ebe4d7; --env-flap: #e2dbcd;
  --env-seal-ink: rgba(255,255,255,.9); --shadow-env: 0 30px 60px -25px rgba(0,0,0,.4); --shadow-seal: 0 6px 14px rgba(0,0,0,.3);
  --light-btn: #f5f5f7; --light-btn-ink: #111113;
  --shadow-toast: 0 0 0 1px rgba(255,255,255,.14), 0 12px 30px -10px rgba(0,0,0,.5);
}
:root[data-mode="dark"] {
  --page: #000000;
  --ink: #f5f5f7;
  --muted: rgba(245,245,247,.6);
  --hair: rgba(255,255,255,.12);
  --surface: rgba(255,255,255,.065);
  --surface-line: rgba(255,255,255,.08);
  --tile: rgba(255,255,255,.08);
  --veil: rgba(8,8,9,.7);
  --material: #1c1c1e;
  --fill: rgba(118,118,128,.24);
  --fill-2: rgba(118,118,128,.32);
  --seg-on: #636366;
  --edge: rgba(255,255,255,.42);
}
body.z { --link: color-mix(in oklab, var(--accent) 78%, var(--ink)); background: var(--page); color: var(--ink); min-height: 100vh; color-scheme: light; }
body.z[data-mode="dark"] { --link: var(--ink); color-scheme: dark; }


.z-bar { max-width: 880px; margin: 0 auto; height: 52px; display: flex; align-items: center; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.z-bar { height: 64px; }
.z-bar .wm { display: inline-flex; align-items: center; gap: var(--z-2); text-decoration: none; color: var(--muted); border-radius: var(--z-r-tag); }
.z-bar .wm img { width: 24px; height: 24px; border-radius: 6px; }
.z-bar .wm span { font-family: var(--z-mark); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }

/* Layout */
.z-page { max-width: 880px; margin: 0 auto; padding: 4px max(20px, env(safe-area-inset-right)) 72px max(20px, env(safe-area-inset-left)); display: grid; gap: 24px; font-family: var(--body-font, var(--sans)); letter-spacing: -0.011em; }
.z-left, .z-right { display: grid; gap: 20px; align-content: start; min-width: 0; }
.z-right { gap: 16px; }
@media (min-width: 900px) {
  .z-page { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding-top: 20px; }
  .z-left { position: sticky; top: 24px; }
}

.z-cover { aspect-ratio: var(--ratio, .8); border-radius: var(--z-r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-photo); }
.z-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A personal invitation leads with the guest's own named card, at its true shape */
.z-named { margin: 0; display: grid; gap: var(--z-3); }
.z-named img { width: 100%; height: auto; display: block; border-radius: var(--z-r-field); box-shadow: var(--shadow-photo); }
.z-named figcaption { font: var(--z-w-strong) 15px var(--sans); }
.z-named a { color: var(--link); text-decoration: underline; text-underline-offset: 0.16em; }

.z-title { margin: 0; font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-style); letter-spacing: var(--title-tracking); font-size: 34px; line-height: 38px; text-wrap: balance; overflow-wrap: anywhere; }
@media (min-width: 900px) { .z-title { font-size: 42px; line-height: 50px; } }

/* Host row with share and calendar (Posh) */
.z-host { display: grid; gap: 12px; font: 400 15px/21px var(--sans); color: var(--muted); }
.z-host-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.z-host-row > span { min-width: 0; }
.z-host-side { padding-top: 4px; }
.z-host-side .z-host-row { padding-bottom: 12px; border-bottom: 1px solid var(--hair); color: var(--ink); font-weight: 500; }
.z-side-n { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; }
.z-side-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.z-icons { display: flex; gap: 4px; flex: none; }
.z-icon { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.z-icon:hover { background: var(--surface); color: var(--ink); }
.z-host-row { justify-content: flex-start; }
.z-host .z-icons { margin-left: auto; }
.z-face { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--material); }

/* Three facts in one row with hairlines between (Airbnb) */
.z-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: var(--z-4) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-family: var(--sans); }
.z-fact { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 0 var(--z-3); text-align: center; text-decoration: none; color: var(--ink); border-radius: var(--z-r-tag); transition: background-color .15s var(--z-ease); }
.z-fact + .z-fact { border-left: 1px solid var(--hair); }
.z-fact b { font-size: 20px; line-height: 26px; font-weight: var(--z-w-display); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.z-fact span { font-size: 13px; line-height: 18px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) { .z-fact:hover { background: var(--fill); } }
.z-fact:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.z-who { margin: calc(-1 * var(--z-1)) 0 0; font: 400 15px/21px var(--sans); color: var(--muted); }

/* The newest few things on the page (Partiful) */
.z-latest ul { list-style: none; margin: 0; padding: var(--z-1) var(--z-6) var(--z-2); }
.z-latest li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--z-3); padding: var(--z-3) 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 21px; }
.z-latest li:first-child { border-top: 0; }
.z-latest li span { min-width: 0; color: var(--muted); }
.z-latest li b { color: var(--ink); font-weight: 600; }
.z-latest time { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.z-answers label { flex: 1 1 0; }

/* Phones: the photo runs edge to edge; the page rises over its bottom edge as a sheet (Apple Invites, Airbnb) */
@media (max-width: 899px) {
  .z-page { padding-top: 0; }
  /* Full width at every phone and tablet size; the height follows the photo's own shape, never taller than most of the screen */
  .z-left .z-cover { margin: 0 calc(-1 * max(20px, env(safe-area-inset-right))) 0 calc(-1 * max(20px, env(safe-area-inset-left))); border-radius: 0; box-shadow: none; aspect-ratio: auto; height: min(calc(100vw / var(--ratio, .8)), 76svh); }
  .z-left:has(.z-cover) + .z-right { position: relative; margin: -56px calc(-1 * max(20px, env(safe-area-inset-right))) 0 calc(-1 * max(20px, env(safe-area-inset-left))); padding: 28px max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); border-radius: 28px 28px 0 0; background: var(--page); }
}

/* Programme: the event's parts, set like a printed programme */
.z-parts { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 20px; font-family: var(--sans); }
.z-parts li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.z-cal { width: 44px; border-radius: 10px; border: 1px solid var(--hair); overflow: hidden; text-align: center; background: var(--material); }
.z-cal span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--fill); padding: 2px 0 1px; }
.z-cal b { display: block; font-size: 17px; line-height: 24px; font-weight: 600; }
.z-part-t { display: grid; gap: 1px; min-width: 0; }
.z-part { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.015em; }
.z-when { font-size: 15px; line-height: 21px; font-weight: 400; }
.z-parts li:has(.z-part) .z-when { color: var(--ink); }
.z-yours { color: var(--muted); font-weight: 400; }
.z-where { font-size: 14px; line-height: 20px; color: var(--muted); }
.z-where { display: flex; flex-wrap: wrap; column-gap: var(--z-3); }
.z-landmark { flex-basis: 100%; order: 1; }
.z-where > a { order: 2; }
.z-where a { color: var(--link); text-decoration: none; font-weight: 600; }
.z-where a:hover { text-decoration: underline; text-underline-offset: 0.16em; }
.z-life { display: flex; flex-wrap: wrap; column-gap: var(--z-4); margin: -12px 0 0; font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Action card (Luma) with one main button (Posh, Dice) */
/* Panels: white on the tinted page (dark panels on black). No borders, no blur, no gradients. */
.z-card, .z-sec { border-radius: var(--z-r-card); background: var(--material); box-shadow: var(--shadow-panel); color: var(--ink); font-family: var(--sans); }
body.z[data-mode="dark"] .z-card, body.z[data-mode="dark"] .z-sec { box-shadow: none; }
.z-card { overflow: hidden; }
/* A small header strip on a card (Luma): the label sits on a faint band, the content below */
.z-card-h { padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--muted); background: color-mix(in oklab, var(--ink) 4%, var(--material)); border-bottom: 1px solid var(--hair); }
.z-card-b { padding: 24px 24px 24px; display: grid; gap: 20px; }
/* Section titles in the event's own font */
/* Section titles keep the event's lettering, smaller, so the event title is the only large type */
.z-card-t, .z-sec h2 { margin: 0; font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-style); letter-spacing: var(--title-tracking); font-size: 22px; line-height: 28px; color: var(--ink); text-wrap: balance; }
@media (min-width: 900px) { .z-card-t, .z-sec h2 { font-size: 24px; line-height: 30px; } }
.z-going { margin: 0; font-size: 15px; color: var(--muted); }
.z-going b { color: var(--ink); font-weight: 600; }
.z-card-b p { margin: 0; font-size: 15px; line-height: 21px; }
.z-main { width: 100%; height: var(--z-control); border: 0; border-radius: var(--z-r-pill); background: var(--accent); color: var(--on-accent); font: var(--z-w-display) 19px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer; transition: filter .15s var(--z-ease), transform .15s var(--z-ease); }
.z-main:hover { filter: brightness(1.08); }
.z-main:active { transform: scale(.98); }
.z-main:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
body.z[data-mode="dark"] .z-main.on-dark-light { background: var(--light-btn); color: var(--light-btn-ink); }

/* Sections: each one a card on the photo-tinted page, titled in the event's font (Joy's named
   sections, given the weight of the top of the page). */
.z-sec { display: grid; gap: 20px; padding: 24px 24px 24px; scroll-margin-top: 16px; }
.z-sec > header { display: grid; gap: 8px; }
.z-sec-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.z-sec-t span { flex: none; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.z-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.z-note b { color: var(--ink); font-weight: 600; }
.z-h3 { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.z-prose { margin: 0; white-space: pre-line; font-size: 16px; line-height: 25px; }
.z-tag { margin: -12px 0 0; font-size: 15px; color: var(--muted); }


/* Buttons inside sections */
/* Secondary: outlined pills, never a second filled button */
.z-btn { position: relative; justify-self: start; height: var(--z-control-sm); padding: 0 var(--z-4); border-radius: var(--z-r-pill); border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font: var(--z-w-strong) 15px var(--sans); cursor: pointer; transition: background-color .15s var(--z-ease), transform .15s var(--z-ease); }
.z-btn::after { content: ""; position: absolute; inset: -2px 0; }
.z-btn:hover { background: var(--fill); }
.z-btn:active { transform: scale(.98); }
.z-btn:focus-visible, .z-link:focus-visible, .z-icon:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.z-btn.sm { height: 36px; padding: 0 var(--z-4); font-size: 14px; }
.z-btn.wide { justify-self: stretch; width: 100%; height: var(--z-control); font-size: 17px; }
.z-link { justify-self: start; border: 0; background: none; padding: 0; color: var(--link); font: var(--z-w-strong) 15px var(--sans); cursor: pointer; text-decoration: none; }
.z-link:hover { text-decoration: underline; text-underline-offset: 0.16em; }

/* Forms on the page */
.z-form { display: grid; gap: 12px; }
.z-form { gap: 16px; }
.z-form label { display: grid; gap: var(--z-2); font-size: 15px; font-weight: var(--z-w-regular); color: var(--ink); min-width: 0; }
.z-form input:not([type=checkbox]):not([type=radio]), .z-form select, .z-form textarea { width: 100%; min-width: 0; height: var(--z-control); padding: 0 var(--z-4); border-radius: var(--z-r-field); border: 0; background: var(--material); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); font: 400 17px var(--body-font, var(--sans)); -webkit-appearance: none; appearance: none; }
.z-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.z-form input[type=date] { padding-top: 0; padding-bottom: 0; line-height: 52px; }
.z-form textarea { height: auto; min-height: 104px; padding: var(--z-3) var(--z-4); resize: vertical; }
.z-form input::placeholder, .z-form textarea::placeholder { color: var(--muted); opacity: .8; }
.z-form input:not([type=checkbox]):not([type=radio]):hover, .z-form select:hover, .z-form textarea:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.z-form input:not([type=checkbox]):focus, .z-form select:focus, .z-form textarea:focus { outline: 2px solid var(--ink); outline-offset: -2px; box-shadow: none; }
.z-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Choices: pills; the chosen one is ink */
.z-seg { display: flex; gap: var(--z-2); }
.z-seg label { flex: 1 1 auto; min-width: 0; }
.z-seg-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.z-seg label { display: block !important; position: relative; color: var(--ink) !important; }
.z-seg input { position: absolute; opacity: 0; pointer-events: none; }
.z-seg span { display: grid; place-items: center; height: 44px; padding: 0 var(--z-3); border-radius: var(--z-r-pill); box-shadow: inset 0 0 0 1px var(--edge); font-size: 15px; white-space: nowrap; font-weight: var(--z-w-strong); cursor: pointer; text-align: center; line-height: 1.15; transition: background-color .15s var(--z-ease), color .15s var(--z-ease); }
@media (hover: hover) { .z-seg span:hover { background: var(--fill); } }
.z-seg span:active { transform: scale(.98); }
.z-seg input:checked + span { background: var(--ink); color: var(--material); box-shadow: none; }
.z-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Payment details, shown openly */
/* Payment details as rows on the panel, not boxes inside it */
.z-pay { display: grid; gap: 0; }
.z-paycard { display: grid; gap: 2px; padding: var(--z-4) 0; border-top: 1px solid var(--hair); position: relative; }
.z-pay .z-paycard:first-child { border-top: 0; padding-top: 0; }
.z-paycard .m { font-size: 14px; color: var(--muted); }
.z-paycard b { font-size: var(--z-h2); line-height: var(--z-h2-lh); font-weight: var(--z-w-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.z-paycard .n { font-size: 15px; font-weight: 500; }
.z-paycard .z-btn { position: absolute; top: var(--z-4); right: 0; }
.z-pay .z-paycard:first-child .z-btn { top: 0; }
.z-listhead { display: flex; justify-content: space-between; align-items: end; gap: var(--z-3); flex-wrap: wrap; font-size: 15px; padding-top: var(--z-1); }
.z-fig { display: grid; gap: var(--z-1); }
.z-fig span { font-size: 14px; color: var(--muted); }
.z-fig b { font-size: 40px; line-height: 1; font-weight: var(--z-w-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.z-item { margin-left: var(--z-2); }
.z-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.z-toggle input { -webkit-appearance: none; appearance: none; position: relative; width: 38px; height: 23px; margin: 0; border-radius: 999px; background: var(--fill-2); cursor: pointer; transition: background .2s ease; }
.z-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--knob); box-shadow: var(--shadow-knob); transition: transform .2s ease; }
.z-toggle input:checked { background: var(--ink); }
.z-toggle input:checked::after { transform: translateX(15px); }

.z-list { list-style: none; margin: 0; padding: 0; }
.z-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.z-list li:last-child { border-bottom: 0; }
.z-list .k { min-width: 0; }
.z-list .k b { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.z-list .k span { display: block; color: var(--muted); font-size: 14px; }
.z-list li:has(.k span):has(> .v) { align-items: start; }
.z-list .v { line-height: 22px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.z-list .v.strong { color: var(--ink); font-weight: 600; }
.z-list a { color: var(--link); text-decoration: none; font-weight: 500; }
.z-prog { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.z-prog li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 16px; line-height: 22px; }
.z-prog li:last-child { border-bottom: 0; }
.z-prog li span { font: 500 14px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.z-prog li.now { font-weight: 600; }
.z-family { margin: 0; display: grid; gap: 12px; }
.z-family div { display: grid; gap: 2px; }
.z-family dt { font-size: 13px; color: var(--muted); }
.z-family dd { margin: 0; font-size: 16px; font-weight: 500; }
.z-swatches { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.z-swatches span { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.z-swatches i { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); }
.z-quotes { display: grid; gap: 4px; }
.z-quote { margin: 0; padding: 16px 0; border-top: 1px solid var(--hair); }
.z-quotes .z-quote:first-child { border-top: 0; padding-top: 4px; }
.z-quote p { margin: 0 0 8px; font-size: 17px; line-height: 25px; overflow-wrap: anywhere; }
.z-quote cite { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.z-notice { margin: 0; font-size: 14px; color: var(--muted); }
.z-ver { display: block; font-weight: 600; color: var(--ink); }

/* Countdown inside the main card, in the event's font */
.z-count { display: flex; gap: 28px; }
.z-count div { display: grid; gap: 2px; }
.z-count b { font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-style); letter-spacing: var(--title-tracking); font-size: 36px; line-height: 40px; font-variant-numeric: tabular-nums; }
.z-count span { font-size: 13px; color: var(--muted); }

/* Giving: form, then where to send, then thank you */
.z-check { display: flex !important; align-items: center; gap: 12px; font-weight: 400 !important; font-size: 15px !important; color: var(--ink) !important; }
.z-check { min-height: 44px; }
.z-check input { width: 18px !important; height: 18px; margin: 0; accent-color: var(--ink); }
.z-sendto { display: grid; gap: 12px; }
.z-paycard .n.big { font-size: 19px; font-weight: 700; }
.z-ref { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px var(--z-3); padding: var(--z-4) 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.z-ref span { font-size: 14px; color: var(--muted); grid-column: 1; }
.z-ref b { font-size: var(--z-h2); line-height: var(--z-h2-lh); font-weight: var(--z-w-display); letter-spacing: .02em; font-variant-numeric: tabular-nums; grid-column: 1; }
.z-ref .z-btn { grid-column: 2; grid-row: 1 / span 2; }
.z-row2 { display: grid; gap: 12px; justify-items: center; }
.z-done { display: grid; gap: var(--z-2); justify-items: start; }
.z-done b { font-size: var(--z-h3); line-height: var(--z-h3-lh); }
.z-done p { margin: 0; font-size: 15px; color: var(--muted); }

/* Personal invitation with entry pass */
.z-invname { margin: 0; font-family: var(--title-font); font-weight: var(--title-weight); font-style: var(--title-style); letter-spacing: var(--title-tracking); font-size: 24px; line-height: 28px; }
.z-pass { display: grid; justify-items: center; gap: 12px; padding: 20px 16px 16px; border-radius: 18px; background: var(--pass-bg); color: var(--pass-ink); }
.z-pass .z-note { color: var(--pass-mute); text-align: center; }
.z-pass img, .z-pass canvas { display: block; }

/* Shared photo album */
.z-album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--z-1); border-radius: var(--z-r-field); overflow: hidden; }
.z-album a { aspect-ratio: 1; display: block; background: var(--tile); }
.z-album img { width: 100%; height: 100%; object-fit: cover; display: block; }
.z-filebtn { position: relative; display: grid !important; place-items: center; height: var(--z-control); align-self: end; border-radius: var(--z-r-pill); background: transparent; box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink) !important; font: 600 15px var(--sans) !important; cursor: pointer; }
.z-filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Voice notes */
.z-voice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.z-voice audio, .z-quote audio { height: 40px; max-width: 100%; }
.z-quote audio { display: block; margin-bottom: 8px; }

/* Give now or pledge */
/* Give now or pledge: one track, the chosen side a pill inside it (not two buttons) */
.z-seg.z-mode { gap: 0; padding: var(--z-1); border-radius: var(--z-r-pill); background: var(--fill); }
.z-mode label { flex: 1 1 0; }
.z-mode span { height: 36px; box-shadow: none; font-weight: var(--z-w-regular); }
.z-mode input:checked + span { background: var(--material); color: var(--ink); font-weight: var(--z-w-strong); box-shadow: var(--shadow-panel); }

/* Announcements */
.z-updates { list-style: none; margin: 0; padding: 0; display: grid; }
.z-updates li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--hair); }
.z-updates li:first-child { border-top: 0; padding-top: 0; }
.z-updates time { font-size: 13px; color: var(--muted); }
.z-updates p { margin: 0; font-size: 16px; line-height: 23px; font-weight: 500; }
.z-recap { margin: 0; font-size: 16px; line-height: 23px; }
.z-foot { display: flex; flex-wrap: wrap; gap: var(--z-1) var(--z-4); padding-top: var(--z-4); font-size: 13px; color: var(--muted); }
.z-foot a { color: var(--muted); }
@media (max-width: 380px) { .z-two { grid-template-columns: 1fr; } }

/* Envelope opening (Paperless Post), optional */
.env-stage { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; align-content: center; gap: 24px; background: var(--page); transition: opacity .7s ease .9s, visibility 0s 1.6s; font-family: var(--sans); }
.env-stage.open { opacity: 0; visibility: hidden; }
.env { position: relative; width: min(82vw, 360px); aspect-ratio: 1.45; perspective: 1200px; }
.env-back, .env-front, .env-flap { position: absolute; inset: 0; border-radius: 6px; }
.env-back { background: var(--env-back); box-shadow: var(--shadow-env); }
.env-card { position: absolute; left: 8%; right: 8%; top: 9%; height: 82%; background: var(--env-card); border-radius: 3px; overflow: hidden; transition: transform 1s cubic-bezier(.2,.8,.2,1) .45s; }
.env-card img { width: 100%; height: 100%; object-fit: cover; }
.env-front { background: linear-gradient(to top right, var(--env-front) 50%, transparent 50.2%) left / 50.2% 100% no-repeat, linear-gradient(to top left, var(--env-front) 50%, transparent 50.2%) right / 50.2% 100% no-repeat, linear-gradient(to top, var(--env-front-2) 0 48%, transparent 48%); z-index: 2; }
.env-flap { height: 58%; background: var(--env-flap); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s ease; z-index: 3; }
.env-seal { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); z-index: 4; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: var(--env-seal-ink); font: 600 13px var(--sans); box-shadow: var(--shadow-seal); transition: opacity .3s; }
.env-stage.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env-stage.open .env-seal, .env-stage.open .env-hint { opacity: 0; }
.env-stage.open .env-card { transform: translateY(-46%); z-index: 2; }
.env-hint { margin: 0; font-size: 14px; color: var(--muted); }
.z-row2 .z-link { justify-self: center; }
body.z[data-mode="dark"] .z-toggle input:checked { background: var(--light-btn); }
body.z[data-mode="dark"] .z-toggle input:checked::after { background: var(--material); }

/* Host block: under the title on phones, under the photo on desktop (Luma) */
.z-host.z-host-side { display: none; }
@media (min-width: 900px) { .z-host.z-host-side { display: grid; } .z-host.z-host-main { display: none; } }
@media (min-width: 900px) { .z-card-b, .z-sec { padding-left: 28px; padding-right: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .z-main, .z-btn, .z-seg span, .z-toggle input, .z-toggle input::after, .env-card, .env-flap, .env-seal, .env-stage { transition: none; }
  .z-main:active, .z-btn:active { transform: none; }
}

/* Buttons share one shape across Zonuru (owner, 30 October): a rounded key with a light top edge and a darker bottom edge */
.z-main { border-radius: var(--z-r-btn); box-shadow: var(--z-key); }
.z-main:active { transform: translateY(1px); box-shadow: var(--z-key-down); }
.z-btn, .z-filebtn { border-radius: var(--z-r-btn-sm); }

/* The toast is solid and readable on light and dark pages alike */
.toast { max-width: min(92vw, 420px); background: var(--z-ink); color: var(--z-paper); border-radius: var(--z-r-field); padding: var(--z-3) var(--z-4); line-height: 1.4; text-align: center; box-shadow: var(--shadow-toast); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Example page badge: a quiet pill in the top bar on the home page's demos; tapping it starts your own */
.z-bar { justify-content: space-between; }
.z-demo { display: inline-flex; align-items: center; height: 30px; padding: 0 var(--z-3); border-radius: var(--z-r-pill); background: var(--z-orange-soft); color: var(--z-on-orange-small); font: var(--z-w-strong) 13px var(--sans); text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .z-demo:hover { background: var(--z-orange); color: var(--z-on-orange); } }
.z-demo:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Organisation page (docs/DESIGN.md Part 13) ----------
   Luma's calendar: the photo, the logo on its lower edge, the name, one Follow button, then the events as one grouped
   list (Apple) with the date on the left and the event's photo on the right. Eventbrite's Upcoming and Past.
   On phones the photo runs edge to edge, as on event pages. */
.o-logo { width: 72px; height: 72px; border-radius: var(--z-r-card); object-fit: cover; background: var(--material); box-shadow: 0 0 0 4px var(--page), var(--shadow-panel); }
.o-has-cover .o-logo { margin-top: -52px; position: relative; }
.o-head { display: grid; gap: var(--z-1); }
.o-meta { margin: 0; color: var(--muted); font-size: 16px; }
.o-meta .z-ver { display: inline; margin-left: var(--z-2); }
.o-about { margin: 0; font-size: 16px; line-height: 1.5; white-space: pre-line; max-width: 60ch; }
.o-links { margin: 0; display: flex; flex-wrap: wrap; gap: var(--z-2) var(--z-5); }
.o-links a { color: var(--link); font-weight: var(--z-w-strong); font-size: 15px; text-decoration: none; border-radius: var(--z-r-tag); }
.o-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.o-following { margin: 0; font-weight: var(--z-w-strong); }
.o-follow p { margin: 0; }
.o-err { margin: 0; color: var(--z-err); font-size: 15px; }
body.z[data-mode="dark"] .o-err { color: var(--z-err-on-deep); }
.o-events { display: grid; gap: var(--z-3); margin-top: var(--z-4); }
.o-h { margin: 0; font-family: var(--sans); font-size: 20px; line-height: 1.25; font-weight: var(--z-w-strong); letter-spacing: -0.01em; }
.o-tabs { justify-self: start; }
.o-tabs label { flex: none; }
.o-tabs span { padding: 0 var(--z-5); }
.o-list { list-style: none; margin: 0; padding: 0; border-radius: var(--z-r-card); background: var(--material); box-shadow: var(--shadow-panel); overflow: hidden; }
.o-list li + li { border-top: 1px solid var(--hair); }
.o-ev { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--z-4); align-items: center; padding: var(--z-4) var(--z-5); color: var(--ink); text-decoration: none; }
@media (hover: hover) { .o-ev:hover b { text-decoration: underline; text-underline-offset: 3px; } }
.o-ev:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: var(--z-r-card); }
.o-ev-t { display: grid; gap: 2px; min-width: 0; }
.o-ev-t b { font-size: 17px; line-height: 1.3; font-weight: var(--z-w-strong); overflow-wrap: anywhere; }
.o-ev-when { color: var(--link); font-size: 14px; font-weight: var(--z-w-strong); }
.o-ev-where { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.o-ev img { width: 72px; height: 72px; border-radius: var(--z-r-field); object-fit: cover; }
.o-empty { display: grid; gap: var(--z-1); padding: var(--z-6) var(--z-5); border-radius: var(--z-r-card); background: var(--material); box-shadow: var(--shadow-panel); }
.o-empty span { color: var(--muted); }
.o-team { display: grid; gap: var(--z-2); }
.o-team p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.o-team-main { margin-top: var(--z-4); }
@media (max-width: 899px) { .o-team-side { display: none; } }
@media (min-width: 900px) { .o-team-main { display: none; } }
@media (max-width: 480px) { .o-ev { grid-template-columns: 44px minmax(0, 1fr) 60px; gap: var(--z-3); padding: var(--z-4); } .o-ev img { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .o-ev, .o-links a { transition: none; } }
/* An organisation's event links back to its page, in one quiet line under the title. */
.z-by { margin: calc(-1 * var(--z-2)) 0 0; color: var(--muted); font-size: 16px; }
.z-by a { color: var(--link); font-weight: var(--z-w-strong); text-decoration: none; border-radius: var(--z-r-tag); }
.z-by a:hover { text-decoration: underline; text-underline-offset: 3px; }
.z-by a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Registration events (docs/DESIGN.md Part 14) ----------
   Luma's registration card: seat types as one grouped list, each with its price on the right, "Needs approval" said
   plainly; the form opens inside the card. The ticket replaces the card once registered. Speakers after Web Summit. */
.z-approval { display: grid; gap: 2px; padding: var(--z-3) var(--z-4); border-radius: var(--z-r-field); background: var(--fill); }
.z-approval span { color: var(--muted); font-size: 15px; }
.z-reg-price { margin: 0; font-size: 20px; font-weight: var(--z-w-strong); }
.z-reg-for { display: flex; flex-wrap: wrap; gap: var(--z-3); align-items: baseline; }
.z-seats { display: grid; border-radius: var(--z-r-field); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.z-seat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--z-3); align-items: center; padding: var(--z-3) var(--z-4); cursor: pointer; position: relative; }
.z-seat + .z-seat { border-top: 1px solid var(--hair); }
.z-seat input { position: absolute; opacity: 0; pointer-events: none; }
.z-seat:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--z-r-field); }
.z-seat:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -4px; }
.z-seat-t { display: grid; gap: 2px; min-width: 0; }
.z-seat-t b { font-weight: var(--z-w-strong); font-size: 16px; }
.z-seat-t span { color: var(--muted); font-size: 14px; }
.z-seat-p { font-weight: var(--z-w-strong); font-variant-numeric: tabular-nums; }
.z-paybox { display: grid; gap: var(--z-3); padding: var(--z-4); border-radius: var(--z-r-field); background: var(--fill); }
.z-paybox p { margin: 0; font-size: 15px; line-height: 1.45; }
.z-paybox dl { margin: 0; display: grid; gap: var(--z-2); }
.z-paybox dl div { display: flex; justify-content: space-between; gap: var(--z-3); }
.z-paybox dt { color: var(--muted); }
.z-paybox dd { margin: 0; font-weight: var(--z-w-strong); text-align: right; overflow-wrap: anywhere; }
.z-ticket-top { display: flex; justify-content: space-between; gap: var(--z-3); }
.z-ticket-top p { margin: 0; }
.z-ticket-info { display: grid; gap: 2px; }
.z-ticket-info span { overflow-wrap: anywhere; }
/* "Can't come any more?" (DESIGN.md Part 19): a quiet link; the question opens in place. */
.z-ticket > .z-card-b > .z-link { color: var(--muted); font-weight: var(--z-w-regular); }
.z-cant { display: grid; gap: var(--z-3); justify-items: start; padding-top: var(--z-4); border-top: 1px solid var(--hair); }
.z-cant p { margin: 0; }
.z-ticket-info a, .z-ticket .z-note a { color: var(--link); font-weight: var(--z-w-strong); overflow-wrap: anywhere; }
.z-place { display: grid; gap: var(--z-2); margin-top: var(--z-3); padding-left: 60px; }
.z-place p { margin: 0; display: grid; gap: 0; }
.z-place span { color: var(--muted); font-size: 15px; }
.z-speakers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: var(--z-5) var(--z-4); }
.z-speakers li { display: grid; gap: 2px; align-content: start; min-width: 0; }
.z-speakers img, .z-sp-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--z-r-field); background: var(--fill); margin-bottom: var(--z-2); }
.z-speakers b { font-weight: var(--z-w-strong); font-size: 16px; overflow-wrap: anywhere; }
.z-speakers span { color: var(--muted); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.z-partners { margin: 0; display: flex; flex-wrap: wrap; gap: var(--z-2) var(--z-5); font-weight: var(--z-w-strong); }
.z-partners a { color: var(--link); text-decoration: none; border-radius: var(--z-r-tag); }
.z-partners a:hover { text-decoration: underline; text-underline-offset: 3px; }
.z-partners a:focus-visible, .z-ticket-info a:focus-visible, .z-ticket .z-note a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .z-seat { transition: none; } }
.z-inv-no { justify-self: center; }
/* The organiser's own ticket design, with the guest's name and code drawn in (docs/DESIGN.md Part 14). */
.z-tk { margin: 0; display: grid; gap: var(--z-3); }
.z-tk img { width: 100%; min-height: 120px; border-radius: var(--z-r-field); background: var(--fill); box-shadow: 0 0 0 1px var(--hair); }
.z-tk figcaption { font-size: 15px; color: var(--muted); }
.z-tk figcaption a { color: var(--link); font-weight: var(--z-w-strong); margin-left: var(--z-2); }
.z-tk figcaption a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--z-r-tag); }
/* Certificates of attendance (docs/DESIGN.md Part 16): the certificate, then the downloads and Verify on one line. */
.z-cert-img { width: 100%; min-height: 160px; border-radius: var(--z-r-field); background: var(--fill); box-shadow: 0 0 0 1px var(--hair); }
.z-cert-dl { margin: 0; display: flex; flex-wrap: wrap; gap: var(--z-2) var(--z-5); }
.z-cert-dl a { color: var(--link); font-weight: var(--z-w-strong); }
.z-cert-dl a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--z-r-tag); }
/* The verify page (docs/DESIGN.md Part 16): the certificate large on the left; who, what, when and by whom on the right. */
@media (min-width: 900px) { .v-page { max-width: 1120px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .v-left { position: static; } }
.v-fig { margin: 0; }
.v-fig img { width: 100%; min-height: 200px; border-radius: var(--z-r-field); background: var(--fill); box-shadow: var(--shadow-photo); }
.v-status { display: grid; gap: 2px; padding: var(--z-4) var(--z-5); border-radius: var(--z-r-card); background: var(--material); box-shadow: var(--shadow-panel); }
.v-status b { font-size: 18px; }
.v-ok b { color: var(--z-ok); }
.v-bad b { color: var(--z-err); }
.v-status span { color: var(--muted); font-size: 15px; }
.v-facts { margin: 0; display: grid; border-radius: var(--z-r-card); background: var(--material); box-shadow: var(--shadow-panel); overflow: hidden; }
.v-facts div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: var(--z-4); padding: var(--z-3) var(--z-5); }
.v-facts div + div { border-top: 1px solid var(--hair); }
.v-facts dt { color: var(--muted); }
.v-facts dd { margin: 0; font-weight: var(--z-w-strong); overflow-wrap: anywhere; }
.v-facts a, .v-ev a { color: var(--link); }
.v-ev { margin: 0; font-weight: var(--z-w-strong); }
.v-facts a:focus-visible, .v-ev a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--z-r-tag); }

/* "The book" on a launch (docs/DESIGN.md Part 17): the cover beside the title, author and price (Amplify); one
   secondary button; other places to buy on one quiet line (Goodreads, Penguin Random House). */
.z-ft { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--z-5); align-items: start; }
.z-ft:not(:has(.z-ft-cover)) { grid-template-columns: minmax(0, 1fr); }
.z-ft-cover { width: 132px; border-radius: var(--z-r-tag); box-shadow: var(--shadow-photo); background: var(--fill); }
.z-ft-t { display: grid; gap: var(--z-1); min-width: 0; }
.z-ft-title { font-family: var(--title-font); font-weight: var(--title-weight); font-size: 22px; line-height: 1.2; letter-spacing: var(--title-tracking); overflow-wrap: anywhere; }
.z-ft-by { color: var(--muted); font-size: 16px; }
.z-ft-price { margin-top: var(--z-2); font-weight: var(--z-w-strong); font-size: 18px; font-variant-numeric: tabular-nums; }
.z-ft-note { margin: 0; font-weight: var(--z-w-strong); }
.z-ft-shops { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--z-2) var(--z-4); }
.z-ft-shops span { color: var(--muted); font-size: 15px; }
.z-ft-shops a { color: var(--link); font-weight: var(--z-w-strong); font-size: 15px; text-decoration: none; border-radius: var(--z-r-tag); }
.z-ft-shops a:hover { text-decoration: underline; text-underline-offset: 3px; }
.z-ft-shops a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 480px) { .z-ft { grid-template-columns: 104px minmax(0, 1fr); gap: var(--z-4); } .z-ft-cover { width: 104px; } }
/* A link that opens a shop looks like the page's other secondary buttons. */
a.z-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- Premium designs (DESIGN.md Part 22) ----------
   Signature: Riley & Grey "Signature", Zola "Poet". Collage: Riley & Grey "Stardust", "Posy". Kente: Ghanaian kente
   invitations, Zola "Bryn". The top is full width above the columns; the page below is one centred column. */
:root { --zd-cream: #F3EBDD; --zd-ivory: #FBF8F2; --zd-on-photo: #FFFFFF; --zd-lift: #FFFFFF; --zd-scrim: rgba(12,10,8,.34); --zd-green: #1F3B2D; }
body[data-design] .z-page { max-width: 680px; grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
body[data-design] .z-left { display: none; }
/* A guest's personal invitation keeps their named card, under the design's top. */
body[data-design] .z-left:has(.z-named) { display: grid; position: static; }
body[data-design] .z-left .z-host-side { display: none !important; }
body[data-design] .z-host-main { display: block !important; }
/* Collage: panels are the page's own colour, a shade lighter, so the whole page stays one colour. */
body[data-design="collage"] { --material: color-mix(in srgb, var(--page) 86%, var(--zd-lift)); }
body[data-design] .z-right { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: none !important; position: static !important; }
.zd { position: relative; color: var(--ink); }
.zd-names { margin: 0; font-family: var(--title-font); font-weight: var(--title-weight); letter-spacing: var(--title-tracking); overflow-wrap: anywhere; min-width: 0; text-wrap: balance; }

/* Signature: the photo full width, the names in spaced capitals between two fine rules. */
.zd-signature { height: min(86svh, 860px); min-height: 460px; display: grid; place-items: center; overflow: hidden; background: var(--ink); }
.zd-signature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zd-signature::after { content: ""; position: absolute; inset: 0; background: var(--zd-scrim); }
.zd-signature.zd-nophoto { background: var(--zd-ivory); height: auto; min-height: 0; padding: 96px 20px; }
.zd-signature.zd-nophoto::after { display: none; }
.zd-over { position: relative; z-index: 1; align-self: end; display: grid; justify-items: center; gap: 18px; padding: 0 24px 64px; text-align: center; color: var(--zd-on-photo); max-width: 920px; }
.zd-nophoto .zd-over { color: var(--ink); }
.zd-signature .zd-names { letter-spacing: .24em; font-weight: 500; font-size: clamp(30px, 5.6vw, 68px); line-height: 1.12; margin-right: -.24em; }
.zd-rule { display: block; width: min(260px, 60vw); border-top: 1px solid currentColor; opacity: .8; }
.zd-signature .zd-date { margin: 4px 0 0; font-family: var(--title-font); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }

/* Collage: one flat colour, the names large, two photos overlapping, the date up the edge. */
.zd-collage { background: var(--page); color: var(--zd-cream); padding: 40px max(20px, env(safe-area-inset-left)) 48px; }
.zd-grid { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 48px repeat(11, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 24px; align-items: center; }
.zd-collage .zd-names { grid-column: 2 / 9; grid-row: 1; z-index: 2; font-size: clamp(44px, 7.4vw, 104px); line-height: .98; font-weight: 500; color: var(--zd-cream); }
.zd-a { grid-column: 7 / 13; grid-row: 1 / 3; margin: 0; z-index: 1; }
.zd-b { grid-column: 3 / 8; grid-row: 2 / 4; margin: 0; z-index: 1; align-self: end; }
.zd-a img, .zd-b img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zd-a img { aspect-ratio: 4 / 3; }
.zd-b img { aspect-ratio: 3 / 2; }
.zd-one .zd-a { grid-column: 5 / 13; grid-row: 1 / 4; }
.zd-one .zd-a img { aspect-ratio: 4 / 5; max-height: 78svh; }
.zd-vdate { grid-column: 1; grid-row: 2 / 4; align-self: end; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--title-font); font-size: 18px; letter-spacing: .12em; white-space: nowrap; color: var(--zd-cream); opacity: .85; }
body[data-design="collage"] .z-main.on-dark-light { color: var(--page); }

/* Kente: ivory, a woven band at the top and bottom, the photo framed. */
.zd-kente { background: var(--zd-ivory); text-align: center; }
.zd-band { height: 44px; background: var(--zd-green) var(--kente, none) center / auto 100% repeat-x; }
.zd-k-in { display: grid; justify-items: center; gap: 16px; padding: 64px 20px 56px; }
.zd-kente .zd-names { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; color: var(--zd-green); }
.zd-kente .zd-date { margin: 0; font-family: var(--title-font); font-style: italic; font-size: clamp(19px, 2vw, 24px); }
.zd-frame { margin: 16px 0 0; padding: 10px; background: var(--zd-green); width: min(520px, 100%); }
.zd-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Sections under a design: centred titles, like the stationery. */
body[data-design="signature"] .z-sec h2, body[data-design="kente"] .z-sec h2 { font-size: 28px; line-height: 32px; }

@media (max-width: 700px) {
  .zd-signature { height: 78svh; min-height: 420px; }
  .zd-signature .zd-names { letter-spacing: .16em; margin-right: -.16em; }
  .zd-collage { padding: 28px 20px 36px; }
  .zd-grid { grid-template-columns: 28px repeat(6, minmax(0, 1fr)); gap: 14px; }
  .zd-collage .zd-names { grid-column: 2 / 8; grid-row: 1; font-size: clamp(40px, 13vw, 64px); }
  .zd-a { grid-column: 3 / 8; grid-row: 2; }
  .zd-b { grid-column: 2 / 6; grid-row: 3; margin-top: -56px; }
  .zd-one .zd-a { grid-column: 2 / 8; grid-row: 2 / 4; }
  .zd-vdate { grid-row: 2 / 4; font-size: 14px; }
}

/* Funerals (DESIGN.md Part 24). Portrait: Ghanaian "Call to Glory" brochures, deep maroon and flat gold. Memorial:
   MuchLoved tribute pages and ivory funeral programmes, the portrait in an arch. */
:root { --zd-maroon: #2A0B10; --zd-gold: #C9A45C; --zd-cream-2: #F4EBDD; --zd-ivory-2: #FAF7F2; --zd-ink-2: #2B2724; }
.zd-portrait { background: var(--zd-maroon); color: var(--zd-cream-2); padding: 48px 20px 56px; }
.zd-p-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.zd-pframe { margin: 0; padding: 10px; border: 1px solid var(--zd-gold); }
.zd-pframe img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.zd-p-t { display: grid; gap: 18px; justify-items: start; }
.zd-portrait .zd-rule { width: 96px; border-top: 2px solid var(--zd-gold); opacity: 1; }
.zd-portrait .zd-names { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; letter-spacing: .02em; color: var(--zd-cream-2); }
.zd-life { margin: 0; font-family: var(--title-font); font-size: clamp(20px, 2.2vw, 28px); color: var(--zd-gold); }
.zd-portrait .zd-date { margin: 0; font-size: 18px; line-height: 1.5; color: var(--zd-cream-2); opacity: .85; }
body[data-design="portrait"] { --material: color-mix(in srgb, var(--page) 88%, var(--zd-lift)); }
body[data-design="portrait"] .z-main.on-dark-light { color: var(--zd-maroon); }

.zd-memorial { background: var(--zd-ivory-2); color: var(--zd-ink-2); display: grid; justify-items: center; gap: 14px; padding: 48px 20px 40px; text-align: center; }
.zd-arch { margin: 0 0 12px; width: min(340px, 72vw); border-radius: 999px 999px 0 0; overflow: hidden; }
.zd-arch img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; }
.zd-memorial .zd-names { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; font-weight: 500; }
.zd-memorial .zd-life { color: var(--zd-ink-2); font-style: italic; font-size: clamp(20px, 2vw, 24px); }
.zd-memorial .zd-date { margin: 0; color: var(--zd-ink-2); opacity: .75; font-size: 17px; }

@media (max-width: 700px) {
  .zd-p-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .zd-portrait { padding: 24px 20px 40px; }
}

/* Birthdays and outdoorings (DESIGN.md Part 24). Milestone: "Big Six Oh" and gold 60th invitations, the age huge in
   gold on black. Cradle: naming-ceremony invitations, warm ivory, the photo in a double arch. */
:root { --zd-black: #111111; --zd-sand: #CDB89A; --zd-warm: #FBF6EF; --zd-brown: #5A4636; }
.zd-m-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.zd-m-t { display: grid; gap: 16px; justify-items: start; }
.zd-age { margin: 0; font-family: var(--title-font); font-weight: 600; font-size: clamp(150px, 24vw, 340px); line-height: .82; color: var(--zd-gold); letter-spacing: -.02em; }


@media (max-width: 700px) {
  .zd-m-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Meetups and conferences (DESIGN.md Part 24). Sessions: Stripe Sessions. Keynote: Vercel Ship. Poster: Figma Config. */
:root { --zd-k-panel: #0B0B0B; --zd-paper-w: #FBFBFA; --zd-ink-k: #111111; --zd-line-k: #2A2A2A; --zd-grey-k: #A3A3A3; --zd-poster: #F2F0EB; }
.zd-sessions { background: var(--zd-paper-w); color: var(--zd-ink-k); padding: 48px 20px 24px; }
.zd-s-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.zd-sessions .zd-names { font-size: clamp(44px, 6.6vw, 96px); line-height: .98; color: var(--zd-ink-k); }
.zd-s-when { margin: 8px 0 0; font-size: 17px; line-height: 1.45; color: var(--zd-ink-k); }
.zd-band-photo { grid-column: 1 / -1; margin: 16px 0 0; border-radius: 20px; overflow: hidden; }
.zd-band-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.zd-keynote { background: var(--zd-ink-k); color: var(--zd-cream-2); border-bottom: 1px solid var(--zd-line-k); }
.zd-k-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-left: 1px solid var(--zd-line-k); border-right: 1px solid var(--zd-line-k); }
.zd-k-photo { margin: 0; border-right: 1px solid var(--zd-line-k); position: relative; }
.zd-k-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.zd-k-photo figcaption { position: absolute; left: 0; bottom: 0; padding: 14px 18px; background: var(--zd-ink-k); font: 500 15px/1.4 "JetBrains Mono", ui-monospace, monospace; color: var(--zd-cream-2); }
.zd-k-photo figcaption span { color: var(--zd-grey-k); }
.zd-k-t { display: grid; align-content: space-between; gap: 32px; padding: 40px; }
.zd-keynote .zd-names { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; color: var(--zd-cream-2); }
.zd-k-dl { margin: 0; display: grid; border-top: 1px solid var(--zd-line-k); }
.zd-k-dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--zd-line-k); font: 400 15px/1.5 "JetBrains Mono", ui-monospace, monospace; }
.zd-k-dl dt { color: var(--zd-grey-k); }
.zd-k-dl dd { margin: 0; color: var(--zd-cream-2); overflow-wrap: anywhere; }
body[data-design="keynote"] { --material: var(--zd-k-panel); }
body[data-design="keynote"] .z-main.on-dark-light { color: var(--zd-ink-k); }

.zd-poster { background: var(--zd-poster); color: var(--zd-ink-k); padding: 32px 20px 0; }
.zd-poster .zd-names { max-width: 1240px; margin: 0 auto; font-size: clamp(56px, 11vw, 184px); line-height: .88; color: var(--zd-ink-k); }
.zd-po-row { max-width: 1240px; margin: 24px auto 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; font-size: 20px; line-height: 1.3; font-weight: 500; }
.zd-po-row p { margin: 0; }
.zd-po-photo { margin: 0 calc(-1 * 20px); }
.zd-po-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

@media (max-width: 700px) {
  .zd-s-in { grid-template-columns: minmax(0, 1fr); }
  .zd-band-photo img { aspect-ratio: 4 / 3; }
  .zd-k-grid { grid-template-columns: minmax(0, 1fr); }
  .zd-k-photo { border-right: 0; border-bottom: 1px solid var(--zd-line-k); }
  .zd-k-t { padding: 24px 20px; }
  .zd-k-dl div { grid-template-columns: 96px minmax(0, 1fr); }
  .zd-po-row { grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 18px; }
  .zd-po-photo img { aspect-ratio: 4 / 3; }
}

/* Church and school (DESIGN.md Part 24), after church anniversary and speech day programmes. */
:root { --zd-navy: #13213C; --zd-gold-2: #8A6A26; }
.zd-anniv .zd-age sup { font-size: .32em; vertical-align: top; position: relative; top: .3em; margin-left: .04em; }
.zd-speech .zd-rule { width: 96px; border-top: 2px solid var(--zd-gold); opacity: 1; }

.zd-thanks { background: var(--zd-ivory); padding: 32px 20px; }
.zd-t-frame { max-width: 860px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; padding: 48px 24px; border: 1px solid var(--zd-gold-2); text-align: center; }
.zd-thanks .zd-names { color: var(--zd-gold-2); font-size: clamp(36px, 5vw, 64px); line-height: 1.08; }
.zd-thanks .zd-date { margin: 0; font-family: var(--title-font); font-style: italic; font-size: clamp(19px, 2vw, 23px); color: var(--zd-ink-2); }
.zd-t-photo { margin: 18px 0 0; width: min(520px, 100%); padding: 8px; border: 1px solid var(--zd-gold-2); }
.zd-t-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.zd-speech { background: var(--zd-navy); color: var(--zd-cream-2); display: grid; justify-items: center; gap: 16px; padding: 44px 20px 48px; text-align: center; }
.zd-crest { width: 96px; height: 96px; object-fit: contain; }
.zd-school { margin: 0; font-family: var(--title-font); font-style: italic; font-size: 20px; color: var(--zd-gold); }
.zd-speech .zd-names { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.12; letter-spacing: .04em; margin-right: -.04em; color: var(--zd-cream-2); }
.zd-speech .zd-date { margin: 0; font-size: 18px; line-height: 1.5; opacity: .85; }
.zd-sp-photo { margin: 16px 0 0; width: min(760px, 100%); padding: 8px; border: 1px solid var(--zd-gold); }
.zd-sp-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.zd-reunion { background: var(--page); color: var(--zd-cream); padding: 40px 20px 48px; }
.zd-r-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 40px; align-items: end; }
.zd-year { grid-column: 1 / -1; margin: 0; font-family: var(--title-font); font-size: clamp(120px, 22vw, 320px); line-height: .8; letter-spacing: -.03em; color: var(--zd-cream); }
.zd-reunion .zd-names { font-size: clamp(34px, 4.6vw, 64px); line-height: 1; color: var(--zd-cream); }
.zd-reunion .zd-date { margin: 12px 0 0; font-size: 18px; line-height: 1.5; opacity: .9; }
.zd-r-a, .zd-r-b { margin: 0; }
.zd-r-a img, .zd-r-b img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.zd-r-b { grid-column: 2; }
body[data-design="speechday"] { --material: color-mix(in srgb, var(--page) 88%, var(--zd-lift)); }
body[data-design="reunion"] { --material: color-mix(in srgb, var(--page) 86%, var(--zd-lift)); }
body[data-design="speechday"] .z-main.on-dark-light { color: var(--zd-navy); }
body[data-design="reunion"] .z-main.on-dark-light { color: var(--page); }

@media (max-width: 700px) {
  .zd-r-in { grid-template-columns: minmax(0, 1fr); }
  .zd-r-b { grid-column: 1; }
  .zd-t-frame { padding: 32px 16px; }
}

/* Celebrations, bright and joyful (owner, 2 November 2026: never the funeral look; no dark gold frames, no arch).
   Milestone: the white "Big Six Oh" invitation. Cradle: naming-ceremony invitations. Anniversary: church anniversaries. */
:root { --zd-cream-3: #FBF7EE; --zd-ink-3: #111111; --zd-grey-3: #4A4A4A; --zd-navy-2: #13213C; }
.zd-milestone { background: var(--zd-cream-3); color: var(--zd-ink-3); padding: 40px 20px 56px; }
.zd-milestone .zd-age { color: var(--zd-ink-3); }
.zd-milestone .zd-names { font-style: italic; font-weight: 500; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; color: var(--zd-ink-3); }
.zd-milestone .zd-date { margin: 0; font-size: 18px; line-height: 1.5; color: var(--zd-grey-3); }
.zd-pop { margin: 0; padding: 28px; background: var(--zd-pop, var(--zd-ink-3)); }
.zd-pop img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 20px; }

.zd-cradle { background: var(--page); color: var(--accent); display: grid; justify-items: center; gap: 12px; padding: 48px 20px 44px; text-align: center; }
.zd-circle { margin: 0 0 16px; width: min(320px, 70vw); aspect-ratio: 1; padding: 10px; border-radius: 50%; background: var(--zd-lift); }
.zd-circle img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.zd-cradle .zd-names { font-style: italic; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.06; color: var(--accent); }
.zd-cradle .zd-date { margin: 0; font-family: var(--title-font); font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--accent); }

.zd-anniv { background: var(--zd-ivory); color: var(--zd-navy-2); padding: 40px 20px 56px; }
.zd-anniv .zd-age { color: var(--zd-navy-2); font-weight: 700; font-size: clamp(130px, 20vw, 280px); line-height: .9; margin-bottom: .08em; }
.zd-anniv .zd-names { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; color: var(--zd-navy-2); }
.zd-anniv .zd-rule { width: 96px; border-top: 2px solid var(--zd-gold); opacity: 1; }
.zd-anniv .zd-date { margin: 0; font-size: 18px; line-height: 1.5; color: var(--zd-navy-2); opacity: .85; }
.zd-soft { margin: 0; }
.zd-soft img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 20px; }
@media (max-width: 700px) { .zd-milestone, .zd-anniv { padding: 24px 20px 40px; } .zd-pop { padding: 18px; } }

/* Part 26. Funerals: Kobene (red and black funeral cloth), Order of Service (the printed booklet), Tribute (black and
   white portrait). Meetups: Spotlight (Luma event pages), Agenda (Stripe Sessions' agenda at a glance). */
:root { --zd-kb-black: #111111; --zd-kb-red: #8B1E1E; --zd-kb-red-2: #B3302A; --zd-sv-ivory: #FAF8F3; --zd-sv-ink: #1A1A1A; --zd-tr-black: #0E0E0E; --zd-tr-grey: #BDBDBD; --zd-ag-line: #E5E5E5; --zd-ag-grey: #6B6B6B; --zd-sp-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 48px -24px rgba(0,0,0,.35); }
.zd-kobene { background: var(--zd-kb-black); color: var(--zd-lift); display: grid; justify-items: center; gap: 24px; padding-bottom: 44px; text-align: center; }
.zd-kb-band { width: 100%; background: var(--zd-kb-red); padding: 40px 20px 32px; display: grid; gap: 10px; justify-items: center; }
.zd-kobene .zd-names { font-size: clamp(30px, 4.8vw, 60px); line-height: 1.1; letter-spacing: .04em; margin-right: -.04em; color: var(--zd-lift); }
.zd-kobene .zd-life { color: var(--zd-lift); opacity: .9; }
.zd-kb-photo { margin: 0; width: min(440px, 80vw); padding: 8px; border: 2px solid var(--zd-kb-red-2); }
.zd-kb-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.zd-kobene .zd-date { margin: 0; font-size: 18px; line-height: 1.5; opacity: .85; }

.zd-service { background: var(--zd-sv-ivory); color: var(--zd-sv-ink); padding: 32px 20px; }
.zd-sv-frame { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 12px; padding: 44px 24px; text-align: center; border: 1px solid var(--zd-sv-ink); outline: 1px solid var(--zd-sv-ink); outline-offset: 6px; }
.zd-oval { margin: 0 0 12px; width: min(300px, 64vw); aspect-ratio: 3 / 4; border-radius: 50%; overflow: hidden; }
.zd-oval img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.zd-service .zd-names { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.08; color: var(--zd-sv-ink); }
.zd-service .zd-life { color: var(--zd-sv-ink); font-style: italic; }
.zd-service .zd-date { margin: 0; font-size: 17px; line-height: 1.5; color: var(--zd-sv-ink); opacity: .8; }

.zd-tribute { background: var(--zd-tr-black); color: var(--zd-lift); }
.zd-tr-photo { margin: 0 auto; width: min(100%, 560px); padding-top: 40px; }
.zd-tr-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; filter: grayscale(1); }
.zd-tr-t { display: grid; justify-items: center; gap: 10px; padding: 36px 20px 44px; text-align: center; }
.zd-tribute .zd-names { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; font-weight: 500; color: var(--zd-lift); }
.zd-tribute .zd-life { color: var(--zd-tr-grey); font-style: italic; }
.zd-tribute .zd-date { margin: 0; font-size: 17px; color: var(--zd-tr-grey); }
body[data-design="kobene"], body[data-design="tribute"] { --material: color-mix(in srgb, var(--page) 90%, var(--zd-lift)); }
body[data-design="kobene"] .z-main.on-dark-light, body[data-design="tribute"] .z-main.on-dark-light { color: var(--zd-kb-black); }

.zd-spot { background: var(--page); color: var(--zd-ink-k); padding: 48px 20px; }
.zd-sp-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.zd-sp-img { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--zd-sp-shadow); }
.zd-sp-img img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.zd-sp-t { display: grid; gap: 16px; }
.zd-spot .zd-names { font-size: clamp(38px, 5vw, 64px); line-height: 1; color: var(--zd-ink-k); }
.zd-sp-when { margin: 0; font-size: 18px; line-height: 1.5; }
.zd-sp-host { margin: 0; color: var(--zd-ag-grey); font-size: 16px; }

.zd-agenda { background: var(--zd-lift); color: var(--zd-ink-k); padding: 48px 20px 32px; }
.zd-ag-in { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.zd-agenda .zd-names { font-size: clamp(40px, 5.4vw, 76px); line-height: .98; color: var(--zd-ink-k); }
.zd-ag-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--zd-ag-line); }
.zd-ag-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--zd-ag-line); font-size: 18px; line-height: 1.4; }
.zd-ag-list span { color: var(--zd-ag-grey); font-variant-numeric: tabular-nums; }
.zd-ag-list b { font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .zd-sp-in, .zd-ag-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .zd-ag-list li { grid-template-columns: 64px minmax(0, 1fr); font-size: 16px; }
  .zd-sv-frame { padding: 32px 16px; }
}

/* Part 27. Family designs. Weddings: Script (Zola "Nahomi", "Violin"), Classic (Zola "Galata", "Morrison"), Cover
   (magazine-cover invitations), Engagement (Ghanaian knocking and engagement invitations). Funerals: Celebration of
   Life (gold-framed portrait programmes), Obituary (newspaper obituaries), Card (plain memorial cards), Booklet (the
   folded order of service), Glory (brown and gold funeral posters). */
:root { --zd-fm-white: #FFFFFF; --zd-fm-ink: #1A1A1A; --zd-fm-grey: #5C5C5C; --zd-fm-line: #D9D4CA; --zd-en-terra: #9C4A2B; --zd-en-cream: #F6EDE3; --zd-lc-gold: #8A6A1E; --zd-lc-gold-2: #B8963E; --zd-ob-paper: #F4F1EA; --zd-bk-desk: #EFEBE4; --zd-gl-brown: #2E1C11; --zd-gl-gold: #D4A84A; --zd-gl-cream: #F4EBDD; --zd-cv-scrim: rgba(0,0,0,.28); }
.zd-script { background: var(--zd-fm-white); color: var(--zd-fm-ink); text-align: center; }
.zd-sc-band { margin: 0 auto; width: min(100%, 520px); padding: 40px 20px 0; }
.zd-sc-band img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.zd-sc-t { display: grid; justify-items: center; gap: 18px; padding: 48px 20px 56px; }
.zd-script .zd-names, .zd-engage .zd-names { display: grid; justify-items: center; font-size: clamp(54px, 8vw, 104px); line-height: 1.05; color: inherit; }
.zd-script .zd-names small, .zd-engage .zd-names small { font-family: var(--body-font, serif); font-style: italic; font-size: 22px; line-height: 1.6; }
.zd-script .zd-date, .zd-classic .zd-date, .zd-engage .zd-date, .zd-plain .zd-date, .zd-lifecel .zd-date, .zd-booklet .zd-date, .zd-glory .zd-date { margin: 0; font-size: 18px; line-height: 1.55; }

.zd-classic { background: var(--zd-fm-white); color: var(--zd-fm-ink); text-align: center; }
.zd-cl-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.zd-cl-strip.zd-cl-1 { grid-template-columns: minmax(0, 1fr); }
.zd-cl-strip.zd-cl-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zd-cl-strip img { display: block; width: 100%; height: min(56svh, 560px); object-fit: cover; }
.zd-cl-1 img { height: min(60svh, 600px); }
.zd-cl-t { display: grid; justify-items: center; gap: 22px; padding: 52px 20px 60px; }
.zd-classic .zd-names { display: grid; justify-items: center; gap: 4px; font-size: clamp(34px, 5vw, 60px); line-height: 1.1; letter-spacing: .14em; margin-right: -.14em; }
.zd-classic .zd-names small { font-style: italic; letter-spacing: 0; font-size: 24px; text-transform: none; }
.zd-classic .zd-date span { font-family: var(--title-font); font-style: italic; font-size: 20px; }

.zd-cover { width: min(100%, 680px); margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; background: var(--zd-fm-ink); color: var(--zd-fm-white); }
.zd-cover > img { grid-row: 2 / 4; grid-column: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }

/* The masthead sits above the photo, on black, so it never covers a face. */
.zd-cover .zd-names { grid-row: 1; padding: 24px 20px 20px; text-align: center; font-size: min(11.5vw, 84px); line-height: .95; white-space: nowrap; color: var(--zd-fm-white); }
.zd-cv-line { grid-row: 3; grid-column: 1; align-self: end; position: relative; margin: 0; padding: 48px clamp(20px, 5vw, 40px) 28px; text-shadow: 0 1px 12px var(--zd-cv-scrim); font-family: var(--title-font); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }
.zd-cv-line b { font-style: normal; font-weight: 600; }
.zd-cover.zd-nophoto { min-height: 0; padding-bottom: 8px; }

.zd-engage { background: var(--zd-en-cream); color: var(--zd-en-terra); }
.zd-en-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.zd-en-panel { background: var(--zd-en-terra); color: var(--zd-en-cream); display: grid; align-content: center; justify-items: center; gap: 20px; padding: 56px 28px; text-align: center; }
.zd-en-photo { margin: 0; padding: 40px; display: grid; place-items: center; }
.zd-en-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
body[data-design="engage"] .z-sec h2, body[data-design="script"] .z-sec h2 { font-size: 40px; line-height: 44px; font-weight: 400; }

.zd-lifecel { background: var(--zd-fm-white); display: grid; justify-items: center; gap: 14px; padding: 48px 20px 56px; text-align: center; }
.zd-lc-frame { margin: 0 0 18px; width: min(400px, 78vw); padding: 12px; border: 1px solid var(--zd-lc-gold-2); }
.zd-lc-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.zd-lifecel .zd-names { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.08; color: var(--zd-lc-gold); }
.zd-lifecel .zd-life { color: var(--zd-lc-gold); font-style: italic; }
.zd-lifecel .zd-date { color: var(--zd-fm-grey); }

.zd-obit { background: var(--zd-ob-paper); color: var(--zd-fm-ink); padding: 40px 20px 48px; }
.zd-ob-in { max-width: 980px; margin: 0 auto; border-top: 4px solid var(--zd-fm-ink); }
.zd-obit .zd-names { padding: 18px 0 14px; border-bottom: 1px solid var(--zd-fm-ink); font-size: clamp(40px, 6.4vw, 84px); line-height: 1; text-align: center; color: var(--zd-fm-ink); }
.zd-ob-sub { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--zd-fm-ink); text-align: center; font-size: 17px; font-style: italic; }
.zd-ob-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding-top: 28px; }
.zd-ob-photo { margin: 0; }
.zd-ob-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; filter: grayscale(1); }
.zd-ob-text { columns: 2 220px; column-gap: 28px; column-rule: 1px solid var(--zd-fm-line); font-size: 17px; line-height: 1.6; }
.zd-ob-text p { margin: 0 0 14px; }
.zd-ob-text p:first-child::first-letter { float: left; font-family: var(--title-font); font-weight: 900; font-size: 64px; line-height: .8; padding: 6px 8px 0 0; }

.zd-plain { background: var(--zd-fm-white); color: var(--zd-fm-ink); display: grid; justify-items: center; gap: 28px; padding: 56px 20px 60px; text-align: center; }
.zd-plain .zd-names { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.15; letter-spacing: .1em; margin-right: -.1em; }
.zd-pl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 4vw, 48px); width: min(720px, 100%); font-family: var(--title-font); font-size: clamp(26px, 3.4vw, 40px); }
.zd-pl-row span:first-child { text-align: right; }
.zd-pl-row span:last-child { text-align: left; }
.zd-pl-photo { margin: 0; width: min(280px, 46vw); }
.zd-pl-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; filter: grayscale(1); }

.zd-booklet { background: var(--zd-bk-desk); padding: 40px 20px 48px; }
.zd-bk-spread { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--zd-fm-white); box-shadow: var(--zd-sp-shadow); }
.zd-bk-left { padding: 32px; border-right: 1px solid var(--zd-fm-line); }
.zd-bk-photo { margin: 0; }
.zd-bk-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.zd-bk-right { display: grid; align-content: center; justify-items: center; gap: 16px; padding: 40px 32px; text-align: center; color: var(--zd-fm-ink); }
.zd-booklet .zd-names { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; }
.zd-booklet .zd-life { color: var(--zd-fm-ink); font-style: italic; }
.zd-bk-host { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--zd-fm-line); font-size: 16px; color: var(--zd-fm-grey); }

.zd-glory { background: var(--zd-gl-brown); color: var(--zd-gl-cream); padding: 48px 20px 56px; }
.zd-gl-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.zd-gl-t { display: grid; gap: 18px; }
.zd-glory .zd-names { display: grid; font-size: clamp(44px, 6.6vw, 96px); line-height: .98; color: var(--zd-gl-gold); }
.zd-glory .zd-life { color: var(--zd-gl-gold); }
.zd-gl-photo { margin: 0; }
.zd-gl-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; }
body[data-design="cover"] #zd-top { background: var(--zd-fm-ink); }
body[data-design="cover"], body[data-design="glory"] { --material: color-mix(in srgb, var(--page) 90%, var(--zd-lift)); }
body[data-design="cover"] .z-main.on-dark-light { color: var(--zd-fm-ink); }
body[data-design="glory"] .z-main.on-dark-light { color: var(--zd-gl-brown); }

@media (max-width: 700px) {
  .zd-cl-strip { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
  .zd-cl-strip img { height: 100%; min-height: 0; }
  .zd-cl-3 img:first-child { grid-row: 1 / 3; height: 60svh; }
  .zd-cl-2 { grid-template-rows: none; }
  .zd-cl-2 img { height: 44svh; }
  .zd-en-in, .zd-ob-cols, .zd-bk-spread, .zd-gl-in { grid-template-columns: minmax(0, 1fr); }
  .zd-en-photo { padding: 24px 20px 0; }
  .zd-bk-left { border-right: 0; border-bottom: 1px solid var(--zd-fm-line); padding: 20px; }
  .zd-gl-photo { order: -1; }
  .zd-ob-text { columns: 1; }
}

/* The faces the host marked (one tap on their photo) stay in every crop of it: the designs, the plain cover, the
   small round photo. Wins over each design's own position. */
body[data-focus] #zd-top img:not(.zd-extra), body[data-focus] .z-cover img, body[data-focus] .z-face, body[data-focus] .env-card img { object-position: var(--focus) !important; }

/* The host's photos in rows of three, tall so faces stay whole. */
.zd-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 920px; margin: 32px auto 0; }
.zd-strip-1 { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
.zd-strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.zd-strip img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
@media (max-width: 700px) { .zd-strip { gap: 8px; margin-top: 24px; } }
/* Signature and Collage, redone as mixes (4 November 2026; DESIGN.md Part 33). */
:root { --zd-sig2-frame: rgba(255,255,255,.8); --zd-sig2-shade: rgba(0,0,0,.30); }
.zd-sig2 { position: relative; height: min(88svh, 880px); min-height: 480px; overflow: hidden; background: var(--ink); color: var(--zd-on-photo); display: grid; align-items: end; }
.zd-sig2 > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zd-sig2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: var(--zd-sig2-shade); }
.zd-sig2-frame { position: absolute; inset: 16px; border: 1px solid var(--zd-sig2-frame); z-index: 1; pointer-events: none; }
.zd-sig2-t { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto; padding: 0 clamp(32px, 5vw, 64px) clamp(40px, 6vh, 64px); }
.zd-sig2 .zd-names { font-size: clamp(48px, 7.4vw, 104px); line-height: 1; color: var(--zd-on-photo); }
.zd-sig2-bill { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--zd-sig2-frame); font-family: var(--title-font); font-size: clamp(17px, 1.8vw, 22px); }
.zd-sig2.zd-nophoto { height: auto; min-height: 0; padding-top: 120px; background: var(--zd-ivory); color: var(--ink); }
.zd-sig2.zd-nophoto::after, .zd-sig2.zd-nophoto .zd-sig2-frame { display: none; }
.zd-sig2.zd-nophoto .zd-names { color: var(--ink); }
.zd-sig2 + .zd-strip { padding: 0 20px; }

.zd-col2 { background: var(--page); color: var(--zd-cream); padding: 32px 20px 48px; }
.zd-col2-in { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(78svh, 760px); }
.zd-col2-panel { display: grid; align-content: space-between; gap: 32px; padding: 40px 40px 40px 0; }
.zd-col2 .zd-names { font-size: clamp(48px, 7vw, 104px); line-height: .95; font-weight: 500; color: var(--zd-cream); }
.zd-col2-date { margin: 0; font-family: var(--title-font); font-size: 20px; line-height: 1.5; }
.zd-col2-a { margin: 0; }
.zd-col2-a img { display: block; width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.zd-col2-b { position: absolute; left: calc(5 / 12 * 100% - 140px); bottom: -24px; width: min(240px, 22%); margin: 0; padding: 8px; background: var(--page); }
.zd-col2-b img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
body[data-design="collage"] .z-main.on-dark-light { color: var(--page); }

@media (max-width: 700px) {
  .zd-sig2 { height: 82svh; min-height: 440px; }
  .zd-sig2-t { padding: 0 32px 40px; }
  .zd-sig2-bill { flex-direction: column; gap: 2px; }
  .zd-col2-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .zd-col2-panel { padding: 8px 0 24px; }
  .zd-col2-a img { min-height: 0; aspect-ratio: 4 / 5; height: auto; }
  .zd-col2-b { left: 12px; bottom: -20px; width: 40%; }
}

/* ---------- The whole page (owner, 4 November 2026: "all need to look very premium") ----------
   Below the top, the page takes the design's type and ink instead of the app's panels: no boxes or grey header bands,
   sections divided by a hairline and generous space, titles in the design's face, the day set like a printed
   programme, the countdown in large numerals, buttons in the design's ink. After wedding sites such as Riley & Grey
   and Zola, Kinfolk's spacing and the printed Ghanaian order of service.  keeps each design's own rules on top. */
body[data-wed] {
  --wd-line: color-mix(in srgb, var(--wd-ink) 18%, transparent); --wd-soft: color-mix(in srgb, var(--wd-ink) 68%, transparent);
  --sans: var(--body-font, var(--title-font)); --ink: var(--wd-ink); --muted: var(--wd-soft); --hair: var(--wd-line); --edge: var(--wd-line); --material: transparent; --on-accent: var(--page);
}
body[data-wed] .z-page { max-width: 720px; gap: 0; padding-top: 56px; color: var(--wd-ink); }
body[data-wed] .z-facts { display: none; }
body[data-wed] .z-host { justify-items: center; text-align: center; padding-bottom: 40px; font-size: 17px; color: var(--wd-soft); }
body[data-wed] .z-host-row { justify-content: center; }
body[data-wed] #z-when { padding: 56px 0; border-top: 1px solid var(--wd-line); }
body[data-wed] .z-parts { gap: 0; justify-items: center; text-align: center; }
body[data-wed] .z-parts li { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; width: min(100%, 520px); padding: 28px 0; }
body[data-wed] .z-parts li + li { border-top: 1px solid var(--wd-line); }
body[data-wed] .z-parts li:first-child { padding-top: 0; }
/* The page grid adds 16px under the host line, and the plain schedule has its own margins: both are taken out so every
   section sits 56px (44px on phones) from its rules. */
body[data-wed] .z-parts { margin: 0; }
body[data-wed] .z-parts li > * { margin-top: 0; margin-bottom: 0; }
body[data-wed] .z-parts li:last-child { padding-bottom: 0; }
body[data-wed] .z-parts .z-cal { display: none; }
body[data-wed] :where(.z-part) { font-family: var(--title-font); font-weight: var(--title-weight); font-size: 30px; line-height: 1.15; color: var(--wd-ink); }
body[data-wed] .z-when, body[data-wed] .z-where { font-size: 17px; line-height: 1.5; color: var(--wd-soft); }
body[data-wed] .z-where { display: grid; justify-items: center; gap: 2px; }
body[data-wed] .z-where a, body[data-wed] .z-link { color: var(--wd-ink); text-decoration: underline; text-underline-offset: 3px; }
body[data-wed] .z-card, body[data-wed] .z-sec { background: none; box-shadow: none; border-radius: 0; padding: 56px 0; border-top: 1px solid var(--wd-line); text-align: center; color: var(--wd-ink); }
body[data-wed] :where(.z-card-h) { background: none; border: 0; padding: 0 0 28px; font-family: var(--title-font); font-weight: var(--title-weight); font-size: 40px; line-height: 1.15; color: var(--wd-ink); text-align: center; }
body[data-wed] .z-card-b { padding: 0; justify-items: center; gap: 28px; }
body[data-wed] .z-sec header { justify-items: center; text-align: center; }
body[data-wed] :where(.z-sec h2, body[data-wed] .z-card-t) { font-size: 40px; line-height: 1.15; text-align: center; color: var(--wd-ink); }
body[data-wed] .z-prose, body[data-wed] .z-card-b p, body[data-wed] .z-sec p { font-size: 18px; line-height: 1.7; max-width: 56ch; margin-left: auto; margin-right: auto; }
body[data-wed] .z-count { justify-content: center; gap: 48px; }
body[data-wed] :where(.z-count b) { font-size: 64px; line-height: 1; font-weight: var(--title-weight); color: var(--wd-ink); }
body[data-wed] .z-count span { font-size: 14px; color: var(--wd-soft); }
body[data-wed] .z-seg { width: min(100%, 520px); gap: 10px; }
body[data-wed] .z-seg span { height: 52px; border-radius: var(--wd-radius); box-shadow: inset 0 0 0 1px var(--wd-ink); font-size: 16px; font-weight: 500; color: var(--wd-ink); }
body[data-wed] .z-seg input:checked + span { background: var(--wd-ink); color: var(--page); }
body[data-wed] .z-main { width: min(100%, 520px); justify-self: center; height: 56px; border-radius: var(--wd-radius); background: var(--wd-ink); color: var(--page); box-shadow: none; font-size: 17px; font-weight: 600; }
body[data-wed] .z-btn { border-radius: var(--wd-radius); box-shadow: inset 0 0 0 1px var(--wd-ink); color: var(--wd-ink); justify-self: center; }
body[data-wed] .z-btn.wide { width: min(100%, 520px); }
body[data-wed] .z-foot { justify-content: center; padding: 40px 0 0; border-top: 1px solid var(--wd-line); color: var(--wd-soft); }
body[data-wed] .z-foot a { color: var(--wd-soft); }
@media (max-width: 700px) {
  body[data-wed] .z-page { padding-top: 40px; }
  body[data-wed] .z-host { padding-bottom: 28px; }
  body[data-wed] #z-when { padding: 44px 0; }
  body[data-wed] .z-card, body[data-wed] .z-sec { padding: 44px 0; }
  body[data-wed] :where(.z-card-h, body[data-wed] .z-sec h2) { font-size: 34px; }
  body[data-wed] .z-count { gap: 32px; }
  body[data-wed] :where(.z-count b) { font-size: 48px; }
  body[data-wed] .z-seg { flex-direction: column; }
}

/* Kept from later work after the template was restored (owner, 9 November 2026: "that was our template"). */
/* A speaker with no photo shows by name and role only, no empty grey box. */
.z-sp-ph { display: none; }
/* Partner and sponsor logos, each on its own light tile. */
.z-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); gap: 10px; }
.z-logos li > *, .z-logos li > a { display: grid; place-items: center; height: 76px; padding: 14px 16px; border-radius: 16px; background: #fff; color: #111; text-decoration: none; font-weight: 600; font-size: 14px; text-align: center; overflow-wrap: anywhere; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.z-logos img { max-width: 100%; max-height: 48px; object-fit: contain; }
/* No strip at the top of a card (owner, 9 November 2026): the label sits inside the card, quiet, with no band or line. */
.z-card-h { background: none; border-bottom: 0; padding: 20px 24px 0; }

/* The floating answer pill (owner, 9 November 2026), after Partiful's RSVP pill: the photo's colour, white text, a soft
   shadow; it steps aside while the reply card itself is on screen. */
.z-pill { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; transition: opacity .25s, transform .25s; }
.z-pill.is-hidden { opacity: 0; transform: translateY(12px); }
.z-pill.is-hidden .z-pill-in { pointer-events: none; }
.z-pill-in { pointer-events: auto; display: flex; align-items: stretch; height: 54px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 12px 32px -8px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.12); overflow: hidden; }
.z-pill-in button { border: 0; background: none; color: inherit; font: 600 15px/1 var(--sans); padding: 0 18px; cursor: pointer; }
.z-pill-in button + button { box-shadow: inset 1px 0 0 rgba(255,255,255,.22); }
.z-pill-in button:first-child { padding-left: 22px; } .z-pill-in button:last-child { padding-right: 22px; }
.z-pill-in button:hover { background: rgba(255,255,255,.08); }
.z-pill-in button:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.z-pill-done { align-items: center; gap: 14px; padding: 0 8px 0 22px; }
.z-pill-done b { font: 600 15px var(--sans); }
.z-pill-done button { height: 40px; border-radius: 999px; background: rgba(255,255,255,.16); padding: 0 16px !important; }
.z-pill.on-dark-light .z-pill-in { background: var(--light-btn, #f5f5f7); color: var(--light-btn-ink, #111); }
.z-pill.on-dark-light .z-pill-in button + button { box-shadow: inset 1px 0 0 rgba(0,0,0,.1); }
@media (prefers-reduced-motion: reduce) { .z-pill { transition: none; } }
/* Room at the bottom so the pill never covers the footer. */
body.z:has(#z-pill) .z-foot { padding-bottom: 88px; }

/* Card finish (owner, 9 November 2026: "classic, modern, like a Silicon Valley startup"; "check from others, not from
   memory"). Values read from the live sites' CSS on 9 November: light cards as on Cal.com (white, 20px corners, no drop
   shadow, a faint ring inset 0 0 0 1px rgba(15,35,75,.07)) and Apple (24 to 28px corners, no shadow); dark cards as on
   Raycast (inset top highlight rgba(255,255,255,.1), faint ring rgba(255,255,255,.06)) and Linear (a 5 to 8% white edge). */
body.z:not([data-design]) .z-card, body.z:not([data-design]) .z-sec {
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(15, 35, 75, .07);
}
body.z[data-mode="dark"]:not([data-design]) .z-card, body.z[data-mode="dark"]:not([data-design]) .z-sec {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
body.z:not([data-design]) .z-card-h { padding: 22px 24px 0; font: 500 13px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
body.z:not([data-design]) .z-card-b { padding: 16px 24px 24px; }
body.z:not([data-design]) .z-sec { padding: 24px; }

/* Sections in Partiful's style (owner chose B, 9 November 2026), read from Partiful's live event page: no boxes; a bold
   sans heading over each section, body text 16/24 in full ink, wide space between sections, buttons filled in the
   photo's colour. Applies to the ordinary guest page; premium designs keep their own look. */
body.z:not([data-design]) .z-card-b p, body.z:not([data-design]) .z-sec p, body.z:not([data-design]) .z-prose { font-size: 16px; line-height: 24px; color: var(--ink); }
body.z:not([data-design]) .z-note { font-size: 15px; line-height: 22px; }
body.z:not([data-design]) .z-btn.wide { width: 100%; height: 48px; border-radius: 999px; box-shadow: none; background: var(--accent); color: var(--on-accent, #fff); font: 600 16px var(--sans); }
body.z:not([data-design])[data-mode="dark"] .z-btn.wide { background: #fff; color: #111; }

/* The card system (owner, 9 November 2026: "just use the card system, it should be exceptional"), from the live CSS
   measured on Apple and Cal.com: each section a white card with 28px corners (Apple), no drop shadow, a faint 1px ring
   (Cal.com, rgba(15,35,75,.07)), 24px inside; a 20px semibold sans title inside the card, body 16/24 in full ink, the
   action a full-width pill in the photo's colour. Dark pages: Raycast's inset top highlight and a 6% white ring. */
body.z:not([data-design]) .z-sec, body.z:not([data-design]) .z-card { background: var(--material) !important; border-radius: 28px; padding: 24px !important; box-shadow: inset 0 0 0 1px rgba(15, 35, 75, .07) !important; }
body.z[data-mode="dark"]:not([data-design]) .z-sec, body.z[data-mode="dark"]:not([data-design]) .z-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06) !important; }
body.z:not([data-design]) .z-card-h, body.z:not([data-design]) .z-sec h2 { font: 600 20px/26px var(--sans) !important; letter-spacing: -.015em !important; color: var(--ink) !important; padding: 0 !important; }
body.z:not([data-design]) .z-card-b { padding: 14px 0 0 !important; }

body.z:not([data-design]) .z-latest ul { padding: 4px 0 0; }
.o-ev-t { min-width: 0; } .o-ev-t b, .o-ev-t .o-ev-where { overflow-wrap: anywhere; }

/* Organisation page, anti-generic pass (owner, 6 November 2026), from Luma's calendar pages (luma.com/prisma): Follow is a
   small button level with the name; events hang under their day on a thin line with a dot, each a card with the time, the
   title, the place and the photo on the right (Luma: photo 110px, title 20px). */
.o-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--z-4); }
.o-name { display: grid; gap: var(--z-1); min-width: 0; }
.o-follow-b { flex: none; height: 40px; padding: 0 var(--z-5); margin-top: 6px; }
.o-days { list-style: none; margin: 0; padding: 0 0 0 var(--z-5); display: grid; gap: var(--z-6); border-left: 1px dashed var(--hair); }
.o-days > li { display: grid; gap: var(--z-3); position: relative; }
.o-day { margin: 0; font: var(--z-w-strong) 17px/1.3 var(--sans); color: var(--ink); }
.o-day span { color: var(--muted); font-weight: 400; margin-left: var(--z-1); }
.o-day::before { content: ""; position: absolute; left: calc(-1 * var(--z-5) - 4px); top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.o-days .o-ev { grid-template-columns: minmax(0, 1fr) auto; }
.o-days .o-ev-t b { font-size: 20px; letter-spacing: -0.01em; }
.o-days .o-ev-when { color: var(--muted); font-weight: 400; }
.o-days .o-ev img { width: 96px; height: 96px; }
@media (max-width: 480px) { .o-days .o-ev img { width: 72px; height: 72px; } .o-days .o-ev-t b { font-size: 18px; } }

.z-gl-count { margin: 4px 0 0; font: 400 15px/1.4 var(--sans); color: var(--muted); }

/* A library design shows whole (owner, 10 November 2026). Under it, every feature the host has switched on (RSVP always
   on), in plain cards that take the design's colours; what the design's own top already shows (photo, title, host,
   date strip, parts) is not repeated, and a feature the design already has is not shown twice. */
body[data-zl-full] #app > .z-left,
body[data-zl-full] #app > .z-right > :is(.z-title, .z-by, .z-life, .z-tag, .z-host-main, .z-facts, .z-who, .z-recap, #z-when) { display: none !important; }
body[data-zl-full][data-zl-countdown]:not([data-zl-open="rsvp"]) #z-act { display: none !important; }
body[data-zl-full][data-zl-going] .z-latest { display: none !important; }
body[data-zl-full][data-zl-gifts]:not([data-zl-open="give"]) #s-gifts { display: none !important; }
body[data-zl-full][data-zl-programme] #s-programme, body[data-zl-full][data-zl-timeline] #s-timeline, body[data-zl-full][data-zl-dress] #s-dress,
body[data-zl-full][data-zl-about] #s-about, body[data-zl-full][data-zl-live] :is(#s-livestream, #s-live), body[data-zl-full][data-zl-speakers] #s-speakers { display: none !important; }
body[data-zl-full] #app > .z-right > .z-foot { display: flex !important; flex-wrap: wrap; gap: 4px 16px; }
/* The design carries its own "Made with Zonuru" line, exactly as designed; the page's copy is not repeated. */
body[data-zl-full][data-zl-made] .z-made { display: none !important; }
body[data-zl-full][data-zl-book]:not([data-zl-open="book"]) #s-book { display: none !important; }
body[data-zl-full][data-zl-book] #s-book .z-book-list { display: none !important; }
body[data-zl-full][data-zl-made] #app > .z-right > .z-foot { border-top: 0 !important; padding-top: 4px !important; justify-content: center; }
/* A library design with its own reply buttons: no floating answer pill (owner, 10 November 2026). */
body[data-zl-reply] #z-pill { display: none !important; }
body[data-zl-reply] .z-foot { padding-bottom: 0 !important; }

/* ---------- Under a design: the page's parts are rebuilt from the design's own kit and laid out by the design's
   own style sheet (library.js kitApply). Zonuru's styling steps aside there so only the designer's applies; the
   forms keep their working fields in the design's fonts and corners. (Owner, 10 November 2026.) */
#app .zl-kit, #app .zl-kit > section, #app .zl-kit :where([data-kit-box]) > section, #app .zl-kit :is(.z-li, .z-msg, .z-grow, .z-total, .zl-cd, .z-p, .z-mute, .z-btn, .z-btn2, .es-cta, h2, h3, small, figure, blockquote, figcaption, time, em, ul, li) { all: revert; }
#app .zl-kit { display: block; width: 100%; }
#app .zl-kit .zl-cd { display: flex; gap: 28px; }
#app .zl-kit .z-form :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-radius: var(--zm-b2-radius, 12px); box-shadow: inset 0 0 0 1px var(--line); background: transparent; color: var(--ink); font-family: var(--zm-p-font, inherit); }
#app .zl-kit .z-form label { color: var(--ink); font-family: var(--zm-p-font, inherit); }
#app .zl-kit .z-seg span { display: grid; place-items: center; cursor: pointer; }
/* Answer choices stack one per line, as the designs' own reply buttons do. */
#app .zl-kit .z-seg { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
#app .zl-kit .z-seg label { display: block; min-width: 0; position: relative; }
#app .zl-kit .z-seg input { position: absolute; opacity: 0; pointer-events: none; }
#app .zl-kit .z-seg span { box-sizing: border-box; width: 100%; }
#app.z-page .zl-kit :is(ul, ol) { list-style: none; padding: 0; margin: 0; }
#app .zl-kit .z-seg.z-mode { background: none; padding: 0; border-radius: 0; box-shadow: none; }
/* The countdown sits in the middle, under any design and on Zonuru's page (owner, 10 November 2026). */
#app .zl-kit #z-act { text-align: center; }
#app .zl-kit #z-act > :is(h1, h2, h3, small, p) { text-align: center; margin-left: auto; margin-right: auto; }
#app .zl-kit .zl-cd { justify-content: center; }
#app .zl-kit .zl-cd .z-total { text-align: center; }
#z-act:has(#countdown) .z-card-h { text-align: center; }
.z-count { justify-content: center; }
/* "View all messages": a small text link, not a big button (owner, 10 November 2026). */
.z-more { justify-self: start; background: none; border: 0; box-shadow: none; padding: 0; margin: 4px 0 0; font: 600 14px var(--body-font, var(--sans)); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#app .zl-kit .z-more { all: revert; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* With "How many" left out, the WhatsApp number takes the whole row. */
.z-two:has(> [hidden]), .two:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }

/* ---- Under every design: the opened parts (design round 3, 10 November 2026) ---- */
/* Answer choices in one row where the design sets its own reply buttons in a row (Essential, many others). */
body[data-zl-seg-row] #app .zl-kit .z-seg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
body[data-zl-seg-row] #app .zl-kit .z-seg span { min-height: 48px; padding-left: 6px; padding-right: 6px; line-height: 1.2; text-align: center; text-wrap: balance; }
/* "How many?" and every other choice list shows its arrow, in the design's ink. */
#app .zl-kit .z-form select { padding-right: 38px !important; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%) !important; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50% !important; background-size: 5px 5px, 5px 5px !important; background-repeat: no-repeat !important; }
/* Both Copy buttons are the same small button, under or beside what they copy. */
#app .zl-kit [data-copy] { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; min-width: 72px; min-height: 0 !important; height: auto !important; padding: 9px 16px !important; font-size: 13px !important; line-height: 1 !important; flex: none; }
#app .zl-kit .z-paycard > [data-copy] { margin-top: 10px; }
#app .zl-kit .z-ref { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
#app .zl-kit .z-ref > span { flex-basis: 100%; }
#app .zl-kit .z-ref > b { flex: 1; }
/* The givers and guest lists line up with everything else. */
#app.z-page .zl-kit .z-list li { padding-left: 0; padding-right: 0; }
/* Forms read from the left, even in a centred card (the heading and countdown stay centred). */
#app .zl-kit #z-act .z-form, #app .zl-kit #z-act .z-form label, #app .zl-kit #z-act .z-form .z-note { text-align: left; }
#app .zl-kit .z-paycard > [data-copy], #app .zl-kit .z-ref > [data-copy] { justify-self: start; align-self: center; }
/* Lists read as rows from the left, also under centred designs; Copy sits with its centred details there. */
#app .zl-kit .z-list li, #app .zl-kit .z-list li .k { text-align: left; }
body[data-zl-align="center"] #app .zl-kit .z-paycard > [data-copy] { justify-self: center; }
/* The page's buttons take the design's own type (they fell back to the system font). */
#app.z-page .zl-kit :is(button, .z-filebtn) { font-family: inherit; }
/* Every form under a design reads from the left: labels sit over their fields. */
#app .zl-kit .z-form, #app .zl-kit .z-form label, #app .zl-kit .z-form .z-note { text-align: left; }
/* Confirmations under every design ("You're on the list", "Thank you"): a moment of their own, in the design's display
   type and accent, following its alignment (design round 3). */
#app .zl-kit .z-done { display: block; text-align: var(--zm-align, left); margin: 16px 0 4px; padding: 24px 20px 22px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 5%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
#app .zl-kit .z-done::before { content: "\2713"; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 14px; border-radius: 50%; background: var(--accent); color: var(--accentInk, #fff); font: 700 22px/1 system-ui, sans-serif; }
body[data-zl-align="center"] #app .zl-kit .z-done::before { margin-left: auto; margin-right: auto; }
#app .zl-kit .z-done > b { display: block; font-family: var(--zm-t-font, var(--title-font, inherit)); font-weight: var(--zm-t-weight, 600); font-style: var(--zm-t-style, normal); font-size: 24px; line-height: 1.2; letter-spacing: -.01em; text-transform: none; color: var(--ink); text-wrap: balance; }
#app .zl-kit .z-done > p { margin: 8px 0 16px; font-family: var(--zm-p-font, inherit); font-size: 15px; line-height: 1.55; color: var(--muted); text-align: inherit; }
#app .zl-kit .z-done > .z-link { display: inline-block; margin-top: 12px; font-family: var(--zm-p-font, inherit); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
#app .zl-kit .z-done > button:not(.z-link) { width: auto !important; display: inline-flex !important; padding: 11px 20px !important; }
/* Gifts: room between the send/pledge choice and the form, and between the form and the givers; the givers' count sits
   with its total, from the left, under every design (design round 3). */
#app .zl-kit .z-seg.z-mode { margin-bottom: 18px; }
#app .zl-kit #s-gifts :is(form, .z-sendto, .z-done) + .z-listhead, #app .zl-kit #s-gifts .z-listhead { margin-top: 28px; }
#app .zl-kit .z-listhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; text-align: left; }
#app .zl-kit .z-listhead .z-fig { display: grid; gap: 2px; text-align: left; margin: 0; }
#app .zl-kit .z-listhead .z-fig > span { text-align: left; margin: 0; padding: 0; }
#app .zl-kit .z-listhead { padding-bottom: 10px; }
#app .zl-kit .z-done > b, #app .zl-kit .z-done > p { text-align: inherit !important; }
#app .zl-kit .z-done > b { width: auto !important; max-width: none !important; }
#app .zl-kit .z-done > b, #app .zl-kit .z-done > p { justify-self: stretch !important; }

/* Organisation page, design round 13 (11 November 2026): without a cover photo the page is one centred column (Luma's
   calendar page without a cover), with the organisers under the events as on a phone. */
@media (min-width: 900px) {
  #app.o-solo { grid-template-columns: minmax(0, 640px) !important; justify-content: center; }
  #app.o-solo > .z-left { display: none; }
  #app.o-solo .o-team-main { display: block; }
}
/* Zonuru's wider tap area on its buttons needs the button as its frame; under a design the design's own buttons are
   used, so it is left off (it was covering the design's buttons above, e.g. conference designs' register buttons). */
#app .zl-kit :is(.z-btn, .z-btn2, .es-cta, button)::after { content: none; }

/* The programme with times (owner, 16 November 2026): the time in its own column, wide enough for "10:30 am". */
.z-prog-time li { grid-template-columns: 76px 1fr; }
.z-prog-time li span { white-space: nowrap; }
