/* =========================================================================
   BARET Design System — satu set gaya untuk website publik & dashboard.
   Palet diambil dari logo: hitam, merah, putih. Merah hanya aksen.
   ========================================================================= */

:root {
  --red-primary: #D9141C;
  --red-dark: #A30D13;
  --red-soft: #FDE8E9;
  --black: #0D0D0D;
  --charcoal: #1E1E22;
  --charcoal-2: #2A2A30;
  --gray-600: #5B5B63;
  --gray-400: #8E8E96;
  --gray-300: #C9C9CF;
  --gray-200: #E4E4E8;
  --gray-100: #F5F5F7;
  --white: #FFFFFF;

  --success: #1E8E3E;
  --success-soft: #E6F4EA;
  --warning: #F2A900;
  --warning-ink: #8A5A00;
  --warning-soft: #FEF5DC;
  --info: #1F5FAD;
  --info-soft: #E7EFFA;

  --font-head: "Barlow Condensed", "Oswald", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(13, 13, 13, .06);
  --shadow: 0 2px 6px rgba(13, 13, 13, .06), 0 8px 24px rgba(13, 13, 13, .06);
  --shadow-lg: 0 12px 40px rgba(13, 13, 13, .16);
  --ring: 0 0 0 3px rgba(217, 20, 28, .28);

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red-primary); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--black);
}
h1 { font-size: 32px; text-transform: uppercase; }
h2 { font-size: 28px; text-transform: uppercase; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
}
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--gray-200); margin: 24px 0; }
:focus-visible { outline: 3px solid var(--red-primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--red-primary); color: var(--white); }

.icon { display: inline-block; vertical-align: -0.2em; width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

.sr-only {
  position: absolute !important; 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: 16px; top: -48px; z-index: 1000; background: var(--red-primary); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.text-muted { color: var(--gray-600); }
.lead { font-size: 19px; line-height: 1.6; color: var(--gray-600); }
.text-red { color: var(--red-primary); }
.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ---------- Tombol ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.1; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { text-decoration: none; color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--primary { --btn-bg: var(--red-primary); --btn-fg: var(--white); --btn-bd: var(--red-primary); }
.btn--primary:hover { --btn-bg: var(--red-dark); --btn-bd: var(--red-dark); box-shadow: 0 6px 18px rgba(217, 20, 28, .28); }
.btn--outline:hover { --btn-bg: var(--black); --btn-fg: var(--white); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .85); }
.btn--outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--white); }
.btn--dark { --btn-bg: var(--black); --btn-fg: var(--white); --btn-bd: var(--black); }
.btn--dark:hover { --btn-bg: var(--charcoal-2); --btn-bd: var(--charcoal-2); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--gray-600); }
.btn--ghost:hover { --btn-bg: var(--gray-100); --btn-fg: var(--black); }
.btn--danger { --btn-bg: var(--white); --btn-fg: var(--red-primary); --btn-bd: var(--red-primary); }
.btn--danger:hover { --btn-bg: var(--red-primary); --btn-fg: var(--white); }
.btn--success { --btn-bg: var(--success); --btn-fg: var(--white); --btn-bd: var(--success); }
.btn--success:hover { filter: brightness(.92); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 40px; min-height: 40px; }
.btn--icon.btn--sm { width: 36px; min-height: 36px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--btn-fg) var(--btn-fg) var(--btn-fg) transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--gray-100); color: var(--gray-600);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--warning { background: var(--warning-soft); color: var(--warning-ink); }
.badge--danger, .badge--red { background: var(--red-soft); color: var(--red-dark); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--muted { background: var(--gray-100); color: var(--gray-600); }
.tag {
  display: inline-block; padding: 4px 10px; background: var(--red-primary); color: var(--white);
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 4px; line-height: 1.2;
}
.tag:hover { color: var(--white); text-decoration: none; background: var(--red-dark); }
.tag--dark { background: var(--black); }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .span-all { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 14px; font-weight: 600; color: var(--black); }
.label .req { color: var(--red-primary); margin-left: 2px; }
.label .opt { color: var(--gray-600); font-weight: 400; }
.hint { font-size: 13px; color: var(--gray-600); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--white); border: 1.5px solid var(--gray-300); border-radius: var(--radius);
  font-size: 16px; line-height: 1.4; color: var(--black);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B5B63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red-primary); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .field.has-error .editor, .field.has-error .file-drop { border-color: var(--red-primary); }
.field-error { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 500; color: var(--red-dark); }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.input-group { position: relative; }
.input-group .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input-group .input { padding-left: 42px; }
.choice-row { display: flex; gap: 12px; flex-wrap: wrap; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius); cursor: pointer; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.choice input { accent-color: var(--red-primary); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--red-primary); background: var(--red-soft); }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.check input { accent-color: var(--red-primary); width: 20px; height: 20px; margin: 0; flex: none; margin-top: 1px; }
.file-drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px;
  border: 1.5px dashed var(--gray-300); border-radius: var(--radius); background: var(--gray-100);
  transition: border-color .15s, background .15s; cursor: pointer;
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--red-primary); background: var(--red-soft); }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop:has(input:focus-visible) { box-shadow: var(--ring); }
.file-drop__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--white); color: var(--red-primary); flex: none; overflow: hidden; }
.file-drop__icon img { width: 100%; height: 100%; object-fit: cover; }
.file-drop__text { font-size: 14px; min-width: 0; }
.file-drop__text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.form-actions--end { justify-content: flex-end; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 16px; font-family: var(--font-head); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }

/* Editor teks berita */
.editor { border: 1.5px solid var(--gray-300); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.editor:focus-within { border-color: var(--red-primary); box-shadow: var(--ring); }
.editor__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--gray-200); background: var(--gray-100); }
.editor__bar button {
  min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: transparent;
  font-size: 14px; font-weight: 700; cursor: pointer; color: var(--charcoal);
}
.editor__bar button:hover { background: var(--white); }
.editor__bar button.is-on { background: var(--black); color: var(--white); }
.editor__bar .sep { width: 1px; background: var(--gray-300); margin: 4px 4px; }
.editor__area { min-height: 320px; max-height: 70vh; overflow-y: auto; padding: 16px 18px; outline: none; }
.editor__area:empty::before { content: attr(data-placeholder); color: var(--gray-400); }

