/* ============================================================
   SafeSphere — Protective Embrace visual system
   Survivor-centred UI: calm, human, campus-aligned.
   Business logic lives in JS/API — this file is presentation only.
   ============================================================ */

/* --- Tokens ------------------------------------------------- */
:root {
  --bg: #f7f0e7;
  --ink: #29232d;
  --muted: #655d68;
  --primary: #3b2146;
  --primary2: #2b1734;
  --soft: #eee4ef;
  --card: #fffdf8;
  --surface-protective: #eadfee;
  --emergency: #b52a36;
  --danger: #b52a36;
  --ok: #286b4f;
  --warn: #8b5716;
  --line: #d9cfc6;
  --focus-ring: #d44f38;
  --coral: #e76850;
  --coral-text: #8b2d22;
  --sun: #f0b84b;
  --sage: #86a88f;
  --plum-light: #d9c5de;
  --uni-maroon: #8b1538;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 18px 50px rgba(59, 33, 70, 0.10);
  --shadow-soft: 0 4px 18px rgba(59, 33, 70, 0.06);
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --topbar-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Sidebar Navigation ------------------------------------ */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: white;
  border-right: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.sidebar-logo {
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.sidebar-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: var(--uni-maroon);
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary2);
}

.sidebar-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.sidebar-close:hover {
  background: var(--soft);
  color: var(--ink);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--primary);
  background: var(--soft);
}

.sidebar-link.active {
  border-left: 3px solid var(--primary);
  padding-left: 17px;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-link:hover svg,
.sidebar-link.active svg {
  opacity: 1;
}

.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 20px;
}

.sidebar-auth {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 8px;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.sidebar-user-role {
  font-size: 12px;
  color: var(--muted);
}

.sidebar-link-sub {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 8px;
  margin: 2px 0;
}

.sidebar-link-sub svg {
  width: 16px;
  height: 16px;
}

.sidebar-btn {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s;
}

.sidebar-btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.sidebar-btn-outline:hover {
  background: var(--soft);
}

.sidebar-btn-primary {
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.sidebar-btn-primary:hover {
  background: var(--primary2);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.sidebar-escape-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--emergency);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-escape-btn:hover {
  background: #8f1c14;
}

/* --- Top bar ------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--topbar-h);
  background: rgba(247, 240, 231, 0.92);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid rgba(59, 33, 70, 0.12);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1600px;
  min-height: var(--topbar-h);
  margin: 0 auto;
  padding: 0 clamp(14px, 3.5vw, 40px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: var(--uni-maroon);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-text {
  display: block;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hamburger:hover {
  background: var(--soft);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 33, 70, 0.08);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Auth Menu & Social Login --- */
.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.divider span {
  padding: 0 10px;
}

/* --- Modal Styles --- */
.modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  background: white;
}

.modal::backdrop {
  background-color: rgba(21, 32, 51, 0.6);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: fadeInModal 0.2s ease-out forwards;
}

.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;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: var(--muted);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--ink);
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Form Helpers --- */
.form-helper {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
  font-weight: 500;
}
.text-danger { color: var(--danger); }
.text-success { color: var(--ok); }

/* --- SPA Pages (Pages Routing) ----------------------------- */
main {
  flex: 1;
}

.page {
  display: none;
  animation: fadeIn 0.3s ease-out forwards;
  min-height: 70vh;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Sections ---------------------------------------------- */
.section {
  padding: 64px 6vw;
}

/* --- Protective entry hero -------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: 72vh;
  background: var(--bg);
  max-width: 1440px;
  margin: 0 auto;
}

.hero-text {
  max-width: 680px;
}

.hero-eyebrow,
.section-overline,
.trust-kicker,
.safety-kicker,
.choice-label {
  margin: 0 0 12px;
  color: var(--primary2);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#welcomeMessage {
  color: var(--primary2);
  font-weight: 650;
  margin: 0 0 12px;
  font-size: 18px;
}

.hero h1 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero .hero-lead {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-privacy-note {
  max-width: 64ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.trust-panel {
  background: var(--surface-protective);
  border: 1px solid #c6d8cf;
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}

.trust-panel h2 {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.35;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 18px;
}

.trust-list li {
  position: relative;
  padding-left: 28px;
}

.trust-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary2);
  font-weight: 800;
}

.trust-list strong,
.trust-list span {
  display: block;
}

.trust-list span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(59, 33, 70, 0.16);
}

.btn.primary:hover {
  background: var(--coral);
  box-shadow: 0 10px 24px rgba(231, 104, 80, 0.22);
}

.btn.secondary {
  background: var(--soft);
  color: var(--primary2);
}

.btn.secondary:hover {
  background: var(--plum-light);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--soft);
}

.btn.danger {
  background: #fff7f5;
  color: var(--emergency);
  border: 1px solid #d9a49f;
}

.btn.danger:hover {
  background: #fbe9e6;
}

.btn.emergency-link {
  background: transparent;
  color: var(--emergency);
  border: 0;
  border-bottom: 2px solid var(--emergency);
  border-radius: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.btn.emergency-link:hover {
  background: #fff1ed;
}

.btn.full {
  width: 100%;
  text-align: center;
}

/* === ADMIN DASHBOARD REDESIGN (Phase 5–6) === */
.admin-overview {
  margin-bottom: 32px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.metric-card strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}

.situation-summary {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink);
}

.admin-insight {
  margin-bottom: 32px;
}

.admin-reports,
.admin-users {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-filters .input {
  width: 260px;
}

.admin-report-list .report-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.admin-report-list .report-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 33, 70, 0.10);
}

