/* ══════════════════════════════════════════════
   GFP 2027 — Design Tokens & Base Styles
   ══════════════════════════════════════════════ */

/* ── RESET ── */
[x-cloak] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; overflow-x: hidden; }

/* ── COLOR TOKENS — Light Mode ── */
:root {
  --bg:              #F6F7F9;
  --surface:         #FFFFFF;
  --surface-2:       #EFF1F4;
  --border:          #E1E4E8;
  --border-hover:    #C9CED5;
  --text:            #0E1116;
  --text-secondary:  #4A525B;
  --text-muted:      #8A929B;
  --blue:            #0E9F4A;
  --blue-hover:      #0B823C;
  --blue-subtle:     #EAFBF0;
  --gold:            #F59E0B;
  --gold-subtle:     #FFFBEB;
  --green:           #10B981;
  --red:             #EF4444;
  --purple:          #8B5CF6;
  --shadow-sm:       0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:       0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg:       0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-card-hover: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
}

/* ── COLOR TOKENS — Dark Mode ── */
.dark {
  --bg:              #0A0B0D;
  --surface:         #121418;
  --surface-2:       #1A1D22;
  --border:          #272B31;
  --border-hover:    #3A3F47;
  --text:            #F3F5F7;
  --text-secondary:  #A6ADB5;
  --text-muted:      #6B727B;
  --blue:            #3DDC84;
  --blue-hover:      #2FC873;
  --blue-subtle:     rgba(61,220,132,0.12);
  --gold:            #F5A623;
  --gold-subtle:     rgba(245,166,35,0.10);
  --green:           #34D399;
  --red:             #F05252;
  --purple:          #EC4899;
  --shadow-sm:       0 1px 3px 0 rgb(0 0 0 / 0.35);
  --shadow-md:       0 4px 8px -1px rgb(0 0 0 / 0.35), 0 2px 4px -2px rgb(0 0 0 / 0.25);
  --shadow-lg:       0 10px 20px -3px rgb(0 0 0 / 0.40), 0 4px 8px -4px rgb(0 0 0 / 0.25);
  --shadow-card-hover: 0 20px 30px -5px rgb(0 0 0 / 0.40), 0 8px 12px -6px rgb(0 0 0 / 0.25);
}

/* ── BASE BODY ── */
body {
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.15s ease;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── HELPERS ── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-gradient {
  background: linear-gradient(130deg, var(--blue) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── COOKIE CONSENT (OneTrust) ──
   OneTrust ships its own navy/orange colours; match the site palette.
   IDs plus !important are needed to beat OneTrust's injected styles. */
#onetrust-banner-sdk,
#onetrust-pc-sdk {
  background-color: var(--surface) !important;
  color: var(--text-secondary) !important;
  border-top: 1px solid var(--border) !important;
}
#onetrust-banner-sdk h2,
#onetrust-banner-sdk #onetrust-policy-title,
#onetrust-pc-sdk h2,
#onetrust-pc-sdk h3 {
  color: var(--text) !important;
}
#onetrust-banner-sdk #onetrust-policy-text,
#onetrust-banner-sdk .ot-dpd-desc,
#onetrust-banner-sdk .ot-dpd-title {
  color: var(--text-secondary) !important;
}
#onetrust-banner-sdk a,
#onetrust-pc-sdk a {
  color: var(--blue) !important;
}
#onetrust-banner-sdk #onetrust-accept-btn-handler,
#onetrust-banner-sdk #onetrust-reject-all-handler,
#onetrust-pc-sdk #accept-recommended-btn-handler,
#onetrust-pc-sdk .save-preference-btn-handler,
#onetrust-pc-sdk .ot-pc-refuse-all-handler {
  background-color: var(--btn-bg) !important;
  border-color: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  border-radius: 10px !important;
}
#onetrust-banner-sdk #onetrust-reject-all-handler,
#onetrust-pc-sdk .ot-pc-refuse-all-handler {
  background-color: transparent !important;
  border: 1px solid var(--border-hover) !important;
  color: var(--text) !important;
}
#onetrust-banner-sdk #onetrust-pc-btn-handler {
  background-color: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  border-radius: 10px !important;
}
#onetrust-banner-sdk .ot-link-btn,
#onetrust-banner-sdk .onetrust-vendors-list-handler {
  color: var(--blue) !important;
}

/* ── HOME STATS STRIP ──
   The strip's markup and inline colours live in the "Publisher" HTML
   module (admin, one copy per language). Its own background and glows
   stay; only the text colours follow the site palette. */
/* The strip is dark in both themes, so its text is fixed light. */
.stats-strip .stats-number { color: #FFFFFF !important; }
.stats-strip .stats-number span { color: var(--btn-bg) !important; }
.stats-strip .stats-label { color: rgba(255, 255, 255, 0.55) !important; }
