/* Khitanan Mihrab — emerald mihrab frame, pale watercolor, and quiet gold. */
body.theme-khitanan-mihrab{--radius:18px;--on-primary:#fffdf7;background-color:var(--bg)}

/* Preserve the full portrait composition, including its gilded outer frame. */
.theme-khitanan-mihrab .cover{padding:clamp(18px,4vh,34px) clamp(16px,4vw,32px);background:#123f35 url('/themes/khitanan-mihrab/cover-poster.jpg') center/contain no-repeat;color:var(--text)}
.theme-khitanan-mihrab .cover__bg{background:#123f35 url('/themes/khitanan-mihrab/cover-poster.jpg') center/contain no-repeat}
.theme-khitanan-mihrab .khitanan-mihrab-motion{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none}
.theme-khitanan-mihrab .cover__inner{box-sizing:border-box;width:min(100%,440px);height:100%;max-width:440px;padding:clamp(52px,7vh,78px) 4px 0;justify-content:flex-start;animation:fadeUp 1s .15s both}
.theme-khitanan-mihrab .cover__label{margin:0 0 .35rem;color:#3c5c4b;letter-spacing:.25em;font-size:.68rem}
.theme-khitanan-mihrab .cover__frame{width:78px;height:78px;margin:0 0 .55rem;border:2px solid #b18e4d;outline:1px solid #8b6b32;outline-offset:4px;box-shadow:0 7px 18px rgba(36,55,43,.15)}
.theme-khitanan-mihrab .cover__title{max-width:100%;margin:0;color:#263c33;font-size:clamp(1.75rem,7vw,2.45rem);line-height:1.04;text-wrap:balance;text-shadow:0 1px 2px rgba(255,253,247,.5)}
.theme-khitanan-mihrab .cover__date{margin:.35rem 0 .5rem;color:#765a2b;letter-spacing:.15em;font-size:.82rem}
.theme-khitanan-mihrab .khitanan-mihrab-cover-photo{display:block;width:clamp(104px,30vw,128px);height:clamp(120px,18vh,150px);margin:0 0 .1rem;object-fit:cover;object-position:center 24%;border:3px solid #fff9eb;border-radius:52px 52px 17px 17px;outline:1px solid #b18e4d;box-shadow:0 6px 18px rgba(36,55,43,.2)}
.theme-khitanan-mihrab .cover__guest{width:min(100%,280px);margin:.55rem 0 0;padding:8px 12px;border:1px solid rgba(138,104,47,.38);border-radius:14px;background:rgba(255,253,247,.84);color:#405448;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.theme-khitanan-mihrab .cover__guest p{font-size:.78rem}
.theme-khitanan-mihrab .cover__to{color:#263c33;font-size:1.15rem}
.theme-khitanan-mihrab .cover__guest small{display:block;font-size:.65rem}
.theme-khitanan-mihrab .cover__inner>.btn{min-height:46px;margin-top:.9rem;padding:11px 23px;border:1px solid #0d493b;border-radius:999px;background:#145c4a;color:#fffdf7;box-shadow:0 7px 18px rgba(20,63,52,.2);letter-spacing:.08em}
.theme-khitanan-mihrab .cover__inner>.btn:hover{background:#0f4b3d}
.theme-khitanan-mihrab .cover__corner{display:none}

/* Ivory paper and restrained emerald/gold details continue through the invite. */
.theme-khitanan-mihrab .main{background-color:var(--bg);background-image:radial-gradient(ellipse at 9% 8%,rgba(67,112,84,.09),transparent 34%),radial-gradient(ellipse at 92% 90%,rgba(190,160,94,.08),transparent 32%)}
.theme-khitanan-mihrab .sec:nth-of-type(even):not(.hero){background:linear-gradient(180deg,transparent,rgba(255,253,247,.6) 18%,rgba(255,253,247,.6) 82%,transparent)}
.theme-khitanan-mihrab .sec__title,.theme-khitanan-mihrab .event__name,.theme-khitanan-mihrab .timeline__date{color:#765a2b}
.theme-khitanan-mihrab .hero__title,.theme-khitanan-mihrab .person__nick,.theme-khitanan-mihrab .closing__title,.theme-khitanan-mihrab .side__title{color:#29483a}
.theme-khitanan-mihrab .eyebrow,.theme-khitanan-mihrab .closing__thanks{color:#476b55;letter-spacing:.2em}
.theme-khitanan-mihrab .event,.theme-khitanan-mihrab .quote__box,.theme-khitanan-mihrab .card,.theme-khitanan-mihrab .countdown div,.theme-khitanan-mihrab .wish{background:rgba(255,253,247,.92);border:1px solid rgba(158,128,66,.3);box-shadow:0 12px 30px -22px rgba(49,59,43,.32)}
.theme-khitanan-mihrab .event__num,.theme-khitanan-mihrab .countdown b{color:#765a2b}
.theme-khitanan-mihrab .btn--primary{background:#145c4a;border-color:#0d493b;color:#fffdf7}
.theme-khitanan-mihrab .btn--primary:hover{background:#0f4b3d}
.theme-khitanan-mihrab .btn--ghost{border-color:rgba(20,92,74,.55);color:#145c4a}
.theme-khitanan-mihrab .timeline li::before{background:#8a682f}
.theme-khitanan-mihrab .bottom-nav{background:rgba(255,253,247,.96);border-top:1px solid rgba(158,128,66,.3)}
.theme-khitanan-mihrab .gift__qr{background:#fff}
.theme-khitanan-mihrab .toast{background:#145c4a;color:#fffdf7}

@media(min-width:900px){
  .theme-khitanan-mihrab .side{background-color:#123f35!important;background-image:linear-gradient(180deg,rgba(18,44,36,.04) 34%,rgba(18,44,36,.64)),url('/themes/khitanan-mihrab/cover-poster.jpg')!important;background-position:center,center 55%;background-size:cover,cover;color:#fffdf7}
  .theme-khitanan-mihrab .side__title{color:#fffdf7}
}

@media(max-height:620px){
  .theme-khitanan-mihrab .cover__inner{padding-top:38px}
  .theme-khitanan-mihrab .cover__frame{width:64px;height:64px;margin-bottom:.35rem}
  .theme-khitanan-mihrab .khitanan-mihrab-cover-photo{width:80px;height:96px;margin-bottom:.05rem}
  .theme-khitanan-mihrab .cover__guest{margin-top:.35rem;padding:6px 10px}
  .theme-khitanan-mihrab .cover__inner>.btn{margin-top:.6rem}
}

@media (prefers-reduced-motion: reduce){
  .theme-khitanan-mihrab .khitanan-mihrab-motion{display:none!important}
  .theme-khitanan-mihrab .cover__inner{animation:none}
}