.admin-report-list .report-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.admin-report-list .report-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.admin-report-list .risk-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.risk-tinggi { background: #fee2e2; color: #b91c1c; }
.risk-sedang { background: #fef3c7; color: #c2410c; }
.risk-rendah { background: #d1fae5; color: #0f766e; }

.admin-user-list .report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}

/* --- Cards ------------------------------------------------- */
.hero-card,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.card {
  padding: 36px;
  margin: 40px 6vw;
}

.card-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.card-header h2 {
  margin: 0 0 8px 0;
  color: var(--ink);
}

/* --- Feature grid (hero card) ------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.feature-grid > div {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--line);
}

.feature-grid b,
.feature-grid span {
  display: block;
}

.feature-grid span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* --- Form -------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  background: #f8fafc;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* === NEW MODAL DETAIL (Phase 5/6) - Wider, more spacious, polished === */
.modal-wide {
  max-width: 1200px !important;
  width: 92vw;
}

.modal-wide .modal-content {
  max-width: 100%;
  width: 100%;
  padding: 32px 40px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--primary);
}

.modal-two-column {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
}

.modal-left,
.modal-right {
  display: flex;
  flex-direction: column;
}

.modal-section {
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.modal-section:last-child {
  margin-bottom: 0;
}

.reporter-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.reporter-box .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reporter-box .value {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.detail-fields {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-fields .field {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.detail-fields .label {
  font-size: 13px;
  color: var(--muted);
  min-width: 120px;
  flex-shrink: 0;
}

.detail-fields .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.description-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 20px;
}

.evidence-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.evidence-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.evidence-list li:last-child {
  border-bottom: none;
}

.evidence-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.evidence-list .scan {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #d1fae5;
  color: #0f766e;
}

.status-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.timeline-content {
  line-height: 1.4;
}

.timeline-content .time {
  color: var(--muted);
  font-size: 12px;
}

.action-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  margin-top: 8px;
}

.action-form .form-label:first-child {
  margin-top: 0;
}

/* ========================================================
   Base .input (admin search + Aksi Admin modal controls)
   Matches the polished look of .form-grid inputs/selects.
   Only 3 usages of .input class in the whole app (all admin),
   so this is low-risk and also beautifies the filter input.
   ======================================================== */
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  background: #f8fafc;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
  outline: none;
  box-sizing: border-box;
}

/* Custom pretty select box (chevron only on .input selects) */
select.input {
  cursor: pointer;
  appearance: none;
  /* Inline SVG chevron using muted color (#667085) */
  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='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  padding-right: 38px;
}

/* Hover + focus states (consistent with form-grid) */
.input:hover {
  border-color: #c0d0f0;
}

.input:focus,
select.input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Action form layout + button spacing (replaces previous inline style) */
.action-form {
  display: flex;
  flex-direction: column;
}

.action-form .input {
  margin-bottom: 4px;
}

.action-form .btn,
.action-form button {
  margin-top: 16px;
}

.form-grid textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Education & Quiz -------------------------------------- */
.edu-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.edu-grid article {
  padding: 24px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.edu-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.edu-grid article h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--primary);
}

.edu-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.quiz {
  padding: 28px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-badge {
  background: #f97316;
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
}

.quiz h3 {
  margin: 0;
  color: #9a3412;
}

.quiz p {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 500;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-options button {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 1px solid #fed7aa;
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}

.quiz-options button:hover {
  background: #ffedd5;
  border-color: #f97316;
  transform: translateX(4px);
}

/* --- Result Alerts ----------------------------------------- */
.result {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}
.result.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.result.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.hidden { display: none !important; }

/* --- Admin Dashboard Styles --- */
.dash-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.btn-light-primary {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-light-primary:hover { background: #dbeafe; }

.btn-light-danger {
  background: #fef2f2;
  color: #dc2626;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-light-danger:hover { background: #fee2e2; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}
.metric-card strong {
  display: block;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.1;
}
.metric-card span {
  color: var(--muted);
  font-size: 14px;
}

.chart-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  background: white;
  max-width: 100%;
}

.report-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.report-item {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font: inherit;
  width: 100%;
}
.report-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}
.report-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: var(--ink);
}
.report-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.risk-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.risk-tinggi { background: #fee2e2; color: #991b1b; }
.risk-sedang { background: #fef3c7; color: #92400e; }
.risk-rendah { background: #dcfce7; color: #166534; }

/* --- Invoice & Timeline Styles --- */
.invoice-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: #ffffff;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.invoice-header {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.invoice-header h3 { margin: 0 0 8px 0; color: var(--primary); }
.invoice-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}
.invoice-details strong { display: block; color: var(--ink); }
.invoice-details span { color: var(--muted); }

.timeline-container {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 20px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 20px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--line);
  z-index: 1;
}
.timeline-item.done .timeline-marker { border-color: var(--ok); background: var(--ok); }
.timeline-item.active .timeline-marker { border-color: var(--primary); background: white; border-width: 4px; }
.timeline-content h4 { margin: 0 0 4px 0; font-size: 15px; }
.timeline-content p { margin: 0; font-size: 13px; color: var(--muted); }

/* --- Report process and contextual SDG -------------------- */
.report-process {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 680px;
}

.section-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
}

.section-intro > p:last-child {
  color: var(--muted);
  max-width: 64ch;
}

.process-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.process-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.process-list li > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-protective);
  color: var(--primary2);
  font-weight: 800;
}

.process-list strong {
  display: block;
  margin-bottom: 6px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sdg-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  padding: 40px 6vw;
}

.sdg-overline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.sdg-section h2 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}

.sdg-section > p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* --- Footer ------------------------------------------------ */
footer {
  text-align: center;
  color: var(--muted);
  padding: 34px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  background: white;
  margin-top: auto; /* Memastikan footer selalu di bawah */
}

/* --- SafeBot Chat ------------------------------------------ */
.chat-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.safebot-disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #92400e;
  font-size: 13px;
  line-height: 1.5;
}

.safebot-disclaimer strong {
  color: #78350f;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 500px;
  margin-top: 20px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  align-self: flex-start;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.chat-message p {
  margin: 0 0 10px;
}

.chat-message p:last-child {
  margin-bottom: 0;
}

.chat-message ul,
.chat-message ol {
  margin: 8px 0 10px 18px;
  padding: 0;
}

.chat-message li {
  margin: 4px 0;
}

.chat-message code {
  background: #eef2ff;
  border-radius: 5px;
  color: var(--primary2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 5px;
}

.chat-message.typing {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-style: italic;
}

.chat-message.typing span {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.35;
  animation: typingPulse 1.2s infinite ease-in-out;
}

.chat-message.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-message.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingPulse {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 0.9; }
}

.chat-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-message-actions .btn {
  padding: 6px 14px;
  font-size: 12px;
  text-decoration: none;
}

.chat-input-area {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 16px;
  background: white;
  border-top: 1px solid var(--line);
}

.chat-input-area textarea {
  flex: 1;
  width: 100%;
  min-height: 120px;
  padding: 16px;
  resize: vertical;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.chat-input-area textarea:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 33, 70, 0.14);
}

.chat-input-area textarea:disabled,
.chat-input-area textarea.is-readonly {
  cursor: not-allowed;
  opacity: 0.65;
}

.chat-input-area button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.chat-input-area button {
  height: 48px;
  padding: 0 24px;
}

.nav-link-with-badge {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--coral);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #fffdf8;
}

