/* Mẫu Tối Giản Kem — giấy ngà xám nhạt, lá cỏ nét chì rất mờ, chữ hoa siêu mảnh kiểu tạp chí. Bố cục flow. */

.t-toi-gian {
  --paper: #ebe9e3;
  --paper-2: #e3e0d8;
  --ink: #33322e;
  --ink-soft: #77746b;
  --hair: #b8b4a8;
  --f-thin: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Montserrat", Arial, sans-serif;
  --f-script: "Cormorant Garamond", Georgia, serif;
  --gate-bg: #ebe9e3;
  --gate-ink: #33322e;
  --accent-strong: #33322e;
}
.t-toi-gian, .t-toi-gian .thiepmai-gate, .t-toi-gian .thiepmai-sheet { font-variant-numeric: lining-nums; }
.t-toi-gian .thiepmai-stage { background: url("paper.svg") 0 0 / 240px 240px, var(--stage); }
.t-toi-gian .thiepmai-frame {
  background:
    url("botanical.svg") 0 0 / 420px 1200px repeat-y,
    url("paper.svg") 0 0 / 240px 240px,
    var(--paper);
  color: var(--ink);
  font-family: var(--f-serif);
}
.t-toi-gian p { margin: 0; }
.t-toi-gian .tg-sec { position: relative; padding: 0 30px; text-align: center; }

/* ---------- chữ dùng chung ---------- */
.t-toi-gian .tg-label {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 12px; line-height: 1.6; letter-spacing: .42em; text-transform: uppercase;
  padding-left: .42em; color: var(--ink-soft);
}
.t-toi-gian .tg-cap {
  margin-top: 8px;
  font-family: var(--f-sans); font-weight: 300;
  font-size: 11px; line-height: 1.6; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em;
  color: var(--ink);
}
.t-toi-gian .tg-text { margin-top: 10px; font-size: 17px; line-height: 1.6; }
.t-toi-gian .tg-text--soft { font-size: 16px; color: var(--ink-soft); }
.t-toi-gian .tg-lunar { margin-top: 2px; font-size: 14px; font-style: italic; color: var(--ink-soft); }
.t-toi-gian .tg-place { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.t-toi-gian .tg-guest { font-weight: 500; font-style: italic; font-size: 1.12em; }
.t-toi-gian .tg-hair { display: block; width: 1px; height: 44px; margin: 0 auto; background: var(--hair); }
.t-toi-gian .tg-tagline {
  margin-top: 14px;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 17px; letter-spacing: .2em; font-variant: small-caps; text-transform: lowercase;
  color: var(--ink-soft);
}
.t-toi-gian .tg-tagline--sm { margin-top: 6px; font-size: 15px; letter-spacing: .1em; text-transform: none; font-variant: normal; }
.t-toi-gian .tg-word {
  font-family: var(--f-thin); font-weight: 100;
  font-size: 76px; line-height: .9; letter-spacing: .08em; text-transform: uppercase; padding-left: .08em;
}
.t-toi-gian .tg-head { margin-top: 10px; font-weight: 400; font-size: 28px; line-height: 1.25; letter-spacing: .04em; }

/* nút */
.t-toi-gian .tg-btn {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-sans); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.t-toi-gian .tg-btn--ghost { background: transparent; color: var(--ink); }
.t-toi-gian .tg-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- 1. bìa ---------- */
.t-toi-gian .tg-hero { padding-top: 34px; }
.t-toi-gian .tg-kicker {
  font-family: var(--f-sans); font-weight: 300;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; padding-left: .4em; color: var(--ink-soft);
}
.t-toi-gian .tg-title {
  margin: 14px 0 0; display: grid; justify-items: center;
  font-family: var(--f-thin); font-weight: 100; text-transform: uppercase; line-height: .86; color: var(--ink);
}
.t-toi-gian .tg-title__a { font-size: 118px; letter-spacing: .035em; padding-left: .035em; }
.t-toi-gian .tg-title__b { font-size: 84px; letter-spacing: .05em; padding-left: .05em; }

.t-toi-gian .tg-band { position: relative; margin: 26px 0 0; height: 400px; overflow: hidden; background: var(--paper-2); }
.t-toi-gian .tg-band img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(.97); }
.t-toi-gian .tg-band--hero { height: 400px; }
.t-toi-gian .tg-band--hero img { object-position: 50% 30%; }
.t-toi-gian .tg-band--mid { margin-top: 64px; height: 520px; }
.t-toi-gian .tg-band-cap { margin: 16px 0 0; text-align: center; font-style: italic; font-size: 15px; letter-spacing: .24em; color: var(--ink-soft); }
.t-toi-gian .tg-band--end { margin-top: 64px; height: 460px; }

