@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 112.5%;
  font-display: swap;
  src: url(/static/fonts/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 112.5%;
  font-display: swap;
  src: url(/static/fonts/archivo-latin.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 Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/static/fonts/atkinson-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/static/fonts/atkinson-latin.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;
}
/* kolejki.waw.pl — papier biletomatu, granat tablic urzędowych, czerwień i żółć Warszawy */
:root {
  color-scheme: light;
  --paper: #f4f6f9;
  --card: #ffffff;
  --ink: #13294b;
  --ink-2: #3f4e66;
  --muted: #5f6b80;
  --line: #d6dde7;
  --line-soft: #e7ecf2;
  --red: #c8102e;
  --yellow: #ffc72c;
  --yellow-ink: #13294b;
  --focus: #c8102e;
  --link: #1c4fa0;
  --l0: #e9f0f9; --l1: #b7d3f6; --l2: #86b6ef; --l3: #5598e7; --l4: #2a78d6; --l5: #184f95;
  --l-ink-dark: #ffffff;
  --closed: repeating-linear-gradient(135deg, #e3e7ee 0 3px, #f4f6f9 3px 7px);
  --p90: #c9d6e8;
  --shadow: 0 1px 0 rgba(19, 41, 75, .06), 0 8px 24px -12px rgba(19, 41, 75, .25);
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-disp: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --wrap: 1120px;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d1526; --card: #152038; --ink: #e9eef6; --ink-2: #bcc7d8; --muted: #93a0b6;
    --line: #2a3754; --line-soft: #1f2a44; --red: #ff6b7d; --link: #8fbaf5; --focus: #ffc72c;
    --l0: #1b2842; --l1: #184f95; --l2: #256abf; --l3: #3987e5; --l4: #6da7ec; --l5: #cde2fb;
    --closed: repeating-linear-gradient(135deg, #1d2943 0 3px, #111a2e 3px 7px);
    --p90: #2e4268;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1526; --card: #152038; --ink: #e9eef6; --ink-2: #bcc7d8; --muted: #93a0b6;
  --line: #2a3754; --line-soft: #1f2a44; --red: #ff6b7d; --link: #8fbaf5; --focus: #ffc72c;
  --l0: #1b2842; --l1: #184f95; --l2: #256abf; --l3: #3987e5; --l4: #6da7ec; --l5: #cde2fb;
  --closed: repeating-linear-gradient(135deg, #1d2943 0 3px, #111a2e 3px 7px);
  --p90: #2e4268;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-body);
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

h1, h2, h3, .h3 { font-family: var(--f-disp); font-stretch: 112.5%; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); line-height: 1.04; font-weight: 800; letter-spacing: -.01em; max-width: 22ch; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.15; font-weight: 700; }
h3, .h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; max-width: 72ch; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.sub { color: var(--muted); margin-top: -.25em; }
.addr { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; }

/* nagłówek */
.top { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .top { background: #0a1120; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top { background: #0a1120; border-bottom: 1px solid var(--line); } }
.top-in { display: grid; grid-template-columns: auto 1fr auto; gap: 12px 24px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.25rem/1 var(--f-disp); font-stretch: 112.5%; }
.logo-dom { color: var(--yellow); }
.logo-mark { width: 30px; height: 30px; }
.logo-mark path:first-child { fill: #fff; }
.logo-mark .logo-num { stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; fill: none; }
:root .logo-mark .logo-num { stroke: #c8102e; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: #dfe6f1; text-decoration: none; font-weight: 700; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }
.search { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.search input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 2px solid transparent; border-radius: 999px; padding: 9px 16px 9px 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235f6b80' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px 50%;
}
.search input:focus { outline: none; border-color: var(--yellow); }
.search-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
  list-style: none; background: var(--card); color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  border: 1px solid var(--line); max-height: min(70vh, 460px); overflow: auto;
}
.search-list li a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.search-list li a .k { font-size: .75rem; color: var(--muted); font-weight: 700; margin-right: 6px; }
.search-list li a .addr { display: block; }
.search-list li[aria-selected="true"] a, .search-list li a:hover { background: var(--line-soft); }
.search-list .none { padding: 8px 10px; color: var(--muted); }
@media (max-width: 860px) {
  .top-in { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .nav { grid-column: 1 / -1; grid-row: 3; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
}

/* hero */
.hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, var(--card), var(--paper)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-ticket { position: sticky; top: 16px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 28px; } .hero-ticket { position: static; } }

/* bilet z biletomatu — jedyny „głośny” element */
.ticket {
  --edge: 9px;
  position: relative; background: var(--card); color: var(--ink); padding: 22px 24px 20px;
  -webkit-mask: radial-gradient(circle var(--edge) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--edge) * 2.6) 51% repeat-x,
                radial-gradient(circle var(--edge) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--edge) * 2.6) 51% repeat-x;
          mask: radial-gradient(circle var(--edge) at 50% 0, #0000 98%, #000) 50% 0 / calc(var(--edge) * 2.6) 51% repeat-x,
                radial-gradient(circle var(--edge) at 50% 100%, #0000 98%, #000) 50% 100% / calc(var(--edge) * 2.6) 51% repeat-x;
  max-width: 440px;
}
.ticket-wrap { filter: drop-shadow(0 10px 18px rgba(19, 41, 75, .18)); max-width: 440px; }
.ticket-head { display: grid; gap: 2px; padding: 8px 0 14px; border-bottom: 2px dashed var(--line); }
.ticket-kicker { font-weight: 700; color: var(--red); }
.ticket-office { font-weight: 700; }
.ticket-case { color: var(--ink-2); }
.ticket-body { display: grid; padding: 16px 0 10px; }
.ticket-day { font-size: 1.05rem; color: var(--ink-2); }
.ticket-day::first-letter { text-transform: uppercase; }
.ticket-time { font: 800 clamp(3.2rem, 2.4rem + 3.5vw, 4.6rem)/1 var(--f-disp); font-stretch: 112.5%; letter-spacing: -.02em; color: var(--ink); }
.ticket-to { font-size: .38em; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: .25em; }
.ticket-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 4px; padding-top: 12px; border-top: 2px dashed var(--line); }
.ticket-foot dt { font-size: .85rem; color: var(--muted); }
.ticket-foot dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.ticket-link { display: inline-block; margin-top: 12px; font-weight: 700; }
.dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .4em; vertical-align: -.05em; box-shadow: inset 0 0 0 1px rgba(19, 41, 75, .25); }

/* kolory poziomów kolejki */
.l0 { background: var(--l0); } .l1 { background: var(--l1); } .l2 { background: var(--l2); }
.l3 { background: var(--l3); } .l4 { background: var(--l4); } .l5 { background: var(--l5); }
.lx { background: var(--closed); }

/* formularz najlepszego terminu */
.finder { display: grid; gap: 16px; margin-top: 22px; }
.field label, .chips legend { display: block; font-weight: 700; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); }
select, .btn, .btn-ghost { font: inherit; }
select {
  width: 100%; padding: 10px 40px 10px 12px; border: 2px solid var(--line); border-radius: 8px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6b80' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); appearance: none; min-height: 46px;
}
select:focus-visible { border-color: var(--ink); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--card); cursor: pointer; font-weight: 700; color: var(--ink-2); min-height: 40px;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.where-row { display: flex; gap: 8px; }
.where-row select { flex: 1; }
.btn {
  justify-self: start; border: 0; border-radius: 8px; padding: 12px 22px; min-height: 48px;
  background: var(--yellow); color: var(--yellow-ink); font-weight: 800; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.btn:hover { filter: brightness(1.04); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--card);
  color: var(--ink); border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-ghost[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* wyniki wyszukiwarki */
.finder-results { margin-top: 20px; }
.finder-results .empty, .finder-results .msg { color: var(--muted); }
.results-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-bottom: 10px; }
.results-head h3 { margin: 0; }
.term-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.term-list a {
  display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 4px 16px; align-items: center;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none;
}
.term-list a:hover { border-color: var(--ink); }
.t-when { font-weight: 800; font-family: var(--f-disp); }
.t-where { font-weight: 700; }
.t-n { font-weight: 700; white-space: nowrap; }
.t-dist { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
@media (max-width: 560px) { .term-list a { grid-template-columns: 1fr auto; } .t-where { grid-column: 1 / -1; grid-row: 2; } }

/* sekcje */
.block { margin-top: 44px; margin-bottom: 44px; }
.page-head { margin: 8px 0 28px; }
.lead-office { font-size: 1.15rem; color: var(--ink-2); }
.group-tag { color: var(--red); font-weight: 700; margin-bottom: .35em; }
.split { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts p { color: var(--ink-2); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 16px; }
.kv div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; }
.kv dt { font-size: .85rem; color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.note { color: var(--muted); font-size: .95rem; border-left: 4px solid var(--yellow); padding-left: 12px; }
.crumbs ol { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--muted); }

.best-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.best-list li {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 7.5rem 9rem; gap: 6px 16px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.best-case { font-weight: 700; }
.best-where { color: var(--ink); text-decoration: none; font-weight: 700; }
.best-where:hover { text-decoration: underline; }
.best-when { font: 800 1.15rem/1 var(--f-disp); font-stretch: 112.5%; }
.best-n { font-weight: 700; }
@media (max-width: 720px) { .best-list li { grid-template-columns: 1fr auto; } .best-where { grid-column: 1; } .best-when { grid-column: 2; grid-row: 1; } .best-n { grid-column: 2; grid-row: 2; } }

.groups { columns: 3 260px; column-gap: 32px; }
.group { break-inside: avoid; margin-bottom: 20px; }
.group h3 { margin-bottom: .3em; }
.group ul { list-style: none; padding: 0; margin: 0; }
.group li { padding: 3px 0; }
.office-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.office-grid a { display: block; height: 100%; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.office-grid a:hover { border-color: var(--ink); }
.o-name { font-weight: 700; }
.how { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

/* legenda */
.legend { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 14px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(19, 41, 75, .12); }
.sw.closed { background: var(--closed); }

/* heatmapy (tabele) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.heat { border-collapse: separate; border-spacing: 2px; font-size: .9rem; }
.heat th { font-weight: 700; color: var(--ink-2); text-align: left; padding: 4px 8px 4px 0; white-space: nowrap; }
.heat thead th { text-align: center; font-weight: 400; color: var(--muted); padding: 0 0 4px; }
.heat thead th:first-child { text-align: left; }
.heat td { min-width: 30px; height: 30px; border-radius: 4px; }
.heat-days td { min-width: 42px; }
.heat-days th a { color: var(--ink); text-decoration: none; font-weight: 700; }
.heat-days th a:hover { text-decoration: underline; }
.heat-days th .addr { font-size: .8rem; }
.heat td[data-tip] { cursor: default; }
.acc-head { font-size: 1.15rem; line-height: 1.45; }
.acc { border-collapse: collapse; width: 100%; max-width: 760px; margin: 8px 0 4px; }
.acc th, .acc td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.acc thead th { font-weight: 400; color: var(--muted); font-size: .9rem; }
.acc tbody th { font-weight: 400; color: var(--ink-2); max-width: 22rem; }
.acc td { width: 26%; min-width: 120px; white-space: nowrap; }
.acc-bar { display: inline-block; vertical-align: middle; height: 12px; width: calc(var(--w) * .7); min-width: 2px; background: var(--l2); border-radius: 0 4px 4px 0; margin-right: 8px; }
.acc-v { font-variant-numeric: tabular-nums; font-weight: 700; }
.acc .ours th { font-weight: 700; color: var(--ink); }
.acc .ours .acc-bar { background: var(--l5); }
@media (max-width: 560px) {
  .acc td { width: auto; min-width: 0; }
  .acc-bar { width: calc(var(--w) * .4); margin-right: 4px; height: 10px; }
  .acc tbody th { font-size: .9rem; }
}
.heat td.ext { background: var(--closed); color: var(--ink-2); font-size: .85rem; padding: 0 10px; white-space: normal; }
.term-list .ext a { border-style: dashed; }
.term-list .ext .t-when, .term-list .ext .t-n { color: var(--muted); font-weight: 400; font-family: var(--f-body); }
.heat-cal tbody tr.wk th, .heat-cal tbody tr.wk td { border-top: 6px solid transparent; background-clip: padding-box; }
.heat-cal .c-best { background: none; font-family: var(--f-disp); font-weight: 700; color: var(--ink); padding-left: 10px; text-align: left; white-space: nowrap; }
.heat-cal thead .c-best { font-family: var(--f-body); font-weight: 400; color: var(--muted); }
.day-btn { font: inherit; font-weight: 700; color: var(--ink-2); background: none; border: 0; padding: 4px 8px; border-radius: 6px; cursor: pointer; text-align: left; min-width: 6.5rem; }
.day-btn:hover { background: var(--line-soft); }
tr[aria-selected="true"] .day-btn { background: var(--ink); color: var(--paper); }
.tip {
  position: fixed; z-index: 30; pointer-events: none; background: var(--ink); color: var(--paper);
  padding: 6px 10px; border-radius: 6px; font-size: .875rem; max-width: 280px; box-shadow: var(--shadow);
}

/* wykres dnia */
.chart-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 8px; }
.daychart { width: 100%; height: auto; display: block; }
.daychart .grid { stroke: var(--line-soft); stroke-width: 1; }
.daychart .axis { stroke: var(--line); stroke-width: 1; }
.daychart .tick { fill: var(--muted); font: 12px var(--f-body); }
.daychart .p90 { fill: var(--p90); }
.daychart .p50 { fill: var(--l4); }
.daychart .p50.l0, .daychart .p50.l1 { fill: var(--l3); }
.daychart .closed { fill: var(--line); }
.daychart .hit { fill: transparent; }
.daychart .bar:hover .hit, .daychart .bar:focus .hit { fill: var(--line-soft); }
.chart-key { font-size: .875rem; color: var(--muted); margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.key-p50, .key-p90 { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--l4); }
.key-p90 { background: var(--p90); margin-left: 8px; }

/* wiersze spraw (urząd / inne urzędy) */
.qgroup { margin: 28px 0; }
.case-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(12rem, auto); gap: 6px 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cr-name { font-weight: 700; }
.cr-strip { display: inline-flex; gap: 2px; }
.cr-strip i { width: 12px; height: 18px; border-radius: 2px; display: block; }
.cr-best { font-size: .95rem; white-space: nowrap; }
@media (max-width: 640px) { .case-rows li { grid-template-columns: 1fr auto; } .cr-best { grid-column: 1 / -1; white-space: normal; } }

/* FAQ i tekst */
.faq { margin: 48px 0; max-width: 780px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.finder-page { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.finder-page .finder { margin-top: 0; }
.finder-page .finder-results { margin-top: 0; }
@media (max-width: 860px) { .finder-page { grid-template-columns: 1fr; } }
.finder-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.finder-block .finder { margin-top: 8px; }
@media (min-width: 900px) { .finder-block .finder { grid-template-columns: 1fr 1fr; align-items: end; } .finder-block .chips { grid-column: span 1; } }

/* stopka */
.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.foot a { color: var(--ink-2); margin-right: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .ticket.is-new { animation: print .45s cubic-bezier(.2, .8, .2, 1); }
  @keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-8px); } to { clip-path: inset(0 0 0 0); transform: none; } }
}
@media (forced-colors: active) { .heat td, .cr-strip i, .sw { forced-color-adjust: none; } }
@media print { .top, .search, .finder, .foot { display: none; } }

#dzien { margin-top: 28px; }
.chart-wrap .small { margin: 4px 0 0; }
.heat-days thead th { white-space: normal; max-width: 3.2em; line-height: 1.15; font-size: .82rem; vertical-align: bottom; }
.term-list a { grid-template-columns: 12.5rem 1fr auto; }
@media (max-width: 560px) { .term-list a { grid-template-columns: 1fr auto; } }
@media (min-width: 900px) { .finder-block .finder { align-items: start; } }
.top-in > * { min-width: 0; }
@media (max-width: 560px) {
  .heat-cal td { min-width: 22px; height: 26px; }
  .heat-cal .c-best { display: none; }
  .day-btn { min-width: 0; padding: 4px 6px; font-size: .85rem; }
  .heat { border-spacing: 1.5px; }
  .ticket { padding: 18px 18px 16px; }
}
