/* Rozpočet svadby: svadobné oznámenie (slonovinový papier, zlaté rohy, prstene), polia ako riadky na dopísanie,
   výsledok ako zlatá suma + menovka hosťa a zasadací poriadok okrúhlych stolov podľa počtu hostí */
body.mk-wed{--wd-paper:#fcf8f0;--wd-paper2:#f5eee0;--wd-gold:#9a7535;--wd-gold-l:#cfb07a;--wd-sage:#5f7a55;--wd-sage-l:#b9c9ae;--wd-blush:#efd3cd;--wd-ink:#3b3127;--wd-mut:#6d6051;--wd-chair:#ffffff}
@media(prefers-color-scheme:dark){body.mk-wed{--wd-paper:#2b2723;--wd-paper2:#332e29;--wd-gold:#e2c48c;--wd-gold-l:#8d7447;--wd-sage:#b5cda7;--wd-sage-l:#4f6247;--wd-blush:#5d4340;--wd-ink:#f3eadb;--wd-mut:#cdbfa9;--wd-chair:#3a342e}}
.mk-wed{--wd-corner:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='74' fill='none' stroke='%23b8935a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 70V20Q6 6 20 6H70'/%3E%3Cpath d='M12 70V26Q12 12 26 12H70' stroke-width='.8'/%3E%3Cpath d='M20 20c10-2 16 4 14 12-2 7-11 6-11 0 0-4 5-5 7-2'/%3E%3Cpath d='M38 14c5 4 12 4 16 0M14 38c4 5 4 12 0 16'/%3E%3Ccircle cx='20' cy='20' r='2.2' fill='%23b8935a'/%3E%3C/svg%3E")}

/* karta: ľavý horný roh je pozadie, ostatné tri rohy sú zrkadlené pseudo-prvky a jeden prázdny prvok */
body.mk-wed.lay-receipt .calc2{position:relative;display:block;max-width:720px;margin:0 auto;padding:2.6rem 2.6rem 2rem;border-radius:4px;color:var(--wd-ink);
  background:var(--wd-corner) left 10px top 10px/74px no-repeat,repeating-linear-gradient(45deg,transparent 0 3px,color-mix(in srgb,var(--wd-gold) 5%,transparent) 3px 4px),var(--wd-paper);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--wd-gold) 40%,transparent),0 18px 40px -18px rgba(60,40,10,.35),0 2px 6px rgba(60,40,10,.08)}
body.mk-wed .calc2::before,body.mk-wed .calc2::after,body.mk-wed .wd-c3{content:"";position:absolute;width:74px;height:74px;background:var(--wd-corner) 0 0/100% no-repeat;pointer-events:none}
body.mk-wed .calc2::before{right:10px;top:10px;transform:scaleX(-1)}
body.mk-wed .calc2::after{right:10px;bottom:10px;transform:scale(-1,-1)}
body.mk-wed .wd-c3{left:10px;bottom:10px;transform:scaleY(-1)}
body.mk-wed.lay-receipt .cform,body.mk-wed.lay-receipt .cres{max-width:none;width:100%;background:none;border:0;box-shadow:none;padding:0;border-radius:0}

/* hlavička oznámenia */
.mk-wed .wd-crest{display:block;width:150px;height:auto;margin:-.6rem auto .4rem}
.mk-wed .wd-crest .ring{fill:none;stroke:var(--wd-gold);stroke-width:3}
.mk-wed .wd-crest .leaf{fill:var(--wd-sage)}
.mk-wed .wd-crest .stem{fill:none;stroke:var(--wd-sage);stroke-width:1.5}
.mk-wed .wd-crest .gem{fill:var(--wd-blush);stroke:var(--wd-gold);stroke-width:1.2}
.mk-wed .zhead{justify-content:center;gap:1.2rem}
.mk-wed .chip[data-fill]{background:transparent;color:var(--wd-gold);border:1px solid var(--wd-gold-l);font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:400;letter-spacing:.02em}
.mk-wed .chip[data-fill]:hover{background:color-mix(in srgb,var(--wd-gold) 10%,transparent);border-color:var(--wd-gold)}
.mk-wed .zreset{color:var(--wd-mut);font-family:Georgia,serif;font-style:italic}

/* polia ako riadky na dopísanie */
body.mk-wed.lay-receipt .cform .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem 2rem}
.mk-wed .cform .field>label{display:block;text-align:center;font:600 .74rem/1.3 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.2em;color:var(--wd-sage)}
body.mk-wed.lay-receipt .cform input{background:transparent;border:0;border-bottom:1.5px solid var(--wd-gold-l);border-radius:0;padding:.35rem .3rem .4rem;text-align:center;font:italic 400 1.6rem/1.2 Georgia,"Palatino Linotype","Times New Roman",serif;color:var(--wd-ink);box-shadow:none}
body.mk-wed.lay-receipt .cform input::placeholder{color:color-mix(in srgb,var(--wd-mut) 70%,transparent);font-size:1.15rem}
body.mk-wed.lay-receipt .cform input:focus{border-bottom-color:var(--wd-gold);box-shadow:0 2px 0 0 var(--wd-gold)}
body.mk-wed.lay-receipt .cform input:focus-visible{outline:1px dashed var(--wd-gold);outline-offset:3px}
.mk-wed .cform .iu .unit{border:0;border-bottom:1.5px solid var(--wd-gold-l);border-radius:0;background:transparent;color:var(--wd-gold);font:italic 1.3rem Georgia,serif;padding:0 .2rem}
.mk-wed .cform .iu input{border-radius:0}
.mk-wed .field .err{text-align:center}

/* oddeľovač */
.mk-wed .wd-rule{display:flex;align-items:center;gap:.8rem;margin:1.6rem 0 1rem;color:var(--wd-gold)}
.mk-wed .wd-rule::before,.mk-wed .wd-rule::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--wd-gold-l))}
.mk-wed .wd-rule::after{background:linear-gradient(90deg,var(--wd-gold-l),transparent)}
.mk-wed .wd-rule svg{width:46px;height:14px;fill:none;stroke:currentColor;stroke-width:1.3}

