/* ==========================================================================
 * Tema visual XII TKJ 3, versi 17 (dimuat setelah site.css, jadi menggantikan tampilannya).
 *
 * Palet diambil dari logo kelas:
 *   langit  #7CC4E6  latar perisai pada logo
 *   emas    #E8B22C  bingkai dan bintang pada logo
 *   navy    #0B2545  menara dan huruf pada logo
 *
 * Prinsip: halaman dibagi per blok warna lebar penuh, bukan per kartu.
 * Garis tipis dan jarak dipakai untuk memisahkan isi. Tidak ada tombol ajakan (CTA).
 * Hapus link theme.css di layouts/base.blade.php untuk kembali ke tampilan lama.
 * ========================================================================== */
:root {
    --ink: #0b2545;
    --ink-2: #3a526d;
    --ink-3: #5a6f86;
    --garis: #d3e1ec;
    --langit: #7cc4e6;
    --langit-d: #1b6f9c;
    --langit-t: #e4f3fb;
    --emas: #e8b22c;
    --emas-t: #fbf0cd;
    --kertas: #ffffff;
    --merah: #b4233f;
    --hijau: #14703f;
    --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --teks: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pad: 20px;
    --header-h: 68px;
}

/* ---------- Dasar ---------- */
html { scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body { background: var(--kertas); color: var(--ink); font-family: var(--teks); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--display); font-optical-sizing: auto; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--langit-d); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--langit-d); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
::selection { background: var(--langit); color: var(--ink); }

/* Halaman memenuhi layar; footer selalu menempel di dasar */
#app-root { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 0; }
#app-root > .ft { margin-top: auto; }

/* ==========================================================================
 * Header: menempel rata di atas, selebar layar (tidak mengambang)
 * ========================================================================== */
.hd { position: sticky; top: 0; z-index: 60; background: #fff; }
/* Baris atas ikut tergulir pergi; hanya bilah menu yang tetap menempel */
@media (min-width: 640px) { .hd { top: -36px; } }
.hd-top { display: none; height: 36px; background: var(--ink); color: rgba(255, 255, 255, .82); font-size: 13px; line-height: 36px; }
.hd-top-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 36px; }
.hd-top-akun { display: flex; align-items: center; gap: 16px; }
.hd-top-akun form { display: block; }
.hd-top .hd-link { font-size: 13px; color: #fff; text-decoration-color: rgba(255, 255, 255, .35); text-decoration-thickness: 1px; text-underline-offset: 4px; line-height: 36px; }
.hd-top .hd-link:hover { color: #fff; text-decoration-color: var(--langit); }
.hd-bar { background: #fff; border-bottom: 1px solid var(--garis); transition: box-shadow .35s ease; }
.hd.tergulir .hd-bar { box-shadow: 0 10px 28px -18px rgba(11, 37, 69, .45); }
.hd-in { display: flex; align-items: center; height: var(--header-h); gap: 20px; }

.hd-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.hd-brand img { height: 44px; width: auto; display: block; }
.hd-brand strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -0.005em; color: var(--ink); }
.hd-brand span { display: block; font-size: 13px; line-height: 1.3; color: var(--ink-3); }

.hd-nav { display: none; align-self: stretch; margin-left: auto; }
.hd-nav a { position: relative; display: flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .25s; white-space: nowrap; }
.hd-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--langit); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.22, 1, .36, 1), background-color .25s; }
.hd-nav a:hover { color: var(--ink); }
.hd-nav a:hover::after { transform: scaleX(1); }
.hd-nav a.active { color: var(--ink); }
.hd-nav a.active::after { transform: scaleX(1); background: var(--emas); }

