:root {
    --black: #111;
    --muted: #4b4b4b;
    --light: #d7d7d7;
    --accent: #e23b2b;
    --up: #1b9e4b;
    --down: #c62828;
    --gap: 32px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 48px 64px 88px;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    background: #fff;
    color: var(--black);
    line-height: 1.5;
}
.page {
    max-width: 1240px;
    margin: 0 auto;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
}
.header-subtitle {
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}
.header.header-compact .header-subtitle {
    opacity: 0;
    visibility: hidden;
}
.breadcrumb-section {
    position: sticky;
    top: 32px;
    z-index: 9;
    background: #fff;
    padding: 6px 0 10px 0;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--light);
    margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.breadcrumb-actions {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.breadcrumb-copy-label.eyebrow {
	margin: 0;
	display: inline-flex;
	align-items: center;
}
.copy-inline {
	font-size: 15px;
	cursor: pointer;
	color: var(--muted);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}
.copy-inline:hover {
    color: var(--black);
}
h1 {
    font-size: 54px;
    line-height: 1.04;
    margin: 0 0 44px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.04;
}
h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
}
p {
    margin: 0 0 8px;
}
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
    margin-bottom: 32px;
}
.meta-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.meta-value {
    font-size: 18px;
    font-weight: 600;
}
.section {
    position: relative;
    margin-bottom: 68px;
    border-top: 1px solid var(--light);
    padding-top: 18px;
}
.section-heading {
    display: flex;
    gap: 0;
    align-items: baseline;
    margin-bottom: 10px;
}
.section-heading .copy-link {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border: 1px solid var(--light);
    border-radius: 4px;
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}
.section-heading .copy-link:hover {
    color: var(--black);
    border-color: var(--black);
}
.section-number {
    position: absolute;
    left: -36px;
    top: 18px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black);
}
.columns {
    display: grid;
    grid-template-columns: minmax(420px, 1.5fr) minmax(260px, 1fr);
    gap: 22px 32px;
    align-items: start;
}
.card {
    border-top: 1px solid var(--light);
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 12px;
}
.lead {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.lead-callout {
    font-size: 15px;
    margin-bottom: 8px;
}
.metric-block + .metric-block {
    margin-top: 18px;
}
.metric-caption {
    margin-top: -2px;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul li {
    margin-bottom: 10px;
}
ul li strong {
    font-weight: 700 !important;
}
.tag {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid var(--light);
    border-radius: 14px;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.accent {
    color: var(--accent);
    font-weight: 700;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 13px;
}
.eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
    display: block;
}
.card > * + .eyebrow,
.narrative > * + .eyebrow {
    margin-top: 10px;
    padding-top: 2px;
}
.note {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}
.subhead {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 14px 0 6px;
}
.card > .subhead:first-child {
    margin-top: 0;
}
.arrow-up {
    color: var(--up);
    font-weight: 900;
    font-size: 18px;
    font-family:
        "Segoe UI Symbol", "Apple Symbols", "Symbola", "DejaVu Sans",
        "Arial Unicode MS", "Roboto", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    line-height: 1;
}
.arrow-down {
    color: #ea580c;
    font-weight: 900;
    font-size: 18px;
    font-family:
        "Segoe UI Symbol", "Apple Symbols", "Symbola", "DejaVu Sans",
        "Arial Unicode MS", "Roboto", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    line-height: 1;
}
.arrow-flat {
    color: var(--muted);
    font-weight: 900;
    font-size: 18px;
    font-family:
        "Segoe UI Symbol", "Apple Symbols", "Symbola", "DejaVu Sans",
        "Arial Unicode MS", "Roboto", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    line-height: 1;
}
.eyebrow + h3 {
    margin-top: 6px;
}
.rank-hero {
    font-size: 68px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.9;
    margin: 14px 0 12px;
}
.rank-denom {
    font-size: 28px;
    font-weight: 500;
    margin-left: 4px;
    color: var(--muted);
}
.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
    margin-top: 10px;
}
.rank-item {
    font-size: 14px;
    line-height: 1.4;
}
.explainer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--light);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.explainer .eyebrow {
    margin-bottom: 4px;
}
.narrative {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 760px;
}
.narrative--narrow {
    max-width: 620px;
}
.narrative p {
    margin: 0 0 10px;
}
.rank-line {
    position: relative;
    margin: 12px 0 18px;
    padding-bottom: 8px;
}
.rank-line-label {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--black);
}
.rank-line-scale {
    position: relative;
    height: 34px;
}
.rank-line-axis {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light);
}
.rank-line-label-start,
.rank-line-label-end {
    position: absolute;
    top: 22px;
    font-size: 11px;
    color: var(--muted);
}
.rank-line-label-start {
    left: 0;
}
.rank-line-label-end {
    right: 0;
}
.rank-dot {
    position: absolute;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 2;
}
.rank-dot-peer {
    background: #fff;
    border: 1.5px solid var(--light);
    color: var(--muted);
    z-index: 1;
    width: 16px;
    height: 16px;
    top: 7px;
    font-weight: 600;
}
.rank-dot-peer:hover {
    border-color: var(--black);
    color: var(--black);
}
.rank-tooltip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--light);
    padding: 6px 8px;
    font-size: 11px;
    color: var(--black);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 5;
}
.value-line {
    position: relative;
    margin: 10px 0 14px;
    padding-bottom: 8px;
    max-width: 220px;
    width: 100%;
}
.value-line-scale {
    position: relative;
    height: 34px;
}
.value-line-axis {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--light);
}
.value-line-label-start,
.value-line-label-end {
    position: absolute;
    top: 22px;
    font-size: 11px;
    color: var(--muted);
}
.value-line-label-start {
    left: 0;
}
.value-line-label-end {
    right: 0;
}
.rank-dot-peer:hover .rank-tooltip,
.rank-dot:hover .rank-tooltip {
    opacity: 1;
}
.map-block {
    max-width: 360px;
    margin: -8px 0 39px;
}
.map-block svg {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 960px) {
    body {
        margin: 32px 20px 64px;
    }
    h1 {
        font-size: 42px;
        line-height: 1.05;
    }
    .header-subtitle {
        display: none;
    }
    .columns {
        grid-template-columns: 1fr;
    }
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-number {
        position: static;
        font-size: 11px;
        margin-bottom: 4px;
        color: var(--muted);
        order: -1;
    }
}
.cluster-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.cluster-card > div {
    flex: 1;
}
.cluster-card ul {
    margin: 0;
    flex: 0 0 auto;
}
.cluster-map {
    flex: 1;
    max-width: 280px;
}
.cluster-map svg {
    width: 100%;
    height: auto;
    display: block;
}
svg polygon,
svg path.gmina {
    cursor: pointer;
}
svg polygon:hover,
svg path.gmina:hover {
    opacity: 0.8;
    stroke-width: 2 !important;
}

