/* ==========================================================================
   Documentazione fluxHR — foglio di stile unico.

   Palette e tipografia sono quelle di fluxhr.it (Plus Jakarta Sans, viola
   #c544fb -> #7858f7), ma l'impianto e' quello di un sito di documentazione:
   barra fissa, indice a sinistra, testo al centro, sommario a destra.

   Tutto passa da variabili: il tema scuro piu' in basso si limita a
   ridefinirle, senza duplicare una sola regola di layout.
   ========================================================================== */

:root {
  --violet-600: #7450fe;
  --violet-700: #6b49ee;
  --violet-800: #540078;
  --magenta:    #c544fb;
  --gradient:   linear-gradient(90deg, #c544fb 0%, #7858f7 100%);

  --bg:          #ffffff;
  --bg-soft:     #fbf9ff;
  --bg-sunken:   #f5f2fb;
  --surface:     #ffffff;
  --border:      #e9e4f5;
  --border-soft: #f1edfa;

  --text:        #1f1733;
  --text-soft:   #5a5270;
  --text-faint:  #8a83a0;
  --link:        var(--violet-700);

  --radius:    14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(31, 23, 51, .05);
  --shadow:    0 6px 24px rgba(84, 0, 120, .07);
  --shadow-lg: 0 18px 48px rgba(84, 0, 120, .14);

  --topbar-h:  64px;
  --sidebar-w: 286px;
  --toc-w:     220px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a   { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.015em; font-weight: 700; color: var(--text); }

.icon { flex: none; vertical-align: middle; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--violet-700); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--violet-600); outline-offset: 2px; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Barra superiore
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  height: 100%;
  max-width: 1600px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}

.topbar__burger {
  display: none;
  background: none; border: 0; padding: 8px; margin-left: -8px;
  color: var(--text); cursor: pointer; border-radius: var(--radius-sm);
}
.topbar__burger:hover { background: var(--bg-sunken); }

.topbar__brand { display: flex; align-items: center; gap: 10px; flex: none; }
.topbar__brand:hover { text-decoration: none; }
.topbar__logo  { width: 116px; height: auto; display: block; }
.topbar__label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet-800);
  background: var(--bg-sunken); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 999px;
}

.topbar__search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.topbar__search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.topbar__search-field {
  width: 100%; height: 40px;
  padding: 0 44px 0 40px;
  font: inherit; font-size: 14.5px; color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--border); border-radius: 999px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.topbar__search-field::placeholder { color: var(--text-faint); }
.topbar__search-field:focus {
  outline: none; background: var(--surface);
  border-color: var(--violet-600);
  box-shadow: 0 0 0 4px rgba(116, 80, 254, .12);
}
.topbar__search-kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--text-faint);
  background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; pointer-events: none;
}
.topbar__search-field:focus ~ .topbar__search-kbd { opacity: 0; }

