/* Złącznik — Industry design-system tokens (source: design handoff, styles.css
 * `:root`). Linked (with a majster_asset() ?v= cache-buster) by every page
 * shell right before app.css, and by the embedded Kalkulator instalacji
 * (includes/kalkulator.html), which links ONLY this file so the calculator's
 * own component CSS never collides with the app's. Retune colours/type here,
 * nowhere else. */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700&family=Barlow+Condensed:wght@400;600&display=swap');

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-accent-2: #728fab;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);
  --color-hairline: color-mix(in srgb, #1d1f20 8%, transparent);

  /* Tonal ramps — one shared lightness scale, so the same step of any role
     matches the others in visual value. */
  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  /* Stronger outline for secondary buttons (45% ink vs the 16% divider). */
  --color-line-strong: color-mix(in srgb, #1d1f20 45%, transparent);

  /* Colour per data type (design handoff "Opcja 1b — Nagłówek"): `mid` is
     the outline/icon, `light` the tint background, `dark` the text on light
     (contrast ≥ 7:1). Used by .type-<key> in app.css — never as raw hex in
     markup. Neutral = Archiwum / Konto. */
  --type-klient-mid: #4f8a8b;     --type-klient-light: #e6f1f1;     --type-klient-dark: #27494a;
  --type-zlecenie-mid: #5980a6;   --type-zlecenie-light: #eef6ff;   --type-zlecenie-dark: #2c455d;
  --type-wycena-mid: #6b8a5a;     --type-wycena-light: #edf3e8;     --type-wycena-dark: #34482c;
  --type-platnosc-mid: #a6854a;   --type-platnosc-light: #f7f1e4;   --type-platnosc-dark: #5a4624;
  --type-urzadzenie-mid: #7b78a6; --type-urzadzenie-light: #efeef7; --type-urzadzenie-dark: #3e3c5a;
  --type-awaria-mid: #a85a4e;     --type-awaria-light: #f7ebe9;     --type-awaria-dark: #5a2e27;
  --type-neutral-mid: #98989b;    --type-neutral-light: #e7e7ea;    --type-neutral-dark: #424244;
  /* Awaria banner on the job card. */
  --type-awaria-banner-sub: #f0d9d4;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  /* Shape: radius 0 everywhere — components are wireframe objects. */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;

  /* Elevation — only canvas frames (md) and toasts/dialogs (lg) cast shadows. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);
}

/* — blueprint frame: hairline box with four `+` registration marks drawn
     6px outside each corner. Every card / major section and every primary
     CTA wears `.blueprint` plus four <i class="corner tl|tr|bl|br"> children
     (majster_corners() in includes/helpers.php). Transparent: no fill. — */
.blueprint {
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: 0;
}
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px; pointer-events: none;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }
