/* Mẫu Tờ Lịch Hỷ — đỏ đậm retro #7a1c22, giấy kem #f6ecd6, vàng #f5c542 (tên trên phong bì, dải giờ), nền giấy kraft #e3d3b4 có vân.
   Chữ to Alfa Slab One, chữ thứ Pattaya, chữ tay Sansita Swashed, thân Fraunces (bộ font retro). Góc vuông (trừ thẻ vòm, nhãn phong bì). */

.t-to-lich-hy {
  --red: #7a1c22;
  --red-deep: #5a1418;
  --yellow: #f5c542;
  --paper: #f6ecd6;
  --ink: #2c2624;
  --soft: #6b625d;
  --f-serif: "Fraunces", Georgia, serif;
  --f-script: "Pattaya", cursive;
  --f-hand: "Sansita Swashed", cursive;
  --f-big: "Alfa Slab One", serif;
  --gate-bg: #7a1c22;
  --gate-ink: #f6ecd6;
  color: var(--ink);
  font-family: var(--f-serif);
}
.t-to-lich-hy .thiepmai-frame { background-color: #e3d3b4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .16 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.t-to-lich-hy .thiepmai-frame > section { position: relative; }
.t-to-lich-hy p, .t-to-lich-hy h1, .t-to-lich-hy h2, .t-to-lich-hy figure { margin: 0; }
.t-to-lich-hy .ph { inset: 0; }

/* chữ dùng chung */
.t-to-lich-hy .lv-sec { padding: 22px 18px; text-align: center; }
.t-to-lich-hy .lv-caps { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.t-to-lich-hy .lv-small { font-size: 13px; line-height: 1.55; color: var(--soft); }
.t-to-lich-hy .lv-hand { font-family: var(--f-hand); font-weight: 700; }
.t-to-lich-hy .lv-script { font-family: var(--f-script); font-weight: 400; color: var(--red); }
.t-to-lich-hy .lv-big { font-family: var(--f-big); font-weight: 400; text-transform: uppercase; line-height: 1.05; color: var(--red); }
.t-to-lich-hy .lv-h2 { font-size: 34px; line-height: 1.25; }
.t-to-lich-hy .lv-lunar { margin-top: 4px; font-size: 12px; color: var(--soft); }
.t-to-lich-hy .lv-date { margin-top: 6px; font-size: 17px; color: var(--red); }
.t-to-lich-hy .lv-hl { display: inline-block; margin-top: 12px; padding: 3px 12px; background: var(--yellow); font-weight: 700; font-size: 14px; }
.t-to-lich-hy .lv-dots { margin: 2px auto 12px; max-width: 260px; padding-bottom: 4px; border-bottom: 1.5px dotted var(--soft); font: 700 22px/1.3 var(--f-hand); }
/* thẻ trắng viền đỏ đôi */
.t-to-lich-hy .lv-card {
  padding: 26px 20px 28px; background: var(--paper); border: 1.5px solid var(--red); outline: 1px solid var(--red); outline-offset: -8px;
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .45);
}
/* dải đỏ tràn ngang thẻ */
.t-to-lich-hy .lv-band { margin: 8px -20px; padding: 8px 10px; background: var(--red); color: var(--paper); font: 400 28px/1.15 var(--f-big); text-transform: uppercase; }
.t-to-lich-hy .lv-band--sm { font-size: 22px; margin-top: 0; }

/* ---------- 1. phong bì ---------- */
.t-to-lich-hy .lv-env { margin: 22px 14px 8px; padding: 18px 18px 26px; background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4 .35' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); color: var(--paper); overflow: hidden; box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .6); }
.t-to-lich-hy .lv-env__row { display: flex; justify-content: space-between; align-items: flex-start; }
.t-to-lich-hy .lv-env__label { padding: 5px 12px; border: 1.5px solid var(--paper); outline: 1px solid var(--paper); outline-offset: 2px; font: 700 14px var(--f-serif); text-transform: uppercase; letter-spacing: .06em; }
.t-to-lich-hy .lv-stamp {
  display: grid; place-items: center; width: 50px; height: 58px; background: var(--paper); rotate: 4deg;
  -webkit-mask: radial-gradient(circle 3px at 4px 4px, #0000 96%, #000) -4px -4px / 8px 8px round, linear-gradient(#000 0 0) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
  mask: radial-gradient(circle 3px at 4px 4px, #0000 96%, #000) -4px -4px / 8px 8px round, linear-gradient(#000 0 0) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat;
}
.t-to-lich-hy .lv-stamp i { font: normal 28px/1 "Thiepmai Hy", serif; color: var(--red); }
.t-to-lich-hy .lv-env__names { display: grid; margin-top: 18px; font: 400 38px/1.1 var(--f-big); color: var(--yellow); text-transform: uppercase; text-align: center; text-shadow: 2px 2px 0 var(--red-deep); }
.t-to-lich-hy .lv-env__names b { font: 400 30px/1.1 var(--f-script); text-transform: none; }
.t-to-lich-hy .lv-env__photo { position: relative; width: 280px; height: 350px; margin: 20px auto 0; border: 6px solid var(--paper); }
.t-to-lich-hy .lv-env__to { position: relative; z-index: 1; margin: -26px auto 0; max-width: 280px; padding: 10px 16px 14px; background: var(--paper); border-radius: 16px; color: var(--ink); text-align: center; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); }
.t-to-lich-hy .lv-env__to .lv-hand { font-size: 18px; color: var(--soft); }
.t-to-lich-hy .lv-env__guest { padding-bottom: 6px; border-bottom: 1.5px dashed var(--red); font: 700 26px/1.3 var(--f-hand); color: var(--red); background: repeating-linear-gradient(transparent 0 33px, rgba(122, 28, 34, .3) 33px 34px); }

/* ---------- 2. thẻ vòm ---------- */
.t-to-lich-hy .lv-arch { padding: 44px 22px 30px; background: var(--paper); border-radius: 190px 190px 0 0; outline: 1px solid rgba(122, 28, 34, .5); outline-offset: -9px; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .45); }
.t-to-lich-hy .lv-arch__kinh { font-size: 26px; line-height: 1.1; }
.t-to-lich-hy .lv-arch__venue { margin: 10px 0 4px; font-size: 48px; }
.t-to-lich-hy .lv-arch__pic { position: relative; width: 220px; height: 280px; margin: 20px auto 16px; border-radius: 110px 110px 0 0; overflow: hidden; }
.t-to-lich-hy .lv-arch__bye { margin-top: 6px; font-size: 24px; color: var(--red); }

/* ---------- 3. tờ lịch ---------- */
.t-to-lich-hy .lv-bloc { padding: 20px 20px 24px; background: var(--paper); box-shadow: 0 16px 26px -14px rgba(0, 0, 0, .5); rotate: -1.2deg; }
.t-to-lich-hy .lv-bloc__top { display: flex; justify-content: space-between; padding: 6px 16px; border: 1.5px solid var(--red); border-radius: 30px; color: var(--red); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.t-to-lich-hy .lv-bloc__day { position: relative; display: grid; place-items: center; margin-top: 8px; height: 170px; }
.t-to-lich-hy .lv-bloc__day i { position: absolute; font: normal 170px/1 "Thiepmai Hy", serif; color: rgba(122, 28, 34, .08); }
.t-to-lich-hy .lv-bloc__day b { position: relative; font: 400 156px/1 var(--f-big); color: var(--red); letter-spacing: -.02em; }
.t-to-lich-hy .lv-bloc__wd { font-size: 36px; line-height: 1.2; }
.t-to-lich-hy .lv-bloc__msg { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--red-deep); }
.t-to-lich-hy .lv-bloc__box { display: grid; grid-template-columns: 1.3fr 1fr; margin-top: 18px; border: 1.5px solid var(--red); text-align: left; }
.t-to-lich-hy .lv-bloc__who { padding: 10px 12px; border-right: 1.5px solid var(--red); }
.t-to-lich-hy .lv-bloc__who .lv-caps { font-size: 12px; color: var(--red); }
.t-to-lich-hy .lv-bloc__who p + p { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--soft); }
.t-to-lich-hy .lv-bloc__who b { font-size: 20px; font-weight: 400; color: var(--red); }
.t-to-lich-hy .lv-bloc__lunar { display: grid; place-content: center; text-align: center; padding: 8px; color: var(--red-deep); }
.t-to-lich-hy .lv-bloc__lunar b { font: 400 40px/1 var(--f-big); color: var(--red); }
.t-to-lich-hy .lv-bloc__lunar .lv-caps { font-size: 13px; }
.t-to-lich-hy .lv-cal__grid { margin-top: 18px; }
.t-to-lich-hy .lv-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-to-lich-hy .lv-cal__row span { position: relative; display: grid; place-items: center; height: 34px; font-size: 14px; z-index: 0; }
.t-to-lich-hy .lv-cal__row--head span { font-weight: 800; font-size: 12px; color: var(--red); }
.t-to-lich-hy .lv-cal__row span.is-sun { color: var(--red); }
.t-to-lich-hy .lv-cal__row span.is-day { color: var(--paper); font-weight: 800; }
.t-to-lich-hy .lv-cal__row span.is-day::before { content: ""; position: absolute; z-index: -1; width: 30px; height: 30px; border-radius: 50%; background: var(--red); }

/* ---------- 4. báo tin ---------- */
.t-to-lich-hy .lv-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.t-to-lich-hy .lv-fam > div { display: grid; justify-items: center; align-content: start; }
.t-to-lich-hy .lv-fam__side { margin-bottom: 4px; font: 400 18px var(--f-script); color: var(--red); }
.t-to-lich-hy .lv-fam__addr { margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--soft); }
.t-to-lich-hy .lv-news__lead { margin-top: 18px; }
.t-to-lich-hy .lv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 14px; }
.t-to-lich-hy .lv-pair figure { position: relative; aspect-ratio: 3 / 4; }
.t-to-lich-hy .lv-news__name { font-size: 26px; text-wrap: balance; }
.t-to-lich-hy .lv-news__role { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0; font-size: 13px; color: var(--soft); }
.t-to-lich-hy .lv-news__role svg { width: 36px; height: 26px; color: var(--ink); }
.t-to-lich-hy .lv-news__at { margin-top: 14px; }

