/* ============================================================
   STFG V2.0 — Design System
   Single source of truth for tokens, themes, base components.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:ital,wght@0,400..800;1,400..600&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

/* ---------- TOKENS (default theme: "Chaleureux") ---------- */
:root {
  /* Brand */
  --rose:        #E6007E;
  --rose-700:    #B5005F;
  --rose-600:    #CC006F;
  --rose-300:    #F368AE;
  --rose-100:    #FBD6E9;
  --rose-50:     #FDEDF5;

  /* Ink — deep aubergine/prune */
  --ink:         #2A1420;
  --ink-2:       #533945;
  --ink-3:       #8A7077;
  --ink-4:       #B6A3AA;

  /* Surfaces — warm off-white */
  --bg:          #FBF4F0;
  --bg-2:        #F6EAE3;
  --surface:     #FFFFFF;
  --surface-2:   #FCF6F2;
  --line:        #EBDCD6;
  --line-2:      #E0CDC5;

  /* Functional */
  --ok:          #1B9C76;
  --ok-bg:       #E2F5EE;
  --warn:        #C9821A;
  --warn-bg:     #FBEFD8;
  --danger:      #D14343;
  --danger-bg:   #FBE4E4;
  --info:        #3B5BDB;
  --info-bg:     #E6EBFC;

  /* Domain category palette (distinct, harmonious) */
  --c-education:    #3B5BDB; --c-education-bg:    #E7ECFC;
  --c-sante:        #1B9C76; --c-sante-bg:        #E1F4ED;
  --c-prevention:   #0C8599; --c-prevention-bg:   #DCF1F4;
  --c-bienetre:     #DB7711; --c-bienetre-bg:     #FBEBD7;
  --c-plaisir:      #9C36B5; --c-plaisir-bg:      #F4E3F8;

  /* Radii */
  --r-xs: 7px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Shadow — soft, warm-tinted */
  --sh-sm: 0 1px 2px rgba(42,20,32,.06), 0 1px 3px rgba(42,20,32,.05);
  --sh-md: 0 4px 12px rgba(42,20,32,.07), 0 2px 4px rgba(42,20,32,.04);
  --sh-lg: 0 18px 40px -12px rgba(42,20,32,.16), 0 6px 14px rgba(42,20,32,.06);
  --sh-rose: 0 10px 28px -8px rgba(230,0,126,.38);

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --ring: 0 0 0 3px rgba(230,0,126,.30);
}

/* ---------- THEME: Éditorial (net, contrasté, encadré) ---------- */
[data-theme="editorial"] {
  --rose: #E6007E; --rose-700: #A8005A;
  --ink: #1A1015; --ink-2: #4A3A41;
  --bg: #FFFFFF; --bg-2: #F4F0F1;
  --surface: #FFFFFF; --surface-2: #FAF7F8;
  --line: #1A1015; --line-2: #1A1015;
  --sh-sm: none; --sh-md: none; --sh-lg: 6px 6px 0 0 var(--ink);
}

/* ---------- THEME: Vif (rose éclatant, dégradés doux) ---------- */
[data-theme="vif"] {
  --rose: #F50C8B; --rose-700: #C2006B;
  --ink: #34132A; --ink-2: #6A4458;
  --bg: #FFF4FA; --bg-2: #FCE7F2;
  --surface: #FFFFFF; --surface-2: #FFF1F8;
  --line: #F6D7E8; --line-2: #F0C3DC;
  --sh-rose: 0 12px 34px -8px rgba(245,12,139,.45);
}

/* ---------- THEME: Aubergine (profond, premium) ---------- */
[data-theme="aubergine"] {
  --rose: #FF2E97; --rose-700: #E6007E;
  --ink: #FBEFF6; --ink-2: #D6B9C9; --ink-3: #A98E9D; --ink-4: #7E6573;
  --bg: #1F0E1A; --bg-2: #2A1322;
  --surface: #2C1525; --surface-2: #341A2C;
  --line: #44293A; --line-2: #573449;
  --c-education-bg:#23295A; --c-sante-bg:#143b30; --c-prevention-bg:#0e3640;
  --c-bienetre-bg:#43320f; --c-plaisir-bg:#3c2247;
  --sh-sm: 0 1px 2px rgba(0,0,0,.4);
  --sh-md: 0 6px 16px rgba(0,0,0,.4);
  --sh-lg: 0 22px 48px -12px rgba(0,0,0,.6);
}