/* ---------- Kartu ---------- */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card__body { padding: 20px; }
@media (min-width: 768px) { .card__body { padding: 24px; } }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--gray-200); }
.card__head h2, .card__head h3 { margin: 0; font-size: 20px; }
.card__foot { padding: 14px 20px; border-top: 1px solid var(--gray-200); background: var(--gray-100); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- Alert / flash ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: 15px; }
.alert .icon { margin-top: 2px; }
.alert p:last-child { margin-bottom: 0; }
.alert--success { background: var(--success-soft); border-color: #B7DFC2; color: #145C29; }
.alert--error { background: var(--red-soft); border-color: #F5B8BB; color: var(--red-dark); }
.alert--warning { background: var(--warning-soft); border-color: #F5DA8C; color: var(--warning-ink); }
.alert--info { background: var(--info-soft); border-color: #BFD3EF; color: var(--info); }
.flash-stack { position: fixed; z-index: 900; top: calc(var(--header-h) + 12px); right: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 640px) { .flash-stack { left: auto; width: 420px; } }
.flash-stack .alert { pointer-events: auto; box-shadow: var(--shadow-lg); animation: slide-in .3s var(--ease); background-clip: padding-box; }
.flash-stack .alert--success { background: #F2FAF4; }
.flash-stack .alert--error { background: #FFF5F5; }
.alert__close { margin-left: auto; background: none; border: 0; padding: 2px; cursor: pointer; color: inherit; opacity: .7; border-radius: 4px; }
.alert__close:hover { opacity: 1; }
.alert.is-hiding { opacity: 0; transform: translateY(-6px); transition: .25s var(--ease); }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Tabel ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  background: var(--black); color: var(--white); text-align: left; font-weight: 600; padding: 12px 16px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.table td { padding: 12px 16px; border-top: 1px solid var(--gray-200); vertical-align: middle; }
.table tbody tr:hover td { background: #FAFAFB; }
.table .col-actions { text-align: right; white-space: nowrap; width: 1%; }
.table .col-actions .row { justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
.table__title { font-weight: 600; color: var(--black); }
.table__title:hover { color: var(--red-primary); }
.table__sub { font-size: 13px; color: var(--gray-600); }
.table--plain th { background: var(--gray-100); color: var(--gray-600); }
.dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 0; margin: 0; font-size: 15px; }
.dl dt, .dl dd { padding: 11px 0; border-bottom: 1px solid var(--gray-200); margin: 0; }
.dl dt { color: var(--gray-600); font-size: 14px; padding-right: 12px; }
.dl dd { font-weight: 500; overflow-wrap: anywhere; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- Paginasi ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.pagination__info { font-size: 14px; color: var(--gray-600); }
.pagination__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pagination__list a, .pagination__list span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius);
  border: 1px solid var(--gray-200); background: var(--white); color: var(--black); font-weight: 600; font-size: 14px;
}
.pagination__list a:hover { border-color: var(--black); text-decoration: none; color: var(--black); }
.pagination__list .is-current { background: var(--black); border-color: var(--black); color: var(--white); }
.pagination__list .is-gap { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--gray-600); }
.empty__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--gray-100); color: var(--gray-400); }
.empty__icon .icon { width: 28px; height: 28px; }
.empty h3 { color: var(--black); margin-bottom: 6px; font-size: 22px; text-transform: uppercase; }
.empty p { max-width: 420px; margin: 0 auto 16px; }

/* ---------- Modal konfirmasi ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(13, 13, 13, .6); animation: fade .2s; }
.modal__box {
  position: relative; width: 100%; max-width: 440px; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s var(--ease);
}
.modal__box::before { content: ""; display: block; height: 4px; background: var(--red-primary); }
.modal__body { padding: 24px; display: flex; gap: 16px; }
.modal__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red-primary); flex: none; }
.modal__body h2 { font-size: 22px; margin-bottom: 6px; }
.modal__body p { margin: 0; color: var(--gray-600); }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; background: var(--gray-100); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
body.modal-open { overflow: hidden; }

/* =========================================================================
   WEBSITE PUBLIK
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 800; background: var(--black); color: var(--white);
  border-bottom: 3px solid var(--red-primary); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); flex: none; }
.brand:hover { color: var(--white); text-decoration: none; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-size: 26px; font-weight: 800; font-style: italic; letter-spacing: .04em; }
.brand__tag { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-300); margin-top: 3px; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 10px 12px; color: var(--white);
  font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--red-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.nav a:hover { color: var(--white); text-decoration: none; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-actions .btn { min-height: 40px; padding: 8px 16px; }
.header-login { color: var(--gray-300); display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 8px; }
.header-login:hover { color: var(--white); text-decoration: none; }
.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; color: var(--white); cursor: pointer; }
.nav-toggle:hover { background: var(--charcoal-2); }
.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-actions { margin-left: 8px; }
  .nav-toggle { display: none; }
  .header-login { display: inline-flex; }
}

/* Drawer mobile */
.drawer { position: fixed; inset: 0; z-index: 950; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px); background: var(--black); color: var(--white);
  transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column;
  border-left: 3px solid var(--red-primary);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--charcoal-2); }
.drawer__nav { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; }
.drawer__nav a {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--white);
  font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  border-left: 4px solid transparent;
}
.drawer__nav a:hover { background: var(--charcoal); text-decoration: none; color: var(--white); }
.drawer__nav a.is-active { border-left-color: var(--red-primary); background: var(--charcoal); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--charcoal-2); display: grid; gap: 10px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 480px at 85% 40%, rgba(217, 20, 28, .22), transparent 60%),
    linear-gradient(160deg, var(--black) 0%, var(--black) 45%, var(--charcoal) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
  padding: 56px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(-58deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 24px);
}
.hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 44px; height: 8px; background: var(--red-primary);
  transform: rotate(-2.2deg); transform-origin: left; opacity: .95;
}
.hero__grid { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } .hero { padding: 88px 0 150px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-300);
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--red-primary); }
.hero h1 {
  color: var(--white); font-size: 44px; font-weight: 800; font-style: italic; line-height: .95; letter-spacing: .01em; margin-bottom: 20px;
}
@media (min-width: 768px) { .hero h1 { font-size: 72px; } }
.hero h1 .text-red { color: var(--red-primary); }
.hero__lead { font-size: 18px; color: var(--gray-300); max-width: 560px; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__logo { position: relative; justify-self: center; width: min(78vw, 420px); }
.hero__logo::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 20, 28, .35), transparent 70%); filter: blur(24px);
}
.hero__logo img { position: relative; width: 100%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }

/* Page hero (halaman dalam) */
.page-hero {
  position: relative; color: var(--white); overflow: hidden;
  background: linear-gradient(160deg, var(--black), var(--charcoal));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
  padding: 40px 0 64px;
}
.page-hero::after {
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 45%;
  background: repeating-linear-gradient(-58deg, transparent 0 18px, rgba(217, 20, 28, .12) 18px 20px);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero h1 { color: var(--white); position: relative; z-index: 1; margin-bottom: 8px; font-style: italic; font-weight: 800; }
.page-hero p { color: var(--gray-300); max-width: 680px; margin: 0; position: relative; z-index: 1; }
.breadcrumb { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-300); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--gray-600); }

