/* Kit Botez – designul pieselor, la dimensiunea reală (96 px = 1 inch).
   Folosit și de browser (previzualizare), și de server (PDF final). */
.piece {
  --accent: #5F7058;
  background: #FFFDF9; color: #2E2A26;
  font-family: 'Jost', sans-serif;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  overflow: hidden;
}
.piece * { box-sizing: border-box; }
.serif { font-family: 'Cormorant Garamond', serif; }
.script { font-family: 'Great Vibes', cursive; color: var(--accent); line-height: 1; }
.caps { letter-spacing: .22em; font-weight: 500; }
.accent { color: var(--accent); }
.en { font-family: 'Cormorant Garamond', serif; font-style: italic; color: #6B645C; }
.sprig { color: var(--accent); display: block; }

/* Invitație A5 */
.p-invitatie { width: 559px; height: 794px; padding: 28px; }
.p-invitatie .frame {
  width: 100%; height: 100%; border: 1px solid var(--accent); padding: 36px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px;
}
.p-invitatie .intro { font-size: 12px; }
.p-invitatie .title { font-size: 46px; font-weight: 500; line-height: 1; }
.p-invitatie .name { font-size: 80px; line-height: .95; }
.p-invitatie .body { font-size: 15px; line-height: 1.55; }
.p-invitatie .en { font-size: 15px; line-height: 1.4; }
.p-invitatie .people { display: flex; gap: 48px; margin-top: 8px; }
.p-invitatie .people .caps { font-size: 11px; color: var(--accent); }
.p-invitatie .people .serif { font-size: 21px; margin-top: 4px; }
.p-invitatie .rsvp { font-size: 12px; color: #5A544D; margin-top: 6px; line-height: 1.5; }

/* Invitație telefon (405×720 = 9:16) */
.p-telefon { width: 405px; height: 720px; padding: 28px; background: #F1EBE1; display: flex; }
.p-telefon .arch {
  flex: 1 1 auto; background: #FFFDF9; border-radius: 180px 180px 16px 16px; padding: 60px 28px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px;
}
.p-telefon .intro { font-size: 11px; }
.p-telefon .name { font-size: 60px; }
.p-telefon .rule { width: 48px; border-bottom: 1px solid var(--accent); margin: 2px 0; }
.p-telefon .date { font-size: 23px; font-weight: 500; }
.p-telefon .body { font-size: 14px; line-height: 1.55; }
.p-telefon .en { font-size: 13px; line-height: 1.35; }
.p-telefon .sign { font-size: 12px; line-height: 1.5; color: #5A544D; }
.p-telefon .cta {
  margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px;
  border-radius: 999px; background: var(--accent); color: #FFFDF9; font-size: 14px; letter-spacing: .04em;
}

/* Meniu 4×9 in */
.p-meniu { width: 384px; height: 864px; padding: 20px; }
.p-meniu .frame {
  width: 100%; height: 100%; border: 1px solid var(--accent); padding: 36px 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.p-meniu .title { font-size: 44px; font-weight: 500; line-height: 1; }
.p-meniu .sub { font-size: 28px; }
.p-meniu .course { display: flex; flex-direction: column; gap: 4px; }
.p-meniu .course .caps { font-size: 11px; color: var(--accent); }
.p-meniu .course .serif { font-size: 18px; line-height: 1.35; }
.p-meniu .foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .3em; }
.p-meniu .foot .rule { width: 40px; border-bottom: 1px solid var(--accent); }

/* Cartonașe: A4, 8 pe pagină, pliate pe linia din mijloc */
.p-cartonase {
  width: 794px; height: 1123px; padding: 48px 40px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 0;
}
.p-cartonase .card {
  border: 1px dashed #B9B0A2; margin: -0.5px; display: grid; grid-template-rows: 1fr 1fr; position: relative;
}
.p-cartonase .card::after {
  content: ''; position: absolute; left: 12px; right: 12px; top: 50%; border-top: 1px dotted #CFC7BA;
}
.p-cartonase .half { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.p-cartonase .half.top { transform: rotate(180deg); }
.p-cartonase .guest { font-family: 'Great Vibes', cursive; font-size: 32px; line-height: 1.05; text-align: center; padding: 0 12px; }
.p-cartonase .table { font-size: 11px; color: var(--accent); }
.p-cartonase .empty { border: 1px dashed #E6DFD3; margin: -0.5px; }

/* Panou „Bine ați venit” A4 */
.p-panou { width: 794px; height: 1123px; padding: 64px; background: #F1EBE1; display: flex; }
.p-panou .arch {
  flex: 1 1 auto; background: #FFFDF9; border: 2px solid var(--accent); border-radius: 333px 333px 12px 12px;
  padding: 140px 56px 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.p-panou .title { font-size: 76px; line-height: 1; font-weight: 500; }
.p-panou .sub { font-size: 18px; letter-spacing: .3em; font-weight: 500; }
.p-panou .name { font-size: 120px; }
.p-panou .en { font-size: 26px; }
.p-panou .foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.p-panou .foot .rule { width: 70px; border-bottom: 1px solid var(--accent); }
.p-panou .foot .serif { font-size: 30px; }

/* Plan de așezare A4 */
.p-asezare { width: 794px; height: 1123px; padding: 64px 56px; display: flex; flex-direction: column; gap: 28px; }
.p-asezare .head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.p-asezare .title { font-size: 52px; line-height: 1; font-weight: 500; }
.p-asezare .sub { font-size: 34px; }
.p-asezare .grid { display: grid; gap: 22px 28px; align-content: start; flex: 1 1 auto; }
.p-asezare .tbl { border-top: 1px solid var(--accent); padding-top: 10px; }
.p-asezare .tbl .caps { color: var(--accent); margin-bottom: 6px; }
.p-asezare .tbl .serif { line-height: 1.4; }

/* Numere de masă: 2 pe A4, fiecare A5 orizontal */
.p-numere { width: 794px; height: 1123px; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.p-numere .half {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 40px;
}
.p-numere .half + .half { border-top: 1px dashed #B9B0A2; }
.p-numere .card {
  width: 100%; height: 100%; border: 1px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.p-numere .caps { font-size: 16px; color: var(--accent); letter-spacing: .3em; }
.p-numere .num { font-size: 200px; line-height: 1; font-weight: 500; }

/* Plic pentru dar: șablon de decupat pe A4 */
.p-plic { width: 794px; height: 1123px; position: relative; }
.p-plic svg.lines { position: absolute; left: 0; top: 0; }
.p-plic .front {
  position: absolute; left: 57px; top: 270px; width: 680px; height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.p-plic .front .serif { font-size: 36px; font-style: italic; }
.p-plic .front .caps { font-size: 12px; color: var(--accent); }
.p-plic .front .line { width: 280px; border-bottom: 1px solid #2E2A26; margin-top: 26px; }
.p-plic .back {
  position: absolute; left: 57px; top: 610px; width: 680px; height: 340px;
  display: flex; align-items: center; justify-content: center; transform: rotate(180deg);
}
.p-plic .back .caps { font-size: 12px; color: #6B645C; }
.p-plic .howto { position: absolute; left: 57px; right: 57px; top: 990px; text-align: center; font-size: 13px; color: #5A544D; line-height: 1.5; }

/* Etichete mărturii Ø 5 cm, 15 pe A4 */
.p-etichete {
  width: 794px; height: 1123px; padding: 57px 70px;
  display: grid; grid-template-columns: repeat(3, 189px); grid-auto-rows: 189px; gap: 16px 24px; justify-content: center;
}
.p-etichete .lbl {
  width: 189px; height: 189px; border-radius: 50%; border: 1px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 18px;
}
.p-etichete .script { font-size: 34px; }
.p-etichete .small { font-size: 10px; line-height: 1.4; }
.p-etichete .serif { font-size: 15px; }

/* Card pentru nași A5 orizontal */
.p-nasi { width: 794px; height: 559px; padding: 32px; }
.p-nasi .frame {
  width: 100%; height: 100%; border: 1px solid var(--accent); padding: 40px 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.p-nasi .script { font-size: 56px; }
.p-nasi .msg { font-size: 22px; line-height: 1.5; white-space: pre-line; }
.p-nasi .sign { font-size: 14px; letter-spacing: .08em; }
.p-nasi .sprig { align-self: flex-end; }

/* Checklist A4 */
.p-checklist { width: 794px; height: 1123px; padding: 60px 64px 52px; display: flex; flex-direction: column; gap: 24px; }
.p-checklist .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.p-checklist h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 46px; line-height: 1; }
.p-checklist .meta { font-size: 13px; line-height: 1.7; text-align: right; }
.p-checklist .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; flex: 1 1 auto; }
.p-checklist .col { display: flex; flex-direction: column; gap: 18px; }
.p-checklist .grp { display: flex; flex-direction: column; gap: 7px; }
.p-checklist .grp .serif { font-size: 21px; font-weight: 600; color: var(--accent); }
.p-checklist .item { display: flex; gap: 10px; font-size: 14px; line-height: 1.35; }
.p-checklist .box { flex: none; width: 13px; height: 13px; margin-top: 3px; border: 1.5px solid var(--accent); }
.p-checklist .trusou { border: 1px solid var(--accent); padding: 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.p-checklist .trusou .serif.big { font-size: 25px; font-weight: 600; color: #2E2A26; }
.p-checklist .note { font-size: 12px; color: #6B645C; line-height: 1.5; }
.p-checklist .fill { display: flex; gap: 8px; font-size: 13px; }
.p-checklist .fill span:first-child { width: 86px; }
.p-checklist .fill span:last-child { flex: 1 1 auto; border-bottom: 1px solid #8C847A; }
.p-checklist .lines div { border-bottom: 1px solid #CFC7BA; height: 26px; }
.p-checklist .sprig { align-self: center; }


/* ---------- Fotografia ---------- */
.piece .photo { background-size: cover; background-repeat: no-repeat; background-color: #EDE6DA; flex: none; }
.piece .addr { font-size: .86em; color: #5A544D; }

/* Invitație A5: fotografie rotundă în locul crenguței */
.p-invitatie .frame.has-photo { gap: 10px; padding-top: 28px; padding-bottom: 28px; }
.p-invitatie .frame.has-photo .photo { width: 150px; height: 150px; border-radius: 50%; border: 1px solid var(--accent); }
.p-invitatie .frame.has-photo .title { font-size: 38px; }
.p-invitatie .frame.has-photo .people { margin-top: 2px; }

/* Invitație telefon: fotografie în arcadă, sus */
.p-telefon .arch.has-photo { padding: 0 24px 22px; gap: 8px; overflow: hidden; }
.p-telefon .arch.has-photo .photo { width: calc(100% + 48px); margin: 0 -24px 4px; height: 220px; border-radius: 180px 180px 0 0; }
.p-telefon .arch.has-photo .body { font-size: 13px; line-height: 1.45; }
.p-telefon .arch.has-photo .date { font-size: 20px; }
.p-telefon .addr { font-size: 11.5px; }

/* Panou: fotografie rotundă mare */
.p-panou .arch.has-photo { padding-top: 64px; gap: 16px; }
.p-panou .arch.has-photo .photo { width: 300px; height: 300px; border-radius: 50%; border: 2px solid var(--accent); }
.p-panou .arch.has-photo .title { font-size: 64px; }

/* Invitație A5: oameni pe două coloane, nume lungi pe mai multe rânduri */
.p-invitatie .people > div { max-width: 210px; }
.p-invitatie .people .serif { text-wrap: balance; line-height: 1.25; }

/* ---------- Meniu: se adaptează la numărul de feluri (max 10) ---------- */
.p-meniu .frame.size-s { gap: 13px; }
.p-meniu .frame.size-s .course .serif { font-size: 16px; }
.p-meniu .frame.size-xs { gap: 12px; padding-top: 30px; padding-bottom: 26px; }
.p-meniu .frame.size-xs .title { font-size: 38px; }
.p-meniu .frame.size-xs .sub { font-size: 24px; }
.p-meniu .frame.size-xs .course { gap: 2px; }
.p-meniu .frame.size-xs .course .caps { font-size: 10px; }
.p-meniu .frame.size-xs .course .serif { font-size: 15.5px; line-height: 1.3; }
.p-asezare .cont { font-size: .5em; color: #6B645C; }

/* ---------- Limba secundară ---------- */
.p-meniu .course .cat2 { color: #8C847A; }
.p-numere .sec2 { font-size: 13px; color: #6B645C; letter-spacing: .3em; }
.p-invitatie .frame.bi { gap: 12px; }
.p-invitatie .frame.bi.has-photo { gap: 8px; }

/* Card nași: mesaj bilingv sau lung */
.p-nasi .msg2 { font-size: 16px; line-height: 1.45; margin-top: 10px; }
.p-nasi .frame.long { gap: 12px; padding-top: 30px; padding-bottom: 30px; }
.p-nasi .frame.long .script { font-size: 46px; }
.p-nasi .frame.long .msg { font-size: 19px; }
.p-nasi .frame.xlong .msg { font-size: 16px; line-height: 1.45; }

/* ---------- Carduri de confirmare (RSVP), 4 pe A4 ---------- */
.p-rsvp { width: 794px; height: 1123px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.p-rsvp .cell { padding: 22px; border-right: 1px dashed #B9B0A2; border-bottom: 1px dashed #B9B0A2; }
.p-rsvp .cell:nth-child(2n) { border-right: 0; }
.p-rsvp .cell:nth-child(n+3) { border-bottom: 0; }
.p-rsvp .card { width: 100%; height: 100%; border: 1px solid var(--accent); padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.p-rsvp .head { text-align: center; display: flex; flex-direction: column; gap: 3px; }
.p-rsvp .head .script { font-size: 40px; }
.p-rsvp .head .sub { font-size: 16px; }
.p-rsvp .head .reply { font-size: 12px; color: #5A544D; }
.p-rsvp .field { display: flex; align-items: flex-end; gap: 8px; font-size: 12.5px; }
.p-rsvp .field.col { flex-direction: column; align-items: stretch; gap: 14px; }
.p-rsvp .field .ln { flex: 1 1 auto; border-bottom: 1px solid #8C847A; height: 16px; }
.p-rsvp .field .ln.short { min-width: 40px; }
.p-rsvp .row2 { display: flex; gap: 18px; }
.p-rsvp .row2 .field { flex: 1 1 0; }
.p-rsvp .opts { display: flex; flex-direction: column; gap: 6px; }
.p-rsvp .opt { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.p-rsvp .box { flex: none; width: 13px; height: 13px; border: 1.5px solid var(--accent); }
.p-rsvp .sec2, .p-numere .sec2x { color: #6B645C; font-family: 'Cormorant Garamond', serif; font-style: italic; letter-spacing: 0; }
.p-rsvp .qrrow { margin-top: auto; display: flex; gap: 12px; align-items: center; }
.p-rsvp .qr { flex: none; }
.p-rsvp .qrtxt { font-size: 11px; line-height: 1.45; color: #5A544D; }
.p-rsvp .qrtxt b { color: #2E2A26; font-weight: 500; }
.p-rsvp .qrtxt.center { margin-top: auto; text-align: center; }

/* ---------- Liste pentru familie: confirmări și daruri ---------- */
.p-confirmari, .p-daruri { width: 794px; height: 1123px; padding: 56px 52px 52px; display: flex; flex-direction: column; gap: 18px; }
.p-confirmari .lhead, .p-daruri .lhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.p-confirmari h1, .p-daruri h1 { margin: 2px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 40px; line-height: 1; }
.p-confirmari .meta, .p-daruri .meta { font-size: 12px; text-align: right; color: #5A544D; line-height: 1.6; }
.p-confirmari table, .p-daruri table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.p-confirmari th, .p-daruri th {
  text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  border-bottom: 1.5px solid var(--accent); padding: 0 6px 8px; height: 26px;
}
.p-confirmari td, .p-daruri td { height: var(--rowh); border-bottom: 1px solid #CFC7BA; padding: 0 6px; vertical-align: middle; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.p-confirmari .c, .p-daruri .c { text-align: center; }
.p-confirmari .num, .p-daruri .num { color: #8C847A; font-size: 11px; }
.p-confirmari .box, .p-daruri .box { display: inline-block; width: 13px; height: 13px; border: 1.5px solid var(--accent); vertical-align: middle; }
.p-daruri td + td + td + td + td, .p-daruri td:last-child { border-left: 1px solid #E6DFD3; }