.topbar__links { display: flex; align-items: center; gap: 8px; flex: none; }
.topbar__link {
  font-size: 14.5px; font-weight: 600; color: var(--violet-800);
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.topbar__link:hover { background: var(--bg-sunken); text-decoration: none; }
.topbar__cta {
  font-size: 14.5px; font-weight: 700; color: #fff;
  background: var(--gradient);
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(122, 70, 240, .28);
}
.topbar__cta:hover { text-decoration: none; filter: brightness(1.06); }

/* --------------------------------------------------------------------------
   Risultati della ricerca
   -------------------------------------------------------------------------- */

.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 70;
  max-height: min(66vh, 520px); overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.search-results[hidden] { display: none; }

.sr__item { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); }
.sr__item:hover, .sr__item.is-active { background: var(--bg-sunken); text-decoration: none; }
.sr__crumb { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--violet-600); margin-bottom: 2px; }
.sr__title { display: block; font-weight: 650; font-size: 15px; }
.sr__snippet { display: block; font-size: 13.5px; color: var(--text-soft); margin-top: 2px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sr__item mark { background: rgba(197, 68, 251, .18); color: inherit; border-radius: 3px; padding: 0 2px; }
.sr__empty { padding: 22px 14px; text-align: center; color: var(--text-soft); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Impianto a colonne
   -------------------------------------------------------------------------- */

.shell {
  max-width: 1600px; margin: 0 auto;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Indice laterale
   -------------------------------------------------------------------------- */

.sidebar {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
}
.sidebar__inner {
  height: 100%; overflow-y: auto;
  padding: 24px 14px 28px 20px;
  display: flex; flex-direction: column;
}
.sidebar__close { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; align-self: flex-end; border-radius: var(--radius-sm); }

.nav { list-style: none; margin: 0; padding: 0; }
.nav__group + .nav__group { margin-top: 2px; }

.nav__section {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--text-soft);
}
.nav__section:hover { background: rgba(116, 80, 254, .07); color: var(--text); text-decoration: none; }
.nav__icon { display: flex; color: var(--text-faint); }
.nav__title { flex: 1; }
.nav__badge { font-size: 11px; color: var(--text-faint); }

.nav__group.is-current > .nav__section { color: var(--violet-800); background: rgba(116, 80, 254, .1); font-weight: 700; }
.nav__group.is-current .nav__icon { color: var(--violet-600); }

.nav__articles { list-style: none; margin: 2px 0 8px; padding: 0 0 0 10px; border-left: 2px solid var(--border); margin-left: 19px; }
.nav__articles a {
  display: block; padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-soft); line-height: 1.45;
}
.nav__articles a:hover { background: rgba(116, 80, 254, .07); color: var(--text); text-decoration: none; }
.nav__articles a.is-active { color: var(--violet-700); font-weight: 650; background: rgba(116, 80, 254, .1); }

.sidebar__help {
  margin-top: auto; padding-top: 20px;
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13.5px; color: var(--text-soft); line-height: 1.5;
}
.sidebar__help .icon { color: var(--violet-600); margin-top: 2px; }
.sidebar__help strong { display: block; color: var(--text); font-weight: 650; }

.sidebar__scrim { display: none; }

/* --------------------------------------------------------------------------
   Contenuto
   -------------------------------------------------------------------------- */

.content { padding: 32px 40px 80px; min-width: 0; }

.crumbs { font-size: 13.5px; color: var(--text-faint); margin-bottom: 20px; }
.crumbs a { color: var(--text-soft); }
.crumbs a:last-child { color: var(--text); font-weight: 600; }
.crumbs__sep { margin: 0 7px; }

/* Hero della pagina iniziale */
.hero { padding: 26px 0 38px; max-width: 760px; }
.hero--compact { padding: 40px 0; }
.hero h1 {
  font-size: clamp(30px, 4vw, 44px); margin: 0 0 14px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 18px; color: var(--text-soft); margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 18px rgba(122, 70, 240, .3); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--surface); color: var(--violet-800); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--bg-sunken); }

.grid-title { font-size: 13px; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin: 0 0 16px; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color .16s, box-shadow .16s, transform .16s;
  position: relative;
}
.card:hover { text-decoration: none; border-color: rgba(116, 80, 254, .4); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--empty { opacity: .62; }
.card__icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: rgba(116, 80, 254, .1); color: var(--violet-700);
}
.card__body { display: block; min-width: 0; }
.card__title { display: block; font-weight: 700; font-size: 15.5px; color: var(--text); margin-bottom: 3px; }
.card__intro { display: block; font-size: 13.8px; color: var(--text-soft); line-height: 1.5; }
.card__count { position: absolute; right: 18px; bottom: 14px; font-size: 11.5px; color: var(--text-faint); }

/* Intestazione di sezione */
.page-head { display: flex; gap: 16px; align-items: flex-start; padding: 6px 0 26px; border-bottom: 1px solid var(--border-soft); margin-bottom: 26px; }
.page-head__icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: rgba(116, 80, 254, .1); color: var(--violet-700);
}
.page-head h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; }
.page-head__intro { color: var(--text-soft); margin: 0; font-size: 16.5px; max-width: 70ch; }

/* Elenco articoli */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.list__item a {
  display: block; padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .16s, box-shadow .16s;
}
.list__item a:hover { text-decoration: none; border-color: rgba(116, 80, 254, .4); box-shadow: var(--shadow); }
.list__title { display: block; font-weight: 650; font-size: 16px; color: var(--text); }
.list__desc  { display: block; font-size: 14px; color: var(--text-soft); margin-top: 3px; }