/* Section */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section--alt { background: var(--gray-100); }
.section--dark { background: var(--black); color: var(--white); }
.section--tight { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { position: relative; margin: 0; padding-bottom: 14px; font-style: italic; font-weight: 800; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; background: var(--red-primary);
  transform: skewX(-24deg); transform-origin: left bottom;
}
.section-title.text-center::after { left: 50%; margin-left: -32px; }
.section-kicker { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red-primary); margin-bottom: 6px; font-style: normal; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--black); }
.section-link:hover { color: var(--red-primary); text-decoration: none; }
.section-link .icon { transition: transform .15s; }
.section-link:hover .icon { transform: translateX(3px); }
.divider-slash { height: 14px; margin: 0; background: repeating-linear-gradient(-58deg, var(--red-primary) 0 6px, transparent 6px 14px); opacity: .9; }

/* Statistik */
.stats-band { position: relative; z-index: 2; margin-top: -76px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 22px 20px; border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) { .stat { border-bottom: 0; border-right: 1px solid var(--gray-200) !important; } .stat:last-child { border-right: 0 !important; } }
.stat__num { font-family: var(--font-head); font-size: 40px; font-weight: 800; line-height: 1; color: var(--black); font-variant-numeric: tabular-nums; }
.stat__num::after { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red-primary); margin-left: 4px; transform: skewX(-20deg); }
.stat__label { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; }

/* Sambutan */
.welcome { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .welcome { grid-template-columns: 320px 1fr; gap: 56px; } }
.welcome__figure { position: relative; max-width: 320px; }
.welcome__photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--charcoal), var(--black));
  display: grid; place-items: center; color: var(--white); font-family: var(--font-head); font-size: 96px; font-weight: 800; font-style: italic;
  position: relative; overflow: hidden;
}
.welcome__photo img { width: 60%; opacity: .9; }
.welcome__figure::after { content: ""; position: absolute; left: -12px; bottom: -12px; width: 60%; height: 60%; border-left: 5px solid var(--red-primary); border-bottom: 5px solid var(--red-primary); border-radius: 0 0 0 var(--radius-lg); z-index: -1; }
.welcome blockquote { margin: 0; font-size: 19px; line-height: 1.7; color: var(--charcoal); }
.welcome blockquote .icon { width: 40px; height: 40px; color: var(--red-primary); margin-bottom: 12px; }
.welcome__sign { margin-top: 20px; font-family: var(--font-head); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.welcome__role { font-size: 14px; color: var(--gray-600); }

/* Kartu berita */
.grid-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  color: inherit; position: relative;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; color: inherit; }
.news-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--charcoal); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__media .tag { position: absolute; left: 14px; top: 14px; }
.media-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: repeating-linear-gradient(-58deg, transparent 0 16px, rgba(217, 20, 28, .16) 16px 18px), linear-gradient(160deg, var(--black), var(--charcoal));
}
.media-fallback img { width: 34% !important; height: auto !important; object-fit: contain !important; opacity: .85; }
.news-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-600); }
.news-card__title { font-family: var(--font-head); font-size: 23px; font-weight: 700; line-height: 1.15; margin: 0; color: var(--black); }
.news-card:hover .news-card__title { color: var(--red-primary); }
.news-card__excerpt { font-size: 15px; color: var(--gray-600); margin: 0; }
.news-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--red-primary); }

