/*
Theme Name: Jeziora v2
Theme URI: https://jeziora-polskie.pl/
Description: Jeziora Polskie – magazyn premium (2026-11): duże zdjęcia, elegancka typografia, karty ze zdjęciami.
Version: 3.0.0
Text Domain: jeziora
*/

:root {
	--bg: #FAF8F4;
	--surface: #FFFFFF;
	--ink: #0E1A21;
	--ink-2: #36444C;
	--muted: #5C686E;
	--line: #E7E2D9;
	--navy: #0B1A23;
	--navy-2: #132B3A;
	--link: #1B5C77;
	--gold: #876628;
	--gold-light: #E8CB91;
	--link-hover: #0E1A21;
	--map-line: #2C4A5E;
	--dot: #86CFE2;
	--btn: var(--navy);
	--btn-hover: var(--link);

	--sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

	--wrap: 1240px;
	--gutter: clamp(1rem, 4vw, 2.25rem);
	--r: 16px;
	--r-sm: 10px;
	--shadow: 0 1px 2px rgb(14 26 33 / 0.05), 0 8px 28px rgb(14 26 33 / 0.08);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ===== Podstawy ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 200; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { max-width: calc(44rem + 2 * var(--gutter)); }
.site-main { min-height: 60vh; padding-bottom: 5rem; }
.section { margin-top: clamp(4rem, 8vw, 7rem); }
.section-tight { margin-top: 2.5rem; }

.eyebrow { font: 600 0.75rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin: 0 0 0.9rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.link-btn { all: unset; color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; transition: transform 0.2s var(--ease), background 0.2s; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy); transform: translateY(-2px); }

/* ===== Nagłówek ===== */
.site-header { position: sticky; top: 0; z-index: 60; background: rgb(250 248 244 / 0.9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand-name { font: 600 1.45rem/1.05 var(--serif); letter-spacing: -0.02em; }
.brand-sub { font: 600 0.62rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-top: 5px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.main-nav a { display: block; padding: 0.55rem 0.85rem; text-decoration: none; color: inherit; font-weight: 500; font-size: 0.97rem; border-radius: 999px; transition: background 0.2s; }
.main-nav a:hover { background: rgb(14 26 33 / 0.06); color: inherit; }
.site-header { color: var(--ink); }
.search-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border: 1px solid currentColor; border-color: rgb(14 26 33 / 0.2); background: transparent; color: inherit; border-radius: 999px; font: 500 0.92rem var(--sans); cursor: pointer; transition: background 0.2s; }
.search-btn:hover { background: rgb(14 26 33 / 0.06); }
.search-btn kbd { display: none; }
.menu-toggle { display: none; }

/* Przezroczysty nagłówek na zdjęciu */
.has-hero .site-header { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; backdrop-filter: none; color: #fff; }
.has-hero .site-header .brand { color: #fff; }
.has-hero .site-header .brand-sub { color: var(--gold-light); }
.has-hero .site-header .search-btn { border-color: rgb(255 255 255 / 0.45); }
.has-hero .site-header .main-nav a:hover, .has-hero .site-header .search-btn:hover { background: rgb(255 255 255 / 0.14); }
.has-hero .site-header.is-scrolled { background: rgb(250 248 244 / 0.94); backdrop-filter: saturate(1.4) blur(12px); border-color: var(--line); color: var(--ink); }
.has-hero .site-header.is-scrolled .brand { color: var(--ink); }
.has-hero .site-header.is-scrolled .brand-sub { color: var(--gold); }
.has-hero .site-header.is-scrolled .search-btn { border-color: rgb(14 26 33 / 0.2); }
.has-hero .site-header.is-scrolled .main-nav a:hover, .has-hero .site-header.is-scrolled .search-btn:hover { background: rgb(14 26 33 / 0.06); }

@media (max-width: 900px) {
	.header-row { gap: 0.6rem; flex-wrap: wrap; }
	.menu-toggle { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; padding: 0.5rem 0.9rem; border: 1px solid rgb(14 26 33 / 0.2); border-radius: 999px; background: transparent; color: inherit; font: 500 0.92rem var(--sans); cursor: pointer; }
	.has-hero .site-header:not(.is-scrolled):not(.menu-open) .menu-toggle { border-color: rgb(255 255 255 / 0.45); }
	.menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 16px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
	.menu-toggle-bars::before { content: ''; position: absolute; top: 5px; }
	.menu-toggle-bars { top: -2.5px; }
	.search-btn-label { display: none; }
	.search-btn { padding: 0.55rem 0.7rem; }
	.main-nav { order: 3; width: 100%; display: none; margin: 0; padding-bottom: 1rem; }
	.menu-open .main-nav { display: block; }
	.has-hero .site-header.menu-open { background: var(--bg); color: var(--ink); }
	.has-hero .site-header.menu-open .brand { color: var(--ink); }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
}

/* ===== Wyszukiwarka (modal) ===== */
.search-modal { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding: 12vh var(--gutter) 2rem; }
.search-modal[hidden] { display: none; }
.search-modal-overlay { position: absolute; inset: 0; background: rgb(11 26 35 / 0.6); backdrop-filter: blur(4px); }
.search-modal-panel { position: relative; width: 100%; max-width: 42rem; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 0.3); }
.search-modal-form { display: flex; align-items: center; gap: 0.75rem; padding: 0 1.25rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-modal-form input { flex: 1; border: 0; background: transparent; font: 400 1.2rem var(--sans); padding: 1.25rem 0; color: var(--ink); min-width: 0; }
.search-modal-form input:focus { outline: none; }
.search-modal-close { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; font: 500 0.75rem var(--sans); color: var(--muted); padding: 0.25rem 0.5rem; cursor: pointer; }
.search-modal-results:empty { display: none; }
.search-suggestions { list-style: none; margin: 0; padding: 0.4rem 0; }
.search-suggestions a { display: block; padding: 0.7rem 1.25rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.search-suggestions a:hover, .search-suggestions a:focus { background: var(--bg); }
.search-modal-loading, .search-modal-empty, .hero-search-loading, .hero-search-empty { padding: 1rem 1.25rem; color: var(--muted); }

/* ===== Okruszki ===== */
.breadcrumbs { margin: 1.75rem 0 1.25rem; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; line-height: 1.4; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin: 0 0.6rem; opacity: 0.5; }
/* link i bieżący element (span) z tym samym odstępem – inaczej ostatni element „podskakuje” */
.breadcrumbs a, .breadcrumbs li > span { display: inline-block; color: inherit; text-decoration: none; padding: 0.35rem 0; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-head { margin: 0 0 2.5rem; }

/* ===== Hero ze zdjęciem ===== */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(92svh, 880px); background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero-img, .hero picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero picture img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(8 18 24 / 0.88) 0%, rgb(8 18 24 / 0.45) 42%, rgb(8 18 24 / 0.1) 70%, rgb(8 18 24 / 0.45) 100%); }
.hero-inner { position: relative; padding-top: 8rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; font-size: clamp(3rem, 1.8rem + 6vw, 6.5rem); line-height: 0.98; margin-bottom: 1.25rem; }
.hero .eyebrow { color: var(--gold-light); }
.hero-lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; max-width: 40ch; color: rgb(255 255 255 / 0.9); margin-bottom: 2rem; }
.hero .breadcrumbs { color: rgb(255 255 255 / 0.75); margin-top: 0; }
.photo-credit { position: absolute; right: var(--gutter); bottom: 0.9rem; margin: 0; font-size: 0.72rem; color: rgb(255 255 255 / 0.7); }
.photo-credit a { color: inherit; }
.hero-lake { min-height: min(78svh, 760px); }
.hero-lake h1, .hero-short h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.2rem); }
.hero-lake .hero-inner { padding-bottom: clamp(5rem, 9vw, 7rem); }
.hero-short { min-height: min(60svh, 560px); }
.hero-post { min-height: min(72svh, 680px); }
.hero-post h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); max-width: 22ch; }
.hero-post .hero-inner { max-width: calc(52rem + 2 * var(--gutter)); }

