/* najlepiejplatnezawody.pl: wydruk listy płac na papierze ciągłym.
   Biurko w chłodnej szarości, arkusz z perforowanymi marginesami i otworami traktora,
   pasy w tabelach, kwoty czcionką maszynową w fiolecie kalki, czerwona kreska mediany. */
@font-face { font-family: "Chivo"; src: url("/fonts/chivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Chivo"; src: url("/fonts/chivo-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Work"; src: url("/fonts/work-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Work"; src: url("/fonts/work-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Maszyna"; src: url("/fonts/roboto-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Maszyna"; src: url("/fonts/roboto-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --desk: #d5d2de;
  --paper: #f7f5ef;
  --slip: #fffdf8;
  --pas: #ebe7f3;
  --ink: #1c182b;
  --ink-2: #454059;
  --ink-3: #635e7a;
  --kalka: #432e96;
  --kalka-2: #b5a9e2;
  --rule: rgba(28, 24, 43, 0.16);
  --perf: rgba(28, 24, 43, 0.42);
  --red: #b0281f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --margines: 40px;
  --lewa: 280px;
  --odstep: 48px;
  --display: "Chivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --mono: "Maszyna", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--desk); color-scheme: light; -webkit-text-size-adjust: 100%; scrollbar-color: var(--kalka) var(--desk); }
body { margin: 0; font: 400 17px/1.6 "Work", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--desk); overflow-wrap: break-word; caret-color: var(--kalka); accent-color: var(--kalka); }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--kalka); color: var(--slip); }
a { color: var(--kalka); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgba(67, 46, 150, 0.45); transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease), background-color 150ms var(--ease); overflow-wrap: anywhere; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--kalka); outline-offset: 2px; }
strong, b { font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
.num, .pasek dd, .rubryki dd { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skok { position: absolute; left: -999px; top: 8px; background: var(--slip); padding: 8px 12px; z-index: 5; }
.skok:focus { left: 16px; }

/* Arkusz papieru ciągłego: marginesy z otworami po obu stronach, oddzielone perforacją. */
.arkusz { position: relative; max-width: 1280px; margin: 0 auto; background: var(--paper); padding: 0 calc(var(--margines) + 28px); min-height: 100vh; }
.arkusz::before, .arkusz::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--margines); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='44'%3E%3Ccircle cx='20' cy='22' r='6.5' fill='%23d5d2de' stroke='%231c182b' stroke-opacity='.22'/%3E%3C/svg%3E") center top / var(--margines) auto repeat-y; }
.arkusz::before { left: 0; border-right: 1px dashed var(--perf); }
.arkusz::after { right: 0; border-left: 1px dashed var(--perf); }

/* Główka druku: nazwa, etykieta wydawcy, rubryki i kupony z podstronami. */
.glowka { padding-top: 20px; }
.glowka-in { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.marka { font: 600 28px/1.1 var(--display); color: var(--ink); text-decoration: none; }
.marka:hover { color: var(--kalka); }
.etykieta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 4px 0; }
.etykieta:hover { color: var(--kalka); }
.etykieta span { display: inline-flex; }
.rubryki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.rubryki div { padding: 8px 12px 8px 0; }
.rubryki div + div { padding-left: 12px; border-left: 1px solid var(--rule); }
.rubryki dt { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.rubryki dd { font-size: 14px; line-height: 1.4; color: var(--kalka); }
.kupony { display: flex; flex-wrap: wrap; border-bottom: 1px dashed var(--perf); }
.kupony a { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px; font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--ink); text-decoration: none; text-align: center; border-left: 1px dashed var(--perf); }
.kupony a:first-child { border-left: 0; }
.kupony a:hover { background: var(--pas); color: var(--kalka); }
.kupony a[aria-current] { background: var(--ink); color: var(--paper); }
.kupony a:focus-visible { outline-offset: -3px; }

/* Czoło strony: tytuł i odpowiedź, obok pasek wypłaty z liczbami. */
.czolo { padding: 44px 0 36px; display: grid; gap: 32px var(--odstep); align-items: start; }
.czolo-tekst { min-width: 0; }
h1 { font-size: clamp(31px, 4.3vw, 54px); line-height: 1.06; letter-spacing: -0.012em; max-width: 19ch; }
.odpowiedz { margin-top: 20px; font-size: 19px; line-height: 1.55; max-width: 64ch; }
.metryka { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.pasek { background: var(--slip); border: 1px solid var(--rule); border-top: 1px dashed var(--perf); border-bottom: 1px dashed var(--perf); padding: 16px 16px 14px; min-width: 0; box-shadow: 0 6px 14px -10px rgba(28, 24, 43, 0.45); }
.pasek-h { font: 600 16px/1.3 var(--display); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.pasek dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--perf); }
.pasek dt { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.pasek dd { font-size: 14px; line-height: 1.35; color: var(--kalka); font-weight: 500; text-align: right; white-space: nowrap; }
.pasek .pasek-grupa dt { font-weight: 600; color: var(--ink); }
.pasek-stopka { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-3); }

/* Lista płac: rysunek strony głównej. */
.plac { margin: 0 0 56px; }
.plac-glowka { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.plac-nazwa { font: 600 22px/1.2 var(--display); }
.stempel { flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 10px 5px; border: 2px solid var(--kalka); color: var(--kalka); font: 500 12px/1.3 var(--mono); transform: rotate(-3deg); margin-bottom: 2px; }
.plac-tab { width: 100%; border-collapse: collapse; }
.plac-tab thead th { font: 500 13px/1.3 "Work", sans-serif; color: var(--ink-2); text-align: left; vertical-align: bottom; padding: 10px 12px 8px; border-bottom: 1px solid var(--ink); }
.plac-tab thead th.num { text-align: right; }
.plac-tab tbody tr:nth-child(odd) { background: var(--pas); }
.plac-tab td, .plac-tab tbody th { padding: 11px 12px; vertical-align: middle; text-align: left; font-size: 15px; line-height: 1.3; }
.plac-tab tbody th { font-weight: 500; max-width: 30ch; }
.plac-tab td.num { text-align: right; white-space: nowrap; font-size: 14px; }
.plac-tab .lp { color: var(--ink-3); width: 1%; }
.plac-tab td.glowna, .lista td.glowna { color: var(--kalka); font-weight: 600; font-size: 15px; }
.zakres { width: 30%; min-width: 220px; }
.tor { position: relative; display: block; height: 18px; border-left: 1px solid var(--perf); border-right: 1px solid var(--perf); background: linear-gradient(var(--rule), var(--rule)) left 33.333% top 0 / 1px 100% no-repeat, linear-gradient(var(--rule), var(--rule)) left 66.666% top 0 / 1px 100% no-repeat; }
.od-do { position: absolute; top: 5px; height: 8px; background: var(--kalka-2); transform-origin: left center; }
.kreska { position: absolute; top: 0; width: 3px; height: 18px; margin-left: -1px; background: var(--red); }
.os { width: 30%; min-width: 220px; }
.os-in { position: relative; display: block; height: 16px; }
.os-in i { white-space: nowrap; position: absolute; bottom: 0; transform: translateX(-50%); font: 400 11.5px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.os-in i:first-child { transform: none; }
.os-in i:last-child { transform: translateX(-100%); }
.ai { font-size: 14px; color: var(--ink-3); }
.ai-hi { color: var(--red); font-weight: 600; }
.ai-lo { color: var(--ink); font-weight: 500; }
.mala { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--perf); font: 400 12px/1.5 "Work", sans-serif; color: var(--ink-2); white-space: nowrap; }
.plac figcaption { margin-top: 12px; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 96ch; }

/* Treść: lewa rubryka z nagłówkiem lub pytaniem, prawa z odpowiedzią. Tabele na całą szerokość. */
.tresc { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
.tresc > *, .pyt > *, .zrodla > * { min-width: 0; }
.pyt, .zrodla { display: contents; }
.tresc h2, .pyt h3 { font-size: 23px; line-height: 1.2; margin-top: 44px; padding-top: 14px; border-top: 2px solid var(--ink); }
.pyt h3 { font-size: 20px; margin-top: 28px; border-top-width: 1px; }
.tresc p, .wykaz { max-width: 68ch; margin-top: 14px; }
.tresc .odp { font-size: 18px; line-height: 1.55; }
.wykaz li { position: relative; padding-left: 20px; margin-top: 8px; }
.wykaz li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; background: var(--kalka); }
.uwaga { padding: 12px 16px; border: 1px solid var(--rule); border-left: 1px dashed var(--perf); background: var(--slip); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.tresc .zastrzezenie { margin-top: 48px; }

.tabela { margin-top: 20px; }
.przewin { overflow-x: auto; scrollbar-width: thin; }
.przewin:focus-visible { outline-offset: 0; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
.tabela caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 96ch; }
.tabela thead th { font-family: "Work", sans-serif; font-weight: 500; font-size: 13px; color: var(--ink-2); text-align: left; vertical-align: bottom; padding: 8px 12px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tabela thead th.num { text-align: right; }
.tabela tbody tr:nth-child(odd) { background: var(--pas); }
.tabela td, .tabela tbody th { padding: 9px 12px; text-align: left; vertical-align: top; }
.tabela tbody th { font-weight: 500; min-width: 15ch; }
.tabela td.num { text-align: right; white-space: nowrap; font-size: 14px; }
.tabela .lp, .tabela .kod { color: var(--ink-3); }
.tabela:not(.lista) td { min-width: 12ch; }
.tabela:not(.lista) td:last-child:not(.num) { min-width: 30ch; }
.ai-kom { min-width: 15ch; }

.wydawca { margin-top: 48px; padding: 20px 24px 24px; background: var(--slip); border: 1px solid var(--ink); max-width: 720px; box-shadow: 0 6px 14px -10px rgba(28, 24, 43, 0.45); }
.wydawca-h { font: 600 20px/1.25 var(--display); margin-top: 0 !important; }
.wydawca .fakt { font-size: 15.5px; color: var(--ink-2); }
.przycisk { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; transition: background-color 150ms var(--ease); }
.przycisk:hover { background: var(--kalka); }
.zrodla ul { max-width: 86ch; margin-top: 6px; }
.zrodla li { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.zrodla p { font-size: 15px; color: var(--ink-2); }

.stopka { border-top: 1px dashed var(--perf); padding: 24px 0 40px; }
.stopka-in { display: grid; gap: 12px 32px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.stopka strong { display: block; font: 600 15px/1.3 var(--display); color: var(--ink); }
.stopka .ai-note { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }

@media (min-width: 720px) {
  .stopka-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .czolo.z-paskiem { grid-template-columns: minmax(0, 1fr) 320px; }
  .pasek { margin-top: 8px; }
  .tresc { grid-template-columns: var(--lewa) minmax(0, 1fr); column-gap: var(--odstep); }
  .tresc > *, .pyt > *, .zrodla > * { grid-column: 2; }
  .tresc h2, .pyt h3, .pyt h2 { grid-column: 1; }
  .tresc h2 + p, .tresc h2 + ul, .tresc h2 + aside, .pyt h3 + p { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .pyt h3 + p { margin-top: 28px; }
  .tresc > .tabela, .pyt > .tabela { grid-column: 1 / -1; }
  .tresc > .tabela:not(.pelna) { grid-column: 2; }
  .tresc h2:has(+ .tabela), .tresc h2:has(+ .pyt) { grid-column: 1 / -1; }
  .tresc .zastrzezenie, .wydawca { grid-column: 2; }
}
@media (max-width: 999px) {
  .pasek { max-width: 420px; }
}
@media (max-width: 760px) {
  :root { --margines: 14px; }
  body { font-size: 16.5px; }
  .arkusz { padding: 0 calc(var(--margines) + 14px); }
  .arkusz::before, .arkusz::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='30'%3E%3Ccircle cx='7' cy='15' r='3.2' fill='%23d5d2de' stroke='%231c182b' stroke-opacity='.22'/%3E%3C/svg%3E"); }
  .marka { font-size: 23px; }
  .rubryki { grid-template-columns: 1fr; }
  .rubryki div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
  .rubryki div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .rubryki dd { text-align: right; font-size: 13px; }
  .kupony { display: grid; grid-template-columns: 1fr 1fr; }
  .kupony a { border-left: 0; border-top: 1px dashed var(--perf); justify-content: flex-start; text-align: left; padding: 8px 10px; }
  .kupony a:nth-child(-n + 2) { border-top: 0; }
  .kupony a:nth-child(2n) { border-left: 1px dashed var(--perf); }
  .czolo { padding: 28px 0 28px; }
  .tabela td, .tabela tbody th, .tabela thead th { padding-left: 8px; padding-right: 8px; }
  .tabela tbody th { min-width: 17ch; }
  .odpowiedz { font-size: 17.5px; }
  .tresc .odp { font-size: 17px; }
  .tresc h2, .pyt h3 { font-size: 21px; margin-top: 36px; }
  .pyt h3 { font-size: 19px; margin-top: 24px; }

  /* Lista płac na telefonie: każdy wiersz staje się odcinkiem z podpisanymi polami. */
  .plac-glowka { align-items: flex-start; }
  .plac-nazwa { font-size: 19px; }
  .plac-tab thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .plac-tab, .plac-tab tbody { display: block; }
  .plac-tab tbody tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); gap: 2px 8px; padding: 12px 8px; }
  .plac-tab td, .plac-tab tbody th { padding: 0; }
  .plac-tab .lp { grid-column: 1; grid-row: 1; width: auto; text-align: left; font-size: 14px; padding-top: 1px; }
  .plac-tab tbody th { grid-column: 2 / -1; grid-row: 1; max-width: none; font-size: 15.5px; }
  .plac-tab .zakres { grid-column: 2 / -1; width: auto; min-width: 0; padding: 6px 0 4px; }
  .plac-tab tbody td.num:not(.lp), .plac-tab tbody td.ai-kom { text-align: left; }
  .plac-tab tbody td:nth-child(3) { grid-column: 2 / -1; grid-row: 2; font-size: 16px; }
  .plac-tab tbody td:nth-child(4) { grid-row: 3; }
  .plac-tab tbody td:nth-child(5) { grid-column: 2; grid-row: 4; }
  .plac-tab tbody td:nth-child(6) { grid-column: 3; grid-row: 4; }
  .plac-tab tbody td:nth-child(7) { grid-column: 2 / -1; grid-row: 5; padding-top: 4px; }
  .plac-tab tbody td:nth-child(n + 5)::before, .plac-tab tbody td:nth-child(3)::before { content: attr(data-l); display: block; font: 400 12px/1.4 "Work", sans-serif; color: var(--ink-3); }
  .plac-tab tbody td:nth-child(3)::before { display: inline; margin-right: 8px; }
  .plac-tab tbody td:nth-child(7)::before { display: inline; margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  html, body { background: #fff; }
  .arkusz::before, .arkusz::after, .kupony, .wydawca { display: none; }
  .arkusz { padding: 0; }
}