/* Agenda */
.agenda-list { display: grid; gap: 14px; }
.agenda-item {
  display: flex; gap: 16px; align-items: stretch; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 14px; color: inherit; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s;
}
.agenda-item:hover { border-color: var(--black); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.date-block {
  flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--black); color: var(--white); border-radius: var(--radius); position: relative; overflow: hidden; padding: 8px 0;
}
.date-block::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red-primary); }
.date-block__d { font-family: var(--font-head); font-size: 32px; font-weight: 800; line-height: 1; }
.date-block__m { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-300); }
.date-block__y { font-size: 11px; color: var(--gray-400); }
.agenda-item__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.agenda-item__title { font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: 1.15; margin: 0; }
.agenda-item:hover .agenda-item__title { color: var(--red-primary); }
.meta-line { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--gray-600); }
.meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.meta-line .icon { width: 16px; height: 16px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; background: var(--black); color: var(--white);
  border-radius: var(--radius-lg); padding: 40px 24px;
}
@media (min-width: 768px) { .cta-band { padding: 56px; } }
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -40px; bottom: -40px; width: 55%;
  background: var(--red-primary); transform: skewX(-24deg); opacity: .95;
}
.cta-band::after {
  content: ""; position: absolute; right: 48%; top: -40px; bottom: -40px; width: 14px; background: var(--red-primary); transform: skewX(-24deg); opacity: .6;
}
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: var(--white); font-style: italic; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: var(--gray-300); margin: 0; max-width: 560px; }
.cta-band .btn--primary { --btn-bg: var(--white); --btn-fg: var(--black); --btn-bd: var(--white); }
.cta-band .btn--primary:hover { --btn-bg: var(--black); --btn-fg: var(--white); --btn-bd: var(--black); box-shadow: none; }

/* Footer */
.site-footer { background: var(--black); color: var(--gray-300); border-top: 5px solid var(--red-primary); margin-top: 0; }
.site-footer__grid { display: grid; gap: 32px; padding: 48px 0 32px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h3 { color: var(--white); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: var(--white); }
.footer-brand img { width: 96px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.contact-list li { display: flex; gap: 10px; font-size: 14px; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--red-primary); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--charcoal); color: var(--white); transition: background .15s; }
.socials a:hover { background: var(--red-primary); color: var(--white); }
.site-footer__bottom { border-top: 1px solid var(--charcoal-2); padding: 18px 0; font-size: 13px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* Konten artikel */
.layout-aside { display: grid; gap: 40px; }
@media (min-width: 1024px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 320px; } }
.prose { font-size: 17px; line-height: 1.75; color: #232327; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .5em; text-transform: none; }
.prose h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 19px; margin: 1.2em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--red-primary); }
.prose blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 5px solid var(--red-primary); background: var(--gray-100); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.article-header .meta-line { margin: 12px 0 0; }
.article-cover { margin: 28px 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--charcoal); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.aside-block { background: var(--gray-100); border-radius: var(--radius-lg); padding: 20px; }
.aside-block + .aside-block { margin-top: 20px; }
.aside-block h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--black); font-weight: 500; }
.cat-list a:hover { background: var(--white); text-decoration: none; }
.cat-list a.is-active { background: var(--black); color: var(--white); }
.cat-list .count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--white); color: var(--gray-600); }
.cat-list a.is-active .count { background: var(--red-primary); color: var(--white); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-list a { display: flex; gap: 12px; color: var(--black); font-weight: 600; line-height: 1.3; }
.mini-list a:hover { color: var(--red-primary); text-decoration: none; }
.mini-list .thumb { flex: none; width: 76px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--charcoal); }
.mini-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-list .thumb .media-fallback img { width: 50% !important; }
.mini-list small { display: block; font-weight: 400; color: var(--gray-600); margin-top: 4px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.toolbar .input-group { flex: 1 1 260px; }
.seg { display: inline-flex; background: var(--gray-100); border-radius: var(--radius); padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--gray-600); display: inline-flex; align-items: center; gap: 6px; }
.seg a:hover { color: var(--black); text-decoration: none; background: rgba(255, 255, 255, .6); }
.seg a.is-active { background: var(--white); color: var(--black); box-shadow: var(--shadow-sm); }