.hero-search { position: relative; display: flex; align-items: center; gap: 0.5rem; max-width: 36rem; padding: 0.4rem 0.4rem 0.4rem 1.25rem; background: #fff; border-radius: 999px; color: var(--muted); box-shadow: 0 10px 40px rgb(0 0 0 / 0.25); }
.hero-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.85rem 0.25rem; font: 400 1.08rem var(--sans); color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.hero-search button { border: 0; background: var(--btn); color: #fff; font: 600 1rem var(--sans); padding: 0.85rem 1.6rem; border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.hero-search button:hover { background: var(--btn-hover); color: #fff; }
.hero-search-suggestions { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: var(--r); z-index: 20; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 1.5rem; font-size: 0.95rem; }
.hero-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 0.4); padding-bottom: 2px; }
.hero-links a:hover { border-color: #fff; }

/* ===== Nagłówki sekcji ===== */
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ===== Polecane (siatka zdjęć) ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(15rem, 19vw); gap: 1rem; }
.feature { position: relative; display: block; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy-2); isolation: isolate; }
.feature-big { grid-column: span 2; grid-row: span 2; }
.feature img, .region img, .lcard-img img, .pcard-img img, .rank-thumb img, .near-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature::after, .region::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(8 18 24 / 0.8), rgb(8 18 24 / 0) 55%); z-index: 0; }
.feature:hover img, .region:hover img, .lcard-link:hover .lcard-img img, .pcard-link:hover .pcard-img img { transform: scale(1.05); }
.feature-text, .region-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.4rem; z-index: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.feature-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-light); }
.feature-name { font: 600 1.45rem/1.15 var(--serif); }
.feature-big .feature-name { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); }
.feature-big .feature-text { padding: 2rem; }

/* ===== Regiony ===== */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.region { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--navy-2); isolation: isolate; }
.region-name { font: 600 1.35rem/1.15 var(--serif); }
.region-count { font-size: 0.9rem; color: rgb(255 255 255 / 0.85); }

