/* hereby template: gingham — "Pink Gingham" (粉格野餐)
   A garden picnic: hand-painted pink gingham, white cards, the names inside a leafy rose wreath with a pink bow,
   fresh leaf green for words and buttons.
   Art: gingham-paper.jpg, gingham-wreath / gingham-villa / gingham-basket / gingham-bow / gingham-garland (watercolour),
   sc-gingham-a (scene band). */
.inv[data-layout="gingham"] { --gh-pink: #F2B8C2; --gh-rose: #D9788A; --gh-card: #FFFDFB; --gh-green: #4F7344; --gh-deep: #3A5633; --gh-blush: #FBE7EA; --gh-hair: rgba(79, 115, 68, 0.3);
  --inv-ink: var(--gh-deep); --inv-btn: var(--gh-green); --inv-btn-fg: var(--gh-card); color: #3C3A33; font-variant-numeric: lining-nums; }

/* ---------- Cover: gingham, a white card, the names inside the wreath, the villa under it */
.inv[data-layout="gingham"] .inv-cover { background: url("gingham-paper.jpg") center / 300px auto repeat, var(--gh-pink); padding: 62px 10% 9%; justify-content: flex-start; gap: 2cqw; }
.inv[data-layout="gingham"] .inv-frame { display: block; position: absolute; left: 6%; right: 6%; top: 56px; bottom: 5%; border-radius: 999px 999px 18px 18px; background: var(--gh-card); box-shadow: 0 10px 28px rgba(150, 70, 90, 0.25), inset 0 0 0 7px var(--gh-card), inset 0 0 0 8px var(--gh-hair); pointer-events: none; z-index: -1; }
.inv[data-layout="gingham"] .inv-covertop { order: 1; gap: 2px; margin-top: 9cqw; }
.inv[data-layout="gingham"] .inv-kicker { display: block; font-size: clamp(10px, 3cqw, 13px); letter-spacing: 0.36em; margin-right: -0.36em; color: var(--gh-rose); }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-kicker { font-size: clamp(13px, 3.7cqw, 16px); }
.inv[data-layout="gingham"] .inv-covertop .i-date { display: none; }
.inv[data-layout="gingham"] .inv-names { order: 2; width: 66cqw; max-width: 340px; aspect-ratio: 5 / 6; flex-shrink: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8% 17cqw 0; background: url("gingham-wreath.webp") center / contain no-repeat; color: var(--gh-deep); font-size: clamp(30px, 9.2cqw, 48px); line-height: 1.02; }
.inv[data-layout="gingham"] .inv-names em { color: var(--gh-rose); }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-names { font-size: clamp(26px, 8cqw, 42px); letter-spacing: 0.18em; }
.inv[data-layout="gingham"] .inv-big { display: block; order: 3; font-size: clamp(14px, 4.2cqw, 19px); font-style: italic; letter-spacing: 0.22em; color: var(--gh-deep); }
.inv[data-layout="gingham"] .inv-ill { order: 4; flex: 1 1 0; min-height: 0; width: 60cqw; max-width: 320px; padding: 0; border-radius: 0; background: url("gingham-villa.webp") center / contain no-repeat; }
.inv[data-layout="gingham"] .inv-ill img { display: none; }
.inv[data-layout="gingham"] .inv-venue { display: block; order: 5; font-size: clamp(10px, 3cqw, 13px); letter-spacing: 0.22em; color: var(--gh-deep); }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-venue { font-size: clamp(13px, 3.7cqw, 16px); }
.inv[data-layout="gingham"] .inv-open { order: 6; margin-top: 1cqw; border-radius: 999px; background: var(--gh-green); color: var(--gh-card); box-shadow: 0 0 0 0 rgba(79, 115, 68, 0.45); animation-name: gh-pulse; }
@keyframes gh-pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 115, 68, 0.45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(79, 115, 68, 0); } }
.inv[data-layout="gingham"] .inv-skip { color: var(--gh-deep); background: rgba(255, 253, 251, 0.9); z-index: 2; }

/* ---------- Body: gingham, white cards with a fine green rule */
.inv[data-layout="gingham"] .inv-body { background: url("gingham-paper.jpg") center / 300px auto repeat, var(--gh-pink); }
.inv[data-layout="gingham"] .inv-col { padding: 14px 16px 36px; gap: 52px; }
.inv[data-layout="gingham"] .inv-top { padding: 6px 10px; border-radius: 999px; background: rgba(255, 253, 251, 0.9); }
.inv[data-layout="gingham"] .inv-back { color: var(--gh-deep); }
.inv[data-layout="gingham"] .inv-lang { border-color: var(--gh-green); background: var(--gh-card); }
.inv[data-layout="gingham"] .inv-lang button { color: var(--gh-deep); }
.inv[data-layout="gingham"] .inv-lang button[aria-pressed="true"] { background: var(--gh-green); color: var(--gh-card); }
.inv[data-layout="gingham"] .inv-sec { position: relative; padding: 40px 22px 30px; background: var(--gh-card); box-shadow: 0 10px 24px -14px rgba(150, 70, 90, 0.45), inset 0 0 0 7px var(--gh-card), inset 0 0 0 8px var(--gh-hair); }
.inv[data-layout="gingham"] .inv-sec h2 { padding: 0 0 12px; background: none; font-style: italic; font-weight: 500; font-size: clamp(30px, 9cqw, 38px); color: var(--gh-deep); }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-sec h2 { font-style: normal; font-size: 26px; letter-spacing: 0.22em; text-indent: 0.22em; }
.inv[data-layout="gingham"] .inv-btn { border-radius: 999px; min-height: 50px; }
.inv[data-layout="gingham"] .inv-btn.line, .inv[data-layout="gingham"] .inv-btn[aria-pressed="false"] { color: var(--gh-deep); border-color: var(--gh-green); background: var(--gh-card); }
.inv[data-layout="gingham"] .inv-btn.line { font-size: 17px; }
.inv[data-layout="gingham"] .inv-orn { display: block; position: absolute; pointer-events: none; z-index: 1; background: center / contain no-repeat; }
.inv[data-layout="gingham"] .inv-share { background: var(--gh-card); }

