/* =========================================================
   Pilihan tambahan kad: GAYA (body.style-*) & LAYOUT HERO (body.layout-*)
   ========================================================= */

/* Kad-kad kandungan yang dipengaruhi gaya */
/* .details-card .wish-card .prayer-plain .mini-cal */

/* ---------- Gaya: Kad Terapung ---------- */
body.style-card .details-card,
body.style-card .wish-card,
body.style-card .prayer-plain,
body.style-card .mini-cal { border: 0; outline: none; border-radius: 28px; box-shadow: 0 18px 40px color-mix(in srgb, var(--primary) 12%, transparent), 0 2px 6px rgba(0, 0, 0, .04); }
body.style-card #aturcara .schedule-item { background: var(--surface); border: 0; border-radius: 18px; padding: .9rem 1rem; margin-bottom: .6rem; box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 8%, transparent); }
body.style-card .section-block.alt::before { background: color-mix(in srgb, var(--bg) 94%, transparent); }

/* ---------- Gaya: Minimalis ---------- */
body.style-minimal .details-card,
body.style-minimal .wish-card,
body.style-minimal .prayer-plain,
body.style-minimal .mini-cal { background: transparent; border: 0; outline: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body.style-minimal .details-icon { background: transparent; color: var(--accent); box-shadow: none; border: 1px solid var(--line); }
body.style-minimal .section-block.alt { background-image: none; background-color: var(--bg); }
body.style-minimal .section-block.alt::before { display: none; }
body.style-minimal .section-divider { width: 24px; }
body.style-minimal .section-heading { font-size: 38px; }

/* ---------- Gaya: Garis Bingkai ---------- */
body.style-outline .details-card,
body.style-outline .wish-card,
body.style-outline .prayer-plain,
body.style-outline .mini-cal { background: transparent; outline: none; border: 1.5px solid var(--accent); border-radius: 16px; box-shadow: none; }
body.style-outline .details-icon { background: transparent; color: var(--accent); box-shadow: none; border: 1.5px solid var(--accent); }
body.style-outline #aturcara .schedule-item { border-bottom-style: dashed; }

/* ---------- Gaya: Bingkai Berganda ---------- */
body.style-frame .details-card,
body.style-frame .wish-card,
body.style-frame .prayer-plain,
body.style-frame .mini-cal { background: var(--surface); border: 1px solid var(--accent); border-radius: 2px; box-shadow: none; outline: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -7px; padding: 1.8rem 1.4rem; }
body.style-frame .details-icon { border-radius: 2px; transform: rotate(45deg); }
body.style-frame .details-icon i { transform: rotate(-45deg); }
body.style-frame .section-divider { width: 90px; height: 3px; background: none; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------- Gaya: Kertas Vintaj ---------- */
body.style-paper .section-block,
body.style-paper .site-footer { background-image: radial-gradient(color-mix(in srgb, var(--primary) 6%, transparent) .8px, transparent .8px), radial-gradient(color-mix(in srgb, var(--accent) 5%, transparent) .8px, transparent .8px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }
body.style-paper .section-block.alt::before { background: color-mix(in srgb, #f6efe1 60%, var(--bg)); opacity: .9; }
body.style-paper .details-card,
body.style-paper .wish-card,
body.style-paper .prayer-plain,
body.style-paper .mini-cal { background: color-mix(in srgb, #fffaf0 85%, var(--bg)); border: 0; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 24px -14px rgba(60, 40, 10, .35); outline: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -8px; }
body.style-paper .details-card:nth-child(odd) { rotate: -.4deg; }
body.style-paper.mode-dark .details-card,
body.style-paper.mode-dark .wish-card { background: color-mix(in srgb, var(--bg) 85%, #fff 6%); }

/* =========================================================
   LAYOUT HERO
   ========================================================= */
.hero-mono { display: none; }

/* Layout berbingkai tidak boleh mencecah tepi skrin */
body.layout-arch .hero-content, body.layout-frame .hero-content { width: min(84%, var(--hero-w)); }

/* Gerbang */
body.layout-arch .hero-content {
    padding: 4rem 1.4rem 2.2rem; border: 1.5px solid var(--accent);
    border-radius: 999px 999px 20px 20px / 240px 240px 20px 20px;
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    outline: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 7px;
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}

/* Bingkai Berganda */
body.layout-frame .hero-content {
    padding: 2.6rem 1.4rem; border: 1px solid var(--accent);
    outline: 1px solid var(--accent); outline-offset: -10px;
    background: color-mix(in srgb, var(--bg) 68%, transparent);
}
body.layout-frame .hero-content::before,
body.layout-frame .hero-content::after { content: '❖'; position: absolute; left: 50%; translate: -50% 0; color: var(--accent); font-size: 18px; background: color-mix(in srgb, var(--bg) 90%, transparent); padding: 0 8px; }
body.layout-frame .hero-content::before { top: -14px; }
body.layout-frame .hero-content::after { bottom: -14px; }

/* Medalion */
body.layout-circle .hero-content {
    --name-size: 42px;
    width: min(88%, 400px); aspect-ratio: 1; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem 2.2rem; border: 4px double var(--accent);
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--bg) 35%, transparent);
}
body.layout-circle .hero-tag { margin-bottom: .6rem !important; font-size: 13px !important; }
body.layout-circle .hero-verse,
body.layout-circle .hero-venue + .hero-venue { display: none; }
body.layout-circle .hero-section .section-divider { margin: .6rem auto !important; }

/* Monogram */
body.layout-monogram .hero-content { --name-size: 40px; }
body.layout-monogram .hero-mono {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    width: 150px; height: 150px; margin: 0 auto 1.4rem; border-radius: 50%;
    border: 1.5px solid var(--accent); outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 6px;
    font-family: var(--font-script); color: var(--primary); background: color-mix(in srgb, var(--bg) 60%, transparent);
}
body.layout-monogram .hero-mono span { font-size: 64px; line-height: 1; }
body.layout-monogram .hero-mono i { font-style: normal; font-family: var(--font-serif); font-size: 22px; color: var(--accent); }

/* Foto Penuh (teks di bawah, latar penuh) */
body.layout-photo .hero-section { align-items: flex-end; --primary: #ffffff; --accent: #ffffff; }
body.layout-photo .hero-overlay { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%) !important; }
body.layout-photo .hero-content { padding-bottom: 5.5rem; text-align: center; }
body.layout-photo .hero-content p { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
body.layout-photo .hero-section .section-divider { background: rgba(255, 255, 255, .7); }

/* Moden (huruf besar serif) */
body.layout-modern .hero-content { --name-size: 40px; }
body.layout-modern .hero-names { font-family: var(--font-serif) !important; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; line-height: 1.15 !important; }
body.layout-modern .hero-with { font-family: var(--font-script) !important; font-size: 34px !important; }
body.layout-modern .hero-tag { letter-spacing: 6px !important; text-transform: uppercase !important; font-size: 12px !important; font-weight: 600 !important; }
body.layout-modern .hero-section .section-divider { width: 140px; }

/* Reben: jalur nama di dalam skrin + ekor bertakuk V yang berlipat di belakang */
body.layout-ribbon .hero-content { width: min(calc(100% - 100px), 380px, var(--hero-w)); }   /* ruang untuk ekor reben */
body.layout-ribbon .hero-namebox {
    --primary: var(--on-accent, #ffffff);
    position: relative; margin: 1.4rem 0 1.6rem; padding: 1.1rem 1rem 1.2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .08)),
        var(--accent);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45);
}
/* Ekor kiri & kanan (di belakang jalur, lebih gelap, bertakuk V) */
body.layout-ribbon .hero-namebox::before,
body.layout-ribbon .hero-namebox::after {
    content: ''; position: absolute; top: 16px; bottom: -16px; width: 52px; z-index: -1;
    background: color-mix(in srgb, var(--accent) 78%, #000);
}
body.layout-ribbon .hero-namebox::before { left: -40px; background: linear-gradient(to bottom left, color-mix(in srgb, var(--accent) 55%, #000) 50%, transparent 50%) right bottom / 12px 16px no-repeat, color-mix(in srgb, var(--accent) 78%, #000); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%); }
body.layout-ribbon .hero-namebox::after { right: -40px; background: linear-gradient(to bottom right, color-mix(in srgb, var(--accent) 55%, #000) 50%, transparent 50%) left bottom / 12px 16px no-repeat, color-mix(in srgb, var(--accent) 78%, #000); clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); }
body.layout-ribbon .hero-names { font-size: min(var(--name-size), 46px) !important; line-height: 1.08 !important; text-shadow: 0 2px 5px rgba(0, 0, 0, .2) !important; }
body.layout-ribbon .hero-with { color: var(--on-accent, #ffffff) !important; opacity: .85; font-size: min(calc(var(--name-size) * .6), 30px) !important; }
body.layout-ribbon .hero-namebox p { color: var(--on-accent, #ffffff) !important; }


/* =========================================================
   GAYA KAD TAMBAHAN (2)
   ========================================================= */
/* Mewah Emas: sempadan kecerunan emas */
body.style-luxe .details-card,
body.style-luxe .wish-card,
body.style-luxe .prayer-plain,
body.style-luxe .mini-cal {
    border: 1.5px solid transparent; outline: none; border-radius: 22px;
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
                linear-gradient(135deg, #e9cf8a, var(--accent), #b8913a, #f3e1a8) border-box;
    box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
body.style-luxe.mode-dark .details-card,
body.style-luxe.mode-dark .wish-card { background: linear-gradient(color-mix(in srgb, var(--bg) 92%, #fff), color-mix(in srgb, var(--bg) 92%, #fff)) padding-box, linear-gradient(135deg, #e9cf8a, var(--accent), #b8913a) border-box; }
body.style-luxe .details-icon { background: linear-gradient(135deg, #f3e1a8, var(--accent)); color: #fff; }
body.style-luxe .section-divider { height: 2px; width: 90px; background: linear-gradient(90deg, transparent, #d9b45a, transparent); }

/* Timbul Lembut (neumorfisme) */
body.style-soft .details-card,
body.style-soft .wish-card,
body.style-soft .prayer-plain,
body.style-soft .mini-cal {
    background: var(--bg); border: 0; outline: none; border-radius: 26px;
    box-shadow: 9px 9px 20px color-mix(in srgb, var(--bg) 78%, #000), -9px -9px 20px color-mix(in srgb, var(--bg) 70%, #fff);
}
body.style-soft .details-icon { background: var(--bg); color: var(--accent); box-shadow: inset 3px 3px 7px color-mix(in srgb, var(--bg) 80%, #000), inset -3px -3px 7px color-mix(in srgb, var(--bg) 70%, #fff); }
body.style-soft .section-block.alt { background-image: none; background-color: var(--bg); }
body.style-soft .section-block.alt::before { display: none; }

/* Jahitan (garis putus di dalam) */
body.style-stitch .details-card,
body.style-stitch .wish-card,
body.style-stitch .prayer-plain,
body.style-stitch .mini-cal {
    background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 0; border-radius: 18px;
    outline: 2px dashed color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: -9px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}
body.style-stitch .section-divider { height: 0; border-top: 2px dashed var(--accent); background: none; }

/* Tepi Beralun (scallop) */
body.style-scallop .details-card,
body.style-scallop .wish-card,
body.style-scallop .prayer-plain,
body.style-scallop .mini-cal {
    border: 0; outline: none; border-radius: 0; padding-top: 2rem; padding-bottom: 2rem;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: none;
    -webkit-mask: radial-gradient(circle 9px at 50% 0, #0000 97%, #000) top / 22px 51% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 97%, #000) bottom / 22px 51% repeat-x;
            mask: radial-gradient(circle 9px at 50% 0, #0000 97%, #000) top / 22px 51% repeat-x, radial-gradient(circle 9px at 50% 100%, #0000 97%, #000) bottom / 22px 51% repeat-x;
}

/* Kad Gerbang */
body.style-archcard .details-card,
body.style-archcard .prayer-plain,
body.style-archcard .mini-cal {
    border: 1.5px solid var(--accent); outline: none; border-radius: 200px 200px 18px 18px / 120px 120px 18px 18px;
    padding-top: 2.6rem; background: var(--surface); box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--primary) 35%, transparent);
}
body.style-archcard .wish-card { border: 1px solid var(--accent); border-radius: 60px 60px 14px 14px; outline: none; }

/* Tiket (takuk di sisi) */
body.style-ticket .details-card,
body.style-ticket .wish-card,
body.style-ticket .prayer-plain,
body.style-ticket .mini-cal {
    border: 0; outline: none; border-radius: 14px; background: var(--surface);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .25);
    -webkit-mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

/* Kecerunan Lembut */
body.style-gradient .details-card,
body.style-gradient .wish-card,
body.style-gradient .prayer-plain,
body.style-gradient .mini-cal {
    border: 0; outline: none; border-radius: 26px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 60%, color-mix(in srgb, var(--primary) 10%, var(--surface)));
    box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--accent) 60%, transparent);
}
body.style-gradient .details-icon { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); color: #fff; }

/* Polaroid */
body.style-polaroid .details-card,
body.style-polaroid .wish-card,
body.style-polaroid .prayer-plain,
body.style-polaroid .mini-cal {
    background: #fffdf9; color: #3a3a3a; border: 0; outline: none; border-radius: 3px; padding-bottom: 2.4rem;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .08), 0 14px 28px -12px rgba(0, 0, 0, .3);
}
body.style-polaroid .details-card:nth-child(odd), body.style-polaroid .wish-card:nth-child(odd) { rotate: -1.2deg; }
body.style-polaroid .details-card:nth-child(even), body.style-polaroid .wish-card:nth-child(even) { rotate: 1deg; }
body.style-polaroid .wish-msg, body.style-polaroid .details-card p { color: #3a3a3a; }

/* Bayang Tegas (retro) */
body.style-bold .details-card,
body.style-bold .wish-card,
body.style-bold .prayer-plain,
body.style-bold .mini-cal {
    background: var(--surface); border: 2px solid var(--primary); outline: none; border-radius: 14px;
    box-shadow: 6px 6px 0 var(--accent);
}
body.style-bold .details-icon { border: 2px solid var(--primary); box-shadow: 3px 3px 0 var(--accent); }
body.style-bold #aturcara .schedule-item { border-bottom: 2px solid var(--primary); }

/* =========================================================
   LAYOUT HERO TAMBAHAN (2)
   ========================================================= */
body.layout-polaroid .hero-content, body.layout-envelope .hero-content, body.layout-oval .hero-content,
body.layout-scroll .hero-content, body.layout-ticket .hero-content, body.layout-stamp .hero-content,
body.layout-cornerframe .hero-content, body.layout-banner .hero-content { width: min(84%, var(--hero-w)); }

/* Kad putih/kertas: teks gelap supaya sentiasa terang dibaca */
body.layout-polaroid .hero-content, body.layout-envelope .hero-content, body.layout-ticket .hero-content,
body.layout-stamp .hero-content, body.layout-scroll .hero-content { --primary: #3b3530; }
body.layout-polaroid .hero-names, body.layout-envelope .hero-names, body.layout-ticket .hero-names,
body.layout-stamp .hero-names, body.layout-scroll .hero-names { text-shadow: none !important; }

/* Polaroid */
body.layout-polaroid .hero-content {
    background: #fffdf8; padding: 2.4rem 1.4rem 3.4rem; rotate: -2deg; border-radius: 3px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .12), 0 24px 50px -18px rgba(0, 0, 0, .45);
}
body.layout-polaroid .hero-content::before {
    content: ''; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: 3deg;
    background: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, .55)); box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
body.layout-polaroid .hero-content .hero-verse { display: none; }

/* Sampul Surat + meterai */
body.layout-envelope .hero-content {
    background: #fffaf2; padding: 6.6rem 1.4rem 2.4rem; border-radius: 6px;
    box-shadow: 0 22px 46px -20px rgba(0, 0, 0, .45);
}
body.layout-envelope .hero-content::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 64px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
    clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .9;
}
.hero-seal { display: none; }
body.layout-envelope .hero-seal {
    display: flex; position: absolute; top: 36px; left: 50%; translate: -50% 0; z-index: 2; width: 58px; height: 58px; border-radius: 50%;
    align-items: center; justify-content: center; font-family: var(--font-script); font-size: 26px; color: #fff;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, #b3343c 70%, #fff), #8e1f2a 70%);
    box-shadow: 0 0 0 4px color-mix(in srgb, #8e1f2a 35%, transparent), 0 4px 10px rgba(0, 0, 0, .3);
}
body.layout-envelope .hero-tag { margin-top: .8rem; }

/* Ombak di bahagian bawah hero */
body.layout-wave .hero-section::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: 3; background: var(--bg);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C80 90 160 0 240 40 S400 80 480 30 V90 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C80 90 160 0 240 40 S400 80 480 30 V90 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
body.layout-wave .hero-section::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 80px; z-index: 3; background: color-mix(in srgb, var(--accent) 45%, transparent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 80' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C100 0 180 80 280 40 S420 10 480 45 V80 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 80' preserveAspectRatio='none'%3E%3Cpath d='M0 50 C100 0 180 80 280 40 S420 10 480 45 V80 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
body.layout-wave .hero-content { padding-bottom: 4rem; }

/* Cermin Oval */
body.layout-oval .hero-content {
    --name-size: 44px; min-height: 66vh; display: flex; flex-direction: column; justify-content: center;
    padding: 3rem 1.6rem; border-radius: 50% / 40%; border: 1.5px solid var(--accent);
    outline: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 8px;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
}
body.layout-oval .hero-verse { display: none; }

/* Gulungan Skrol */
body.layout-scroll .hero-content {
    background: linear-gradient(90deg, #efe2c4, #fbf3e0 12%, #fdf8ec 50%, #fbf3e0 88%, #efe2c4); padding: 2.8rem 1.6rem; margin: 26px 0;
    box-shadow: 0 18px 40px -20px rgba(70, 45, 10, .5);
}
body.layout-scroll .hero-content::before,
body.layout-scroll .hero-content::after {
    content: ''; position: absolute; left: -12px; right: -12px; height: 26px; border-radius: 13px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #6b4a1f), var(--accent) 45%, color-mix(in srgb, var(--accent) 60%, #4a3010));
    box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
}
body.layout-scroll .hero-content::before { top: -20px; }
body.layout-scroll .hero-content::after { bottom: -20px; }

/* Tiket / Pas Masuk */
body.layout-ticket .hero-content {
    background: #fffdf8; padding: 2.4rem 1.4rem; border-radius: 16px;
    box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .45);
    -webkit-mask: radial-gradient(circle 16px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 16px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
}
body.layout-ticket .hero-tag { display: inline-block; padding: 4px 14px; border: 1.5px solid var(--accent); border-radius: 30px; letter-spacing: 3px !important; text-transform: uppercase !important; font-size: 11px !important; color: var(--accent) !important; }
body.layout-ticket .hero-section .section-divider { width: 100%; height: 0; background: none; border-top: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); opacity: 1; }
body.layout-ticket .hero-verse { display: none; }

/* Belah (teks rata kiri + bar menegak) */
body.layout-split .hero-content { width: min(86%, var(--hero-w)); text-align: left; padding: .4rem 0 .4rem 1.4rem !important; border-left: 4px solid var(--accent); }
body.layout-split .hero-section .section-divider { margin-left: 0 !important; }
body.layout-split .hero-names, body.layout-split .hero-with { text-align: left; }
body.layout-split .hero-tag { text-transform: uppercase !important; letter-spacing: 4px !important; font-size: 12px !important; color: var(--accent) !important; }

/* Setem (tepi bergerigi) */
body.layout-stamp .hero-content {
    background: #fffdf8; padding: 2.4rem 1.4rem; rotate: 1.5deg; border: 8px solid transparent;
    /* lubang setem hanya di jalur sempadan; bahagian dalam (padding-box) ditutup penuh */
    -webkit-mask: linear-gradient(#000 0 0) padding-box, radial-gradient(circle 6px, #0000 96%, #000) -8px -8px / 16px 16px round border-box;
            mask: linear-gradient(#000 0 0) padding-box, radial-gradient(circle 6px, #0000 96%, #000) -8px -8px / 16px 16px round border-box;
}
body.layout-stamp .hero-content::before { content: ''; position: absolute; inset: 6px; border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); pointer-events: none; }

/* Bingkai Sudut */
body.layout-cornerframe .hero-content {
    padding: 2.8rem 1.4rem;
    background:
        linear-gradient(var(--accent), var(--accent)) top left / 46px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) top left / 2px 46px no-repeat,
        linear-gradient(var(--accent), var(--accent)) top right / 46px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) top right / 2px 46px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom left / 46px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom left / 2px 46px no-repeat,
        linear-gradient(var(--accent), var(--accent)) bottom right / 46px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) bottom right / 2px 46px no-repeat,
        color-mix(in srgb, var(--bg) 55%, transparent);
}
body.layout-cornerframe .hero-content::before,
body.layout-cornerframe .hero-content::after { content: '✦'; position: absolute; color: var(--accent); font-size: 14px; }
body.layout-cornerframe .hero-content::before { top: 8px; left: 8px; }
body.layout-cornerframe .hero-content::after { bottom: 8px; right: 8px; }

/* Panji Gantung */
body.layout-banner .hero-content {
    padding: 3rem 1.4rem 5rem; margin-top: 30px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 80%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-top: 6px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 46px), 0 100%);
}