/* Profil */
.vm-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .vm-grid { grid-template-columns: 1fr 1.3fr; } }
.vision-card { background: var(--black); color: var(--white); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; }
.vision-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; border: 14px solid var(--red-primary); border-radius: 50%; opacity: .5; }
.vision-card h3 { color: var(--white); text-transform: uppercase; letter-spacing: .08em; }
.vision-card p { font-family: var(--font-head); font-size: 28px; font-weight: 600; line-height: 1.2; margin: 0; position: relative; z-index: 1; }
.mission-list { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 12px; }
.mission-list li { counter-increment: m; display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px 16px; }
.mission-list li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--red-primary); line-height: 1; min-width: 32px; }
.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.value-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border-top: 4px solid var(--red-primary); box-shadow: var(--shadow); }
.value-card h3 { text-transform: uppercase; font-style: italic; font-weight: 800; margin-bottom: 6px; }
.value-card p { margin: 0; color: var(--gray-600); font-size: 15px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.doc-list .icon { color: var(--red-primary); }

/* Struktur organisasi */
.org-root { display: grid; gap: 16px; }
.org-node { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.org-node > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px;
}
.org-node > summary::-webkit-details-marker { display: none; }
.org-node > summary:hover { background: var(--gray-100); }
.org-node > summary .chev { margin-left: auto; transition: transform .2s; color: var(--gray-600); }
.org-node[open] > summary .chev { transform: rotate(90deg); }
.org-level { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--gray-100); color: var(--gray-600); }
.org-level--pusat { background: var(--red-primary); color: var(--white); }
.org-level--wilayah { background: var(--black); color: var(--white); }
.org-node__name { font-family: var(--font-head); font-size: 21px; font-weight: 700; line-height: 1.1; }
.org-node__kode { font-size: 13px; color: var(--gray-600); }
.org-node__body { padding: 4px 18px 18px; }
.org-children { display: grid; gap: 12px; margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--gray-200); }
.people { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--gray-100); }
.avatar {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--black); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 17px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 96px; height: 96px; font-size: 36px; }
.avatar--red { background: var(--red-primary); }
.person__name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.person__role { font-size: 13px; color: var(--gray-600); }

/* Kalender */
.calendar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.calendar__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; background: var(--black); color: var(--white); }
.calendar__head h2 { color: var(--white); margin: 0; font-size: 24px; font-style: italic; }
.calendar__head .btn { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: var(--charcoal-2); }
.calendar__head .btn:hover { --btn-bg: var(--charcoal-2); }
.calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar__dow { padding: 10px 6px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); background: var(--gray-100); }
.calendar__cell { min-height: 64px; padding: 6px; border-top: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200); font-size: 13px; min-width: 0; }
.calendar__cell:nth-child(7n) { border-right: 0; }
@media (min-width: 768px) { .calendar__cell { min-height: 110px; padding: 8px; } }
.calendar__cell.is-out { background: #FBFBFC; color: var(--gray-400); }
.calendar__day { font-weight: 700; font-size: 13px; }
.calendar__cell.is-today .calendar__day { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red-primary); color: var(--white); }
.calendar__ev { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 4px; background: var(--black); color: var(--white); font-size: 12px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid var(--red-primary); }
.calendar__ev:hover { background: var(--red-primary); color: var(--white); text-decoration: none; }
@media (max-width: 767px) { .calendar__ev { font-size: 0; height: 6px; padding: 0; border: 0; background: var(--red-primary); } }

/* Galeri */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 8px 10px; font-size: 13px; background: var(--white); color: var(--gray-600); border: 1px solid var(--gray-200); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(0, 0, 0, .92); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; color: var(--gray-300); font-size: 14px; }

/* Stepper pendaftaran */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; counter-reset: st; }
.stepper li { counter-increment: st; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gray-600); }
.stepper li::before { content: ""; height: 5px; border-radius: 3px; background: var(--gray-200); transition: background .2s; }
.stepper li span::before { content: counter(st) ". "; }
.stepper li.is-done::before, .stepper li.is-active::before { background: var(--red-primary); }
.stepper li.is-active { color: var(--black); }
.step[hidden] { display: none; }
.step legend:focus { outline: none; }
.js .step:not(.is-active) { display: none; }
.no-js .step-nav { display: none; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-200); flex-wrap: wrap; }
.review { display: grid; gap: 4px; background: var(--gray-100); border-radius: var(--radius); padding: 16px; font-size: 14px; }

.form-card { max-width: 860px; margin: 0 auto; }
.result-card { max-width: 640px; margin: 0 auto; text-align: center; }
.result-card .empty__icon { width: 72px; height: 72px; }
.result-card--ok .empty__icon { background: var(--success-soft); color: var(--success); }
.ticket-code {
  display: inline-block; margin: 12px 0 16px; padding: 12px 22px; border: 2px dashed var(--red-primary); border-radius: var(--radius);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 22px; font-weight: 700; letter-spacing: .06em; background: var(--red-soft); color: var(--black);
  user-select: all;
}
.lookup { max-width: 640px; margin: 0 auto; }

.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red-soft); color: var(--red-primary); flex: none; }
.contact-card h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.contact-card p { margin: 0; color: var(--gray-600); overflow-wrap: anywhere; }
.map-frame { width: 100%; min-height: 360px; height: 100%; border: 0; border-radius: var(--radius-lg); background: var(--gray-100); }

