/* template74 "Trầu Cau / Mâm Quả" — style.css: bảng màu, chữ, nút, đèn lồng treo, bìa mành tre, hero
   nền lá trầu, thiệp mời hai tráp, cô dâu chú rể, các nghi lễ, và tô lại module dùng chung (dock,
   nút nhạc, menu). Skin cho các component dùng chung (lịch, chuyện tình, album…) ở sections.css.

   Bảng màu — xanh lá trầu là nền đậm (hero, chân trang, ngoài cột), kem lụa là nền đọc, đỏ son cho
   nút và điểm nhấn, vàng đồng ở viền và đèn lồng:
     lá trầu đậm #1F4330 — nền hero/chân trang     lá trầu #2E5E3E — tiêu đề (8.3:1 trên kem)
     ngoài cột   #173324 — nền màn rộng
     kem lụa     #FBF6EA — nền cột nội dung        xanh nhạt #EEF1E2 — dải xen kẽ
     đỏ son      #B5281F — nút (chữ trắng 6.4:1)   đỏ đậm #8E1D16 — hover
     vàng đồng   #C99A3E — viền, nét                vàng nhạt #EBD292 — chữ trên nền xanh (9:1)
     mực         #2B2A22 — chữ thân bài (13:1)      mực nhạt #5B6150 — chữ phụ (5.9:1)
   Khác template70–73: nền chủ đạo xanh lá (không đỏ, không trắng ngà), khung ảnh bát giác,
   đèn lồng treo đung đưa thay cho ấn son / khung vòm.
   Hướng chữ: dùng thuộc tính logic (inline-start/end) để dir="rtl" tự lật. */

:root {
  --t74-forest: #1F4330;
  --t74-desk: #173324;
  --t74-green: #2E5E3E;
  --t74-cream: #FBF6EA;
  --t74-tint: #EEF1E2;
  --t74-red: #B5281F;
  --t74-red-deep: #8E1D16;
  --t74-gold: #C99A3E;
  --t74-gold-soft: #EBD292;
  --t74-ink: #2B2A22;
  --t74-muted: #5B6150;
  --t74-line: rgba(46, 94, 62, .26);
  --t74-octagon: polygon(15% 0, 85% 0, 100% 11%, 100% 89%, 85% 100%, 15% 100%, 0 89%, 0 11%);
  --t74-serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --t74-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Nền trang & cột nội dung ---------- */
body {
  margin: 0;
  font-family: var(--t74-sans);
  font-weight: 300;
  color: var(--t74-ink);
  background:
    radial-gradient(60% 50% at 50% 0, rgba(235, 210, 146, .08), transparent 70%),
    var(--t74-desk);
  -webkit-font-smoothing: antialiased;
}
html.t74-cover-lock,
html.t74-cover-lock body { overflow: hidden; }

.t74-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.t74 .wrapper {
  position: relative;
  width: 100%;
  max-width: 575px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--t74-cream);
  box-shadow: 0 0 0 1px rgba(201, 154, 62, .35), 0 24px 70px rgba(0, 0, 0, .35);
}
.t74 img { max-width: 100%; }
.t74, .t74-cover { font-variant-numeric: lining-nums; }
.t74-tint { background: var(--t74-tint); }

/* ---------- Chữ ---------- */
.t74 .section-title,
.t74 h1, .t74 h2, .t74 h3, .t74 h4 {
  font-family: var(--t74-serif);
  font-weight: 500;
  line-height: 1.2;
}
.t74 .section-title {
  margin-bottom: .1rem;
  font-size: clamp(1.9rem, 7.6vw, 2.35rem);
  text-align: center;
  color: var(--t74-green);
}
.t74 .section-sub-title {
  max-width: 30rem;
  margin: 0 auto 1.8rem;
  font-family: var(--t74-sans);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.75;
  text-align: center;
  color: var(--t74-muted);
}
.t74-kicker {
  margin: 0 0 .5rem;
  font-family: var(--t74-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--t74-red);
}
.t74-kicker--light { color: var(--t74-gold-soft); }
.t74-amp {
  display: block;
  font-family: var(--t74-serif);
  font-style: italic;
  font-weight: 400;
  font-size: .5em;
  line-height: 1.4;
  color: var(--t74-gold);
}
.t74-divider { display: block; width: 200px; height: 25px; margin: .45rem auto 1.1rem; color: var(--t74-gold); }