/* ---------- đếm ngược ---------- */
.t-to-lich-hy .lv-cd__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.t-to-lich-hy .lv-cd__row p { display: grid; padding: 10px 0 8px; background: var(--paper); border-top: 6px solid var(--red); }
.t-to-lich-hy .lv-cd__row b { font: 400 32px/1.1 var(--f-big); color: var(--red); }
.t-to-lich-hy .lv-cd__row span { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--soft); }

/* ---------- 5. đường đến ---------- */
.t-to-lich-hy .lv-way__venue { margin: 4px 0 6px; font-size: 34px; }
.t-to-lich-hy .lv-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.t-to-lich-hy .lv-btn {
  display: inline-block; padding: 12px 22px; border: 2px solid var(--red); border-radius: 0; background: var(--red); color: var(--paper);
  font: 700 14px var(--f-serif); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer;
}
.t-to-lich-hy .lv-btn--ghost { background: transparent; color: var(--red); }

/* sự kiện thêm (gói 2) */
.t-to-lich-hy .thiepmai-events { padding: 0 18px 10px; }
.t-to-lich-hy .thiepmai-event { background: var(--paper); color: var(--ink); }

/* ---------- 6. lịch trình ---------- */
.t-to-lich-hy .lv-program__list { margin: 12px 0 0; padding: 0; list-style: none; text-align: left; }
.t-to-lich-hy .lv-program__list li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 14px; }
.t-to-lich-hy .lv-program__list b { font: 400 18px var(--f-big); color: var(--red); }
.t-to-lich-hy .lv-program__list i { flex: 1; border-bottom: 2px dotted rgba(122, 28, 34, .4); }
.t-to-lich-hy .lv-program__list span { max-width: 62%; text-align: right; font-weight: 600; }
.t-to-lich-hy .lv-program__list small { display: block; font-weight: 400; font-size: 12px; color: var(--soft); }

