/* Token condivisi dell'area riservata cliente (dashboard, login, thread, welcome, indagine).
 *
 * Valori allineati alla pagina di valutazione v3 (frontend/public/v3/valutazione.html):
 * fondo bianco, tessere grigio caldo, inchiostro quasi nero, petrolio come accento,
 * arancione di marca con testo scuro, titoli in Inter Tight, raggi 24/16/999, ombre quasi nulle.
 *
 * Va caricato PRIMA dello <style> della pagina: ogni pagina tiene nel proprio :root solo gli
 * alias che usa lei. Il tema scuro esiste solo nella dashboard e resta nel suo <style>
 * (qui metterlo accenderebbe a metà anche le pagine che non lo supportano).
 * I nomi --hf-* sono quelli storici: --hf-serif oggi è il carattere dei titoli, non un serif. */
:root {
  --hf-bg: #ffffff;
  --hf-paper: #f2f1ed; /* tessera */
  --hf-tile-2: #e4e2dc;
  --hf-ink: #121212;
  --hf-muted: #636363;
  --hf-teal: #15515f;
  --hf-teal-deep: #0f3f4a;
  --hf-cta: #15515f;
  --hf-on-cta: #ffffff;
  --hf-line: rgba(18, 18, 18, 0.09);
  --hf-line-strong: rgba(18, 18, 18, 0.22);
  --hf-field-line: #8c8c8c;
  --hf-orange: #f58a07;
  --hf-on-orange: #141414;
  --hf-soft: rgba(18, 18, 18, 0.05);
  --hf-bar: rgba(255, 255, 255, 0.8); /* testata traslucida */

  /* Stato: "ok" è petrolio come nella v3 (niente verde), avviso ambra, negativo rosso */
  --hf-status-green: #15515f;
  --hf-status-green-bg: #dcebee;
  --hf-status-amber: #6e5200;
  --hf-status-amber-bg: #fbefc5;
  --hf-status-yellow: #6e5200;
  --hf-status-yellow-bg: #fbefc5;
  --hf-status-red: #9f1c12;
  --hf-status-red-bg: #fde2df;
  --hf-status-grey: #4d4d4d;
  --hf-status-grey-bg: #e4e2dc;

  --hf-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hf-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --hf-serif: var(--hf-display);
  --hf-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hf-font-sans: var(--hf-sans);
  --hf-font-serif: var(--hf-display);

  --hf-radius-card: 24px;
  --hf-radius-in: 16px;
  --hf-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.012);
}

/* Fuoco da tastiera sempre visibile, come nella v3. */
:focus-visible {
  outline: 3px solid var(--hf-teal);
  outline-offset: 2px;
}

@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;
  }
}
