/* Приглашения: 2 или 4 карточки на весь лист, линии разреза по стыкам; размеры текста — в em от .iv-main (подгонка в app.js) */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap");

.iv-field { display: flex; flex-direction: column; gap: 2px; font-size: 14px; margin-bottom: 6px; }
.iv-field input, .iv-field textarea { font: 16px var(--body); padding: 6px 8px; border: 1.5px solid #d9cfb8; border-radius: 8px; resize: vertical; }
.iv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#iv-copies-box[hidden] { display: none; }

.sheet.bare .sheet-body { display: block; }
.iv-sheet { width: 100%; height: 100%; display: grid; position: relative; }
.iv-s2 { grid-template-rows: 1fr 1fr; }
.iv-s4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.iv-sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: .3mm dashed #b0a890; z-index: 3; }
.iv-s4::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: .3mm dashed #b0a890; z-index: 3; }
.iv-card { position: relative; overflow: hidden; min-width: 0; min-height: 0; }
.iv-frame { position: absolute; inset: 5mm; border-radius: 5mm; background: linear-gradient(160deg, var(--bg1), var(--bg2)); border: .45mm solid var(--b); overflow: hidden; }
.iv-gar { position: absolute; left: 4mm; right: 4mm; top: 0; width: calc(100% - 8mm); height: 11mm; }
.iv-art { position: absolute; object-fit: contain; mix-blend-mode: multiply; }
.iv-seal { position: absolute; border: 1mm double var(--b); border-radius: 50%; background: #fffdf5; color: var(--a); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.iv-seal b { font: 600 1em/1 "Fredoka", var(--head); }
.iv-seal small { font: 700 .3em/1 var(--body); margin-top: .5mm; }
.iv-main { position: absolute; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #3a3226; overflow-wrap: anywhere; }
.iv-t1 { font: 600 2.5em/1 "Fredoka", var(--head); color: var(--a); }
.iv-t2 { font: 800 .78em/1.2 var(--body); color: var(--b); letter-spacing: .06em; text-transform: uppercase; margin-top: .4em; }
.iv-greet { font: 700 1.7em/1.1 "Caveat", cursive; margin-top: .45em; }
.iv-text { font-size: 1em; line-height: 1.32; margin-top: .25em; }
.iv-rows { display: flex; flex-direction: column; gap: .35em; margin-top: .6em; font-size: .9em; }
.iv-row { display: flex; align-items: flex-end; gap: .6em; border-bottom: .2mm dotted #b5a889; padding-bottom: .15em; min-height: 1.5em; }
.iv-lbl { flex: none; min-width: 4.6em; font-size: .72em; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #72674f; }
.iv-val { font-weight: 700; min-width: 0; }
.iv-line { flex: 1; }
.iv-sign { font: 700 1.5em/1.1 "Caveat", cursive; margin-top: .45em; color: var(--a); }
.lang-ko .iv-t1 { font-family: "Jua", var(--head); font-weight: 400; letter-spacing: .1em; }
.lang-ko .iv-greet, .lang-ko .iv-sign { font-family: "Jua", var(--head); font-weight: 400; font-size: 1.35em; }
.lang-ko .iv-t2 { text-transform: none; letter-spacing: 0; }

/* 2 на листе: карточка альбомная, текст слева, картинка справа */
.iv-2 .iv-main { left: 9mm; top: 11mm; bottom: 6mm; right: 78mm; font-size: 12.5pt; }
.iv-2 .iv-art { right: 5mm; bottom: 5mm; width: 70mm; height: 70mm; }
.iv-2 .iv-seal { right: 7mm; top: 13mm; width: 24mm; height: 24mm; font-size: 26pt; }
/* 4 на листе: карточка книжная, картинка внизу */
.iv-4 .iv-frame { inset: 4mm; }
.iv-4 .iv-main { left: 6mm; right: 6mm; top: 10mm; bottom: 33mm; font-size: 10.6pt; }
.iv-4 .iv-art { right: 4mm; bottom: 3mm; width: 32mm; height: 32mm; }
.iv-4 .iv-seal { left: 7mm; bottom: 8mm; width: 17mm; height: 17mm; font-size: 18pt; }
.iv-4 .iv-t1 { font-size: 2.3em; }
.iv-row:has(.iv-line) { min-height: 2.2em; }
