/* ═════════════════════════════════════════════════════════════════════════════════════════════════════════════
   tema-twilight.css — FITUR (Nov 2026): tema gelap "Twilight" untuk bilah atas & latar semua halaman aplikasi.
   Hanya aktif bila <html data-theme="dark">; tema lain tidak tersentuh. Sidebar hijau zamrud tidak diubah.
   - Pita pengumuman berjalan & bilah semboyan Ki Hajar Dewantara: kaca gelap slate-900/80, teks terang.
   - Logo Tut Wuri Handayani diberi cincin putih + garis emas + cahaya tipis agar tidak tenggelam di latar gelap.
   - Latar konten biru malam dengan cahaya zamrud tipis di dekat sidebar supaya keduanya menyatu.
   Dimuat oleh index.php setelah bm-standar.css. Untuk mematikan: hapus baris <link> tema-twilight.css.
   ═════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] body{background-color:#0f172a}
@media (min-width:901px){
  :root[data-theme="dark"] #main-content{
    background-image:radial-gradient(900px 640px at 0 0,rgba(16,185,129,.09),rgba(16,185,129,0) 70%),
                     linear-gradient(180deg,rgba(2,44,34,.20) 0,rgba(15,23,42,0) 520px);
    background-repeat:no-repeat}
}

/* Bilah atas (berisi semboyan dari merek-sekolah.js) */
:root[data-theme="dark"] .app-header,
:root[data-theme="dark"] body.gpm-aktif .app-header,
:root[data-theme="dark"] body.gpm-aktif #app-header.app-header{
  background:rgba(15,23,42,.82)!important;background-image:none!important;color:#e2e8f0!important;
  border-bottom:1px solid rgba(255,255,255,.06)!important;box-shadow:none!important;
  -webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important}
/* Tombol menu (HP/tablet): gradien var(--primary) tema gelap = abu terang -> ikon putih tak terlihat (1:1). Zamrud. */
:root[data-theme="dark"] .hamburger-btn{background:linear-gradient(135deg,#059669,#047857)!important;color:#fff!important}
:root[data-theme="dark"] .gpm-kepala .t,
:root[data-theme="dark"] .gpm-kepala .gpm-semboyan,
:root[data-theme="dark"] .gpm-kepala span.n.gpm-semboyan{color:#e2e8f0!important}
/* Selektor sengaja dipertajam (:root + body.gpm-aktif .app-header … span.k) agar mengalahkan aturan gelap bawaan yang
   disuntikkan tambahan-merek.js ([data-theme="dark"] body.gpm-aktif .app-header .gpm-kepala span.k, spesifisitas 0,5,2). */
:root[data-theme="dark"] .gpm-kepala .k,
:root[data-theme="dark"] body.gpm-aktif .app-header .gpm-kepala span.k{color:#fbbf24!important}
:root[data-theme="dark"] body.gpm-aktif .app-header .gpm-kepala span.k::before{background:#fbbf24!important;opacity:.85}
:root[data-theme="dark"] .gpm-kepala .gpm-lambang,
:root[data-theme="dark"] .gpm-kepala .gpm-resmi,
:root[data-theme="dark"] body.gpm-aktif .app-header .gpm-kepala .gpm-lambang,
:root[data-theme="dark"] body.gpm-aktif .app-header .gpm-kepala .gpm-resmi{border-radius:50%!important;background:#f8fafc!important;
  box-shadow:0 0 0 1px rgba(251,191,36,.75),0 0 0 4px rgba(251,191,36,.10),0 0 16px 2px rgba(147,197,253,.22)!important}
:root[data-theme="dark"] .bmk-tombol{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.12)!important;color:#e2e8f0!important;box-shadow:none!important}
:root[data-theme="dark"] .bmk-tombol:hover{background:rgba(255,255,255,.10)!important;border-color:rgba(52,211,153,.4)!important}

/* Pita pengumuman berjalan */
:root[data-theme="dark"] #pengumuman-marquee{background:rgba(15,23,42,.82)!important;background-image:none!important;color:#cbd5e1!important;
  border-bottom:1px solid rgba(255,255,255,.06)}
:root[data-theme="dark"] #pengumuman-marquee .pengumuman-close{background:rgba(255,255,255,.08);color:#e2e8f0}
:root[data-theme="dark"] #pengumuman-marquee .pengumuman-close:hover{background:rgba(255,255,255,.16)}
