/* ──────────────────────────────────────────────────────────────
   Cobalt — base element defaults
   Light, app-canvas defaults. Body uses Inter; headings inherit Roobert
   only where a .cb-title-* class is applied (not globally) to keep parity
   with the product, which sets type per-component.
   ────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  font-family: var(--cb-font-body);
  font-size: var(--cb-body-md-size);
  line-height: var(--cb-body-md-lh);
  color: var(--cb-text);
  background: var(--cb-surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv05" 1, "ss01" 1; /* Inter: friendlier l / single-storey g where supported */
}

a { color: var(--cb-text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* color: inherit → les boutons suivent la couleur de texte du thème (sinon noir UA, illisible en sombre). */
button { font-family: inherit; color: inherit; }

::selection { background: var(--cb-blue-20); }

/* Thin, unobtrusive scrollbars to match the app chrome */
* { scrollbar-width: thin; scrollbar-color: var(--cb-neutral-30) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--cb-neutral-30); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--cb-neutral-40); }
