/* ==========================================================================
   NK Osijek Scouting — design tokens
   --------------------------------------------------------------------------
   PLAN §4.3. The blues are sampled from design/crest.png rather than guessed:
   the crest is built from #2D5DA7 (the water and the chequy), #5CB7E8 (the
   field behind the fortress) and #323235 (every outline). Those three are the
   club's colours, so they are the system's.

   Two-tone by design: blue chrome, white pages. A report is read for minutes
   at a time and dark backgrounds are for glancing, not reading.
   ========================================================================== */

:root {
    /* --- club identity, straight off the crest --- */
    --club-blue: #2d5da7;
    --club-blue-deep: #204175;
    --club-blue-dark: #19335c;
    --club-blue-darker: #122543;
    --club-sky: #5cb7e8;
    --club-sky-light: #8acff0;
    --club-outline: #323235;

    /* --- surfaces --- */
    --paper: #f5f7fa; /* page ground behind white cards */
    --surface: #ffffff; /* cards, tables, the content column */
    --surface-sunken: #eef2f7; /* table headers, inset panels */

    /* --- text --- */
    --ink: #14202b;
    --ink-muted: #5b6b7a;
    --ink-dim: #8a97a3;
    --on-blue: #ffffff;
    --on-blue-muted: #b9d0ea;

    /* --- lines --- */
    --line: #e1e6ec;
    --line-strong: #cbd4de;

    /* --- status --- */
    --ok: #1c8a5b;
    --ok-soft: #e6f5ee;
    --warn: #b8770a;
    --warn-soft: #fdf3e2;
    --bad: #b3341f;
    --bad-soft: #fbecea;

    /* --- verdict chips (PLAN §4.4) ---
       A / AB / B are the club blue; P is sky; T is outlined; N is grey. Colour
       never carries the meaning alone — the letter is always present. */
    --verdict-ready: var(--club-blue);
    --verdict-future: var(--club-sky);
    --verdict-watch: #ffffff;
    --verdict-no: #8a97a3;

    /* --- type ---
       One face. This is a tool, not a publication: no display cut, and
       tabular figures everywhere a number sits in a column. */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.8125rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.375rem;
    --fs-2xl: 1.75rem;

    --lh-tight: 1.25;
    --lh-body: 1.55;

    /* --- space: a 4px scale --- */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 64px;

    /* --- geometry --- */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;
    --r-full: 999px;

    --shadow-sm: 0 1px 2px rgba(20, 32, 43, 0.06);
    --shadow-md: 0 2px 8px rgba(20, 32, 43, 0.08);
    --shadow-lg: 0 18px 50px rgba(9, 22, 40, 0.35);

    --sidebar-w: 240px;
    --header-h: 60px;
}

/* --------------------------------------------------------------------------
   Reset — only what we actually rely on.
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    line-height: var(--lh-tight);
    font-weight: 650;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: var(--club-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Numbers in columns must line up — ratings, ages, heights, per-90 figures. */
.tnum,
td.num,
th.num {
    font-variant-numeric: tabular-nums;
}

/* Visible focus, everywhere, always. */
:focus-visible {
    outline: 2px solid var(--club-sky);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

.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;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