/* ============================================================
   THEME: Clarté — modernisation lisibilité (recommandé)
   Contraste élevé, texte secondaire renforcé, neutres nets,
   plus d'air, cartes modernes. C'est la variation "lisibilité".
   ============================================================ */
[data-theme="clarte"] {
  --rose: #E10A7A; --rose-700: #B00060; --rose-600: #C70070;
  --rose-300: #F368AE; --rose-100: #FBD3E6; --rose-50: #FCEAF3;

  /* Ink — quasi-noir, contraste maximal */
  --ink:   #14110F;
  --ink-2: #34302E;   /* texte secondaire bien plus lisible */
  --ink-3: #5A534F;   /* "muted" relevé (WCAG AA sur blanc) */
  --ink-4: #8C8580;

  /* Surfaces — neutres nets, légèrement chauds */
  --bg:        #F4F1EE;
  --bg-2:      #ECE7E2;
  --surface:   #FFFFFF;
  --surface-2: #F7F4F1;
  --line:      #E4DED8;
  --line-2:    #D4CCC4;

  --ok: #0F8A63; --ok-bg: #E0F3EC;
  --warn: #B5740F; --warn-bg: #FBEDD4;
  --danger: #C53030; --danger-bg: #FBE3E3;
  --info: #2B4ED6; --info-bg: #E5EAFC;

  --c-education:#2B4ED6; --c-sante:#0F8A63; --c-prevention:#0A7689;
  --c-bienetre:#C2680C; --c-plaisir:#8E2BAE;

  /* Radii modernes, plus généreux */
  --r-xs: 8px; --r-sm: 11px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px;

  /* Ombres neutres (pas de tendre rose/brun) */
  --sh-sm: 0 1px 2px rgba(20,17,15,.05), 0 1px 3px rgba(20,17,15,.06);
  --sh-md: 0 6px 18px -4px rgba(20,17,15,.10), 0 2px 6px rgba(20,17,15,.05);
  --sh-lg: 0 24px 50px -16px rgba(20,17,15,.22), 0 8px 18px rgba(20,17,15,.07);
  --sh-rose: 0 12px 30px -10px rgba(225,10,122,.40);

  --ring: 0 0 0 3px rgba(225,10,122,.32);
}

/* Lisibilité : corps de texte plus grand, interligne plus aéré,
   titres légèrement moins serrés. Scopé au thème pour une A/B nette. */
[data-theme="clarte"] body { font-size: 17px; line-height: 1.62; }
[data-theme="clarte"] h1,
[data-theme="clarte"] h2,
[data-theme="clarte"] h3 { letter-spacing: -0.018em; }
[data-theme="clarte"] .display { letter-spacing: -0.03em; }
[data-theme="clarte"] .lead { line-height: 1.6; }
[data-theme="clarte"] .t-eyebrow { letter-spacing: .14em; font-weight: 600; }
[data-theme="clarte"] .card { border-radius: var(--r-lg); }
[data-theme="clarte"] .btn { font-weight: 650; }
[data-theme="clarte"] .tag,
[data-theme="clarte"] .badge { font-weight: 650; }

/* ============================================================
   THEME: Neo — nouvelle charte (jeune, dynamique, sextech)
   Duo magenta électrique × violet tech. Deux variantes :
   "neo" (clair) et "neo-dark" (sombre). Philosophie inchangée.
   ============================================================ */