.demo-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 10px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #fde68a;
  z-index: 100;
}

.demo-banner-close {
  background: transparent;
  border: none;
  color: #92400e;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 700;
}

.demo-banner-close:hover {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}

.pilot-banner {
  background: var(--surface-protective);
  color: var(--primary2);
  padding: 10px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #c6d8cf;
  z-index: 100;
}

.pilot-banner.is-hidden {
  display: none;
}

.pilot-banner-close {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--primary2);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  font-weight: 700;
}

.pilot-banner-close:hover {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}

.discreet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999999;
}

.discreet-overlay.is-active {
  display: block;
}

.discreet-overlay-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.discreet-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
}

.discreet-close-btn:hover,
.discreet-close-btn:focus-visible {
  background: #f1f5f9;
  color: #0f172a;
}

.sidebar-escape-btn.is-hidden {
  display: none !important;
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--danger) !important;
}

.game-scene {
  transition: opacity 0.3s ease;
}

.game-scene.is-fading {
  opacity: 0.35;
}

.game-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.6;
}

.admin-chart-table-wrap {
  margin-top: 16px;
}

.admin-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-chart-table th,
.admin-chart-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  top: 0;
}

.form-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.form-step {
  padding: 8px 16px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}

.form-step.active {
  background: var(--primary);
  color: white;
}

.form-step.done {
  background: var(--ok);
  color: white;
}

.form-section {
  grid-column: 1 / -1;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
}

.chat-consent {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.chat-consent h3 {
  margin-top: 0;
  color: var(--primary);
}

.chat-consent ul {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.chat-consent li {
  margin-bottom: 6px;
}

/* --- Focus Visible ------------------------------------------ */
*:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.page h1[tabindex="-1"]:focus,
.page h2[tabindex="-1"]:focus,
.page h3[tabindex="-1"]:focus {
  outline: none;
}

/* --- Form Validation ---------------------------------------- */
.form-grid input:invalid,
.form-grid select:invalid,
.form-grid textarea:invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    min-height: auto;
    text-align: left;
  }
  .hero-text {
    max-width: 760px;
  }
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
  .sdg-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .card {
    margin: 28px 4vw;
    padding: 24px;
  }
  .section {
    padding: 40px 4vw;
  }
  .cta-row {
    flex-direction: column;
    width: 100%;
  }
  .cta-row .btn {
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.25;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .quiz {
    padding: 20px;
  }
  .quiz-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .quiz-options button {
    padding: 12px 14px;
    font-size: 14px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chat-container {
    height: 560px;
  }
  .chat-input-area {
    flex-direction: column;
    align-items: stretch;
  }
  .chat-input-area button {
    width: 100%;
  }
  .chat-message {
    max-width: 92%;
  }
}

.report-choice-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  margin-top: 24px;
}

.report-choice-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.report-choice-card.report-choice-primary {
  background: var(--surface-protective);
  border-color: #bfd2c8;
}

.report-choice-card:focus-within {
  border-color: var(--primary);
}

.report-choice-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.report-choice-card > p:not(.choice-label) {
  color: var(--muted);
  max-width: 58ch;
}

.report-choice-card ul {
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.report-choice-card li {
  margin-bottom: 7px;
}

.safety-check {
  text-align: left;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface-protective);
  border: 1px solid #bfd2c8;
  border-radius: var(--radius);
}

.safety-check h3 {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.3;
  margin: 0 0 12px;
}

.safety-check > p:not(.safety-kicker) {
  color: var(--muted);
  max-width: 62ch;
}

.safety-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 0;
}

.emergency-section {
  max-width: 920px;
  margin: 0 auto;
}

.emergency-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.emergency-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  min-height: 88px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
}

.emergency-contact:hover,
.emergency-contact:focus-visible {
  border-color: var(--primary);
  background: var(--soft);
}

.emergency-contact-urgent {
  border-color: #d9a49f;
}

.emergency-contact strong,
.emergency-contact > span:not(.contact-action) {
  grid-column: 1;
}

.emergency-contact > span:not(.contact-action) {
  color: var(--muted);
  font-size: 14px;
}

.contact-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--primary2);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.emergency-contact-urgent .contact-action {
  color: var(--emergency);
}

.campus-contact-note {
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid var(--warn);
  background: #fffaf0;
}

.campus-contact-note h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.campus-contact-note p {
  margin: 0;
  color: var(--muted);
}

.a11y-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
}

