/**
 * EDU.ro — base: tokens identitate gov.ro/CNSP, reset, tipografie Inter.
 * Temă custom pe Stark (fără CSS impus de Olivero). WCAG 2.1 AA.
 */
:root {
  /* Albastru instituțional (PANTONE 280C ≈ #004990) + accente. */
  --edu-blue: #004990;
  --edu-blue-600: #0079c1;   /* accent / linkuri hover */
  --edu-blue-700: #003a73;
  --edu-blue-800: #002a56;
  --edu-navy: #001f3f;        /* footer */
  --edu-accent: #e8f5ff;      /* pastilă / iconițe */

  --edu-ink: #101828;
  --edu-ink-2: #374151;
  --edu-muted: #6b7280;
  --edu-line: #e5eaf1;
  --edu-surface: #f6f8fb;
  --edu-white: #fff;

  /* Tricolor (steag) — folosit ca accent gov. */
  --ro-blue: #002b7f;
  --ro-yellow: #fcd116;
  --ro-red: #ce1126;

  --edu-radius: 14px;
  --edu-radius-sm: 10px;
  --edu-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 10%);
  --edu-shadow-md: 0 4px 6px -1px rgb(16 24 40 / 8%), 0 2px 4px -2px rgb(16 24 40 / 6%);

  --edu-container: 1200px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; line-height: 1.5; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--edu-ink);
  background: var(--edu-white);
  -webkit-font-smoothing: antialiased;
}

/* Sticky footer: wrapper-ul core (off-canvas) e coloană flex pe toată înălțimea
 * viewport-ului → conținutul împinge footer-ul jos chiar și pe pagini scurte. */
.dialog-off-canvas-main-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--edu-blue); text-decoration: none; }
a:hover { color: var(--edu-blue-600); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--edu-ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* Focus vizibil — accesibilitate. */
:focus-visible { outline: 3px solid var(--edu-blue-600); outline-offset: 2px; border-radius: 4px; }

/* Skip link. */
.edu-skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--edu-blue); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.edu-skiplink:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* Container centrat, lățime fixă. */
.edu-container {
  width: 100%;
  max-width: var(--edu-container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Tabele / forme de bază (Stark le lasă fără stil). */
table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; }
th, td { border: 1px solid var(--edu-line); padding: 0.5rem 0.75rem; text-align: left; }
th { background: var(--edu-surface); font-weight: 600; }

input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--edu-ink); }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], textarea, select {
  border: 1px solid #cbd5e1;
  border-radius: var(--edu-radius-sm);
  padding: 0.6rem 0.85rem;
  background: #fff;
}