/* 1. names: an arch-topped card, the pink bow at its crown */
.inv[data-layout="gingham"] [data-sec="names"] { margin-top: 34px; padding-top: 76px; border-radius: 999px 999px 0 0; gap: 14px; }
.inv[data-layout="gingham"] [data-sec="names"] .inv-orn { left: 50%; top: -38px; width: 130px; height: 100px; translate: -50% 0; background-image: url("gingham-bow.webp"); }
.inv[data-layout="gingham"] .inv-photo { display: none !important; }
.inv[data-layout="gingham"] .inv-hello { color: var(--gh-deep); font-size: clamp(46px, 14cqw, 70px); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.inv[data-layout="gingham"] .inv-hello em { font-size: 0.5em; color: var(--gh-rose); line-height: 1.3; }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-hello { font-size: 34px; letter-spacing: 0.2em; text-indent: 0.2em; line-height: 1.3; }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-hello em { font-size: 0.5em; letter-spacing: 0; text-indent: 0; line-height: 1.8; }
.inv[data-layout="gingham"] .inv-lead { font-size: 20px; }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-lead { font-size: 18px; max-width: 16em; }
.inv[data-layout="gingham"] .inv-when { font-size: 15px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gh-deep); padding: 10px 0; border-top: 1px solid var(--gh-hair); border-bottom: 1px solid var(--gh-hair); }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-when { font-size: 17px; font-weight: 500; letter-spacing: 0.12em; }
.inv[data-layout="gingham"] [data-sec="names"] > .i-label { font-size: 12px; color: var(--gh-rose); }
.inv[data-layout="gingham"] .inv-count { gap: 8px; margin-top: 4px; }
.inv[data-layout="gingham"] .inv-count div { border: 1px solid var(--gh-hair); background: var(--gh-blush); }
.inv[data-layout="gingham"] .inv-count b { font-size: 28px; color: var(--gh-deep); }
.inv[data-layout="gingham"] .inv-count span { font-size: 10px; color: var(--gh-rose); }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-count span { font-size: 13px; font-weight: 400; }

/* 2. date: the day on a pink heart-shaped bloom */
.inv[data-layout="gingham"] .inv-cal-m { font-style: normal; font-size: 17px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gh-rose); }
.inv[lang="zh-Hant"][data-layout="gingham"] .inv-cal-m { font-size: 19px; font-weight: 500; letter-spacing: 0.16em; }
.inv[data-layout="gingham"] .inv-cal-g b { opacity: 1; color: var(--gh-green); border-bottom: 1px solid var(--gh-hair); }
.inv[data-layout="gingham"] .inv-cal-g .on { color: var(--gh-card); background: radial-gradient(circle closest-side, var(--gh-rose) 86%, transparent 90%); }

/* 3. order of the day */
.inv[data-layout="gingham"] .inv-order li { gap: 20px; border-top-color: var(--gh-hair); }
.inv[data-layout="gingham"] .inv-order li:last-child { border-bottom-color: var(--gh-hair); }
.inv[data-layout="gingham"] .inv-order time { font-size: 20px; font-weight: 500; color: var(--gh-rose); }
.inv[data-layout="gingham"] .inv-order strong { color: var(--gh-deep); }

/* 4. good to know */
.inv[data-layout="gingham"] .inv-card { border-color: var(--gh-hair); }
.inv[data-layout="gingham"] .inv-card h3 { color: var(--gh-green); }
.inv[data-layout="gingham"] .inv-sw i { border: 3px solid var(--gh-card); box-shadow: 0 0 0 1px var(--gh-hair); width: 32px; height: 32px; }

/* 5. reply: the picnic basket on the card's edge */
.inv[data-layout="gingham"] [data-sec="rsvp"] { margin-top: 110px; padding-top: 70px; }
.inv[data-layout="gingham"] [data-sec="rsvp"] .inv-orn { left: 50%; top: -120px; width: 210px; height: 170px; translate: -50% 0; background-image: url("gingham-basket.webp"); background-position: center bottom; }
.inv[data-layout="gingham"] .inv-field label, .inv[data-layout="gingham"] .inv-checks legend { color: #6C6A5E; }
.inv[data-layout="gingham"] .inv-field input, .inv[data-layout="gingham"] .inv-field select { border-bottom-color: var(--gh-hair); color: #3C3A33; }
.inv[data-layout="gingham"] .inv-field textarea { border-color: var(--gh-hair); background: #FFFFFF; color: #3C3A33; }
.inv[data-layout="gingham"] .inv-checks label { border-color: var(--gh-hair); color: #3C3A33; }
.inv[data-layout="gingham"] .inv-checks label:has(input:checked) { background: var(--gh-blush); }
.inv[data-layout="gingham"] .inv-checks input { accent-color: var(--gh-green); }
.inv[data-layout="gingham"] .inv-form .inv-btn[aria-pressed="true"] { background: var(--gh-green); color: var(--gh-card); }
.inv[data-layout="gingham"] .inv-thanks { background: none; border: none; padding: 0; }

/* foot */
.inv[data-layout="gingham"] .inv-made { padding: 10px 16px; border-radius: 14px; background: rgba(255, 253, 251, 0.9); }
.inv[data-layout="gingham"] .inv-made a { color: var(--gh-deep); }