/* Halaman error */
.error-page { text-align: center; padding: 80px 0; }
.error-page__code { font-family: var(--font-head); font-size: 120px; font-weight: 800; font-style: italic; line-height: 1; color: var(--black); }
.error-page__code span { color: var(--red-primary); }

/* =========================================================================
   AUTH
   ========================================================================= */
.auth { min-height: 100vh; display: grid; background: var(--gray-100); }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__brand {
  display: none; position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(700px 400px at 70% 30%, rgba(217, 20, 28, .25), transparent 60%), linear-gradient(160deg, var(--black), var(--charcoal));
  padding: 48px; flex-direction: column; justify-content: space-between;
}
@media (min-width: 900px) { .auth__brand { display: flex; } }
.auth__brand::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 80px; height: 8px; background: var(--red-primary); transform: rotate(-3deg); }
.auth__brand img { width: 280px; margin: 0 auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .5)); }
.auth__brand h2 { color: var(--white); font-style: italic; font-weight: 800; font-size: 40px; margin: 0; }
.auth__brand p { color: var(--gray-300); margin: 0; }
.auth__main { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth__card { width: 100%; max-width: 420px; }
.auth__card .brand { color: var(--black); margin-bottom: 28px; }
.auth__card .brand__tag { color: var(--gray-600); }
.auth__card h1 { font-size: 36px; margin-bottom: 6px; font-style: italic; font-weight: 800; }

/* =========================================================================
   DASHBOARD
   ========================================================================= */
.admin { min-height: 100vh; background: var(--gray-100); }
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 900; width: 264px; background: var(--charcoal); color: var(--gray-300);
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s var(--ease);
}
.sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) { .sidebar { transform: none; } .admin__main { margin-left: 264px; } }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sidebar__brand img { width: 44px; height: 44px; object-fit: contain; }
.sidebar__brand .brand__name { font-size: 24px; color: var(--white); }
.sidebar__nav { flex: 1; overflow-y: auto; padding: 12px 10px 20px; }
.sidebar__group { margin-top: 16px; padding: 0 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-400); }
.sidebar__link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: var(--radius);
  color: var(--gray-300); font-size: 15px; font-weight: 500;
}
.sidebar__link:hover { background: rgba(255, 255, 255, .06); color: var(--white); text-decoration: none; }
.sidebar__link.is-active { background: rgba(217, 20, 28, .14); color: var(--white); }
.sidebar__link.is-active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--red-primary); }
.sidebar__link.is-active .icon { color: var(--red-primary); }
.sidebar__count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--red-primary); color: var(--white); font-size: 12px; font-weight: 700; text-align: center; }
.sidebar__foot { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13px; }
.sidebar__foot a { color: var(--gray-300); display: inline-flex; gap: 6px; align-items: center; }
.sidebar__foot a:hover { color: var(--white); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 850; background: rgba(0, 0, 0, .5); display: none; }
.sidebar-backdrop.is-open { display: block; }
@media (min-width: 1024px) { .sidebar-backdrop { display: none !important; } }

.topbar {
  position: sticky; top: 0; z-index: 700; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
}
@media (min-width: 768px) { .topbar { padding: 0 28px; } }
.topbar__toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: transparent; cursor: pointer; }
.topbar__toggle:hover { background: var(--gray-100); }
@media (min-width: 1024px) { .topbar__toggle { display: none; } }
.topbar__site { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gray-600); }
.topbar__site:hover { color: var(--black); text-decoration: none; }
@media (min-width: 640px) { .topbar__site { display: inline-flex; } }
.user-menu { position: relative; margin-left: auto; }
.user-menu > button { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; }
.user-menu > button:hover { background: var(--gray-100); }
.user-menu .avatar { width: 36px; height: 36px; font-size: 14px; }
.user-menu__who { text-align: left; line-height: 1.2; display: none; }
@media (min-width: 640px) { .user-menu__who { display: block; } }
.user-menu__who strong { display: block; font-size: 14px; }
.user-menu__who small { font-size: 12px; color: var(--gray-600); }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none;
}
.dropdown.is-open { display: block; animation: pop .15s var(--ease); }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: var(--radius-sm); color: var(--black); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--gray-100); text-decoration: none; color: var(--black); }
.dropdown hr { margin: 6px 0; }

