/* ============================================================
   PiTi Academy — Design System v2 tokens
   Sumber kebenaran warna, font, radius. Lihat CLAUDE.md "Design System v2".
   Dimuat SEBELUM brand.css / dashboard-dark.css.
   ============================================================ */

/* ── Fonts (self-hosted, variable woff2 — CSP: font-src 'self') ── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 500 600; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 500 600; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Legacy font aliases (hapus di fase 5) ──
   ~1.400 inline style masih menulis 'Space Grotesk' / 'Inter' / 'Syne' / 'DM Sans'
   / 'Space Mono'. Alias ini membuat semuanya otomatis render dengan font v2. */
@font-face { font-family: 'Space Grotesk'; font-weight: 400 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter';         font-weight: 300 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Syne';          font-weight: 400 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans';       font-weight: 400 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono';    font-weight: 400 700; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono';       font-weight: 400 700; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }

/* ── Tema terang (default) — "Kertas & Kobalt" ── */
:root {
  --bg:           #F5F3EE;
  --surface:      #FFFFFF;
  --surface-2:    #ECE9E1;
  --text:         #14161A;
  --muted:        #555B64;
  --line:         #D9D5CB;
  --accent:       #2340D9;
  --on-accent:    #FFFFFF;
  --accent-soft:  #E4E9FF;
  --accent-text:  #2340D9;
  --inverse-bg:   #14161A;
  --inverse-text: #F5F3EE;
  --highlight:    #C6F135;   /* hanya di latar gelap */
  --ok:           #15803D;
  --ok-bg:        #DDF3E4;
  --no:           #C2410C;
  --no-bg:        #FBE3DC;


  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-btn:   12px;
  --r-input: 12px;
  --r-card:  20px;
  --r-cta:   28px;
  --r-pill:  999px;

  --container: 1200px;

  color-scheme: light;
}

/* ── Tema gelap — "Tinta & Lime" ── */
[data-theme="dark"] {
  --bg:           #0D1117;
  --surface:      #151B23;
  --surface-2:    #1C2430;
  --text:         #F2F4F7;
  --muted:        #A3ABB8;
  --line:         #2A3340;
  --accent:       #C6F135;
  --on-accent:    #0D1117;
  --accent-soft:  #1F2A12;
  --accent-text:  #C6F135;
  --inverse-bg:   #C6F135;
  --inverse-text: #0D1117;
  --ok:           #4ADE80;
  --ok-bg:        #16301F;
  --no:           #F97362;
  --no-bg:        #3A1A14;


  color-scheme: dark;
}

/* ── Logo teks "Pi" — dipakai shell yang tidak memuat brand.css (admin, instruktur) ── */
.ds-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.ds-logo-box { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; flex-shrink: 0; }

/* ── Ikon garis (gaya Lucide) — dipakai di semua shell ── */
.ds-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ds-icon--inline { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
