/* Dasar: reset, tipografi, fokus. Tidak ada warna mentah di sini — semua
   lewat token semantik. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--t);
  line-height: 1.5;
  color: var(--teks);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--aksen); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.angka { font-variant-numeric: tabular-nums; }

/* Fokus selalu terlihat untuk papan ketik, tidak mengganggu klik tetikus. */
:focus { outline: none; }
:focus-visible { box-shadow: var(--cincin-fokus); border-radius: var(--r-sm); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* Cetak: hanya isi halaman — tanpa sidebar, bilah atas, dan navigasi. */
@media print {
  .sisi, .atas, .bawah, .lapis, .toast-wadah, .no-cetak { display: none !important; }
  .app { display: block; }
  .isi { padding: 0; max-width: none; }
  .kartu { box-shadow: none; break-inside: avoid; }
  body { background: #fff; color: #000; }
}
