/* Tema "Mihrab Emas": megah dan hangat. Arah desain dan alasan tiap keputusan ada di DESIGN.md.
   Dimuat setelah invitation.css hanya bila tema = mihrab. Motif identitas: lengkung mihrab runcing + tepi kerang. */
.theme-mihrab {
  --bg: #f7eddb; --bg2: #efdfc0; --ink: #2b1a10; --muted: #6a5242;
  --primary: #4a2414; --deep: #2a130a; --on-primary: #fff; --accent: #c8923a; --card: #fffaf0;
  --line: rgba(74, 36, 20, .22);
  --gold-text: #8a5a12; --gold-light: #e6bd6a; --cream: #fbf1dc;
  --serif: "Fraunces", "Lora", Georgia, serif;
  --arch-poly: polygon(0 100%, 0 48%, 2% 40%, 6% 33%, 12% 27%, 20% 21%, 29% 15%, 38% 9%, 45% 4%, 50% 0, 55% 4%, 62% 9%, 71% 15%, 80% 21%, 88% 27%, 94% 33%, 98% 40%, 100% 48%, 100% 100%);
}

/* ---------- Tipografi ---------- */
.theme-mihrab h1, .theme-mihrab h2, .theme-mihrab h3, .theme-mihrab .cname,
.theme-mihrab .names, .theme-mihrab .hero-names, .theme-mihrab .h, .theme-mihrab .event h3,
.theme-mihrab .wishes h3, .theme-mihrab .to-name, .theme-mihrab .salam {
  font-family: var(--serif); font-style: normal; font-weight: 600; letter-spacing: -.005em;
}
.theme-mihrab .eyebrow { text-transform: none; letter-spacing: .05em; font: italic 500 1rem var(--serif); color: var(--gold-light); }
.theme-mihrab .names i, .theme-mihrab .hero-names i { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--gold-light); }

/* ---------- Gerak: hanya gerbang, muncul saat digulir, lentera. Tanpa kilau/denyut/kelopak ---------- */
.theme-mihrab .spark, .theme-mihrab .dust, .theme-mihrab .petals { display: none; }
.theme-mihrab .moon { animation: none; }
.theme-mihrab .divider svg, .theme-mihrab .countdown [data-cd="s"] { animation: none; }
.theme-mihrab .btn-open { animation: fadeUp 1s cubic-bezier(.2, .7, .2, 1) 1.2s both; }