.a11y-menu {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.a11y-menu h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

.a11y-menu p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.a11y-menu .a11y-toggle {
  justify-content: flex-start;
  font-size: 13px;
}

.a11y-menu-toggle {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
  cursor: pointer;
}

@media (max-width: 768px) {
  .report-choice-grid,
  .safety-options,
  .process-list {
    grid-template-columns: 1fr;
  }

  .report-choice-card,
  .safety-check {
    padding: 22px;
  }

  .hero {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.25;
  }

  .hero .hero-lead {
    font-size: 17px;
  }

  .trust-panel {
    padding: 22px;
  }

  .emergency-contact {
    grid-template-columns: 1fr;
  }

  .emergency-contact strong,
  .emergency-contact > span:not(.contact-action),
  .contact-action {
    grid-column: 1;
    grid-row: auto;
  }

  .a11y-widget {
    position: static;
    display: flex;
    justify-content: flex-end;
    margin: 24px 16px;
  }

  .a11y-menu {
    right: 0;
    bottom: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   FITUR 4: KELAS AKSESIBILITAS (ACCESSIBILITY OVERRIDES)
   ============================================================ */

/* Utility untuk memunculkan menu widget */
#a11yMenu.show {
  display: flex !important;
  animation: fadeInModal 0.2s ease-out forwards;
}

/* 1. Mode Kontras Tinggi (High Contrast untuk Low Vision) */
body.a11y-high-contrast {
  --bg: #000000 !important;
  --ink: #ffff00 !important;
  --card: #111111 !important;
  --primary: #ffff00 !important;
  --primary2: #ffcc00 !important;
  --muted: #dddddd !important;
  --line: #777777 !important;
  --soft: #222222 !important;
  --surface-protective: #111111 !important;
  --emergency: #ffb3ad !important;
  --danger: #ffb3ad !important;
  --focus-ring: #00ffff !important;
  background-color: var(--bg);
}
body.a11y-high-contrast .topbar {
  background: rgba(0, 0, 0, 0.95) !important;
  border-bottom-color: #777 !important;
  box-shadow: none !important;
}
body.a11y-high-contrast .brand-mark,
body.a11y-high-contrast .sidebar-brand .brand-mark {
  background: #000 !important;
  box-shadow: inset 0 0 0 1px #ffff00 !important;
}
body.a11y-high-contrast .topbar-nav {
  background: #111 !important;
  border-color: #777 !important;
}
body.a11y-high-contrast .topbar-link.active {
  background: #222 !important;
  box-shadow: none !important;
}
body.a11y-high-contrast .topbar-escape {
  background: #ffff00 !important;
  color: #000 !important;
}
body.a11y-high-contrast .topbar-escape span[aria-hidden="true"] {
  color: #000 !important;
}
body.a11y-high-contrast .topbar-btn-primary {
  background: #ffff00 !important;
  color: #000 !important;
  border-color: #ffff00 !important;
}
body.a11y-high-contrast .btn.primary {
  background: #ffff00 !important;
  color: #000000 !important;
}
body.a11y-high-contrast .btn.outline {
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}
body.a11y-high-contrast .btn.danger,
body.a11y-high-contrast .btn.emergency-link {
  background: #000000 !important;
  color: #ffb3ad !important;
  border-color: #ffb3ad !important;
}
body.a11y-high-contrast .emergency-contact,
body.a11y-high-contrast .campus-contact-note,
body.a11y-high-contrast .a11y-menu {
  background: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}
body.a11y-high-contrast svg { fill: currentColor; }

/* 2. Mode Perbesar Teks (Visual Impairment) */
body.a11y-large-text {
  font-size: 18px !important;
}
body.a11y-large-text h1 { font-size: clamp(32px, 5vw, 44px) !important; }
body.a11y-large-text h2 { font-size: 26px !important; }
body.a11y-large-text .btn { font-size: 16px !important; padding: 14px 24px; }
body.a11y-large-text input, body.a11y-large-text select { font-size: 18px !important; }

/* 3. Mode Ramah Disleksia (Dyslexia Friendly) */
body.a11y-dyslexia {
  /* Menggunakan Comic Sans karena terbukti memiliki asimetri huruf yang membantu penderita disleksia membedakan p/q/b/d jika font OpenDyslexic tidak tersedia */
  font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif !important;
  line-height: 1.8 !important;
  letter-spacing: 0.5px !important;
  word-spacing: 2px !important;
}

/* ============================================================
   File Upload Components
   ============================================================ */

#fileDropZone {
  transition: all 0.2s ease;
}

#fileDropZone:hover,
#fileDropZone.drag-over {
  border-color: var(--primary);
  background: #f0f5ff;
  transform: scale(1.01);
}

#fileDropZone.drag-over {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.file-item:hover {
  background: #f0f5ff;
  border-color: #bfdbfe;
}

.file-item .file-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.file-item .file-info {
  flex: 1;
  min-width: 0;
}

.file-item .file-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.file-item .file-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.file-item .file-status {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.file-item .file-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.file-item .file-status.clean {
  background: #d1fae5;
  color: #065f46;
}

.file-item .file-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.file-item .file-status.uploading {
  background: #dbeafe;
  color: #1e40af;
}

.file-item .file-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 18px;
  border-radius: 4px;
  transition: background 0.2s;
}

.file-item .file-remove:hover {
  background: #fee2e2;
}

.file-item .file-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.file-progress {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.file-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.file-item .file-size {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .file-item {
    flex-wrap: wrap;
  }
  
  .file-item .file-info {
    width: 100%;
  }
  
  .file-item .file-remove {
    margin-left: auto;
  }
}

/* Upload button states */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* File upload animation */
@keyframes uploadPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.file-status.uploading {
  animation: uploadPulse 1.5s ease-in-out infinite;
}

/* Success feedback */
.upload-success {
  background: #d1fae5 !important;
  border-color: #34d399 !important;
}

.upload-error {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
}
/* ============================================================
   RESPONSIVE NAVIGATION — Desktop Horizontal Nav
   ============================================================ */

/* --- Topbar Navigation (Desktop horizontal) --- */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: clamp(8px, 2vw, 28px);
  padding: 4px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(59, 33, 70, 0.08);
  border-radius: 999px;
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  color: #514657;
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  white-space: nowrap;
}

.topbar-link:hover {
  color: var(--primary);
  background: var(--soft);
}

.topbar-link.active {
  color: var(--primary);
  background: #fffdf8;
  box-shadow: 0 1px 0 rgba(59, 33, 70, 0.06), 0 6px 16px rgba(59, 33, 70, 0.08);
}

.topbar-link.active::after {
  display: none;
}

.topbar-link-emergency {
  color: var(--coral-text);
}

.topbar-link-emergency:hover,
.topbar-link-emergency.active {
  color: var(--emergency);
  background: #fff1ed;
}

