/* Bộ khối chung kiểu Salon de Letter (_sd): dùng cho các mẫu meta.base = "sd". Biến màu/font mặc định = mẫu Our Wedding Day; mỗi mẫu ghi đè biến trong .t-<mẫu>. */

.b-sd {
  --gold: #6b5933;
  --ink: #383838;
  --muted: #9a9da2;
  --btn: #b7a989;
  --cream: #fff0d0;
  --mark: #ffefc6;
  --paper: #ffffff;
  --paper-warm: #f8f5ee;
  --f-serif: "Gowun Batang", "Noto Serif", serif;
  --f-hand: "Patrick Hand", cursive;
  --f-display: "Fraunces", "Gowun Batang", serif;
  --f-num: "Playfair Display", Georgia, serif;
  --f-script: "Gowun Batang", serif;
  --gate-bg: #f8f5ee;
  --gate-ink: #6b5933;
  --seal-wax: #b7a989;
  color: var(--ink);
  font-family: var(--f-serif);
}
.b-sd .thiepmai-frame { background: var(--paper); }
.b-sd .thiepmai-frame > section, .b-sd .thiepmai-frame > div { position: relative; }
.b-sd p, .b-sd h1, .b-sd h2 { margin: 0; }
.b-sd .ph { inset: 0; }

/* chữ dùng chung */
.b-sd .sd-sec { padding: 76px 28px; text-align: center; }
.b-sd .sd-title { font: 500 18px/1.4 var(--f-serif); color: var(--gold); }
.b-sd .sd-text { margin-top: 22px; font: 400 14.25px/24.2px var(--f-serif); color: var(--ink); }
.b-sd .sd-title + .sd-text { margin-top: 26px; }
.b-sd .sd-text + .sd-text { margin-top: 24px; }
.b-sd .sd-text--lg { font-size: 15px; line-height: 24px; }
.b-sd .sd-muted { margin-top: 6px; font: 400 12.5px var(--f-serif); color: var(--muted); }
.b-sd .sd-btn {
  display: inline-block; margin-top: 30px; padding: 10px 40px; border: 0; border-radius: 0; background: var(--btn); color: #fff;
  font: 400 13.5px var(--f-serif); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); cursor: pointer; text-decoration: none;
}

/* ---------- 2. lời mời + ảnh ngang ---------- */
.b-sd .sd-wide { height: 360px; }

/* ---------- 3. trích dẫn ---------- */
.b-sd .sd-quote { padding: 64px 28px; }
.b-sd .sd-quote .sd-text:first-child { margin-top: 0; }