/* výsledok */
body.mk-wed.lay-receipt .cres{border-top:0}
.mk-wed .cres-head{justify-content:center}
.mk-wed .cres-head h2{font:italic 400 1.15rem Georgia,serif;letter-spacing:.04em;text-transform:none;color:var(--wd-gold)}
.mk-wed .cres .empty{text-align:center;font-family:Georgia,serif;font-style:italic;color:var(--wd-mut)}
body.mk-wed.lay-receipt dl#out{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:1.4rem;margin:.6rem 0 .4rem}
body.mk-wed.lay-receipt .tile,body.mk-wed.lay-receipt .tile:first-child{display:block;order:0;grid-column:auto;padding:0;border:0;background:none;text-align:center}
body.mk-wed.lay-receipt .tile:first-child dt{font:600 .74rem system-ui,sans-serif;text-transform:uppercase;letter-spacing:.2em;color:var(--wd-sage)}
body.mk-wed.lay-receipt .tile:first-child dd{margin:.3rem 0 0;text-align:center;font:italic 400 clamp(2.4rem,7vw,3.4rem)/1.1 Georgia,"Palatino Linotype",serif;letter-spacing:0;color:var(--wd-gold);background:none;-webkit-text-fill-color:currentColor}
/* menovka hosťa (zložená kartička) */
body.mk-wed.lay-receipt .tile:nth-child(2){position:relative;padding:1.05rem .8rem .9rem;background:linear-gradient(180deg,var(--wd-paper2) 0 50%,var(--wd-paper) 50%);border:1px solid var(--wd-gold-l);border-radius:3px;box-shadow:0 10px 18px -12px rgba(60,40,10,.45);transform:rotate(-2.5deg)}
body.mk-wed.lay-receipt .tile:nth-child(2)::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed color-mix(in srgb,var(--wd-gold) 45%,transparent)}
body.mk-wed.lay-receipt .tile:nth-child(2)::after{content:"";position:absolute;left:50%;top:-9px;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:radial-gradient(circle at 40% 35%,color-mix(in srgb,var(--wd-blush) 60%,#fff),var(--wd-blush) 60%);border:1px solid var(--wd-gold-l)}
body.mk-wed.lay-receipt .tile:nth-child(2) dt{position:relative;font:600 .7rem system-ui,sans-serif;text-transform:uppercase;letter-spacing:.18em;color:var(--wd-sage)}
body.mk-wed.lay-receipt .tile:nth-child(2) dd{position:relative;margin:.55rem 0 0;text-align:center;font:italic 400 1.55rem Georgia,serif;color:var(--wd-ink)}

/* zasadací poriadok */
.mk-wed .wd-seat{margin:1.2rem 0 .4rem;padding:1rem .6rem .6rem;border:1px solid color-mix(in srgb,var(--wd-gold) 35%,transparent);border-radius:999px 999px 18px 18px/60px 60px 18px 18px;background:color-mix(in srgb,var(--wd-sage-l) 18%,transparent)}
.mk-wed .wd-seat svg{display:block;width:100%;height:auto}
.mk-wed .wd-seat .tb{fill:var(--wd-paper);stroke:var(--wd-gold);stroke-width:1.5}
.mk-wed .wd-seat .tb.more{stroke-dasharray:4 3;fill:none}
.mk-wed .wd-seat .ch{fill:var(--wd-chair);stroke:var(--wd-sage);stroke-width:1.3}
.mk-wed .wd-seat .ch.on{fill:var(--wd-sage)}
.mk-wed .wd-seat .no{fill:var(--wd-gold);font:italic 13px Georgia,serif}
.mk-wed .wd-seat .head{fill:var(--wd-blush);stroke:var(--wd-gold);stroke-width:1.5}
.mk-wed .wd-seat .ring{fill:none;stroke:var(--wd-gold);stroke-width:1.6}
.mk-wed .wd-seat .ch.cp{fill:var(--wd-gold);stroke:var(--wd-gold)}
.mk-wed .wd-seat.is-example{opacity:.62}
.mk-wed .wd-seat g.t{opacity:0;animation:wd-in .45s ease forwards}
@keyframes wd-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.mk-wed .wd-seat g.t{animation:none;opacity:1}}

.mk-wed .cres .priv{text-align:center;color:var(--wd-mut);font-style:italic;font-family:Georgia,serif}
body.mk-wed.lay-receipt .cres-actions{justify-content:center}
.mk-wed .cres-actions .btn-ghost{border-color:var(--wd-gold-l);color:var(--wd-ink);border-radius:999px}
.mk-wed .cres-actions .btn-ghost:hover{background:color-mix(in srgb,var(--wd-gold) 10%,transparent)}
.mk-wed .cres details{background:color-mix(in srgb,var(--wd-paper2) 70%,transparent);border-color:color-mix(in srgb,var(--wd-gold) 30%,transparent);border-radius:4px}
.mk-wed .cres .dec select{background:transparent;border-color:var(--wd-gold-l)}

@media(max-width:560px){
  body.mk-wed.lay-receipt .calc2{padding:2rem 1.05rem 1.6rem}
  body.mk-wed .calc2::before,body.mk-wed .calc2::after,body.mk-wed .wd-c3{width:52px;height:52px}
  body.mk-wed.lay-receipt .calc2{background-size:52px,auto,auto}
  body.mk-wed.lay-receipt .cform .fields{grid-template-columns:1fr 1fr;gap:.2rem 1rem}
  body.mk-wed.lay-receipt .cform input{font-size:1.35rem}
  body.mk-wed.lay-receipt dl#out{grid-template-columns:1fr;gap:1.4rem}
  body.mk-wed.lay-receipt .tile:nth-child(2){max-width:250px;width:100%;margin:0 auto}
  .mk-wed .wd-seat{border-radius:40px 40px 14px 14px}
}
@media(max-width:360px){body.mk-wed.lay-receipt .cform .fields{grid-template-columns:1fr}}
