/* Trzęsienieziemi.pl — biało-czerwony serwis sejsmiczny. Jasny motyw jest w pełni jasny; ciemny tylko po wyborze lub z ustawień systemu. */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --band: #ffffff;
  --ink: #15171c;
  --ink-2: #3b4049;
  --muted: #686e79;
  --line: #e4e6ea;
  --line-2: #d3d6dc;
  --accent: #d4213d;
  --accent-ink: #b0162f;
  --accent-soft: #fdeff1;
  --ok: #1d8a4e;
  --m1: #e3e6ea; --m2: #ffe08a; --m3: #ffbe4d; --m4: #ff8c2e; --m5: #e23a26; --m6: #a8102c; --m7: #55092a;
  --bar: #d4213d; --bar-h: 48px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 20, 28, .04), 0 8px 20px -16px rgba(18, 20, 28, .22);
  --head: 'Geologica', 'Source Sans 3', system-ui, sans-serif;
  --text: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top-h: 48px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1013; --surface: #17181d; --band: #131418; --ink: #f1f2f4; --ink-2: #c9ccd3; --muted: #969ca7; --line: #282a31; --line-2: #383b44;
  --accent: #ff5468; --accent-ink: #ff7d8c; --accent-soft: #2a1519; --m1: #3a3d46;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1013; --surface: #17181d; --band: #131418; --ink: #f1f2f4; --ink-2: #c9ccd3; --muted: #969ca7; --line: #282a31; --line-2: #383b44;
    --accent: #ff5468; --accent-ink: #ff7d8c; --accent-soft: #2a1519; --m1: #3a3d46;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 650; line-height: 1.18; margin: 0; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.dim { color: var(--ink-2); }