/* ---------- Nút: góc vát nhẹ (bo 6px), chữ in hoa giãn — khác pill của t73 ---------- */
.t74-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .6rem 1.7rem;
  border: 1px solid var(--t74-red);
  border-radius: 6px;
  font-family: var(--t74-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.t74-btn:focus-visible { outline: 2px solid var(--t74-gold); outline-offset: 3px; }
.t74-btn--red { color: #fff; background: var(--t74-red); box-shadow: inset 0 0 0 2px rgba(235, 210, 146, .35); }
.t74-btn--red:hover { color: #fff; background: var(--t74-red-deep); border-color: var(--t74-red-deep); }
.t74-btn--line { color: var(--t74-red); background: transparent; }
.t74-btn--line:hover { color: #fff; background: var(--t74-red); }

/* ---------- Đèn lồng treo: dây + đèn, đung đưa quanh móc ----------
   .t74-hang = một chiếc đèn; --len độ dài dây phía trên (px), --i lệch pha đung đưa / thứ tự thắp.
   Dây vẽ bằng ::before để dài ngắn tuỳ chỗ mà không phải vẽ lại SVG. */
.t74-hang {
  --w: 34px;
  position: relative;
  display: block;
  width: var(--w);
  padding-top: var(--len, 0px);
  transform-origin: 50% 0;
  animation: t74-swing 3.6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -1.2s);
}
.t74-hang::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: var(--len, 0px);
  background: #B8862F;
}
.t74-hang svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 60 / 124;
  filter: drop-shadow(0 0 10px rgba(255, 186, 84, .45));
}
.t74-hang--big { --w: 46px; }
@keyframes t74-swing {
  from { transform: rotate(-3.5deg); }
  to { transform: rotate(3.5deg); }
}

/* ---------- Bìa mành tre "Mở thiệp" ---------- */
.t74-cover {
  position: fixed;
  inset: 0;
  z-index: 100001;              /* trên nút nhạc (99999) và badge Wedding Plan (99998) */
  overflow: hidden;
  text-align: center;
  pointer-events: auto;
}
.t74-cover[hidden] { display: none; }
.t74-cover__blind {
  position: absolute;
  inset: 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px 46px;
  overflow: hidden;
  /* nan mành: sọc ngang mảnh trên nền lá trầu, hai sợi dây buộc dọc hai bên */
  background:
    linear-gradient(90deg, transparent calc(18% - 1px), rgba(235, 210, 146, .28) 18%, transparent calc(18% + 1px),
      transparent calc(82% - 1px), rgba(235, 210, 146, .28) 82%, transparent calc(82% + 1px)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 6px, rgba(0, 0, 0, .09) 6px 7px),
    radial-gradient(80% 50% at 50% 45%, #2B5A3C, var(--t74-forest) 70%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform 1.15s cubic-bezier(.65, 0, .3, 1);
}
.t74-cover__lamps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(28px, 12vw, 70px);
  width: 100%;
  min-height: 92px;
}
/* Đèn trên bìa chưa thắp: tối, không quầng; .is-opening thắp lần lượt theo --i. */
.t74-cover .t74-hang { --t74-lit: 0; --t74-delay: calc(var(--i) * .28s); }
.t74-cover .t74-hang svg {
  filter: brightness(.62) saturate(.75);
  transition: filter .6s ease var(--t74-delay);
}
.t74-cover.is-opening .t74-hang { --t74-lit: 1; }
.t74-cover.is-opening .t74-hang svg { filter: brightness(1.05) saturate(1) drop-shadow(0 0 16px rgba(255, 186, 84, .8)); }

.t74-cover__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}
.t74-cover__kicker { color: var(--t74-gold-soft); }
.t74-cover__tray {
  width: min(52vw, 210px);
  height: auto;
  margin: 6px 0 12px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3));
}
.t74-cover__names {
  margin: 0 0 .3rem;
  font-family: var(--t74-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 10vw, 2.7rem);
  line-height: 1.12;
  color: var(--t74-gold-soft);
  overflow-wrap: anywhere;
}
.t74-cover__names > span:not(.t74-amp) { display: block; }
.t74-cover__names .t74-amp { font-size: .45em; color: var(--t74-gold); }
.t74-cover__date {
  margin: .3rem 0 1.4rem;
  font-family: var(--t74-serif);
  font-size: 1.1rem;
  letter-spacing: .26em;
  color: rgba(251, 246, 234, .8);
}
.t74-cover__open { animation: t74-glow 2.6s ease-in-out infinite; }
@keyframes t74-glow {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(235, 210, 146, .35), 0 0 0 0 rgba(235, 210, 146, .4); }
  50% { box-shadow: inset 0 0 0 2px rgba(235, 210, 146, .35), 0 0 0 10px rgba(235, 210, 146, 0); }
}
/* Thanh tre ở mép dưới mành: đốt tre, hai đầu bo. */
.t74-cover__rod {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 14px;
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(90, 60, 20, .45) 58px 60px),
    linear-gradient(180deg, #E8C877, #B98A35 60%, #8A6424);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}
.t74-cover__content > * { transition: opacity .45s ease, transform .6s ease; }
.t74-cover.is-opening .t74-cover__open { animation: none; }
.t74-cover.is-opening .t74-cover__open,
.t74-cover.is-opening .t74-cover__date { opacity: 0; transform: translateY(8px); }
.t74-cover.is-leaving .t74-cover__blind { transform: translateY(calc(-100% + 0px)); }

/* ---------- Nút menu (mở offcanvas components/menu) ---------- */
.t74-menu-btn {
  position: fixed;
  top: 14px;
  right: max(18px, calc(50% - 287px + 20px));
  z-index: 120;
  display: grid;
  align-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--t74-gold);
  border-radius: 8px;
  background: rgba(31, 67, 48, .9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.t74-menu-btn.is-visible { opacity: 1; visibility: visible; }
.t74[dir="rtl"] .t74-menu-btn { right: auto; left: max(18px, calc(50% - 287px + 20px)); }
.t74-menu-btn span { display: block; height: 1.5px; background: var(--t74-gold-soft); border-radius: 2px; }
.t74-menu-btn:focus-visible { outline: 2px solid var(--t74-gold); outline-offset: 2px; }

/* ---------- Hero: nền lá trầu, dây đèn lồng ---------- */
.t74-hero {
  position: relative;
  padding: 150px 26px 64px;
  text-align: center;
  color: var(--t74-cream);
  background:
    radial-gradient(70% 38% at 50% 34%, rgba(235, 210, 146, .16), transparent 70%),
    linear-gradient(180deg, #183626, var(--t74-forest) 40%, #24503A);
}
/* Mép dưới hero: răng cưa nhỏ màu kem như mép khăn phủ mâm. */
.t74-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 12px;
  background: radial-gradient(circle at 10px 12px, var(--t74-cream) 8px, transparent 8.5px) 0 0 / 20px 12px repeat-x;
}
.t74-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}
.t74-garland__rope { position: absolute; top: 0; left: -2%; width: 104%; height: 40px; }
.t74-garland .t74-hang {
  position: absolute;
  top: 0;
  left: var(--x);
  margin-left: calc(var(--w) / -2);
}

.t74-frame {
  position: relative;
  width: min(78%, 320px);
  margin: 14px auto 0;
  padding-bottom: 34px;
}
/* Khung bát giác: lớp vàng đồng ngoài, lớp kem mảnh trong, ảnh trong cùng — như nắp hộp quả. */
.t74-frame__gold {
  padding: 5px;
  clip-path: var(--t74-octagon);
  background: linear-gradient(160deg, #F0D48A, #B8862F 55%, #E7C877);
}
.t74-frame__gold img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  padding: 3px;
  clip-path: var(--t74-octagon);
  background: var(--t74-cream);   /* chỉ kem mảnh giữa viền đồng và ảnh */
}
.t74-frame__sprig {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 168px;
  height: 90px;
  margin-left: -84px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3));
}
.t74-hero__names {
  margin: 14px 0 22px;
  font-family: var(--t74-serif) !important;
  font-style: italic;
  font-weight: 500 !important;
  font-size: clamp(2.5rem, 12vw, 3.3rem);
  line-height: 1.08;
  color: var(--t74-gold-soft);
  overflow-wrap: anywhere;
}
.t74-hero__names > span:not(.t74-amp) { display: block; }
.t74-hero__names .t74-amp { font-size: .42em; margin: .2em 0; }

