/* 0.29.0: one look for every page — the home page's language (navy ink, yellow mark, heavy headings, square shapes,
   green rises and red falls) over the older page, catalog and SPA styles. Loaded last on the server pages and the app. */
:root{--up:#1b7a3a;--down:#b3261e;--up-bar:#2e9e57;--down-bar:#d9483b;--hover:#fffbe3}

/* Square cards, panels and controls; circles (dots, tips, legends) keep their shape. */
.ssr-page .page-head,.entity-card,.section-card,.number-card,.tx-filters,.tx-children,.about-card,.dev-card,.dev-stat,
.tx-filters select,.tx-filters input,.catalog-filter-grid input,.catalog-filter-grid select,.catalog-filter-grid textarea,
.contact-form input,.contact-form select,.contact-form textarea,.search-page-form input,.search-page-form button,
.pager a,.pager span,.primary,.compare-btn,.outline,.text-btn,.ad-slot,.addr-summary,.lvl-tabs button,.tr-tabs button,.badge-real,
.empty-state,.tx-point,.calc-form input,.calc-form select,.calc-form button,.analysis-form input,.analysis-form select,.analysis-form button{border-radius:0!important}

/* Headings: heavy and tight, like the home page. No small capitals labels above them. */
.ssr-page h1,.page-head h1,.catalog-title{font-weight:900!important;letter-spacing:-.03em!important;line-height:1.08!important;color:var(--ink)}
.ssr-page h1{font-size:clamp(28px,3.4vw,42px)!important}
.page-head h1,.catalog-title{font-size:clamp(28px,3.4vw,42px)!important}
.entity-card h2,.section-card h2,.ssr-page h2{font-weight:900;letter-spacing:-.02em;line-height:1.15;color:var(--ink)}
.entity-card h2,.section-card h2{font-size:clamp(20px,2vw,25px)}
.entity-card h3,.section-card h3{font-weight:800;color:var(--ink)}
.eyebrow{display:none!important}

/* Tables: navy headers on a 2px rule, a light yellow row on hover, links in ink. */
.compare-table,.tx-table,.section-card table,.dev-table{border-collapse:collapse}
.compare-table thead th,.tx-table thead th,.section-card thead th,.dev-table thead th{font-size:12.5px!important;font-weight:800!important;color:var(--ink)!important;border-bottom:2px solid var(--ink)!important;text-transform:none!important;letter-spacing:0!important;background:none}
.compare-table td,.section-card td,.dev-table td{border-bottom:1px solid var(--line)}
.compare-table tbody tr:hover,.section-card tbody tr:hover,.dev-table tbody tr:hover{background:var(--hover)}
.compare-table .num,.dev-table .num{white-space:nowrap}
.compare-table td a,.entity-list a,.tool-list a,.rank a,.link-row a,.dev-table td a,.search-results-list a strong{color:var(--ink)!important;font-weight:700;text-decoration:none}
.compare-table td a:hover,.entity-list a:hover,.tool-list a:hover,.rank a:hover,.link-row a:hover,.dev-table td a:hover{text-decoration:underline;text-decoration-color:var(--mark);text-decoration-thickness:3px;text-underline-offset:3px}
.tx-table th a.th-sort,.compare-table th a{color:var(--ink)!important;text-decoration:none!important}
.tx-table th a.th-sort:hover,.compare-table th a:hover{text-decoration:underline!important}
.bar{background:linear-gradient(90deg,var(--ink) var(--w),#e3e8ee var(--w))!important;border-radius:0!important;height:8px!important}

/* Rises and falls: green up, red down, everywhere a change is shown. */
.chg{font-weight:800;white-space:nowrap}
.chg.up{color:var(--up)}.chg.down{color:var(--down)}.chg.flat{color:var(--muted)}

/* Buttons: navy, square, bold; the secondary one an outline in ink. */
.primary,.compare-btn,.tx-filter-actions .primary,.contact-form .primary,.search-page-form button,.calc-form button,.analysis-form button{background:var(--ink)!important;color:#fff!important;border:0!important;font-weight:800!important;cursor:pointer}
.primary:hover,.compare-btn:hover,.search-page-form button:hover,.calc-form button:hover,.analysis-form button:hover{background:#21395a!important}
.outline{background:#fff!important;border:2px solid var(--ink)!important;color:var(--ink)!important;font-weight:700}
.outline:hover{background:var(--mark)!important}
.tx-filter-actions a{color:var(--ink);font-weight:600}

/* Fields: a plain border, the ink frame on focus. */
.tx-filters select,.tx-filters input,.catalog-filter-grid input,.catalog-filter-grid select,.catalog-filter-grid textarea,.contact-form input,.contact-form select,.contact-form textarea,.calc-form input,.calc-form select,.analysis-form input,.analysis-form select{border:1px solid #c4cdd8!important;background:#fff;color:var(--ink)}
.tx-filters select:focus,.tx-filters input:focus,.catalog-filter-grid input:focus,.catalog-filter-grid select:focus,.contact-form input:focus,.contact-form textarea:focus,.calc-form input:focus,.calc-form select:focus,.analysis-form input:focus,.analysis-form select:focus{outline:2px solid var(--ink)!important;outline-offset:0;border-color:var(--ink)!important}
.tx-filters label,.catalog-filter-grid label{color:var(--ink)!important;font-weight:700;font-size:12.5px!important}

/* Pager: square cells, the current page marked in yellow. */
.pager a:hover{border-color:var(--ink)!important;background:var(--mark)}
.pager span[aria-current]{background:var(--ink)!important;color:#fff!important;border-color:var(--ink)!important}

/* Figure cards of the app views (NBP, inflation): the home page's facts — a rule on top, a big number. */
.number-card{background:#fff!important;border:0!important;border-top:4px solid var(--ink)!important;padding:14px 0 6px!important}
.number-card>span{font-size:13px!important;color:var(--muted)!important}
.number-card strong .chg{font-size:inherit}
.number-card strong{font-weight:900!important;letter-spacing:-.03em!important;color:var(--ink)}
.badge-real{background:var(--mark)!important;color:var(--ink)!important;font-weight:800;font-size:12px!important;padding:2px 8px!important}
.reference-legend{color:var(--ink)!important}
.help-item summary{font-weight:800!important;font-size:17px}
.help-item[open] summary{margin-bottom:6px}

/* Lists of links (tools in Analizy, streets of a place): bold ink names on rules, not underlined blue. */
.tool-list{list-style:none;padding:0!important;margin:0;line-height:1.5!important}
.tool-list li{padding:11px 0;border-bottom:1px solid var(--line);color:var(--muted)}
.tool-list li:last-child{border-bottom:0}
.tool-list a{font-size:16px}
.entity-list .muted{font-size:12px}

/* Text links in cards keep the brand: ink with a yellow underline. */
.entity-card p a,.section-card p a,.source-note a,.about a,.lvl-note a{color:var(--ink);text-decoration-color:var(--mark);text-decoration-thickness:2px;text-underline-offset:3px}
.entity-card p a:hover,.section-card p a:hover,.source-note a:hover,.about a:hover{text-decoration-color:var(--ink)}
.crumb a{color:var(--muted)!important}

/* Header share button and the "more" menu: square like the rest. */
.site-header .share,.nav-more,.nav-panel,.nav-panel a{border-radius:0!important}

/* Developers' offer prices: labels in sentence case; the offer-to-sale gap is a difference, not a rise or fall. */
.dev-card{border-radius:0!important}
.dev-card .dev-k{text-transform:none!important;letter-spacing:0!important;font-size:13px!important;font-weight:600}
.dev-gap-up b,.dev-gap-down b{color:var(--ink)!important}
.dev-ask b{border-radius:0!important}
.dev-table a,.dev-note a{color:var(--ink)!important}
.dev-table .pct-up,.dev-table .pct-down{color:var(--ink)!important;font-weight:700}

/* Phones: comparison tables fit the screen — tighter cells, optional columns (real change, prices in today's money) hidden. */
@media(max-width:620px){
 .compare-table th,.compare-table td{padding:9px 6px!important;font-size:13.5px}
 .compare-table .opt{display:none}
 .compare-table td small.muted{display:block;font-size:11.5px}
 .compare-table{min-width:0!important}
 /* Transaction cards: the right column takes the width of its figures (td width:100% shrank it and cut the prices). */
 .tx-table tr.tx-row>td{width:auto!important}
 .compare-table th{white-space:normal}
 .ssr-page h1,.page-head h1,.catalog-title{font-size:30px!important}
}
/* 0.31.0: "Pokaż wszystkie" under a shortened address history. */
.tx-all{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:14px 0 0}
.tx-all a.outline{display:inline-block;padding:10px 16px;text-decoration:none}
/* 0.33.1: sortable table headers (tx-details.js). */
table.sortable th{padding:0}
.th-sort{all:unset;box-sizing:border-box;display:block;width:100%;padding:8px 10px;cursor:pointer;font:inherit;font-weight:700;text-align:inherit;color:inherit}
th.num .th-sort{text-align:right}
.th-sort:hover{background:#fffbe3}
.th-sort:focus-visible{outline:2px solid var(--ink,#14253a);outline-offset:-2px}
.th-sort::after{content:"\2195";opacity:.35;margin-left:6px;font-weight:400}
th[aria-sort=ascending] .th-sort::after{content:"\2191";opacity:1}
th[aria-sort=descending] .th-sort::after{content:"\2193";opacity:1}
/* 0.33.9: the (i) in a table header sits on the text's middle (in notes it stays slightly lowered). */
th .tip{vertical-align:middle;position:relative;top:-1px}