.mono { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.fineprint { font-size: 13.5px; margin-top: 28px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- nagłówek: biały pas z logo, pod nim czerwony pas nawigacji (jak flaga) ---------- */
.top-a { background: var(--surface); }
.top-in { display: flex; align-items: center; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 23px/1 var(--head); letter-spacing: -.035em; white-space: nowrap; }
.brand .logo { width: 36px; height: 36px; flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.today { margin-left: auto; font-size: 14.5px; color: var(--muted); white-space: nowrap; }
.today::first-letter { text-transform: uppercase; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: beat 2s ease-in-out infinite; }
.live i.stale { background: var(--line-2); animation: none; }
.live b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 33, 61, .45); } 60% { box-shadow: 0 0 0 7px rgba(212, 33, 61, 0); } }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--line-2); background: var(--bg); }
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}
.menu-btn { display: none; }
.top { position: sticky; top: 0; z-index: 40; background: var(--bar); }
.nav { display: flex; height: var(--bar-h); gap: 2px; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; padding: 0 13px; font: 650 15.5px var(--head); color: #fff; white-space: nowrap; letter-spacing: -.005em; }
.nav a:hover { background: rgba(0, 0, 0, .14); }
.nav a[aria-current="page"] { background: rgba(0, 0, 0, .24); box-shadow: inset 0 -3px 0 #fff; }

/* pasek stanu: ostatni wstrząs w Polsce i najsilniejszy na świecie */
.status { background: var(--band); border-bottom: 1px solid var(--line); font-size: 14.5px; }
.status-in { display: flex; gap: 8px 28px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.status-in a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.status-in a:hover .st-p { text-decoration: underline; }
.st-k { color: var(--muted); }
.st-p { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-t { color: var(--muted); white-space: nowrap; }

/* ---------- magnituda ---------- */
.mb { display: inline-grid; place-items: center; min-width: 46px; height: 40px; padding: 0 8px; border-radius: 10px; font: 700 17px/1 var(--head); font-variant-numeric: tabular-nums; background: var(--m1); color: var(--ink); flex: none; }
.mb.xs { min-width: 34px; height: 24px; font-size: 13px; border-radius: 7px; padding: 0 6px; }
.mb.sm { min-width: 40px; height: 30px; font-size: 14.5px; border-radius: 8px; }
.mb.lg { min-width: 72px; height: 64px; font-size: 28px; border-radius: 14px; }
.mb.xl { min-width: 96px; height: 88px; font-size: 40px; border-radius: 18px; }
.m1 { background: var(--m1); color: var(--ink); }
.m2 { background: var(--m2); color: #2e2000; }
.m3 { background: var(--m3); color: #2e1a00; }
.m4 { background: var(--m4); color: #2a1000; }
.m5 { background: var(--m5); color: #fff; }
.m6 { background: var(--m6); color: #fff; }
.m7 { background: var(--m7); color: #fff; }
.tag { display: inline-block; font: 600 12px/1 var(--text); padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); vertical-align: 1px; white-space: nowrap; }
.tag-ts { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

/* ---------- karty, sekcje ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 18px 20px; }
.card-top { padding-bottom: 8px; }
.card-top .muted { font-size: 13.5px; margin: 3px 0 0; }
.card-h { font-size: 16px; font-weight: 650; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.card-top .card-h { margin: 0; }
.card-h small { font: 400 13.5px var(--text); color: var(--muted); letter-spacing: 0; }
.card-more { margin: 12px 0 0; }
.tip p { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; }
.tip p:last-child { margin: 0; }
.tip a:not(.more) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.sec { margin-top: 44px; }
.sec.first { margin-top: 26px; }
.sec.az { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
.sec-h h2 { font-size: 23px; }
.sec-h p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sec-h .more { margin-left: auto; }
.sec-p { color: var(--ink-2); margin: -4px 0 14px; }
.more { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; color: var(--accent-ink); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more .ic { width: 15px; height: 15px; }
.page-h { margin: 22px 0 22px; }
.page-h h1 { font-size: clamp(27px, 3.6vw, 38px); }
.lead { font-size: 18px; color: var(--ink-2); margin: 12px 0 0; }
.lead a, .prose a, .qa a, .article .body a, .note a, .edu-text a, .lede-p a, .felt-out a, .srcs a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.lead strong { color: var(--ink); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { color: var(--line-2); }
.crumbs span:last-child { color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"], .chip.on, .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.filters { margin-bottom: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 650; font-size: 15.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-ink); }
:root[data-theme="dark"] .btn { color: #17070a; }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.grid-main aside > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-3 .sec-h h2, .grid-2 .sec-h h2 { font-size: 19px; }

/* ---------- lista wstrząsów ---------- */
.ql { list-style: none; }
.ql li + li { border-top: 1px solid var(--line); }
.qrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 16px; }
.qrow:hover { background: var(--accent-soft); }
.qi { min-width: 0; display: block; }
.qrow .pl { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .sub { display: block; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow .rt { text-align: right; font-size: 13.5px; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.qrow .rt b { display: block; font: 600 15.5px var(--head); color: var(--ink); font-variant-numeric: tabular-nums; }
.ql li.fresh .qrow { animation: fresh 5s ease-out; }
@keyframes fresh { from { background: var(--accent-soft); } to { background: transparent; } }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th { text-align: left; font: 600 13.5px var(--text); color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--band); }
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--accent-soft); }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl a { font-weight: 600; }
.tbl a:hover { color: var(--accent-ink); text-decoration: underline; }
.tbl .tnote { font-size: 14px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.mrow { display: flex; align-items: center; gap: 10px; }

.side-list { display: grid; }
.side-list a, .side-list .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.side-list > :first-child { border-top: 0; padding-top: 0; }
.side-list a:hover span:first-child { color: var(--accent-ink); text-decoration: underline; }
.side-list span:last-child { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.side-list a[aria-current="page"] span:first-child { font-weight: 700; }
.idx { columns: 4 200px; column-gap: 28px; }
.idx a, .idx > span { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 15.5px; }
.idx a:hover { color: var(--accent-ink); }
.idx span span { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- strona główna ---------- */
.lede { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 26px; align-items: start; }
.lede h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; }
.lede-p { font-size: 19px; color: var(--ink-2); margin: 14px 0 0; }
.lede-p strong { color: var(--ink); }
.lede-side > * + * { margin-top: 12px; }
.readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.readout > div { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.readout > div:first-child { border-left: 0; }
.readout .v { display: block; font: 700 30px/1.05 var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.readout .k { display: block; font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.readout .k a { color: var(--ink-2); font-weight: 600; }
.readout .k a:hover { color: var(--accent-ink); text-decoration: underline; }
.readout.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; box-shadow: none; margin-top: 14px; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.readout.sm > div { padding: 12px 14px 0; }
.readout.sm > div:first-child { padding-left: 0; }
.readout.sm .v { font-size: 22px; }
.readout.wide { margin-top: 0; }

.trace { position: relative; margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px 6px; }
.trace-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.trace-head b { color: var(--ink); font-weight: 650; }
#trace-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.trace-svg { display: block; width: 100%; height: 96px; cursor: crosshair; }
.trace-svg .base { stroke: var(--line); stroke-width: 1; }
.trace-svg .tick { stroke: var(--line); stroke-width: 1; opacity: .7; }
.trace-svg .tlabel { font: 11.5px var(--text); fill: var(--muted); }
.trace-svg .sig { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linejoin: round; }
.trace-svg .spike-lbl { font: 700 12px var(--head); fill: var(--ink); }
.trace-svg .spike-lbl-sub { font: 400 11.5px var(--text); fill: var(--muted); }
.trace-svg .now { stroke: var(--ink); stroke-width: 1.5; }
.trace-tip { display: none; position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: var(--surface); padding: 5px 10px; border-radius: 8px; font-size: 13.5px; white-space: nowrap; pointer-events: none; z-index: 3; }
.page-h + .trace { margin-top: 0; }

.feature { padding: 16px 18px 0; }
.feature-l { font-size: 14px; color: var(--muted); }
.feature-b { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.feature-b h3 { font-size: 19px; }
.feature-b h3 a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.feature-b p { font-size: 14.5px; margin: 4px 0 0; }
.feature-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); margin: 16px -18px 0; border-top: 1px solid var(--line); }
.feature-f { grid-template-columns: repeat(4, auto); }
.feature-f div { padding: 10px 10px 11px 14px; border-left: 1px solid var(--line); min-width: 0; }
.feature-f div:first-child { padding-left: 18px; }
.feature-f div:first-child { border-left: 0; }
.feature-f dt { font-size: 12.5px; color: var(--muted); }
.feature-f dd { margin: 0; font-weight: 650; font-size: 14.5px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.mini { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mini:hover { border-color: var(--line-2); }
.mini b { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.mini .muted { display: block; font-size: 13.5px; }

.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; margin-top: 26px; align-items: stretch; }
.live-map { position: relative; min-height: 560px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.live-map .map { position: absolute; inset: 0; }
.live-list { display: flex; flex-direction: column; }
.live-h { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 16px 10px; }
.live-h h2 { font-size: 19px; }
.live-h .cnt { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.live-list > .chips { padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
.live-rows { flex: 1; }
.all-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); font-weight: 650; font-size: 15px; color: var(--accent-ink); }
.all-link:hover { background: var(--accent-soft); }

.zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.zone { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.zone:hover { border-color: var(--line-2); border-top-color: var(--accent); }
.zone-n { font: 650 17px/1.2 var(--head); }
.zone-k { font-size: 13.5px; color: var(--muted); line-height: 1.35; flex: 1; }
.zone-v { font-size: 14px; color: var(--ink-2); }
.zone-v b { font: 700 22px var(--head); color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
.zone-l { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.rank { display: grid; gap: 2px; }
.rank a, .rank .rank-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 5px 0; font-size: 15px; }
.rank a:hover .rank-n { color: var(--accent-ink); text-decoration: underline; }
.rank-b { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.rank-b i { display: block; height: 100%; background: var(--accent); border-radius: 4px; min-width: 2px; }
.rank-v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.ctry { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ctry a { display: flex; flex-direction: column; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.ctry a:hover { border-color: var(--accent); }
.ctry-n { font-weight: 650; }
.ctry-v { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hist { list-style: none; }
.hist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.hist li:first-child { border-top: 0; padding-top: 0; }
.hist .yr { font: 650 15px var(--head); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; }
.hist a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist a:hover { color: var(--accent-ink); text-decoration: underline; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta h2 { font-size: 21px; margin-bottom: 6px; }
.cta p { margin: 0; color: var(--ink-2); }
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.qa > div { padding: 16px 0; border-top: 1px solid var(--line); }
.qa h3 { font-size: 17px; margin-bottom: 6px; }
.qa p { margin: 0; color: var(--ink-2); }
.edu { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 36px; align-items: start; }
.edu-text h3 { font-size: 17px; margin: 18px 0 6px; }
.edu-text h3:first-child { margin-top: 0; }
.edu-text p { color: var(--ink-2); margin: 0; }
.fig { margin: 0; position: sticky; top: calc(var(--top-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.fig svg { display: block; width: 100%; height: auto; }
.fig .fg { stroke: var(--line); stroke-width: 1; }
.fig .ft { font: 12px var(--text); fill: var(--muted); }
.fig .z1 { fill: var(--accent); fill-opacity: .55; }
.fig .z2 { fill: var(--ink); fill-opacity: .5; }
.fig .z3 { fill: #2a7fd6; fill-opacity: .8; }
.fig figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.bars span { flex: 1; background: var(--line-2); border-radius: 2px 2px 0 0; min-width: 2px; }
.bars span:hover { background: var(--ink-2); }
.bars span.hi { background: var(--accent); }
.bars-axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- wiadomości ---------- */
.news { display: grid; }
.news-item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item h3 { font-size: 17.5px; line-height: 1.28; }
.news-item:hover h3 { color: var(--accent-ink); }
.news-item p { margin: 5px 0 0; color: var(--ink-2); font-size: 15px; }
.news-meta { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.news-meta.art { margin: 0 0 22px; font-size: 14.5px; }
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.news-card:hover { border-color: var(--line-2); }
.news-card:hover h3 { color: var(--accent-ink); }
.news-card h3 { font-size: 18px; line-height: 1.26; }
.news-card p { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.news-card .mb { align-self: flex-start; }
.article { max-width: 760px; }
.article h1 { font-size: clamp(27px, 3.8vw, 40px); margin-top: 22px; }
.article .dek { font-size: 19px; color: var(--ink-2); margin: 14px 0 16px; }
.article .body { font-size: 17.5px; line-height: 1.65; }
.article .body h2 { font-size: 23px; margin: 30px 0 10px; }
.article .body h3 { font-size: 18.5px; margin: 22px 0 6px; }
.article .body ul, .article .body ol { padding-left: 22px; margin: 0 0 1em; }
.article .body li { margin-bottom: 7px; }
.article code { font-size: 14px; background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.srcs { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }

/* ---------- strona wstrząsu ---------- */
.qhead { display: flex; align-items: center; gap: 20px; margin: 22px 0 18px; }
.qhead h1 { font-size: clamp(24px, 3.4vw, 36px); }
.qhead .when { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.bulletin { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.bulletin div { padding: 12px 16px; border-left: 1px solid var(--line); min-width: 0; }
.bulletin div:first-child { border-left: 0; }
.bulletin dt { font-size: 13px; color: var(--muted); }
.bulletin dd { margin: 2px 0 0; font: 650 17px/1.25 var(--head); font-variant-numeric: tabular-nums; }
.bulletin dd small { display: block; font: 400 13px var(--text); color: var(--muted); }
.revs { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.revs b { color: var(--ink-2); }
.map { background: var(--bg); }
.qmap { height: 440px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; z-index: 0; }
.qmap .map { height: 100%; }
.map.qmap { height: 440px; }
.prose { font-size: 17.5px; line-height: 1.65; }
.prose p { margin: 0 0 .9em; }
.scale-box { margin-top: 6px; max-width: 420px; }
.scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.scale span { height: 10px; border-radius: 3px; opacity: .45; }
.scale span.on { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.scale-l { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12.5px; color: var(--muted); margin-top: 6px; text-align: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.kv a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.int { display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 6px; border-radius: 6px; font: 700 13px var(--head); color: #16181b; }
.int-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.int-legend span { display: inline-flex; align-items: center; gap: 5px; }
.int-legend i { width: 16px; height: 12px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .15); }
.wave-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.mycity { margin: 12px 0 0; font-size: 15px; }
.felt fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.felt legend { font-weight: 650; padding: 0; margin-bottom: 10px; }
.felt-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.felt-opts label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-left: 5px solid var(--c); border-radius: 10px; cursor: pointer; }
.felt-opts label:hover { border-color: var(--ink-2); border-left-color: var(--c); }
.felt-opts input { margin-top: 4px; accent-color: var(--accent); }
.felt-opts b { display: block; font-size: 15px; }
.felt-opts small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.felt-loc { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.felt-loc select, .sim-form select { height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); min-width: 0; flex: 1 1 220px; }
.felt-out { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.felt.sent .felt-opts, .felt.sent .felt-loc, .felt.sent legend { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- mapy ---------- */
.leaflet-container { font: inherit; background: var(--bg); }
.leaflet-control-attribution.leaflet-control { font-size: 10.5px; background: rgba(255, 255, 255, .8); color: #555; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); box-shadow: 0 6px 24px -8px rgba(0, 0, 0, .35); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 14.5px; }
.leaflet-popup-content a { color: var(--ink); font-weight: 650; }
.leaflet-popup-content a:hover { color: var(--accent-ink); text-decoration: underline; }
.leaflet-bar { border: 1px solid var(--line-2) !important; box-shadow: none !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-bottom-color: var(--line) !important; }
.pop { display: flex; gap: 10px; align-items: center; }
.pop .t { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }
.leaflet-tooltip.ro-tip { background: var(--ink); color: var(--surface); border: 0; border-radius: 8px; padding: 4px 9px; font-size: 13px; box-shadow: none; }
.leaflet-tooltip.ro-tip::before { border-top-color: var(--ink); }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; gap: 10px; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .45); }
.map-btns { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; }
.map-btn { border: 0; background: none; height: 30px; padding: 0 13px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.map-btn.on { background: var(--ink); color: var(--surface); }
.map-hint { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: var(--surface); padding: 6px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: .92; transition: opacity .3s; }
.map-hint.off { opacity: 0; }
.sim-epi { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); cursor: grab; }
.map-full { position: relative; height: calc(100vh - var(--bar-h) - 66px); height: calc(100dvh - var(--bar-h) - 66px); min-height: 460px; }
.map-panel { position: absolute; top: 14px; left: 14px; bottom: 14px; width: 380px; z-index: 600; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 34px -14px rgba(0, 0, 0, .35); overflow: hidden; }
.map-panel .hd { padding: 16px; border-bottom: 1px solid var(--line); }
.map-panel .hd h1 { font-size: 19px; margin-bottom: 12px; }
.map-rows { overflow-y: auto; flex: 1; }
.map-full .map-legend { left: 408px; }
body.is-map .foot, body.is-map .status { display: none; }

/* ---------- kalendarz archiwum ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.cal-h { font-size: 15px; margin-bottom: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; font-size: 13px; text-align: center; }
.cal span, .cal a { padding: 5px 0; border-radius: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal .dow { font-size: 11.5px; }
.cal a { color: var(--ink); font-weight: 600; background: var(--m2); }
.cal a.l2 { background: var(--m4); }
.cal a.l3 { background: var(--m6); color: #fff; }
.cal a:hover { outline: 2px solid var(--ink); }
:root[data-theme="dark"] .cal a.l1, :root[data-theme="dark"] .cal a.l2 { color: #33050a; }

/* ---------- poradnik ---------- */
.manual { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; margin-top: 8px; }
.toc { position: sticky; top: calc(var(--top-h) + 22px); align-self: start; display: grid; gap: 2px; font-size: 15px; margin-top: 30px; }
.toc b { font: 650 15px var(--head); margin-bottom: 8px; }
.toc a { padding: 6px 12px; border-left: 2px solid var(--line); color: var(--ink-2); }
.toc a:hover { border-left-color: var(--accent); color: var(--ink); }
.rule-box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0 8px; box-shadow: var(--shadow); }
.rule-t { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }
.rule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.rule dt { font: 700 21px var(--head); color: var(--accent-ink); }
.rule dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.kitlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin: 10px 0 20px; }
.kit-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 650; font-size: 15px; }
.kit-track { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.kit-track i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .25s; }
.kitlist label { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; padding: 4px 0; }
.kitlist input { margin-top: 5px; accent-color: var(--ok); width: 17px; height: 17px; flex: none; }
.kitlist input:checked + span { color: var(--muted); text-decoration: line-through; }
.manual-faq { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.manual-faq h2 { font-size: 23px; margin-bottom: 8px; }
.manual-faq h3 { font-size: 17.5px; margin: 18px 0 6px; }
.manual-faq p { color: var(--ink-2); margin: 0; }
.read-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--ink); z-index: 60; width: 0; }

/* ---------- symulator ---------- */
.sim-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; }
.sim-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); flex: 1 1 170px; min-width: 0; }
.sim-form label b { color: var(--ink); font: 700 15px var(--head); }
.sim-form input[type="range"] { accent-color: var(--accent); width: 100%; }
.sim-sum { font-size: 17.5px; margin: 16px 0; }

/* ---------- stopka ---------- */
.foot { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; }
.foot-top { display: flex; gap: 20px 40px; align-items: flex-start; padding: 34px 0 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.foot-top p { flex: 1 1 420px; margin: 0; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1fr 1.5fr 1.5fr 1.1fr; gap: 30px; padding: 28px 0; }
.foot h2 { font: 650 15px var(--head); margin-bottom: 12px; letter-spacing: 0; }
.foot ul { list-style: none; display: grid; gap: 7px; }
.foot ul.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-cities { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.fine { background: var(--bar); color: #fff; font-size: 14.5px; }
.fine .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; padding-bottom: 14px; }
.fine .ic { margin-right: 7px; }
.fine b { font: 800 16px var(--head); }

/* ---------- menu mobilne ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(15, 16, 19, .5); opacity: 0; transition: opacity .25s; }
.drawer[hidden] { display: none; }
.drawer.open { opacity: 1; }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--surface); padding: 16px 18px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
.drawer.open .drawer-in { transform: none; }
.drawer-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font: 700 18px var(--head); }
.drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drawer-grid a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.2; }
.drawer-grid a .ic { color: var(--accent); width: 20px; height: 20px; }
.drawer-t { font: 650 15px var(--head); margin: 22px 0 10px; }
.tabbar { display: none; }

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 1180px) {
  .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1020px) {
  .grid-main, .lede, .live-grid, .edu { grid-template-columns: minmax(0, 1fr); }
  .live-map { min-height: 420px; }
  .fig { position: static; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid-3 > section + section { margin-top: 30px; }
  .manual { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
  .toc b { width: 100%; margin: 0; }
  .toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulletin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bulletin div:nth-child(4) { border-left: 0; }
  .bulletin div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .map-panel { width: 340px; }
  .map-full .map-legend { left: 366px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 14px; }
  .status { font-size: 13.5px; }
  .status-in { flex-direction: column; gap: 6px; }
  .status-in a { width: 100%; }
  .st-k { min-width: 74px; }
  .st-p { flex: 1; }
  .lede { margin-top: 18px; gap: 18px; }
  .lede-p { font-size: 17px; }
  .lead { font-size: 16.5px; }
  .readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout > div:nth-child(3) { border-left: 0; }
  .readout > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .readout .v { font-size: 26px; }
  .readout.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .readout.sm > div:nth-child(n+3) { border-top: 0; }
  .readout.sm > div:nth-child(3) { border-left: 1px solid var(--line); }
  .readout.sm .v { font-size: 20px; }
  .trace { padding: 10px 12px 4px; }
  .trace-expl { display: none; }
  .trace-svg { height: 78px; }
  .live-grid { margin-top: 18px; gap: 14px; }
  .live-map { min-height: 340px; }
  .chips.nowrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips.nowrap::-webkit-scrollbar { display: none; }
  .qrow { gap: 11px; padding: 11px 12px; }
  .qrow .pl { font-size: 15.5px; }
  .qrow .sub { font-size: 13.5px; }
  .sec { margin-top: 34px; }
  .sec-h h2 { font-size: 20px; }
  .sec-h .more { margin-left: 0; width: 100%; }
  .zones { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 13px 14px; }
  .zone-k { grid-column: 1; }
  .zone-v { grid-column: 2; grid-row: 1 / span 2; text-align: right; align-self: center; font-size: 12.5px; max-width: 96px; line-height: 1.25; }
  .zone-v b { display: block; margin: 0; }
  .zone-l { grid-column: 1 / -1; }
  .grid-2, .news-cards, .qa, .kitlist, .rule { grid-template-columns: minmax(0, 1fr); }
  .rule { gap: 14px; }
  .rank a, .rank .rank-row { grid-template-columns: 132px minmax(0, 1fr) 40px; gap: 9px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 20px; }
  .card-pad { padding: 16px; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .qhead { gap: 14px; align-items: flex-start; }
  .mb.xl { min-width: 70px; height: 66px; font-size: 30px; border-radius: 14px; }
  .bulletin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulletin div { border-left: 0; border-top: 1px solid var(--line); padding: 10px 14px; }
  .bulletin div:nth-child(-n+2) { border-top: 0; }
  .bulletin div:nth-child(even) { border-left: 1px solid var(--line); }
  .bulletin div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bulletin dd { font-size: 16px; }
  .qmap, .map.qmap { height: 340px; }
  .prose, .article .body { font-size: 17px; }
  .idx { columns: 2 140px; column-gap: 18px; }
  .ctry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ctry a { padding: 9px 12px; }
  .foot { margin-top: 44px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .map-full { height: calc(100dvh - var(--bar-h) - 56px - 66px - env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
  .map-full > .map { position: relative !important; inset: auto !important; flex: 0 0 52%; }
  .map-panel { position: static; width: auto; flex: 1; border-radius: 0; border-width: 1px 0 0; box-shadow: none; min-height: 0; }
  .map-panel .hd { padding: 10px 12px; }
  .map-panel .hd h1 { font-size: 16px; margin-bottom: 8px; }
  .map-full .map-legend { left: 10px; bottom: auto; top: calc(52% - 40px); }
  .leaflet-control-zoom { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 3px 0; }
  .tabbar .ti { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 999px; }
  .tabbar .ti .ic { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent-ink); }
  .tabbar a.on .ti { background: var(--accent-soft); }
  .tabbar a.fab .ti { background: var(--accent); color: #fff; width: 48px; height: 48px; margin-top: -22px; border: 4px solid var(--surface); box-sizing: content-box; }
  .tabbar a.fab { color: var(--ink-2); }
}
@media (max-width: 380px) {
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top, .status, .tabbar, .drawer, .foot, .map, .trace, .toc, .read-bar { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* ================= wersja 2: mocniejsza typografia, hero z mapą, tablica rejonów ================= */
h1, h2, h3 { font-weight: 750; letter-spacing: -.022em; }
.card { box-shadow: none; }
.status { background: var(--surface); }
.sec-h { border-bottom: 2px solid var(--ink); padding-bottom: 9px; margin-bottom: 16px; align-items: flex-end; }
.sec-h h2 { font-size: 24px; position: relative; padding-left: 16px; }
.sec-h h2::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .12em; width: 6px; background: var(--accent); border-radius: 2px; }
.grid-3 .sec-h h2, .grid-2 .sec-h h2, aside .sec-h h2 { font-size: 20px; }
.page-h h1, .article h1 { font-weight: 800; letter-spacing: -.03em; }
.mb { border-radius: 9px; font-weight: 800; }
.qrow { padding: 12px 16px; }
.qrow:hover { background: var(--bg); }
.qrow:hover .pl { color: var(--accent-ink); }
.qrow .pl { font-weight: 650; font-size: 16.5px; }
.tbl tbody tr:hover { background: var(--bg); }
.chip { border-radius: 8px; }
.tag { border-radius: 5px; font-size: 11.5px; text-transform: none; background: var(--bg); border-color: var(--line); }
.btn { border-radius: 8px; }

.hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 30px 0 22px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px; align-items: stretch; }
.hero-l { display: flex; flex-direction: column; min-width: 0; }
.hero h1 { font: 800 clamp(34px, 4.6vw, 58px)/1.02 var(--head); letter-spacing: -.045em; }
.hero-p { font-size: 18.5px; color: var(--ink-2); margin: 16px 0 0; }
.hero-p strong { color: var(--ink); }
.ticket { display: flex; align-items: stretch; margin-top: 22px; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ticket:hover .ticket-t { color: var(--accent-ink); }
.ticket-m { display: grid; place-items: center; min-width: 128px; padding: 0 16px; font: 800 58px/1 var(--head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; border-right: 2px solid var(--ink); }
.ticket-b { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 16px 18px; min-width: 0; }
.ticket-k { font-size: 14px; color: var(--muted); }
.ticket-t { font: 750 25px/1.15 var(--head); letter-spacing: -.025em; }
.ticket-s { font-size: 15px; color: var(--ink-2); }
.hero-rows { display: grid; margin-top: 14px; }
.hero-rows a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); min-width: 0; }
.hero-rows a > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-rows b { display: block; color: var(--ink); font-weight: 650; }
.hero-rows a:hover b { color: var(--accent-ink); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: auto 0 0; padding-top: 18px; }
.nums div { border-left: 1px solid var(--line); padding: 0 14px; }
.nums div:first-child { border-left: 0; padding-left: 0; }
.nums dt { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.nums dd { margin: 2px 0 0; font: 800 30px/1.1 var(--head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-map { position: relative; min-height: 500px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); }
.hero-map .map { position: absolute; inset: 0; }
.hero .trace { margin-top: 22px; border: 0; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; padding: 12px 0 0; background: none; }
.trace-svg .sig { stroke-width: 1.5; }
.home-main { margin-top: 36px; }
.home-main aside > * + * { margin-top: 16px; }
.home-main aside > .sec-h + * { margin-top: 0; }
.all-link:hover { background: var(--bg); }

.zboard { display: grid; }
.zrow { display: grid; grid-template-columns: minmax(200px, 1.5fr) 96px minmax(80px, 1fr) 48px minmax(150px, auto); align-items: center; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--line); }
.zrow:first-child { border-top: 0; }
.zrow:hover { background: var(--bg); }
.zrow:hover .z-n b { color: var(--accent-ink); }
.z-n b { display: block; font: 750 18px/1.2 var(--head); letter-spacing: -.02em; }
.z-n small { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-t { font-size: 13.5px; color: var(--ink-2); }
.z-bar { height: 10px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.z-bar i { display: block; height: 100%; background: var(--accent); min-width: 2px; }
.z-c { font: 800 22px var(--head); text-align: right; font-variant-numeric: tabular-nums; }
.z-l { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); justify-content: flex-end; white-space: nowrap; }

.qhead { padding: 22px; margin: 18px 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.qhead h1 { font-weight: 800; letter-spacing: -.03em; }
.bulletin { box-shadow: none; }
.readout { box-shadow: none; }
.readout .v { font-weight: 800; letter-spacing: -.03em; }
.cta { border-left-width: 6px; box-shadow: none; }
.rule-box, .fig, .mini, .trace { box-shadow: none; }
.rank-b { border-radius: 2px; height: 10px; }
.rank-b i { border-radius: 0; }
.ctry a { border-radius: 8px; border-left: 3px solid var(--line-2); }
.ctry a:hover { border-color: var(--line-2); border-left-color: var(--accent); background: var(--surface); }
:root[data-theme="dark"] { --bar: #a81930; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bar: #a81930; } }

@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-map { min-height: 420px; }
  .nums { margin-top: 18px; }
}
@media (max-width: 760px) {
  :root { --bar-h: 44px; }
  .top-in { height: 56px; gap: 10px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand .logo { width: 30px; height: 30px; }
  .today { display: none; }
  .live { margin-left: auto; padding: 5px 10px; font-size: 13px; }
  .live b { display: none; }
  .nav { margin: 0 -14px; padding: 0 4px; }
  .nav a { font-size: 15px; padding: 0 11px; }
  .hero { padding: 20px 0 14px; }
  .hero-p { font-size: 17px; margin-top: 12px; }
  .ticket { margin-top: 16px; }
  .ticket-m { min-width: 96px; font-size: 44px; padding: 0 10px; }
  .ticket-b { padding: 12px 14px; }
  .ticket-t { font-size: 20px; }
  .ticket-s { font-size: 14px; }
  .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nums div { padding: 0 8px; }
  .nums dt { font-size: 12px; white-space: normal; line-height: 1.2; min-height: 2.4em; }
  .nums dd { font-size: 23px; }
  .hero-map { min-height: 340px; border-radius: 12px; }
  .sec-h h2 { font-size: 21px; }
  .sec-h .more { width: auto; margin-left: auto; }
  .zrow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 13px 14px; }
  .z-n { grid-column: 1; }
  .z-c { grid-column: 2; grid-row: 1; }
  .z-t { display: none; }
  .z-bar { grid-column: 1 / -1; height: 6px; }
  .z-l { grid-column: 1 / -1; justify-content: flex-start; }
  .qhead { padding: 16px; }
  .home-main { margin-top: 26px; }
}
@media (max-width: 380px) { .live { display: none; } .menu-btn { margin-left: auto; } }
@media (max-width: 460px) {
  .brand { font-size: 17px; letter-spacing: -.03em; }
  .brand .logo { width: 28px; height: 28px; }
  .top-in { gap: 8px; }
  .live { padding: 5px 9px; font-size: 12.5px; gap: 6px; }
  .icon-btn { width: 36px; height: 36px; }
}
/* mapy Leaflet mają własne wysokie z-indeksy: zamykamy je w osobnym kontekście, żeby nie wchodziły na pasek nawigacji i dolne menu */
.hero-map, .live-map, .qmap, .map-full > .map { isolation: isolate; z-index: 0; }
.wrap > .article { max-width: 860px; margin: 22px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 40px 34px; }
@media (max-width: 760px) { .wrap > .article { padding: 4px 18px 24px; margin-top: 14px; } }