/* Ngày cưới: ô son vuông như con dấu, thứ và giờ hai bên. */
.t74-date {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  margin: 0 auto;
}
.t74-date__side {
  padding-block: 8px;
  border-block: 1px solid rgba(235, 210, 146, .45);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--t74-gold-soft);
}
.t74-date__side:empty { border-color: transparent; }
.t74-date__seal {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px solid var(--t74-gold-soft);
  border-radius: 8px;
  background: var(--t74-red);
  box-shadow: inset 0 0 0 4px var(--t74-red), inset 0 0 0 5px rgba(235, 210, 146, .6), 0 8px 18px rgba(0, 0, 0, .3);
  transform: rotate(-3deg);
}
.t74-date__seal b {
  display: block;
  margin-top: 6px;
  font-family: var(--t74-serif);
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.t74-date__seal small { margin-top: -10px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; color: var(--t74-gold-soft); }
.t74-lunar {
  margin: 16px 0 0;
  font-family: var(--t74-serif);
  font-size: 1.08rem;
  font-style: italic;
  color: rgba(251, 246, 234, .85);
}

/* Màn xuất hiện của hero — chạy khi bìa mở (.t74-is-open). Ẩn ban đầu chỉ khi bìa đang chờ
   (html.t74-cover-lock): JS hỏng hay edit mode thì hero vẫn hiện nguyên. */
html.t74-cover-lock .t74:not(.t74-is-open) .t74-rise { opacity: 0; transform: translateY(16px); }
.t74-is-open .t74-rise {
  animation: t74-rise .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.35s + var(--d, 0) * .12s);
}
@keyframes t74-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Thiệp mời: câu trầu cau, hai tráp ---------- */
.t74-invite { padding: 62px 20px 64px; text-align: center; }
.t74-proverb {
  max-width: 22rem;
  margin: 0 auto;
  font-family: var(--t74-serif);
  font-size: clamp(1.45rem, 6.2vw, 1.75rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--t74-green);
}
.t74-proverb::before { content: "\201C"; }
.t74-proverb::after { content: "\201D"; }
/* RTL: ngoặc kép kiểu Latin lật sai chiều trong đoạn Ả Rập / Ba Tư / Hebrew — bỏ, chữ nghiêng đã đủ. */
.t74[dir="rtl"] .t74-proverb::before,
.t74[dir="rtl"] .t74-proverb::after { content: none; }
.t74-families {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 1.4rem 0 1.2rem;
}
.t74-families--single { grid-template-columns: minmax(0, 260px); justify-content: center; }
/* Mỗi họ một tráp: nắp đỏ bo tròn hai đầu, thân kem viền xanh. */
.t74-family { display: flex; flex-direction: column; min-width: 0; }
.t74-family__title {
  position: relative;
  z-index: 1;
  margin: 0 6px -1px;
  padding: 9px 6px 8px;
  border-radius: 40px 40px 6px 6px;
  font-family: var(--t74-sans) !important;
  font-size: .72rem;
  font-weight: 600 !important;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--t74-gold-soft);
  background: linear-gradient(180deg, #C33428, var(--t74-red-deep));
  box-shadow: inset 0 -2px 0 var(--t74-gold);
}
.t74-family__body {
  flex: 1;
  padding: 14px 10px 14px;
  border: 1px solid var(--t74-line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
}
.t74-family__parent {
  margin: 0 0 .3rem;
  font-family: var(--t74-serif);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--t74-ink);
  overflow-wrap: anywhere;
}
.t74-family__parent small { font-family: var(--t74-sans); font-size: .78rem; font-weight: 400; color: var(--t74-muted); }
.t74-family__address { margin: .45rem 0 0; font-size: .8rem; line-height: 1.55; color: var(--t74-muted); overflow-wrap: anywhere; }
.t74-invite__announce {
  max-width: 21rem;
  margin: 0 auto 1.4rem;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--t74-ink);
}
.t74-invite__couple { margin: 1.4rem 0 1.6rem; }
.t74-invite__person { display: block; }
.t74-invite__person small {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t74-red);
}
.t74-invite__name {
  display: block;
  font-family: var(--t74-serif);
  font-size: clamp(2rem, 9.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--t74-green);
  overflow-wrap: anywhere;
}
.t74-invite__couple .t74-amp { font-size: 1.3rem; margin: .1rem 0 .4rem; }
.t74-invite .section-title { font-size: clamp(1.6rem, 6.6vw, 2rem); }
.t74-invite__body { margin: .8rem auto 1.3rem; max-width: 30rem; font-size: .96rem; line-height: 1.85; }
.t74-invite__honor {
  max-width: 24rem;
  margin: 0 auto 1.6rem;
  font-family: var(--t74-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--t74-red);
}