/* ---------- câu thơ ---------- */
.t-to-lich-hy .lv-quote p { font: 700 22px/1.5 var(--f-hand); }

/* ---------- 7. album ---------- */
.t-to-lich-hy .lv-album__grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.t-to-lich-hy .lv-album__pic { width: calc(50% - 5px); box-sizing: border-box; padding: 6px; background: var(--paper); box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .45); }
.t-to-lich-hy .lv-album__in { position: relative; aspect-ratio: 3 / 4; }
.t-to-lich-hy .lv-album__pic--wide, .t-to-lich-hy .lv-album__pic--full { width: 100%; }
.t-to-lich-hy .lv-album__pic--wide .lv-album__in, .t-to-lich-hy .lv-album__pic--full .lv-album__in { aspect-ratio: 3 / 2; }

/* ---------- 8. xác nhận ---------- */
.t-to-lich-hy .lv-rsvp__lead { margin-top: 8px; }
.t-to-lich-hy .lv-form { display: grid; gap: 4px; margin-top: 10px; }
.t-to-lich-hy .lv-field {
  width: 100%; box-sizing: border-box; padding: 12px 2px; border: 0; border-bottom: 1.5px dashed rgba(122, 28, 34, .5); border-radius: 0;
  background: transparent; font: 400 15px var(--f-serif); color: var(--ink); outline: none; appearance: none;
}
.t-to-lich-hy .lv-field:focus { border-bottom: 1.5px solid var(--red); }
.t-to-lich-hy .lv-form .lv-btn { margin-top: 16px; justify-self: center; }
.t-to-lich-hy .lv-form__msg { min-height: 1.2em; font-size: 13px; color: var(--red); }
.t-to-lich-hy .lv-gift { margin-top: 16px; }

