/* PPDB SMP & SMA Swasta Utama Medan — style bersama
   Desain porting dari Lovable "Utama Admission Portal" (Sari):
   navy pekat + ivory + aksen emas, display Fraunces, body Plus Jakarta Sans.
   Token warna memakai oklch seperti src/styles.css Lovable; blok
   @supports di bawah memberi fallback hex (#16324f / #d4af37) untuk
   browser tanpa oklch. Tanpa foto/gambar — pola & SVG garis emas saja. */

:root {
  --radius: 0.875rem;

  /* --- Token Lovable (oklch) --- */
  --navy: oklch(0.27 0.075 262);
  --navy-deep: oklch(0.2 0.06 263);
  --navy-foreground: oklch(0.985 0.004 85);
  --gold: oklch(0.77 0.12 80);
  --gold-soft: oklch(0.94 0.045 85);
  --gold-foreground: oklch(0.22 0.06 263);
  --ivory: oklch(0.985 0.006 85);

  --background: oklch(0.99 0.004 85);
  --foreground: oklch(0.22 0.05 263);
  --card: oklch(1 0 0);
  --muted: oklch(0.5 0.035 262);
  --muted-bg: oklch(0.965 0.008 260);
  --line: oklch(0.915 0.012 262);
  --input-border: oklch(0.9 0.014 262);
  --ring: oklch(0.77 0.12 80);
  --green: oklch(0.55 0.13 155);
  --green-soft: oklch(0.95 0.045 155);
  --red: oklch(0.56 0.2 27);
  --red-soft: oklch(0.95 0.035 25);
  --amber: oklch(0.62 0.14 65);
  --amber-soft: oklch(0.96 0.05 80);
  --info: oklch(0.5 0.13 255);
  --info-soft: oklch(0.95 0.03 255);

  /* --- Alias lama (agar aturan lama tetap jalan) --- */
  --navy-2: oklch(0.3 0.08 262);
  --navy-3: oklch(0.17 0.05 265);
  --white: #ffffff;
  --ink: oklch(0.22 0.05 263);
  --bg: oklch(0.99 0.004 85);

  --gradient-navy: linear-gradient(150deg, oklch(0.3 0.08 262) 0%, oklch(0.2 0.06 263) 60%, oklch(0.17 0.05 265) 100%);
  --gradient-gold: linear-gradient(120deg, oklch(0.84 0.11 88) 0%, oklch(0.74 0.13 75) 55%, oklch(0.68 0.12 65) 100%);
  --gradient-ivory: linear-gradient(180deg, oklch(0.99 0.004 85) 0%, oklch(0.965 0.014 85) 100%);

  --shadow: 0 1px 2px oklch(0.22 0.05 263 / 0.04), 0 8px 24px -12px oklch(0.22 0.05 263 / 0.12);
  --shadow-soft: 0 1px 2px oklch(0.22 0.05 263 / 0.04), 0 8px 24px -12px oklch(0.22 0.05 263 / 0.12);
  --shadow-elegant: 0 24px 60px -24px oklch(0.2 0.06 263 / 0.35);
  --shadow-gold: 0 12px 32px -12px oklch(0.74 0.13 75 / 0.55);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Fraunces", Georgia, "Times New Roman", serif;
}