/* ---------- 4. hai nhân vật ---------- */
.b-sd .sd-profile { padding: 30px 10px 70px; }
.b-sd .sd-profile__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-sd .sd-person { margin: 0; }
.b-sd .sd-person__pic { position: relative; height: 200px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.b-sd .sd-person figcaption { padding-top: 12px; }
.b-sd .sd-person__role { font: 400 13px var(--f-serif); color: #000; }
.b-sd .sd-person__role span { font-size: 12px; }
.b-sd .sd-person .sd-text { margin-top: 14px; font-size: 15px; line-height: 24px; }
.b-sd .sd-person__parents { margin-top: 18px; font: 400 14px/1.6 var(--f-serif); color: var(--ink); }

/* ---------- 5. thư viết tay trên ảnh ---------- */
.b-sd .sd-letter { padding: 30px 36px 60px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 12%, var(--paper-warm) 88%, var(--paper) 100%); }
.b-sd .sd-letter__pic { position: relative; height: 500px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.b-sd .sd-letter__lines { position: absolute; left: 10px; right: 10px; bottom: 34px; text-align: center; }
.b-sd .sd-letter__lines p { margin-top: 6px; }
.b-sd .sd-letter__lines span {
  display: inline-block; padding: 0 8px; background: rgba(255, 255, 255, .94); color: #4e554a;
  font: 400 20px/30px var(--f-hand); transform: rotate(-1.2deg);
}
.b-sd .sd-letter__lines p:nth-child(even) span { transform: rotate(1deg); }
.b-sd .sd-letter__sign { margin-top: 18px !important; }

/* ---------- 6. thông tin + lịch ---------- */
.b-sd .sd-event + .sd-event { margin-top: 44px; }
.b-sd .sd-event .sd-text { margin-top: 10px; }
.b-sd .sd-event .sd-text--lg { margin-top: 14px; }
.b-sd .sd-info__pic { position: relative; height: 330px; margin: 56px 18px 0; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.b-sd .sd-cal { margin-top: 30px; }
.b-sd .sd-cal__grid { margin-top: 26px; }
.b-sd .sd-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.b-sd .sd-cal__row span { display: grid; place-items: center; height: 46px; font: 400 14px var(--f-num); color: var(--ink); }
.b-sd .sd-cal__row--head span { height: 36px; font: 700 14px var(--f-serif); }
/* T7 + CN tô vàng như mẫu gốc (lịch Việt bắt đầu từ T2 nên là 2 cột cuối) */
.b-sd .sd-cal__row--head span:nth-last-child(-n + 2) { color: var(--gold); }
.b-sd .sd-cal__row span.is-day { position: relative; color: #fff; }
.b-sd .sd-cal__row span.is-day::before { content: ""; position: absolute; z-index: -1; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); }
.b-sd .sd-cal__row span.is-day { z-index: 0; }

/* ---------- 7. D-day ---------- */
.b-sd .sd-dday { height: 760px; overflow: hidden; color: #fff; text-align: center; }
.b-sd .sd-dday::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%); }
.b-sd .sd-dday__foot { position: absolute; z-index: 1; left: 0; right: 0; bottom: 26px; }
.b-sd .sd-dday__heart { font-size: 22px; }
.b-sd .sd-dday__count { margin-top: 4px; font: 400 37.5px var(--f-serif); }
.b-sd .sd-dday__count b { font-weight: 400; }
.b-sd .sd-dday__date { margin-top: 2px; font: 400 14px var(--f-num); }

/* ---------- 8. album ---------- */
.b-sd .sd-gallery { padding: 100px 0 70px; }
.b-sd .sd-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 46px; }
.b-sd .sd-gallery__pic { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }

/* ---------- 9. lịch trình ---------- */
.b-sd .sd-time__list { position: relative; margin: 40px 0 0; padding: 0; list-style: none; }
.b-sd .sd-time__list::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #d9d5cc; }
.b-sd .sd-time__item { position: relative; display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; padding: 22px 0; }
.b-sd .sd-time__dot { grid-column: 2; justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.b-sd .sd-time__when { grid-column: 1; grid-row: 1; justify-self: center; font: 400 15.75px var(--f-num); color: var(--muted); letter-spacing: .04em; }
.b-sd .sd-time__what { grid-column: 3; grid-row: 1; justify-self: center; font: 400 14.25px/24px var(--f-serif); }
.b-sd .sd-time__what b { display: block; font: 400 15px var(--f-serif); }
.b-sd .sd-time__what small { display: block; font-size: 13.5px; }
.b-sd .sd-time__item:nth-child(even) .sd-time__when { grid-column: 3; }
.b-sd .sd-time__item:nth-child(even) .sd-time__what { grid-column: 1; }

/* ---------- 10. đường đến ---------- */
.b-sd .sd-way .sd-text--lg { margin-top: 30px; }
.b-sd .sd-way .sd-text--lg + .sd-text { margin-top: 8px; }
.b-sd .sd-way__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 30px; }
.b-sd .sd-way__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 1px solid #eee; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1); font: 400 14px var(--f-serif); color: var(--ink); text-decoration: none;
}
.b-sd .sd-way__btn svg { width: 18px; height: 18px; }

/* ---------- 11–12. xác nhận / mừng cưới ---------- */
.b-sd .sd-cta { padding: 64px 28px; }

/* ---------- 13. ảnh kết ---------- */
.b-sd .sd-end__pic { position: relative; height: 350px; overflow: hidden; }