.hd-auth { display: none; align-items: center; gap: 14px; margin-left: 4px; align-self: center; }
.hd-auth form { display: block; }
.hd-link { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--garis); text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.hd-link:hover { color: var(--ink); text-decoration-color: var(--langit); }
.hd-link-keluar { color: var(--merah); }
.hd-top .hd-link-keluar { color: #ffc2cd; }
.hd-masuk { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; background: transparent; border: 2px solid var(--ink); border-radius: 2px; transition: background .15s, color .15s; }
.hd-masuk:hover { background: var(--ink); color: #fff; }

.hamburger { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--garis); border-radius: 2px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 0; }

/* Menu samping (tablet & ponsel) */
.nav-overlay { background: rgba(11, 37, 69, .55); }
.nav-drawer { background: #fff; border-radius: 0; width: min(340px, 88vw); }
.drawer-head { background: var(--ink); border-radius: 0; padding: 20px 20px; align-items: flex-start; }
.drawer-head .who { font-size: 13px; color: rgba(255, 255, 255, .8); }
.drawer-head .who b { font-family: var(--display); font-size: 19px; font-weight: 700; color: #fff; margin: 2px 0; }
.drawer-close { border-radius: 2px; border-color: rgba(255, 255, 255, .35); }
.drawer-links { padding: 8px 0; gap: 0; }
.drawer-links a { border-radius: 0; padding: 15px 22px; font-size: 17px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--garis); box-shadow: none; }
.drawer-links a:hover { background: var(--langit-t); color: var(--ink); }
.drawer-links a.active { background: var(--langit-t); color: var(--ink); box-shadow: inset 5px 0 0 var(--emas); }
.drawer-foot { border-top: 0; padding: 18px 22px 24px; gap: 12px; }
.drawer-foot .btn-auth { text-align: left; }

/* Tombol masuk / keluar / ubah password (dipakai di drawer) */
.btn-auth { border: 2px solid var(--ink); background: transparent; color: var(--ink); padding: 11px 18px; border-radius: 2px; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.btn-auth:hover { background: var(--ink); color: #fff; }
.btn-auth-logout { border-color: var(--merah); color: var(--merah); }
.btn-auth-logout:hover { background: var(--merah); color: #fff; }

/* ==========================================================================
 * Beranda
 * ========================================================================== */
.h-sec { padding: 72px 0; }
.h-sec h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -0.015em; margin: 0; max-width: 18ch; }
.h-baru h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -0.015em; margin: 0; max-width: 18ch; }
.h-sec h3 { font-size: 24px; font-weight: 650; line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 14px; }
.h-sec p { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 64ch; margin: 0 0 16px; }

/* Hero: foto kelas selebar layar, teks di atas panel miring berwarna langit (mengikuti gaya hero nuxsen.xyz) */
.h-hero { position: relative; background: var(--langit); color: var(--ink); overflow: hidden; }
.h-hero-media { position: relative; overflow: hidden; }
.h-hero-media img { display: block; width: 100%; height: clamp(230px, 62vw, 420px); object-fit: cover; object-position: 50% 28%; }
.h-hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 45%; background: linear-gradient(to bottom, rgba(124, 196, 230, 0), var(--langit)); }
.h-shape, .h-stripe { display: none; }
.h-hero-in { position: relative; z-index: 2; margin-top: -44px; padding-bottom: 48px; }
.h-hi { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.h-hero h1 { font-size: clamp(52px, 15vw, 116px); font-weight: 700; line-height: .95; letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.h-hero-desc { margin: 18px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.65; color: var(--ink); }
.h-stats { display: flex; margin: 30px 0 0; padding: 0; max-width: 480px; border-top: 2px solid var(--ink); }
.h-stats > div { flex: 1; min-width: 0; padding: 16px 12px 0 0; }
.h-stats > div + div { padding-left: 16px; border-left: 1px solid rgba(11, 37, 69, .28); }
.h-stats dt { font-family: var(--display); font-size: clamp(28px, 6vw, 40px); font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.h-stats dd { margin: 8px 0 0; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
    .h-hero-media img { animation: h-tenang 2s cubic-bezier(.22, 1, .36, 1) both; }
    .h-hero-in > * > * { animation: h-naik .9s cubic-bezier(.22, 1, .36, 1) both; }
    .h-hero-in > * > :nth-child(1) { animation-delay: .15s; }
    .h-hero-in > * > :nth-child(2) { animation-delay: .25s; }
    .h-hero-in > * > :nth-child(3) { animation-delay: .35s; }
    .h-hero-in > * > :nth-child(4) { animation-delay: .45s; }
}
@keyframes h-naik { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes h-tenang { from { transform: scale(1.08); } to { transform: none; } }
@keyframes h-geser { from { opacity: 0; transform: translateX(-6%); } to { opacity: 1; transform: none; } }

/* Sambutan wali kelas */
.h-sambutan { display: grid; gap: 32px; margin-top: 36px; align-items: start; }
.h-wali { margin: 0; width: min(100%, 300px); }
.h-wali img { display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; background: var(--langit-t); }
.h-wali-teks p:first-child { font-family: var(--display); font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); max-width: 30ch; }
.h-ttd { margin-top: 28px; padding-top: 18px; border-top: 3px solid var(--emas); max-width: 320px; }
.h-ttd b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); }
.h-ttd span { font-size: 15px; font-weight: 600; color: var(--langit-d); }

/* Mengenal kelas: blok langit muda */
.h-kenal { background: var(--langit-t); }
.h-kenal-grid { display: grid; gap: 40px; margin-top: 36px; align-items: start; }
.h-data { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.h-data li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(11, 37, 69, .18); font-size: 16px; }
.h-data span { color: var(--ink-3); }
.h-data b { font-weight: 700; color: var(--ink); text-align: right; }

/* Visi, misi, motto: blok navy */
.h-visi { background: var(--ink); color: #fff; }
.h-visi h2 { color: #fff; }
.h-visi-grid { display: grid; gap: 44px; margin-top: 40px; align-items: start; }
.h-visi h3 { color: var(--langit); }
.h-visi .h-visi-teks p { font-family: var(--display); font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: #fff; max-width: 22ch; margin: 0; }
.h-misi { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.h-misi li { position: relative; padding-left: 28px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.h-misi li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 12px; background: var(--langit); }
.h-jitu { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .25); }
.h-jitu > div { padding: 22px 16px 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.h-jitu b { display: block; font-family: var(--display); font-size: clamp(56px, 10vw, 96px); font-weight: 700; line-height: .9; color: var(--langit); }
.h-jitu span { display: block; margin-top: 10px; padding-bottom: 14px; font-size: 18px; font-weight: 600; color: #fff; }

/* Agenda: dua penghitung mundur di atas putih, dibedakan garis atas saja */
.h-cd-row { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
.h-cd { padding-top: 22px; border-top: 3px solid var(--ink); color: var(--ink); }
.h-cd-date { font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--ink-3); }
.h-cd h3 { font-size: 24px; font-weight: 650; line-height: 1.25; margin: 0; letter-spacing: -0.005em; }
.h-cd-nilai { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 22px; font-variant-numeric: tabular-nums; }
.h-cd-num { font-family: var(--display); font-size: clamp(72px, 14vw, 112px); font-weight: 700; line-height: .9; color: var(--ink); }
.h-cd-num.kecil { font-size: clamp(30px, 6vw, 42px); color: var(--langit-d); }
.h-cd-unit { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.h-cd-sep { font-size: 30px; font-weight: 300; color: var(--garis); margin: 0 4px; }
.h-cd-sub { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Materi fokus UKK: judul di kiri, daftar bertipografi besar di kanan */
.h-ukk { display: grid; gap: 24px; margin-top: 72px; }
.h-ukk h3 { font-size: 26px; margin: 0; }
.h-ukk-sub { margin: 6px 0 0; font-size: 16px; color: var(--ink-3); }
.h-ukk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.h-ukk-list li { padding: 18px 0; border-top: 1px solid var(--garis); font-family: var(--display); font-size: clamp(22px, 3.2vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; color: var(--ink); transition: color .25s, padding-left .35s cubic-bezier(.22, 1, .36, 1); }
.h-ukk-list li:last-child { border-bottom: 1px solid var(--garis); }
.h-ukk-list li:hover { color: var(--langit-d); padding-left: 10px; }

/* Kabar terbaru (khusus yang sudah login) */
.h-baru { padding: 0 0 80px; }
.h-baru-grid { display: grid; gap: 44px; margin-top: 32px; }
.h-baru h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.h-tugas { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--garis); text-decoration: none; color: var(--ink); }
.h-tugas:hover p { color: var(--langit-d); }
.h-tgl { flex: none; width: 56px; text-align: center; padding: 8px 0 6px; background: var(--langit-t); border-top: 3px solid var(--langit-d); }
.h-tgl b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.05; color: var(--ink); }
.h-tgl span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.h-tugas p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink); max-width: none; }
.h-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 16px; }
.h-mini a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--langit-t); }
.h-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-lainnya { display: inline-block; margin-top: 16px; font-size: 16px; font-weight: 700; color: var(--langit-d); text-decoration: underline; text-decoration-color: var(--langit); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.h-lainnya:hover { color: var(--ink); }

/* ==========================================================================
 * Halaman dalam
 * ========================================================================== */
.page-head { position: relative; background: var(--langit-t) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%237cc4e6' stroke-width='2' stroke-opacity='.7'%3E%3Ccircle cx='400' cy='0' r='90'/%3E%3Ccircle cx='400' cy='0' r='170'/%3E%3Ccircle cx='400' cy='0' r='250'/%3E%3Ccircle cx='400' cy='0' r='330'/%3E%3C/svg%3E") no-repeat right top / 340px 340px; color: var(--ink); padding: 40px 0 44px; overflow: hidden; }
.page-head .wrap { position: relative; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.crumb a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(11, 37, 69, .35); text-underline-offset: 4px; }
.crumb a:hover { text-decoration-color: var(--ink); }
.page-head h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 700; line-height: 1.02; letter-spacing: -0.015em; margin: 12px 0 0; color: var(--ink); }
.page-head p { font-size: 18px; line-height: 1.6; color: var(--ink); margin: 12px 0 0; max-width: 52ch; }
.page-body { padding-top: 40px; padding-bottom: 80px; }
.narrow { max-width: 560px; margin: 0; }

/* Panel dibuat datar: tanpa kotak, tanpa bayangan; judul bagian diberi garis */
.panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.panel-head { background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 0 0 12px; font-family: var(--display); font-size: 22px; font-weight: 650; color: var(--ink); }
.panel-body { padding: 18px 0; }
.panel-note { font-size: 15px; color: var(--ink-3); }
.back { display: inline-block; margin-bottom: 20px; font-size: 16px; font-weight: 600; color: var(--langit-d); text-decoration: underline; text-decoration-color: var(--langit); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.muted { color: var(--ink-3); }
.empty { padding: 36px 0; text-align: left; font-size: 16px; font-weight: 500; color: var(--ink-3); }

/* Tabel */
.tbl { font-size: 16px; }
.tbl th { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); background: none; border-bottom: 1px solid var(--garis); padding: 12px 16px 12px 0; }
.tbl td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--garis); color: var(--ink-2); font-weight: 500; }
.tbl tbody tr:hover { background: var(--langit-t); }
.tbl .num { font-family: var(--display); font-weight: 700; color: var(--ink); }
.tbl .strong { color: var(--ink); font-weight: 650; }
.tbl small { color: var(--ink-3); }

/* Tab: garis bawah, bukan tombol */
.seg { display: flex; gap: 28px; max-width: none; margin: 0 0 32px; padding: 0; background: none; border-bottom: 1px solid var(--garis); border-radius: 0; }
.tab-btn { flex: none; padding: 12px 2px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; font-family: var(--teks); font-size: 17px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-3); cursor: pointer; box-shadow: none; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { background: none; color: var(--ink); border-bottom-color: var(--ink); box-shadow: none; }
.day-grid { gap: 40px 32px; }

.badge { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; padding: 2px 10px; border-radius: 2px; background: var(--langit-t); color: var(--langit-d); }
.badge-ok { background: #d8f0e2; color: var(--hijau); }

/* Tombol di dalam halaman (tambah, ubah, hapus, cari): persegi, tanpa efek melayang */
.b { border-radius: 2px; padding: 10px 20px; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.b-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.b-primary:hover { background: var(--langit-d); border-color: var(--langit-d); }
.b-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 8px 18px; }
.b-outline:hover { background: var(--ink); color: #fff; }
.b-danger { background: transparent; color: var(--merah); border: 2px solid var(--merah); padding: 8px 18px; }
.b-danger:hover { background: var(--merah); color: #fff; border-color: var(--merah); }
.b-sm { padding: 6px 14px; font-size: 14px; }
.b-outline.b-sm, .b-danger.b-sm { padding: 4px 12px; }

/* Formulir */
.form-group label { text-transform: none; font-size: 15px; font-weight: 650; color: var(--ink); }
.form-control { background: #fff; border: 1.5px solid var(--garis); border-radius: 2px; padding: 12px 14px; font-size: 16px; color: var(--ink); }
.form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--langit-t); background: #fff; }
.field-error { font-size: 14px; color: var(--merah); }
.hint { font-size: 14px; color: var(--ink-3); }
.form-foot { border-top: 1px solid var(--garis); }
.thumb-pick img { border-radius: 2px; border: 1px solid var(--garis); }
.flash { border-radius: 2px; font-size: 16px; font-weight: 600; padding: 12px 16px; }
.flash-ok { background: #e6f5ec; border: 0; border-left: 4px solid var(--hijau); color: var(--hijau); }
.flash-err { background: #fdecef; border: 0; border-left: 4px solid var(--merah); color: var(--merah); }

/* Daftar tugas */
.item { padding: 18px 0; border-bottom: 1px solid var(--garis); }
.item:hover { background: none; }
.item-title { font-size: 18px; font-weight: 650; line-height: 1.45; color: var(--ink); }

/* Galeri: foto saja, keterangan di bawahnya */
.gal-grid { gap: 28px 20px; }
.gal-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.gal-card img { border-radius: 2px; }
.gal-body { padding: 12px 0 0; }
.gal-cap { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.lampiran img { border-radius: 2px; border: 0; }

/* Piket */
.name-list li { padding: 12px 0; border-bottom: 1px solid var(--garis); font-size: 17px; font-weight: 600; color: var(--ink); }
.name-list li::before { border-radius: 2px; background: var(--langit-t); color: var(--ink); font-family: var(--display); font-size: 13px; }

/* Struktur kelas */
.org { max-width: 980px; margin: 0; }
.org-card { background: #fff; border: 1px solid var(--garis); border-left: 4px solid var(--langit); border-radius: 2px; box-shadow: none; padding: 14px 16px; text-align: left; }
.org-role { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--langit-d); margin-bottom: 2px; }
.org-name { font-family: var(--display); font-size: 18px; font-weight: 650; line-height: 1.3; color: var(--ink); }
.org-top { background: var(--ink); border: 0; border-left: 4px solid var(--langit); max-width: 340px; }
.org-top .org-role { color: var(--langit); }
.org-top .org-name { color: #fff; font-size: 21px; }
.org-line { width: 2px; background: var(--garis); }
.org-seksi { background: var(--langit-t); border: 0; border-radius: 0; padding: 26px; }
.org-seksi h3 { text-align: left; text-transform: none; letter-spacing: 0; font-family: var(--display); font-size: 22px; font-weight: 650; color: var(--ink); margin-bottom: 18px; }

/* Kelompok */
.kel-status b { font-size: 16px; color: var(--ink); }
.kel-status span { font-size: 15px; color: var(--ink-3); }
.live { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink-3); }
.kel-display { border-top: 2px solid var(--ink); }
.kel-wait { text-transform: none; letter-spacing: 0; font-size: 18px; font-weight: 600; color: var(--ink-3); }
.kel-wait-sub { font-size: 15px; color: var(--ink-3); }
.kel-spin .name { text-transform: none; letter-spacing: 0; font-family: var(--display); font-size: 34px; color: var(--ink); }
.kel-spin .by { text-transform: none; letter-spacing: 0; font-size: 14px; }
.kel-result-head b { text-transform: none; letter-spacing: 0; font-family: var(--display); font-size: 22px; color: var(--ink); }
.kel-result-head span.by { font-size: 14px; color: var(--ink-3); }
.kel-card { border: 1px solid var(--garis); border-radius: 2px; }
.kel-card-head { background: var(--langit-t); border-bottom: 3px solid var(--langit); color: var(--ink); font-family: var(--display); font-size: 16px; padding: 10px 14px; }
.kel-card-head small { color: var(--ink-2); }
.kel-card ol { font-size: 16px; color: var(--ink); }

/* Tambah (+) di halaman tugas dan galeri: persegi emas, di kanan bawah */
.fab { width: 56px; height: 56px; border-radius: 2px; background: var(--ink); color: #fff; box-shadow: none; border: 0; font-size: 30px; font-weight: 400; left: auto; right: 20px; bottom: 20px !important; transition: background .25s; }
.fab:hover { transform: none; background: var(--langit-d); color: #fff; }

/* Halaman Materi: teks biasa, tautan bergaris */
.materi-card { max-width: 640px; margin: 0; padding: 0; text-align: left; }
.materi-ico { width: 56px; height: 56px; border-radius: 2px; background: var(--langit); color: var(--ink); margin: 0 0 20px; display: flex; align-items: center; justify-content: center; }
.materi-card h2 { font-family: var(--display); font-size: clamp(30px, 5vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; }
.materi-desc { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin: 0 0 24px; }
.materi-by { display: flex; align-items: center; gap: 12px; padding: 16px 0; margin: 0 0 20px; background: none; border: 0; border-top: 1px solid var(--garis); border-bottom: 1px solid var(--garis); border-radius: 0; text-align: left; }
.materi-av { width: 44px; height: 44px; border-radius: 2px; background: var(--ink); color: #fff; font-family: var(--display); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.materi-by small { display: block; font-size: 14px; color: var(--ink-3); }
.materi-by strong { font-family: var(--display); font-size: 18px; color: var(--ink); }
.materi-note { font-size: 15px; color: var(--ink-3); margin: 0 0 18px; }
.materi-actions { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.materi-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; font-size: 17px; font-weight: 700; color: var(--langit-d); text-decoration: underline; text-decoration-color: var(--langit); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.materi-btn:hover { color: var(--ink); background: none; transform: none; }
.materi-btn-main, .materi-btn-alt { background: none; border: 0; color: var(--langit-d); }

/* Halaman galat dan login lama */
.errorbox { text-align: left; padding: 24px 0 40px; }
.errorbox .code { font-family: var(--display); font-size: clamp(80px, 18vw, 140px); font-weight: 700; color: var(--ink); line-height: .9; }
.errorbox p { font-size: 18px; color: var(--ink-2); margin: 12px 0 22px; }

/* Halaman masuk */
.lg-title { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-align: left; }
.lg-logo { margin: 0 0 12px; }
.lg-field label { font-size: 15px; font-weight: 650; color: var(--ink); }
.lg-input input { height: 54px; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--garis); border-radius: 2px; }
.lg-input input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--langit-t); }
.lg-input:focus-within > svg { stroke: var(--ink); }
.lg-err { font-size: 14px; color: var(--merah); }
.lg-field.has-error .lg-input input { border-color: var(--merah); background: #fff; }
.lg-btn { border-radius: 2px; background: var(--ink); box-shadow: none; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.lg-btn:hover { transform: none; background: var(--langit-d); }
.lg-btn.is-loading, .lg-btn.is-ok { border-radius: 50%; }
.lg-back { background: none; padding: 10px 0; margin: 14px 0 0; border-radius: 0; width: auto; justify-content: flex-start; font-size: 16px; font-weight: 600; color: var(--langit-d); text-decoration: underline; text-decoration-color: var(--langit); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lg-back:hover { background: none; color: var(--ink); }
.lg-photo { background: linear-gradient(140deg, rgba(11, 37, 69, .72) 0%, rgba(27, 111, 156, .45) 60%, rgba(124, 196, 230, .2) 100%), var(--hero-img) center 30% / cover no-repeat; }
.lg-photo-brand { font-family: var(--display); font-size: 20px; }

/* Pemuat awal */
.ld { background: #fff; }
.ld-ring-bg { stroke: var(--langit); }
.ld-ring-fg { stroke: var(--langit); }
.ld-text { font-family: var(--display); letter-spacing: 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.ld-sub { font-size: 14px; color: var(--ink-3); }

/* ==========================================================================
 * Footer: selebar layar, rata dengan dasar halaman, tanpa kartu
 * ========================================================================== */
.ft { margin: 0; background: var(--ink); color: rgba(255, 255, 255, .8); border-top: 4px solid var(--emas); }
.ft-grid { display: grid; gap: 40px; padding: 56px 0 44px; }
.ft-brand { display: flex; align-items: center; gap: 14px; }
.ft-brand img { height: 56px; width: auto; display: block; }
.ft-brand b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.1; color: #fff; }
.ft-brand span { display: block; margin-top: 2px; font-size: 14px; color: var(--langit); }
.ft p { margin: 16px 0 0; max-width: 42ch; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.ft h4 { margin: 0 0 14px; font-family: var(--display); font-size: 18px; font-weight: 650; color: #fff; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; line-height: 1.5; }
.ft a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ft a:hover { text-decoration-color: var(--langit); }
.ft-bottom { padding: 20px 0 88px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14px; color: rgba(255, 255, 255, .62); }

/* ==========================================================================
 * Pemutar mars sekolah
 * ========================================================================== */
.mp { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; background: #fff; border: 2px solid var(--ink); border-radius: 2px; }
.mp-ico { position: relative; width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--langit); color: var(--ink); overflow: hidden; }
.mp-ico svg { width: 20px; height: 20px; }
.mp-eq { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; background: var(--langit); padding: 10px; }
.mp-eq.hidden { display: none; }
.mp-eq i { display: block; width: 4px; height: 100%; background: var(--ink); transform-origin: bottom; animation: mp-naik 1s ease-in-out infinite; }
.mp-eq i:nth-child(2) { animation-delay: .25s; }
.mp-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes mp-naik { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.mp-txt { display: none; line-height: 1.25; padding-right: 2px; }
.mp-txt b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.mp-txt span { display: block; font-size: 13px; color: var(--ink-3); }
.mp-btn, #playBtn { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 2px; cursor: pointer; background: var(--ink) !important; color: #fff; }
.mp-btn:hover, #playBtn:hover { background: var(--langit-d) !important; }
#playBtn.bg-rose-500 { background: var(--langit) !important; color: var(--ink); }
#playBtn.bg-rose-500:hover { background: var(--langit) !important; }
.mp-btn svg { width: 16px; height: 16px; fill: currentColor; }
.mp .hidden { display: none !important; }

/* ==========================================================================
 * Tablet dan desktop
 * ========================================================================== */
@media (min-width: 640px) {
    .hd-top { display: block; }
    .h-jitu { grid-template-columns: repeat(4, 1fr); }
    .h-jitu > div { border-bottom: 0; padding-right: 20px; }
    .h-jitu > div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .14); }
    .h-ukk-list { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
    .mp-txt { display: block; }
}
@media (min-width: 768px) {
    :root { --pad: 40px; }
    .h-sec { padding: 96px 0; }
    .h-baru-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
    .h-kenal-grid { grid-template-columns: 1.5fr 1fr; gap: 72px; }
    .h-visi-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; }
    .h-sambutan { grid-template-columns: 300px 1fr; gap: 64px; }
    .h-cd-row { grid-template-columns: 1fr 1fr; gap: 64px; }
    .h-ukk { grid-template-columns: 1fr 2fr; gap: 56px; margin-top: 96px; }
    .h-baru { padding-bottom: 104px; }
    .ft-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; padding: 72px 0 56px; }
    .page-head { padding: 56px 0 60px; background-size: 440px 440px; }
    .page-body { padding-top: 56px; padding-bottom: 104px; }
}
@media (min-width: 960px) {
    .h-hero { display: flex; align-items: center; min-height: clamp(470px, 46vw, 640px); }
    .h-hero-media { position: absolute; inset: 0; }
    .h-hero-media img { height: 100%; object-position: 62% 30%; }
    .h-hero-media::after { display: none; }
    .h-shape, .h-stripe { display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 64%; z-index: 1; }
    .h-shape { background: rgba(124, 196, 230, .93); clip-path: polygon(0 0, 94% 0, 76% 100%, 0 100%); }
    .h-stripe { background: var(--emas); clip-path: polygon(94% 0, 96.5% 0, 78.5% 100%, 76% 100%); }
    .h-hero-in { width: 100%; margin-top: 0; padding-top: 72px; padding-bottom: 72px; }
    .h-hero-copy { max-width: min(540px, 46%); }
    .h-hero h1 { font-size: clamp(60px, 7vw, 100px); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
    .h-shape, .h-stripe { animation: h-geser 1s cubic-bezier(.22, 1, .36, 1) both; }
    .h-stripe { animation-delay: .12s; }
}
@media (min-width: 900px) {
    .hd-nav { display: flex; }
    .hd-auth { display: flex; }
    .hamburger { display: none; }
    .hd-in { gap: 24px; }
}
@media (min-width: 900px) and (max-width: 1239px) {
    .hd-brand span { display: none; }
    .hd-nav a { padding: 0 9px; font-size: 14.5px; }
    .hd-nav a::after { left: 9px; right: 9px; }
}
@media (max-width: 639px) {
    .page-head { background-size: 220px 220px; }
    .tab-btn { font-size: 16px; }
    .seg { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-eq i { animation: none; }
}


/* ==========================================================================
 * Gerak: lembut, hanya saat dibutuhkan (dimatikan bila perangkat meminta)
 * ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), transform .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
    .page-head .wrap > * { animation: h-naik .8s cubic-bezier(.22, 1, .36, 1) both; }
    .page-head .wrap > :nth-child(2) { animation-delay: .08s; }
    .page-head .wrap > :nth-child(3) { animation-delay: .16s; }
    .page-body > * { animation: h-naik .8s .14s cubic-bezier(.22, 1, .36, 1) both; }
}
a, .b, .hd-link, .hd-masuk, .btn-auth, .tab-btn, .form-control, .lg-btn, .materi-btn { transition-duration: .25s; transition-timing-function: cubic-bezier(.22, 1, .36, 1); }
.tbl tbody tr, .item, .name-list li { transition: background-color .25s; }
.item:hover { background: var(--langit-t); }
.gal-card img { transition: opacity .3s; }
.gal-card img:hover { opacity: .9; }
.h-lainnya, .back, .materi-btn { transition: color .25s, text-decoration-color .25s; }
.nav-drawer { transition: transform .45s cubic-bezier(.22, 1, .36, 1), visibility .45s; }
.nav-overlay { transition: opacity .35s ease, visibility .35s; }
.drawer-links a { transition: background-color .25s, color .25s; }
