/* ============================================================
   EU CRA Compliance — eucracompliance.co.uk theme
   EU-institutional identity: reflex blue (#003399) anchored scale
   + restrained gold accent. Neutral gray. Shared tokens + atoms
   used by the landing page and the assessment workbench.
   ============================================================ */

:root {
  /* Brand — EU reflex-blue anchored scale (700 = official #003399) */
  --blue-950: #06143a;
  --blue-900: #08205c;
  --blue-800: #062a78;
  --blue-700: #003399;
  --blue-600: #1a4cb5;
  --blue-500: #2f63cc;
  --blue-400: #5a84db;
  --blue-200: #b3c5ea;
  --blue-100: #d9e3f6;
  --blue-050: #eef3fc;

  /* Gold accent — EU star gold, used sparingly (700 is text-safe on light) */
  --gold-500: #ffcc00;
  --gold-600: #e0ad00;
  --gold-700: #9c7600;
  --gold-050: #fff7d6;

  /* Neutral gray */
  --gray-800: #2c3640;
  --gray-700: #3c4753;
  --gray-600: #5d6b78;
  --gray-500: #7b8794;
  --gray-400: #a3aeb9;
  --gray-300: #cfd8e0;
  --gray-200: #e2e8ee;
  --gray-100: #eff3f7;

  --ink: #16222e;
  --paper: #ffffff;
  --bg: #f6f8fa;

  /* Semantic status */
  --ok: #1e7e4d;
  --ok-bg: #e6f4ec;
  --warn: #946700;
  --warn-bg: #fdf3da;
  --bad: #b13a2b;
  --bad-bg: #fbe9e6;

  /* Judgment accent (auditor layer) — kept distinct from brand blue */
  --judge: #8a5a00;
  --judge-bg: #fbf4e4;

  --shadow-1: 0 6px 20px rgba(6, 20, 58, 0.09);
  --shadow-2: 0 18px 44px rgba(6, 16, 48, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "Consolas", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- shared atoms ---- */

.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn-primary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 51, 153, 0.30);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: default; transform: none; }

.btn-ghost {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gray-300);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--blue-700);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--blue-400);
  box-shadow: 0 8px 20px rgba(16, 43, 69, 0.08);
}

.btn-ghost:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.ok      { background: var(--ok-bg);   color: var(--ok); }
.pill.warn    { background: var(--warn-bg); color: var(--warn); }
.pill.bad     { background: var(--bad-bg);  color: var(--bad); }
.pill.neutral { background: var(--gray-100); color: var(--gray-600); }
.pill.brand   { background: var(--blue-050); color: var(--blue-600); }
.pill.judge   { background: var(--judge-bg); color: var(--judge); }

.pill.gold    { background: var(--gold-050); color: var(--gold-700); }

.card {
  background: var(--paper);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

/* short gold rule used above section eyebrows / brand marks */
.gold-rule {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold-500);
}