.admin__content { padding: 20px 16px 48px; max-width: 1360px; }
@media (min-width: 768px) { .admin__content { padding: 28px 28px 56px; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 32px; margin: 0; font-style: italic; font-weight: 800; }
.page-head .crumbs { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-head .crumbs a { color: var(--gray-600); }
.page-head .crumbs a:hover { color: var(--red-primary); }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin-bottom: 24px; }
.kpi { display: flex; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 18px 20px; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { border-color: var(--black); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.kpi__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red-soft); color: var(--red-primary); flex: none; }
.kpi__num, .kpi__label { display: block; }
.kpi__num { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__label { font-size: 13px; color: var(--gray-600); font-weight: 600; margin-top: 4px; }

.dash-grid { display: grid; gap: 20px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--gray-200); }
.list-plain > li:first-child { border-top: 0; }

.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--red-primary); transition: fill .12s; }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-group:hover .bar, .chart .bar-group:focus .bar { fill: var(--red-dark); }
.chart .grid-line { stroke: var(--gray-200); stroke-width: 1; }
.chart .axis-label { fill: var(--gray-600); font-size: 12px; font-family: var(--font-body); }
.chart .value-label { fill: var(--black); font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.chart__tip {
  position: absolute; pointer-events: none; padding: 8px 10px; background: var(--black); color: var(--white); border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s;
}
.chart__tip.is-on { opacity: 1; }
.chart__tip strong { font-size: 15px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin-bottom: 16px; }
.filters .field { flex: 1 1 180px; }
.filters .field--grow { flex: 2 1 260px; }
.filters .input, .filters .select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.filters .btn { min-height: 40px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--gray-600); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--black); text-decoration: none; }
.tabs a.is-active { color: var(--black); border-bottom-color: var(--red-primary); }
.tabs .count { font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--gray-200); color: var(--gray-600); }

.detail-grid { display: grid; gap: 20px; }
@media (min-width: 1100px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head .avatar--lg { border-radius: var(--radius-lg); }
.photo-box { width: 120px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); display: grid; place-items: center; color: var(--gray-400); flex: none; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--gray-200); }
.timeline li { position: relative; padding: 0 0 18px 16px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--red-primary); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { display: block; font-size: 12px; color: var(--gray-600); }
.nia-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius); background: var(--black); color: var(--white); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .04em; font-size: 14px; }
.nia-chip::before { content: ""; width: 4px; height: 16px; background: var(--red-primary); border-radius: 2px; }

.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { margin-left: 22px; border-left: 2px dashed var(--gray-200); padding-left: 14px; }
.tree-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 4px 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); flex-wrap: wrap; }
.tree-item:hover { border-color: var(--gray-400); }
.tree-item__name { font-weight: 600; }

.thumb-sm { width: 56px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--gray-100); }
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.photo-tile { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); background: var(--white); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tile form { position: absolute; top: 6px; right: 6px; }
.photo-tile figcaption { padding: 6px 8px; font-size: 12px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.current-file { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-100); flex-wrap: wrap; font-size: 14px; }
.current-file img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.json-diff { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 1.5; max-width: 420px; }
.json-diff div { overflow-wrap: anywhere; }
.json-diff del { color: var(--red-dark); background: var(--red-soft); text-decoration: none; padding: 0 3px; border-radius: 3px; }
.json-diff ins { color: #145C29; background: var(--success-soft); text-decoration: none; padding: 0 3px; border-radius: 3px; }
details.log-detail summary { cursor: pointer; color: var(--red-primary); font-size: 13px; font-weight: 600; }

.section-card + .section-card { margin-top: 20px; }
.danger-zone { border-color: #F5B8BB; }
.danger-zone .card__head { background: #FFF7F7; }

@media print {
  .site-header, .site-footer, .sidebar, .topbar, .btn, .flash-stack { display: none !important; }
  .admin__main { margin: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Tambahan utilitas ---------- */
.h-sm { font-size: 24px; }
.page-hero .meta-line { color: var(--gray-300); margin-top: 12px; position: relative; z-index: 1; }
.page-hero .badge, .page-hero .tag { position: relative; z-index: 1; }
.table td .row { flex-wrap: nowrap; }
.table td .row > div { min-width: 0; }
.table td:first-child { min-width: 220px; }
.detail-grid > *, .dash-grid > *, .layout-aside > *, .form-grid > * { min-width: 0; }
.admin__main { min-width: 0; overflow-x: clip; }
@media (max-width: 639px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .kpi__icon { width: 40px; height: 40px; }
  .kpi__num { font-size: 28px; }
  .page-head__actions { width: 100%; }
  .page-head__actions .btn { flex: 1 1 auto; }
}
