/* Thiệp cưới online (sukien/invite.html). Màu theo chủ đề: theme-son | theme-kem | theme-la | theme-hong. */
.tc {
  --c: #a3192b; --c2: #c39a45; --bg: #fbf5ec; --card: #fffdf9; --ink: #3b2a22; --muted: #7a6a5f; --line: #ecdcc6;
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.tc.theme-kem { --c: #8a672a; --c2: #c39a45; --bg: #f8f3e8; --line: #e8dcc3; }
.tc.theme-la { --c: #46634e; --c2: #b3955a; --bg: #f3f5ef; --card: #fdfdfa; --line: #dfe5d6; --ink: #26332a; --muted: #66746a; }
.tc.theme-hong { --c: #b14d65; --c2: #cf9f6e; --bg: #fcf3f2; --line: #f0d9d8; --ink: #45282f; --muted: #866a70; }
.tc *, .tc *::before, .tc *::after { box-sizing: border-box; }
.tc a { color: var(--c); }
.tc img { max-width: 100%; display: block; }

.tc-sample { background: var(--c); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }
.tc-sample a { color: #fff; font-weight: 600; }

.tc-cover {
  position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; justify-content: center;
  text-align: center; overflow: hidden; color: var(--c);
  background: radial-gradient(ellipse at top, #fff 0%, var(--bg) 70%);
}
.tc-cover.has-photo { color: #fff; min-height: min(92vh, 860px); }
.tc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-cover.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.tc-cover-inner { position: relative; z-index: 1; padding: 48px 16px 56px; max-width: 560px; }
.tc-cover:not(.has-photo) .tc-cover-inner { align-self: center; padding-top: 72px; }
.tc-eyebrow { letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; margin: 0 0 8px; opacity: .9; }
.tc-names { font-family: "Dancing Script", cursive; font-weight: 700; font-size: clamp(2.6rem, 12vw, 4.2rem); line-height: 1.1; margin: 0; }
.tc-names span { display: block; }
.tc-names .tc-amp { font-size: .6em; opacity: .85; }
.tc-date { font-family: "Playfair Display", serif; letter-spacing: .25em; font-size: 1.15rem; margin: 12px 0 0; }
.tc-guest { margin: 20px auto 0; padding: 10px 18px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; display: inline-block; font-size: .95rem; }
.tc-guest strong { font-family: "Playfair Display", serif; font-size: 1.25rem; font-weight: 600; }

.tc-main { overflow-wrap: anywhere; max-width: 600px; margin: 0 auto; padding: 24px 16px 8px; }
.tc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 20px; margin: 0 0 20px;
  box-shadow: 0 8px 30px rgba(80, 40, 20, .06); position: relative;
}
.tc-h { font-family: "Playfair Display", serif; font-weight: 600; color: var(--c); text-align: center; font-size: 1.5rem; margin: 0 0 18px; }
.tc-h::after { content: ""; display: block; width: 48px; height: 2px; background: var(--c2); margin: 10px auto 0; }
.tc-muted { color: var(--muted); font-size: .92rem; }
.tc-center { text-align: center; }

.tc-announce { text-align: center; }
.tc-hy { font-family: "Songti SC", "STSong", "SimSun", serif; color: var(--c); font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.tc-families { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.tc-family h3 { font-family: "Playfair Display", serif; color: var(--c); font-size: 1.05rem; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .08em; }
.tc-family p { margin: 0; font-size: .95rem; }
.tc-family .tc-muted { font-size: .85rem; margin-top: 4px; }
.tc-headline { font-style: italic; font-family: "Playfair Display", serif; margin: 8px 0 6px; }
.tc-couple { display: flex; flex-direction: column; align-items: center; margin: 0 0 16px; }
.tc-role { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.tc-script { font-family: "Dancing Script", cursive; font-weight: 700; color: var(--c); font-size: 2.2rem; line-height: 1.2; }
.tc-amp-s { font-family: "Dancing Script", cursive; color: var(--c2); font-size: 1.6rem; }
.tc-bigdate { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 14px; margin: 4px 0; }
.tc-bigdate span { border-top: 1px solid var(--c2); border-bottom: 1px solid var(--c2); padding: 4px 6px; font-size: .9rem; min-width: 90px; }
.tc-bigdate strong { font-family: "Playfair Display", serif; font-size: 3rem; color: var(--c); line-height: 1; }
.tc-lunar { margin: 6px 0 14px; }
.tc-invite { margin: 0; }
.tc-countdown { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.tc-countdown div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; min-width: 64px; }
.tc-countdown b { display: block; font-family: "Playfair Display", serif; font-size: 1.5rem; color: var(--c); line-height: 1.2; }
.tc-countdown small { font-size: .72rem; color: var(--muted); }

.tc-events { list-style: none; margin: 0; padding: 0; }
.tc-event { padding: 16px 0; border-top: 1px dashed var(--line); text-align: center; }
.tc-event:first-child { border-top: 0; padding-top: 0; }
.tc-event h3 { font-family: "Playfair Display", serif; color: var(--c); margin: 0 0 4px; font-size: 1.2rem; }
.tc-event p { margin: 2px 0; }
.tc-when strong { color: var(--c); }
.tc-place { font-weight: 600; margin-top: 8px !important; }
.tc-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px !important; }

.tc-btn {
  display: inline-block; background: var(--c); color: #fff !important; border: 1px solid var(--c); border-radius: 999px;
  padding: 9px 18px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none;
}
.tc-btn-ghost { background: transparent; color: var(--c) !important; }
.tc-btn-full { width: 100%; padding: 12px; font-size: 1rem; }

.tc-story { margin: 0; text-align: center; }
.tc-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tc-ph { padding: 0; border: 0; background: none; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.tc-ph img { width: 100%; height: 100%; object-fit: cover; }
.tc-ph:first-child { grid-column: span 2; grid-row: span 2; }

.tc-form { display: grid; gap: 12px; }
.tc-form label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.tc-form input:not([type=radio]):not([type=checkbox]), .tc-form select, .tc-form textarea, .tc-report textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.tc-form input:focus, .tc-form select:focus, .tc-form textarea:focus { outline: 2px solid var(--c2); border-color: var(--c2); }
.tc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.tc-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.tc-choice legend { font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.tc-choice label, .tc-check { display: flex !important; align-items: center; gap: 8px; color: var(--ink) !important; font-size: .95rem !important; }
.tc-choice input, .tc-check input { accent-color: var(--c); width: 18px; height: 18px; }
.tc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tc-ok { background: #eef7ee; color: #2f5d34; border-radius: 10px; padding: 10px 14px; text-align: center; }
.tc-note { background: #fff6e5; color: #7a5600; border-radius: 10px; padding: 10px 14px; text-align: center; }

.tc-banks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.tc-bank { text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; background: #fff; }
.tc-bank h3 { margin: 0 0 8px; color: var(--c); font-size: 1rem; }
.tc-qr { width: 200px; max-width: 100%; margin: 0 auto; }
.tc-qr svg { width: 100%; height: auto; display: block; }
.tc-qr-sample { position: relative; }
.tc-qr-sample svg { filter: blur(5px); opacity: .5; }
.tc-qr-sample span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; color: var(--c); z-index: 1; }
.tc-holder { font-weight: 600; margin: 8px 0 0; letter-spacing: .02em; }
.tc-bank .tc-muted { margin: 0; }
.tc-acc { margin: 6px 0 0; font-family: ui-monospace, Menlo, monospace; font-size: 1rem; }
.tc-copy { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: var(--bg); color: var(--c); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.tc-fine { font-size: .8rem; color: var(--muted); text-align: center; margin: 8px 0; }
.tc-gift { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.tc-gift summary, .tc-report summary { cursor: pointer; color: var(--c); font-weight: 600; text-align: center; list-style: none; }
.tc-gift summary::-webkit-details-marker, .tc-report summary::-webkit-details-marker { display: none; }
.tc-gift[open] summary { margin-bottom: 12px; }

.tc-wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 480px; overflow: auto; }
.tc-wishes li { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.tc-wishes p { margin: 0 0 4px; }
.tc-wishes span { font-size: .85rem; color: var(--c); font-weight: 600; }

.tc-thanks { text-align: center; font-size: 2.4rem; margin: 12px 0 24px; }
.tc-foot { text-align: center; font-size: .85rem; color: var(--muted); padding: 8px 16px 40px; max-width: 600px; margin: 0 auto; }
.tc-foot p { margin: 4px 0; }
.tc-report summary { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tc-report form { display: grid; gap: 8px; margin-top: 8px; }

.tc-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tc-lightbox[hidden] { display: none; }
.tc-lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.tc-lightbox button { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

@media (max-width: 380px) {
  .tc-families, .tc-row { grid-template-columns: 1fr; }
  .tc-bigdate span { min-width: 72px; font-size: .8rem; }
}
