/* HR Tapiso – reset, typografia, dostępność, narzędzia */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%;
  font-family: var(--font-sans); font-size: var(--fs-md); line-height: var(--lh-normal);
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 .75em; padding-left: 1.25em; }
small { font-size: var(--fs-xs); }
strong, b { font-weight: var(--fw-semibold); }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--sp-4) 0; }
code, kbd, pre { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--c-surface-3); padding: 1px 5px; border-radius: var(--radius-xs); }
pre { background: var(--c-surface-3); padding: var(--sp-3); border-radius: var(--radius-sm); overflow: auto; }
kbd { border: 1px solid var(--c-border-strong); border-bottom-width: 2px; border-radius: var(--radius-xs); padding: 0 5px; background: var(--c-surface); font-size: var(--fs-xs); }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; max-width: 100%; }
svg { fill: none; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
dialog { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--radius-xs); }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--c-primary-soft); }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 300; padding: 10px 14px; background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); font-weight: var(--fw-semibold); }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscript { padding: 24px; text-align: center; font-size: var(--fs-lg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* narzędzia */
.text-muted { color: var(--c-text-muted); }
.text-faint { color: var(--c-text-faint); }
.text-xs { font-size: var(--fs-xs); } .text-sm { font-size: var(--fs-sm); } .text-lg { font-size: var(--fs-lg); } .text-xl { font-size: var(--fs-xl); }
.fw-500 { font-weight: var(--fw-medium); } .fw-600 { font-weight: var(--fw-semibold); } .fw-700 { font-weight: var(--fw-bold); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-right { text-align: right; } .text-center { text-align: center; }
.uppercase { letter-spacing: .01em; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.flex { display: flex; } .flex-col { display: flex; flex-direction: column; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-start { align-items: flex-start; } .items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; } .justify-center { justify-content: center; }
.flex-1 { flex: 1 1 0; min-width: 0; } .shrink-0 { flex-shrink: 0; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); }
.grid { display: grid; }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); } .mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.mr-2 { margin-right: var(--sp-2); } .ml-auto { margin-left: auto; }
.w-full { width: 100%; } .hidden { display: none !important; }
.tone-success { color: var(--c-success-text); } .tone-warning { color: var(--c-warning-text); } .tone-danger { color: var(--c-danger-text); } .tone-info { color: var(--c-info-text); } .tone-primary { color: var(--c-primary-text); }
.clickable { cursor: pointer; }
.block { display: block; }
.min-w-0 { min-width: 0; }
