/* Dasar: font lokal, token warna (terang/gelap), reset, tipografi, cetak. */
@font-face { font-family: 'Domine'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/domine-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Domine'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/domine-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/nunito-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/nunito-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #13233A;
  --emas: #E0A43A;
  --latar: #F7F5EF;
  --kartu: #FFFFFF;
  --kartu-2: #FBFAF6;
  --tinta: #13233A;
  --redup: #4A5A70;
  --garis: #DDD8CB;
  --aksen: #1F8A70;          /* warna merek: hiasan dan elemen besar */
  --aksen-kuat: #176B56;     /* untuk teks dan tombol (lulus AA) */
  --aksen-lembut: #E4F1ED;
  --teks-tombol: #FFFFFF;
  --emas-lembut: #FBF0D8;
  --emas-teks: #7A5200;
  --bahaya: #B3261E;
  --bahaya-lembut: #FBE5E3;
  --sukses: #166B3E;
  --sukses-lembut: #DFF1E6;
  --peringatan: #8A5A00;
  --peringatan-lembut: #FBF0D8;
  --bayangan: 0 1px 2px rgba(19, 35, 58, .06), 0 6px 18px rgba(19, 35, 58, .06);
  --skala: 1;
  --font-judul: 'Domine', Georgia, 'Times New Roman', serif;
  --font-teks: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  color-scheme: light;
}
:root[data-tema='gelap'] {
  --latar: #0E1A2B;
  --kartu: #16273D;
  --kartu-2: #1B2F48;
  --tinta: #EEF1F5;
  --redup: #AEB9C8;
  --garis: #2C405C;
  --aksen-lembut: #1A3A3A;
  --emas-lembut: #3A3020;
  --emas-teks: #F0C36B;
  --bahaya: #FF8A80;
  --bahaya-lembut: #3E2227;
  --sukses: #7FD6A0;
  --sukses-lembut: #17342A;
  --peringatan: #F0C36B;
  --peringatan-lembut: #3A3020;
  --bayangan: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(16px * var(--skala)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--latar); color: var(--tinta);
  font-family: var(--font-teks); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-judul); font-weight: 700; line-height: 1.25; margin: 0 0 .5rem; color: var(--tinta); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
a { color: var(--aksen-kuat); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code { background: var(--aksen-lembut); padding: .05em .4em; border-radius: 6px; font-size: .92em; }
small { font-size: .85em; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--emas); outline-offset: 2px; border-radius: 6px; }
.redup { color: var(--redup); }
.angka-besar { font-family: var(--font-judul); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.sr-saja { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ikon { flex: none; vertical-align: middle; }

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

/* ---------- cetak (transkrip, surat) ---------- */
.cetak-saja { display: none; }
@media print {
  @page { size: A4; margin: 16mm; }
  html { font-size: 12pt; }
  body { background: #fff !important; color: #000 !important; }
  .strip-demo, .bilah-atas, .navigasi, .tirai-menu, .tidak-dicetak, #area-toast, .tombol { display: none !important; }
  .cetak-saja { display: block; }
  .badan, .lajur { display: block !important; padding: 0 !important; margin: 0 !important; }
  .isi { padding: 0 !important; max-width: none !important; }
  .kartu { box-shadow: none !important; border: 0 !important; background: #fff !important; padding: 0 !important; }
  .kaki { margin-top: 16pt; color: #000 !important; border-top: 1px solid #999; }
  a { color: #000 !important; text-decoration: none; }
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; }
}