/* ===== Pas z mapą ===== */
.map-band { margin-top: clamp(4rem, 8vw, 7rem); background: var(--navy); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.map-band-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.map-band h2 { color: #fff; }
.map-band .eyebrow { color: var(--gold-light); }
.map-band p { color: rgb(255 255 255 / 0.8); max-width: 44ch; margin-bottom: 2rem; }
.pl-map { width: 100%; }
.m-pl { fill: var(--navy-2); stroke: var(--map-line); stroke-width: 1.4; }
.m-dots { stroke: var(--dot); stroke-width: 3.6; stroke-linecap: round; opacity: 0.8; }
.m-lbl circle { fill: var(--gold-light); stroke: var(--navy); stroke-width: 2; }
.m-lbl text { font: 600 17px var(--serif); fill: #fff; paint-order: stroke; stroke: var(--navy); stroke-width: 4px; stroke-linejoin: round; }
.map-band-map:hover .m-dots { opacity: 1; }

/* ===== Rankingi ===== */
.rankings { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list a { display: grid; grid-template-columns: 4rem 1.75rem 1fr auto; align-items: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rank-thumb { display: block; width: 4rem; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--navy-2); }
.rank-no { font: 600 1.4rem var(--serif); color: var(--gold); }
.rank-name { font-weight: 600; font-size: 1.05rem; }
.rank-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-list a:hover .rank-name { text-decoration: underline; }

/* ===== Kafelki jezior ===== */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2rem 1.25rem; }
.lcard-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.lcard-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--navy-2); }
.lcard-body { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 0.9rem; }
.lcard-kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.lcard-name { font: 600 1.35rem/1.2 var(--serif); }
.lcard-stats { font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lcard-link:hover .lcard-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.ph-empty { display: block; width: 100%; height: 100%; background: radial-gradient(120% 90% at 20% 100%, #2D6A82 0%, #163445 55%, #0E2230 100%); }

/* ===== Karta jeziora ===== */
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin: -3.5rem 0 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.facts > div { padding: 1.4rem 1.6rem; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.3rem 0 0; font: 600 1.6rem/1.2 var(--serif); }
.lake-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.lake-aside { position: sticky; top: 6rem; display: grid; gap: 1.25rem; }
.aside-box { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 1.25rem; }
.aside-box h2 { font: 700 0.78rem var(--sans); text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 0.9rem; }
#jezioro-map { height: 15rem; border-radius: var(--r-sm); background: #DCE6EA; overflow: hidden; }
.map-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--muted); }
.near-list { list-style: none; margin: 0; padding: 0; }
.near-list a { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: 0.8rem; padding: 0.45rem 0; text-decoration: none; color: var(--ink); }
.near-thumb { display: block; width: 3.5rem; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--navy-2); }
.near-name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.near-km { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.near-list a:hover .near-name { text-decoration: underline; }
.aside-cta { display: block; padding: 1rem 1.25rem; border-radius: var(--r); background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; }
.aside-cta:hover { color: #fff; background: var(--navy-2); }

/* ===== Treść ===== */
.prose { font-size: 1.1rem; line-height: 1.75; color: #1D2A31; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; text-wrap: pretty; }
.prose > p:first-child { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.4rem; }
.prose h4 { margin: 1.5em 0 0.4em; font-size: 1.1rem; font-family: var(--sans); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose img { border-radius: var(--r); }
.prose figure { margin: 2.5rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--gold); font: italic 400 1.35rem/1.5 var(--serif); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose .table-frame, .prose .wp-block-table { overflow-x: auto; margin: 2rem 0; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--surface); margin: 2rem 0; }
.prose .table-frame table, .prose .wp-block-table table { margin: 0; }
.prose th { text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: #F3F0EA; }
.prose th, .prose td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose [style*="font-family"] { font-family: inherit !important; }
.prose span[style] { color: inherit !important; background: none !important; }
.post-body { margin-top: clamp(2.5rem, 5vw, 4rem); }
.post-body > .lead { font-size: 1.3rem; margin-bottom: 2rem; color: var(--ink); }

/* ===== Blog ===== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem 1.5rem; }
.mag-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem 1.5rem; }
.mag-grid .pcard-big { grid-column: 1; grid-row: span 2; }
.pcard-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); height: 100%; }
.pcard-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--navy-2); }
.pcard-big .pcard-img { aspect-ratio: 4 / 3; }
.pcard-body { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 1rem; }
.pcard-meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.pcard-title { font: 600 1.3rem/1.25 var(--serif); text-wrap: balance; }
.pcard-big .pcard-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.pcard-excerpt { color: var(--muted); margin-top: 0.3rem; }
.pcard-link:hover .pcard-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

/* ===== Paginacja ===== */
.pager { margin-top: 3rem; }
.pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pager a, .pager span { display: inline-block; min-width: 2.75rem; padding: 0.6rem 0.9rem; text-align: center; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; text-decoration: none; color: var(--ink); font-weight: 500; }
.pager a:hover { box-shadow: 0 0 0 1px var(--ink) inset; }
.pager .current { background: var(--navy); color: #fff; box-shadow: none; }
.pager .dots { background: none; box-shadow: none; }

/* ===== Mapa /mapa/ ===== */
#full-map { height: min(78vh, 48rem); border-radius: var(--r); overflow: hidden; background: #DCE6EA; box-shadow: var(--shadow); }
.leaflet-container { font-family: var(--sans) !important; }
.leaflet-popup-content-wrapper { border-radius: 12px !important; }
.map-popup-title { font: 600 1.1rem var(--serif); color: var(--ink); text-decoration: none; }
.map-popup-meta, .map-popup-stats { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.map-popup-link { display: inline-block; margin-top: 0.4rem; font-weight: 600; }

/* ===== Atlas ryb ===== */
.fish-hero { margin-bottom: 2rem; }
.fish-hero-scientific { font: italic 400 1.15rem var(--serif); color: var(--muted); }
.fish-quickfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); margin: 1.5rem 0; }
.fish-quickfact { padding: 1rem 1.25rem; }
.fish-quickfact-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.fish-quickfact-value { font: 600 1.15rem var(--serif); }
.fish-hero-image img { border-radius: var(--r); }
.fish-content { max-width: 46rem; }
.fish-card { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.fish-card a { text-decoration: none; color: var(--ink); display: block; }
.fish-card-content { padding: 1rem 1.2rem 1.2rem; }
.fish-card-name { font: 600 1.25rem var(--serif); }
.fish-card-scientific { font: italic 0.9rem var(--serif); color: var(--muted); }
.fish-card-pattern { display: none; }
.fish-filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.fish-filter-bar input, .fish-filter-bar select { padding: 0.65rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 400 0.95rem var(--sans); }
.fish-filter-search { display: flex; align-items: center; gap: 0.4rem; }
.fish-stats-table th, .fish-stats-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; }
.th-icon { display: none; }

/* ===== Stopka ===== */
.site-footer { background: var(--navy); color: #C7D1D6; padding: 4.5rem 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #EEF2F4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.6fr; gap: 3rem; }
.site-footer .brand-name { color: #fff; font-size: 1.7rem; margin-bottom: 1rem; }
.footer-about p:last-child { max-width: 36ch; color: #A9B6BC; }
.footer-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-light); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 0.3rem 0; }
.footer-woj ul { columns: 2; column-gap: 2rem; }
.footer-woj li { display: flex; justify-content: space-between; gap: 0.5rem; break-inside: avoid; }
.footer-woj span { color: #A9B6BC; background: var(--navy); font-size: 0.85rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.85rem; color: #A9B6BC; }
.footer-bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }

/* ===== Pojawianie się sekcji ===== */
.will-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.will-reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsywność ===== */
@media (max-width: 1100px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 15rem; }
	.region-grid { grid-template-columns: repeat(3, 1fr); }
	.mag-grid { grid-template-columns: 1fr 1fr; }
	.mag-grid .pcard-big { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 900px) {
	.map-band-inner { grid-template-columns: 1fr; }
	.rankings { grid-template-columns: 1fr; }
	.lake-grid { grid-template-columns: 1fr; }
	.lake-aside { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
	.facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
	body { font-size: 1rem; }
	.feature-grid { grid-template-columns: 1fr; grid-auto-rows: 16rem; }
	.feature-big { grid-column: auto; grid-row: span 1; }
	.region-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
	.region-name { font-size: 1.1rem; }
	.mag-grid { grid-template-columns: 1fr; }
	.hero-search { padding-left: 1rem; }
	.hero-search button { padding: 0.8rem 1.1rem; }
	.hero-search svg { display: none; }
	.rank-list a { grid-template-columns: 3.25rem 1.25rem 1fr auto; gap: 0.7rem; }
	.rank-thumb { width: 3.25rem; }
	.footer-grid { grid-template-columns: 1fr; }
	.photo-credit { left: var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
	*, .will-reveal { transition: none !important; animation: none !important; }
	.will-reveal { opacity: 1; transform: none; }
}
.hero-lake .photo-credit { bottom: 4.6rem; }

/* ===== Hover bez znikania (2026-11-14) =====
   Linki z białym tekstem na zdjęciach/ciemnym tle zostają białe po najechaniu. */
.brand:hover, .has-hero .site-header .brand:hover { color: inherit; }
.feature:hover, .region:hover, .feature:hover *, .region:hover * { color: #fff; }
.feature:hover .feature-kicker { color: var(--gold-light); }
.feature:hover .feature-name, .region:hover .region-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.hero a:hover, .hero-links a:hover, .photo-credit a:hover { color: #fff; }
.map-band a:not(.btn):hover { color: #fff; }
.btn-light:hover { color: var(--navy); }
.site-footer a:hover { color: #fff; }
.aside-cta:hover { color: #fff; }
.lcard-link:hover, .pcard-link:hover, .rank-list a:hover, .near-list a:hover { color: var(--ink); }
.main-nav a:hover { color: inherit; }
.has-hero .site-header:not(.is-scrolled) .main-nav a:hover { color: #fff; }

/* ===== Palety do wyboru (podgląd: ?jz_kolor=a|b|c) ===== */
/* B – Las i turkus */
body.pal-b {
	--bg: #F7F6F1; --line: #E3E1D6;
	--navy: #0F241D; --navy-2: #173A2F;
	--link: #1A6A5A; --link-hover: #0C1F19;
	--gold: #1A6A5A; --gold-light: #8FDCC9;
	--map-line: #2A5446; --dot: #9BE3CF;
	--btn: #0F241D; --btn-hover: #1A6A5A;
	--ink: #0F1D18; --ink-2: #33433D; --muted: #5A6862;
}
/* C – Fiord (jasny, nordycki błękit) */
body.pal-c {
	--bg: #F5F8FA; --surface: #FFFFFF; --line: #DFE6EC;
	--navy: #0A2238; --navy-2: #12385A;
	--link: #1D5FB8; --link-hover: #0A2238;
	--gold: #1D5FB8; --gold-light: #9CCBFF;
	--map-line: #24507A; --dot: #A9D5FF;
	--btn: #1D5FB8; --btn-hover: #0A2238;
	--ink: #0B1B2A; --ink-2: #33475A; --muted: #586979;
}
body.pal-c .ph-empty { background: radial-gradient(120% 90% at 20% 100%, #2B6CB0 0%, #14406A 55%, #0A2238 100%); }
body.pal-b .ph-empty { background: radial-gradient(120% 90% at 20% 100%, #2D7A68 0%, #173A2F 55%, #0F241D 100%); }

/* =====================================================================
   v3.1 – ostre rogi, nowoczesne tabele, bezszeryfowe nagłówki (2026-11-14)
   Wzorce: National Geographic, Lonely Planet, Visit Finland.
   ===================================================================== */
:root { --r: 3px; --r-sm: 2px; }
.btn, .hero-search, .hero-search button, .search-btn, .menu-toggle, .main-nav a, .pager a, .pager span,
.fish-filter-bar input, .fish-filter-bar select { border-radius: 3px; }
.hero-search { padding: 0.35rem 0.35rem 0.35rem 1.1rem; }
.facts, .aside-box, .aside-cta, .search-modal-panel, #full-map { border-radius: 3px; }
.facts, .aside-box { box-shadow: none; border: 1px solid var(--line); }
.facts { box-shadow: 0 18px 40px rgb(10 34 56 / 0.10); }

/* Etykiety */
.eyebrow, .lcard-kicker, .pcard-meta, .feature-kicker, .aside-box h2, .footer-title, .facts dt { letter-spacing: 0.14em; }

/* Tabele – minimalne: linie poziome, bez pudełek */
.prose .table-frame, .prose .wp-block-table { box-shadow: none; border-radius: 0; margin: 2.25rem 0; }
.prose table { background: transparent; font-size: 1rem; border-top: 2px solid var(--ink); }
.prose th { background: transparent; color: var(--ink); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.9rem 1rem 0.8rem 0; border-bottom: 1px solid var(--ink); }
.prose td { padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.prose td:first-child, .prose th:first-child { padding-left: 0; }
.prose tbody tr { transition: background 0.15s; }
.prose tbody tr:hover { background: rgb(29 95 184 / 0.05); }
.prose td strong, .prose td b { font-weight: 600; }
.prose td a { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Nagłówki bezszeryfowe – wspólne */
h1, h2, h3, h4, .brand-name, .feature-name, .region-name, .lcard-name, .pcard-title, .rank-no, .facts dd,
.fish-card-name, .fish-quickfact-value, .map-popup-title { font-family: var(--head); }
.prose blockquote { font-family: var(--sans); font-style: normal; font-weight: 500; }

/* Wariant 1 – „Finland”: Bricolage Grotesque + Inter */
body.font-1 { --head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
body.font-1 h1, body.font-1 h2, body.font-1 .feature-name, body.font-1 .region-name { font-weight: 700; letter-spacing: -0.03em; }
body.font-1 .lcard-name, body.font-1 .pcard-title, body.font-1 h3 { font-weight: 650; letter-spacing: -0.015em; }

/* Wariant 2 – „NatGeo”: Plus Jakarta Sans */
body.font-2 { --head: 'Plus Jakarta Sans', system-ui, sans-serif; --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
body.font-2 h1, body.font-2 h2, body.font-2 .feature-name, body.font-2 .region-name { font-weight: 800; letter-spacing: -0.035em; }
body.font-2 .lcard-name, body.font-2 .pcard-title, body.font-2 h3 { font-weight: 700; letter-spacing: -0.02em; }

/* Wariant 3 – „Lonely Planet”: Barlow Condensed + Barlow */
body.font-3 { --head: 'Barlow Condensed', 'Arial Narrow', sans-serif; --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; }
body.font-3 h1, body.font-3 .hero h1 { text-transform: uppercase; font-weight: 700; letter-spacing: 0; line-height: 0.92; }
body.font-3 h2, body.font-3 .feature-name, body.font-3 .region-name { font-weight: 700; letter-spacing: 0.005em; text-transform: uppercase; }
body.font-3 .lcard-name, body.font-3 .pcard-title, body.font-3 h3, body.font-3 .facts dd { font-weight: 600; letter-spacing: 0.01em; }
body.font-3 .lcard-name, body.font-3 .pcard-title { font-size: 1.5rem; }
body.font-3 { font-size: 1.1rem; }
/* Tabele wklejone z innych narzędzi mają własne ramki – nadpisujemy */
.prose table, .prose table[style], .prose .table-frame, .prose .wp-block-table { border: 0 !important; border-top: 2px solid var(--ink) !important; width: 100% !important; }
.prose .table-frame, .prose .wp-block-table { border-top: 0 !important; }
.prose th, .prose td, .prose th[style], .prose td[style], .prose tr[style] { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; background: transparent !important; }
.prose th, .prose th[style] { border-bottom: 1px solid var(--ink) !important; }
.prose td, .prose td[style] { border-bottom: 1px solid var(--line) !important; }
.prose tbody tr:hover td { background: rgb(29 95 184 / 0.05) !important; }

/* =====================================================================
   Charakter „Lonely Planet” konsekwentnie w całym serwisie (font-3)
   ===================================================================== */
body.font-3 .brand-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.55rem; letter-spacing: 0.01em; }
body.font-3 .brand-sub { font-family: var(--sans); }
body.font-3 .main-nav a { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.02rem; }
body.font-3 .search-btn, body.font-3 .menu-toggle, body.font-3 .btn, body.font-3 .hero-search button, body.font-3 .more, body.font-3 .aside-cta, body.font-3 .hero-links a {
	font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
body.font-3 .more { font-size: 1.05rem; }
body.font-3 .eyebrow, body.font-3 .lcard-kicker, body.font-3 .pcard-meta, body.font-3 .feature-kicker,
body.font-3 .aside-box h2, body.font-3 .footer-title, body.font-3 .facts dt, body.font-3 .region-count {
	font-family: var(--head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
body.font-3 .eyebrow { font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.6rem; }
body.font-3 .eyebrow::before { content: ''; width: 1.75rem; height: 2px; background: currentColor; }
body.font-3 .hero h1 { font-size: clamp(3.4rem, 2rem + 7vw, 8rem); }
body.font-3 .hero-lake h1, body.font-3 .hero-short h1 { font-size: clamp(2.8rem, 1.8rem + 5vw, 6rem); }
body.font-3 .hero-post h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); max-width: 18ch; }
body.font-3 h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); line-height: 0.98; }
body.font-3 .lcard-name, body.font-3 .feature-name, body.font-3 .region-name, body.font-3 .rank-name { text-transform: uppercase; font-family: var(--head); font-weight: 700; letter-spacing: 0.01em; }
body.font-3 .lcard-name { font-size: 1.6rem; line-height: 1.05; }
body.font-3 .feature-name { font-size: 1.7rem; line-height: 1; }
body.font-3 .feature-big .feature-name { font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.6rem); }
body.font-3 .region-name { font-size: 1.6rem; line-height: 1; }
body.font-3 .rank-name { font-size: 1.3rem; }
body.font-3 .rank-no { font-size: 2rem; font-weight: 700; }
body.font-3 .pcard-title { font-size: 1.55rem; line-height: 1.1; font-weight: 600; }
body.font-3 .pcard-big .pcard-title { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); text-transform: uppercase; font-weight: 700; line-height: 1; }
body.font-3 .facts dd { font-size: 2.2rem; font-weight: 700; line-height: 1.05; }
body.font-3 .near-name { font-family: var(--head); font-weight: 600; font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.02em; }
body.font-3 .site-footer .brand-name { font-size: 2.2rem; }
body.font-3 .footer-col a { font-family: var(--head); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.02em; }

/* Treść artykułów: nagłówki w tym samym duchu, tekst czytelny */
body.font-3 .prose h2 { text-transform: uppercase; font-weight: 700; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); line-height: 1; letter-spacing: 0.005em; }
body.font-3 .prose h3 { font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
body.font-3 .prose h4 { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
body.font-3 .prose th, body.font-3 .prose thead td, body.font-3 .prose tr:first-child td strong {
	font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem;
}
body.font-3 .prose blockquote { font-family: var(--head); font-weight: 600; font-size: 1.7rem; line-height: 1.2; text-transform: none; }
body.font-3 .post-body > .lead, body.font-3 .prose > p:first-child { font-size: 1.3rem; }
body.font-3 .pager a, body.font-3 .pager span { font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
/* Małe nagłówki ramek nie dziedziczą rozmiaru h2 */
body.font-3 .aside-box h2 { font-size: 0.95rem; line-height: 1.3; letter-spacing: 0.14em; }

/* ===== Jeziora w pobliżu (karty ze strzałką kierunku) ===== */
.nearby { margin-top: clamp(3.5rem, 7vw, 6rem); }
.nearby-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.25rem; }
.near-card { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; color: var(--ink); }
.near-card-img { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--navy-2); margin-bottom: 0.6rem; }
.near-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.near-card:hover .near-card-img img { transform: scale(1.05); }
.near-badge { position: absolute; left: 0.75rem; top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.6rem; background: rgb(255 255 255 / 0.94); color: var(--ink); border-radius: 2px; font: 700 0.95rem/1 var(--head); letter-spacing: 0.04em; text-transform: uppercase; }
.near-badge svg { color: var(--link); transition: transform 0.3s; }
.near-card-name { font: 700 1.45rem/1.05 var(--head); text-transform: uppercase; letter-spacing: 0.01em; }
.near-card-meta { font-size: 0.92rem; color: var(--muted); }
.near-card:hover .near-card-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
@media (max-width: 900px) {
	.nearby-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 20rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
	.near-card { scroll-snap-align: start; }
}

/* ===== Atlas ryb w stylu serwisu ===== */
.btn-dark { background: var(--btn); color: #fff; border: 0; cursor: pointer; }
.btn-dark:hover { background: var(--btn-hover); color: #fff; }
.fish-filter-bar { align-items: center; gap: 0.6rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; margin-bottom: 2.5rem; }
.fish-filter-bar input, .fish-filter-bar select { border-radius: 3px; padding: 0.7rem 0.9rem; font-family: var(--sans); }
.fish-filter-search { flex: 1 1 16rem; border: 1px solid var(--line); border-radius: 3px; padding-left: 0.75rem; background: var(--surface); }
.fish-filter-search input { border: 0; flex: 1; padding-left: 0.25rem; }
.fish-filter-submit { padding: 0.75rem 1.4rem; }
.fcard-img { background: #fff; }
.fcard-img img { object-fit: cover; }
.fcard-latin { font-style: italic; }

.single-fish { padding-top: 0.5rem; }
.fish-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: 2.5rem; }
.fish-hero h1 { margin-bottom: 0.35rem; }
.fish-hero-scientific { font-family: var(--sans); font-style: italic; font-size: 1.2rem; color: var(--muted); margin-bottom: 1.25rem; }
.fish-hero-lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }
.fish-hero-image { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: clamp(1rem, 3vw, 2rem); display: flex; align-items: center; justify-content: center; }
.fish-hero-image img { max-height: 24rem; width: 100%; object-fit: contain; border-radius: 0; }
.fish-quickfacts { border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; background: var(--surface); margin: 0 0 2.5rem; }
.fish-quickfact + .fish-quickfact { border-left: 1px solid var(--line); }
.fish-quickfact { padding: 1.1rem 1.4rem; }
.fish-quickfact-label { font-family: var(--head); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--muted); }
.fish-quickfact-value { font-family: var(--head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; display: block; margin-top: 0.2rem; }
.fish-angling-notice { max-width: 46rem; padding: 1rem 1.25rem; border-left: 3px solid var(--link); background: var(--surface); margin: 0 0 2.5rem; }
.fish-stats-card { max-width: 46rem; margin: 0 0 2.5rem; }
.fish-stats-card h2 { font-size: 1rem !important; letter-spacing: 0.14em; color: var(--link); margin-bottom: 0.75rem; }
.fish-stats-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.fish-stats-table th { width: 40%; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-size: 0.95rem; }
.fish-stats-table th, .fish-stats-table td { padding: 0.75rem 1rem 0.75rem 0; border-bottom: 1px solid var(--line); }
.fish-content { max-width: 46rem; }
.fish-description-missing { color: var(--muted); }
@media (max-width: 900px) {
	.fish-hero { grid-template-columns: 1fr; }
	.fish-quickfact + .fish-quickfact { border-left: 0; border-top: 1px solid var(--line); }
}

/* Strony bez okruszków (np. wyniki wyszukiwania) – odstęp od nagłówka */
.wrap > .page-head:first-child { padding-top: 2.5rem; }
.hero-links-dark { margin-top: 1.5rem; }
.page-head .hero-search { border: 1px solid var(--line); box-shadow: none; }

/* =====================================================================
   Atlas ryb – karta gatunku z danymi wędkarskimi
   ===================================================================== */
.hero-fish h1 { margin-bottom: 0.6rem; }
.hero-fish .hero-lead { margin-bottom: 1.2rem; }
.fish-status { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; padding: 0.55rem 0.9rem; background: rgb(255 255 255 / 0.95); color: var(--ink); border-radius: 3px; font: 700 1rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.06em; }
.fish-status .dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #1E8E4E; box-shadow: 0 0 0 3px rgb(30 142 78 / 0.2); }
.fish-status-closed .dot { background: #C8352B; box-shadow: 0 0 0 3px rgb(200 53 43 / 0.2); }
.fish-status-soon .dot { background: #D98A10; box-shadow: 0 0 0 3px rgb(217 138 16 / 0.2); }
.law-note { max-width: 60rem; margin: 1rem 0 0; font-size: 0.92rem; color: var(--muted); }

.fish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.fish-aside { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 0.75rem; padding: 0.6rem 0; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.05rem; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--link); }
.toc a:hover { color: var(--link); }
.fish-intro { max-width: 46rem; }
.fish-block { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 6rem; }
.fish-block h2 { margin-bottom: 1.25rem; }

/* Kalendarz brań */
.bite-cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.35rem; align-items: end; height: 9rem; }
.bite-m { display: flex; flex-direction: column; align-items: stretch; gap: 0.45rem; height: 100%; justify-content: flex-end; }
.bite-bar { display: block; border-radius: 2px; background: var(--link); }
.bite-1 .bite-bar { height: 18%; opacity: 0.35; }
.bite-2 .bite-bar { height: 42%; opacity: 0.55; }
.bite-3 .bite-bar { height: 70%; opacity: 0.8; }
.bite-4 .bite-bar { height: 100%; }
.bite-0 .bite-bar { height: 8%; opacity: 0.25; }
.bite-p .bite-bar { height: 100%; background: repeating-linear-gradient(135deg, rgb(200 53 43 / 0.16) 0 6px, rgb(200 53 43 / 0.32) 6px 12px); }
.bite-name { font: 600 0.85rem/1 var(--head); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; color: var(--muted); }
.bite-m.is-now .bite-name { color: var(--ink); }
.bite-m.is-now .bite-name::after { content: ''; display: block; width: 6px; height: 6px; margin: 4px auto 0; border-radius: 50%; background: var(--ink); }
.bite-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; margin: 1rem 0 0; font-size: 0.88rem; color: var(--muted); }
.bl { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 2px; background: var(--link); vertical-align: -2px; margin-right: 0.25rem; }
.bl-3 { opacity: 0.8; } .bl-2 { opacity: 0.55; } .bl-1 { opacity: 0.35; }
.bl-p { background: repeating-linear-gradient(135deg, rgb(200 53 43 / 0.2) 0 3px, rgb(200 53 43 / 0.4) 3px 6px); }
.fish-daytime { margin: 1rem 0 0; max-width: 46rem; }

/* Metody */
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.method { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--link); border-radius: 3px; padding: 1.25rem 1.35rem; }
.method header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.method h3 { margin: 0; font-size: 1.5rem; text-transform: uppercase; }
.method-score { display: inline-flex; gap: 3px; }
.method-score i { width: 0.55rem; height: 1.1rem; border-radius: 1px; background: var(--line); }
.method-score i.on { background: var(--link); }
.method dl { margin: 0; display: grid; gap: 0.5rem; }
.method dt { font: 600 0.78rem var(--head); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.method dd { margin: 0.1rem 0 0; font-size: 0.97rem; }
.method-tip { margin: 0.9rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); }

/* Przynęty */
.bait-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.bait-cols h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--link); margin-bottom: 0.5rem; }
.bait-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bait-list li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.bait-list strong { font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
.bait-list span { color: var(--ink-2); }

.fish-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.fish-two p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.7; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font: 600 1.3rem/1.2 var(--head); text-transform: uppercase; letter-spacing: 0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 1.1rem; max-width: 46rem; font-size: 1.05rem; }

@media (max-width: 900px) {
	.fish-layout { grid-template-columns: 1fr; }
	.fish-aside { position: static; order: -1; }
	.fish-aside .toc { display: none; }
	.method-grid, .bait-cols, .fish-two { grid-template-columns: 1fr; }
	.bait-list li { grid-template-columns: 1fr; gap: 0.2rem; }
	.bite-cal { gap: 0.2rem; height: 7rem; }
	.bite-name { font-size: 0.7rem; }
}
.fish-more { max-width: 46rem; }
.fish-more > h2:first-child { margin-top: 0; }

/* ===== Kalendarz brań ===== */
.cal-today { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--navy); color: #fff; border-radius: 3px; margin-bottom: 3rem; }
.cal-today-date { font: 600 1rem var(--head); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-light); margin: 0 0 0.5rem; }
.cal-today-score { font: 700 clamp(2.2rem, 1.6rem + 2.5vw, 3.4rem)/1 var(--head); text-transform: uppercase; margin: 0 0 1.25rem; }
.cal-today-score strong { color: var(--gold-light); }
.cal-today-facts { margin: 0; display: grid; gap: 0.6rem; }
.cal-today-facts dt { font: 600 0.8rem var(--head); text-transform: uppercase; letter-spacing: 0.12em; color: rgb(255 255 255 / 0.7); }
.cal-today-facts dd { margin: 0.1rem 0 0; font-size: 1.1rem; }
.cal-today-species h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.75rem; }
.cal-today-species ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.cal-today-species li { break-inside: avoid; display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.15); }
.cal-today-species a { color: #fff; }
.lvl { font: 600 0.8rem var(--head); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-light); }
.cal-month { margin-top: 2.5rem; }
.cal-month h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { font: 600 0.85rem var(--head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0.3rem 0; text-align: center; }
.cal-day { position: relative; min-height: 4.6rem; padding: 0.45rem 0.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; display: flex; flex-direction: column; justify-content: space-between; }
.cal-day b { font: 700 1.2rem var(--head); }
.cal-day i { position: absolute; top: 0.4rem; right: 0.5rem; font-style: normal; }
.cal-day em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.cal-day::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--link); }
.cal-day.score-1::after { opacity: 0.25; } .cal-day.score-2::after { opacity: 0.5; } .cal-day.score-3::after { opacity: 0.8; }
.cal-day.score-4 { background: color-mix(in srgb, var(--link) 8%, var(--surface)); }
.cal-day.is-today { outline: 2px solid var(--ink); outline-offset: -2px; }
.cal-legend { margin-top: 1rem; }
.sp-table-wrap { overflow-x: auto; }
.sp-table { width: 100%; border-collapse: separate; border-spacing: 3px; min-width: 40rem; }
.sp-table th { font: 600 0.85rem var(--head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); text-align: center; padding: 0.3rem; }
.sp-table tbody th { text-align: left; color: var(--ink); font-size: 1.05rem; white-space: nowrap; padding-right: 0.75rem; }
.sp-table tbody th a { color: var(--ink); text-decoration: none; }
.sp-table tbody th a:hover { color: var(--link); text-decoration: underline; }
.sp-table td { height: 1.9rem; border-radius: 2px; background: var(--link); }
.sp-table td.c-0 { background: var(--line); } .sp-table td.c-1 { opacity: 0.3; } .sp-table td.c-2 { opacity: 0.55; } .sp-table td.c-3 { opacity: 0.8; }
.sp-table td.c-p { background: repeating-linear-gradient(135deg, rgb(200 53 43 / 0.18) 0 5px, rgb(200 53 43 / 0.36) 5px 10px); }
.sp-table .is-now { box-shadow: inset 0 0 0 2px var(--ink); }
.sp-table th.is-now { box-shadow: none; color: var(--ink); text-decoration: underline; }
.months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 0.75rem; }
.month-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 3px; padding: 1rem 1.1rem; }
.month-card.is-now { border-top-color: var(--link); }
.month-card h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 0.4rem; }
.month-card p { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) {
	.cal-today { grid-template-columns: 1fr; }
	.cal-day { min-height: 3.4rem; padding: 0.3rem; }
	.cal-day em { display: none; }
	.cal-day b { font-size: 1rem; }
}

/* Spis treści we wpisach (automatyczny) */
.post-toc { margin: 2rem 0 2.5rem; padding: 1.25rem 1.5rem; background: var(--surface); border-left: 3px solid var(--link); }
.post-toc .eyebrow { margin: 0 0 .5rem; }
.post-toc a { font-size: .95rem; padding: .45rem 0; }
.post-toc li:last-child { border-bottom: 0; }
.prose .faq details > p, .prose .faq details > ul { margin: 0 0 1.1rem; }
.prose h2[id] { scroll-margin-top: 5rem; }

.photo-credit { margin-top: 3rem; font-size: .85rem; color: var(--muted, #6b6b6b); }

/* Ramka „Brania dziś” na karcie jeziora */
.brania-box { display: grid; gap: .75rem; }
.brania-score { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0; }
.brania-score .lvl { font: 700 1.5rem/1 var(--head); color: var(--ink); }
.brania-score .lvl-4 { color: #2E8B57; } .brania-score .lvl-3 { color: var(--link); } .brania-score .lvl-2 { color: #B58B12; } .brania-score .lvl-1 { color: var(--muted); }
.brania-score small { color: var(--muted); font-size: .8rem; }
.brania-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; margin: 0; }
.brania-facts dt { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.brania-facts dd { margin: .15rem 0 0; font-size: .92rem; font-weight: 600; }
.brania-notes { margin: 0; padding-left: 1.1rem; font-size: .85rem; color: var(--muted); display: grid; gap: .25rem; }
.brania-sp-h { margin: 0; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.brania-sp { margin: 0; font-size: .95rem; }
.brania-foot { margin: 0; font-size: .85rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.brania-foot small { color: var(--muted); font-size: .75rem; }

/* Dane liczbowe jeziora */
.lake-data, .lake-faq { margin-top: 2.5rem; }
.lake-data-table th { text-align: left; font-weight: 600; width: 45%; }
.lake-rank { font-size: 1.02rem; }
.lake-src { font-size: .82rem; color: var(--muted); }
.lake-data h2[id], .lake-data, .lake-faq { scroll-margin-top: 5rem; }

.rank-top { margin: 1rem 0 2.5rem; }
.rank-table td:first-child { font-weight: 700; color: var(--muted); }
.rank-links { margin-top: 2rem; font-weight: 600; }

/* Lista gatunków w panelu karty ryby */
.fish-index summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fish-index summary::-webkit-details-marker { display: none; }
.fish-index summary h2 { margin: 0; }
.fish-index summary::after { content: '+'; font-size: 1.2rem; color: var(--link); }
.fish-index[open] summary::after { content: '–'; }
.fish-index ul { list-style: none; margin: .8rem 0 0; padding: 0; columns: 2; column-gap: 1rem; font-size: .92rem; max-height: 60vh; overflow: auto; }
.fish-index li { break-inside: avoid; padding: .2rem 0; }
.fish-index a { text-decoration: none; color: var(--ink); }
.fish-index a:hover { color: var(--link); text-decoration: underline; }
.fish-index [aria-current] { font-weight: 700; color: var(--link); }
@media (max-width: 900px) { .fish-index ul { columns: 3; max-height: none; } }
@media (max-width: 520px) { .fish-index ul { columns: 2; } }

/* Okolica jeziora (OSM) */
.lake-near { margin-top: 2.5rem; }
.near-list { list-style: none; padding: 0; margin: .5rem 0 1.75rem; border-top: 1px solid var(--line); }
.near-list li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.near-list em { font-style: normal; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.near-list span { margin-left: auto; font-size: .88rem; color: var(--muted); white-space: nowrap; }

/* ===== Poprawki UX 21.11.2026: przepełnienia w poziomie ===== */
/* Siatki z 1fr rozpychała minimalna szerokość treści (karty bez zdjęcia, nazwy województw w stopce). */
@media (min-width: 901px) { .nearby-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.near-card { min-width: 0; }
/* Nazwy regionów na kafelkach mieszczą najdłuższe słowo (ZACHODNIOPOMORSKIE) bez łamania w środku wyrazu */
.region { container-type: inline-size; }
body.font-3 .region-name { font-size: min(1.6rem, calc((100cqi - 2.8rem) / 8.4)); }
@media (max-width: 900px) {
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	/* karuzela „w okolicy”: snap do krawędzi treści, a nie ekranu (pierwsza karta nie przykleja się do brzegu) */
	.nearby-row { scroll-padding-inline: var(--gutter); }
}
@media (max-width: 640px) {
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.footer-woj ul { column-gap: 1rem; }
	.footer-woj li { flex-wrap: wrap; gap: 0 .4rem; }
	body.font-3 .footer-woj a { font-size: 1rem; }
	.footer-woj span { font-size: .75rem; }
	.region-text { padding: 1rem; }
	body.font-3 .region-name { font-size: min(1.6rem, calc((100cqi - 2rem) / 8.4)); }
}
