@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-display: swap;
  font-weight: 300 500;
  src:url(/fonts/mulish-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-display: swap;
  font-weight: 300 500;
  src:url(/fonts/mulish-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-display: swap;
  font-weight: 300 500;
  src:url(/fonts/mulish-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:url(/fonts/prata-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src:url(/fonts/prata-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Lịch trình ngày cưới ---------- */
:root {
  --red: #8e2a2a; --red-d: #6d1f1f; --gold: #c9a24a; --gold-l: #f6ebcc;
  --ink: #3d2a22; --muted: #8a6f60; --cream: #faf4ea; --paper: #fffdf8; --rule: #eadccb;
  --warn-bg: #fff4d6; --warn-ink: #7a5a10;
  --serif: 'Prata', Georgia, serif; --sans: 'Mulish', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: var(--red); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }

header.top { text-align: center; padding: 28px 16px 14px; }
.top .kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.top h1 { font: 400 30px/1.25 var(--serif); color: var(--red); margin: 6px 0 4px; }
.top .date { color: var(--ink); }
.top .badge { display: inline-block; margin-top: 8px; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: var(--red); color: #fff; }

nav.tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: 10px 16px; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); justify-content: center; }
nav.tabs a { flex: 1; max-width: 220px; text-align: center; text-decoration: none; padding: 9px 12px; border-radius: 99px; color: var(--ink); font-weight: 700; font-size: 15px; border: 1px solid var(--rule); background: var(--paper); }
nav.tabs a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }

h2.phase { font: 400 21px/1.3 var(--serif); color: var(--red-d); margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
h2.phase::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

ol.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--gold-l); }
.step { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; margin: 0 0 10px 6px; }
.step::before { content: ""; position: absolute; left: -27px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.step.now { border-color: var(--red); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 25%, transparent); }
.step.now::before { background: var(--red); border-color: var(--red); }
.step .time { font-weight: 800; color: var(--red); font-size: 15px; font-variant-numeric: tabular-nums; }
.step .time:empty { display: none; }
.step h3 { margin: 2px 0 2px; font-size: 18px; line-height: 1.35; }
.step .desc { color: var(--muted); font-size: 15px; }
.step .place { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 15px; text-decoration: none; font-weight: 700; }
.step .note { margin: 8px 0 0; font-size: 15px; }
.step .cut { margin: 8px 0 0; font-size: 14.5px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 7px 10px; }
.step .items { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.step .items::before { content: "Cần mang:"; display: block; margin-left: -18px; font-weight: 700; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; vertical-align: 2px; margin-left: 6px; }
.tag.opt { background: var(--gold-l); color: var(--warn-ink); }
.tag.nowtag { background: var(--red); color: #fff; }
.who { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 3px 10px; border-radius: 99px; background: #f3ece2; color: var(--ink); text-decoration: none; }
.chip b { font-weight: 800; }
.chip.missing { background: #fbe3df; color: var(--red-d); }

.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; margin: 0 0 12px; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card .time { font-weight: 800; color: var(--red); font-size: 15px; }
.route { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0; font-size: 15px; }
.route .lbl { color: var(--muted); }
.route a { font-weight: 700; text-decoration: none; }
.card .internal { margin-top: 8px; font-size: 14.5px; background: var(--gold-l); border-radius: 10px; padding: 7px 10px; }

.contacts { display: grid; gap: 8px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 10px 14px; }
.contact .lbl { font-size: 13px; color: var(--muted); }
.contact .nm { font-weight: 700; }
.contact .nm.missing { color: var(--red-d); font-weight: 600; font-style: italic; }
.call { flex: none; text-decoration: none; background: var(--red); color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 99px; font-size: 15px; }
.cars { display: grid; gap: 8px; }

.pin { max-width: 340px; margin: 40px auto; text-align: center; }
.pin input { width: 100%; font: 700 26px/1 var(--sans); letter-spacing: .4em; text-align: center; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); }
.pin button { margin-top: 12px; width: 100%; font: 800 17px var(--sans); padding: 12px; border: 0; border-radius: 12px; background: var(--red); color: #fff; }
.pin .err { color: var(--red-d); min-height: 1.5em; margin-top: 8px; }
.msg { text-align: center; color: var(--muted); padding: 40px 0; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }

/* Key facts dashboard */
.dash { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.big { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--red); border-radius: 16px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.big .bt { font: 400 30px/1.1 var(--serif); color: var(--red); font-variant-numeric: tabular-nums; }
.big .bl { font-weight: 800; font-size: 16px; line-height: 1.3; }
.big .bp { font-weight: 700; font-size: 15px; }
.big .ba { font-size: 14px; text-decoration: none; line-height: 1.35; overflow-wrap: anywhere; }
.big.contact-card { grid-column: 1 / -1; border-top-color: var(--gold); flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.big.contact-card .who-col { min-width: 0; }
.big.contact-card .call { margin-top: 0; flex: none; }
.big .bn { font-size: 17px; font-weight: 700; }
.big .bn.missing { color: var(--red-d); font-style: italic; font-weight: 600; }
.big .call { align-self: flex-start; margin-top: 4px; }
.big.next { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 30%, transparent); }
@media (max-width: 360px) { .dash { grid-template-columns: 1fr; } }