/* ---------- Cô dâu & chú rể: ảnh tròn viền đồng ---------- */
.t74-couple { padding: 64px 20px 56px; text-align: center; }
.t74-couple__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 8px; }
.t74-person { min-width: 0; }
.t74-portrait {
  position: relative;
  width: calc(100% - 12px);
  max-width: 200px;
  margin: 6px auto 30px;
}
.t74-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--t74-cream);
  box-shadow: 0 0 0 2px var(--t74-gold), 0 10px 24px rgba(31, 67, 48, .2);
}
.t74-portrait__sprig {
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: 104px;
  height: 56px;
  margin-left: -52px;
}
.t74-person__role {
  margin: 0;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t74-red);
}
.t74-person__name { margin: .15rem 0 .4rem; font-size: 1.75rem; font-style: italic; color: var(--t74-green); overflow-wrap: anywhere; }
.t74-person__intro { margin: 0; font-size: .88rem; line-height: 1.7; color: var(--t74-muted); }

/* ---------- Các nghi lễ: dãy mâm quả, thiệp treo dưới đèn lồng ---------- */
.t74-rites { padding: 54px 20px 36px; text-align: center; }
.t74-trays {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin: 0 auto 18px;
}
.t74-trays svg { width: 30%; max-width: 128px; height: auto; filter: drop-shadow(0 6px 8px rgba(31, 67, 48, .18)); }
.t74-trays .t74-trays__main { width: 38%; max-width: 160px; }
.t74-events { display: grid; gap: 6px; max-width: 440px; margin: 0 auto; }
.t74-event { position: relative; display: flex; flex-direction: column; align-items: center; }
.t74-event__lamp { z-index: 1; margin-bottom: -38px; }
.t74-event__card {
  width: 100%;
  padding: 44px 20px 22px;
  border: 1px solid var(--t74-line);
  border-top: 3px solid var(--t74-red);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 67, 48, .08);
}
.t74-event__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.t74-event__clock {
  padding: 4px 12px 3px;
  border-radius: 6px;
  font-family: var(--t74-serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  background: var(--t74-red);
}
.t74-event__date {
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-align: start;
  text-transform: uppercase;
  color: var(--t74-muted);
}
.t74-event__lunar { margin: .5rem 0 0; font-family: var(--t74-serif); font-size: 1rem; font-style: italic; color: var(--t74-green); }
.t74-event__name { margin: .6rem 0 .6rem; font-size: 1.5rem; color: var(--t74-ink); }
.t74-event__image {
  width: 100%;
  aspect-ratio: 16 / 8;
  margin-bottom: 12px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}
.t74-event__place { margin: 0 0 1rem; font-size: .9rem; line-height: 1.6; color: var(--t74-muted); }
.t74-event__place strong { display: block; font-weight: 600; color: var(--t74-ink); }
.t74-event__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.t74-event__actions .t74-btn { min-height: 40px; padding: .5rem .95rem; font-size: .7rem; letter-spacing: .06em; }

/* ---------- Module dùng chung: dock, nút nhạc, menu offcanvas ---------- */
#access-dock { font-family: var(--t74-sans); }
#access-dock .dock-items {
  border-color: rgba(201, 154, 62, .5);
  background: rgba(31, 67, 48, .95);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #access-dock .dock-items { background: rgba(31, 67, 48, .85); }
}
#access-dock .dock-link { color: var(--t74-gold-soft); }
#access-dock .dock-link:hover,
#access-dock .dock-link:focus-visible,
#access-dock .dock-link[aria-current] { color: #fff; }

