/* League Hub styles: tokens.css. Design tokens: type, radius, spacing and width scales, and the --t-* colors mapped to the shared light and dark brand tokens.
   Only custom properties live here; every other file uses them.
   Files load in this order: tokens.css, base.css, components.css, layout.css, pages.css, admin.css, refinements.css (App.razor). Later files override earlier ones; see docs/DESIGN-SYSTEM.md. */

/* Design tokens: type scale and radius scale. Colors live in the --t-* theme tokens below. */
:root { --fs-min: .8667rem; --fs-xs: var(--fs-min); --fs-sm: var(--fs-min); --fs-md: max(.875rem, var(--fs-min)); --fs-base: 1rem; --fs-lg: 1.2rem; --fs-xl: 1.45rem; --fs-2xl: 1.75rem; --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; }
/* Minimum text size: --fs-min is 13px (root is 15px), 14px on a phone. Every small size uses it; never hard-code a size below it. */
@media (max-width: 640px) { :root { --fs-min: .9333rem; } }
/* Colors come from the shared MK Codeworx brand package (brand-tokens.css: one Signal red, light and dark only).
   The --t-* names below are League Hub's own and map onto those shared tokens, so every page follows the active theme. */
:root {
  --page: var(--bg); --header: var(--surface); --panel: var(--surface); --panel-raised: var(--surface-2); --panel-soft: var(--surface-2);
  --border-strong: color-mix(in srgb, var(--text) 35%, var(--border));
  --accent: var(--brand); --accent-hover: var(--brand-fill-hover); --accent-soft: var(--brand-soft);
  --success: var(--good); --warning: var(--warn);
  --t-page: var(--bg); --t-foreground: var(--text); --t-muted: var(--muted);
  --t-panel: var(--surface); --t-panel-raised: var(--surface-2); --t-soft: color-mix(in srgb, var(--surface) 55%, var(--bg));
  --t-border: var(--border); --t-accent: var(--brand-fill); --t-accent-hover: var(--brand-fill-hover);
  --t-accent-text: var(--on-brand); --t-accent-soft: var(--brand-soft); --t-accent-soft-text: var(--on-brand-soft); --t-link: var(--brand);
  --t-header: var(--surface); --t-header-text: var(--text); --t-header-muted: var(--muted);
  --t-header-active: var(--brand-soft); --t-header-border: var(--border);
  --t-secondary: var(--surface-2); --t-secondary-hover: color-mix(in srgb, var(--surface-2) 82%, var(--text));
  --t-hero-left: #1d242d; --t-hero-mid: #2a323d; --t-hero-right: #12161c;
  --t-diamond-1: var(--brand); --t-diamond-2: var(--brand-deep); --t-diamond-3: color-mix(in srgb, var(--brand) 70%, var(--surface));
  --t-good: var(--good); --t-warn: var(--warn); --t-danger: var(--danger);
  --t-remote-bg: var(--info-soft); --t-remote-accent: var(--info); --t-remote-text: var(--text);
  --t-glass-shadow: #233e4418;
}
:root { --t-achievement-gold: #795512; }
:root[data-theme="dark"] { --t-glass-shadow: #0006; --t-achievement-gold: #f5dfac; }
/* Shared frame and surfaces */
:root {
  --layout-max: 1240px;
  --layout-gutter: clamp(14px, 2.4vw, 56px);
  --panel-radius: var(--radius-lg);
  --panel-shadow: 0 4px 16px var(--t-glass-shadow);
}
/* ==== Shared MK Codeworx foundations and layout refinements (docs/DESIGN-SYSTEM.md) ====
   Spacing, width and control tokens shared with MK Auth. New rules build on the --t-* theme tokens for light and dark. */
:root { --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-7:32px; --w-narrow:440px; --w-standard:1120px; --layout-wide:1600px; --control-h:42px; --control-h-compact:32px; }
/* Control height: every single-line field, dropdown and button uses --control-h (compact buttons --control-h-compact),
   so controls in a row line up. Touch screens get 44px targets for both. Set heights from these tokens, never from padding. */
@media (pointer: coarse) { :root { --control-h:44px; --control-h-compact:44px; } }
