/* TachoExam web palette, aligned with TachoData Company's company-app.css.
   Loaded after each page's structural styles; exam status colours stay semantic. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F5F8FA;
  --surface: #FFFFFF;
  --surface-2: #EDF7FC;
  --surface-3: #D9E4EB;
  --border: #D9E4EB;
  --border-strong: #BCCFD9;
  --text: #152936;
  --text-muted: #526571;
  --text-dim: #526571;
  --brand-blue: #41AEDC;
  --brand-orange: #EA580C;
  --data: #087DA4;
  --data-soft: #EDF7FC;
  --action: #1684AE;
  --action-hover: #106E93;
  --on-action: #FFFFFF;
  --focus: #087DA4;
  --accent: var(--data);
  --accent-soft: color-mix(in srgb, var(--data) 25%, var(--border));
  --accent-bg: var(--data-soft);
  /* Older standalone exam pages use these names for text. */
  --muted: var(--text-muted);
  --ink: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #101C24;
    --surface: #1A2C38;
    --surface-2: #152631;
    --surface-3: #354B5A;
    --border: #354B5A;
    --border-strong: #526B7B;
    --text: #F0F5F8;
    --text-muted: #B2C6D2;
    --text-dim: #B2C6D2;
    --brand-orange: #F97316;
    --data: #71CEF0;
    --data-soft: #172F40;
    --focus: #71CEF0;
    --accent: var(--data);
    --accent-soft: color-mix(in srgb, var(--data) 25%, var(--border));
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101C24;
  --surface: #1A2C38;
  --surface-2: #152631;
  --surface-3: #354B5A;
  --border: #354B5A;
  --border-strong: #526B7B;
  --text: #F0F5F8;
  --text-muted: #B2C6D2;
  --text-dim: #B2C6D2;
  --brand-orange: #F97316;
  --data: #71CEF0;
  --data-soft: #172F40;
  --focus: #71CEF0;
  --accent: var(--data);
  --accent-soft: color-mix(in srgb, var(--data) 25%, var(--border));
}

/* Keep the blue/orange wordmark separate from blue action and link colours. */
.brand,
.auth-brand { color: var(--brand-blue); }
.brand__mark,
.brand em,
.brand > span,
.auth-brand em { color: var(--brand-orange); }

.site-header,
.topbar { background: var(--surface); }

/* A filled control uses the same legible colour pair in both themes. */
.btn.btn--primary,
.btn-go,
.tag--go,
.who .av {
  background: var(--action);
  border-color: var(--action);
  color: var(--on-action);
}
.btn.btn--primary:hover,
.btn-go:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--on-action);
  filter: none;
}
.dropzone.is-drag { background: var(--data-soft); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