body .player .playerIcon {
  border-color: var(--t74-gold);
  background-color: rgba(31, 67, 48, .92);
  color: var(--t74-gold-soft);
}
body .player.player--on .playerIcon {
  background-color: var(--t74-red);
  border-color: var(--t74-gold-soft);
  color: #fff;
}

.t74 .offcanvas-menu {
  max-width: 270px;
  color: var(--t74-cream);
  background: var(--t74-forest);
  border-inline-start: 3px solid var(--t74-red);
}
.t74 .offcanvas-menu .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.t74 .offcanvas-menu .nav-link {
  padding: .7rem .4rem;
  font-family: var(--t74-serif);
  font-size: 1.2rem;
  color: var(--t74-cream);
  border-bottom: 1px solid rgba(235, 210, 146, .25);
}
.t74 .offcanvas-menu .nav-link:hover { color: var(--t74-gold-soft); }

/* Chuyển động: người đã tắt thì đèn đứng yên, bìa chỉ mờ đi, hero hiện ngay. */
@media (prefers-reduced-motion: reduce) {
  .t74-hang { animation: none; }
  .t74-cover__open { animation: none; }
  .t74-cover__blind, .t74-cover .t74-hang svg { transition: none; }
  .t74-cover { transition: opacity .3s ease; }
  .t74-cover.is-leaving { opacity: 0; }
  .t74-cover.is-leaving .t74-cover__blind { transform: none; }
  .t74-is-open .t74-rise { animation: none; }
}

/* ---------- Màn rộng: cột thiệp giữa, đèn lồng treo hai bên ---------- */
.t74-side { display: none; }
@media (min-width: 1100px) {
  .t74-side {
    position: fixed;
    top: 0;
    z-index: 0;
    display: flex;
    align-items: flex-start;
    gap: 34px;
    pointer-events: none;
  }
  .t74-side .t74-hang { --w: 48px; }
  .t74-side .t74-hang--big { --w: 64px; }
  .t74-side--start { right: calc(50% + 287px + 50px); }
  .t74-side--end { left: calc(50% + 287px + 50px); flex-direction: row-reverse; }
  .t74 .wrapper { z-index: 1; }
}

@media (max-width: 374px) {
  .t74-hero { padding-inline: 18px; }
  .t74-date { gap: 8px; }
  .t74-date__seal { width: 80px; height: 80px; }
  .t74-date__seal b { font-size: 2.3rem; }
  .t74-families { grid-template-columns: 1fr; gap: 16px; }
  .t74-couple__grid { grid-template-columns: 1fr; }
}
