/* treniraj.si v5 — tokens (SPEC §1). The ONLY place with colour literals and font sizes.
   Contrast figures are WCAG 2.x ratios, computed (not copied) — see _design/qa notes. */
:root{
  /* surfaces */
  --tr-black:#0B0C0E;        /* header, hero base, promo, newsletter, footer */
  --tr-black-2:#15171A;      /* raised dark surface (cards on dark, nav row) */
  --tr-white:#FFFFFF;
  --tr-grey-50:#F6F6F7;      /* alternate section bg, image wells */
  --tr-grey-100:#ECEDEF;     /* decorative hairlines on light (cards, hr, dividers) — 1.2:1, NOT for control borders */
  --tr-grey-300:#C9CBD0;     /* disabled / placeholder */
  --tr-grey-400:#878A91;     /* control borders (input, select, qty) — 3.5:1 on white, 3.2:1 on grey-50 (WCAG 1.4.11 ≥ 3:1) */
  --tr-grey-500:#6E7178;     /* muted text on light — 4.9:1 on white, 4.5:1 on grey-50 (AA; no reserve on grey-50 below 14px) */
  --tr-grey-700:#3A3D42;     /* secondary text on light — 10.9:1 on white */
  --tr-ink:#0B0C0E;          /* text on light */
  --tr-on-dark:#FFFFFF;
  --tr-on-dark-muted:rgba(255,255,255,.72);   /* 10.2:1 on black */
  --tr-on-dark-faint:rgba(255,255,255,.52);   /* 5.7:1 on black — smallest text on dark */
  --tr-line-dark:rgba(255,255,255,.14);       /* hairlines on dark */
  /* brand */
  --tr-red:#E4002B;          /* 4.85:1 on white → OK for text ≥ 18px bold and all UI; use --tr-red-ink for small text */
  --tr-red-ink:#C4001F;      /* 6.2:1 on white — small red text (prices ≤ 16px, links) */
  --tr-red-hover:#B80022;    /* 6.9:1 on white */
  --tr-red-on-dark:#FF2E4E;  /* 5.4:1 on --tr-black, 4.9:1 on --tr-black-2 — red text/accents on dark surfaces (the base red is only 3.8:1 there) */
  --tr-green:#0B7634;        /* "Na zalogi" — 5.75:1 on white, 5.3:1 on grey-50 (12–13px text needs ≥ 4.5:1) */
  --tr-green-on-dark:#3DDC84;/* 11:1 on black */
  --tr-star:#F5A524;         /* decorative only; never carries text */
  /* type */
  --tr-font:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;         /* body + UI */
  --tr-font-display:'Manrope','Inter',system-ui,sans-serif;                       /* headings ≥ 24px only */
  --tr-fs-11:.6875rem; /* tab-bar labels only (SPEC §9) */
  --tr-fs-12:.75rem; --tr-fs-13:.8125rem; --tr-fs-14:.875rem; --tr-fs-15:.9375rem; --tr-fs-16:1rem;
  --tr-fs-18:1.125rem; --tr-fs-20:1.25rem; --tr-fs-24:1.5rem; --tr-fs-28:1.75rem; --tr-fs-32:2rem; /* 32 = promo band price (SPEC §3.5) */
  --tr-fs-h2:clamp(1.75rem,1.2rem + 1.6vw,2.5rem);      /* 28–40 */
  --tr-fs-h1:clamp(2.5rem,1.6rem + 3.2vw,4.5rem);       /* 40–72 (hero) */
  --tr-fs-deco:clamp(4.5rem,2rem + 6vw,7.5rem);         /* 72–120: hero decorative outline text (SPEC §3.1 ~120px; hidden ≤1024) */
  --tr-lh-tight:1.1; --tr-lh-snug:1.3; --tr-lh:1.55;
  /* space (8px grid — the ONLY vertical rhythm) */
  --tr-s1:4px; --tr-s2:8px; --tr-s3:12px; --tr-s4:16px; --tr-s5:24px; --tr-s6:32px; --tr-s7:48px; --tr-s8:64px; --tr-s9:96px;
  --tr-section:var(--tr-s8);           /* vertical padding of every content section (desktop) */
  --tr-section-sm:var(--tr-s7);        /* ≤ 768px */
  /* shape */
  --tr-r-sm:4px; --tr-r:6px; --tr-r-lg:10px; --tr-r-pill:999px;
  --tr-border:1px solid var(--tr-grey-100);
  --tr-shadow:0 1px 2px rgba(0,0,0,.06);
  --tr-shadow-hover:0 10px 30px rgba(0,0,0,.10);
  /* icons (the only data-URIs with a literal colour; the chevron is ink-coloured — stroke='black' ≈ --tr-ink) */
  --tr-icon-chevron:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  /* layout */
  --tr-container:1440px; --tr-gutter:24px;   /* 16px ≤ 768px */
  --tr-header-h:64px; --tr-nav-h:44px;
  --tr-sticky-top:calc(var(--tr-header-h) + var(--tr-nav-h) + var(--tr-s4));   /* top offset under the sticky header — use `top:var(--tr-sticky-top)` for EVERY position:sticky element (sidebars, gallery, totals, account nav); never repeat this calc */
  --tr-tabbar-h:60px;        /* mobile bottom tab bar (SPEC §9) */
  --tr-sticky-h:72px;        /* mobile sticky add-to-cart bar (product page) */
  --tr-fab-gap:var(--tr-s5); /* gap between the FABs / cookie banner and whatever they sit on (12px ≤ 768, SPEC §9) */
  /* z-scale (fixed/sticky chrome, low → high). One scale for all files; never a literal z-index elsewhere. */
  --tr-z-tabbar:850; --tr-z-fab:900; --tr-z-sticky:940; --tr-z-header:1000; --tr-z-mega:1001;
  --tr-z-backdrop:1090; --tr-z-drawer:1100; --tr-z-cookie:1300; --tr-z-skip:2000;
  /* motion */
  --tr-ease:cubic-bezier(.2,0,.1,1); --tr-t:160ms; --tr-t-slow:320ms;
}
/* Veliki zasloni (≥ 1920 px): vsebnik raste z oknom (84 vw, največ 1760 px) — pri 2560 px stran ni več ozek pas na sredini */
@media (min-width:1920px){
  :root{ --tr-container:min(1760px, 84vw); }
}
@media (max-width:768px){
  :root{ --tr-gutter:16px; --tr-fab-gap:var(--tr-s3); }
}