.topbar-icon {
  display: none;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.topbar-link:hover .topbar-icon,
.topbar-link.active .topbar-icon {
  opacity: 1;
}

.topbar-escape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 14px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font: 750 12px/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.topbar-escape:hover {
  background: var(--primary2);
  box-shadow: 0 8px 18px rgba(59, 33, 70, 0.18);
}

.topbar-escape:active {
  transform: scale(0.97);
}

.topbar-escape span[aria-hidden="true"] {
  color: var(--sun);
  font-size: 14px;
}

/* --- Auth Section (Desktop) --- */
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-auth-guest {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-auth-user,
.topbar-auth-admin {
  position: relative;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.topbar-btn-outline {
  border: 1px solid rgba(59, 33, 70, 0.28);
  color: var(--primary);
  background: transparent;
}

.topbar-btn-outline:hover {
  background: var(--soft);
  border-color: var(--primary);
}

.topbar-btn-primary {
  background: var(--coral);
  color: #fff;
  border: 1px solid var(--coral);
}

.topbar-btn-primary:hover {
  background: #d85a44;
  border-color: #d85a44;
}

/* --- User/Admin Dropdown Trigger (Desktop) --- */
.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 12px 5px 6px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.topbar-user-btn:hover {
  background: var(--soft);
  border-color: var(--primary);
}

.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.topbar-avatar-admin {
  background: var(--danger);
}

.topbar-user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Dropdown Menu --- */
.topbar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.topbar-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.topbar-dropdown-item:first-child {
  border-radius: 0;
}

.topbar-dropdown-item:last-child {
  border-radius: 0;
}

.topbar-dropdown-item:hover {
  background: var(--soft);
  color: var(--primary);
}

.topbar-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.topbar-dropdown-item:hover svg {
  opacity: 1;
}

/* --- Responsive: Desktop (>950px) — hide mobile-only elements --- */
@media (min-width: 951px) {
  .hamburger {
    display: none !important;
  }

  .sidebar {
    display: none !important;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* --- Responsive: tablet/laptop mid range --- */
@media (max-width: 1180px) and (min-width: 951px) {
  .topbar-nav {
    gap: 0;
  }

  .topbar-link {
    padding: 8px 10px;
    font-size: 12px;
  }

  .brand-sub {
    display: none;
  }

  .topbar-escape-label {
    display: none;
  }

  .topbar-escape {
    min-width: 42px;
    padding: 0 12px;
  }

  .topbar-btn-outline {
    display: none;
  }
}

/* --- Responsive: Mobile (≤950px) — hide desktop nav --- */
@media (max-width: 950px) {
  .topbar-nav {
    display: none !important;
  }

  .topbar-auth {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .topbar-inner {
    padding: 0 12px;
    min-height: 64px;
  }

  .topbar-left {
    gap: 10px;
    min-width: 0;
    flex: 1;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    padding: 5px 7px;
  }

  .brand-logo {
    height: 20px;
    max-width: 96px;
  }

  .brand-text {
    font-size: 17px;
  }

  .brand-sub {
    display: none;
  }

  .topbar-escape {
    min-height: 40px;
    padding: 8px 12px;
  }

  .topbar-escape-label {
    display: none;
  }

  .topbar-escape {
    min-width: 40px;
    border-radius: 999px;
  }
}

/* ============================================================
   EDUKASI: Scenario Cards, Progress Bar, Achievements
   ============================================================ */

/* --- Progress Bar Container --- */
.edu-progress-container {
  background: linear-gradient(135deg, #fff8ef 0%, #f3e9f5 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 28px;
}

.edu-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.edu-progress-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.edu-progress-count {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}

.edu-progress-bar-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.edu-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--coral) 100%);
  border-radius: 6px;
  transition: width 0.6s ease;
}

/* --- Champion Badge --- */
.edu-champion-badge {
  margin-top: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 15px;
  color: #92400e;
  animation: championPulse 2s ease-in-out infinite;
}

.edu-champion-badge strong {
  color: #78350f;
}

@keyframes championPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

/* --- Scenario List Grid --- */
.scenario-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.scenario-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.scenario-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.scenario-card.completed {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.scenario-card.completed:hover {
  border-color: #16a34a;
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.12);
}

.scenario-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.scenario-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.scenario-card.completed .scenario-number {
  background: #dcfce7;
  color: #16a34a;
}

.scenario-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-new {
  background: #dbeafe;
  color: #2563eb;
}

.status-done {
  background: #dcfce7;
  color: #16a34a;
}

.scenario-card-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.scenario-card-desc {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.scenario-badge-earned {
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border: 1px solid #fde68a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  text-align: center;
}

/* --- Scenario Detail --- */
.scenario-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.scenario-detail-badge {
  background: #f97316;
  color: white;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.scenario-detail-title {
  margin: 0 0 20px 0;
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* --- Quiz Option Variants --- */
.quiz-option-success {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 2px solid #bbf7d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #166534;
  transition: all 0.2s;
}

.quiz-option-success:hover {
  background: #dcfce7;
  border-color: #16a34a;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.quiz-option-restart {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}

.quiz-option-restart:hover {
  background: var(--soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Responsive: Mobile (≤768px) --- */
@media (max-width: 768px) {
  .scenario-list {
    grid-template-columns: 1fr;
  }
  
  .edu-progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .scenario-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .scenario-detail-title {
    font-size: 18px;
  }
}

/* ============================================================
   PROTECTIVE EMBRACE — page compositions & surface language
   (Tokens + topbar live in the base layer above.)
   ============================================================ */

.footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
}

.page {
  overflow: clip;
}

.pilot-banner {
  min-height: 38px;
  padding: 8px 52px 8px 24px;
  background: var(--sun);
  color: var(--primary2);
  border: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.pilot-banner-close {
  color: var(--primary2);
}

.sidebar {
  background: var(--bg);
  border-right: 0;
}

.sidebar-header,
.sidebar-footer {
  border-color: rgba(59, 33, 70, .16);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--surface-protective);
  color: var(--primary);
}

.sidebar-escape-btn {
  background: var(--primary);
  border-radius: 999px;
}

.sidebar-btn {
  border-radius: 999px;
}

.sidebar-btn-primary {
  background: var(--coral);
  border-color: var(--coral);
}

/* Homepage: editorial protection, not a SaaS landing page */
.hero.section {
  position: relative;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  max-width: 1600px;
  min-height: calc(100vh - 114px);
  padding: clamp(54px, 8vw, 120px) clamp(24px, 7vw, 112px);
  gap: clamp(42px, 7vw, 112px);
  background: var(--bg);
}

.hero.section::before {
  content: "SAFE / SEEN / SUPPORTED";
  position: absolute;
  left: 20px;
  top: 50%;
  color: rgba(59, 33, 70, .36);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow,
.section-overline,
.trust-kicker,
.safety-kicker,
.choice-label,
.page-kicker,
.sdg-overline {
  color: var(--coral-text);
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-eyebrow span {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 9px;
  background: var(--primary);
  color: white;
}

.hero h1 {
  max-width: 34ch;
  margin: 20px 0 22px;
  color: var(--primary2);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero .hero-lead {
  max-width: 60ch;
  color: #514957;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
}

.cta-row {
  gap: 10px;
  margin-top: 34px;
}

.btn {
  min-height: 48px;
  border-radius: 5px;
  font-weight: 750;
}

.hero .btn {
  min-height: 58px;
  padding: 15px 22px;
  font-size: 15px;
}

.btn.primary {
  background: var(--primary);
}

.btn.primary:hover {
  background: var(--coral);
}

.btn.emergency-link {
  border: 0;
  border-bottom: 2px solid var(--emergency);
  border-radius: 0;
  color: var(--emergency);
}

.btn.emergency-link:hover {
  background: #f4ddd8;
}

.hero-privacy-note {
  max-width: 60ch;
  margin-top: 22px;
  padding-left: 17px;
  border-left: 3px solid var(--sage);
  color: #625965;
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.hero-visual > img {
  width: min(100%, 640px);
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(59, 33, 70, .16));
}

.trust-panel {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: min(380px, 70%);
  padding: 26px 30px;
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 44px 4px 4px 4px;
  box-shadow: var(--shadow);
}

.trust-panel .trust-kicker {
  color: var(--sun);
}

.trust-panel h2 {
  color: white;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.trust-list {
  margin-top: 20px;
  gap: 13px;
}

.trust-list li {
  padding-left: 22px;
}

.trust-list li::before {
  content: "•";
  color: var(--sun);
}

.trust-list span {
  color: #e7dce9;
}

.support-pathways {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 130px);
  padding: clamp(80px, 10vw, 150px) clamp(24px, 8vw, 130px);
  background: var(--primary);
  color: white;
}

.support-pathways .section-overline {
  color: var(--sun);
}

.pathway-heading {
  align-self: start;
  position: sticky;
  top: 120px;
}

.pathway-heading h2 {
  max-width: 20ch;
  margin: 16px 0 18px;
  color: white;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.pathway-heading p:last-child {
  max-width: 43ch;
  color: #d9ccdc;
  line-height: 1.7;
}

.pathway-list {
  border-top: 1px solid rgba(255,255,255,.28);
}

.pathway-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 124px;
  padding: 22px 8px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.28);
  transition: padding .2s ease, background .2s ease;
}

.pathway-list a:hover,
.pathway-list a:focus-visible {
  padding-left: 20px;
  padding-right: 20px;
  background: rgba(255,255,255,.08);
}

.pathway-number {
  color: var(--sun);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

.pathway-list strong,
.pathway-list small {
  display: block;
}

.pathway-list strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pathway-list small {
  margin-top: 7px;
  color: #d9ccdc;
  font-size: 14px;
}

.pathway-list b {
  color: var(--sun);
  font-size: 28px;
}

.pathway-list .pathway-emergency {
  color: #ffcdc4;
}

.report-process {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 140px);
  max-width: none;
  padding: clamp(88px, 10vw, 150px) clamp(24px, 8vw, 130px);
  background: #fffaf4;
}

.section-intro h2 {
  max-width: 24ch;
  margin: 14px 0 18px;
  color: var(--primary);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-intro > p:last-child {
  max-width: 45ch;
  color: var(--muted);
}

.process-list {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--primary);
}

.process-list li {
  min-height: 230px;
  padding: 30px 26px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.process-list li:nth-child(even) {
  border-right: 0;
}

.process-list li > span {
  color: var(--coral-text);
  font-size: 12px;
  font-weight: 850;
}

.process-list strong {
  display: block;
  margin-top: 48px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.15;
}

.process-list p {
  color: var(--muted);
}

.home-manifesto {
  position: relative;
  padding: clamp(90px, 12vw, 180px) clamp(24px, 12vw, 190px);
  background: var(--coral);
  color: var(--primary2);
  overflow: hidden;
}

.home-manifesto::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 80px solid var(--sun);
  border-radius: 50% 50% 0 0;
  opacity: .75;
}

.home-manifesto p {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-manifesto h2 {
  position: relative;
  z-index: 1;
  max-width: 26ch;
  margin: 18px 0 28px;
  color: var(--primary2);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.home-manifesto a {
  position: relative;
  z-index: 1;
  color: var(--primary2);
  font-weight: 850;
  text-underline-offset: 7px;
}

.sdg-section {
  margin: 0;
  padding: 70px clamp(24px, 8vw, 130px);
  background: var(--sun);
  border: 0;
}

.sdg-section h2 {
  color: var(--primary2);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sdg-section > p {
  color: #4d344e;
}

/* Product pages */
#page-lapor,
#page-login,
#page-register,
#page-dashboard {
  background-color: #f5ede4;
  background-image: linear-gradient(90deg, rgba(59,33,70,.06) 1px, transparent 1px);
  background-size: 72px 100%;
}

.card {
  max-width: 1220px;
  margin: clamp(28px, 5vw, 72px) auto;
  padding: clamp(26px, 5vw, 68px);
  background: var(--card);
  border: 0;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.card-header {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--primary);
}

.card-header h2 {
  max-width: 30ch;
  color: var(--primary);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.report-entry-shell {
  position: relative;
  padding-top: clamp(54px, 8vw, 92px);
}

.report-entry-shell::before,
.report-form-shell::before {
  content: "";
  position: absolute;
  top: -26px;
  right: clamp(24px, 7vw, 90px);
  width: 138px;
  height: 76px;
  background: var(--sun);
  border-radius: 80px 80px 0 0;
}

.report-choice-grid {
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  border: 1px solid var(--primary);
}

.report-choice-card {
  min-height: 420px;
  padding: clamp(28px, 4vw, 52px);
  border: 0;
  border-radius: 0;
  background: #fffaf4;
}

.report-choice-card + .report-choice-card {
  border-left: 1px solid var(--primary);
}

.report-choice-card.report-choice-primary {
  background: var(--primary);
  color: white;
}

.report-choice-card.report-choice-primary h3,
.report-choice-card.report-choice-primary p,
.report-choice-card.report-choice-primary li {
  color: white;
}

.report-choice-card.report-choice-primary .choice-label {
  color: var(--sun);
}

.report-choice-card h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.report-choice-card .btn {
  margin-top: auto;
}

.safety-check {
  position: relative;
  max-width: 900px;
  padding: clamp(34px, 6vw, 72px);
  background: var(--surface-protective);
  border: 0;
  border-radius: 80px 5px 5px 5px;
}

.safety-check h3 {
  max-width: 26ch;
  color: var(--primary);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.safety-options {
  margin-top: 34px;
}

.form-steps {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

.form-step {
  border-radius: 0;
  border-bottom: 3px solid transparent;
}

.form-step.active {
  background: transparent;
  color: var(--primary);
  border-bottom-color: var(--coral);
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.input {
  min-height: 52px;
  background: #fffdf8;
  border: 1px solid #b9aaa0;
  border-radius: 3px;
}

.form-grid textarea {
  min-height: 190px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(231,104,80,.18);
}

/* Education has energy, without gamification clutter */
#page-edukasi {
  background: var(--sun);
}

.education-shell {
  max-width: none;
  margin: 0;
  padding: clamp(60px, 9vw, 130px) clamp(24px, 8vw, 130px);
  background: var(--sun);
  box-shadow: none;
}

.education-header {
  max-width: 1000px;
  border-bottom-color: var(--primary);
}

.education-header h2 {
  max-width: 28ch;
  color: var(--primary2);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.education-header .muted {
  max-width: 62ch;
  color: #503b4f;
  font-size: 16px;
  line-height: 1.65;
}

.edu-grid {
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 0;
  margin: 60px 0;
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.edu-grid article {
  min-height: 280px;
  padding: 34px 28px;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(59,33,70,.45);
  border-radius: 0;
  box-shadow: none;
}

.edu-grid article:last-child {
  border-right: 0;
}

.edu-grid article:hover {
  transform: none;
  background: rgba(255,255,255,.18);
}

.edu-grid article h3 {
  color: var(--primary);
  font-size: 19px;
  line-height: 1.35;
}

.edu-grid article p {
  color: #503b4f;
}

.edu-progress-container,
.scenario-list,
.scenario-detail {
  background: #fffaf4;
  border: 0;
  border-radius: 4px;
  box-shadow: 10px 10px 0 var(--primary);
}

.scenario-card {
  border-radius: 3px;
  border-color: #b9aaa0;
}

/* Emergency page */
#page-kontak {
  background: var(--coral);
}

.emergency-shell {
  max-width: 1180px;
  background: #fff7ef;
}

.emergency-shell .card-header h2 {
  max-width: 17ch;
  color: var(--emergency);
}

.emergency-contact-list {
  gap: 0;
  border-top: 2px solid var(--emergency);
}

.emergency-contact {
  min-height: 118px;
  padding: 24px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d3bcb5;
  border-radius: 0;
}

.emergency-contact strong {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
}

.emergency-contact:hover,
.emergency-contact:focus-visible {
  padding-left: 18px;
  padding-right: 18px;
  background: #f4ded6;
}

.campus-contact-note {
  padding: 28px;
  border-left: 8px solid var(--sun);
  background: var(--primary);
  color: white;
}

.campus-contact-note h3,
.campus-contact-note p {
  color: white;
}

/* AI support: calm conversation space, not a chatbot demo */
#page-chat {
  padding: clamp(30px, 5vw, 80px) 0;
  background: var(--surface-protective);
}

.support-chat-shell {
  max-width: 1120px;
  background: #fffaf4;
  border-radius: 70px 5px 5px 5px;
}

.safebot-disclaimer,
.chat-consent {
  border-radius: 3px;
}

.chat-consent {
  padding: clamp(24px, 4vw, 40px);
  background: var(--primary);
  color: white;
}

.chat-consent h3,
.chat-consent p,
.chat-consent li {
  color: white;
}

.chat-consent .btn {
  background: var(--sun);
  color: var(--primary2);
}

.chat-container {
  border: 1px solid #b9aaa0;
  border-radius: 3px;
  box-shadow: none;
}

.chat-message {
  border-radius: 3px 18px 18px 18px;
}

.chat-message.user {
  border-radius: 18px 3px 18px 18px;
  background: var(--primary);
}

/* Auth and personal dashboard */
.auth-shell {
  position: relative;
  padding-left: clamp(28px, 13vw, 230px);
  overflow: hidden;
}

.auth-shell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(90px, 18vw, 180px);
  background: var(--primary);
  border-radius: 0 120px 120px 0;
}

.auth-shell::after {
  content: "KAMU TETAP MEMEGANG KENDALI";
  position: absolute;
  left: 34px;
  bottom: 42px;
  width: 90px;
  color: var(--sun);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.login-shell {
  text-align: left !important;
}

.user-dashboard-shell {
  border-top: 10px solid var(--sun);
}

/* Footer becomes a final safety landmark */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  padding: 58px clamp(24px, 7vw, 110px);
  background: var(--primary2);
  color: white;
  text-align: left;
}

.footer-mark {
  grid-row: 1 / span 2;
  color: var(--sun);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

footer p,
footer small {
  margin: 0;
  color: #dfd3e2;
}

footer a {
  color: var(--sun);
  font-weight: 750;
}

footer small {
  grid-column: 2;
}

.a11y-menu-toggle {
  background: var(--primary);
  border: 3px solid var(--sun);
  box-shadow: 0 7px 20px rgba(43,23,52,.24);
}

/* Responsive composition */
@media (max-width: 1180px) {
  .hero.section {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero h1 {
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.25;
  }

  .hero-visual {
    min-height: 570px;
  }
}

@media (max-width: 950px) {
  .hero.section {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero.section::before {
    display: none;
  }

  .hero-visual {
    min-height: 650px;
    max-width: 680px;
    margin: 0 auto;
  }

  .support-pathways,
  .report-process {
    grid-template-columns: 1fr;
  }

  .pathway-heading {
    position: static;
  }

  .pathway-heading h2,
  .section-intro h2 {
    max-width: 15ch;
  }

  .auth-shell {
    padding-left: clamp(120px, 18vw, 180px);
  }
}

@media (max-width: 700px) {
  .pilot-banner {
    padding-left: 16px;
    font-size: 12px;
  }

  .topbar {
    min-height: 64px;
  }

  .topbar-inner {
    min-height: 64px;
    padding: 0 12px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero.section {
    gap: 28px;
    padding: 52px 20px 76px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.25;
  }

  .hero .hero-lead {
    font-size: 17px;
  }

  .hero-visual {
    min-height: 510px;
    width: 100%;
  }

  .hero-visual > img {
    width: 100%;
  }

  .trust-panel {
    right: 0;
    bottom: -12px;
    width: 88%;
    padding: 22px;
    border-radius: 34px 4px 4px 4px;
  }

  .trust-panel h2 {
    font-size: 20px;
    line-height: 1.35;
  }

  .trust-list li:nth-child(4) {
    display: none;
  }

  .support-pathways,
  .report-process,
  .education-shell {
    padding: 72px 20px;
  }

  .pathway-heading h2,
  .section-intro h2,
  .education-header h2 {
    font-size: 24px;
    line-height: 1.3;
    max-width: 28ch;
  }

  .pathway-list a {
    grid-template-columns: 38px 1fr auto;
    min-height: 110px;
    gap: 12px;
  }

  .pathway-list strong {
    font-size: 18px;
    line-height: 1.35;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .process-list li:nth-child(even) {
    min-height: 190px;
    border-right: 0;
  }

  .process-list strong {
    margin-top: 32px;
  }

  .home-manifesto {
    padding: 86px 20px 110px;
  }

  .home-manifesto h2 {
    font-size: 26px;
    line-height: 1.25;
  }

  .sdg-section {
    padding: 54px 20px;
  }

  .card {
    margin: 24px 14px;
    padding: 30px 20px;
  }

  .card-header h2 {
    font-size: 24px;
    line-height: 1.3;
  }

  .report-entry-shell::before,
  .report-form-shell::before {
    width: 90px;
    height: 46px;
    top: -14px;
  }

  .report-choice-grid {
    grid-template-columns: 1fr;
  }

  .report-choice-card {
    min-height: 360px;
    padding: 30px 22px;
  }

  .report-choice-card + .report-choice-card {
    border-left: 0;
    border-top: 1px solid var(--primary);
  }

  .safety-check {
    padding: 38px 22px;
    border-radius: 48px 4px 4px 4px;
  }

  .safety-check h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(59,33,70,.45);
  }

  .auth-shell {
    padding: 118px 20px 30px;
  }

  .auth-shell::before {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 82px;
    border-radius: 0 0 60px 0;
  }

  .auth-shell::after {
    left: 22px;
    top: 30px;
    bottom: auto;
    width: auto;
    writing-mode: initial;
    transform: none;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 52px 22px 88px;
  }

  .footer-mark,
  footer small {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pathway-list a,
  .emergency-contact,
  .hero-visual > img {
    transition: none;
  }
}

body.a11y-high-contrast .btn.danger,
body.a11y-high-contrast #safetyDanger {
  background: #000 !important;
  color: #ffb3ad !important;
  border-color: #ffb3ad !important;
}

/* Report composition and evidence handling */
.form-section {
  padding-top: 18px;
}

.form-section-intro {
  grid-column: 1 / -1;
  max-width: 760px;
  margin-bottom: 18px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.form-section-intro > span {
  color: var(--coral-text);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.form-section-intro h3 {
  max-width: 28ch;
  margin: 10px 0 12px;
  color: var(--primary);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.form-section-intro p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted);
}

.safety-signal {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 13px 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.safety-signal-track {
  flex: 1;
  height: 6px;
  overflow: hidden;
  background: #e6ddd4;
}

.safety-signal-bar {
  width: 0;
  height: 100%;
  background: var(--ok);
  transition: width .4s ease, background-color .4s ease;
}

#sentimentText {
  min-width: 190px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.evidence-field > label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.evidence-field > label span {
  color: var(--muted);
  font-weight: 500;
}

.evidence-dropzone {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 22px;
  min-height: 180px;
  padding: 28px;
  background: var(--surface-protective);
  border: 2px dashed var(--primary);
  border-radius: 3px 48px 3px 3px;
  cursor: pointer;
}

.evidence-dropzone:hover,
.evidence-dropzone:focus-within {
  background: #e1d1e5;
  border-color: var(--coral);
}

.evidence-dropzone-mark {
  position: relative;
  width: 82px;
  height: 82px;
  background: var(--primary);
  border-radius: 50% 50% 4px 4px;
}

.evidence-dropzone-mark::before,
.evidence-dropzone-mark::after,
.evidence-dropzone-mark span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--sun);
  transform: translate(-50%, -50%);
}

.evidence-dropzone-mark::before {
  width: 34px;
  height: 4px;
}

.evidence-dropzone-mark::after {
  width: 4px;
  height: 34px;
}

.evidence-dropzone p {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

.evidence-dropzone small {
  color: var(--muted);
}

.evidence-warning {
  display: none;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  margin-top: 10px;
  padding: 18px;
  background: #fff2d5;
  border-left: 5px solid var(--sun);
  color: #654b20;
  font-size: 13px;
}

.evidence-warning strong,
.evidence-warning span {
  display: block;
}

.anonymous-confirmation {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--primary);
  color: white !important;
  border-radius: 3px;
  cursor: pointer;
}

.anonymous-confirmation input {
  width: 24px !important;
  min-height: 24px !important;
  height: 24px;
  margin: 0 !important;
  accent-color: var(--sun);
}

.anonymous-confirmation span,
.anonymous-confirmation strong,
.anonymous-confirmation small {
  display: block;
  color: white;
}

.anonymous-confirmation small {
  margin-top: 3px;
  color: #dfd3e2;
  font-weight: 500;
}

.review-summary {
  margin-bottom: 22px;
  padding: clamp(22px, 4vw, 38px);
  background: #f4ece4;
  border-left: 7px solid var(--sun);
}

@media (max-width: 700px) {
  .form-section-intro h3 {
    font-size: 22px;
  }

  .safety-signal {
    align-items: flex-start;
    flex-direction: column;
  }

  #sentimentText {
    min-width: 0;
    text-align: left;
  }

  .safety-signal-track {
    flex: none;
    width: 100%;
  }

  .evidence-dropzone {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .evidence-dropzone-mark {
    width: 62px;
    height: 62px;
  }

  .evidence-warning {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* --- Satgas PPKPT: mandat, kontak resmi, halaman Tentang ------ */

.mandate-section {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.mandate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mandate-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-left: 3px solid var(--uni-maroon);
  background: var(--soft);
  border-radius: var(--radius-sm);
}

.mandate-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mandate-item strong {
  font-size: 16px;
  line-height: 1.4;
}

.mandate-note {
  font-size: 13px;
  color: var(--muted);
}

.mandate-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  color: var(--primary);
}

/* Kontak resmi Satgas pada halaman Kontak */
.campus-contact-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.campus-contact-block h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.campus-contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.campus-contact {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--uni-maroon);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

a.campus-contact:hover,
a.campus-contact:focus-visible {
  border-color: var(--primary);
  border-left-color: var(--uni-maroon);
  background: var(--soft);
}

.campus-contact > span:not(.contact-action) {
  font-size: 14px;
  color: var(--muted);
}

.campus-contact .contact-action {
  margin-top: 4px;
  font-weight: 600;
  color: var(--primary);
}

.campus-contact-caution {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--warn);
  background: #fffaf0;
  font-size: 14px;
  color: var(--muted);
}

/* Halaman Tentang Satgas */
.about-sk-card {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.about-sk-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 28px;
  margin: 0;
}

.about-sk-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-sk-list dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-sk-list dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}

.about-block {
  margin-top: 36px;
}

.about-block > h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
}

.about-scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.about-scope-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.about-scope-list span {
  font-size: 14px;
  color: var(--muted);
}

.about-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.about-team-group {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.about-team-group-wide {
  grid-column: 1 / -1;
}

.about-team-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uni-maroon);
}

.about-team-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.about-team-group-wide ul {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 6px 20px;
}

.about-team-group li {
  font-size: 15px;
  line-height: 1.45;
}

.about-legal {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.about-legal summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
}

.about-legal[open] summary {
  border-bottom: 1px solid var(--line);
}

.about-legal-list {
  margin: 0;
  padding: 18px 20px 20px 42px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-mandate {
  max-width: 620px;
  margin: 10px auto 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 720px) {
  .mandate-section {
    padding: 22px 18px;
  }
}