.cluster-member,
.cluster-powiat {
    fill: #111 !important;
    stroke: #000 !important;
    stroke-width: 1.5 !important;
}
.landing-hero {
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) minmax(320px, 1fr);
    gap: 28px 32px;
    align-items: start;
    margin-bottom: 32px;
}
.map-block--hero {
    max-width: none;
    margin: 0;
    padding-top: 4px;
    position: relative;
}
.map-block--hero img,
.map-block--hero svg,
.map-block--hero .map-embed {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}
.map-tooltip {
    position: absolute;
    z-index: 9999;
    min-width: 220px;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--light);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--black);
    display: none;
    pointer-events: none;
}
.map-tooltip__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.map-tooltip__subtitle {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.map-tooltip__stat {
    margin-bottom: 4px;
    line-height: 1.35;
}
.map-tooltip__link {
    margin-top: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    pointer-events: auto;
}
.map-tooltip__note {
    margin-top: 8px;
    font-size: 13px;
    font-style: italic;
    color: var(--muted);
}
.landing-card {
    border-top: 1px solid var(--light);
    padding-top: 16px;
}
.toc {
    margin: 16px 0 48px;
    padding: 18px 0 12px;
    border-top: 1px solid var(--light);
}
.toc-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
    display: block;
}
.toc-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 18px;
    column-gap: 0;
    margin: 0;
}
.toc-link {
    position: relative;
    padding: 12px 16px 14px;
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    letter-spacing: -0.005em;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}
.toc-link:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--light);
}
.toc-link:nth-child(5n + 1)::before {
    content: none;
    display: none !important;
}
.toc-link--no-divider::before {
    content: none;
    display: none !important;
}
.toc-link:hover,
.toc-link:focus-visible {
    outline: none;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.toc-link:nth-child(5n + 1) {
    padding-left: 0;
}
.toc-link:nth-child(5n) {
    padding-right: 0;
}
.toc-number {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
}
.toc-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.footer-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--light);
}
.footer-logo {
    height: 64px;
    max-width: 160px;
    object-fit: contain;
}
@media (max-width: 960px) {
    body {
        margin: 32px 20px 64px;
    }
    .landing-hero {
        grid-template-columns: 1fr;
    }
    .toc-list {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
    .toc-link {
        padding: 10px 0;
        border-top: 1px solid var(--light);
    }
    .toc-link:first-child {
        border-top: none;
    }
    .toc-link::before {
        content: none !important;
    }
}