/* Fallback hex untuk browser tanpa dukungan oklch (palet lama situs). */
@supports not (color: oklch(0.5 0.1 250)) {
  :root {
    --navy: #16324f;
    --navy-2: #1e3a5f;
    --navy-3: #0f2438;
    --navy-deep: #0f2438;
    --navy-foreground: #f8f6ef;
    --gold: #d4af37;
    --gold-soft: #f3e5b8;
    --gold-foreground: #16324f;
    --ivory: #faf8f2;
    --background: #f5f7f9;
    --foreground: #1c2733;
    --muted: #5b6b7a;
    --line: #dfe6ec;
    --green: #1e7d4f;
    --red: #b3261e;
    --amber: #8a6d00;
    --gradient-navy: linear-gradient(150deg, #1e3a5f 0%, #0f2438 60%, #0b1a2b 100%);
    --gradient-gold: linear-gradient(120deg, #e3c766 0%, #d4af37 55%, #b8912a 100%);
    --gradient-ivory: linear-gradient(180deg, #fbfaf7 0%, #f3efe4 100%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif { font-family: var(--font-title); color: var(--navy); letter-spacing: -0.015em; }
a { color: var(--navy-2); }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
section[id] { scroll-margin-top: 5.5rem; }

/* ---------- Utilitas desain Lovable ---------- */
.bg-gradient-navy { background-image: var(--gradient-navy); }
.bg-gradient-gold { background-image: var(--gradient-gold); }
.bg-gradient-ivory { background-image: var(--gradient-ivory); }
.text-gradient-gold {
  background-image: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Motif anyaman belah ketupat ala songket, hanya dari gradien. */
.bg-pattern-lattice {
  background-image:
    linear-gradient(45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px),
    linear-gradient(-45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bg-pattern-dots {
  background-image: radial-gradient(oklch(0.27 0.075 262 / 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.gold-rule {
  height: 2px; width: 3rem; border-radius: 9999px;
  background-image: var(--gradient-gold);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow.light { color: var(--gold); }
.section-head { max-width: 42rem; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: 1.9rem; line-height: 1.15; margin: 12px 0 8px; }
.section-head.light h2 { color: #fff; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.light p { color: rgba(255, 255, 255, .7); }
@media (min-width: 640px) { .section-head h2 { font-size: 2.4rem; } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-fade-up { animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-float-slow { animation: float-slow 7s ease-in-out infinite; }
/* Reveal saat scroll: hanya aktif bila JS menandai <html class="js-reveal">,
   jadi tanpa JS semua konten tetap terlihat. */
html.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(0.22, 1, 0.36, 1), transform .7s cubic-bezier(0.22, 1, 0.36, 1); }
html.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .animate-fade-up, .animate-float-slow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Pola dekoratif (tanpa foto) ---------- */
.pattern-gold {
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, .18) 0 90px, transparent 91px),
    radial-gradient(circle at 85% 80%, rgba(212, 175, 55, .14) 0 120px, transparent 121px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px);
}
.pattern-light {
  background-color: var(--white);
  background-image: repeating-linear-gradient(45deg, rgba(22, 50, 79, .03) 0 2px, transparent 2px 14px);
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background-image: var(--gradient-navy); color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
  background-image: var(--gradient-gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 700; font-size: 1.25rem;
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-gold);
}
.brand-name { font-family: var(--font-title); font-weight: 700; line-height: 1.2; font-size: 1.05rem; }
.brand-sub { font-size: .78rem; color: var(--gold-soft); line-height: 1.2; }
.topbar nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.topbar nav a {
  color: #dce6ef; text-decoration: none; font-size: .9rem;
  padding: 6px 10px; border-radius: 8px;
}
.topbar nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topbar nav a.active { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 700; }

/* ---------- Tombol (mc-ppdb-tombol-semua) ----------
   SEMUA tombol di situs memakai gaya yang SAMA dan menonjol seperti
   tombol "Lanjutkan" di cover: bentuk PILL (radius penuh), warna EMAS,
   hover yang sama (naik 1px + sedikit lebih terang + bayangan emas),
   dan focus-visible outline emas. Yang dibedakan hanya tombol
   destruktif (.btn-danger: Hapus/Tolak) yang tetap MERAH supaya
   tindakan menghapus tidak tertukar dengan tindakan biasa — bentuk,
   hover, dan fokusnya tetap sama.
   Varian lama (.btn-navy/.btn-white/.btn-outline/.btn-outline-light)
   dipertahankan sebagai ALIAS ke emas supaya kode lama atau string
   JS yang masih memakainya tetap tampil konsisten; pemakaian di HTML
   sudah semuanya diganti ke .btn-gold. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; min-height: 44px;
  padding: 11px 20px; font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: filter .2s, transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-gold, .btn-navy, .btn-white, .btn-outline, .btn-outline-light {
  background-image: var(--gradient-gold); color: var(--gold-foreground); box-shadow: var(--shadow-gold);
}
.btn-gold:hover, .btn-navy:hover, .btn-white:hover, .btn-outline:hover, .btn-outline-light:hover {
  box-shadow: 0 16px 36px -12px oklch(0.74 0.13 75 / 0.65);
}
.btn-danger { background: var(--red); color: #fff; box-shadow: var(--shadow-soft); }
.btn-danger:hover { box-shadow: var(--shadow-elegant); }
.btn-sm { padding: 8px 16px; font-size: .88rem; border-radius: 999px; min-height: 40px; }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; border-radius: 999px; min-height: 48px; }
.btn-xl { padding: 15px 30px; font-size: 1.08rem; border-radius: 999px; min-height: 52px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 6px; }
.section .lead { color: var(--muted); margin: 0 0 22px; max-width: 720px; }
.section-ivory { background-image: var(--gradient-ivory); }
.section-navy { background-image: var(--gradient-navy); color: #fff; position: relative; overflow: hidden; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead, .section-navy p { color: rgba(255, 255, 255, .72); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-elevated { box-shadow: var(--shadow-elegant); border-radius: calc(var(--radius) + 8px); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Latar foto seluruh halaman (foto asli sekolah) ----------
   Foto: hero-sekolah.jpg — gedung hijau SMA Swasta Utama, Instagram
   resmi @ykarsautamas, postingan DanMbngExpS (1080x1440, potret).
   Satu-satunya foto yang dipakai; tidak ada foto lain/AI/stok.
   Cara kerja: foto + overlay navy gelap ditaruh di body::before (fixed,
   z-index -1) sehingga menutupi seluruh halaman di bawah konten; tiap
   halaman punya class body.page-* dengan posisi + zoom berbeda, jadi
   crop foto berbeda-beda. Konten tetap terbaca karena (1) overlay navy
   di atas foto, (2) section polos & ivory diberi selapis ivory
   semi-transparan, (3) section-navy memakai gradien navy
   semi-transparan, (4) kartu (.card) tetap putih solid. Hanya berlaku
   untuk beranda + 5 kamar; login/dashboard/admin tidak disentuh.
   Foto utama BISA diganti admin (profil.konten.heroFoto): JS menyetel
   variabel --hero-foto di :root (lihat PPDB.terapkanFotoHero); tanpa
   itu fallback-nya tetap hero-sekolah.jpg di bawah ini. */
body:is(.page-beranda, .page-profil, .page-smp, .page-sma, .page-galeri, .page-kontak) {
  background-color: #0f2438; /* fallback navy bila foto gagal dimuat */
}
body:is(.page-beranda, .page-profil, .page-smp, .page-sma, .page-galeri, .page-kontak)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(8,20,38,.80) 0%, rgba(8,20,38,.66) 45%, rgba(8,20,38,.82) 100%),
    var(--hero-foto, url('hero-sekolah.jpg'));
  background-repeat: no-repeat;
  background-size: cover, auto var(--bg-size-h, 100%);
  background-position: center, var(--bg-pos, center 45%);
}
@media (min-width: 900px) {
  body:is(.page-beranda, .page-profil, .page-smp, .page-sma, .page-galeri, .page-kontak)::before {
    background-size: cover, var(--bg-size-w, 100%) auto;
  }
}
/* Crop per halaman (foto potret 1080x1440: langit 0-43%, tiang bendera +
   papan nama "SMPA-UTAMA" ~35-50%, podium logo ~60-72%, lapangan 73-100%).
   --bg-pos = posisi vertikal foto, --bg-size-w = zoom desktop (lebar),
   --bg-size-h = zoom HP (tinggi). */
body.page-beranda { --bg-pos: center 45%; --bg-size-w: 100%; --bg-size-h: 100%; } /* gedung hijau + tiang bendera */
body.page-profil  { --bg-pos: center 22%; --bg-size-w: 125%; --bg-size-h: 120%; } /* langit + papan nama SMPA-UTAMA */
body.page-smp     { --bg-pos: center 64%; --bg-size-w: 140%; --bg-size-h: 135%; } /* podium logo + barisan guru */
body.page-sma     { --bg-pos: center 38%; --bg-size-w: 110%; --bg-size-h: 110%; } /* gedung hijau + bendera */
body.page-galeri  { --bg-pos: center 85%; --bg-size-w: 160%; --bg-size-h: 150%; } /* lapangan upacara */
body.page-kontak  { --bg-pos: center 72%; --bg-size-w: 120%; --bg-size-h: 125%; } /* podium + lapangan */
/* Keterbacaan di atas foto: section polos jadi selapis ivory
   semi-transparan (foto samar terlihat, teks gelap tetap kontras);
   section-ivory lebih transparan lagi; section-navy jadi gradien navy
   semi-transparan (teks putih tetap kontras); footer navy
   semi-transparan. Kartu (.card) tetap putih solid. */
body:is(.page-beranda, .page-profil, .page-smp, .page-sma, .page-galeri, .page-kontak) .section:not(.section-navy) {
  background-color: rgba(250,248,242,.90);
}
body:is(.page-beranda, .page-profil, .page-smp, .page-sma, .page-galeri, .page-kontak) .section.section-ivory {
  background-image: none; background-color: rgba(250,248,242,.86);
}
body:is(.page-beranda, .page-profil, .page-smp, .page-sma, .page-galeri, .page-kontak) .section-navy {
  background-image: linear-gradient(150deg, rgba(30,58,95,.88) 0%, rgba(15,36,56,.88) 60%, rgba(11,26,43,.88) 100%);
}
body:is(.page-beranda, .page-profil, .page-smp, .page-sma, .page-galeri, .page-kontak) footer {
  background: rgba(15,36,56,.90);
}

/* ---------- Cover pembuka beranda (mc-ppdb-cover) ----------
   Foto: hero-sekolah.jpg yang sama (potret 1080x1440, gedung hijau +
   tiang bendera; langit 0-43%, bendera + papan nama ~35-50%, podium
   ~60-72%, lapangan 73-100%). Default display:none — cover HANYA
   dimunculkan JS dengan class .cover--tampil, jadi tanpa JS situs
   tampil normal. HP: foto memenuhi layar (cover, posisi 50% 62%
   supaya gedung + bendera terlihat). Desktop (lebar >= 900px):
   foto FULL-BLEED selebar layar (100vw, dari ujung kiri ke ujung
   kanan, tanpa margin/bingkai navy di kiri-kanan), pita setinggi
   85vh di atas layar — seperti hero contoh yang dikirim Albert
   (hanya ide layout lebarnya yang diambil; foto, logo, dan teks
   sekolah lain di contoh TIDAK dipakai). Tombol Daftar +
   Lanjutkan di TENGAH-BAWAH cover (desktop + HP), berdampingan
   dalam .cover-aksi bila muat (menumpuk bila sempit), dengan scrim
   gradasi di bawah supaya tombol terbaca jelas di atas foto tanpa
   garis tepi. Posisi tengah-bawah diputuskan atas perintah eksplisit
   Albert 2026-11-19 (mc-spmb-cover-cta) — aturan lama (pojok kanan
   atas) DIBATALKAN. Daftar emas primer, Lanjutkan kaca sekunder
   (via CSS :last-child — markup tombol DIKUNCI kontrak tes cover,
   jangan diubah). */
.cover { display: none; }
.cover.cover--tampil {
  display: flex; position: fixed; inset: 0; z-index: 100;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 20px;
  background: var(--navy-3);
  opacity: 1; transition: opacity .5s ease;
}
.cover.cover--menutup { opacity: 0; }
body.cover-terbuka { overflow: hidden; }
.cover-foto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 62%;
}
/* Scrim bawah supaya tombol terbaca jelas di atas foto: pita gradasi
   selebar layar yang memudar halus ke atas (tanpa tepi kiri/kanan,
   supaya tidak ada garis kotak yang kelihatan di sebelah tombol).
   Di HP foto memenuhi layar jadi scrim menempel di bawah viewport;
   di desktop scrim berakhir di tepi bawah pita foto (bottom: 15vh). */
.cover::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 230px;
  background: linear-gradient(to top, rgba(8,20,38,.65) 0%, rgba(8,20,38,.30) 55%, transparent 100%);
  pointer-events: none;
}
/* Tombol-tombol di TENGAH-BAWAH cover (desktop + HP): terpusat
   horizontal (left: 50% + translateX(-50%)), 28px dari tepi bawah
   + safe-area (notch/poni), berdampingan dalam satu baris bila muat
   (Daftar di kiri, Lanjutkan di kanan) dan menumpuk bila sempit
   (flex-wrap). Posisi ini tidak menutupi gedung/bendera di tengah
   foto dan gampang dijangkau jempol di HP. Tombol emas solid +
   bayangan supaya tidak tenggelam di foto. min-height 52px
   (>= 44px) agar gampang ditekan di HP. */
.cover-aksi {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center;
  width: min(92vw, 560px);
}
.cover-btn {
  position: static;
  left: auto; transform: none;
  min-width: 200px; min-height: 52px; font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(8,20,38,.45);
}
.cover-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Hierarki cover (mc-spmb-hero-cta): tombol kedua ("Lanjutkan") tampil
   sebagai sekunder kaca — markup DIKUNCI kontrak tes cover (kedua
   tombol tetap class .btn-gold di HTML), jadi dibedakan hanya lewat
   :last-child di CSS. Masuk halus berjenjang saat cover tampil. */
.cover-aksi .cover-btn:last-child {
  background: rgba(255, 255, 255, .12); background-image: none; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cover-aksi .cover-btn:last-child:hover { background: rgba(255, 255, 255, .22); }
.cover.cover--tampil .cover-btn { animation: fade-up .7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.cover.cover--tampil .cover-btn:last-child { animation-delay: 120ms; }
/* Desktop: foto FULL-BLEED 100vw x 85vh di atas layar (bukan pita
   16:9 berbingkai di tengah navy — batas lebar, border emas,
   dan radius pita lama sudah dihapus). Foto potret di-crop oleh
   object-fit: cover; object-position 50% 50% menjaga bendera + papan nama +
   gedung hijau tetap terlihat di pita yang lebar. Latar cover
   dibuat transparan supaya situs mengintip di bawah pita, seperti
   hero contoh. Tombol duduk di tengah-bawah PITA FOTO (bukan bawah
   viewport — pita hanya 85vh, jadi tepi bawah pita = 15vh dari
   bawah viewport); scrim bawah berakhir di tepi bawah pita yang
   sama. Jarak tombol dari tepi bawah pita dibuat 28px di desktop. */
@media (min-width: 900px) {
  .cover.cover--tampil { padding: 0; background: transparent; }
  .cover-foto {
    top: 0; left: 0; right: auto; bottom: auto;
    width: 100vw; height: 85vh;
    object-position: 50% 50%;
  }
  .cover-aksi { bottom: calc(15vh + 28px); }
  .cover::after { bottom: 15vh; height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .cover.cover--tampil { transition: none; }
  .cover.cover--tampil .cover-btn { animation: none; }
}

/* ---------- Hero beranda: foto asli sekolah + teks HTML ---------- */
/* Visual hero adalah hero-sekolah.jpg (foto asli gedung hijau, potret
   1080x1440) sebagai latar belakang .hero dengan scrim navy, dan teks
   headline SPMB sebagai HTML di atasnya (H1 + subjudul + badge terlihat,
   bukan di dalam gambar) supaya teksnya bisa diubah kapan saja.
   Sebelumnya hero memakai banner Canva (banner-ppdb-canva.jpg, teks PPDB
   di dalam gambar); sejak pergantian PPDB -> SPMB banner itu tidak
   dipakai lagi. ::before (lattice) dan ::after (glow) dimatikan karena
   akan menutupi foto. Fallback bila foto gagal: gradien navy. */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; border: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important; white-space: nowrap !important;
}
.hero {
  color: #fff; padding: 44px 0 28px; position: relative; overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(8,20,38,.78) 0%, rgba(8,20,38,.60) 45%, rgba(8,20,38,.85) 100%),
    var(--hero-foto, url('hero-sekolah.jpg'));
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}
.hero::before, .hero::after { display: none; }
.hero-cta { padding: 24px 0 4px; }
.hero-cta .status-pill { margin-bottom: 16px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { color: #fff; font-size: 2rem; line-height: 1.12; margin: 0 0 12px; font-weight: 600; }
.hero .hero-lead { color: rgba(255, 255, 255, .78); max-width: 34rem; margin: 0 0 22px; font-size: 1.05rem; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta-row .btn { flex: 0 1 auto; }
@media (min-width: 640px) { .hero h1 { font-size: 2.9rem; } }
@media (min-width: 900px) { .hero h1 { font-size: 3.4rem; } }
/* Layar kecil (<=899px): foto hero di-crop (cover) supaya gedung tetap
   terlihat; tombol CTA di bawah jadi selebar penuh (aturan .cta-row di bawah). */
@media (max-width: 899px) {
  .hero-cta { padding-top: 20px; }
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 6px 14px; font-size: .9rem; margin-bottom: 14px;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #37d67a; box-shadow: 0 0 0 3px rgba(55, 214, 122, .25); }
.status-dot.closed { background: #e0a800; box-shadow: 0 0 0 3px rgba(224, 168, 0, .25); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 8px; max-width: 32rem; }
.hero-stats > div {
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05);
  border-radius: 16px; padding: 12px 14px;
}
.hero-stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255, 255, 255, .55); }
.hero-stats dd { margin: 4px 0 0; font-family: var(--font-title); font-size: 1.15rem; font-weight: 600; color: var(--gold); }
/* Panel visual hero: ilustrasi garis emas (SVG inline), tanpa foto. */
.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: -12px; border-radius: 2rem;
  background-image: var(--gradient-gold); opacity: .25; filter: blur(24px);
}
.hero-visual .frame {
  position: relative; overflow: hidden; border-radius: 1.75rem;
  border: 1px solid oklch(0.77 0.12 80 / 0.35); box-shadow: var(--shadow-elegant);
  background: linear-gradient(160deg, oklch(0.32 0.08 262), oklch(0.17 0.05 265));
}
.hero-visual svg.hero-art { display: block; width: 100%; height: auto; }
.hero-visual .address-chip {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(15, 30, 55, .75);
  backdrop-filter: blur(8px); border-radius: 16px; padding: 12px 16px;
  font-size: .88rem; color: rgba(255, 255, 255, .88);
}
.hero-visual .address-chip .pin { color: var(--gold); font-size: 1.1rem; flex: 0 0 auto; }

/* ---------- Kartu program (SMP & SMA, dibuat berbeda) ---------- */
.program-card {
  position: relative; overflow: hidden; height: 100%;
  border-radius: calc(var(--radius) + 10px); padding: 28px;
  transition: transform .3s, box-shadow .3s;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.program-card .corner-blob {
  position: absolute; top: 0; right: 0; width: 8rem; height: 8rem;
  border-bottom-left-radius: 4rem; transition: transform .5s;
}
.program-card:hover .corner-blob { transform: scale(1.12); }
.program-smp .corner-blob { background: var(--gold-soft); }
.program-sma .corner-blob { background: oklch(0.27 0.075 262 / 0.08); }
.program-card .program-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.program-card .program-glyph {
  font-family: var(--font-title); font-size: 3rem; font-weight: 600; line-height: 1;
  color: oklch(0.27 0.075 262 / 0.12);
}
.program-card .program-tag {
  position: relative; margin-top: 22px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--amber);
}
.program-card h3 { position: relative; margin: 6px 0 0; font-size: 1.5rem; }
.program-card .program-desc { position: relative; color: var(--muted); font-size: .95rem; margin: 10px 0 0; }
.program-card .tba-rows { position: relative; margin: 20px 0 0; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.program-card .tba-rows > div {
  display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: .9rem;
}
.program-card .tba-rows > div + div { border-top: 1px solid var(--line); }
.program-card .tba-rows dt { color: var(--muted); }
.program-card .tba-rows dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.program-card .btn { position: relative; margin-top: 24px; }
.program-smp { border-top: 4px solid var(--navy); }
.program-sma { border-top: 4px solid var(--gold); }

/* ---------- Kartu fakta yayasan ---------- */
.fact-card { height: 100%; border-radius: 16px; padding: 22px; }
.fact-card .fact-icon { font-size: 1.3rem; color: var(--amber); }
.fact-card .fact-label { margin-top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fact-card .fact-value { margin-top: 6px; font-weight: 600; line-height: 1.45; color: var(--navy); }

/* ---------- Alur langkah ---------- */
.flow-steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .flow-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .flow-steps { grid-template-columns: repeat(5, 1fr); } }
.steps { counter-reset: step; }
.step { position: relative; text-align: left; height: 100%; }
.step-num {
  width: 46px; height: 46px; margin: 0 0 10px; border-radius: 50%;
  background: var(--navy-2); color: #fff; font-family: var(--font-title);
  font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--gold);
}
.step h3 { margin: 0 0 4px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
.section-navy .step { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 20px; }
.section-navy .step h3 { color: #fff; }
.section-navy .step p { color: rgba(255, 255, 255, .65); }
.section-navy .step .step-num {
  background-image: var(--gradient-gold); color: var(--gold-foreground); border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.step .step-index { font-family: var(--font-title); font-size: 1.8rem; font-weight: 600; color: rgba(255, 255, 255, .18); float: right; }

/* ---------- Persyaratan & kartu info ---------- */
.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .95rem; }
.check-list .check { color: var(--green); font-weight: 700; flex: 0 0 auto; }
.info-card { position: relative; overflow: hidden; height: 100%; border-radius: calc(var(--radius) + 10px); padding: 26px; }
.info-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(oklch(0.27 0.075 262 / 0.08) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .6;
}
.info-card > * { position: relative; }
.info-card .info-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background-image: var(--gradient-navy); color: var(--gold); font-size: 1.2rem;
}
.info-card h3 { margin: 16px 0 0; font-size: 1.4rem; }
.info-card .badge-tba {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-foreground);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
}

/* ---------- FAQ (details/summary) ---------- */
.faq-list { border: 1px solid var(--line); border-radius: calc(var(--radius) + 10px); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 600; color: var(--navy); font-size: 1rem; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--amber); flex: 0 0 auto; font-weight: 400; }
.faq-item[open ] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.faq-item .faq-answer p { margin: 0; }

/* ---------- Galeri sekolah ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
}
.gallery-grid figcaption { font-size: .88rem; color: var(--muted); padding: 6px 2px 0; }
/* Feed Instagram LIVE (loadInstagramFeed): tautan membungkus foto,
   tanggal di bawah caption, baris catatan kesegaran di atas grid. */
.gallery-grid figure > a { display: block; }
.ig-feed-tanggal { display: block; margin-top: 4px; font-size: .8rem; font-weight: 400; }
.ig-feed-note { margin: 0 0 14px; }
.gallery-grid + .ig-feed-note { margin-top: 18px; }
.ig-embed { margin-top: 22px; }
.ig-embed iframe {
  width: 100%; height: 480px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff;
}
.galeri-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.galeri-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 96px; }
.galeri-item p { margin: 0 0 8px; }

/* ---------- Foto konten (mc-ppdb-foto-syarat-brosur) ----------
   Thumb kecil di daftar publik (syarat/alur/biaya/program): file HD
   tidak pernah dimuat di daftar — thumb diklik membuka foto HD di tab
   baru. Emas/navy mengikuti gaya yang sudah ada; target sentuh cukup
   besar; ringan di HP. */
.check-list li { flex-wrap: wrap; }
.check-list .syarat-teks { flex: 1 1 auto; min-width: 0; }
.syarat-foto-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; flex: 0 0 64px;
  display: block;
}
.foto-konten-tautan { display: inline-block; line-height: 0; border-radius: 8px; }
.foto-konten-tautan:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.foto-lihat { margin-top: 6px; }
/* Caption di bawah foto (teks yang diedit admin): tampil di bawah thumb
   maupun di bawah tombol "Lihat foto" bila tanpa thumbnail. */
.foto-konten { display: inline-flex; flex-direction: column; gap: 4px; max-width: 100%; }
.foto-konten-caption { font-size: .8rem; color: var(--muted); line-height: 1.4; }
/* Teks tambahan di bawah judul baris syarat (diketik admin — dipakai
   baris WhatsApp yang tanpa foto): tampil di bawah teks baris. */
.syarat-keterangan { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.step .foto-konten { margin-top: 12px; }
.step .foto-lihat { margin-top: 12px; }
.brosur-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .brosur-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brosur-grid { grid-template-columns: repeat(4, 1fr); } }
.brosur-item { margin: 0; }
.brosur-thumb {
  width: 100%; height: 180px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; display: block;
}
.brosur-item figcaption { font-size: .88rem; color: var(--muted); padding: 6px 2px 0; }
.program-foto { margin: 14px 0 0; }
.program-foto-thumb {
  width: 100%; max-width: 420px; height: auto; max-height: 260px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; display: block;
}
.biaya-foto-thumb {
  width: 100%; max-width: 420px; height: auto; max-height: 260px; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; display: block;
}
/* Baris foto admin (admin.html): teks + pratinjau + pilih file + aksi. */
.foto-admin-baris {
  padding: 12px 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.foto-admin-teks { font-size: .95rem; }
.foto-admin-pratinjau { min-height: 24px; }
.foto-admin-thumb {
  width: 96px; height: 72px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; display: block;
}
.foto-admin-baris input[type="file"] { width: 100%; min-height: 44px; }
.foto-admin-aksi { display: flex; gap: 10px; flex-wrap: wrap; }
.foto-admin-aksi .btn { min-height: 44px; }
.foto-admin-status:empty { display: none; }
.foto-admin-caption input[type="text"] { width: 100%; }
.brosur-admin-baris input[type="text"] { width: 100%; }
@media (min-width: 768px) {
  .foto-admin-baris { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .foto-admin-teks { flex: 1 1 220px; }
  .foto-admin-pratinjau { flex: 0 0 96px; }
  .foto-admin-baris input[type="file"] { flex: 1 1 220px; }
  .foto-admin-aksi { flex: 0 0 auto; }
  .foto-admin-status { flex: 1 1 100%; }
}
.gallery-head { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .gallery-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

/* ---------- Kontak ---------- */
.contact-row { display: flex; gap: 14px; align-items: flex-start; border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.contact-row .contact-icon {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center;
  background-image: var(--gradient-navy); color: var(--gold); font-size: 1.15rem;
}
.contact-row .contact-label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-row .contact-value { margin-top: 4px; font-weight: 600; color: var(--navy); }
.contact-row a.contact-value:hover { color: var(--amber); }
.map-frame { height: 100%; min-height: 320px; overflow: hidden; border-radius: calc(var(--radius) + 10px); border: 1px solid var(--line); box-shadow: var(--shadow-elegant); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
/* Peta statis lokal (ganti iframe Google Maps yang berat & gagal di internet lambat):
   gambar mengisi bingkai yang sama, diklik membuka Google Maps interaktif. */
.map-frame a { display: block; height: 100%; }
.map-frame img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; border: 0; }

/* ---------- CTA akhir ---------- */
.final-cta {
  position: relative; overflow: hidden; max-width: 1080px; margin: 0 auto;
  border-radius: 2rem; background-image: var(--gradient-navy); color: #fff;
  text-align: center; padding: 52px 24px; box-shadow: var(--shadow-elegant);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px),
    linear-gradient(-45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5;
}
.final-cta > * { position: relative; }
.final-cta h2 { color: #fff; font-size: 1.9rem; margin: 0 0 10px; }
.final-cta p { color: rgba(255, 255, 255, .7); margin: 0 0 24px; }
@media (min-width: 640px) { .final-cta h2 { font-size: 2.4rem; } }

/* ---------- Ikon ---------- */
.icon-circle {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 10px;
  background-image: var(--gradient-navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.icon-circle.gold { background-image: var(--gradient-gold); color: var(--gold-foreground); box-shadow: var(--shadow-gold); }

/* ---------- Formulir ---------- */
.form label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 5px; }
.form label .req { color: var(--red); }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--input-border); border-radius: 9px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px oklch(0.77 0.12 80 / 0.25);
}
.form .hint { font-size: .83rem; color: var(--muted); margin-top: 4px; }
.form .show-pw { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-top: 10px; cursor: pointer; }
.form .show-pw input { width: auto; margin: 0; }
/* reCAPTCHA v2 ("Saya bukan robot"): beri jarak dari kolom di atasnya;
   widget 304px muat di layar HP tersempit (320px). */
.g-recaptcha { margin: 14px 0 4px; }
.form .row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 18px; margin: 18px 0; }
legend { font-family: var(--font-title); font-weight: 700; color: var(--navy); padding: 0 8px; }

/* ---------- Status & badge ---------- */
.badge-status {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 700;
}
.st-terkirim { background: #e8eef5; color: var(--navy-2); }
.st-diverifikasi { background: var(--amber-soft); color: var(--amber); }
.st-diterima { background: var(--green-soft); color: var(--green); }
.st-ditolak { background: var(--red-soft); color: var(--red); }

/* ---------- Pesan ---------- */
.alert { border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-size: .95rem; }
.alert-error { background: var(--red-soft); color: #7a1a14; border: 1px solid #f0b4af; }
.alert-success { background: var(--green-soft); color: #14532d; border: 1px solid #a8dcc0; }
.alert-info { background: #e8eef5; color: var(--navy-2); border: 1px solid #b9c9d8; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
tr:hover td { background: #f2f6f9; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat .num { font-family: var(--font-title); font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.stat .lbl { font-size: .85rem; color: var(--muted); }
.stat.stat-gold .num { color: var(--amber); }

/* ---------- Upload ---------- */
.upload-box { border: 2px dashed #b9c9d8; border-radius: var(--radius); padding: 16px; text-align: center; background: #fbfcfe; }
.upload-box img.preview { max-height: 220px; margin-top: 10px; border-radius: 8px; border: 1px solid var(--line); }
.upload-box .file-name { font-size: .88rem; color: var(--muted); margin-top: 8px; word-break: break-all; }

/* ---------- Timeline status ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; color: var(--muted); }
.timeline li::before {
  content: ""; position: absolute; left: 9px; top: 24px; bottom: -2px; width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; border: 2px solid #c4cfd8;
}
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::after { background: var(--gold); border-color: var(--gold); }
.timeline li.now { color: var(--navy); font-weight: 700; }
.timeline li.now::after { background: var(--navy-2); border-color: var(--navy-2); }

/* ---------- Footer ---------- */
footer { background: var(--navy-3); color: #c9d6e2; padding: 32px 0 40px; font-size: .9rem; }
footer h3 { color: #fff; margin-top: 0; }
footer a { color: var(--gold-soft); }
footer .legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 22px; padding-top: 16px; font-size: .83rem; color: #9db0c0; }

/* ---------- Print (bukti pendaftaran) ---------- */
@media print {
  .topbar, .no-print, footer, .btn { display: none !important; }
  .cover { display: none !important; }
  body { background: #fff; }
  body[class*="page-"] { background: #fff !important; }
  body[class*="page-"]::before { display: none !important; }
  body[class*="page-"] .section { background-color: #fff !important; background-image: none !important; }
  .card, .print-area, .print-sheet { box-shadow: none; border: 1px solid #999; }
  .print-area, .print-sheet { max-width: 100%; }
  .print-sheet { box-shadow: none !important; border: none !important; margin: 0 !important; max-width: none !important; }
}
.print-area h2 { margin-top: 0; }
.print-table td, .print-table th { border: 1px solid #999; }

/* ---------- View SPA ---------- */
.view { display: none; }
.view.active { display: block; }
.auth-card { max-width: 460px; margin: 40px auto; }

/* ---------- Halaman masuk: split navy + form ---------- */
.auth-split { display: grid; min-height: calc(100vh - 62px); }
@media (min-width: 960px) { .auth-split { grid-template-columns: 1fr 1.05fr; } }
.auth-aside {
  display: none; position: relative; overflow: hidden; color: #fff;
  background-image: var(--gradient-navy); padding: 48px;
  flex-direction: column; justify-content: space-between; gap: 32px;
}
@media (min-width: 960px) { .auth-aside { display: flex; } }
.auth-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px),
    linear-gradient(-45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .6;
}
.auth-aside::after {
  content: ""; position: absolute; bottom: -128px; left: -128px; width: 24rem; height: 24rem;
  border-radius: 50%; background: oklch(0.77 0.12 80 / 0.15); filter: blur(48px); pointer-events: none;
}
.auth-aside > * { position: relative; }
.auth-aside .aside-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.auth-aside h1 { color: #fff; font-size: 2.1rem; line-height: 1.2; font-weight: 600; margin: 14px 0 0; }
.auth-aside .aside-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05);
  border-radius: 16px; padding: 16px; font-size: .9rem; color: rgba(255, 255, 255, .78);
}
.auth-aside .aside-note .note-icon { color: var(--gold); font-size: 1.15rem; flex: 0 0 auto; }
.auth-aside .aside-foot { font-size: .78rem; color: rgba(255, 255, 255, .5); }
.auth-main { display: flex; flex-direction: column; background-image: var(--gradient-ivory); padding: 20px 16px 40px; }
@media (min-width: 640px) { .auth-main { padding: 28px 32px 48px; } }
.auth-main .auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-main .auth-top .brand-name { color: var(--navy); }
.auth-main .auth-top .brand-sub { color: var(--muted); }
.auth-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 28rem; width: 100%; margin: 0 auto; padding: 32px 0; }
.auth-form-wrap .card { border-radius: calc(var(--radius) + 10px); box-shadow: var(--shadow-elegant); padding: 26px; }
@media (min-width: 640px) { .auth-form-wrap .card { padding: 32px; } }
.auth-form-wrap h2 { margin: 0; font-size: 1.6rem; text-align: center; }
.auth-form-wrap .auth-sub { text-align: center; color: var(--muted); font-size: .92rem; margin: 8px 0 0; }

/* ---------- Kepala halaman dashboard/admin ---------- */
.page-head { margin: 0 0 20px; }
.page-head h1, .page-head h2 { margin: 10px 0 6px; font-size: 1.9rem; line-height: 1.15; }
/* Badge penanda akun admin di samping judul halaman admin (pill emas). */
.page-head h2 .badge-admin {
  display: inline-block; vertical-align: middle;
  background-image: var(--gradient-gold); color: #fff;
  border-radius: 999px; padding: 4px 12px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-left: 8px;
}
/* Badge "Utama" pada daftar akun admin (pill emas, gaya badge-admin). */
.badge-utama {
  display: inline-block; vertical-align: middle;
  background-image: var(--gradient-gold); color: #fff;
  border-radius: 999px; padding: 3px 10px;
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; white-space: nowrap;
}
.page-head p { color: var(--muted); margin: 0; max-width: 44rem; }
@media (min-width: 640px) { .page-head h1, .page-head h2 { font-size: 2.3rem; } }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }

/* ---------- Pilihan jenjang (dashboard pendaftar) ---------- */
.jenjang-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
@media (min-width: 640px) { .jenjang-grid { grid-template-columns: 1fr 1fr; } }
.jenjang-card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.jenjang-card:hover { border-color: var(--gold); box-shadow: var(--shadow-soft); }
.jenjang-card input[type="radio"] { width: auto; margin-top: 4px; accent-color: var(--navy-2); }
.jenjang-card .jenjang-teks { display: flex; flex-direction: column; gap: 2px; }
.jenjang-card .jenjang-teks strong { color: var(--navy); font-family: var(--font-title); font-size: 1.05rem; }
.jenjang-card.dipilih, .jenjang-card:has(input:checked) { border-color: var(--gold); background: #fdf8e3; box-shadow: var(--shadow-gold); }

/* ---------- Statistik per jenjang (admin) ---------- */
.jenjang-stat h4 { margin: 0 0 6px; }
.jenjang-stat ul { margin: 0; padding-left: 20px; }
.jenjang-stat p { margin: 0 0 6px; }

/* ---------- Grid dua kolom responsif (Tentang & FAQ) ---------- */
.about-grid, .faq-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; }
}

/* ---------- Penyesuaian layar kecil (375px) ---------- */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .topbar-inner { padding: 8px 12px; gap: 8px; }
  .brand-name { font-size: .85rem; }
  .brand-sub { font-size: .7rem; }
  .topbar nav a { padding: 5px 8px; font-size: .85rem; }
  /* Cover: dua tombol di tengah-bawah, diperkecil supaya tetap
     berdampingan di lebar 360px; bila layar lebih sempit, wadah
     .cover-aksi (flex-wrap) menumpuknya vertikal. */
  .cover-aksi { gap: 8px; }
  .cover-btn { min-width: 0; min-height: 44px; padding: 10px 14px; font-size: .95rem; }
  .hero { padding-bottom: 24px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .hero-lead { font-size: .98rem; }
  .hero .cta-row .btn { flex: 1 1 100%; text-align: center; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats > div { padding: 10px; }
  .hero-stats dd { font-size: 1rem; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 1.6rem; }
  .program-card { padding: 22px; }
  .program-card .program-glyph { font-size: 2.4rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-form-wrap .card { padding: 20px; }
  .flow-steps { grid-template-columns: 1fr; }
  .final-cta { border-radius: 1.5rem; padding: 40px 18px; }
  .final-cta h2 { font-size: 1.6rem; }
}

/* ============================================================
   UI UPGRADE 2026-11-17 (Sari, task mc-ppdb-ui-upgrade)
   Visual saja: hero lebih hidup, hierarki tipografi, tombol
   lebih tegas + fokus terlihat, micro-interactions halus,
   kerapian mobile, dashboard/admin lebih modern.
   Palet navy/emas + songket TIDAK berubah; tidak ada perubahan
   fungsi, alur, field, endpoint, atau teks fakta sekolah.
   ============================================================ */

/* ---------- Anti overflow horizontal (clip: tidak merusak sticky) ---------- */
body { overflow-x: clip; }

/* ---------- Fokus terlihat (keyboard) di semua elemen interaktif ---------- */
.btn:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.topbar nav a:focus-visible { outline-color: var(--gold); border-radius: 8px; }

/* Tanpa kotak emas di judul/nav saat fokus (Albert 2026-11-19: jelek) —
   ganti outline emas dengan tint putih lembut supaya fokus keyboard tetap kelihatan. */
.topbar .brand:focus-visible,
.topbar nav a:focus-visible { outline: none; background: rgba(255, 255, 255, .12); }

/* ---------- Topbar: target sentuh nav lebih nyaman ---------- */
.topbar nav a { display: inline-flex; align-items: center; min-height: 38px; }

/* ---------- Hierarki tipografi + spacing ---------- */
.section-head h2, .page-head h1, .page-head h2 { letter-spacing: -0.02em; }
.section-head p { font-size: 1.02rem; }
@media (min-width: 640px) { .section { padding: 72px 0; } }

/* ---------- Hero: lebih hidup (banner Canva; H1 kini visually-hidden) ---------- */
.hero h1 { text-wrap: balance; position: relative; padding-bottom: 16px; }
.hero h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px;
  border-radius: 999px; background-image: var(--gradient-gold);
}
.hero .cta-row .btn { min-height: 48px; }
.hero-stats > div { transition: transform .25s, border-color .25s, background .25s; }
.hero-stats > div:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .09);
}
/* Denyut halus pada glow emas hero (opacity saja — murah di HP). */
@keyframes glow-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.hero::after { animation: glow-pulse 9s ease-in-out infinite; }
/* Bingkai visual hero melayang pelan (float-slow sudah ada di atas). */
.hero-visual .frame { animation: float-slow 9s ease-in-out infinite; }
/* Titik status berdenyut: hijau bila dibuka, kuning bila belum. */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(55, 214, 122, .45); }
  70% { box-shadow: 0 0 0 9px rgba(55, 214, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0); }
}
@keyframes pulse-dot-amber {
  0% { box-shadow: 0 0 0 0 rgba(224, 168, 0, .45); }
  70% { box-shadow: 0 0 0 9px rgba(224, 168, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 168, 0, 0); }
}
.status-dot { animation: pulse-dot 2.4s ease-out infinite; }
.status-dot.closed { animation-name: pulse-dot-amber; }
/* Petunjuk gulir di bawah hero. */
.hero-scroll {
  position: absolute; left: 50%; bottom: 16px; z-index: 2;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, .75); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  transition: color .2s;
}
.hero-scroll:hover { color: var(--gold-soft); }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero-scroll .hero-scroll-arrow { display: inline-block; animation: cue-bob 2s ease-in-out infinite; color: var(--gold); }

/* ---------- Kartu program SMP/SMA: hover lebih tegas ---------- */
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
  border-color: oklch(0.77 0.12 80 / 0.5);
}
.program-card:focus-within { border-color: var(--gold); box-shadow: var(--shadow-elegant); }
.program-card:hover .program-glyph { color: oklch(0.77 0.12 80 / 0.55); }
.program-card .btn { display: flex; width: 100%; justify-content: center; }

/* ---------- Kartu fakta / info / langkah: angkat halus saat hover ---------- */
.fact-card, .info-card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.fact-card:hover, .info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elegant);
  border-color: oklch(0.77 0.12 80 / 0.45);
}
.section-navy .step { transition: transform .25s, border-color .25s, background .25s; }
.section-navy .step:hover {
  transform: translateY(-3px);
  border-color: oklch(0.77 0.12 80 / 0.5);
  background: rgba(255, 255, 255, .08);
}

/* ---------- FAQ: hover + transisi ---------- */
.faq-item summary { transition: background .2s; }
.faq-item summary:hover { background: var(--gold-soft); }

/* ---------- Galeri: zoom halus pada foto ---------- */
.gallery-grid figure { overflow: hidden; border-radius: 8px; }
.gallery-grid img { transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.galeri-item img { transition: transform .3s, box-shadow .3s; }
.galeri-item:hover img { transform: scale(1.03); box-shadow: var(--shadow-soft); }

/* ---------- Footer: garis emas pemisah ---------- */
footer { border-top: 3px solid var(--gold); }

/* ---------- Dashboard pendaftar ---------- */
.badge-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; }
.badge-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: 0 0 auto;
}
.timeline li { transition: color .2s; }
.jenjang-card { transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.jenjang-card:hover { transform: translateY(-2px); }
.upload-box { transition: border-color .2s, background .2s, box-shadow .2s; }
.upload-box:hover { border-color: var(--gold); background: #fdf8e3; }
.upload-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px oklch(0.77 0.12 80 / 0.25);
}
#panelStatus .cta-row .btn { min-height: 44px; }

/* ---------- Admin: kartu statistik ---------- */
.stat { transition: transform .2s, box-shadow .2s, border-color .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-elegant); }
.stat .num { font-variant-numeric: tabular-nums; }
.stat-gold { border-top: 3px solid var(--gold); }
.stat-gold:hover { border-top-color: var(--gold); }

/* ---------- Admin: blok statistik per jenjang ---------- */
.jenjang-stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.jenjang-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.jenjang-stat:first-child { border-top: 3px solid var(--navy); }
.jenjang-stat:last-child { border-top: 3px solid var(--gold); }
.jenjang-stat h4 { color: var(--navy); }
.jenjang-stat ul { margin: 8px 0 0; }
.jenjang-stat li { padding: 3px 0; }

/* ---------- Admin: bar filter pendaftar ---------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  background: var(--muted-bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-top: 14px;
}
.filter-bar label { margin-top: 0; }

/* ---------- Admin: tabel pendaftar (zebra + hover) ---------- */
table td { transition: background-color .15s; }
tbody tr:nth-child(even) td { background: #f7f9fb; }
tr:hover td { background: #eef3f7; }
tbody tr { transition: background-color .15s; }

/* ---------- Login: kartu form masuk halus ---------- */
.auth-form-wrap .card { animation: fade-up .7s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ---------- Hormati preferensi kurangi gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero-visual .frame, .status-dot,
  .hero-scroll .hero-scroll-arrow, .auth-form-wrap .card { animation: none; }
  .program-card:hover, .fact-card:hover, .info-card:hover,
  .section-navy .step:hover, .stat:hover, .jenjang-stat:hover,
  .jenjang-card:hover, .berita-card:hover, .hero-stats > div:hover { transform: none; }
}

/* ---------- Berita & pengumuman ---------- */
.berita-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.berita-list { display: grid; gap: 18px; }
.berita-card { transition: transform .2s, box-shadow .2s; border-top: 3px solid var(--gold); }
.berita-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-elegant); }
.berita-tanggal { color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.berita-judul { font-size: 1.25rem; line-height: 1.35; margin: 0 0 8px; }
.berita-judul a { color: var(--navy); text-decoration: none; }
.berita-judul a:hover { text-decoration: underline; }
.berita-ringkasan { color: var(--foreground); margin-bottom: 10px; }
.berita-baca { font-weight: 700; color: var(--navy-2); }
.berita-empty { border-top: 3px solid var(--gold); }
.berita-detail { border-top: 3px solid var(--gold); padding: 28px 30px; }
.berita-judul-detail { font-size: 1.9rem; line-height: 1.25; margin: 0 0 16px; }
.berita-isi { line-height: 1.8; }
.berita-kembali { font-weight: 700; }
/* Admin: baris berita di daftar kelola */
.berita-admin-item { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.berita-admin-item p { margin: 2px 0; }
.berita-admin-aksi { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Penyesuaian layar kecil tambahan (375px) ---------- */
@media (max-width: 480px) {
  .hero-scroll { display: none; }
  .final-cta .btn-xl { width: 100%; }
  .table-wrap table { font-size: .88rem; }
  th, td { padding: 9px 10px; }
  .filter-bar { padding: 12px; }
  .filter-bar > div { flex: 1 1 100%; min-width: 0; }
  .filter-bar .btn { flex: 1 1 auto; }
  .berita-grid { grid-template-columns: 1fr; }
  .berita-detail { padding: 20px; }
  .berita-judul-detail { font-size: 1.5rem; }
  .berita-admin-item { flex-direction: column; }
  .berita-admin-aksi { width: 100%; }
  .berita-admin-aksi .btn { flex: 1; }
}
/* ============================================================
   TOPBAR RAPI + NAV DUA BARIS HP + TOMBOL SERAGAM (mc-ppdb-nav-semua)
   Ide layout dari contoh yang dikirim Albert (hanya idenya: logo di
   kiri, menu navigasi di kanan atas, tombol pill menonjol) — foto,
   logo, nama, dan teks sekolah lain di contoh TIDAK dipakai.
   Topbar: brand (logo + nama sekolah) di KIRI, nav di KANAN ATAS
   (margin-left: auto) di semua 10 halaman, urutan tautan sama.
   HP (<=768px): DUA BARIS — perintah Albert 02:41 WIB 2026-11-18
   ("Judul di buat sendiri lalu tombol di bawah judul biar GK
   tabrakan"): baris 1 = judul SENDIRI (logo + nama sekolah utuh,
   lebar penuh), baris 2 = tombol nav di bawah judul (lebar penuh,
   geser horizontal). Judul dan tombol TIDAK PERNAH bersentuhan
   karena berada di baris flex yang berbeda — ini ganti desain SATU
   strip sebelumnya (brand penuh + nav di kanan yang sama), yang
   membuat judul menabrak tombol nav di layar ~375px (tombol
   "Galeri" terpotong jadi "aleri" di screenshot Albert).
   .topbar-inner flex-wrap: wrap; brand flex: 1 1 100%; nav flex:
   1 1 100% + overflow-x: auto (scrollbar disembunyikan visual,
   tetap bisa di-swipe dan difokus keyboard). Nama sekolah boleh
   membungkus ke dua baris di layar sangat sempit — tidak pernah
   terpotong "..."; sub-nama yayasan tampil lagi di baris judul.
   TIDAK ada lagi tombol hamburger. Tautan nav dibuat kecil/kompak
   (~36px) supaya beberapa tombol terlihat sekaligus; tombol Daftar
   tetap pill emas (btn-gold), tidak selebar baris.
   Desktop (>=769px): tidak berubah — logo kiri, menu kanan atas.
   ============================================================ */

/* ---------- HP/tablet kecil: topbar jadi DUA BARIS (judul sendiri, nav di bawah) ---------- */
@media (max-width: 768px) {
  /* DUA BARIS: baris 1 = judul sendiri (lebar penuh), baris 2 = nav
     (lebar penuh, geser horizontal). Judul dan tombol tidak pernah
     bersentuhan karena berada di baris flex yang berbeda. */
  .topbar-inner {
    flex-wrap: wrap; overflow: visible;
    gap: 2px 8px; padding: 8px 12px 10px;
  }
  /* Baris 1: brand sendiri, lebar penuh. Nama boleh membungkus ke dua
     baris di layar sangat sempit — tidak pernah terpotong "...".
     Sub-nama yayasan tampil lagi di bawah nama sekolah. */
  .brand { flex: 1 1 100%; min-width: 0; gap: 8px; }
  .brand > span { min-width: 0; overflow: visible; }
  .brand-mark { width: 30px; height: 30px; flex-basis: 30px; font-size: 1rem; }
  .brand-name {
    display: block; white-space: normal; overflow: visible;
    text-overflow: clip; font-size: .92rem;
  }
  .brand-sub { display: block; }
  .brand br { display: none; }
  /* Baris 2: nav lebar penuh di bawah judul — area scroll-nya SENDIRI. */
  .topbar nav {
    flex: 1 1 100%; min-width: 0; margin-left: 0;
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    gap: 6px; padding: 2px 0;
  }
  /* Scrollbar nav disembunyikan secara visual; geser tetap jalan. */
  .topbar nav::-webkit-scrollbar { display: none; }
  /* Tombol nav kecil/kompak: tinggi ~36px, tetap nyaman diketuk. */
  .topbar nav a {
    flex: 0 0 auto; white-space: nowrap;
    min-height: 36px; padding: 6px 10px; font-size: .85rem;
    display: inline-flex; align-items: center;
  }
  /* Tombol Daftar di strip: tetap pill emas, ukuran wajar. */
  .topbar nav a.btn { flex: 0 0 auto; }
  /* Topbar lebih tinggi (dua baris) — jangkar section butuh offset lebih. */
  section[id] { scroll-margin-top: 7rem; }
}

/* ---------- HP kecil (<=480px): brand tetap muat, nav tetap geser ---------- */
@media (max-width: 480px) {
  .topbar nav a { font-size: .85rem; padding: 6px 9px; }
}

/* ============================================================
   POLISH 2026-11-18 (Sari) — "Sekolah dulu, SPMB sebagai bagian"
   Situs ini website RESMI sekolah, SPMB hanya satu bagiannya:
   beranda mengutamakan profil/galeri/berita sekolah, SPMB dibuka
   oleh pita navy #spmb di bawahnya. Visual saja: tidak ada perubahan
   fungsi, alur, field, endpoint, atau data sekolah.
   ============================================================ */

/* ---------- Hero sinematik: scrim berlapis, teks lebih bernafas ---------- */
.hero {
  background-image:
    linear-gradient(90deg, rgba(6,16,30,.62) 0%, rgba(6,16,30,.28) 55%, rgba(6,16,30,.08) 100%),
    linear-gradient(180deg, rgba(6,16,30,.72) 0%, rgba(6,16,30,.42) 42%, rgba(6,16,30,.78) 82%, rgba(6,16,30,.94) 100%),
    var(--hero-foto, url('hero-sekolah.jpg'));
  background-position: center, center, center 38%;
  padding: 64px 0 40px;
}
.hero > .wrap { width: 100%; }
@media (min-width: 900px) {
  .hero { min-height: 620px; display: flex; align-items: center; padding: 72px 0 56px; }
  .hero-cta { padding: 32px 0 8px; }
}
.hero h1 {
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  max-width: 16ch; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero .hero-lead {
  font-size: 1.08rem; max-width: 36rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.hero .status-pill {
  background: rgba(8, 20, 38, .45);
  border-color: rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.hero .cta-row { gap: 12px; }
.hero .cta-row .btn { box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .5), var(--shadow-gold); }
/* CTA pertama (Kenali Sekolah Kami) tampil sebagai ajakan utama. */
.hero .cta-row #ctaProfil {
  background-image: linear-gradient(120deg, #ecd27a 0%, #d4af37 55%, #c39a2b 100%);
}
.hero-stats { margin-top: 18px; }
.hero-stats > div {
  background: rgba(8, 20, 38, .42);
  border-color: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.hero-stats dd { font-size: 1.3rem; letter-spacing: .01em; }

/* ---------- Pita pembuka bagian SPMB ---------- */
.spmb-band {
  position: relative; overflow: hidden;
  background-image: var(--gradient-navy); color: #fff;
  padding: 64px 0 60px;
}
.spmb-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px),
    linear-gradient(-45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .45;
}
.spmb-band::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 22rem; height: 22rem;
  border-radius: 50%; background: oklch(0.77 0.12 80 / 0.14); filter: blur(48px); pointer-events: none;
}
.spmb-band .wrap { position: relative; }
.spmb-band h2 { color: #fff; font-size: 2.1rem; }
.spmb-band .section-head p { color: rgba(255, 255, 255, .78); font-size: 1.05rem; }
.spmb-band-link { margin: 18px 0 0; }
.spmb-band-link a {
  color: var(--gold-soft); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.spmb-band-link a:hover { color: #fff; border-color: #fff; }
@media (min-width: 640px) { .spmb-band h2 { font-size: 2.5rem; } }

/* ---------- Ritme antar-section: lebih bernafas ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin: 14px 0 10px; }
.section-head p { line-height: 1.7; }
@media (min-width: 640px) { .section { padding: 80px 0; } }

/* ---------- Kartu: bayangan + tepi lebih premium ---------- */
.card {
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 1px 2px oklch(0.22 0.05 263 / 0.05), 0 10px 30px -16px oklch(0.22 0.05 263 / 0.18);
}
.program-card .tba-rows { background: rgba(250, 248, 242, .7); }
.check-list li { padding: 9px 0; }
.info-card h3 { font-size: 1.45rem; }
.faq-item summary { font-size: 1.02rem; }
.contact-row { box-shadow: 0 1px 2px oklch(0.22 0.05 263 / 0.05), 0 10px 30px -16px oklch(0.22 0.05 263 / 0.18); }
.berita-card { border-radius: calc(var(--radius) + 6px); }

/* ---------- CTA akhir: bingkai emas tipis ---------- */
.final-cta {
  border: 1px solid oklch(0.77 0.12 80 / 0.45);
  box-shadow: var(--shadow-elegant), 0 0 0 6px rgba(212, 175, 55, .06);
}

/* ---------- Form daftar premium ---------- */
#view-daftar .wrap { padding-top: 8px; }
.auth-card {
  border-top: 4px solid var(--gold);
  padding: 30px 28px 28px;
}
.auth-step {
  text-align: center; margin: 0 0 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber);
}
.auth-card h2 { font-size: 1.7rem; margin: 0 0 6px; }
.field-group {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px 16px 16px; margin: 20px 0 0; background: #fdfcf9;
}
.field-group-label {
  margin: 0 0 2px; padding-top: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber);
}
.field-group label:first-of-type { margin-top: 8px; }
.form input {
  min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: #fff;
}
.form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px oklch(0.77 0.12 80 / 0.28);
}
.form input::placeholder { color: #9aa8b5; }
.form .show-pw {
  display: inline-flex; background: var(--gold-soft);
  border-radius: 999px; padding: 8px 14px; margin-top: 14px;
  color: var(--gold-foreground); font-weight: 600;
}
#btnDaftar { min-height: 52px; font-size: 1.05rem; margin-top: 22px; }
@media (min-width: 640px) { .auth-card { padding: 36px 36px 32px; } }

/* ---------- HP 375px: hero + pita SPMB tetap nyaman ---------- */
@media (max-width: 480px) {
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 1.9rem; max-width: 14ch; }
  .hero .hero-lead { font-size: 1rem; }
  .hero .cta-row { gap: 10px; }
  .hero-stats { margin-top: 14px; }
  .hero-stats dt { font-size: .62rem; }
  .spmb-band { padding: 48px 0 44px; }
  .spmb-band h2 { font-size: 1.7rem; }
  .section { padding: 48px 0; }
  .auth-card { padding: 24px 18px 22px; margin: 24px auto; }
  .field-group { padding: 4px 12px 14px; }
  .form input { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero-visual .frame { animation: none; }
}

/* ============================================================
   UPGRADE PREMIUM 2026-11-18 (Sari) — "Upgrade semenarik mungkin"
   Perintah Albert 01:48 WIB. Visual SAJA di atas polish 01:46 WIB:
   hero sinematik (Ken Burns halus pada foto asli), reveal berjenjang
   saat scroll, kartu lebih premium (bayangan berlapis), kilau emas
   pada tombol, tipografi lebih tegas, watermark "U" di pita SPMB.
   Palet navy/emas + foto sekolah asli TIDAK berubah; urutan
   sekolah-dulu, semua data, semua id/hook JS, dan backend TIDAK
   disentuh. Animasi hanya transform/opacity (murah di HP) dan
   semuanya dimatikan di prefers-reduced-motion.
   ============================================================ */

/* ---------- Seleksi teks emas ---------- */
::selection { background: rgba(212, 175, 55, .35); color: var(--navy); }

/* ---------- Topbar: garis emas tipis di bawah ---------- */
.topbar { border-bottom: 2px solid rgba(212, 175, 55, .55); }

/* ---------- Hero: foto jadi lapisan sendiri + Ken Burns halus ----------
   Foto dipindah dari background .hero ke .hero::before supaya bisa
   di-zoom pelan (transform saja — GPU, ringan di HP). Dua scrim
   gradien tetap di .hero di ATAS foto (z-index .wrap = 1). */
.hero {
  background-image:
    linear-gradient(90deg, rgba(6,16,30,.62) 0%, rgba(6,16,30,.28) 55%, rgba(6,16,30,.08) 100%),
    linear-gradient(180deg, rgba(6,16,30,.72) 0%, rgba(6,16,30,.42) 42%, rgba(6,16,30,.78) 82%, rgba(6,16,30,.94) 100%);
  background-position: center, center;
}
@keyframes hero-kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}
.hero::before {
  display: block; content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-foto, url('hero-sekolah.jpg'));
  background-size: cover; background-repeat: no-repeat;
  background-position: center 38%;
  animation: hero-kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}
/* Status pill hero: kaca lebih jelas di atas foto bergerak. */
.hero .status-pill { box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }

/* ---------- Tipografi section: lebih tegas + seimbang ---------- */
.section-head h2 { text-wrap: balance; }
@media (min-width: 640px) {
  .section-head h2 { font-size: 2.6rem; }
  .spmb-band h2 { font-size: 2.7rem; }
}
/* Eyebrow: garis emas di kiri DAN kanan (simetris, rapi di tengah). */
.eyebrow::after {
  content: ""; height: 2px; width: 2rem; border-radius: 999px;
  background-image: var(--gradient-gold); flex: 0 0 auto;
}

/* ---------- Reveal berjenjang: kartu muncul satu-satu saat scroll ----------
   Delay hanya untuk anak grid/langkah (maks 4), supaya tidak terasa
   lambat. Observer JS yang sudah ada tetap yang memicu .is-visible. */
html.js-reveal .grid .reveal:nth-child(2),
html.js-reveal .flow-steps .step:nth-child(2),
html.js-reveal .berita-grid .berita-card:nth-child(2) { transition-delay: .08s; }
html.js-reveal .grid .reveal:nth-child(3),
html.js-reveal .flow-steps .step:nth-child(3),
html.js-reveal .berita-grid .berita-card:nth-child(3) { transition-delay: .16s; }
html.js-reveal .grid .reveal:nth-child(4),
html.js-reveal .flow-steps .step:nth-child(4) { transition-delay: .24s; }
html.js-reveal .flow-steps .step:nth-child(5) { transition-delay: .32s; }
/* Kartu berita & foto galeri di-inject JS setelah load: animasi masuk
   halus begitu muncul (tanpa observer, tanpa mengubah app.js). */
.berita-grid .berita-card { animation: fade-up .6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.berita-grid .berita-card:nth-child(2) { animation-delay: .08s; }
.berita-grid .berita-card:nth-child(3) { animation-delay: .16s; }
.gallery-grid figure { animation: fade-up .6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.gallery-grid figure:nth-child(2) { animation-delay: .06s; }
.gallery-grid figure:nth-child(3) { animation-delay: .12s; }
.gallery-grid figure:nth-child(4) { animation-delay: .18s; }
.gallery-grid figure:nth-child(5) { animation-delay: .24s; }
.gallery-grid figure:nth-child(6) { animation-delay: .3s; }

/* ---------- Kartu: bayangan berlapis + radius lebih besar ---------- */
.card {
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px oklch(0.22 0.05 263 / 0.05),
    0 12px 32px -18px oklch(0.22 0.05 263 / 0.22),
    0 2px 8px -4px oklch(0.22 0.05 263 / 0.06);
}
.program-card, .info-card, .fact-card { border-radius: 1.5rem; }
/* Garis emas halus di atas kartu fakta & info (aksen premium). */
.fact-card, .info-card { position: relative; }
.fact-card::before, .info-card::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  border-radius: 0 0 999px 999px; background-image: var(--gradient-gold);
  opacity: .85; pointer-events: none;
}

/* ---------- Tombol emas: kilau menyapu saat hover ----------
   Hanya ::after + left (compositor-friendly); tombol tetap pill emas. */
.btn { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg); transition: left .65s ease; pointer-events: none;
}
.btn-gold:hover::after, .btn-gold:focus-visible::after { left: 135%; }

/* ---------- Pita SPMB: watermark huruf "U" raksasa (samar) ---------- */
.spmb-band .section-head { position: relative; }
.spmb-band .section-head::after {
  content: "U"; position: absolute; right: -6px; top: -46px;
  font-family: var(--font-title); font-weight: 700; font-size: 9rem; line-height: 1;
  color: rgba(212, 175, 55, .09); pointer-events: none; user-select: none;
}
@media (max-width: 480px) {
  .spmb-band .section-head::after { font-size: 6rem; top: -30px; right: 0; }
}

/* ---------- CTA akhir: angkat halus + tombol lebih bercahaya ---------- */
.final-cta { transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s; }
.final-cta:hover { transform: translateY(-3px); }
.final-cta .btn-xl {
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55), var(--shadow-gold);
}

/* ---------- Form daftar: input lebih hidup saat disentuh ---------- */
.form input { box-shadow: inset 0 1px 2px rgba(15, 36, 56, .05); }
.form input:hover { border-color: #c8b06a; }
.field-group { box-shadow: 0 1px 2px oklch(0.22 0.05 263 / 0.04), 0 8px 24px -16px oklch(0.22 0.05 263 / 0.14); }

/* ---------- Peta kontak: bingkai lebih premium ---------- */
.map-frame { border-radius: 1.5rem; }

/* ---------- Hormati preferensi kurangi gerak (tambahan blok ini) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  .btn-gold::after { display: none; }
  .berita-grid .berita-card, .gallery-grid figure { animation: none; }
  .final-cta:hover { transform: none; }
  html.js-reveal .grid .reveal,
  html.js-reveal .flow-steps .step { transition-delay: 0s; }
}

/* ============================================================
   UPGRADE PREMIUM RONDE 2 (Sari) — 2026-11-18, perintah Albert 01:54 WIB
   "Upgrade lagi lah": perlakuan premium beranda dibawa ke halaman lain.
   Sistem bersama di sini; pemakaian di profil/smp/sma/kontak/login.
   Visual SAJA: tidak ada perubahan fungsi, alur, field, endpoint,
   atau data sekolah. Animasi hanya transform/opacity; semuanya
   dimatikan di prefers-reduced-motion (blok di akhir).
   ============================================================ */

/* ---------- Pita kepala halaman (page-hero): foto sekolah + scrim ----------
   Dipakai profil/smp/sma/kontak menggantikan .page-head polos.
   Foto: hero-sekolah.jpg yang sama; crop per halaman mengikuti
   --bg-pos body (profil 22%, smp 64%, sma 38%, kontak 72%).
   Lapisan: foto (background) -> scrim + anyaman (di ::before) ->
   konten (.wrap, z-index 1) -> watermark huruf (span, aria-hidden). */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 56px 0 48px;
  background-image: url('hero-sekolah.jpg');
  background-size: cover; background-repeat: no-repeat;
  background-position: center var(--hero-pos, 38%);
}
body.page-profil .page-hero { --hero-pos: 22%; }
body.page-smp .page-hero { --hero-pos: 64%; }
body.page-sma .page-hero { --hero-pos: 38%; }
body.page-kontak .page-hero { --hero-pos: 72%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(6,16,30,.78) 0%, rgba(6,16,30,.55) 55%, rgba(6,16,30,.35) 100%),
    linear-gradient(180deg, rgba(6,16,30,.66) 0%, rgba(6,16,30,.42) 45%, rgba(6,16,30,.8) 100%),
    linear-gradient(45deg, oklch(0.77 0.12 80 / 0.07) 1px, transparent 1px),
    linear-gradient(-45deg, oklch(0.77 0.12 80 / 0.07) 1px, transparent 1px);
  background-size: cover, cover, 28px 28px, 28px 28px;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .crumb {
  margin: 0 0 14px; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; color: rgba(255, 255, 255, .72);
}
.page-hero .crumb a { color: var(--gold-soft); text-decoration: none; }
.page-hero .crumb a:hover { color: #fff; text-decoration: underline; }
.page-hero .crumb span[aria-hidden="true"] { margin: 0 6px; color: var(--gold); }
.page-hero h1 {
  color: #fff; margin: 12px 0 10px;
  font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12;
  text-wrap: balance; max-width: 20ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
  position: relative; padding-bottom: 16px;
}
.page-hero h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px;
  border-radius: 999px; background-image: var(--gradient-gold);
}
.page-hero-lead {
  margin: 0; max-width: 38rem; font-size: 1.05rem; line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
/* Watermark huruf raksasa (samar) — seperti "U" di pita SPMB beranda. */
.page-hero-glyph {
  position: absolute; right: 8px; bottom: -38px; z-index: 0;
  font-family: var(--font-title); font-weight: 700; font-size: 10rem; line-height: 1;
  color: rgba(212, 175, 55, .12); pointer-events: none; user-select: none;
}
@media (min-width: 900px) {
  .page-hero { padding: 72px 0 60px; }
  .page-hero-glyph { font-size: 13rem; bottom: -56px; right: 24px; }
}

/* ---------- Strip statistik mini (terang) untuk halaman dalam ----------
   Tiga kartu kaca putih di atas section ivory — pasangan .hero-stats
   beranda yang gelap. Angka Fraunces emas, label huruf kecil. */
.mini-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 0 0 28px; padding: 0;
}
.mini-stats > div {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 1px 2px oklch(0.22 0.05 263 / 0.05), 0 10px 28px -18px oklch(0.22 0.05 263 / 0.2);
  transition: transform .25s, box-shadow .25s;
}
.mini-stats > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-elegant); }
.mini-stats dt {
  font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted);
}
.mini-stats dd {
  margin: 5px 0 0; font-family: var(--font-title); font-size: 1.2rem;
  font-weight: 700; color: var(--navy); line-height: 1.25;
}
.mini-stats dd .gold { color: var(--amber); }

/* ---------- Kartu angkat halus (untuk kartu polos tanpa hover) ---------- */
.card-lift { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elegant);
  border-color: oklch(0.77 0.12 80 / 0.45);
}

/* ---------- Garis emas di atas kartu info halaman dalam ----------
   fact-card/info-card sudah punya; .card-lift + .card-gold-top
   memberi aksen yang sama ke kartu polos (Visi & Misi, Lokasi). */
.card-gold-top { position: relative; }
.card-gold-top::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px;
  border-radius: 0 0 999px 999px; background-image: var(--gradient-gold);
  opacity: .85; pointer-events: none;
}

/* ---------- Sejarah singkat (profil): garis waktu emas ----------
   Data asli dari halaman: 2016 beroperasi (SK 420/6402/Dikmenjur/2016),
   2025 izin operasional (Keputusan Gubernur 421.3/368/2025). */
.sejarah { list-style: none; margin: 6px 0 0; padding: 0; }
.sejarah li {
  position: relative; display: grid; gap: 2px 18px;
  grid-template-columns: 1fr; padding: 0 0 22px 30px;
}
.sejarah li:last-child { padding-bottom: 0; }
.sejarah li::before {
  content: ""; position: absolute; left: 8px; top: 26px; bottom: -2px;
  width: 2px; background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, .25));
}
.sejarah li:last-child::before { display: none; }
.sejarah li::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background-image: var(--gradient-gold);
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold);
}
.sejarah-tahun {
  font-family: var(--font-title); font-size: 1.7rem; font-weight: 700;
  color: var(--amber); line-height: 1.1;
}
.sejarah h3 { margin: 0 0 4px; font-size: 1.15rem; }
.sejarah p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 640px) {
  .sejarah li { grid-template-columns: 96px 1fr; }
}

/* ---------- Kartu "lanjut ke jenjang lain" (smp/sma) ----------
   Tautan silang antar-jenjang sebagai kartu navy, bukan sekadar link. */
.jenjang-next {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; border-radius: 1.5rem; padding: 26px 28px;
  background-image: var(--gradient-navy); color: #fff;
  box-shadow: var(--shadow-elegant);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s;
}
.jenjang-next::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px),
    linear-gradient(-45deg, oklch(0.77 0.12 80 / 0.09) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5;
}
.jenjang-next > * { position: relative; }
.jenjang-next:hover { transform: translateY(-3px); }
.jenjang-next h3 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; }
.jenjang-next p { margin: 0; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.jenjang-next .btn { flex: 0 0 auto; }

/* ---------- Kontak: tombol aksi cepat + kartu telepon ----------
   Nomor telepon asli (061) 6617811 jadi tautan tel:; Instagram tetap
   tautan keluar. Tidak ada kanal baru yang dibuat-buat. */
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 20px; }
.contact-actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .contact-actions .btn { flex: 0 1 auto; } }
.contact-row .contact-value a { color: var(--navy); text-decoration: none; }
.contact-row .contact-value a:hover { color: var(--amber); text-decoration: underline; }
.contact-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 12px; padding: 12px 14px; font-size: .9rem; color: var(--gold-foreground);
}
.contact-note .note-icon { color: var(--amber); flex: 0 0 auto; font-size: 1.1rem; }

