/* Mẫu Tạp Chí — editorial đen trắng: masthead, thẻ trắng bo góc, nút đen. Bố cục chảy (không định vị tuyệt đối). */

.t-tap-chi {
  --f-mast: "Playfair Display", Georgia, serif;
  --f-sans: "Inter", Arial, sans-serif;
  --f-it: "Cormorant Garamond", Georgia, serif;
  --f-script: "Playfair Display", Georgia, serif;
  --ink: #111;
  --mute: #767676;
  --line: #d9d9d6;
  --paper: #efefed;
  --gate-bg: #efefed;
  --gate-ink: #111;
  --accent-strong: #111;
}
.t-tap-chi .vela-frame { background: var(--paper); color: var(--ink); font-family: var(--f-sans); }
.t-tap-chi img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- màn mở thiệp ---------- */
.t-tap-chi .vela-gate__label { font-family: var(--f-sans); font-size: 11px; letter-spacing: 4px; color: #666; }
.t-tap-chi .vela-gate__guest { font-style: italic; font-size: 36px; }
.t-tap-chi .vela-gate__names { font-weight: 900; font-size: 30px; line-height: 1.2; text-transform: uppercase; letter-spacing: -.5px; }
.t-tap-chi .vela-gate__names span { display: block; font-weight: 400; font-style: italic; text-transform: none; }
.t-tap-chi .vela-gate__date { font-family: var(--f-sans); font-size: 12px; letter-spacing: 5px; color: #555; }
.t-tap-chi .vela-gate__open { border-radius: 6px; font-family: var(--f-sans); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; padding: 15px 38px; }
.t-tap-chi .vela-gate__card::before {
  content: "The Wedding"; display: block; margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid #111;
  font-family: var(--f-mast); font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -1px; text-transform: uppercase; color: #111;
}

/* ---------- chữ chung ---------- */
.t-tap-chi .tc-kicker {
  font-family: var(--f-sans); font-size: 10.5px; font-weight: 500; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--mute); text-align: center;
}
.t-tap-chi .tc-h2 {
  margin-top: 8px;
  font-family: var(--f-mast); font-size: 27px; line-height: 1.2; font-weight: 600; text-align: center;
}
.t-tap-chi .tc-body { margin-top: 14px; font-size: 13.5px; line-height: 1.75; color: #444; text-align: center; }
.t-tap-chi .tc-center { text-align: center; }
.t-tap-chi .tc-sec { padding: 46px 26px 10px; }

.t-tap-chi .tc-card {
  padding: 26px 22px;
  border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 26px rgba(0, 0, 0, .06);
  text-align: center;
}
.t-tap-chi .tc-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; margin-top: 18px; padding: 13px 16px;
  border: 1px solid #111; border-radius: 6px;
  background: #111; color: #fff;
  font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; list-style: none;
}
.t-tap-chi .tc-btn::-webkit-details-marker { display: none; }
.t-tap-chi .tc-btn svg { width: 15px; height: 15px; flex: none; }
.t-tap-chi .tc-btn--line { background: transparent; color: #111; border-color: #cfcfcc; }
.t-tap-chi .tc-btn:disabled { opacity: .6; }

/* ---------- 1. bìa ---------- */
.t-tap-chi .tc-hero { padding: 22px 20px 26px; background: #f7f7f5; }
.t-tap-chi .tc-issue {
  display: flex; justify-content: space-between;
  padding-bottom: 8px; border-bottom: 1px solid #111;
  font-size: 9.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
}
.t-tap-chi .tc-mast {
  margin: 10px 0 12px;
  font-family: var(--f-mast); font-weight: 900; font-size: 52px; line-height: .95; letter-spacing: -1.5px;
  text-align: center; text-transform: uppercase; white-space: nowrap;
}
.t-tap-chi .tc-cover { height: 470px; overflow: hidden; background: #ddd; }
.t-tap-chi .tc-cover img { filter: grayscale(1) contrast(1.05); }
.t-tap-chi .tc-names {
  margin-top: 18px; padding-bottom: 12px; border-bottom: 1px solid #111;
  font-family: var(--f-mast); font-weight: 700; font-size: 29px; line-height: 1.15; letter-spacing: -.3px;
  text-align: center; text-transform: uppercase;
}
.t-tap-chi .tc-names span { font-weight: 400; font-style: italic; text-transform: none; }
.t-tap-chi .tc-bar {
  display: flex; justify-content: space-between; gap: 16px; padding-top: 9px;
  font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
}
.t-tap-chi .tc-bar span:last-child { text-align: right; }
.t-tap-chi .tc-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 26px;
  font-size: 9.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--mute);
}
.t-tap-chi .tc-scroll svg { width: 10px; height: 16px; animation: vela-pulse 2s ease-in-out infinite; }

/* ---------- 2. thư mời ---------- */
.t-tap-chi .tc-photo { height: 420px; margin-top: 26px; border-radius: 12px; overflow: hidden; background: #ddd; }
.t-tap-chi .tc-quote {
  margin: 22px 10px 0;
  font-family: var(--f-it); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.45; text-align: center; color: #333;
}
.t-tap-chi .tc-chapter { margin-top: 26px; }
.t-tap-chi .tc-chapter__title { margin-top: 10px; font-family: var(--f-it); font-style: italic; font-weight: 600; font-size: 25px; line-height: 1.25; }
.t-tap-chi .tc-more summary { margin-top: 16px; }
.t-tap-chi .tc-more[open] summary { background: transparent; color: #111; border-color: #cfcfcc; }
.t-tap-chi .tc-more .tc-body { text-align: left; }

/* ---------- 3. hai gia đình ---------- */
.t-tap-chi .tc-people { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.t-tap-chi .tc-person { margin: 0; text-align: center; }
.t-tap-chi .tc-person__img { height: 230px; border-radius: 10px; overflow: hidden; background: #ddd; }
.t-tap-chi .tc-person figcaption { padding-top: 14px; }
.t-tap-chi .tc-person__name { margin-top: 6px; font-family: var(--f-mast); font-size: 18px; line-height: 1.25; font-weight: 600; }
.t-tap-chi .tc-person__meta { margin-top: 8px; font-size: 12px; line-height: 1.65; color: #444; }
.t-tap-chi .tc-person__addr { margin-top: 6px; font-family: var(--f-it); font-style: italic; font-size: 14px; color: var(--mute); }

/* ---------- 4. lịch ---------- */
.t-tap-chi .tc-cal { text-align: center; }
.t-tap-chi .tc-grid { margin-top: 20px; }
.t-tap-chi .tc-grid__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-tap-chi .tc-grid__row span {
  display: grid; place-items: center; height: 40px;
  font-size: 13px; color: #555;
}
.t-tap-chi .tc-grid__row--head span { height: 30px; font-size: 9.5px; font-weight: 600; letter-spacing: 1.5px; color: #aaa; }
.t-tap-chi .tc-grid__row span.is-day { position: relative; font-weight: 700; color: #111; }
.t-tap-chi .tc-grid__row span.is-day::before {
  content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%;
  background: #dcdcd9; z-index: -1;
}
.t-tap-chi .tc-grid__row span.is-day { z-index: 0; }
.t-tap-chi .tc-cal__note {
  margin: 22px 0 14px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--f-it); font-style: italic; font-size: 17px; color: #777;
}
.t-tap-chi .tc-count { display: grid; grid-template-columns: repeat(4, 1fr); }
.t-tap-chi .tc-count div { display: grid; gap: 4px; }
.t-tap-chi .tc-count div + div { border-left: 1px solid var(--line); }
.t-tap-chi .tc-count b { font-family: var(--f-mast); font-weight: 600; font-size: 36px; line-height: 1; }
.t-tap-chi .tc-count span { font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mute); }
.t-tap-chi .tc-cal .tc-btn { margin-top: 24px; }

/* ---------- 5. lễ & tiệc ---------- */
.t-tap-chi .tc-events { display: grid; gap: 16px; }
.t-tap-chi .tc-event__big { margin-top: 10px; font-family: var(--f-mast); font-weight: 600; font-size: 22px; line-height: 1.25; }
.t-tap-chi .tc-rows { margin: 18px 0 0; padding: 0; list-style: none; text-align: left; }
.t-tap-chi .tc-rows li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0; border-top: 1px solid #eee;
  font-size: 13.5px; line-height: 1.5; color: #333;
}
.t-tap-chi .tc-rows li:last-child { border-bottom: 1px solid #eee; }
.t-tap-chi .tc-rows svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #111; }
.t-tap-chi .tc-rows small { display: block; margin-top: 2px; font-family: var(--f-it); font-style: italic; font-size: 14px; color: var(--mute); }
.t-tap-chi .tc-map { display: block; width: 100%; height: 190px; margin-top: 18px; border: 0; border-radius: 8px; background: #eee; filter: grayscale(1); }
.t-tap-chi .tc-event .tc-btn--line { margin-top: 10px; }

/* ---------- 6. chương trình ---------- */
.t-tap-chi .tc-timeline { position: relative; margin: 28px 0 0; padding: 0 34px 0 0; list-style: none; }
.t-tap-chi .tc-timeline::before { content: ""; position: absolute; right: 9px; top: 8px; bottom: 8px; width: 1px; background: #cfcfcc; }
.t-tap-chi .tc-timeline li { position: relative; padding: 0 0 26px; text-align: right; }
.t-tap-chi .tc-timeline li:last-child { padding-bottom: 0; }
.t-tap-chi .tc-timeline li::after {
  content: ""; position: absolute; right: -29px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%; background: #111; box-shadow: 0 0 0 4px var(--paper);
}
.t-tap-chi .tc-timeline__time { font-family: var(--f-sans); font-size: 12.5px; font-weight: 600; letter-spacing: 1px; }
.t-tap-chi .tc-timeline__title { margin-top: 2px; font-family: var(--f-mast); font-size: 19px; line-height: 1.3; }
.t-tap-chi .tc-timeline__note { margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: var(--mute); }

/* ---------- 9. xác nhận ---------- */
.t-tap-chi .tc-form { display: grid; gap: 10px; margin-top: 20px; }
.t-tap-chi .tc-field {
  width: 100%; padding: 12px 14px;
  border: 1px solid #e0e0dd; border-radius: 6px; background: #f6f6f4;
  font-family: var(--f-sans); font-size: 15px; color: #111;
}
.t-tap-chi .tc-field::placeholder { color: #999; }
.t-tap-chi select.tc-field:invalid { color: #999; }
.t-tap-chi textarea.tc-field { resize: vertical; }
.t-tap-chi .tc-form .tc-btn { margin-top: 6px; }
.t-tap-chi .tc-form__msg { min-height: 20px; font-size: 13px; color: #444; }

/* ---------- 10. album ---------- */
.t-tap-chi .tc-album__grid { display: grid; grid-auto-flow: row dense; grid-template-columns: 1fr 1fr; grid-auto-rows: 118px; gap: 10px; margin-top: 24px; }
.t-tap-chi .tc-album__item { overflow: hidden; border-radius: 10px; background: #ddd; }
.t-tap-chi .tc-album__item--wide { grid-column: span 2; grid-row: span 2; }
.t-tap-chi .tc-album__item--tall { grid-row: span 2; }
.t-tap-chi .tc-album__item--sq { grid-row: span 1; }

/* ---------- 11. kết ---------- */
.t-tap-chi .tc-closing { position: relative; margin-top: 46px; padding-bottom: 36px; text-align: center; }
.t-tap-chi .tc-closing__img { position: relative; height: 520px; overflow: hidden; }
.t-tap-chi .tc-closing__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--paper) 0, transparent 14%, transparent 55%, var(--paper) 100%);
}
.t-tap-chi .tc-closing__img img { filter: grayscale(.2); }
.t-tap-chi .tc-closing__thanks { margin-top: -40px; position: relative; font-family: var(--f-mast); font-style: italic; font-size: 38px; }
.t-tap-chi .tc-closing__sub { margin-top: 6px; padding: 0 30px; font-family: var(--f-it); font-style: italic; font-size: 17px; color: #666; }
.t-tap-chi .tc-closing__btn { width: auto; margin: 22px auto 0; padding: 13px 30px; }

.t-tap-chi .tc-footer {
  display: flex; justify-content: space-between; margin: 0 20px; padding: 14px 0 6px;
  border-top: 1px solid #111;
  font-size: 9.5px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
}