.t-toi-gian .tg-couple { padding-top: 26px; }
.t-toi-gian .tg-couple__line {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 12px;
  font-weight: 500; font-size: 23px; line-height: 1.35; letter-spacing: .02em;
}
.t-toi-gian .tg-couple__one i { font-weight: 400; font-size: 16px; color: var(--ink-soft); letter-spacing: .04em; }
.t-toi-gian .tg-couple__amp { font-style: italic; font-weight: 300; color: var(--ink-soft); }
.t-toi-gian .tg-couple .tg-hair { height: 34px; margin-top: 16px; }
.t-toi-gian .tg-couple .tg-text { margin-top: 14px; }

/* ---------- 2. lời mời ---------- */
.t-toi-gian .tg-letter { padding-top: 38px; }
.t-toi-gian .tg-quote { font-style: italic; font-size: 17px; line-height: 1.75; color: var(--ink); }
.t-toi-gian .tg-fam {
  display: grid; grid-template-columns: 1fr 1px 1fr; gap: 16px; align-items: stretch;
  margin-top: 34px; font-size: 16px; line-height: 1.55;
}
.t-toi-gian .tg-fam__rule { background: var(--hair); }
.t-toi-gian .tg-fam__col .tg-label { margin-bottom: 8px; letter-spacing: .3em; padding-left: .3em; }
.t-toi-gian .tg-fam__addr { margin-top: 6px !important; font-size: 14px; font-style: italic; color: var(--ink-soft); }
.t-toi-gian .tg-full { margin-top: 26px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.t-toi-gian .tg-full i { display: block; margin: 2px 0; font-size: 18px; text-transform: none; color: var(--ink-soft); }

/* ---------- 3. ngày ---------- */
.t-toi-gian .tg-date { padding-top: 58px; }
.t-toi-gian .tg-bigdate {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 10px;
  font-family: var(--f-thin); font-weight: 100; font-size: 84px; line-height: 1; letter-spacing: .02em;
}
.t-toi-gian .tg-bigdate i { display: block; width: 1px; height: 54px; background: var(--hair); transform: rotate(18deg); }
.t-toi-gian .tg-date .tg-text { margin-top: 8px; }

/* ---------- 4. địa điểm + lịch trình ---------- */
.t-toi-gian .tg-loc { padding-top: 54px; }
.t-toi-gian .tg-venue { margin-top: 12px; font-weight: 500; font-size: 26px; line-height: 1.25; letter-spacing: .02em; overflow-wrap: anywhere; }
.t-toi-gian .tg-venue--sm { font-size: 22px; }
.t-toi-gian .tg-addr { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.t-toi-gian .tg-text--time { margin-top: 14px; }

.t-toi-gian .tg-prog { margin-top: 54px; }
.t-toi-gian .tg-prog__list {
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 30px;
  list-style: none; margin: 20px -12px 0; padding: 0;
}
.t-toi-gian .tg-prog__item {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 4px;
}
/* nét nối ngang — qua tâm chấm; ô đầu/cuối hàng chỉ kẻ nửa */
.t-toi-gian .tg-prog__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--hair);
}
.t-toi-gian .tg-prog__item:first-child::before { left: 50%; }
.t-toi-gian .tg-prog__item:last-child::before { right: 50%; }
.t-toi-gian .tg-prog__item:only-child::before { display: none; }
/* 5–6 mục: 3 mục mỗi hàng */
.t-toi-gian .tg-prog__item:first-child:nth-last-child(n+5),
.t-toi-gian .tg-prog__item:first-child:nth-last-child(n+5) ~ .tg-prog__item { flex: 0 0 33.333%; }
.t-toi-gian .tg-prog__item:first-child:nth-last-child(n+5) ~ .tg-prog__item:nth-child(3n+1)::before { left: 50%; }
.t-toi-gian .tg-prog__item:first-child:nth-last-child(n+5) ~ .tg-prog__item:nth-child(3n)::before { right: 50%; }
.t-toi-gian .tg-prog__time {
  font-family: var(--f-thin); font-weight: 200; font-size: 30px; line-height: 34px; letter-spacing: .04em;
}
.t-toi-gian .tg-prog__dot {
  position: relative; z-index: 1;
  width: 9px; height: 9px; margin-top: 8px;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--paper);
}
.t-toi-gian .tg-prog__title { margin-top: 12px; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.t-toi-gian .tg-prog__note { margin-top: 3px; font-size: 13px; font-style: italic; line-height: 1.3; color: var(--ink-soft); }

/* ---------- 6. lịch ---------- */
.t-toi-gian .tg-cal { padding-top: 60px; }
.t-toi-gian .tg-cal__month {
  margin-top: 8px;
  font-family: var(--f-thin); font-weight: 100; font-size: 52px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; padding-left: .08em;
}
.t-toi-gian .tg-cal__month span { display: block; margin-top: 6px; font-family: var(--f-sans); font-weight: 300; font-size: 11px; letter-spacing: .6em; padding-left: .6em; color: var(--ink-soft); }
.t-toi-gian .tg-cal__grid { width: 318px; margin: 24px auto 0; }
.t-toi-gian .tg-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-toi-gian .tg-cal__row span { position: relative; display: grid; place-items: center; height: 40px; font-size: 18px; }
.t-toi-gian .tg-cal__row--head span {
  height: 30px; margin-bottom: 6px;
  font-style: italic; font-size: 12px; letter-spacing: .1em; color: var(--ink-soft);
  border-bottom: 1px solid var(--hair);
}
.t-toi-gian .tg-cal__row span.is-sun { color: var(--ink-soft); }
.t-toi-gian .tg-cal__row span.is-day { font-weight: 600; color: var(--ink); }
.t-toi-gian .tg-cal__row span.is-day::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--ink); border-radius: 50%;
  animation: thiepmai-heart 2.6s ease-in-out infinite;
}
.t-toi-gian .tg-count { display: flex; justify-content: center; gap: 0; margin-top: 30px; }
.t-toi-gian .tg-count div { display: grid; min-width: 74px; padding: 0 6px; }
.t-toi-gian .tg-count div + div { border-left: 1px solid var(--hair); }
.t-toi-gian .tg-count b { font-family: var(--f-thin); font-weight: 200; font-size: 40px; line-height: 1; }
.t-toi-gian .tg-count span { margin-top: 6px; font-family: var(--f-sans); font-weight: 300; font-size: 10px; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- 7. bản đồ ---------- */
.t-toi-gian .tg-venue-sec { padding-top: 48px; }
.t-toi-gian .tg-venue-sec .tg-label { margin-top: 22px; }
.t-toi-gian .tg-map { display: block; width: 100%; height: 220px; margin-top: 20px; border: 1px solid var(--hair); background: var(--paper-2); filter: grayscale(.6) contrast(.95); }

/* ---------- 8. album ---------- */
.t-toi-gian .tg-album { padding-top: 64px; }
.t-toi-gian .tg-album__grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 8px; margin: 26px -14px 0; }
.t-toi-gian .tg-album__item { overflow: hidden; background: var(--paper-2); }
.t-toi-gian .tg-album__item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86); }
.t-toi-gian .tg-album__item--wide { grid-column: span 2; height: 250px; }
.t-toi-gian .tg-album__item--tall { height: 250px; }

