/* =========================================================================
   Design tokens — Oddział Chirurgii Urazowo-Ortopedycznej
   Direction: "scrub & plaster". Deep surgical-teal rail, cool mineral canvas,
   white work surfaces. One typeface (Atkinson Hyperlegible Next — designed
   for low-vision legibility), generous sizes for 1366×768 ward monitors.
   Colour never carries meaning alone: every status has an icon + word.
   ========================================================================= */

@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.e8da57bc0c3d.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-400-normal.bcad3501e62c.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.9b70e98b04c2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-400-italic.e1461a356958.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-500-normal.042e3fd7cb27.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-500-normal.ec2777870c24.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.617b4197a93a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-700-normal.521d9348d7ad.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* ---- base palette ---- */
  --c-scrub-900: #0b2f30;   /* rail, darkest */
  --c-scrub-800: #0f3d3e;   /* rail */
  --c-scrub-700: #155455;
  --c-teal-700: #0a6b67;    /* primary action, links (6.0:1 on white) */
  --c-teal-600: #0d7f7a;
  --c-teal-100: #d9efec;
  --c-teal-50:  #edf7f5;
  --c-canvas:   #eef2f1;    /* cool mineral page background */
  --c-surface:  #ffffff;
  --c-sunken:   #f5f8f7;
  --c-line:     #d3dcda;
  --c-line-strong: #aebcb9;
  --c-ink:      #172629;    /* body text 15.6:1 */
  --c-ink-2:    #45575b;    /* secondary text 7.4:1 */
  --c-ink-3:    #5f7276;    /* hints 5.1:1 */
  --c-plaster:  #f7f4ee;    /* warm accent surface (cast plaster), used sparingly */

  /* ---- semantic ---- */
  --color-bg: var(--c-canvas);
  --color-surface: var(--c-surface);
  --color-text: var(--c-ink);
  --color-text-2: var(--c-ink-2);
  --color-text-3: var(--c-ink-3);
  --color-border: var(--c-line);
  --color-border-strong: var(--c-line-strong);
  --color-primary: var(--c-teal-700);
  --color-primary-hover: #075955;
  --color-primary-soft: var(--c-teal-100);
  --color-focus: #f2a900;   /* amber focus ring: visible on teal rail AND white */

  /* ---- tones for badges / alerts: fg, bg, border ---- */
  --tone-neutral-fg: #364649; --tone-neutral-bg: #e9eeed; --tone-neutral-bd: #c7d2d0;
  --tone-info-fg:    #1c4c86; --tone-info-bg:    #e4edf9; --tone-info-bd:    #b3c9ea;
  --tone-accent-fg:  #085a56; --tone-accent-bg:  #dbf0ed; --tone-accent-bd:  #9fd2cb;
  --tone-success-fg: #1b6640; --tone-success-bg: #e1f2e7; --tone-success-bd: #a8d5b9;
  --tone-warning-fg: #84470a; --tone-warning-bg: #fcefd8; --tone-warning-bd: #ebc58a;
  --tone-danger-fg:  #a1261c; --tone-danger-bg:  #fbe5e2; --tone-danger-bd:  #eeb0a8;
  --tone-muted-fg:   #5b6a6e; --tone-muted-bg:   #f1f3f3; --tone-muted-bd:   #d5dcdc;

  /* ---- day load levels (always paired with icon + word) ---- */
  --load-free:     #2b7a4b;
  --load-free-bg:  #e3f3e8;
  --load-moderate: #9a6100;
  --load-moderate-bg: #fcf0d6;
  --load-heavy:    #c0450b;
  --load-heavy-bg: #fde6d8;
  --load-full:     #9e1c24;
  --load-full-bg:  #f9dfe1;
  --load-closed:   #66767a;
  --load-closed-bg:#eceff0;

  /* admissions to the ward: a separate layer next to surgeries (violet + bed icon + dashed pill) */
  --adm-fg: #553a8c;
  --adm-bg: #f1ecfa;
  --adm-bd: #a990d6;

  /* ---- absence kinds: fill / edge / text ---- */
  --abs-vacation-bg: #dcebfb;  --abs-vacation-bd: #5b8fd6;  --abs-vacation-fg: #1d4b86;
  --abs-ondemand-bg: #ece4fa;  --abs-ondemand-bd: #8b6cd0;  --abs-ondemand-fg: #4a2e8c;
  --abs-sick-bg:     #fbe2e7;  --abs-sick-bd:     #d4587a;  --abs-sick-fg:     #8c1f3d;
  --abs-training-bg: #d9f1ea;  --abs-training-bd: #2f9c80;  --abs-training-fg: #125b4a;
  --abs-trip-bg:     #e2e6f6;  --abs-trip-bd:     #5a68b5;  --abs-trip-fg:     #2c3878;
  --abs-care-bg:     #fdf0d4;  --abs-care-bd:     #d39b2a;  --abs-care-fg:     #774f07;
  --abs-other-bg:    #efebe4;  --abs-other-bd:    #a39684;  --abs-other-fg:    #594d3d;
  --abs-hidden-bg:   #eef0f1;  --abs-hidden-bd:   #8a979d;  --abs-hidden-fg:   #3d4a4f;

  /* ---- typography (scale ≈ 1.2, base 16 px) ---- */
  --font-sans: "Atkinson Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-xs: 0.8125rem;  /* 13 */
  --fs-sm: 0.875rem;   /* 14 */
  --fs-md: 1rem;       /* 16 body */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.375rem;   /* 22 h2 */
  --fs-2xl: 1.75rem;   /* 28 h1 */
  --fs-3xl: 2.25rem;   /* 36 numbers in stat tiles */
  --lh-tight: 1.2;
  --lh-body: 1.5;
  --fw-regular: 400; --fw-medium: 500; --fw-bold: 700;

  /* ---- spacing (4 px grid) ---- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* ---- shape: radius grows with the size of the thing ---- */
  --r-xs: 4px;   /* chips, ticks */
  --r-sm: 6px;   /* inputs, buttons */
  --r-md: 10px;  /* cards, tables */
  --r-lg: 16px;  /* dialogs, login panel */
  --r-pill: 999px;

  /* ---- elevation (tinted with the scrub hue, not grey) ---- */
  --shadow-1: 0 1px 0 rgba(15, 61, 62, .06), 0 1px 3px rgba(15, 61, 62, .08);
  --shadow-2: 0 2px 4px rgba(15, 61, 62, .06), 0 8px 24px rgba(15, 61, 62, .10);
  --shadow-3: 0 12px 48px rgba(11, 47, 48, .28);

  /* ---- layout ---- */
  --rail-w: 248px;
  --page-pad: var(--sp-8);
  --content-max: 1560px;
  --control-h: 40px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1400px) {
  :root { --rail-w: 224px; --page-pad: var(--sp-6); }
}
@media (max-width: 1100px) {
  :root { --rail-w: 72px; --page-pad: var(--sp-5); }
}