/* --------------------------------------------------------------------------
   Articolo
   -------------------------------------------------------------------------- */

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--toc-w); gap: 48px; align-items: start; }
.article { max-width: 76ch; }
.article h1 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 12px; }
.article__lead { font-size: 18px; color: var(--text-soft); margin: 0 0 30px; line-height: 1.6; }

.article__updated { margin-top: 44px; font-size: 13px; color: var(--text-faint); }

.article__feedback {
  margin-top: 12px; padding: 16px 20px;
  background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius);
  font-size: 14px; color: var(--text-soft);
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
}

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pager__item {
  display: block; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .16s, box-shadow .16s;
}
.pager__item:hover { text-decoration: none; border-color: rgba(116, 80, 254, .4); box-shadow: var(--shadow); }
.pager__item--next { text-align: right; }
.pager__label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); font-weight: 700; }
.pager__title { display: block; font-weight: 650; color: var(--text); margin-top: 3px; }

/* Sommario laterale */
.toc { position: sticky; top: calc(var(--topbar-h) + 32px); font-size: 13.8px; }
.toc__title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); font-weight: 700; margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-soft); line-height: 1.45; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.is-active { color: var(--violet-700); border-left-color: var(--violet-600); font-weight: 650; }
.toc__l3 a { padding-left: 26px; font-size: 13.2px; }

/* --------------------------------------------------------------------------
   Testo dell'articolo (output Markdown)
   -------------------------------------------------------------------------- */

.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 7px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li::marker { color: var(--violet-600); }

.prose h2 {
  font-size: 25px; margin: 44px 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid var(--border-soft);
}
.prose h3 { font-size: 19.5px; margin: 32px 0 10px; }
.prose h4 { font-size: 16.5px; margin: 26px 0 8px; color: var(--text-soft); }

.doc-anchor { color: var(--text-faint); opacity: 0; margin-left: 6px; font-weight: 400; text-decoration: none; }
.prose h2:hover .doc-anchor, .prose h3:hover .doc-anchor, .doc-anchor:focus { opacity: 1; }

.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 700; color: var(--text); }

.prose code {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-sunken); border: 1px solid var(--border-soft);
  padding: 1.5px 5px; border-radius: 5px; color: var(--violet-800);
}
.prose pre {
  background: #1f1733; color: #eee9fb;
  padding: 16px 18px; border-radius: var(--radius);
  overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 0 0 18px;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 13.5px; }

.prose blockquote {
  margin: 0 0 18px; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--violet-600);
  color: var(--text-soft);
}

.prose img { border-radius: var(--radius); border: 1px solid var(--border); display: block; margin: 22px 0; box-shadow: var(--shadow-sm); }

.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

/* Le tabelle sono l'elemento che piu' facilmente sfonda la colonna su mobile:
   il contenitore scorre in orizzontale, il resto della pagina no. */
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; background: var(--bg-sunken); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* Riquadri: si scrivono in Markdown come blockquote che inizia con **Nota:**
   oppure con la classe esplicita, vedi docs.js */
