/* ==========================================================================
   SILPPM IST BUTON — lembar gaya tunggal (situs publik + dashboard internal).

   Identitas visual mengikuti logo institusi: biru tua (navy), biru, kuning
   keemasan, putih, dan abu-abu muda. Kontras dijaga: teks putih hanya dipakai
   di atas navy/gradasi gelap (rasio >= 4,5:1), sedangkan permukaan terang
   memakai teks gelap.
   ========================================================================== */

:root {
  --navy: #0B3F62;
  --navy-700: #072A47;
  --blue: #0B4F8A;
  --blue-400: #2E7CBF;
  --blue-50: #EAF2FA;
  --gold: #C9A227;
  --gold-400: #E7CE7A;
  --gold-50: #FBF5E2;
  --ink: #0E2136;
  --ink-soft: #4A5D72;
  --muted: #5C7086;
  --line: #D8E3EF;
  --bg: #F4F7FB;
  --white: #FFFFFF;
  --ok: #14713F;
  --ok-bg: #E7F6EC;
  --warn: #8A5A08;
  --warn-bg: #FDF3DD;
  --bad: #A02B2B;
  --bad-bg: #FCEBEB;
  --info: #0B4F8A;
  --info-bg: #EAF2FA;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 34px rgba(11, 63, 98, 0.10);
  --shadow-sm: 0 4px 14px rgba(11, 63, 98, 0.08);
  --grad-brand: linear-gradient(135deg, #0B4F8A 0%, #0B3F62 100%);
  --grad-gold: linear-gradient(135deg, #C9A227 0%, #E7CE7A 100%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --wrap: 1200px;
  --section-y: 66px;
}

/* Pengaman tata letak #1: nav off-canvas position:fixed yang tergeser keluar
   layar pernah membuat halaman dapat digeser ke samping ~340px. `clip` dipilih
   karena tidak menjadikan html/body sebagai scroll container. */
html { overflow-x: clip; }
@supports not (overflow-x: clip) { html { overflow-x: hidden; } }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.site-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(11, 79, 138, 0.10), transparent 70%),
    radial-gradient(50% 40% at 88% 4%, rgba(201, 162, 39, 0.12), transparent 70%),
    radial-gradient(45% 40% at 70% 92%, rgba(46, 124, 191, 0.10), transparent 70%);
  pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 12px; padding-left: 20px; }
