/* hereby template: floral — "Watercolour Letter" (水彩花信)
   White paper, scattered watercolour wildflowers, names in an oval frame, blush pills, sage accents. */
.inv[data-layout="floral"] { --fl-paper: #FFFDF9; --fl-wash: #F6EEE8; --fl-pink: #F8E1DF; --fl-pink-2: #EFC9C9; --fl-pink-line: #DDB0B1; --fl-sage: #8C9A78; --fl-sage-tint: #E9EEDF; --fl-green: #56644A;
  --inv-btn: var(--fl-pink); --inv-btn-fg: var(--chocolate);
  --fl-scallop-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='%23F8E1DF' stroke='%23F8E1DF' stroke-width='17' stroke-linecap='round' stroke-dasharray='0 17.952'/%3E%3Ccircle cx='50' cy='50' r='37' fill='none' stroke='%23DDB0B1' stroke-width='.7' stroke-dasharray='2 2'/%3E%3C/svg%3E");
  --fl-scallop-sage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='%23E3EAD6' stroke='%23E3EAD6' stroke-width='17' stroke-linecap='round' stroke-dasharray='0 17.952'/%3E%3Ccircle cx='50' cy='50' r='37' fill='none' stroke='%23A9B596' stroke-width='.7' stroke-dasharray='2 2'/%3E%3C/svg%3E");
  --fl-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23C58C8E' d='M16 28C6 20 3 15 3 10.5 3 7 5.8 4.500 9 4.500c2.600 0 5 1.500 7 4.500 2-3 4.400-4.500 7-4.500 3.200 0 6 2.500 6 6C29 15 26 20 16 28z'/%3E%3C/svg%3E"); }

/* ---- Cover: wildflower paper, names inside a painted oval frame with a bow */
.inv[data-layout="floral"] .inv-cover { --w: min(78cqw, 400px, 48svh); background: url("floral-scatter.jpg") center / cover #FBF7F0; padding: 62px 6% 7%; justify-content: space-between; gap: 8px; color: var(--chocolate); }
.inv[data-layout="floral"] .inv-ill, .inv[data-layout="floral"] .inv-covertop .i-date { display: none; }
.inv[data-layout="floral"] .inv-kicker, .inv[data-layout="floral"] .inv-venue, .inv[data-layout="floral"] .inv-big { display: block; }
.inv[data-layout="floral"] .inv-covertop, .inv[data-layout="floral"] .inv-venue { padding: 10px 26px; background: radial-gradient(closest-side, rgba(255, 253, 249, 0.96) 55%, rgba(255, 253, 249, 0) 100%); }
.inv[data-layout="floral"] .inv-covertop { gap: 2px; }
.inv[data-layout="floral"] .inv-kicker { font-size: clamp(11px, 3.4cqw, 15px); letter-spacing: 0.3em; color: var(--fl-green); }
.inv[data-layout="floral"] .inv-to { font-size: clamp(17px, 5.6cqw, 26px); }
.inv[data-layout="floral"] .inv-names { width: var(--w); height: calc(var(--w) * 1.3333); padding: calc(var(--w) * 0.3) calc(var(--w) * 0.17) calc(var(--w) * 0.3); background: url("floral-frame.webp") center / 100% 100% no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: calc(var(--w) * 0.168); line-height: 1; color: var(--fl-green); flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(74, 58, 45, 0.14)); }
.inv[data-layout="floral"] .inv-names span { white-space: nowrap; }
.inv[data-layout="floral"] .inv-names em { font-size: 0.62em; color: var(--rose-deep); line-height: 1.1; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-names { font-size: calc(var(--w) * 0.125); letter-spacing: 0.2em; line-height: 1.25; text-indent: 0.2em; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-names em { font-size: 0.5em; letter-spacing: 0; text-indent: 0; line-height: 1.7; }
.inv[data-layout="floral"] .inv-big { margin-top: calc(var(--w) * -0.36 - 8px); height: calc(var(--w) * 0.085); margin-bottom: calc(var(--w) * 0.275); font-size: calc(var(--w) * 0.058); line-height: calc(var(--w) * 0.085); font-weight: 600; letter-spacing: 0.24em; color: var(--rose-deep); font-variant-numeric: lining-nums; white-space: nowrap; }
.inv[data-layout="floral"] .inv-venue { font-size: clamp(11px, 3.4cqw, 15px); letter-spacing: 0.22em; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-venue, .inv[lang="zh-Hant"][data-layout="floral"] .inv-kicker { font-size: clamp(13px, 3.8cqw, 16px); }
.inv[data-layout="floral"] .inv-open { background: var(--fl-pink); color: var(--chocolate); border: 1px solid var(--fl-pink-line); border-radius: 999px; min-height: 50px; padding: 0 30px; box-shadow: 0 0 0 0 rgba(197, 140, 142, 0.5); animation-name: fl-pulse; }
@keyframes fl-pulse { 0% { box-shadow: 0 0 0 0 rgba(197, 140, 142, 0.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(197, 140, 142, 0); } }
.inv[data-layout="floral"] .inv-skip { background: rgba(255, 253, 249, 0.9); border-color: var(--fl-pink-line); min-height: 40px; }

/* ---- Body: one sheet of white paper */
.inv[data-layout="floral"] .inv-body { background: var(--fl-wash); }
.inv[data-layout="floral"] .inv-col { position: relative; padding: 12px 0 0; gap: 58px; background: var(--fl-paper); overflow-x: clip; min-height: 100%; box-shadow: 0 0 40px rgba(138, 79, 83, 0.1); }
.inv[data-layout="floral"] .inv-top { padding: 0 16px; position: relative; z-index: 2; }
.inv[data-layout="floral"] .inv-back { color: var(--fl-green); }
.inv[data-layout="floral"] .inv-lang { border-color: var(--fl-pink-line); background: var(--fl-paper); }
.inv[data-layout="floral"] .inv-lang button[aria-pressed="true"] { background: var(--fl-pink-2); color: var(--chocolate); }
.inv[data-layout="floral"] .inv-sec { position: relative; padding: 0 26px; isolation: isolate; }
.inv[data-layout="floral"] .inv-sec > * { position: relative; }
.inv[data-layout="floral"] .inv-orn { display: block; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.inv[data-layout="floral"] .inv-orn::before, .inv[data-layout="floral"] .inv-orn::after { content: ""; position: absolute; background: center / contain no-repeat; }
/* headings: script in English, serif in Chinese, a ruled line with a heart underneath */
.inv[data-layout="floral"] .inv-sec h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 9cqw, 38px); line-height: 1.15; color: var(--fl-green); padding: 0 0 22px; background: var(--fl-heart) center bottom / 13px 13px no-repeat, linear-gradient(var(--fl-pink-line), var(--fl-pink-line)) calc(50% - 46px) calc(100% - 6px) / 64px 1px no-repeat, linear-gradient(var(--fl-pink-line), var(--fl-pink-line)) calc(50% + 46px) calc(100% - 6px) / 64px 1px no-repeat; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-sec h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: 0.22em; text-indent: 0.22em; line-height: 1.4; padding-bottom: 24px; }
/* pale pink pills */
.inv[data-layout="floral"] .inv-btn { border-radius: 999px; border: 1px solid var(--fl-pink-line); min-height: 50px; font-size: 13px; letter-spacing: 0.16em; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-btn { font-size: 16px; letter-spacing: 0.2em; }
.inv[data-layout="floral"] .inv-btn.line, .inv[data-layout="floral"] .inv-btn[aria-pressed="false"] { background: var(--fl-paper); color: var(--chocolate); border-color: var(--fl-pink-line); border-radius: 999px; }
.inv[data-layout="floral"] .inv-btn.line { font-size: 17px; letter-spacing: 0.02em; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-btn.line { letter-spacing: 0.2em; }

/* 1. names: an open letter between two sprigs, the venue in a gingham polaroid tied with a bow */
.inv[data-layout="floral"] [data-sec="names"] { padding-top: 92px; gap: 14px; }
.inv[data-layout="floral"] [data-sec="names"] .inv-orn::before { left: -6px; top: -64px; width: 46%; aspect-ratio: 7 / 10; background-image: url("floral-sprig.webp"); }
.inv[data-layout="floral"] [data-sec="names"] .inv-orn::after { right: -6px; top: -64px; width: 34%; aspect-ratio: 7 / 10; background-image: url("floral-sprig.webp"); transform: scaleX(-1); opacity: 0.9; }
.inv[data-layout="floral"] .inv-hello { order: 1; color: var(--fl-green); font-size: clamp(50px, 15cqw, 76px); display: flex; flex-direction: column; align-items: center; line-height: 0.95; }
.inv[data-layout="floral"] .inv-hello em { font-size: 0.55em; line-height: 1.2; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-hello { font-size: 38px; letter-spacing: 0.2em; text-indent: 0.2em; line-height: 1.25; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-hello em { font-size: 0.5em; letter-spacing: 0; text-indent: 0; line-height: 1.8; }
.inv[data-layout="floral"] .inv-lead { order: 2; font-size: 20px; max-width: 26ch; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-lead { font-size: 18px; max-width: 16em; }
.inv[data-layout="floral"] .inv-when { order: 3; font-size: 14px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; padding: 12px 6px; border-top: 1px solid var(--fl-pink-line); border-bottom: 1px solid var(--fl-pink-line); }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-when { font-size: 16px; font-weight: 500; letter-spacing: 0.14em; }
.inv[data-layout="floral"] .inv-photo, .inv[data-layout="floral"] .inv-photo[hidden] { order: 4; display: block !important; position: relative; width: 84%; max-width: 330px; aspect-ratio: 1 / 1.06; margin: 34px 0 6px; border-radius: 3px; transform: rotate(-2.5deg); box-shadow: 0 10px 24px rgba(74, 58, 45, 0.16), 0 1px 3px rgba(74, 58, 45, 0.18);
  background: url("ill-chateau.webp") center 34% / 74% auto no-repeat, linear-gradient(#FFFDF9, #FBF4EC) center 30% / 86% 70% no-repeat, repeating-linear-gradient(0deg, rgba(232, 178, 182, 0.5) 0 9px, transparent 9px 18px), repeating-linear-gradient(90deg, rgba(232, 178, 182, 0.5) 0 9px, transparent 9px 18px), #FFF6F4 !important; }
.inv[data-layout="floral"] .inv-photo::before { content: ""; position: absolute; left: 50%; top: -44px; width: 132px; aspect-ratio: 700 / 520; transform: translateX(-50%) rotate(2.5deg); background: url("floral-bow.webp") center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(74, 58, 45, 0.15)); }
.inv[data-layout="floral"] [data-sec="names"] > .i-label { order: 5; margin-top: -58px; margin-bottom: 30px; z-index: 1; transform: rotate(-2.5deg); font-size: 12px; letter-spacing: 0.18em; color: var(--rose-deep); max-width: 66%; }
.inv[lang="zh-Hant"][data-layout="floral"] [data-sec="names"] > .i-label { font-size: 15px; letter-spacing: 0.24em; }
.inv[data-layout="floral"] .inv-count { order: 6; gap: 4px; margin-top: 4px; }
.inv[data-layout="floral"] .inv-count div { border: none; border-radius: 0; background: var(--fl-scallop-pink) center / contain no-repeat; }
.inv[data-layout="floral"] .inv-count div:nth-child(even) { background-image: var(--fl-scallop-sage); }
.inv[data-layout="floral"] .inv-count b { font-size: 25px; }
.inv[data-layout="floral"] .inv-count span { font-size: 10px; letter-spacing: 0.12em; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-count span { font-size: 13px; font-weight: 400; }
.inv[data-layout="floral"] [data-sec="names"] .inv-row { order: 7; }

/* 2. date: a lace-edged blush card under a bow, the day in a heart */
.inv[data-layout="floral"] [data-sec="date"] { margin: 34px 18px 0; padding: 58px 20px 34px; }
.inv[data-layout="floral"] [data-sec="date"]::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--fl-pink); -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 16px) calc(100% - 16px) no-repeat, radial-gradient(circle closest-side, #000 97%, transparent) 0 0 / 16px 16px round; mask: linear-gradient(#000 0 0) center / calc(100% - 16px) calc(100% - 16px) no-repeat, radial-gradient(circle closest-side, #000 97%, transparent) 0 0 / 16px 16px round; }
.inv[data-layout="floral"] [data-sec="date"] .inv-orn { inset: 16px; border: 1px dashed var(--fl-pink-line); border-radius: 4px; background: rgba(255, 253, 249, 0.72); }
.inv[data-layout="floral"] [data-sec="date"] .inv-orn::before { left: 50%; top: -66px; width: 150px; aspect-ratio: 700 / 520; transform: translateX(-50%); background-image: url("floral-bow.webp"); filter: drop-shadow(0 3px 4px rgba(74, 58, 45, 0.14)); }
.inv[data-layout="floral"] .inv-cal { max-width: 300px; }
.inv[data-layout="floral"] .inv-cal-m { font-style: normal; font-size: 15px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose-deep); }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-cal-m { font-size: 18px; font-weight: 500; letter-spacing: 0.2em; }
.inv[data-layout="floral"] .inv-cal-g b { color: var(--fl-green); opacity: 1; border-bottom: 1px solid var(--fl-pink-line); margin-bottom: 4px; }
.inv[data-layout="floral"] .inv-cal-g .on { color: #FFFDF9; font-weight: 700; background: var(--fl-heart) center 58% / 118% no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23A9686C' d='M16 28C6 20 3 15 3 10.5 3 7 5.8 4.500 9 4.500c2.600 0 5 1.500 7 4.500 2-3 4.400-4.500 7-4.500 3.200 0 6 2.500 6 6C29 15 26 20 16 28z'/%3E%3C/svg%3E"); }
.inv[data-layout="floral"] [data-sec="date"] .inv-btn { background: var(--fl-paper); min-height: 46px; margin-top: 4px; }

/* 3. order of the day: ruled lines, a small painted flower for each moment */
.inv[data-layout="floral"] [data-sec="order"] { padding-top: 10px; }
.inv[data-layout="floral"] [data-sec="order"] .inv-orn::before { right: -8px; top: -78px; width: 30%; aspect-ratio: 7 / 10; background-image: url("floral-sprig.webp"); transform: scaleX(-1); opacity: 0.85; }
.inv[data-layout="floral"] .inv-order { margin-top: 6px; }
.inv[data-layout="floral"] .inv-order li { position: relative; display: block; padding: 16px 0 14px 62px; min-height: 76px; border-top: none; border-bottom: 3px double var(--fl-pink-line); }
.inv[data-layout="floral"] .inv-order li:last-child { border-bottom: 3px double var(--fl-pink-line); }
.inv[data-layout="floral"] .inv-order li::before { content: ""; position: absolute; left: 0; top: 10px; width: 54px; height: 54px; background: url("floral-icons.webp") 0 0 / 500% 100% no-repeat; }
.inv[data-layout="floral"] .inv-order li:nth-child(5n+2)::before { background-position: 25% 0; }
.inv[data-layout="floral"] .inv-order li:nth-child(5n+3)::before { background-position: 50% 0; }
.inv[data-layout="floral"] .inv-order li:nth-child(5n+4)::before { background-position: 75% 0; }
.inv[data-layout="floral"] .inv-order li:nth-child(5n+5)::before { background-position: 100% 0; }
.inv[data-layout="floral"] .inv-order time { display: block; width: auto; font-size: 14px; font-weight: 700; letter-spacing: 0.22em; color: var(--rose-deep); }
.inv[data-layout="floral"] .inv-order strong { font-size: 22px; line-height: 1.25; color: var(--chocolate); }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-order strong { font-size: 20px; letter-spacing: 0.08em; }
.inv[data-layout="floral"] .inv-order span { padding-top: 2px; }

/* 4. good to know: a sage band with scalloped edges, scalloped labels */
.inv[data-layout="floral"] [data-sec="details"] { padding: 46px 26px 44px; margin: 12px 0; background: var(--fl-sage-tint); gap: 20px; }
.inv[data-layout="floral"] [data-sec="details"]::before, .inv[data-layout="floral"] [data-sec="details"]::after { content: ""; position: absolute; left: 0; right: 0; height: 20px; background: radial-gradient(circle closest-side, var(--fl-sage-tint) 97%, transparent) 0 0 / 20px 20px round; }
.inv[data-layout="floral"] [data-sec="details"]::before { top: -10px; }
.inv[data-layout="floral"] [data-sec="details"]::after { bottom: -10px; }
.inv[data-layout="floral"] [data-sec="details"] .inv-orn::before { left: 50%; top: -52px; width: 190px; aspect-ratio: 1200 / 279; transform: translateX(-50%); background-image: url("ill-garland.webp"); }
.inv[data-layout="floral"] .inv-cards { gap: 14px; }
.inv[data-layout="floral"] .inv-card, .inv[data-layout="floral"] .inv-card:last-child { border: none; padding: 30px 18px 22px; margin-top: 16px; gap: 6px; position: relative; background: var(--fl-paper); border-radius: 18px; box-shadow: 0 0 0 1px rgba(140, 154, 120, 0.35), 0 6px 16px rgba(86, 100, 74, 0.08); }
.inv[data-layout="floral"] .inv-card h3 { position: absolute !important; left: 50%; top: -17px; transform: translateX(-50%); white-space: nowrap; padding: 9px 26px 8px; font-size: 12px; line-height: 1.4; color: var(--chocolate); background: var(--fl-pink-2); -webkit-mask: linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat, radial-gradient(circle closest-side, #000 97%, transparent) 0 0 / 10px 10px round; mask: linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat, radial-gradient(circle closest-side, #000 97%, transparent) 0 0 / 10px 10px round; }
.inv[lang="zh-Hant"][data-layout="floral"] .inv-card h3 { font-size: 15px; padding: 7px 24px 7px 28px; }
.inv[data-layout="floral"] .inv-sw { gap: 10px; padding-top: 12px; }
.inv[data-layout="floral"] .inv-sw i { width: 32px; height: 32px; border: 3px solid #FFF; box-shadow: 0 0 0 1px rgba(74, 58, 45, 0.18); }

/* 5. rsvp: a reply card slipped out of a painted envelope */
.inv[data-layout="floral"] [data-sec="rsvp"] { margin: 96px 16px 0; padding: 104px 20px 28px; background: #FFFFFF; border: 1px solid var(--fl-pink-line); border-radius: 22px; box-shadow: inset 0 0 0 5px #FFFFFF, inset 0 0 0 6px var(--fl-pink-2), 0 12px 28px rgba(138, 79, 83, 0.1); }
.inv[data-layout="floral"] [data-sec="rsvp"] .inv-orn::before { left: 50%; top: -96px; width: 178px; aspect-ratio: 898 / 993; transform: translateX(-50%) rotate(-4deg); background-image: url("ill-envelope.webp"); filter: drop-shadow(0 6px 8px rgba(74, 58, 45, 0.12)); }
.inv[data-layout="floral"] .inv-field label, .inv[data-layout="floral"] .inv-checks legend { color: var(--taupe); }
.inv[data-layout="floral"] .inv-field input, .inv[data-layout="floral"] .inv-field select { border-bottom-color: var(--fl-pink-line); }
.inv[data-layout="floral"] .inv-field input:focus, .inv[data-layout="floral"] .inv-field select:focus { border-bottom-color: var(--rose-deep); }
.inv[data-layout="floral"] .inv-field textarea { border-color: var(--fl-pink-line); border-radius: 16px; background: #FFFCFA; }
.inv[data-layout="floral"] .inv-checks label { border-color: var(--fl-pink-line); background: #FFFCFA; font-size: 16px; padding: 0 14px; }
.inv[data-layout="floral"] .inv-checks label:has(input:checked) { background: var(--fl-pink); }
.inv[data-layout="floral"] .inv-checks input { accent-color: #A9686C; }
.inv[data-layout="floral"] .inv-form .inv-btn[aria-pressed="true"] { background: var(--fl-pink-2); border-color: #C99A9C; box-shadow: inset 0 0 0 2px #FFFFFF; }
.inv[data-layout="floral"] .inv-form .inv-btn[type="submit"] { flex: none; background: var(--fl-green); color: #FFFDF9; border-color: var(--fl-green); min-height: 54px; }
.inv[data-layout="floral"] .inv-thanks { background: none; border: none; padding: 0 0 8px; }
.inv[data-layout="floral"] .inv-thanks h2 { padding-bottom: 22px; }

/* foot: share pill, credit, a strip of meadow */
.inv[data-layout="floral"] .inv-share { width: auto; margin: -22px 26px 0; }
.inv[data-layout="floral"] .inv-made { margin-top: -30px; padding: 0 20px; position: relative; z-index: 1; }
.inv[data-layout="floral"] .inv-col::after { content: ""; display: block; width: 100%; aspect-ratio: 1500 / 520; margin-top: -84px; background: url("floral-meadow.webp") center bottom / 100% auto no-repeat; pointer-events: none; }

.inv[lang="zh-Hant"][data-layout="floral"] .inv-sec h2 { font-style: normal; }
.inv[data-layout="floral"] .inv-thanks h2 { order: 0; }
.inv[data-layout="floral"] .inv-thanks .inv-lead { order: 1; }
.inv[data-layout="floral"] .inv-thanks .inv-back { order: 2; }
