/* seating.css — /winietki and /plan-stolow. Real A4 in mm, scaled to fit on screen, 1:1 in print.
   Bar, chips, fields and fonts come from print-cards.css. */
/* The bar holds the guest list here — too tall to stay pinned over the preview. */
.pc-bar{position:static}
.st-input{width:100%;min-height:9rem;font:inherit;font-size:.9rem;padding:8px 10px;border:1px solid #d9ccb8;border-radius:8px;background:#fff;color:var(--ink);resize:vertical}
.st-stage{padding:24px 16px 48px;display:flex;flex-direction:column;align-items:center;gap:24px;overflow:hidden}
.st-wrap{width:calc(210mm * var(--fit,1));height:calc(297mm * var(--fit,1))}
.st-sheet{width:210mm;height:297mm;background:#fff;box-shadow:0 10px 40px rgba(0,0,0,.15);transform:scale(var(--fit,1));transform-origin:0 0;
  position:relative;overflow:hidden;color:#3a2f26;box-sizing:border-box}
.st-sheet *{box-sizing:border-box}

/* Place cards: 2 × 5 per A4, 105 × 59.4 mm, cut lines between. */
.st-sheet.cards{display:grid;grid-template:repeat(5,59.4mm)/repeat(2,105mm)}
.st-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6mm 8mm;
  border-right:.2mm dashed #d6ccbf;border-bottom:.2mm dashed #d6ccbf}
.st-card .nm{font-size:calc(9mm * var(--nm-k,1));line-height:1.05}
.st-card .ev{font-size:3mm;letter-spacing:.18em;text-transform:uppercase;margin-top:2.5mm;opacity:.75}
.st-card .tb{font-size:3.4mm;margin-top:1.5mm}
.st-card .qr{position:absolute;right:5mm;bottom:4mm;width:13mm;height:13mm;image-rendering:pixelated}
.st-card .qr + .qrl{position:absolute;right:5mm;bottom:1mm;width:13mm;font-size:1.6mm;text-align:center;opacity:.6}

/* Seating plan poster: title + a grid of tables. */
.st-sheet.plan{padding:16mm 14mm;display:flex;flex-direction:column}
.st-plan-h{text-align:center;margin-bottom:8mm}
.st-plan-h .k{font-size:3.4mm;letter-spacing:.25em;text-transform:uppercase;opacity:.7}
.st-plan-h .t{font-size:13mm;line-height:1.1;margin-top:2mm}
.st-tables{display:grid;grid-template-columns:repeat(var(--cols,3),1fr);gap:6mm;align-content:start;flex:1}
.st-table{border:.3mm solid currentColor;border-radius:3mm;padding:4mm 4mm 5mm;text-align:center;break-inside:avoid}
.st-table h3{margin:0 0 2mm;font-size:6.5mm;font-weight:600}
.st-table p{margin:.8mm 0;font-size:4.6mm}

/* Table numbers: 2 per A4 (A5), big number, optional code. */
.st-sheet.numbers{display:grid;grid-template:repeat(2,148.5mm)/210mm}
.st-num{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4mm;border-bottom:.2mm dashed #d6ccbf;position:relative}
.st-num .w{font-size:5mm;letter-spacing:.3em;text-transform:uppercase;opacity:.75}
.st-num .n{font-size:48mm;line-height:1}
.st-num .qr{width:26mm;height:26mm;image-rendering:pixelated}
.st-num .qrl{font-size:3mm;opacity:.7}

/* Styles — each one dresses the place cards, the plan poster and the table numbers alike. */
/* shared ornaments: a frame inset on each card / number, a short rule under the name */
.st-card::before,.st-num::before{content:'';position:absolute;inset:3.5mm;pointer-events:none;border:0 solid currentColor}
.st-card .nm::after{content:'';display:block;width:12mm;height:.25mm;margin:2.2mm auto 0;background:currentColor;opacity:.45}
.st-sheet.plan::before{content:'';position:absolute;inset:7mm;pointer-events:none;border:0 solid currentColor}

/* Klasyczny — cream, double gold frame, script names */
.s-classic{background:#fbf6ee;color:#3a2f26}
.s-classic .st-card::before,.s-classic .st-num::before,.s-classic.plan::before{border-width:.3mm;border-color:#c4a274}
.s-classic .nm,.s-classic .t,.s-classic .n{font-family:'Great Vibes',cursive;color:#3a2f26}
.s-classic .ev,.s-classic .k,.s-classic .w{font-family:'Cormorant Garamond',serif;font-weight:600;color:#9a7b5f}
.s-classic .tb,.s-classic h3,.s-classic p{font-family:'Cormorant Garamond',serif}
.s-classic .tb{font-style:italic;color:#9a7b5f}
.s-classic .st-table{color:#c4a274}
.s-classic .st-table h3,.s-classic .st-table p{color:#3a2f26}

/* Elegancki — ivory, hairline frame, italic serif */
.s-serif{background:#f6f2ea;color:#2b2a26}
.s-serif .st-card::before,.s-serif .st-num::before,.s-serif.plan::before{border-width:.2mm;border-color:#8c8270}
.s-serif .nm,.s-serif .t,.s-serif .n{font-family:'Instrument Serif',serif;font-style:italic}
.s-serif .ev,.s-serif .k,.s-serif .w,.s-serif .tb,.s-serif h3,.s-serif p{font-family:'Instrument Serif',serif}
.s-serif .tb{letter-spacing:.12em;text-transform:uppercase;font-size:2.6mm}

/* Nowoczesny — white, copper bar, sans caps, left-aligned cards */
.s-modern{background:#fff;color:#1f1f1f}
.s-modern .st-card{align-items:flex-start;text-align:left;padding-left:12mm}
.s-modern .st-card::before{inset:6mm auto 6mm 6mm;width:1.2mm;background:#B66C45;border:0}
.s-modern .st-card .nm::after{margin:2mm 0 0;background:#B66C45;opacity:1}
.s-modern .nm,.s-modern .t,.s-modern .n{font-family:'Marcellus',serif;letter-spacing:.04em}
.s-modern .nm{font-size:calc(7mm * var(--nm-k,1));text-transform:uppercase}
.s-modern .ev,.s-modern .k,.s-modern .w,.s-modern .tb,.s-modern h3,.s-modern p{font-family:Inter,system-ui,sans-serif}
.s-modern .tb{font-weight:700;color:#B66C45}
.s-modern .st-table{border-radius:0;border-width:.4mm}

/* Botaniczny — sage, a leaf sprig in the corner */
.s-botanic{background:#f3f6ee;color:#2f3b2c}
.s-botanic .st-card::before,.s-botanic .st-num::before,.s-botanic.plan::before{border-width:.25mm;border-color:#9bb08a}
.s-botanic .st-card::after{content:'';position:absolute;top:2mm;left:2mm;width:16mm;height:16mm;opacity:.85;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M4 76 C30 60 52 40 76 6' fill='none' stroke='%238fa37f' stroke-width='1.4'/%3E%3Cg fill='%238fa37f'%3E%3Cellipse cx='18' cy='64' rx='7' ry='3' transform='rotate(-30 18 64)'/%3E%3Cellipse cx='30' cy='50' rx='8' ry='3.2' transform='rotate(20 30 50)'/%3E%3Cellipse cx='44' cy='36' rx='8' ry='3.2' transform='rotate(-40 44 36)'/%3E%3Cellipse cx='58' cy='24' rx='7' ry='3' transform='rotate(15 58 24)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain}
.s-botanic .nm,.s-botanic .t,.s-botanic .n{font-family:'Cormorant Garamond',serif;font-style:italic;font-weight:500}
.s-botanic .ev,.s-botanic .k,.s-botanic .w,.s-botanic .tb,.s-botanic h3,.s-botanic p{font-family:'Cormorant Garamond',serif}
.s-botanic .ev,.s-botanic .k,.s-botanic .w,.s-botanic .tb{color:#6b7f5e}
.s-botanic .st-table{color:#9bb08a}
.s-botanic .st-table h3,.s-botanic .st-table p{color:#2f3b2c}

/* Noc — navy and gold */
.s-night{background:#17213a;color:#efe2c4}
.s-night .st-card::before,.s-night .st-num::before,.s-night.plan::before{border-width:.3mm;border-color:#c9a86a}
.s-night .nm,.s-night .t,.s-night .n{font-family:'Great Vibes',cursive;color:#f1e3c2}
.s-night .ev,.s-night .k,.s-night .w,.s-night .tb,.s-night h3,.s-night p{font-family:'Cormorant Garamond',serif}
.s-night .ev,.s-night .k,.s-night .w,.s-night .tb{color:#c9a86a}
.s-night .st-table{color:#c9a86a}
.s-night .st-table h3,.s-night .st-table p{color:#efe2c4}
.s-night .qr{background:#fff;padding:.6mm;border-radius:.6mm}
.s-night .st-card{border-color:rgba(255,255,255,.15)}

/* Róż — blush, rose script, a small heart above the name */
.s-blush{background:#f9ebe8;color:#7c3f48}
.s-blush .st-card::before,.s-blush .st-num::before,.s-blush.plan::before{border-width:.25mm;border-color:#d7a3a9}
.s-blush .st-card .nm::before{content:'\2665';display:block;font-family:Inter,sans-serif;font-size:3mm;color:#c98a91;margin-bottom:1.5mm}
.s-blush .nm,.s-blush .t,.s-blush .n{font-family:'Great Vibes',cursive;color:#8a4652}
.s-blush .ev,.s-blush .k,.s-blush .w,.s-blush .tb,.s-blush h3,.s-blush p{font-family:'Cormorant Garamond',serif}
.s-blush .ev,.s-blush .k,.s-blush .w,.s-blush .tb{color:#b36f79}
.s-blush .st-table{color:#d7a3a9}
.s-blush .st-table h3,.s-blush .st-table p{color:#7c3f48}

/* Meal / diet line under the table */
.st-card .ml{font-size:2.8mm;margin-top:1.2mm;padding:.5mm 2.2mm;border-radius:99mm;border:.2mm solid currentColor;opacity:.8;font-family:Inter,system-ui,sans-serif}

/* Folded tent cards: 6 per A4 (105 × 99 mm, 49.5 mm tall once folded). The top
   half is upside down so the name reads from both sides; the frame sits on the front. */
.st-sheet.cards.fold{grid-template:repeat(3,99mm)/repeat(2,105mm)}
.st-card.st-fold{padding:0;display:grid;grid-template-rows:1fr 1fr;justify-content:stretch;align-items:stretch}
.st-fold .half{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:4mm 8mm;min-height:0}
.st-fold .back{transform:rotate(180deg)}
.st-fold .back .nm::after{display:none}
.st-fold .front{border-top:.2mm dashed rgba(0,0,0,.28)}
.st-card.st-fold::before{inset:53mm 3.5mm 3.5mm}
.st-fold .front .qr{bottom:5mm}
.s-modern .st-fold .half{align-items:flex-start;text-align:left;padding-left:12mm}
.s-modern .st-card.st-fold::before{inset:55mm auto 6mm 6mm}

/* Akwarela — soft pink and sage washes, script names */
.s-floral{color:#5a4646;background:
  radial-gradient(55% 45% at 10% 8%,rgba(236,170,180,.45),transparent 70%),
  radial-gradient(50% 40% at 92% 95%,rgba(160,190,150,.45),transparent 70%),#fffaf7}
.s-floral .st-card,.s-floral .st-num{background:
  radial-gradient(40% 50% at 8% 10%,rgba(236,170,180,.35),transparent 70%),
  radial-gradient(40% 50% at 95% 92%,rgba(160,190,150,.35),transparent 70%)}
.s-floral .nm,.s-floral .t,.s-floral .n{font-family:'Great Vibes',cursive;color:#6b4650}
.s-floral .ev,.s-floral .k,.s-floral .w,.s-floral .tb,.s-floral h3,.s-floral p{font-family:'Cormorant Garamond',serif}
.s-floral .ev,.s-floral .k,.s-floral .w,.s-floral .tb{color:#8a7a5a}
.s-floral .st-table{color:#d4a7ae}
.s-floral .st-table h3,.s-floral .st-table p{color:#5a4646}

/* Komunia — white, fine gold frame, a small cross above the name */
.s-communion{background:#fff;color:#3c3326}
.s-communion .st-card::before,.s-communion .st-num::before,.s-communion.plan::before{border-width:.25mm;border-color:#c8a868}
.s-communion .st-card .nm::before,.s-communion .st-num .n::before{content:'\271D';display:block;font-family:'Cormorant Garamond',serif;font-size:4mm;color:#b8975a;margin-bottom:1mm}
.s-communion .nm,.s-communion .t,.s-communion .n{font-family:'Cormorant Garamond',serif;font-style:italic;font-weight:500}
.s-communion .ev,.s-communion .k,.s-communion .w,.s-communion .tb,.s-communion h3,.s-communion p{font-family:'Cormorant Garamond',serif}
.s-communion .ev,.s-communion .k,.s-communion .w,.s-communion .tb{color:#a8823f}
.s-communion .st-table{color:#c8a868}
.s-communion .st-table h3,.s-communion .st-table p{color:#3c3326}

/* Chrzest — pale blue, dotted frame, a star above the name */
.s-baptism{background:#eef5fb;color:#2f4f6f}
.s-baptism .st-card::before,.s-baptism .st-num::before,.s-baptism.plan::before{border-width:.35mm;border-style:dotted;border-color:#8fb3d3}
.s-baptism .st-card .nm::before{content:'\2726';display:block;font-family:Inter,sans-serif;font-size:3mm;color:#8fb3d3;margin-bottom:1.2mm}
.s-baptism .nm,.s-baptism .t,.s-baptism .n{font-family:'Great Vibes',cursive;color:#33597f}
.s-baptism .ev,.s-baptism .k,.s-baptism .w,.s-baptism .tb,.s-baptism h3,.s-baptism p{font-family:'Marcellus',serif}
.s-baptism .ev,.s-baptism .k,.s-baptism .w,.s-baptism .tb{color:#6a8fb3}
.s-baptism .st-table{color:#8fb3d3}
.s-baptism .st-table h3,.s-baptism .st-table p{color:#2f4f6f}

/* Urodziny — confetti on white, bold colourful names */
.s-birthday{color:#2c2c3a;background:#fff}
.s-birthday .st-card,.s-birthday .st-num,.s-birthday.plan{background:
  radial-gradient(circle at 12% 18%,#f4a3b4 0 1.1mm,transparent 1.2mm),
  radial-gradient(circle at 86% 14%,#8ec5e8 0 .9mm,transparent 1mm),
  radial-gradient(circle at 92% 70%,#f7cf6b 0 1.2mm,transparent 1.3mm),
  radial-gradient(circle at 8% 82%,#9ad3a8 0 1mm,transparent 1.1mm),
  radial-gradient(circle at 30% 92%,#c6a6e8 0 .8mm,transparent .9mm),
  radial-gradient(circle at 70% 8%,#f7a86b 0 .8mm,transparent .9mm),#fff}
.s-birthday .nm,.s-birthday .t,.s-birthday .n{font-family:'Marcellus',serif;font-weight:700;color:#d24d6b;letter-spacing:.02em}
.s-birthday .ev,.s-birthday .k,.s-birthday .w,.s-birthday .tb,.s-birthday h3,.s-birthday p{font-family:Inter,system-ui,sans-serif}
.s-birthday .tb{font-weight:700;color:#3a8fc4}
.s-birthday .st-table{color:#f4a3b4;border-radius:5mm}

.st-empty{color:var(--muted);padding:2rem;text-align:center}

@media print{
  @page{size:A4;margin:0}
  body{background:#fff}
  .pc-bar,.pc-hint,.pc-seo,.st-empty{display:none!important}
  .st-stage{padding:0;gap:0;display:block}
  .st-wrap{width:auto;height:auto;break-after:page}
  .st-wrap:last-child{break-after:auto}
  .st-sheet{transform:none;box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .st-panel[hidden]{display:none!important}
}
