/* Daawati — section display styles (body.sv-<section>-<style>), shared by every layout. */

/* ───────── Countdown ───────── */
body[class*="sv-count-"] .count{gap:10px}
body[class*="sv-count-"] .cd-i{max-width:none;width:100%;aspect-ratio:auto;height:84px;display:grid;place-items:center;overflow:hidden}
body[class*="sv-count-"] .cd-i > svg,body[class*="sv-count-"] .cd-i > img{display:none}
body[class*="sv-count-"] .cd-i > span{margin:0!important;text-shadow:none!important;font-variant-numeric:tabular-nums;line-height:1}
body[class*="sv-count-"] .cd small{margin-top:8px;font-size:11px;letter-spacing:.16em;text-transform:uppercase}
html[dir="rtl"] body[class*="sv-count-"] .cd small{letter-spacing:0;font-size:13px;text-transform:none}
/* tiles: light cards */
body.sv-count-tiles .cd-i{border-radius:16px;background:var(--white);border:1px solid var(--line);box-shadow:0 14px 26px -20px #0007}
body.sv-count-tiles .cd-i > span{color:var(--ink)!important;font-family:var(--f-display);font-size:34px}
body.sv-count-tiles .cd-i::after{content:"";position:absolute;left:22%;right:22%;bottom:12px;height:2px;border-radius:2px;background:var(--accent);opacity:.7}
/* flip: split-flap clock */
body.sv-count-flip .cd-i{border-radius:10px;height:88px;background:linear-gradient(var(--ink) 0 50%,color-mix(in srgb,var(--ink) 86%,#000) 50%);box-shadow:0 16px 24px -16px #000a,inset 0 1px 0 #ffffff22}
body.sv-count-flip .cd-i::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#0007;box-shadow:0 1px 0 #ffffff1a}
body.sv-count-flip .cd-i > span{color:var(--paper)!important;font-family:var(--f-latin);font-size:40px;font-weight:600}
/* minimal: big numerals, hairline separators */
body.sv-count-minimal .count{gap:0}
body.sv-count-minimal .cd + .cd{border-inline-start:1px solid color-mix(in srgb,var(--accent) 45%,transparent)}
body.sv-count-minimal .cd-i{height:70px}
body.sv-count-minimal .cd-i > span{color:var(--ink)!important;font-family:var(--f-display);font-size:46px}
body.sv-count-minimal .cd small{margin-top:2px;color:var(--accent)}

/* ───────── Programme ───────── */
body[class*="sv-program-"] .prog li{border:0!important}
/* timeline */
body.sv-program-timeline .prog{position:relative;padding-inline-start:30px}
body.sv-program-timeline .prog::before{content:"";position:absolute;inset-inline-start:10px;top:20px;bottom:20px;width:2px;border-radius:2px;
  background:linear-gradient(var(--accent),color-mix(in srgb,var(--accent) 25%,transparent))}
body.sv-program-timeline .prog li{position:relative;grid-template-columns:1fr;gap:2px;padding:10px 0 18px}
body.sv-program-timeline .prog li::before{content:"";position:absolute;inset-inline-start:-26px;top:15px;width:10px;height:10px;border-radius:50%;background:var(--paper);border:3px solid var(--accent)}
body.sv-program-timeline .prog .ico-badge{display:none}
body.sv-program-timeline .prog .t{font-size:14px;letter-spacing:.14em;font-weight:600}
body.sv-program-timeline .prog h3{font-family:var(--f-display);font-weight:400;font-size:21px}
/* cards */
body.sv-program-cards .prog{gap:14px}
body.sv-program-cards .prog li{grid-template-columns:52px 1fr;grid-template-areas:"i t" "i d";column-gap:14px;row-gap:4px;padding:16px;
  background:var(--white);border:1px solid var(--line)!important;border-radius:18px;box-shadow:0 18px 30px -26px #0008}
body.sv-program-cards .prog .ico-badge{grid-area:i;align-self:center}
body.sv-program-cards .prog .t{grid-area:t;justify-self:start;font-size:13px;font-weight:600;padding:3px 11px;border-radius:99px;
  background:color-mix(in srgb,var(--accent) 12%,var(--white));color:var(--accent)}
body.sv-program-cards .prog li > div{grid-area:d}
/* minimal: centred, ornament between items */
body.sv-program-minimal .prog li{grid-template-columns:1fr;justify-items:center;text-align:center;gap:4px;padding:6px 0}
body.sv-program-minimal .prog .ico-badge{display:none}
body.sv-program-minimal .prog .t{font-size:15px;letter-spacing:.18em}
body.sv-program-minimal .prog h3{font-family:var(--f-display);font-weight:400;font-size:22px}
body.sv-program-minimal .prog li:not(:last-child)::after{content:"";width:56px;height:8px;margin:14px auto 4px;
  background:radial-gradient(circle,var(--accent) 0 2.5px,transparent 3px) center/8px 8px no-repeat,linear-gradient(90deg,transparent,var(--accent),transparent) center/100% 1px no-repeat}

/* ───────── Venue ───────── */
body.sv-venue-card [data-sec="venue"] .map,body.sv-venue-ticket [data-sec="venue"] .map{display:none}
body.sv-venue-card .venue-name,body.sv-venue-ticket .venue-name{position:relative;margin:28px auto 4px;max-width:330px;font-size:24px;line-height:1.35}
body.sv-venue-card .venue-name::before,body.sv-venue-ticket .venue-name::before{content:"";display:block;width:40px;height:40px;margin:0 auto 12px;background:var(--accent);
  -webkit-mask:var(--sv-pin) center/contain no-repeat;mask:var(--sv-pin) center/contain no-repeat}
body{--sv-pin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.6A2.6 2.6 0 1 1 12 6.4a2.6 2.6 0 0 1 0 5.2z'/%3E%3C/svg%3E")}
body.sv-venue-card .venue-name{padding:30px 22px 26px;border-radius:22px;background:var(--white);border:1px solid var(--line);box-shadow:0 24px 40px -30px #0009}
body.sv-venue-card .venue-name::after{content:"";position:absolute;inset:8px;border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:16px;pointer-events:none}
body.sv-venue-ticket .venue-name{padding:28px 30px 24px;border-radius:14px;
  background:radial-gradient(circle at 0 50%,var(--paper) 13px,transparent 13.5px),radial-gradient(circle at 100% 50%,var(--paper) 13px,transparent 13.5px),var(--white);
  border:1.5px dashed color-mix(in srgb,var(--accent) 70%,transparent);box-shadow:0 20px 34px -28px #0009}
body.sv-venue-ticket .chapter.alt .venue-name{background:radial-gradient(circle at 0 50%,var(--paper-2) 13px,transparent 13.5px),radial-gradient(circle at 100% 50%,var(--paper-2) 13px,transparent 13.5px),var(--white)}

/* ───────── Gallery ───────── */
body[class*="sv-gallery-"] .stack{height:auto;max-width:none;touch-action:auto;margin-top:30px}
body[class*="sv-gallery-"] .pol{position:relative!important;inset:auto!important;transform:none!important;opacity:1!important;z-index:auto!important;cursor:default;transition:none}
body[class*="sv-gallery-"] .stack-hint{display:none}
/* grid of small polaroids */
body.sv-gallery-grid .stack{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.sv-gallery-grid .pol{padding:8px 8px 36px}
body.sv-gallery-grid .pol:nth-child(4n+1){rotate:-1.5deg}body.sv-gallery-grid .pol:nth-child(4n+2){rotate:1.2deg}
body.sv-gallery-grid .pol:nth-child(4n+3){rotate:1deg}body.sv-gallery-grid .pol:nth-child(4n){rotate:-1deg}
body.sv-gallery-grid .pol::before{width:50px;height:16px;top:-7px}
body.sv-gallery-grid .pol figcaption{font-size:15px;bottom:8px}
/* horizontal strip */
body.sv-gallery-strip .stack{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:12px 13% 18px;
  margin-inline:calc(-1 * max(28px,env(safe-area-inset-left,0px)));scrollbar-width:none}
body.sv-gallery-strip .stack::-webkit-scrollbar{display:none}
body.sv-gallery-strip .pol{flex:0 0 74%;scroll-snap-align:center}
/* mosaic: frameless photos, first one wide */
body.sv-gallery-mosaic .stack{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.sv-gallery-mosaic .pol{padding:0;border-radius:16px;overflow:hidden;background:var(--paper-2);box-shadow:0 18px 30px -24px #000a}
body.sv-gallery-mosaic .pol::before{display:none}
body.sv-gallery-mosaic .pol:first-child{grid-column:1/-1}
body.sv-gallery-mosaic .pol:first-child .ph{aspect-ratio:16/10}
body.sv-gallery-mosaic .pol figcaption{left:0;right:0;bottom:0;padding:26px 10px 9px;font-size:15px;color:#fff;background:linear-gradient(transparent,#000b);text-shadow:0 1px 2px #0008}

/* ───────── Story ───────── */
body.sv-story-cards .story-svg,body.sv-story-cards #traveler,body.sv-story-timeline .story-svg,body.sv-story-timeline #traveler{visibility:hidden}
body.sv-story-cards .chap,body.sv-story-timeline .chap{width:100%;margin-inline:0!important}
body.sv-story-cards .chap{text-align:center;padding-top:40px;margin-bottom:46px}
body.sv-story-cards .chap .ico-badge{inset-inline:0!important;margin-inline:auto;width:max-content}
body.sv-story-timeline .story-wrap{padding-inline-start:30px}
body.sv-story-timeline .story-wrap::before{content:"";position:absolute;inset-inline-start:9px;top:10px;bottom:10px;width:2px;background:linear-gradient(var(--accent),color-mix(in srgb,var(--accent) 20%,transparent))}
body.sv-story-timeline .chap{margin-bottom:28px}
body.sv-story-timeline .chap::before{content:"";position:absolute;inset-inline-start:-27px;top:22px;width:10px;height:10px;border-radius:50%;background:var(--paper);border:3px solid var(--accent)}
body.sv-story-timeline .chap .ico-badge{inset-inline-start:auto!important;inset-inline-end:-10px!important}

/* ───────── RSVP ───────── */
body.sv-rsvp-card [data-sec="rsvp"] .form{padding:24px 18px;border-radius:22px;background:var(--white);border:1px solid var(--line);box-shadow:0 26px 44px -30px #000a;position:relative}
body.sv-rsvp-card [data-sec="rsvp"] .form::before{content:"";position:absolute;top:-1px;left:50%;width:72px;height:4px;border-radius:0 0 4px 4px;transform:translateX(-50%);background:var(--accent)}

/* ───────── Wishes ───────── */
body.sv-wishes-cards .wall{margin:26px 0 0;overflow:visible;-webkit-mask-image:none;mask-image:none}
body.sv-wishes-cards .lane{animation:none!important;width:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0}
body.sv-wishes-cards .lane.b{display:none}
body.sv-wishes-cards .wish{width:auto}
body.sv-wishes-cards .wish:nth-child(3n+1){grid-column:1/-1}
body.sv-gallery-grid .pol:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 7px)}
body.sv-wishes-cards .lane .empty-wall{grid-column:1/-1}