/* ---------- Login: kartu form bertopi emas + aside lebih hidup ----------
   .auth-split hanya dipakai login.html — aman dari dashboard/admin. */
.auth-split .auth-form-wrap .card { border-top: 4px solid var(--gold); }
.auth-aside .aside-glyph {
  position: absolute; right: -12px; bottom: -52px;
  font-family: var(--font-title); font-weight: 700; font-size: 15rem; line-height: 1;
  color: rgba(212, 175, 55, .08); pointer-events: none; user-select: none;
}
.auth-aside .aside-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.aside-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  border-radius: 999px; padding: 7px 13px;
  font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .85);
}
.aside-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.auth-aside .aside-note { transition: transform .25s, border-color .25s, background .25s; }
.auth-aside .aside-note:hover {
  transform: translateY(-2px);
  border-color: oklch(0.77 0.12 80 / 0.5);
  background: rgba(255, 255, 255, .08);
}

/* ---------- HP 375px: page-hero + strip mini tetap nyaman ---------- */
@media (max-width: 480px) {
  .page-hero { padding: 44px 0 38px; }
  .page-hero h1 { font-size: 1.85rem; max-width: 16ch; }
  .page-hero-lead { font-size: .98rem; }
  .page-hero-glyph { font-size: 6.5rem; bottom: -26px; right: 0; }
  .mini-stats { gap: 8px; }
  .mini-stats > div { padding: 12px; }
  .mini-stats dd { font-size: 1.02rem; }
  .mini-stats dt { font-size: .6rem; letter-spacing: .1em; }
  .jenjang-next { padding: 22px 20px; }
  .jenjang-next .btn { width: 100%; }
  .contact-actions .btn { width: 100%; }
  .sejarah-tahun { font-size: 1.45rem; }
}

/* ---------- Hormati preferensi kurangi gerak (ronde 2) ---------- */
@media (prefers-reduced-motion: reduce) {
  .mini-stats > div:hover, .card-lift:hover,
  .jenjang-next:hover, .auth-aside .aside-note:hover { transform: none; }
}
