/* Mẫu Nhà Có Hỷ — phong bì đỏ #7a1c22, chiếu cói (sọc CSS) sau ảnh + giấy đỏ 囍, cành mai nét kem, thẻ kem #f3e6cc viền hoa văn đỏ,
   nhãn ruy băng đỏ, khung mây vàng, dải dạ quang vàng #f4d35e, chữ xanh két #1f5f5b. Chữ biển hiệu Big Shoulders Display, chữ tay Sansita Swashed,
   thân Fraunces (bộ font retro), chữ máy Cousine. Góc vuông. */

.t-nha-co-hy {
  --red: #7a1c22;
  --red-deep: #5a1418;
  --teal: #1f5f5b;
  --yellow: #f4d35e;
  --cream: #f3e6cc;
  --paper: #e9dbbd;
  --ink: #33261f;
  --soft: #6a5546;
  --f-serif: "Fraunces", Georgia, serif;
  --f-script: "Sansita Swashed", cursive;
  --f-sign: "Big Shoulders Display", sans-serif;
  --gate-bg: #7a1c22;
  --gate-ink: #fbf1dc;
  color: var(--ink);
  font-family: var(--f-serif);
}
.t-nha-co-hy .thiepmai-frame {
  background-color: var(--paper);
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .14 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.t-nha-co-hy .thiepmai-frame > section { position: relative; }
.t-nha-co-hy p, .t-nha-co-hy h1, .t-nha-co-hy h2, .t-nha-co-hy figure { margin: 0; }
.t-nha-co-hy .ph { inset: 0; }

/* chữ dùng chung */
.t-nha-co-hy .nh-sec { padding: 30px 22px; text-align: center; }
.t-nha-co-hy .nh-script { font-family: var(--f-script); font-weight: 700; }
.t-nha-co-hy .nh-sign { font-family: var(--f-sign); font-weight: 800; text-transform: uppercase; line-height: 1.05; color: var(--red); letter-spacing: .01em; }
.t-nha-co-hy .nh-caps { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.t-nha-co-hy .nh-teal { color: var(--teal); }
.t-nha-co-hy .nh-type { font-family: "Cousine", monospace; font-size: 12px; line-height: 1.4; }
.t-nha-co-hy .nh-small { font-size: 14px; line-height: 1.55; color: var(--soft); }
.t-nha-co-hy .nh-lunar { margin-top: 4px; font-size: 13px; color: var(--soft); }
.t-nha-co-hy .nh-h2 { font-size: 32px; line-height: 1.3; color: var(--red); }
.t-nha-co-hy .nh-hl {
  display: inline-block; margin-top: 14px; padding: 3px 14px; font-weight: 700; font-size: 16px; color: var(--ink);
  background: linear-gradient(100deg, transparent 0 2%, var(--yellow) 3% 96%, transparent 97%); rotate: -1deg;
}
.t-nha-co-hy .nh-dots { margin: 2px auto 12px; max-width: 280px; padding-bottom: 4px; border-bottom: 1.5px dotted var(--soft); font: 700 20px/1.4 var(--f-script); }
.t-nha-co-hy .nh-hoa { position: absolute; width: 120px; height: 120px; pointer-events: none; z-index: 2; color: #f6ecd6; opacity: .85; }
.t-nha-co-hy .nh-hoa--tr { top: 6px; right: 6px; rotate: 180deg; }
.t-nha-co-hy .nh-hoa--bl { bottom: 6px; left: 6px; }
.t-nha-co-hy .nh-cover .nh-hoa--bl { width: 96px; height: 96px; bottom: 2px; left: 2px; } /* bìa: nằm dưới thẻ Kính mời */
.t-nha-co-hy .nh-hoa--card { top: 4px; right: 4px; width: 96px; height: 96px; rotate: 180deg; color: var(--red); opacity: .6; }
/* chiếu cói: sọc ngang đan sọc dọc */
.t-nha-co-hy .nh-mat {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(120, 80, 30, .16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, #d8b878 0 3px, #c9a564 3px 4px, #dcc085 4px 7px);
  box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .55);
}
.t-nha-co-hy .nh-paper { position: absolute; display: grid; place-items: center; width: 92px; height: 92px; background: var(--red); rotate: 45deg; box-shadow: 0 4px 8px rgba(0, 0, 0, .25); }
.t-nha-co-hy .nh-paper i { rotate: -45deg; font: normal 58px/1 "Thiepmai Hy", serif; color: #f2c64a; }
/* thẻ kem viền hoa văn đỏ */
.t-nha-co-hy .nh-card {
  margin: 22px 14px; padding: 12px; text-align: center; position: relative;
  background:
    radial-gradient(circle at 25% 25%, #f3d39a 1.5px, transparent 2px) 0 0 / 9px 9px,
    radial-gradient(circle at 75% 75%, #4e1014 1.8px, transparent 2.2px) 0 0 / 9px 9px,
    radial-gradient(circle at 75% 25%, #b5463a 1.2px, transparent 1.6px) 0 0 / 9px 9px,
    var(--red);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .55);
}
.t-nha-co-hy .nh-in { position: relative; padding: 26px 18px 28px; background: var(--cream); }

/* ---------- 1. phong bì ---------- */
.t-nha-co-hy .nh-cover { padding: 26px 22px 34px; 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: #fbf1dc; overflow: hidden; }
.t-nha-co-hy .nh-cover__couplet { opacity: .75; }
.t-nha-co-hy .nh-cover__head { margin-top: 14px; text-align: center; }
.t-nha-co-hy .nh-cover__kicker { font: 700 22px var(--f-script); }
.t-nha-co-hy .nh-cover__title { font-size: 64px; color: #fbf1dc; text-shadow: 3px 3px 0 var(--red-deep); }
.t-nha-co-hy .nh-tag { display: inline-block; margin-top: 12px; padding: 3px 16px; background: #fbf1dc; color: var(--red); border: 2px solid var(--teal); border-radius: 8px; box-shadow: inset 0 0 0 2px #fbf1dc, inset 0 0 0 3px var(--teal); font: 800 22px var(--f-sign); text-transform: uppercase; }
.t-nha-co-hy .nh-cover__names { display: grid; margin-top: 10px; font-size: 46px; color: #fbf1dc; text-shadow: 2px 2px 0 var(--red-deep); }
.t-nha-co-hy .nh-cover__names span { font: 700 26px/1.2 var(--f-script); text-transform: none; }
.t-nha-co-hy .nh-cover__date { margin-top: 6px; font-weight: 700; font-size: 17px; letter-spacing: .12em; }
.t-nha-co-hy .nh-cover__mat { width: 300px; height: 360px; margin: 24px auto 0; padding: 18px; box-sizing: border-box; rotate: -2deg; }
.t-nha-co-hy .nh-cover__mat .nh-paper { top: 6px; right: 14px; }
.t-nha-co-hy .nh-cover__photo { position: relative; z-index: 1; height: 100%; margin: 40px 26px 0 0; height: calc(100% - 40px); border: 4px solid #fbf1dc; }
.t-nha-co-hy .nh-label { margin: 22px auto 0; max-width: 310px; padding: 12px 18px 14px; background: #fff; border-radius: 14px; color: var(--ink); text-align: left; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); rotate: 1.5deg; position: relative; z-index: 3; }
.t-nha-co-hy .nh-label .nh-script { font-size: 18px; color: var(--soft); }
.t-nha-co-hy .nh-label__guest { margin-top: 4px; padding-bottom: 6px; border-bottom: 1.5px dashed var(--red); font: 700 24px/1.3 var(--f-script); color: var(--red); }

/* ---------- 2. tiệc ---------- */
.t-nha-co-hy .nh-hyrow { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--red); }
.t-nha-co-hy .nh-hyrow svg { width: 52px; height: 32px; }
.t-nha-co-hy .nh-hyrow svg.flip { scale: -1 1; }
.t-nha-co-hy .nh-hyrow i { font: normal 60px/1 "Thiepmai Hy", serif; }
.t-nha-co-hy .nh-party__kinh { margin-top: 10px; font-size: 22px; color: var(--ink); }
.t-nha-co-hy .nh-party__lead { font-size: 13px; line-height: 1.55; }
.t-nha-co-hy .nh-party__venue { margin: 10px 0 4px; font-size: 54px; }
.t-nha-co-hy .nh-bigdate { margin-top: 6px; font-size: 52px; }
.t-nha-co-hy .nh-party__mat { width: 240px; height: 280px; margin: 20px auto 0; padding: 14px; box-sizing: border-box; rotate: 2deg; }
.t-nha-co-hy .nh-party__mat figure { position: relative; height: 100%; border: 3px solid #fbf1dc; }
.t-nha-co-hy .nh-party__end { margin-top: 18px; }
.t-nha-co-hy .nh-party__bye { margin-top: 4px; font-size: 26px; }

/* ---------- 3. báo tin ---------- */
.t-nha-co-hy .nh-fam { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.t-nha-co-hy .nh-fam > div { display: grid; justify-items: center; align-content: start; }
.t-nha-co-hy .nh-fam__addr { margin-top: 4px; font-size: 12px; font-weight: 400; color: var(--soft); }
/* nhãn ruy băng đỏ, hai đầu khía */
.t-nha-co-hy .nh-ribbon {
  display: inline-block; margin-bottom: 6px; padding: 4px 18px; background: var(--red); color: #fbf1dc;
  font: 800 18px/1.2 var(--f-sign); text-transform: uppercase; letter-spacing: .04em; rotate: -3deg;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%, 8% 50%);
}
.t-nha-co-hy .nh-ribbon--big { font-size: 26px; padding: 6px 28px; }
.t-nha-co-hy .nh-box { position: relative; margin: 26px 10px 0; padding: 18px 10px; border: 2px solid var(--red); outline: 1px solid var(--red); outline-offset: 3px; }
.t-nha-co-hy .nh-box__title { margin: 4px 0; font-size: 40px; }
.t-nha-co-hy .nh-may { position: absolute; width: 60px; height: 36px; }
.t-nha-co-hy .nh-may--tl { top: -22px; left: -26px; }
.t-nha-co-hy .nh-may--br { bottom: -20px; right: -24px; scale: -1 1; }
.t-nha-co-hy .nh-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 16px; }
.t-nha-co-hy .nh-pair figure { aspect-ratio: 3 / 4; padding: 10px; }
.t-nha-co-hy .nh-pair .ph { inset: 10px; border: 3px solid #fbf1dc; }
.t-nha-co-hy .nh-news__name { font-size: 36px; text-wrap: balance; }
.t-nha-co-hy .nh-news__role { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0; font-size: 18px; color: var(--teal); }
.t-nha-co-hy .nh-news__role svg { width: 40px; height: 28px; color: #c9962b; }
.t-nha-co-hy .nh-news__at { margin-top: 16px; font-size: 14px; }
.t-nha-co-hy .nh-news__date { margin-top: 8px; font-size: 34px; text-wrap: balance; }

/* ---------- 4. lịch ---------- */
.t-nha-co-hy .nh-cal__month { margin-top: 2px; font-size: 15px; }
.t-nha-co-hy .nh-cal__grid { margin-top: 12px; }
.t-nha-co-hy .nh-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-nha-co-hy .nh-cal__row span { position: relative; display: grid; place-items: center; height: 40px; font-size: 15px; z-index: 0; }
.t-nha-co-hy .nh-cal__row--head span { height: 32px; font: 800 17px var(--f-sign); color: var(--teal); }
.t-nha-co-hy .nh-cal__row span.is-sun { color: var(--red); }
.t-nha-co-hy .nh-cal__row span.is-day { color: #fbf1dc; font-weight: 700; }
.t-nha-co-hy .nh-cal__row span.is-day::before { content: ""; position: absolute; z-index: -1; width: 34px; height: 34px; background: var(--red); rotate: 45deg; }

/* ---------- đếm ngược ---------- */
.t-nha-co-hy .nh-cd__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.t-nha-co-hy .nh-cd__row p { display: grid; padding: 10px 0 8px; background: var(--teal); color: #fbf1dc; box-shadow: 3px 3px 0 var(--red); }
.t-nha-co-hy .nh-cd__row b { font: 800 36px/1.1 var(--f-sign); }
.t-nha-co-hy .nh-cd__row span { font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* ---------- 5. đường đến ---------- */
.t-nha-co-hy .nh-way__venue { margin: 4px 0 6px; font-size: 40px; }
.t-nha-co-hy .nh-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.t-nha-co-hy .nh-btn {
  display: inline-block; padding: 11px 22px; border: 2px solid var(--red); border-radius: 0; background: var(--red); color: #fbf1dc;
  font: 800 19px var(--f-sign); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer;
}
.t-nha-co-hy .nh-btn--ghost { background: transparent; color: var(--red); }

/* sự kiện thêm (gói 2) */
.t-nha-co-hy .thiepmai-events { padding: 0 16px 10px; }
.t-nha-co-hy .thiepmai-event { background: var(--cream); color: var(--ink); }

/* ---------- 6. lịch trình ---------- */
.t-nha-co-hy .nh-program__list { margin: 12px 0 0; padding: 0; list-style: none; text-align: left; }
.t-nha-co-hy .nh-program__list li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 15px; }
.t-nha-co-hy .nh-program__list b { font: 800 20px var(--f-sign); color: var(--red); }
.t-nha-co-hy .nh-program__list i { flex: 1; border-bottom: 2px dotted rgba(31, 95, 91, .45); }
.t-nha-co-hy .nh-program__list span { max-width: 62%; text-align: right; font-weight: 600; }
.t-nha-co-hy .nh-program__list small { display: block; font-weight: 400; font-size: 12px; color: var(--soft); }

/* ---------- câu thơ ---------- */
.t-nha-co-hy .nh-quote p { font: 700 20px/1.6 var(--f-script); color: var(--teal); }

/* ---------- 7. album ---------- */
.t-nha-co-hy .nh-album__grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.t-nha-co-hy .nh-album__pic { width: calc(50% - 6px); box-sizing: border-box; padding: 6px; background: #fbf1dc; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .5); }
.t-nha-co-hy .nh-album__pic--a { rotate: -1.5deg; }
.t-nha-co-hy .nh-album__pic--b { rotate: 1.5deg; }
.t-nha-co-hy .nh-album__in { position: relative; aspect-ratio: 3 / 4; }
.t-nha-co-hy .nh-album__pic--wide, .t-nha-co-hy .nh-album__pic--full { width: 100%; }
.t-nha-co-hy .nh-album__pic--wide .nh-album__in, .t-nha-co-hy .nh-album__pic--full .nh-album__in { aspect-ratio: 3 / 2; }

/* ---------- 8. xác nhận ---------- */
.t-nha-co-hy .nh-rsvp__lead { margin-top: 8px; }
.t-nha-co-hy .nh-form { display: grid; gap: 4px; margin-top: 10px; }
.t-nha-co-hy .nh-field {
  width: 100%; box-sizing: border-box; padding: 12px 2px; border: 0; border-bottom: 1.5px dashed var(--soft); border-radius: 0;
  background: transparent; font: 400 15px var(--f-serif); color: var(--ink); outline: none; appearance: none;
}
.t-nha-co-hy .nh-field:focus { border-bottom: 1.5px solid var(--red); }
.t-nha-co-hy .nh-form .nh-btn { margin-top: 16px; justify-self: center; }
.t-nha-co-hy .nh-form__msg { min-height: 1.2em; font-size: 13px; color: var(--teal); }
.t-nha-co-hy .nh-gift { margin-top: 16px; }

/* ---------- 9. kết ---------- */
.t-nha-co-hy .nh-end { padding: 40px 22px 120px; 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: #fbf1dc; text-align: center; overflow: hidden; }
.t-nha-co-hy .nh-end__mat { width: 290px; height: 360px; margin: 0 auto; padding: 18px; box-sizing: border-box; rotate: 2deg; }
.t-nha-co-hy .nh-end__mat .nh-paper { top: 8px; left: 14px; }
.t-nha-co-hy .nh-end__photo { position: relative; z-index: 1; height: calc(100% - 40px); margin: 40px 0 0 26px; border: 4px solid #fbf1dc; }
.t-nha-co-hy .nh-end__big { margin-top: 22px; font-size: 64px; color: #fbf1dc; text-shadow: 3px 3px 0 var(--red-deep); }
.t-nha-co-hy .nh-end__text { margin: 6px 10px 0; font-size: 15px; line-height: 1.6; }

/* ---------- màn mở thiệp ---------- */
.t-nha-co-hy .thiepmai-gate__door { background: var(--red); }
.t-nha-co-hy .thiepmai-gate__label { font-family: var(--f-serif); font-weight: 700; }
.t-nha-co-hy .thiepmai-gate__guest { font: 700 32px/1.3 var(--f-serif); }
.t-nha-co-hy .thiepmai-gate__names { font: 800 44px/1.1 var(--f-sign); text-transform: uppercase; text-wrap: balance; text-shadow: 2px 2px 0 var(--red-deep); }
.t-nha-co-hy .thiepmai-gate__date { font-family: var(--f-serif); font-weight: 700; }
.t-nha-co-hy .thiepmai-gate__open { background: var(--yellow); color: var(--red-deep); font-family: var(--f-sign); font-weight: 400; font-size: 22px; text-transform: uppercase; }