/* ---------- màn mở thiệp + credit ---------- */
.b-sd .thiepmai-gate__names { font-family: var(--f-serif); font-weight: 500; }
.b-sd .thiepmai-gate__open { background: var(--btn); color: #fff; font-family: var(--f-serif); border-radius: 0; }
.b-sd .thiepmai-credit { padding: 40px 0 30px; background: #fff; }
.b-sd .thiepmai-sheet input, .b-sd .thiepmai-sheet select { accent-color: var(--btn); }

/* khung xác nhận / mừng cưới (phần dùng chung): góc vuông như mẫu */
.b-sd .thiepmai-sheet__panel, .b-sd .thiepmai-sheet input, .b-sd .thiepmai-sheet select, .b-sd .thiepmai-sheet textarea,
.b-sd .thiepmai-sheet button:not(.thiepmai-sheet__x), .b-sd .thiepmai-sheet img { border-radius: 0 !important; }

/* ---------- thơ / trích dẫn ---------- */
.b-sd .sd-poem { padding: 70px 34px; }
.b-sd .sd-poem .sd-text:first-child { margin-top: 0; }
/* mỗi phần tử "quote" là một dòng thơ: các dòng sát nhau */
.b-sd .sd-poem .sd-text + .sd-text { margin-top: 2px; }

/* ---------- bố mẹ dạng gọn ---------- */
.b-sd .sd-parents { padding: 40px 24px 60px; }
.b-sd .sd-parents__row { display: flex; justify-content: center; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; font: 400 14.5px/1.8 var(--f-serif); color: var(--ink); }
.b-sd .sd-parents__row + .sd-parents__row { margin-top: 10px; }
.b-sd .sd-parents__row em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.b-sd .sd-parents__row b { font-weight: 700; font-size: 16px; color: var(--ink); }

/* ---------- đếm ngược hình tròn ---------- */
.b-sd .sd-cd { padding: 30px 16px 70px; }
.b-sd .sd-cd .sd-text { margin: 0; }
.b-sd .sd-cd__heart { color: var(--gold); }
.b-sd .sd-cd__row { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.b-sd .sd-cd__row p { display: grid; justify-items: center; gap: 8px; margin: 0; }
.b-sd .sd-cd__row b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--btn); color: #fff;
  font: 400 20px var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.b-sd .sd-cd__row span { font: 400 12px var(--f-serif); color: var(--muted); }

/* ---------- album trượt ngang ---------- */
.b-sd .sd-slider { padding: 80px 0 60px; }
.b-sd .sd-slider__wrap { position: relative; margin-top: 40px; }
.b-sd .sd-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.b-sd .sd-slider__track::-webkit-scrollbar { display: none; }
.b-sd .sd-slider__pic { position: relative; flex: 0 0 100%; height: 560px; scroll-snap-align: center; }
.b-sd .sd-slider__nav { position: absolute; top: 50%; width: 36px; height: 52px; margin-top: -26px; border: 0; background: none; color: #fff;
  font: 300 40px/1 var(--f-serif); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); cursor: pointer; }
.b-sd .sd-slider__nav--prev { left: 6px; }
.b-sd .sd-slider__nav--next { right: 6px; }

/* ---------- Barunson M Card (chủ shop đã xin phép): thân chung cho 6 mẫu bs ----------
   Số đo gốc: nền #f4f4f4 / #f9f9fb, chữ #333, nút #98a0f4, Nanum Myeongjo → Noto Serif, nhãn Quicksand cách chữ rộng.
   Mẫu gọi các partial sd-bs-*; màu nhãn lấy --gold, nút --bs-btn. */
.b-sd .bs-sec { padding: 66px 28px; text-align: center; background: #fff; }
.b-sd .bs-sec--soft, .b-sd .bs-invite { background: #f4f4f4; }
.b-sd .bs-couple, .b-sd .bs-gift { background: #f9f9fb; }
.b-sd .bs-label { font: 500 15px/1 "Quicksand", var(--f-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.b-sd .bs-label--grey { color: #999; }
.b-sd .bs-text { margin-top: 30px; font: 400 14.5px/2.55 var(--f-serif); color: #333; }
.b-sd .bs-label + .bs-text { margin-top: 36px; }
.b-sd .bs-text + .bs-text { margin-top: 0; }
.b-sd .bs-btn {
  display: block; width: 100%; margin-top: 34px; padding: 13px 0; border: 0; background: var(--bs-btn, #98a0f4); color: #fff;
  font: 600 14.5px var(--f-serif); box-shadow: 0 2px 4px rgba(0, 0, 0, .12); cursor: pointer;
}
.b-sd .bs-btn--line { background: #fff; color: #333; border: 1px solid #ddd; border-radius: 999px; box-shadow: none; }
.b-sd .bs-invite { padding-bottom: 76px; }

.b-sd .bs-couple { padding: 56px 24px 64px; }
.b-sd .bs-couple__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-sd .bs-couple__role { margin: 0; font: 700 17px var(--f-serif); color: #222; }
.b-sd .bs-couple__name { margin-top: 14px; font: 500 19px var(--f-serif); color: #222; }
.b-sd .bs-couple__side { margin: 34px 0 14px; font: 400 14px var(--f-serif); color: #666; }
.b-sd .bs-couple__row { margin-top: 8px; font: 500 14.5px/1.5 var(--f-serif); color: #222; }
.b-sd .bs-couple__row em { display: block; font-style: normal; font-size: 12px; color: #888; }

.b-sd .bs-rsvp { background: #f4f4f4; }
.b-sd .bs-rsvp .bs-text { margin-top: 30px; }

.b-sd .bs-gallery { padding: 90px 0 70px; }
.b-sd .bs-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 34px 24px 0; }
.b-sd .bs-gallery__pic { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }

.b-sd .bs-way { padding: 80px 24px 66px; }
.b-sd .bs-way__venue { margin-top: 32px; font: 700 19px/1.4 var(--f-serif); color: #222; }
.b-sd .bs-way__addr { margin-top: 10px; font: 400 15px/1.6 var(--f-serif); color: #444; }
.b-sd .bs-way__btns { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.b-sd .bs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 22px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #333; font: 600 14px var(--f-serif); text-decoration: none; }
.b-sd .bs-pill svg { width: 17px; height: 17px; }

/* bìa toàn trang 420 x 747 (mẫu nào cũng dùng) */
.b-sd .bs-cover { position: relative; height: 747px; overflow: hidden; text-align: center; }
.b-sd .bs-cover__bg { position: absolute; inset: 0; }
.b-sd .bs-cover__info { position: absolute; left: 0; right: 0; }
.b-sd .bs-cover__info p { font: 400 15.5px/1.55 var(--f-serif); letter-spacing: .04em; }
.b-sd .bs-cover__script { position: absolute; margin: 0; font-weight: 400; line-height: 1; white-space: nowrap; }
.b-sd .bs-cover__names { position: absolute; left: 0; right: 0; margin: 0; font: 400 26px/1 var(--f-serif); letter-spacing: .14em; }
.b-sd .bs-cover__names i { font-style: normal; padding: 0 .35em; opacity: .85; }
.b-sd .bs-cover--dark .bs-cover__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 62%, rgba(0,0,0,.42) 100%); }
.b-sd .bs-cover--dark { color: #fff; }
.b-sd .bs-cover--dark .bs-cover__names, .b-sd .bs-cover--dark .bs-cover__info { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.b-sd .bs-photo { position: relative; height: 430px; overflow: hidden; }
.b-sd .bs-couple__pic { position: relative; height: 190px; margin: 0 4px 22px; overflow: hidden; }
.b-sd .sd-guest, .b-sd .bs-guest { margin-top: 22px; }
.b-sd .sd-guest b, .b-sd .bs-guest b { font-weight: 700; }

/* ---------- màn mở thiệp thống nhất (mọi mẫu _sd): cùng một font với thân thiệp, tên không bị ngắt xấu, chữ nhãn đủ rõ ---------- */
.b-sd .thiepmai-gate__label { font-family: var(--f-serif); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; line-height: 1.6; }
.b-sd .thiepmai-gate__guest { margin: 8px 0 12px; font-family: var(--f-serif); font-size: 30px; font-weight: 500; line-height: 1.35; text-wrap: balance; }
.b-sd .thiepmai-gate__names { margin-top: 6px; font-family: var(--f-serif); font-size: 25px; font-weight: 500; line-height: 1.45; text-wrap: balance; }
.b-sd .thiepmai-gate__names span { font-size: .85em; opacity: .8; }
.b-sd .thiepmai-gate__date { margin-top: 8px; font-family: var(--f-serif); font-size: 14.5px; letter-spacing: .2em; }
.b-sd .thiepmai-gate__open { font-size: 15px; font-weight: 600; letter-spacing: .04em; }

/* màn mở thiệp: mực đậm + nét chắc hơn cho dễ đọc trên điện thoại (không dùng chữ nghiêng) */
.b-sd .thiepmai-gate__card { color: #2a2724; }
.b-sd .thiepmai-gate__label { font-weight: 700; color: #4a4540; letter-spacing: .12em; }
.b-sd .thiepmai-gate__guest { font-weight: 700; }
.b-sd .thiepmai-gate__names { font-weight: 700; }
.b-sd .thiepmai-gate__date { font-weight: 600; color: #3a3631; }