/* ---- Neo CLAIR ---- */
[data-theme="neo"] {
  --rose:     #FF1E88;   /* magenta électrique */
  --rose-700: #D6006B;
  --rose-600: #EC0077;
  --rose-300: #FF6FB0;
  --rose-100: #FFD3E6;
  --rose-50:  #FFEAF3;

  --volt:  #7A2BF5;      /* violet tech (accent secondaire) */
  --volt-2:#5E17D6;
  --grad:  linear-gradient(100deg, #FF1E88 0%, #B026D6 55%, #7A2BF5 100%);

  --ink:   #0E0B16;      /* noir violacé, ultra contrasté */
  --ink-2: #322B44;
  --ink-3: #5C5470;
  --ink-4: #948BAC;

  --bg:        #F4F2F9;
  --bg-2:      #E9E5F3;
  --surface:   #FFFFFF;
  --surface-2: #F6F4FC;
  --line:      #E5E0F0;
  --line-2:    #D3CBE6;

  --ok:#08A87A; --ok-bg:#DEF5EE;
  --warn:#D07B0A; --warn-bg:#FBEDD5;
  --danger:#E23A55; --danger-bg:#FBE2E7;
  --info:#4436E0; --info-bg:#E7E5FC;

  --c-education:#4436E0; --c-education-bg:#E7E5FC;
  --c-sante:#08A87A;     --c-sante-bg:#DEF5EE;
  --c-prevention:#0A93B5;--c-prevention-bg:#DBF1F6;
  --c-bienetre:#E07A0C;  --c-bienetre-bg:#FBEBD6;
  --c-plaisir:#9B2FE8;   --c-plaisir-bg:#F3E3FB;

  --r-xs:9px; --r-sm:12px; --r-md:17px; --r-lg:24px; --r-xl:32px;

  --sh-sm: 0 1px 2px rgba(14,11,22,.06), 0 1px 3px rgba(14,11,22,.06);
  --sh-md: 0 8px 22px -6px rgba(14,11,22,.12), 0 2px 6px rgba(14,11,22,.05);
  --sh-lg: 0 28px 56px -18px rgba(90,20,140,.30), 0 8px 20px rgba(14,11,22,.08);
  --sh-rose: 0 14px 34px -10px rgba(255,30,136,.55);
  --ring: 0 0 0 3px rgba(122,43,245,.32);
}

/* ---- Neo SOMBRE ---- */
[data-theme="neo-dark"] {
  --rose:     #FF3D96;   /* magenta un peu plus clair pour fond noir */
  --rose-700: #FF66AC;   /* hover = plus clair sur sombre */
  --rose-600: #FF4E9F;
  --rose-300: #FF8FC0;
  --rose-100: #3A1526;
  --rose-50:  #24101A;

  --volt:  #9B6BFF;
  --volt-2:#7A2BF5;
  --grad:  linear-gradient(100deg, #FF3D96 0%, #B94DF0 52%, #7A5BFF 100%);

  --ink:   #F4F1FB;
  --ink-2: #C7BFDA;
  --ink-3: #948BAE;
  --ink-4: #6B6383;

  --bg:        #09070F;   /* noir violacé profond */
  --bg-2:      #100D1A;
  --surface:   #15111F;
  --surface-2: #1D1729;
  --line:      #2A2338;
  --line-2:    #392F4C;

  --ok:#25C495; --ok-bg:#0E3329;
  --warn:#E8A23A; --warn-bg:#3A2A10;
  --danger:#FF5C77; --danger-bg:#3A1520;
  --info:#8E86FF; --info-bg:#1E1C46;

  --c-education:#8E86FF; --c-education-bg:#1E1C46;
  --c-sante:#25C495;     --c-sante-bg:#0E3329;
  --c-prevention:#2FC4E0;--c-prevention-bg:#0C3540;
  --c-bienetre:#F0A63C;  --c-bienetre-bg:#3A2A10;
  --c-plaisir:#C46BFF;   --c-plaisir-bg:#2C1740;

  --r-xs:9px; --r-sm:12px; --r-md:17px; --r-lg:24px; --r-xl:32px;

  --sh-sm: 0 1px 2px rgba(0,0,0,.5);
  --sh-md: 0 10px 26px -8px rgba(0,0,0,.6);
  --sh-lg: 0 30px 60px -18px rgba(0,0,0,.75), 0 0 40px -12px rgba(255,61,150,.25);
  --sh-rose: 0 14px 40px -10px rgba(255,61,150,.6);
  --ring: 0 0 0 3px rgba(155,107,255,.45);
}

/* ---- Enrichissements partagés Neo (pour que ça saute aux yeux) ---- */
[data-theme="neo"] body,
[data-theme="neo-dark"] body { font-size: 16.5px; letter-spacing: -0.005em; }

[data-theme="neo"] h1, [data-theme="neo"] h2, [data-theme="neo"] h3, [data-theme="neo"] h4, [data-theme="neo"] h5,
[data-theme="neo-dark"] h1, [data-theme="neo-dark"] h2, [data-theme="neo-dark"] h3, [data-theme="neo-dark"] h4, [data-theme="neo-dark"] h5 {
  letter-spacing: -0.035em;
}
[data-theme="neo"] .display, [data-theme="neo-dark"] .display { letter-spacing: -0.045em; }

/* Eyebrow en dégradé, plus punchy */
[data-theme="neo"] .t-eyebrow, [data-theme="neo-dark"] .t-eyebrow {
  font-weight: 700; letter-spacing: .16em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* Bouton primaire : dégradé + lueur, uppercase discret */
[data-theme="neo"] .btn-primary, [data-theme="neo-dark"] .btn-primary {
  background: var(--grad); border: none; font-weight: 700;
}
[data-theme="neo"] .btn-primary:hover, [data-theme="neo-dark"] .btn-primary:hover {
  filter: brightness(1.08) saturate(1.05); background: var(--grad);
}
[data-theme="neo"] .btn, [data-theme="neo-dark"] .btn { font-weight: 650; }

/* Logo dot en dégradé */
[data-theme="neo"] .logo-dot, [data-theme="neo-dark"] .logo-dot {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Focus ring néon + sélection */
[data-theme="neo"] ::selection { background: var(--volt); color:#fff; }
[data-theme="neo-dark"] ::selection { background: var(--volt); color:#fff; }

/* Cartes : liseré plus net + hover qui claque */
[data-theme="neo"] .card, [data-theme="neo-dark"] .card { border-radius: var(--r-lg); }
[data-theme="neo-dark"] .card-hover:hover { border-color: var(--volt); }
[data-theme="neo"] .card-hover:hover { border-color: var(--rose-300); }

/* Tags/badges un poil plus affirmés */
[data-theme="neo"] .tag, [data-theme="neo"] .badge,
[data-theme="neo-dark"] .tag, [data-theme="neo-dark"] .badge { font-weight: 700; }

/* ---- Nav links (menu) ---- */
.navlink {
  position: relative; padding: 9px 15px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 650; white-space: nowrap; color: var(--ink-3);
  transition: color .15s, background .15s, box-shadow .2s, transform .12s;
}
.navlink:hover { color: var(--ink); background: var(--surface-2); }
.navlink.on { color: var(--ink); background: var(--surface-2); }
.navlink:active { transform: translateY(1px); }

/* Neo : menu qui claque (clair + sombre) */
[data-theme="neo"] .navlink,
[data-theme="neo-dark"] .navlink { color: var(--ink-2); font-weight: 700; }
[data-theme="neo"] .navlink:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--rose) 12%, transparent);
}
/* Sombre : survol néon animé — glow + liseré dégradé */
[data-theme="neo-dark"] .navlink { overflow: hidden; }
[data-theme="neo-dark"] .navlink::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .2s ease;
}
[data-theme="neo-dark"] .navlink:hover {
  color: #fff;
  background: color-mix(in srgb, var(--volt) 16%, transparent);
  box-shadow: 0 8px 22px -8px rgba(155,107,255,.55);
  text-shadow: 0 0 14px rgba(255,61,150,.55);
}
[data-theme="neo-dark"] .navlink:hover::before { opacity: .9; }
[data-theme="neo-dark"] .navlink.on::before { opacity: 0; }
[data-theme="neo"] .navlink.on,
[data-theme="neo-dark"] .navlink.on {
  color: #fff; background: var(--grad);
  box-shadow: 0 8px 18px -6px rgba(255,30,136,.55);
}
[data-theme="neo-dark"] .navlink.on { box-shadow: 0 8px 22px -6px rgba(255,61,150,.55); }
[data-theme="neo"] .navlink.on:hover,
[data-theme="neo-dark"] .navlink.on:hover { color: #fff; filter: brightness(1.06); }

/* Panneaux "inversés" (CTA, définition, footer) : sombres et stables
   quel que soit le thème, pour ne jamais s'inverter en dark mode. */
.panel-invert { background: #100C1A !important; color: #F5F2FB !important; border: none !important; }
.panel-invert h1, .panel-invert h2, .panel-invert h3 { color: #FFFFFF; }
[data-theme="neo"] .panel-invert, [data-theme="neo-dark"] .panel-invert {
  background: radial-gradient(120% 140% at 100% 0%, rgba(122,43,245,.28), transparent 55%), #0E0A18 !important;
}
[data-theme="neo-dark"] .panel-invert { background: radial-gradient(120% 140% at 100% 0%, rgba(155,107,255,.22), transparent 55%), #14101E !important; border: 1px solid #2A2338 !important; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--rose); color: #fff; }

/* ---------- TYPE SCALE ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.t-eyebrow { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.t-mono { font-family: var(--font-mono); }
.t-muted { color: var(--ink-3); }
.t-dim { color: var(--ink-2); }

/* ============================================================
   BASE COMPONENTS
   ============================================================ */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease, border-color .15s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: var(--sh-rose); }
.btn-primary:hover { background: var(--rose-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-soft { background: var(--rose-50); color: var(--rose-700); }
.btn-soft:hover { background: var(--rose-100); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: .9; }
.btn-sm { padding: 7px 13px; font-size: 13.5px; min-height: 36px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; min-height: 52px; }
.btn-icon { padding: 0; width: 42px; height: 42px; border-radius: var(--r-pill); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Tags / chips */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-education  { color: var(--c-education);  background: var(--c-education-bg);  border-color: transparent; }
.tag-sante      { color: var(--c-sante);      background: var(--c-sante-bg);      border-color: transparent; }
.tag-prevention { color: var(--c-prevention); background: var(--c-prevention-bg); border-color: transparent; }
.tag-bienetre   { color: var(--c-bienetre);   background: var(--c-bienetre-bg);   border-color: transparent; }
.tag-plaisir    { color: var(--c-plaisir);    background: var(--c-plaisir-bg);    border-color: transparent; }

/* Badges (status) */
.badge { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; padding:3px 10px; border-radius:var(--r-pill); white-space:nowrap; }
.badge-ok   { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--surface-2); color: var(--ink-3); border:1px solid var(--line); }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.card-pad { padding: 22px; }
.card-hover { transition: transform .16s ease, box-shadow .22s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--line-2); }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 15px; transition: border-color .15s, box-shadow .15s;
  min-height: 46px;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--rose); box-shadow: var(--ring); outline: none; }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

/* Search bar */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill); padding: 4px 6px 4px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar:focus-within { border-color: var(--rose); box-shadow: var(--ring); }
.searchbar input { flex: 1; border: none; background: none; outline: none; font-size: 15.5px; padding: 9px 0; min-height: 40px; }

/* Avatar */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--font-display); font-weight: 700; color: #fff; overflow: hidden; flex: none; }

/* Logo placeholder tile (member logos) */
.logo-tile { display:flex; align-items:center; justify-content:center; background: var(--surface-2); border:1px solid var(--line); border-radius: var(--r-md); font-family: var(--font-display); font-weight: 800; color: var(--ink); overflow:hidden; flex:none; }

/* Image placeholder (striped) */
.img-ph {
  background:
    repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 11px),
    var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; text-align: center; padding: 12px;
}

/* Divider */
.hr { height: 1px; background: var(--line); border: none; }

/* Pills / segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 7px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-3); min-height: 36px; transition: all .15s; white-space: nowrap; flex: none; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
[data-theme="editorial"] .seg button.on { border:1px solid var(--ink); box-shadow:none; }

/* Scrollbar */
.scroll-thin::-webkit-scrollbar { width: 9px; height: 9px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 2px solid var(--bg); }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }

/* Utility */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Animations */
@keyframes fadeUp { from { transform: translateY(10px); } to { transform: none; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.anim-fade { animation: fadeUp .4s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
