/* =========================================================================
   Nusadaya Academy — Design Tokens & Base Styles
   ========================================================================= */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Oswald:wght@600;700&display=swap");

:root {
  /* =======================================================================
     Nusadaya Academy design tokens, Coursera-style (coursera-DESIGN.md):
     one cobalt accent for actions, near-black text, periwinkle-grey
     surfaces, hairline borders instead of heavy shadows, Source Sans 3.
     Legacy token names (blue-*, navy-*, ink-*) are kept so every existing
     component picks up the palette automatically.
     ======================================================================= */
  --primary: #0056d2;
  --primary-hover: #00419e;
  --primary-soft: #f0f5ff;
  --primary-foreground: #ffffff;
  --brand-sky: #00a3e8;
  --brand-royal: #2559b0;

  --navy-900: #0d0f12;
  --navy-800: #1f2733;
  --navy-700: #0b2a63;
  --navy-600: #0f3f8f;
  --blue-700: #00419e;
  --blue-600: #0056d2;
  --blue-500: #2a74e8;
  --blue-400: #6e9bef;
  --blue-100: #dce7fb;
  --blue-50: #f0f5ff;

  --gold-600: #a15c00;
  --gold-500: #f2a31b;
  --gold-100: #fdf0d5;
  --green-600: #0b7a4b;
  --green-500: #12a366;
  --green-100: #e7f6ee;
  --teal-600: #00877b;
  --teal-500: #14b8a6;
  --coral-500: #e5484d;
  --purple-500: #7c5cfc;
  --red-600: #b42318;
  --red-100: #fdecea;

  --ink-900: #0d0f12;
  --ink-700: #3d4655;
  --ink-500: #5b6780;
  --ink-400: #8a94a6;
  --ink-200: #dae1ed;
  --ink-100: #eef2f8;
  --ink-50: #f7f9fc;
  --white: #ffffff;

  --bg-app: #ffffff;
  --bg-soft: #f2f5fa;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --border-default: #dae1ed;
  --border-strong: #c1cbdb;
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-inverse: #ffffff;
  --ring: rgba(0, 86, 210, 0.25);
  --shadow-card: none;
  --shadow-soft: 0 1px 2px rgba(13, 15, 18, 0.05);
  --shadow-hover: 0 8px 24px -12px rgba(13, 15, 18, 0.25);
  --shadow-pop: 0 16px 40px -12px rgba(13, 15, 18, 0.25);

  /* Radius scale (from the login reference):
     card 20 = cards, panels, sections, big photos
     media 12 = images/tiles inside a card
     control 10 = buttons, inputs, rows, icon tiles; pills use 999px */
  --radius-card: 12px;
  --radius-media: 12px;
  --radius-control: 10px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 12px;
  --radius-pill: 10px;

  --container: 1280px;
  --gutter: 40px;
  --header-height: 68px;
  --sidebar-width: 0px;
  --sidebar-width-collapsed: 0px;
  --content-max: 1280px;

  --font-sans: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0, 0, 0.5, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
}

@media (max-width: 768px) { :root { --gutter: 16px; --header-height: 60px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img, video { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: var(--blue-100); color: var(--navy-800); }

/* ---------- Scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--ink-200) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--radius-pill); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--navy-800); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200; transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--green-600); }
.text-danger { color: var(--red-600); }
.text-gold { color: var(--gold-600); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

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