.note {
  padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-soft);
  font-size: 15px; color: var(--text-soft); margin: 0 0 18px;
}
.note strong { color: var(--text); }
.note--info    { border-left: 3px solid var(--violet-600); }
.note--warning { border-left: 3px solid #e0a400; background: #fffaf0; border-color: #f4e6c4; }
.note--danger  { border-left: 3px solid #d64545; background: #fff5f5; border-color: #f7d9d9; }
.note--success { border-left: 3px solid #2fa36b; background: #f3fbf7; border-color: #cfeadd; }

/* --------------------------------------------------------------------------
   Video riservati ai clienti
   -------------------------------------------------------------------------- */

.video { margin: 26px 0; }

.video__locked {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 26px 24px;
  text-align: center;
}
.video__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; background: var(--gradient);
  padding: 5px 12px 5px 10px; border-radius: 999px;
  margin-bottom: 13px;
}
.video__badge svg { width: 11px; height: 11px; flex: none; }

/* I selettori sono volutamente piu' specifici del necessario: dentro .prose le
   regole generiche su p (margin: 0 0 18px) hanno specificita' 0,0,1,1 e
   vincerebbero su una classe singola, annullando il margin:auto che centra il
   blocco. Senza questo il testo resta incollato a sinistra nella card. */
.video .video__title { font-weight: 700; color: var(--text); margin: 0 0 9px; font-size: 16.5px; }
.video .video__hint  {
  font-size: 14px; color: var(--text-soft); line-height: 1.55;
  max-width: 48ch; margin: 0 auto;
}

.video__player {
  width: 100%; display: block;
  border-radius: var(--radius);
  background: #0f0b17;
  border: 1px solid var(--border);
}
.video__caption { font-size: 13.5px; color: var(--text-soft); margin-top: 9px; text-align: center; }
.video__exit {
  display: block; text-align: center;
  font-size: 12.5px; color: var(--text-faint);
  margin-top: 5px;
}
.video__exit:hover { color: var(--text-soft); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: #2a1b46; color: #cdc4e4; margin-top: 40px; }
.footer__inner {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px 34px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
.footer__logo { width: 148px; height: auto; }
.footer__brand p { font-size: 14px; margin: 14px 0 0; color: #a79cc6; max-width: 34ch; }
.footer__nav { display: contents; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; }
.footer__nav a, .footer__meta a { color: #cdc4e4; font-size: 14px; }
.footer__nav a:hover, .footer__meta a:hover { color: #fff; }
.footer__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__legal { text-align: center; font-size: 13px; color: #8d81ab; padding: 0 24px 28px; }

/* --------------------------------------------------------------------------
   Adattamento agli schermi
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}

@media (max-width: 1080px) {
  .topbar__links .topbar__link { display: none; }
}

/* Sotto i 1024px l'indice diventa un pannello a scomparsa. */
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .topbar__burger { display: inline-flex; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
    width: min(320px, 86vw); height: 100vh;
    transform: translateX(-102%);
    transition: transform .24s ease;
    box-shadow: var(--shadow-lg);
    background: var(--bg);
  }
  .sidebar.is-open { transform: none; }
  .sidebar__close { display: inline-flex; }
  .sidebar__inner { padding-top: 14px; }

  .sidebar__scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(31, 23, 51, .45); }
  .sidebar__scrim[hidden] { display: none; }

  .content { padding: 26px 24px 64px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .topbar__inner { gap: 10px; padding: 0 16px; }
  .topbar__label { display: none; }
  .topbar__search { order: 3; flex-basis: 100%; max-width: none; }

  /* Con la ricerca su una riga propria la barra diventa alta il doppio. */
  .topbar { height: auto; position: static; }
  .topbar__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; height: auto; }
  .sidebar { top: 0; height: 100vh; }
  html { scroll-padding-top: 20px; }

  .content { padding: 20px 16px 56px; }
  .pager { grid-template-columns: 1fr; }
  .pager__item--next { text-align: left; }
  .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .prose h2 { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   Tema scuro

   Si attiva solo se il sistema dell'utente lo chiede: il sito resta chiaro
   come fluxhr.it per tutti gli altri. Ridefinisce le sole variabili, quindi
   non c'e' una seconda versione del layout da tenere allineata.
   -------------------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #16111f;
    --bg-soft:     #1b1526;
    --bg-sunken:   #221a30;
    --surface:     #1d1729;
    --border:      #332a45;
    --border-soft: #271f37;

    --text:        #ece8f5;
    --text-soft:   #a79fbd;
    --text-faint:  #7d7496;
    --link:        #b39cff;
    --violet-800:  #d9c7ff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 6px 24px rgba(0, 0, 0, .38);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  }
  .topbar { background: rgba(22, 17, 31, .88); }
  .card__icon, .page-head__icon { background: rgba(179, 156, 255, .14); color: #b39cff; }
  .nav__group.is-current > .nav__section,
  .nav__articles a.is-active { background: rgba(179, 156, 255, .14); }
  .prose pre { background: #0f0b17; }
  .prose code { color: #d9c7ff; }
  .note--warning { background: #2a2214; border-color: #4a3c1c; }
  .note--danger  { background: #2b1818; border-color: #4d2626; }
  .note--success { background: #152a20; border-color: #245039; }
  .footer { background: #120e1a; }
}