img { max-width: 100%; height: auto; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { margin: var(--section-y) auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }
.spacer { flex: 1 1 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.ic { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.ic--xs { width: 15px; height: 15px; }
.ic--lg { width: 42px; height: 42px; }
.ic--hero { width: 87px; height: 87px; color: var(--navy); opacity: 0.9; }

/* ------------------------------- Tombol --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid rgba(46, 124, 191, .45); outline-offset: 2px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--grad-brand); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: 0 10px 22px rgba(11, 63, 98, .22); }
.btn--gold { background: var(--grad-gold); color: #3A2C05; }
.btn--ghost { background: rgba(255, 255, 255, .78); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: #FFFFFF; }
.btn--ink { background: var(--navy-700); color: #FFFFFF; }
.btn--danger { background: var(--bad-bg); color: var(--bad); border-color: #EBC7C7; }
.btn--sm { padding: 7px 13px; font-size: 0.86rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-form input[type="text"], .inline-form input[type="number"] { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: .86rem; max-width: 190px; }

/* ------------------------------- Kartu ---------------------------------- */
.card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(216, 227, 239, .9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card--pad { padding: 24px; }
.card-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(234, 242, 250, .6);
}
.card-head h2, .card-head h3 { margin: 0; }
.card-head-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; }

.grid { display: grid; gap: 20px; }
/* minmax memakai min(...,100%) agar track tidak pernah lebih lebar daripada
   wadahnya — tanpa itu, kartu meluber ke kanan pada layar 320px. */
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid--form { gap: 16px; }

/* --------------------------- Navigasi publik ---------------------------- */
.topbar { background: var(--navy-700); color: #EAF2FA; font-size: .84rem; }
.topbar-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 8px 20px; }
.topbar-link { color: #FFFFFF; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topbar-user { color: #EAF2FA; }

.site-head { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; backdrop-filter: blur(10px); }
.site-head-in { display: flex; align-items: center; gap: 18px; padding: 12px 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* Logo WAJIB punya flex:0 0 auto — tanpa itu flexbox menyusutkan logo saat
   header padat sehingga tampak kecil/gepeng. */
.brand-logo { flex: 0 0 auto; width: 56px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-display); font-size: 1rem; }
.brand-text span { font-size: .78rem; color: var(--ink-soft); }

.nav-toggle { display: none; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav ul a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.primary-nav ul a:hover { background: var(--blue-50); color: var(--navy); text-decoration: none; }
.primary-nav ul a.is-active { background: var(--navy); color: #FFFFFF; }
.nav-cta { margin-left: auto; }

/* --------------------------------- Hero -------------------------------- */
.hero { background: linear-gradient(160deg, rgba(11, 79, 138, .10), rgba(201, 162, 39, .10)); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 54px 20px; align-items: center; }
.hero h1 { margin-bottom: 10px; }
.hero-lead { font-size: 1.12rem; font-weight: 600; color: var(--navy); }
.hero-address { color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero-note { font-size: .84rem; color: var(--ink-soft); margin-top: 14px; max-width: 620px; }
.hero-art { display: flex; gap: 18px; justify-content: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--gold-50); border: 1px solid var(--gold-400); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }

.page-head { background: linear-gradient(160deg, rgba(11, 79, 138, .12), rgba(201, 162, 39, .08)); border-bottom: 1px solid var(--line); padding: 38px 0; }
.page-head--slim { padding: 26px 0; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--ink-soft); margin: 0; }

/* ------------------------------ Statistik ------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(232px, 100%), 1fr)); gap: 20px; }
.stat-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); color: var(--ink);
}
a.stat-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .15s ease; }
.stat-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); color: var(--navy); }
.stat-body { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.stat-label { font-weight: 600; font-size: .95rem; }
.stat-note { font-size: .8rem; color: var(--ink-soft); }

/* ------------------------------- Lencana ------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid transparent; }
.pill--ok { background: var(--ok-bg); color: var(--ok); border-color: #C6E5D2; }
.pill--warn { background: var(--warn-bg); color: var(--warn); border-color: #EFD9A6; }
.pill--bad { background: var(--bad-bg); color: var(--bad); border-color: #EBC7C7; }
.pill--info { background: var(--info-bg); color: var(--info); border-color: #C6DCEF; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--info-bg); color: var(--ink); margin: 14px 0; }
.alert--ok { background: var(--ok-bg); border-color: #C6E5D2; }
.alert--warn { background: var(--warn-bg); border-color: #EFD9A6; }
.alert--bad { background: var(--bad-bg); border-color: #EBC7C7; }
.alert .ic { color: var(--navy); margin-top: 2px; }
.flash-stack { margin: 14px 0; }

.empty-state { text-align: center; padding: 30px 18px; color: var(--ink-soft); }
.empty-state .ic { width: 38px; height: 38px; color: var(--blue-400); margin-bottom: 8px; }
.empty-state h3 { color: var(--ink); }

/* ------------------------------- Tabel --------------------------------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: rgba(234, 242, 250, .8); font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.tbl tbody tr:hover { background: rgba(234, 242, 250, .42); }
.tbl .col-actions { white-space: nowrap; }
.tbl--plain th { background: none; text-transform: none; letter-spacing: 0; }
.tbl--plain td, .tbl--plain th { padding: 7px 9px; font-size: .82rem; }
.doc-empty { text-align: center; color: var(--ink-soft); }

.pager { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); font-size: .87rem; color: var(--ink-soft); }
.pager-links { display: flex; gap: 8px; align-items: center; }
.pager-current { font-weight: 600; color: var(--ink); }

/* ------------------------------ Formulir ------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 2px; }
.field-label { font-weight: 600; font-size: .9rem; }
.field-label em { color: var(--bad); font-style: normal; }
.field-hint { font-size: .8rem; color: var(--ink-soft); }
.field input[type="text"], .field input[type="number"], .field input[type="date"],
.field input[type="email"], .field input[type="password"], .field input[type="search"], .field select, .field textarea,
.filter-bar input, .filter-bar select, .upload-url {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 11px; background: #FFFFFF; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus {
  outline: 2px solid rgba(46, 124, 191, .35); outline-offset: 1px; border-color: var(--blue-400);
}
.field--check { flex-direction: row; align-items: center; gap: 10px; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; }
.form-section legend { font-family: var(--font-display); font-weight: 700; padding: 0 8px; color: var(--navy); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filter-bar input[type="search"] { flex: 1 1 220px; }
.filter-bar select { flex: 0 1 190px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(255, 255, 255, .94); padding: 12px 0; border-top: 1px solid var(--line); }

/* Unggah berkas */
.upload-box {
  border: 2px dashed var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .7);
  min-height: 130px; display: grid; place-items: center; padding: 14px; cursor: pointer; text-align: center;
}
.upload-box--square { aspect-ratio: 1 / 1; max-width: 240px; }
.upload-box img { max-height: 190px; border-radius: 10px; }
.upload-box.is-drag { border-color: var(--blue-400); background: var(--blue-50); }
.upload-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-soft); font-size: .88rem; }
.upload-actions { display: flex; gap: 8px; margin: 8px 0; }
.upload-url { margin-top: 4px; }

.logo-preview { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ------------------------------- Grafik -------------------------------- */
.chart { width: 100%; height: auto; max-height: 260px; }
.chart-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.chart--donut { width: 190px; height: 190px; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; }
.hbars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(min(110px, 38%), 40%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.hbar-track { background: var(--blue-50); border-radius: 999px; height: 12px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 999px; }
.hbar-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.progress { background: var(--blue-50); border-radius: 999px; height: 12px; overflow: hidden; margin: 6px 0; }
.progress-bar { height: 100%; background: var(--grad-brand); }
.progress-label { font-size: .82rem; color: var(--ink-soft); }

/* ------------------------------ Ringkasan ------------------------------ */
.kv-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.kv-list li { display: flex; gap: 12px; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.kv-list span { color: var(--ink-soft); font-size: .88rem; }
.kv-list strong { text-align: right; overflow-wrap: anywhere; }
.kv-list--compact li { padding: 5px 0; }
.kv, .kv dd { overflow-wrap: anywhere; }

.mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.mini-list li span { font-size: .84rem; color: var(--ink-soft); }
.mini-list--tight { gap: 8px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.link-list a { font-weight: 600; }

.check-list, .num-list, .flow-list { padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 24px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.num-list li, .flow-list li { font-size: .93rem; }
.flow-list { list-style: none; padding: 0; counter-reset: flow; }
.flow-list li { display: flex; gap: 12px; align-items: flex-start; background: rgba(234, 242, 250, .5); border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; }
.flow-list li.is-done { background: var(--ok-bg); border-color: #C6E5D2; }
.flow-no { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }

.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.timeline li { position: relative; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-400); }

.prose p { margin-bottom: 12px; }
.lead-quote { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); border-left: 4px solid var(--gold); padding-left: 16px; }

/* ------------------------- Halaman publik khusus ----------------------- */
.profil-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.side-menu { display: flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); position: sticky; top: 84px; }
.side-menu a { padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.side-menu a:hover { background: var(--blue-50); color: var(--navy); text-decoration: none; }
.side-menu a.is-current { background: var(--navy); color: #FFFFFF; }
.side-menu--top { flex-direction: row; flex-wrap: wrap; position: static; margin-bottom: 22px; }

.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .8); }
.doc-list-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.doc-list-body span { font-size: .83rem; color: var(--ink-soft); }
.doc-card { text-align: center; }
.doc-card .ic { width: 34px; height: 34px; color: var(--navy); }

.agenda-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.agenda-list li { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.agenda-list--compact li { padding: 9px 12px; }
.agenda-date { flex: 0 0 auto; width: 52px; text-align: center; background: var(--navy); color: #FFFFFF; border-radius: 10px; padding: 6px 0; }
.agenda-date strong { display: block; font-size: 1.15rem; }
.agenda-date small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.agenda-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.agenda-body span { font-size: .82rem; color: var(--ink-soft); }

.activity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.activity-item, .activity-list > li {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: rgba(255, 255, 255, .9);
}
.activity-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.activity-meta { font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-activity { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mini-activity span { font-size: .83rem; color: var(--ink-soft); }
.news-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.approval-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-band { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.map-frame { width: 100%; min-height: 240px; border: 1px solid var(--line); border-radius: var(--radius); }
.greeting-sign { margin-top: 16px; display: flex; flex-direction: column; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.notif .ic { margin-top: 3px; color: var(--navy); }
.notif-body { flex: 1 1 auto; }
.notif-body p { margin: 2px 0; font-size: .9rem; color: var(--ink-soft); }
.notif--ok .ic { color: var(--ok); }
.notif--warn .ic { color: var(--warn); }
.notif--bad .ic { color: var(--bad); }
.notif.is-read { opacity: .62; }
.notif-actions { display: flex; gap: 6px; }
.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.narrow-page { max-width: 720px; padding: 60px 20px; }
.state-page { text-align: center; }
.state-page .ic--lg { color: var(--navy); }
.details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .7); margin: 12px 0; }
.details summary { cursor: pointer; font-weight: 600; }

/* ------------------------------- Footer -------------------------------- */
.site-foot { background: var(--navy-700); color: #DCE9F5; margin-top: var(--section-y); padding: 42px 0 18px; }
.site-foot h3, .site-foot h4 { color: #FFFFFF; }
.site-foot a { color: #DCE9F5; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 26px; }
.foot-logo { margin-bottom: 10px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: .9rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 26px; padding-top: 16px; font-size: .82rem; }

/* ============================ DASHBOARD INTERNAL ======================== */
.admin-shell { display: grid; grid-template-columns: 274px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy-700); color: #DCE9F5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.admin-brand img { flex: 0 0 auto; width: 44px; height: 36px; object-fit: contain; background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 3px; }
.admin-brand strong { color: #FFFFFF; font-family: var(--font-display); display: block; }
.admin-brand span { font-size: .76rem; }
.side-close { margin-left: auto; background: none; border: 0; color: #DCE9F5; cursor: pointer; display: none; }
.admin-nav { display: flex; flex-direction: column; padding: 10px 8px; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #DCE9F5; font-size: .9rem; font-weight: 500; }
.admin-nav a:hover { background: rgba(255, 255, 255, .10); color: #FFFFFF; text-decoration: none; }
.admin-nav a.is-active { background: var(--gold); color: #2C2304; font-weight: 700; }
.admin-nav a.is-active .ic { color: #2C2304; }
.admin-nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: #9DB8D2; padding: 14px 12px 5px; }
.badge-count { margin-left: auto; background: var(--gold); color: #2C2304; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 1px 8px; }
.admin-side-foot { margin-top: auto; padding: 14px 16px; font-size: .76rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.admin-side-foot a { color: #E7CE7A; }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); padding: 12px 22px; position: sticky; top: 0; z-index: 50; }
.admin-title { font-size: 1.15rem; margin: 0; display: flex; flex-direction: column; }
.admin-title span { font-family: var(--font); font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.admin-user { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.admin-user-meta { display: flex; flex-direction: column; text-align: right; }
.admin-user-meta span { font-size: .76rem; color: var(--ink-soft); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-brand); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; }
.admin-body { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.admin-body > .card, .admin-body > .stat-grid, .admin-body > .grid { margin: 0; }
.nav-toggle { display: none; }
.nav-backdrop { display: none; }
.sim-banner { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-50); border: 1px solid var(--gold-400); border-radius: var(--radius); padding: 14px 18px; font-size: .9rem; }
.sim-banner .ic { color: var(--warn); margin-top: 2px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.tabs a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .88rem; color: var(--ink-soft); }
.tabs a:hover { background: var(--blue-50); color: var(--navy); text-decoration: none; }
.tabs a.is-current { background: var(--navy); color: #FFFFFF; }

/* Pengaman tata letak #2: panel nav (z-index 80) menutupi tombol toggle.
   Menambah z-index di dalam topbar tidak berpengaruh karena topbar memiliki
   backdrop-filter (membentuk stacking context), sehingga tombol ditutup
   sendiri lewat panel (data-nav-close) DAN z-index diatur relatif. */
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 80; transform: translateX(-102%); transition: transform .2s ease; }
  .admin-shell.nav-open .admin-side { transform: translateX(0); }
  .admin-shell.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(14, 33, 54, .45); z-index: 70; }
  .side-close { display: block; }
  .nav-toggle, .admin-topbar .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-50); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--navy); cursor: pointer; }
  .admin-shell.nav-open .nav-toggle { position: relative; z-index: 90; }
}

@media (max-width: 980px) {
  .profil-layout { grid-template-columns: 1fr; }
  .side-menu { position: static; flex-direction: row; flex-wrap: wrap; }
  .hero-in { grid-template-columns: 1fr; }
  .contact-band, .login-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-head-in { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-50); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--navy); cursor: pointer; margin-left: auto; }
  .primary-nav { display: none; order: 4; width: 100%; }
  .site-head.nav-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 2px; padding: 8px 0; }
  .nav-cta { order: 5; width: 100%; margin: 6px 0 10px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  :root { --section-y: 44px; }
}

@media (max-width: 620px) {
  .admin-body, .wrap { padding-left: 14px; padding-right: 14px; }
  .card--pad { padding: 18px; }
  .kv-list li { flex-direction: column; gap: 2px; }
  .kv-list strong { text-align: left; }
  .btn { white-space: normal; }
  .stat-grid { grid-template-columns: 1fr; }
  .topbar-in { gap: 10px; }
}

/* ============================== DOKUMEN CETAK =========================== */
.print-body { background: #E8EDF3; }
.print-toolbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 20px; }
.print-doc {
  background: #FFFFFF; width: 210mm; max-width: 100%; margin: 20px auto; padding: 16mm 14mm;
  box-shadow: var(--shadow); color: #101820; font-size: 11.5pt;
}
.doc-header { display: flex; gap: 16px; align-items: center; border-bottom: 3px double var(--navy); padding-bottom: 10px; margin-bottom: 14px; }
.doc-header img { flex: 0 0 auto; width: 74px; height: 62px; object-fit: contain; }
.doc-header-text { display: flex; flex-direction: column; line-height: 1.35; }
.doc-header-text strong { font-size: 13pt; font-family: var(--font-display); }
.doc-header-text span { font-size: 9.5pt; }
.doc-title { text-align: center; margin: 12px 0 18px; }
.doc-title h1 { font-size: 14pt; margin: 0 0 4px; }
.doc-title p { margin: 0; font-size: 10pt; }
.doc-no, .doc-date { font-weight: 600; }
.doc-section { margin-bottom: 14px; break-inside: auto; }
/* Seksi bertabel JANGAN dipaksa utuh: bila dipaksa, seluruh seksi berpindah ke
   halaman berikutnya dan dokumen tercetak dengan separuh halaman kosong. */
.doc-section h2 { font-size: 11.5pt; margin: 0 0 6px; padding-bottom: 3px; border-bottom: 1px solid #B9C7D6; break-after: avoid; }
.doc-section h2 em { font-size: 9pt; font-weight: 500; color: #4A5D72; }
.doc-body p { margin: 0 0 6px; text-align: justify; }
.doc-note { font-size: 9pt; color: #4A5D72; margin: 4px 0 0; }
.doc-identity { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; break-inside: avoid; }
.doc-identity .kv { display: flex; gap: 8px; justify-content: space-between; border-bottom: 1px dotted #C9D8E6; padding: 4px 0; font-size: 10pt; }
.doc-identity .kv span { color: #4A5D72; }
.doc-identity .kv strong { text-align: right; }
.doc-statement { font-size: 10.5pt; text-align: justify; }
.doc-signatures { display: flex; gap: 12px; justify-content: space-between; margin-top: 22px; break-inside: avoid; }
.doc-signatures--1 { justify-content: flex-end; }
.doc-signer, .signature { flex: 1 1 0; text-align: center; display: flex; flex-direction: column; gap: 3px; font-size: 10pt; break-inside: avoid; }
.sig-place { font-size: 9pt; color: #4A5D72; }
.sig-space { height: 52px; }
.sig-name { font-weight: 700; text-decoration: underline; }
.doc-footnote { font-size: 8.5pt; color: #4A5D72; margin-top: 14px; border-top: 1px solid #D8E3EF; padding-top: 6px; }
.print-note { text-align: center; font-size: 9pt; color: #4A5D72; }

@media print {
  .no-print, .print-toolbar { display: none !important; }
  body.print-body { background: #fff; }
  .print-doc { box-shadow: none; margin: 0; width: auto; padding: 0; font-size: 10.5pt; }
  .print-doc + .print-doc { break-before: page; }
  @page { size: A4 portrait; margin: 11mm 13mm; }
}

/* ==========================================================================
   DATA INDUK ORANG — kartu profil dosen & mahasiswa (revisi modul input data)

   Grid memakai min(…, 100%) agar kartu tidak pernah lebih lebar daripada
   wadahnya (halaman tidak dapat digeser ke samping pada layar 320px).
   ========================================================================== */
.people-intro { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.people-intro__text { flex: 1 1 320px; min-width: 0; }
.people-intro__text h2 { margin: 0 0 6px; font-family: var(--font-display); }
.people-intro__text p { margin: 0; }
.people-intro__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.people-grid { display: grid; gap: 20px; padding: 20px; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }

.person-card {
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.person-card__head { display: flex; gap: 13px; align-items: center; min-width: 0; }
.person-card__id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.person-card__name { font-family: var(--font-display); font-size: .99rem; line-height: 1.3; overflow-wrap: anywhere; }
.person-card__sub { font-size: .8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.person-card__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .86rem; }
.person-card__facts li { display: flex; gap: 10px; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.person-card__facts li span { color: var(--ink-soft); }
.person-card__facts li strong { text-align: right; overflow-wrap: anywhere; }
.person-card__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

.person-avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-brand); color: #FFFFFF; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .5px;
  overflow: hidden;
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-avatar--lg { width: 84px; height: 84px; font-size: 1.6rem; }

.person-hero { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; padding: 22px; }
.person-hero__main { display: flex; gap: 16px; align-items: center; flex: 1 1 340px; min-width: 0; }
.person-hero__id { min-width: 0; }
.person-hero__id h2 { margin: 0 0 2px; font-family: var(--font-display); overflow-wrap: anywhere; }
.person-hero__sub { margin: 0 0 8px; color: var(--ink-soft); font-size: .9rem; overflow-wrap: anywhere; }
.person-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }

.form-fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 20px; background: rgba(255, 255, 255, .72); }
.form-fieldset legend { padding: 0 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy); }
.form-fieldset > .field-hint { margin: 0 0 12px; }

.people-pre {
  margin: 8px 0 0; padding: 12px 14px; overflow-x: auto; white-space: pre;
  background: #F4F7FB; border: 1px solid var(--line); border-radius: 10px;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .82rem;
}
.field--inline { flex-direction: row; align-items: center; gap: 8px; }

@media (max-width: 640px) {
  .people-grid { padding: 14px; gap: 16px; }
  .person-hero { padding: 16px; }
  .person-avatar--lg { width: 68px; height: 68px; font-size: 1.35rem; }
}