/* ---------- 9. kết ---------- */
.t-to-lich-hy .lv-end { margin-top: 10px; padding: 36px 22px 80px; background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4 .35' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); color: var(--paper); text-align: center; overflow: hidden; }
.t-to-lich-hy .lv-end__photo { position: relative; width: 280px; height: 360px; margin: 0 auto; border: 6px solid var(--paper); border-radius: 140px 140px 0 0; overflow: hidden; }
.t-to-lich-hy .lv-end__big { margin-top: 18px; font-size: 44px; color: var(--yellow); }
.t-to-lich-hy .lv-end__text { margin-top: 6px; font-size: 15px; line-height: 1.6; }

/* ---------- màn mở thiệp ---------- */
.t-to-lich-hy .thiepmai-gate__door { background: var(--red); }
.t-to-lich-hy .thiepmai-gate__label { font-family: var(--f-serif); font-weight: 700; }
.t-to-lich-hy .thiepmai-gate__guest { font: 700 32px/1.3 var(--f-serif); }
.t-to-lich-hy .thiepmai-gate__names { font: 400 34px/1.15 var(--f-big); text-transform: uppercase; color: var(--yellow); text-wrap: balance; }
.t-to-lich-hy .thiepmai-gate__date { font-family: var(--f-serif); font-weight: 700; }
.t-to-lich-hy .thiepmai-gate__open { background: var(--yellow); color: var(--red-deep); font-family: var(--f-serif); font-weight: 800; text-transform: uppercase; }