/* ---------- 9. rsvp ---------- */
.t-toi-gian .tg-rsvp { padding-top: 64px; }
.t-toi-gian .tg-form { display: grid; gap: 10px; margin-top: 20px; text-align: left; }
.t-toi-gian .tg-field {
  width: 100%; padding: 11px 2px;
  border: 0; border-bottom: 1px solid var(--hair); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 17px/1.4 var(--f-serif);
  -webkit-appearance: none; appearance: none;
}
.t-toi-gian select.tg-field { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333322e' stroke-width='1'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 8px; }
.t-toi-gian .tg-field::placeholder { color: #9a968c; font-style: italic; }
.t-toi-gian .tg-field:focus { outline: 0; border-bottom-color: var(--ink); }
.t-toi-gian textarea.tg-field { resize: vertical; }
.t-toi-gian .tg-form .tg-btn { justify-self: center; margin-top: 12px; }
.t-toi-gian .tg-form__msg { min-height: 20px; font-size: 15px; font-style: italic; text-align: center; }

/* ---------- 10. mừng cưới ---------- */
.t-toi-gian .tg-gift { padding-top: 26px; }
.t-toi-gian .tg-gift .tg-label { margin-top: 22px; }
.t-toi-gian .tg-gift .tg-btn { margin-top: 18px; }

/* ---------- 11. kết ---------- */
.t-toi-gian .tg-closing { padding-top: 40px; padding-bottom: 34px; }
.t-toi-gian .tg-sign { font-style: italic; font-weight: 300; font-size: 34px; line-height: 1.2; letter-spacing: .04em; }
.t-toi-gian .tg-sign i { padding: 0 6px; color: var(--ink-soft); }
.t-toi-gian .tg-names { margin-top: 10px; font-family: var(--f-sans); font-weight: 300; font-size: 12px; letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: var(--ink-soft); }
.t-toi-gian .tg-names i { font-style: normal; }
.t-toi-gian .tg-closing .tg-btns { margin-top: 26px; }
.t-toi-gian .tg-thanks {
  margin-top: 40px;
  font-family: var(--f-sans); font-weight: 300; font-size: 9px; letter-spacing: .42em; padding-left: .42em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- sự kiện thêm ---------- */
.t-toi-gian .thiepmai-events { padding: 40px 30px 0; }
.t-toi-gian .thiepmai-event { border-radius: 0; border-color: var(--hair); background: transparent; font-family: var(--f-serif); }
.t-toi-gian .thiepmai-event__side { font-style: italic; letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--ink-soft); }
.t-toi-gian .thiepmai-event__map { border-radius: 0; background: var(--ink); color: var(--paper); font-family: var(--f-sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }

/* ---------- màn mở thiệp ---------- */
.t-toi-gian .thiepmai-gate__door { background: url("paper.svg") 0 0 / 240px 240px, var(--paper); }
.t-toi-gian .thiepmai-gate__door--l { border-right: 1px solid var(--hair); background: url("botanical.svg") 0 0 / 420px 1200px, url("paper.svg") 0 0 / 240px 240px, var(--paper); }
.t-toi-gian .thiepmai-gate__door--r { background: url("botanical.svg") 100% 100% / 420px 1200px, url("paper.svg") 0 0 / 240px 240px, var(--paper); }
.t-toi-gian .thiepmai-gate__card { font-family: var(--f-serif); color: var(--ink); }
.t-toi-gian .thiepmai-gate__card::before {
  content: "Wedding"; display: block; margin-bottom: 18px;
  font-family: var(--f-thin); font-weight: 100; font-size: 64px; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
}
.t-toi-gian .thiepmai-gate__label { font-style: italic; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.t-toi-gian .thiepmai-gate__guest { font-style: italic; font-weight: 500; font-size: 36px; color: var(--ink); }
.t-toi-gian .thiepmai-gate__names { font-weight: 500; font-size: 28px; letter-spacing: .02em; }
.t-toi-gian .thiepmai-gate__names span { font-style: italic; font-weight: 300; color: var(--ink-soft); }
.t-toi-gian .thiepmai-gate__date { font-family: var(--f-sans); font-weight: 300; font-size: 12px; letter-spacing: .4em; color: var(--ink-soft); }
.t-toi-gian .thiepmai-gate__open { border-radius: 0; background: var(--ink); color: var(--paper); font-family: var(--f-sans); font-weight: 400; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; box-shadow: none; }

/* bảng mừng cưới / rsvp */
.t-toi-gian .thiepmai-sheet__panel { background: url("paper.svg") 0 0 / 240px 240px, var(--paper); font-family: var(--f-serif); color: var(--ink); }
.t-toi-gian .thiepmai-sheet__title { font-weight: 500; font-size: 26px; letter-spacing: .04em; }
.t-toi-gian .thiepmai-sheet__lead { color: var(--ink-soft); font-style: italic; }
.t-toi-gian .thiepmai-btn { border-radius: 0; background: var(--ink); color: var(--paper); font-family: var(--f-sans); font-weight: 400; font-size: 14px; letter-spacing: .12em; }
.t-toi-gian .thiepmai-btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.t-toi-gian .thiepmai-gift { border-radius: 0; border-color: var(--hair); background: rgba(255, 255, 255, .35); }