/* ---------- Lengkung mihrab ---------- */
.theme-mihrab .arch { position: relative; width: min(84%, 300px); aspect-ratio: 300 / 380; margin: 0 auto 22px; }
.mh-arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mh-fill { fill: rgba(0, 0, 0, .24); }
.mh-line { fill: none; stroke: var(--accent); }
.mh-outer { stroke-width: 2.6; }
.mh-inner { stroke-width: 1; opacity: .75; }
.mh-base { stroke-width: 3; }
.mh-dot { fill: var(--accent); }
.theme-mihrab .arch-in { position: absolute; inset: 25% 10% 7%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.theme-mihrab .arch-in p { margin: 0 0 .45em; }
.theme-mihrab .arch-in .names, .theme-mihrab .arch-in .hero-names { color: var(--cream); margin-bottom: 8px; }

/* ---------- Gerbang ---------- */
.theme-mihrab .door { background: linear-gradient(170deg, var(--primary), var(--deep)); }
/* Pintu dan langit tetap diam; hanya isi yang bisa digulir bila layar pendek (jendela desktop kecil, HP landscape) */
.theme-mihrab .gate-content { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 36px 24px 40px; scrollbar-width: none; }
.theme-mihrab .gate-content::-webkit-scrollbar { display: none; }
.theme-mihrab .gate .arch { width: min(84%, 300px, max(256px, calc((100svh - 340px) * .79))); }
.theme-mihrab .gate .names { font-size: clamp(1.95rem, 9.2vw, 2.6rem); line-height: 1.08; }
.theme-mihrab .cover-art { width: 96px; border-radius: 48px 48px 8px 8px; margin-bottom: 12px; }
.theme-mihrab .cover-date { color: var(--cream); font-size: .92rem; margin-bottom: 0; letter-spacing: .02em; }
.theme-mihrab .to { border-color: rgba(230, 189, 106, .35); margin-bottom: 22px; }
.theme-mihrab .btn-open {
  border-radius: 4px; padding: 13px 38px;
  background: linear-gradient(180deg, #ecc779, var(--accent));
}
.theme-mihrab .btn-open:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }

/* ---------- Hero ---------- */
.theme-mihrab .hero { background: linear-gradient(180deg, var(--deep), #3b1d10 62%, var(--primary)); }
.theme-mihrab .hero-pat { opacity: .7; }
.theme-mihrab .hero-in { padding: 78px 20px 100px; }
.theme-mihrab .hero .arch { width: min(88%, 330px); margin-bottom: 0; }
.theme-mihrab .hero-names { font-size: clamp(2.05rem, 10.2vw, 2.85rem); line-height: 1.08; }
.theme-mihrab .bismillah { font-size: 1.35rem; line-height: 1.9; margin-bottom: 6px; }
.theme-mihrab .hero-date { color: var(--cream); font-size: .92rem; letter-spacing: .02em; }
.theme-mihrab .scroll-hint { border-radius: 4px; }

/* ---------- Bagian ---------- */
.theme-mihrab .h { font-size: 2rem; color: var(--primary); margin-bottom: 26px; }
.theme-mihrab .h::after { content: ""; display: block; width: 54px; height: 2px; margin: 12px auto 0; background: var(--accent); }
.theme-mihrab .divider { max-width: 220px; }
.theme-mihrab .divider svg { width: 34px; height: 34px; }

/* Pembuka: halaman bingkai ganda ala kitab */
.theme-mihrab #opening { padding: 72px 40px; }
.theme-mihrab #opening::before, .theme-mihrab #opening::after { content: ""; position: absolute; pointer-events: none; }
.theme-mihrab #opening::before { inset: 18px 16px; border: 1px solid var(--accent); }
.theme-mihrab #opening::after { inset: 24px 22px; border: 1px solid var(--accent); opacity: .45; }
.theme-mihrab .salam { font-size: 1.2rem; }

/* Mempelai: dua lengkung bersisian dengan medali & di antara puncaknya */
.theme-mihrab #mempelai { padding-bottom: 0; }
.theme-mihrab .couple.has-av { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: start; position: relative; }
.theme-mihrab .couple.has-av .amp {
  position: absolute; left: calc(50% - 24px); top: 6px; z-index: 2; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--gold-light);
  border: 2px solid var(--accent); font: 600 1.4rem/1 var(--serif);
}
.theme-mihrab .couple:not(.has-av) .amp { color: var(--gold-text); font-family: var(--serif); }
.theme-mihrab .avatar { width: 100%; max-width: 150px; }
.theme-mihrab .avatar::before {
  inset: -4px -4px 0; border: 0; border-radius: 0; animation: none; background: var(--accent); clip-path: var(--arch-poly);
}
.theme-mihrab .avatar .avatar-frame {
  width: 100%; height: auto; aspect-ratio: 148 / 178; border: 0; border-radius: 0; box-shadow: none;
  background: linear-gradient(180deg, #fff6e3, var(--bg2)); clip-path: var(--arch-poly);
}
.theme-mihrab .avatar .avatar-frame img { animation: none; }
.theme-mihrab .cname { font-size: 1.15rem; color: var(--primary); }
.theme-mihrab .parents { font-size: .84rem; }

/* Ayat: pita gelap penuh lebar dengan tepi kerang */
.theme-mihrab .quote {
  margin: 46px -26px 0; padding: 60px 28px 64px; background: var(--deep); color: #f3e4c8; border: 0; border-radius: 0;
}
.theme-mihrab .quote::before {
  inset: 0 0 auto; height: 12px; border: 0; border-radius: 0; opacity: 1;
  background: radial-gradient(circle at 12px 0, var(--bg2) 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x;
}
.theme-mihrab .quote .arab { color: var(--gold-light); }
.theme-mihrab .quote .terjemah { color: #ead9bd; }
.theme-mihrab .quote footer { color: var(--gold-light); }

/* Hitung mundur */
.theme-mihrab .countdown div { border-radius: 4px; }

/* Acara: lencana tanggal beratap runcing + isi */
.theme-mihrab .event.ev-split {
  display: grid; grid-template-columns: 92px 1fr; padding: 0; border: 1px solid var(--accent); border-radius: 6px;
  background: var(--card); box-shadow: none; overflow: hidden; text-align: left;
}
.theme-mihrab .event.ev-split::before { display: none; }
.theme-mihrab .ev-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 26px 6px 18px; background: linear-gradient(180deg, var(--primary), var(--deep)); color: var(--gold-light);
  clip-path: polygon(0 100%, 0 26%, 50% 0, 100% 26%, 100% 100%);
}
.theme-mihrab .ev-badge b { font: 600 2.5rem/1 var(--serif); }
.theme-mihrab .ev-badge span { font-size: .76rem; line-height: 1.3; margin-top: 6px; color: var(--cream); }
.theme-mihrab .ev-body { padding: 20px 18px 20px; }
.theme-mihrab .event h3 { font-size: 1.35rem; }
.theme-mihrab .ev-actions { justify-content: flex-start; }

/* Adab: nomor bulat cokelat */
.theme-mihrab .notes { counter-reset: n; }
.theme-mihrab .notes li { counter-increment: n; border-radius: 6px; padding: 13px 16px 13px 58px; }
.theme-mihrab .notes li::before {
  content: counter(n); animation: none; left: 14px; top: 50%; margin-top: -15px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--gold-light); font: 600 .9rem var(--serif);
}

/* Tanda kasih */
.theme-mihrab .acc { border: 3px double var(--accent); border-radius: 4px; box-shadow: none; }
.theme-mihrab .acc .num { font-family: var(--serif); }

/* Formulir & tombol: sudut tegas ala arsitektur */
.theme-mihrab .btn { border-radius: 4px; }
.theme-mihrab .rsvp-form input:not([type="radio"]), .theme-mihrab .rsvp-form select, .theme-mihrab .rsvp-form textarea,
.theme-mihrab .radios label, .theme-mihrab .wishes li { border-radius: 6px; }

/* Penutup */
.theme-mihrab .closing { background: var(--deep); color: #f3e4c8; padding-top: 80px; }
.theme-mihrab .closing::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: radial-gradient(circle at 12px 0, var(--bg2) 11.5px, transparent 12px) 0 0 / 24px 12px repeat-x;
}
.theme-mihrab .closing .intro { color: #d9c6a4; }
.theme-mihrab .closing .doa, .theme-mihrab .closing .names.small { color: var(--gold-light); }
.theme-mihrab .closing .salam { color: #f3e4c8; }
.theme-mihrab .credit { color: #bfa987; }

/* Navigasi bawah */
.theme-mihrab .dock { border-radius: 10px; }
.theme-mihrab .dock a { border-radius: 6px; color: #5a4636; }
.theme-mihrab .dock a.on { background: var(--primary); color: #fff; }
.theme-mihrab .sound-btn { border-radius: 10px; }
