/* ==========================================================================
   PPID KEMENAG BUTON UTARA — DESIGN TOKENS
   Single source of truth. Implement 1:1 in Laravel (resources/css/tokens.css).
   ========================================================================== */

:root {
  /* ---- Brand: green (Kemenag identity) ---- */
  --green-950: #05231B;
  --green-900: #072E24;
  --green-800: #0A3D30;
  --green-700: #0E5540;
  --green-600: #0F6B52;
  --green-500: #1E8A68;
  --green-400: #3FA383;
  --green-300: #6FC0A4;
  --green-200: #B7DDCB;
  --green-100: #DCEFE6;
  --green-50:  #F1F8F4;

  /* ---- Brand: gold (accent, used sparingly) ---- */
  --gold-700: #8A6716;
  --gold-600: #A37B26;
  --gold-500: #C9A227;
  --gold-400: #D4AF6A;
  --gold-200: #EBD9AE;
  --gold-100: #F6EDD8;
  --gold-50:  #FBF7EC;

  /* ---- Ink (warm neutral text) ---- */
  --ink-900: #12211C;
  --ink-800: #1D2E28;
  --ink-700: #33443E;
  --ink-600: #4A5C55;
  --ink-500: #647770;
  --ink-400: #879891;
  --ink-300: #AEBDB7;

  /* ---- Surfaces ---- */
  --canvas:      #FAF8F3;
  --canvas-2:    #F3F0E8;
  --surface:     #FFFFFF;
  --surface-2:   #F7F9F7;
  --surface-3:   #EEF3EF;
  --line:        #E3E9E4;
  --line-strong: #CBD6CF;

  /* ---- Status ---- */
  --success-700: #0F6B52;  --success-600: #157F5B;  --success-100: #DCEFE6;
  --warning-700: #8A5A00;  --warning-600: #B07708;  --warning-100: #FBEFD2;
  --danger-700:  #96231A;  --danger-600:  #B42318;  --danger-100:  #FBE4E1;
  --info-700:    #1B4F8A;  --info-600:    #2168A8;  --info-100:    #DFEAF7;
  --neutral-700: #4A5C55;  --neutral-100: #EDF1EE;

  /* ---- Typography ---- */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --fs-11: 0.6875rem;  /* 11 — overline, table head */
  --fs-12: 0.75rem;    /* 12 — caption, badge */
  --fs-13: 0.8125rem;  /* 13 — label, meta */
  --fs-14: 0.875rem;   /* 14 — body-sm, table */
  --fs-15: 0.9375rem;  /* 15 — body default */
  --fs-16: 1rem;       /* 16 — body-lg */
  --fs-18: 1.125rem;   /* 18 — card title */
  --fs-20: 1.25rem;    /* 20 — h3 */
  --fs-24: 1.5rem;     /* 24 — h2 section */
  --fs-30: 1.875rem;   /* 30 — h2 page */
  --fs-38: 2.375rem;   /* 38 — h1 */
  --fs-46: 2.875rem;   /* 46 — hero display */

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  --tracking-caps: 0.09em;
  --tracking-tight: -0.018em;

  /* ---- Spacing (4pt base) ---- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;  --s-10: 64px; --s-11: 80px; --s-12: 96px;

  /* ---- Radius ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* ---- Elevation (green-tinted, never grey) ---- */
  --sh-xs: 0 1px 2px rgba(9, 45, 34, .07);
  --sh-sm: 0 2px 6px rgba(9, 45, 34, .06), 0 1px 2px rgba(9, 45, 34, .04);
  --sh-md: 0 8px 24px -10px rgba(9, 45, 34, .18), 0 2px 6px rgba(9, 45, 34, .05);
  --sh-lg: 0 28px 64px -24px rgba(9, 45, 34, .32), 0 8px 20px -12px rgba(9, 45, 34, .12);
  --sh-focus: 0 0 0 3px rgba(30, 138, 104, .28);

  /* ---- Layout ---- */
  --container: 1180px;
  --container-wide: 1320px;
  --header-h: 76px;
  --sidebar-w: 268px;
  --topbar-h: 36px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  line-height: var(--lh-body);
  color: var(--ink-800);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

::selection { background: var(--green-200); color: var(--green-950); }

/* ---- Icon system (sprite) ---- */
.ico {
  width: 20px; height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-16 { width: 16px; height: 16px; }
.ico-18 { width: 18px; height: 18px; }
.ico-24 { width: 24px; height: 24px; }
.ico-28 { width: 28px; height: 28px; }

/* ---- Utilities ---- */
.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;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }
.stack > * + * { margin-top: var(--s-4); }
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }

/* ---- Reduced motion (accessibility) ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
