/* ==========================================================================
   SC Sekolah HTML — Desain 10 "Terpadu" (SMP Sharecode Terpadu)
   Tata letak dashboard: sidebar vertikal kiri + kartu kaca & widget.
   Template oleh sharecode.id — lisensi MIT.
   ========================================================================== */

/* ---------- 1. Font (self-host, OFL) ---------- */
@font-face { font-family: "Sora"; src: url("../fonts/sora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- 2. Variabel (ganti warna/font di sini) ---------- */
:root {
  --plum: #4c1d95;          /* ungu terong utama */
  --plum-900: #2e1065;
  --plum-700: #5b21b6;
  --violet: #7c3aed;
  --lav: #ddd6fe;
  --lav-100: #ede9fe;
  --bg: #f5f3ff;            /* latar halaman */
  --lime: #a3e635;          /* aksen hijau limau */
  --lime-600: #4d7c0f;      /* lime gelap untuk teks di latar terang */
  --lime-100: #ecfccb;
  --amber: #b45309;
  --amber-100: #fef3c7;
  --red: #be123c;
  --red-100: #ffe4e6;
  --ink: #1e1b2e;
  --muted: #5b5675;
  --line: rgba(76, 29, 149, .12);
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .85);
  --shadow: 0 12px 32px -16px rgba(46, 16, 101, .35);
  --shadow-lg: 0 24px 60px -24px rgba(46, 16, 101, .5);
  --radius: 22px;
  --radius-sm: 14px;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --sidebar-w: 272px;
  --sidebar-mini: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 3. Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(700px 500px at 20% 110%, rgba(163, 230, 53, .18), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--plum-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--lime); color: var(--plum-900); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- 4. Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 60;
  display: flex; flex-direction: column; color: #ede9fe;
  background: linear-gradient(180deg, #3b0f80 0%, var(--plum-900) 100%);
  transition: width .3s var(--ease), transform .3s var(--ease);
}
.sidebar::before { content: ""; position: absolute; inset: 0; background: url("../img/pola-grid.svg"); opacity: .5; pointer-events: none; }
.sidebar > * { position: relative; }
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; color: #fff; text-decoration: none; }
.brand img { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text strong span { color: var(--lime); }
.brand-text small { font-size: .7rem; color: #c4b5fd; letter-spacing: .04em; }
.brand:hover { color: #fff; }
.side-nav { flex: 1; overflow-y: auto; padding: 4px 14px 14px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.nav-group { margin: 14px 0 6px; padding: 0 10px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #a78bfa; font-weight: 700; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 2px 0; border-radius: 12px;
  color: #e9e5ff; text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.side-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; transform: translateX(2px); }
.side-nav a[aria-current="page"] { background: var(--lime); color: var(--plum-900); font-weight: 700; box-shadow: 0 8px 20px -8px rgba(163, 230, 53, .7); }
.side-nav a .badge-dot { margin-left: auto; font-size: .62rem; background: var(--lime); color: var(--plum-900); padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.side-nav a[aria-current="page"] .badge-dot { background: var(--plum-900); color: var(--lime); }
.side-cta { margin: 6px 16px 16px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.side-cta strong { display: block; color: #fff; font-size: .9rem; }
.side-cta p { font-size: .76rem; color: #c4b5fd; margin: 4px 0 10px; }
.side-cta .meter { height: 7px; background: rgba(255, 255, 255, .15); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.side-cta .meter span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }
.side-cta .btn { width: 100%; justify-content: center; }
/* mode ringkas (desktop) */
.sb-mini .sidebar { width: var(--sidebar-mini); }
.sb-mini .brand-text, .sb-mini .nav-group, .sb-mini .side-nav a span, .sb-mini .side-cta, .sb-mini .badge-dot { display: none; }
.sb-mini .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.sb-mini .side-nav a { justify-content: center; padding: 11px; }
.sb-mini .nav-sep { display: block; }
.nav-sep { display: none; height: 1px; background: rgba(255, 255, 255, .12); margin: 10px 8px; }
@media (min-width: 1025px) and (max-height: 960px) {
  .side-cta { padding: 12px; margin-bottom: 12px; }
  .side-cta p, .side-cta .meter { display: none; }
  .side-cta strong { margin-bottom: 8px; }
  .nav-group { margin-top: 10px; }
}
.sidebar-backdrop { position: fixed; inset: 0; background: rgba(30, 27, 46, .5); z-index: 55; opacity: 0; visibility: hidden; transition: .3s; }

/* ---------- 5. Area aplikasi & topbar ---------- */
.app { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .3s var(--ease); }
.sb-mini .app { margin-left: var(--sidebar-mini); }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: rgba(245, 243, 255, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(46, 16, 101, .45); }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--plum); transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--lav-100); transform: translateY(-1px); }
.menu-btn { display: none; }
.crumbs { min-width: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .74rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--plum); }
.crumbs .crumb-title { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search { position: relative; margin-left: auto; width: min(340px, 34vw); }
.top-search input {
  width: 100%; height: 42px; padding: 0 64px 0 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: .86rem;
}
.top-search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .15); }
.top-search > .icon { position: absolute; left: 13px; top: 11px; color: var(--muted); }
.top-search kbd { position: absolute; right: 10px; top: 10px; font: 600 .68rem var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; background: var(--bg); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; list-style: none; margin: 0; display: none; max-height: 340px; overflow: auto; }
.search-results.show { display: block; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .86rem; }
.search-results a:hover, .search-results a.active { background: var(--lav-100); }
.search-results .empty { padding: 10px; font-size: .84rem; color: var(--muted); }
.clock-chip { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--plum); white-space: nowrap; }
.clock-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(163, 230, 53, .25); }

main { flex: 1; padding: 8px 28px 28px; }

/* ---------- 6. Tombol, chip, badge ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 18px; height: 18px; }
.btn-lime { background: var(--lime); color: var(--plum-900); box-shadow: 0 10px 22px -10px rgba(101, 163, 13, .8); }
.btn-lime:hover { color: var(--plum-900); background: #b5f04f; }
.btn-plum { background: var(--plum); color: #fff; box-shadow: 0 10px 22px -10px rgba(76, 29, 149, .8); }
.btn-plum:hover { color: #fff; background: var(--plum-700); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.btn-line { background: #fff; color: var(--plum); border: 1px solid var(--line); }
.btn-line:hover { background: var(--lav-100); color: var(--plum); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .8rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 7px 14px; border-radius: 99px; cursor: pointer;
  font-size: .8rem; font-weight: 600; transition: .2s;
}
.chip:hover { color: var(--plum); border-color: var(--lav); }
.chip.active, .chip[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; white-space: nowrap; }
.b-lime { background: var(--lime-100); color: #365314; }
.b-plum { background: var(--lav-100); color: var(--plum); }
.b-amber { background: var(--amber-100); color: #92400e; }
.b-red { background: var(--red-100); color: var(--red); }
.b-dark { background: var(--plum-900); color: var(--lime); }

/* ---------- 7. Grid dashboard & kartu kaca ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; }
.c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.card {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0;
}
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-head p { margin: 0; font-size: .76rem; color: var(--muted); }
.card-head .more { margin-left: auto; font-size: .78rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ico-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--lav-100); color: var(--plum); }
.ico-tile.lime { background: var(--lime-100); color: #3f6212; }
.ico-tile.dark { background: var(--plum); color: var(--lime); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 30px 0 14px; }
.section-title h2 { margin: 0; }
.section-title p { margin: 0; color: var(--muted); font-size: .85rem; }
.eyebrow { display: inline-block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--violet); margin-bottom: 4px; }

/* ---------- 8. Beranda: banner sambutan & widget ---------- */
.welcome {
  position: relative; overflow: hidden; color: #fff; border-radius: 26px; padding: 34px; min-height: 330px;
  background: linear-gradient(135deg, var(--plum) 0%, #6d28d9 55%, var(--violet) 100%); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 10px;
}
.welcome::before { content: ""; position: absolute; inset: 0; background: url("../img/pola-grid.svg"); opacity: .45; }
.welcome::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 230, 53, .45), transparent 65%); }
.welcome > * { position: relative; z-index: 1; }
.welcome .greet { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); padding: 6px 12px; border-radius: 99px; font-size: .76rem; font-weight: 600; margin-bottom: 14px; }
.welcome h1 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.welcome h1 mark { background: none; color: var(--lime); }
.welcome p { color: #e9e5ff; max-width: 46ch; }
.welcome .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.welcome-art { position: relative; align-self: center; padding: 26px 0 30px; }
.welcome-art img { width: 100%; border-radius: 20px; border: 4px solid rgba(255, 255, 255, .18); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 14px; padding: 8px 12px; font-size: .7rem; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); line-height: 1.3; }
.float-chip strong { display: block; font-size: .9rem; color: var(--plum); }
.float-chip .ico-tile { width: 32px; height: 32px; border-radius: 10px; }
.float-chip .icon { width: 17px; height: 17px; }
.float-chip.a { left: -18px; top: 0; }
.float-chip.b { right: -10px; bottom: 0; }
.welcome-meta { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.welcome-meta div { font-size: .74rem; color: #c4b5fd; }
.welcome-meta strong { display: block; color: #fff; font-size: 1rem; }

.weather { display: flex; flex-direction: column; gap: 14px; }
.weather-now { display: flex; align-items: center; gap: 14px; }
.weather-now .temp { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--plum); letter-spacing: -.04em; }
.weather-now .temp sup { font-size: 1.1rem; }
.weather-icon { width: 72px; height: 72px; }
.weather-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.weather-facts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: .7rem; color: var(--muted); }
.weather-facts strong { display: block; color: var(--ink); font-size: .88rem; }
.forecast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; font-size: .72rem; }
.forecast div { padding: 8px 4px; border-radius: 12px; background: var(--lav-100); }
.forecast strong { display: block; font-size: .85rem; color: var(--plum); }
.date-big { display: flex; align-items: baseline; gap: 10px; }
.date-big strong { font-size: 2.2rem; color: var(--plum); line-height: 1; font-weight: 800; }
.date-big span { font-size: .82rem; color: var(--muted); line-height: 1.3; }

/* Statistik */
.stat { position: relative; overflow: hidden; }
.stat .label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; margin: 6px 0 2px; }
.stat .trend { font-size: .72rem; font-weight: 700; color: var(--lime-600); }
.spark { display: flex; align-items: end; gap: 4px; height: 38px; margin-top: 12px; }
.spark i { flex: 1; background: var(--lav); border-radius: 4px 4px 2px 2px; }
.spark i:last-child { background: var(--lime); }
.stat .ico-tile { position: absolute; right: 18px; top: 18px; }
.stat.dark { background: var(--plum-900); color: #fff; border-color: transparent; }
.stat.dark .label { color: #c4b5fd; } .stat.dark .num { color: #fff; } .stat.dark .trend { color: var(--lime); }
.stat.dark .spark i { background: rgba(255, 255, 255, .18); } .stat.dark .spark i:last-child { background: var(--lime); }

/* Jadwal hari ini (timeline) */
.schedule { list-style: none; margin: 0; padding: 0; position: relative; }
.schedule::before { content: ""; position: absolute; left: 62px; top: 6px; bottom: 6px; width: 2px; background: var(--lav); }
.schedule li { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 7px 0; position: relative; align-items: start; }
.schedule time { font-size: .74rem; font-weight: 700; color: var(--muted); padding-top: 2px; }
.schedule li::after { content: ""; position: absolute; left: 57px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--lav); }
.schedule .slot { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: .82rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.schedule .slot small { color: var(--muted); display: block; font-size: .7rem; }
.schedule li.break .slot { background: transparent; border-style: dashed; color: var(--muted); }
.schedule li.now::after { background: var(--lime); border-color: var(--lime-600); box-shadow: 0 0 0 5px rgba(163, 230, 53, .3); }
.schedule li.now .slot { background: var(--plum); color: #fff; border-color: var(--plum); }
.schedule li.now .slot small { color: #c4b5fd; }
.schedule li.done { opacity: .55; }
.day-tabs { display: flex; gap: 4px; background: var(--lav-100); padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.day-tabs button { flex: 1; border: 0; background: transparent; padding: 6px 0; border-radius: 9px; font-size: .74rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.day-tabs button[aria-selected="true"] { background: #fff; color: var(--plum); box-shadow: 0 2px 8px -2px rgba(46, 16, 101, .25); }

/* Daftar ringkas (pengumuman, agenda) */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 11px 0; border-top: 1px dashed var(--line); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .86rem; display: block; line-height: 1.4; }
.mini-list a:hover { color: var(--violet); }
.mini-list .meta { display: flex; gap: 8px; align-items: center; margin-top: 5px; font-size: .72rem; color: var(--muted); }

/* Kalender mini */
.mini-cal { width: 100%; border-collapse: collapse; text-align: center; font-size: .76rem; }
.mini-cal caption { text-align: left; font-weight: 700; margin-bottom: 8px; color: var(--plum); }
.mini-cal th { font-weight: 600; color: var(--muted); padding: 4px 0; font-size: .68rem; }
.mini-cal td { padding: 2px; }
.mini-cal td span { display: grid; place-items: center; width: 30px; height: 30px; margin: auto; border-radius: 9px; position: relative; }
.mini-cal td.ev span { background: var(--lav-100); color: var(--plum); font-weight: 700; }
.mini-cal td.ev span::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); }
.mini-cal td.today span { background: var(--lime); color: var(--plum-900); font-weight: 800; }
.mini-cal td.out { color: #c4bfd6; }

/* Sambutan */
.sambutan { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
.sambutan figure { margin: 0; }
.sambutan figure img { border-radius: 20px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sambutan figcaption { margin-top: 10px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.sambutan figcaption strong { display: block; color: var(--ink); font-size: .86rem; }
.sambutan blockquote { margin: 0; position: relative; padding-top: 22px; }
.sambutan blockquote::before { content: "\201C"; position: absolute; left: -6px; top: -36px; font-size: 5rem; color: var(--lime); font-weight: 800; line-height: 1; }
.sambutan .lead { font-size: 1.08rem; font-weight: 600; color: var(--plum); line-height: 1.5; }
.signature { font-weight: 800; font-style: italic; color: var(--plum); font-size: 1.1rem; letter-spacing: -.02em; }

/* Program unggulan */
.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prog { border-radius: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.prog:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prog .ico-tile { margin-bottom: 10px; }
.prog h3 { font-size: .9rem; margin-bottom: 4px; }
.prog p { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.5; }
.prog.feature { background: var(--plum); color: #fff; border-color: var(--plum); }
.prog.feature h3 { color: #fff; } .prog.feature p { color: #ddd6fe; }

/* Berita */
.news-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.news-big { position: relative; display: block; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; min-height: 290px; }
.news-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-big:hover img { transform: scale(1.05); }
.news-big .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(46, 16, 101, .92)); }
.news-big .txt { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.news-big h3 { color: #fff; font-size: 1.1rem; margin: 8px 0 4px; }
.news-big .meta { font-size: .72rem; color: #ddd6fe; }
.news-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 8px; border-radius: 14px; transition: background .2s; }
.news-row:hover { background: #fff; color: var(--ink); }
.news-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.news-row h3 { font-size: .86rem; margin: 4px 0 2px; line-height: 1.4; }
.news-row .meta { font-size: .7rem; color: var(--muted); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-card .thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card h3 { font-size: .98rem; margin: 0; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--violet); }
.news-card p { font-size: .82rem; color: var(--muted); margin: 0; }
.news-card .meta { display: flex; gap: 10px; align-items: center; font-size: .72rem; color: var(--muted); margin-top: auto; padding-top: 8px; }

/* Prestasi ringkas */
.medal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.medal-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.medal { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--lime); color: var(--plum-900); }
.medal.silver { background: var(--lav); color: var(--plum); }
.medal.bronze { background: var(--amber-100); color: #92400e; }
.medal-list strong { display: block; font-size: .84rem; line-height: 1.35; }
.medal-list span { font-size: .72rem; color: var(--muted); }

/* Galeri mosaik */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; gap: 10px; }
.mosaic a { position: relative; border-radius: 14px; overflow: hidden; display: block; }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(4), .mosaic a:nth-child(5), .mosaic a:nth-child(6) { grid-column: span 2; }
.mosaic img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mosaic a:hover img, .gallery-grid a:hover img { transform: scale(1.06); }
.zoom-ic { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 10px; background: rgba(255, 255, 255, .9); color: var(--plum); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: .25s; }
.mosaic a:hover .zoom-ic, .gallery-grid a:hover .zoom-ic, .mosaic a:focus-visible .zoom-ic { opacity: 1; transform: none; }

/* Testimoni slider */
.slider { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform .5s var(--ease); }
.slide { flex: 0 0 100%; padding: 2px; }
.testi { display: flex; flex-direction: column; gap: 14px; }
.testi p { font-size: .95rem; line-height: 1.65; margin: 0; }
.testi .who { display: flex; gap: 12px; align-items: center; }
.testi .who img { width: 48px; height: 48px; border-radius: 14px; }
.testi .who strong { display: block; font-size: .86rem; }
.testi .who span { font-size: .74rem; color: var(--muted); }
.stars { color: #ca8a04; letter-spacing: 2px; font-size: .9rem; }
.slider-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.slider-dots { display: flex; gap: 6px; margin-right: auto; }
.slider-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--lav); cursor: pointer; transition: width .3s; }
.slider-dots button[aria-current="true"] { width: 26px; background: var(--plum); }
.slider-nav .icon-btn { width: 36px; height: 36px; }

/* CTA SPMB */
.cta {
  position: relative; overflow: hidden; border-radius: 26px; padding: 30px 34px; background: var(--lime); color: var(--plum-900);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
}
.cta::before { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(76, 29, 149, .12); }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin-bottom: 6px; color: var(--plum-900); }
.cta p { margin: 0 0 16px; color: #365314; font-weight: 500; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { background: var(--plum-900); color: #fff; border-radius: 16px; padding: 14px 6px; text-align: center; }
.countdown strong { display: block; font-size: 1.8rem; line-height: 1; color: var(--lime); font-weight: 800; }
.countdown span { font-size: .68rem; color: #c4b5fd; letter-spacing: .06em; text-transform: uppercase; }
.cta-note { grid-column: 1 / -1; font-size: .74rem; margin: 0; color: #365314; }

/* ---------- 9. Halaman dalam ---------- */
.page-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 30px 34px; margin-bottom: 20px; color: #fff;
  background: linear-gradient(120deg, var(--plum-900), var(--plum) 55%, #6d28d9); box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pola-grid.svg"); opacity: .4; }
.page-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 230, 53, .4), transparent 65%); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 { color: #fff; margin-bottom: 6px; }
.page-hero p { margin: 0; color: #ddd6fe; max-width: 60ch; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 10px 16px; min-width: 110px; font-size: .72rem; color: #ddd6fe; }
.hero-stats strong { display: block; font-size: 1.3rem; color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search-box { position: relative; flex: 1 1 260px; max-width: 420px; }
.search-box input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 14px 0 42px; }
.search-box .icon { position: absolute; left: 13px; top: 12px; color: var(--muted); }
.search-box input:focus, .field input:focus, .field select:focus, .field textarea:focus, .select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .15); }
.select { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 12px; min-width: 180px; }
.result-count { font-size: .8rem; color: var(--muted); margin-left: auto; }
.empty-state { display: none; text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state.show { display: block; }
.empty-state .icon { width: 42px; height: 42px; margin: 0 auto 10px; color: var(--lav); }

/* Tabel */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
.tbl th { text-align: left; background: var(--lav-100); color: var(--plum); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: 12px 14px; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:hover td { background: #faf9ff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 700; background: var(--bg); }
.dl { display: grid; grid-template-columns: 170px 1fr; margin: 0; font-size: .86rem; }
.dl dt, .dl dd { padding: 10px 0; border-top: 1px dashed var(--line); margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { font-weight: 600; }

/* Tab & akordeon */
.tabs [role="tablist"] { display: flex; flex-wrap: wrap; gap: 6px; background: var(--lav-100); padding: 5px; border-radius: 14px; margin-bottom: 18px; width: fit-content; max-width: 100%; }
.tabs [role="tab"] { border: 0; background: transparent; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: .82rem; color: var(--muted); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--plum); box-shadow: 0 4px 12px -6px rgba(46, 16, 101, .35); }
[role="tabpanel"][hidden] { display: none; }
.accordion { display: grid; gap: 10px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.acc-item h3 { margin: 0; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border: 0; background: none; padding: 16px 18px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink); }
.acc-btn .icon { transition: transform .3s; color: var(--violet); }
.acc-btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc-panel { padding: 0 18px 16px; font-size: .86rem; color: var(--muted); }
.acc-panel[hidden] { display: none; }

/* Timeline (sejarah, alur) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--lav); }
.timeline li { position: relative; padding: 0 0 22px 18px; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--plum); }
.timeline strong { color: var(--plum); font-size: .8rem; letter-spacing: .04em; }
.timeline h3 { margin: 2px 0 4px; font-size: .95rem; }
.timeline p { margin: 0; font-size: .84rem; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 1.6rem; font-weight: 800; color: var(--lime-600); letter-spacing: -.04em; margin-bottom: 6px; }
.steps h3 { font-size: .9rem; margin-bottom: 4px; }
.steps p { margin: 0; font-size: .78rem; color: var(--muted); }

/* Kartu umum (fasilitas, ekskul, guru) */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile h3 { font-size: .92rem; margin: 10px 0 4px; }
.tile p { font-size: .78rem; color: var(--muted); margin: 0; }
.tile .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .72rem; color: var(--muted); }
.person { text-align: center; padding: 22px 18px; }
.person img { width: 92px; height: 92px; border-radius: 26px; margin: 0 auto 12px; }
.person h3 { margin: 0 0 2px; font-size: .92rem; }
.person .role { font-size: .76rem; color: var(--muted); margin-bottom: 10px; }
.person .tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.person a.mail { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: .74rem; text-decoration: none; }
.ring { --p: 90; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: conic-gradient(var(--lime) calc(var(--p) * 1%), var(--lav-100) 0); }
.ring div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring strong { font-size: 2rem; color: var(--plum); font-weight: 800; }
.ring span { font-size: .66rem; color: var(--muted); display: block; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-size: .86rem; }
.check-list .icon { color: var(--lime-600); margin-top: 3px; width: 18px; height: 18px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 46px; gap: 12px; align-items: center; font-size: .8rem; }
.bar-row .track { height: 10px; background: var(--lav-100); border-radius: 99px; overflow: hidden; }
.bar-row .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--plum), var(--violet)); border-radius: inherit; }
.bar-row:nth-child(even) .track span { background: linear-gradient(90deg, var(--lime-600), var(--lime)); }
.bar-row b { text-align: right; }

/* Agenda */
.agenda-list { display: grid; gap: 12px; }
.agenda-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.date-box { text-align: center; background: var(--plum); color: #fff; border-radius: 14px; padding: 8px 0; line-height: 1.1; }
.date-box strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--lime); }
.date-box span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.agenda-item h3 { margin: 0 0 4px; font-size: .95rem; }
.agenda-item .meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .76rem; color: var(--muted); }
.agenda-item .meta span { display: inline-flex; gap: 5px; align-items: center; }
.agenda-item .meta .icon { width: 15px; height: 15px; }

/* Dokumen */
.doc-name { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.doc-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--red-100); color: var(--red); display: grid; place-items: center; flex: none; font-size: .62rem; font-weight: 800; }

/* Galeri */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery-grid a { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; background: var(--lav-100); }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(46, 16, 101, .85)); }
.gallery-grid figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.gallery-grid figcaption { pointer-events: none; }
.gallery-grid .hide { display: none; }
.video-card { padding: 0; overflow: hidden; }
.video-thumb { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; aspect-ratio: 16/9; background: var(--plum); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s var(--ease); }
.video-thumb:hover img { transform: scale(1.05); }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--lime); color: var(--plum-900); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(163, 230, 53, .3); transition: transform .3s var(--ease); }
.video-thumb:hover .play { transform: scale(1.1); }
.play .icon { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(30, 27, 46, .8); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 8px; font-weight: 600; }
.video-card .body { padding: 16px 18px; }
.video-card h3 { font-size: .92rem; margin: 6px 0 2px; }

/* Lightbox & modal video */
.lightbox, .modal { position: fixed; inset: 0; z-index: 120; background: rgba(20, 8, 46, .92); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open, .modal.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 16px; background: #fff; }
.lightbox figcaption { color: #e9e5ff; margin-top: 12px; font-size: .88rem; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: var(--lime); color: var(--plum-900); }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 14px; top: 50%; margin-top: -24px; } .lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-count { position: absolute; top: 26px; left: 24px; color: #c4b5fd; font-size: .8rem; font-weight: 600; }
.modal-box { width: min(960px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 18px; overflow: hidden; }
.modal-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 14px; width: 100%; }
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field .hint { font-size: .72rem; color: var(--muted); }
.field .err { font-size: .74rem; color: var(--red); font-weight: 600; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: #fff8f9; }
.field.invalid .err { display: block; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; }
.check-field input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--plum); }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; cursor: pointer; font-size: .8rem; font-weight: 500; }
.radio-cards input { accent-color: var(--plum); margin-top: 4px; }
.radio-cards label:has(input:checked) { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(76, 29, 149, .15); }
.radio-cards strong { display: block; font-size: .86rem; }

/* Stepper multi-langkah */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 22px; counter-reset: st; }
.stepper li { counter-increment: st; display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.stepper li::before { content: counter(st); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--lav-100); color: var(--plum); flex: none; }
.stepper li.active { border-color: var(--plum); color: var(--plum); }
.stepper li.active::before { background: var(--plum); color: #fff; }
.stepper li.done::before { content: "\2713"; background: var(--lime); color: var(--plum-900); }
.form-step[hidden] { display: none; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.summary-box { background: var(--bg); border-radius: 14px; padding: 6px 16px; }
.success-box { text-align: center; padding: 30px 10px; }
.success-box .big-ic { width: 72px; height: 72px; border-radius: 22px; background: var(--lime); color: var(--plum-900); display: grid; place-items: center; margin: 0 auto 14px; }
.success-box .big-ic .icon { width: 36px; height: 36px; }
.reg-no { display: inline-block; font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; color: var(--plum); background: var(--lav-100); padding: 8px 18px; border-radius: 12px; margin: 8px 0 14px; }

/* Kelulusan */
.grad-card { max-width: 760px; margin: 0 auto; }
.grad-form { display: flex; gap: 10px; flex-wrap: wrap; }
.grad-form .field { flex: 1 1 260px; }
.grad-form .btn { height: 46px; align-self: end; }
.grad-result { margin-top: 20px; border-radius: 20px; padding: 22px; display: none; }
.grad-result.show { display: block; }
.grad-result.ok { background: var(--lime-100); border: 2px solid var(--lime); }
.grad-result.none { background: var(--red-100); border: 2px solid #fda4af; }
.grad-result .status { font-size: 2rem; font-weight: 800; color: #365314; letter-spacing: .04em; }
.grad-result .dl dt, .grad-result .dl dd { border-color: rgba(54, 83, 20, .2); }

/* Artikel */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.prose { font-size: .95rem; line-height: 1.8; }
.prose h2 { margin-top: 1.4em; }
.prose img { border-radius: 18px; margin: 0 0 18px; width: 100%; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--lime); background: var(--lav-100); border-radius: 0 14px 14px 0; font-weight: 600; color: var(--plum); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.article-meta span { display: inline-flex; gap: 6px; align-items: center; }
.article-meta .icon { width: 15px; height: 15px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 16px; margin-top: 16px; border-top: 1px dashed var(--line); font-size: .82rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { font-size: .74rem; text-decoration: none; padding: 5px 10px; border-radius: 99px; background: var(--lav-100); color: var(--plum); font-weight: 600; }
.tag-cloud a:hover { background: var(--plum); color: #fff; }
.sticky-side { position: sticky; top: 90px; display: grid; gap: 20px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .84rem; padding: 0 10px; }
.pagination [aria-current] { background: var(--plum); color: #fff; border-color: var(--plum); }

/* Kontak */
.map-frame { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: 18px; display: block; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px dashed var(--line); font-size: .86rem; }
.contact-row:first-of-type { border-top: 0; }
.contact-row strong { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem; }
.open-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.open-status.on { color: var(--lime-600); } .open-status.off { color: var(--red); }

/* 404 */
.notfound { text-align: center; max-width: 620px; margin: 30px auto; }
.notfound img { width: min(420px, 100%); margin: 0 auto 10px; }
.notfound .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--plum); line-height: 1; letter-spacing: -.06em; }
.notfound .code span { color: var(--lime-600); }

/* ---------- 10. Footer ---------- */
.footer { margin: 0 28px 24px; border-radius: 26px; background: var(--plum-900); color: #c4b5fd; padding: 32px 34px 20px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: url("../img/pola-grid.svg"); opacity: .3; pointer-events: none; }
.footer > * { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.footer h2 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .82rem; }
.footer a { color: #ddd6fe; text-decoration: none; }
.footer a:hover { color: var(--lime); }
.footer .brand { padding: 0 0 12px; }
.footer p { font-size: .82rem; }
.footer .contact-mini li { display: flex; gap: 8px; align-items: flex-start; }
.footer .contact-mini .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--lime); }
.socials { display: flex; gap: 8px; margin-top: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--lime); color: var(--plum-900); }
.socials .icon { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .76rem; }

/* ---------- 11. Toast & kembali ke atas ---------- */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 150; max-width: 360px; background: var(--plum-900); color: #fff; padding: 14px 18px 14px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; transform: translateY(140%); opacity: 0; transition: .35s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast .icon { color: var(--lime); margin-top: 2px; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--plum); color: var(--lime); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.toast.show ~ .to-top { bottom: 96px; }

/* ---------- 12. Animasi muncul ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 13. Responsif ---------- */
@media (max-width: 1280px) {
  .c-3 { grid-column: span 6; }
  .welcome { grid-template-columns: 1fr; }
  .welcome-art { display: none; }
  .clock-chip { display: none; }
}
@media (max-width: 1100px) {
  .c-4, .c-5, .c-7, .c-8 { grid-column: span 12; }
  .c-6 { grid-column: span 12; }
  .article-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; box-shadow: var(--shadow-lg); }
  .sb-mini .brand-text, .sb-mini .nav-group, .sb-mini .side-nav a span, .sb-mini .side-cta { display: revert; }
  .sb-mini .side-nav a { justify-content: flex-start; padding: 9px 12px; }
  .sb-mini .nav-sep { display: none; }
  .nav-open .sidebar { transform: none; }
  .nav-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  .app, .sb-mini .app { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .collapse-btn { display: none; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  main { padding: 6px 14px 20px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .top-search { width: auto; flex: 1; }
  .top-search kbd, .top-cta { display: none; }
  .crumbs { display: none; }
  .c-3 { grid-column: span 6; }
  .stat { padding: 16px; }
  .stat .num { font-size: 1.7rem; }
  .stat .ico-tile { width: 32px; height: 32px; right: 12px; top: 12px; }
  .stat .trend { font-size: .66rem; }
  .dash { gap: 14px; }
  .card { padding: 18px; }
  .welcome, .page-hero, .cta { padding: 24px 20px; border-radius: 22px; }
  .cta { grid-template-columns: 1fr; }
  .sambutan { grid-template-columns: 1fr; }
  .sambutan figure { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
  .sambutan figcaption { margin: 0; }
  .news-feature, .news-grid, .form-grid, .radio-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid figcaption { font-size: .68rem; padding: 20px 10px 8px; }
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; }
  .mosaic a:nth-child(n+4) { grid-column: span 1; }
  .mosaic a:nth-child(6) { grid-column: span 2; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .agenda-item { grid-template-columns: 64px 1fr; }
  .agenda-item > :last-child { grid-column: 1 / -1; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { padding-bottom: 0; } .dl dd { border-top: 0; padding-top: 2px; }
  .bar-row { grid-template-columns: 100px 1fr 40px; }
  .footer { margin: 0 14px 14px; padding: 26px 20px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox, .modal { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .toast { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 420px) {
  .prog-grid { grid-template-columns: 1fr; }
  .countdown strong { font-size: 1.4rem; }
  .weather-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- 14. Cetak ---------- */
@media print {
  .sidebar, .topbar, .footer, .to-top, .toast, .no-print { display: none !important; }
  .app { margin: 0 !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ccc; backdrop-filter: none; }
}
