/*
Theme Name: Po Stanie Surowym
Author: Po Stanie Surowym
Description: Wykończenie domu i instalacje: co wybrać, w jakiej kolejności i za ile
Version: 1.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: po-stanie-surowym
*/

/* ramka wstepu (BLUF) i box TL;DR */
.wpm-bluf, .tldr { border-left: 4px solid var(--wp--preset--color--primary); border-radius: 0 6px 6px 0; padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.wpm-bluf > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.wpm-bluf .wpm-bluf-label { margin: 0 0 0.5em; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.wpm-bluf p { line-height: 1.6; }
.wpm-bluf p:last-child, .wpm-bluf ul:last-child { margin-bottom: 0; }

/* portal kit: uklad klockow (kolory i fonty z theme.json) */
.wpm-header { border-bottom: 1px solid var(--wp--preset--color--surface); }
.wpm-masthead-kompaktowy { z-index: 20; }
.wpm-servicebar { padding-block: 0.4rem; }
.wpm-brand .wp-block-site-title { margin: 0; }
/* logo (znak albo znak z nazwa) zastepuje nazwe: site-title tylko dla czytnikow i SEO (wydawca 2026-10-08: przy rebrandingu sam znak, bez napisu) */
.wpm-brand:has(.wp-block-site-logo img) .wp-block-site-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wpm-kicker { margin-block: 1.5rem 1rem; }
.wpm-home-h1 { max-width: 22ch; }
.wpm-home-lead { max-width: 60ch; }
.wpm-trust { border-block: 1px solid var(--wp--preset--color--surface); padding-block: 0.6rem; margin-block: 1rem 2rem; }
.wpm-trust-masthead { border: 0; margin: 0; padding: 0; }
.wpm-trust-kafle > p { padding: 0.6rem 1rem; margin: 0; }
.wpm-section { margin-block: 2.5rem; }
.wpm-section-head { border-bottom: 2px solid var(--wp--preset--color--contrast); padding-bottom: 0.4rem; margin-bottom: 1rem; align-items: baseline; }
.wpm-section-title { margin: 0; }
.wpm-mini > .wp-block-column:first-child img { border-radius: 2px; }
.wpm-textrow { border-bottom: 1px solid var(--wp--preset--color--surface); padding-block: 0.5rem; }
.wpm-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wpm-meta .wp-block-avatar img { border-radius: 50%; }
.wpm-sidebar { position: sticky; top: 1rem; align-self: start; }
.wpm-aside-title { font-size: var(--wp--preset--font-size--large); border-bottom: 2px solid var(--wp--preset--color--contrast); padding-bottom: 0.3rem; margin-bottom: 0.8rem; }
.wpm-most-read .wp-block-post-template { counter-reset: wpm; list-style: none; padding: 0; }
.wpm-most-read .wp-block-post { counter-increment: wpm; display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; padding-block: 0.5rem; border-bottom: 1px solid var(--wp--preset--color--surface); }
.wpm-most-read .wp-block-post::before { content: counter(wpm); font-family: var(--wp--preset--font-family--heading, inherit); font-size: var(--wp--preset--font-size--x-large); line-height: 1; color: var(--wp--preset--color--muted); }
.wpm-silos, .wpm-footer-silos { list-style: none; padding: 0; margin: 0; }
.wpm-silos li, .wpm-footer-silos li { padding-block: 0.25rem; }
.wpm-single-head { margin-block: 1rem 1.5rem; }
.wpm-kicker-cat { font-size: var(--wp--preset--font-size--small); }
.wpm-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); }
.wpm-breadcrumbs { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wpm-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 0.8rem; }
.wpm-breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--wp--preset--color--muted); }
.wpm-toc { border: 1px solid var(--wp--preset--color--surface); background: var(--wp--preset--color--surface); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.wpm-toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.wpm-author-box { margin-block: 2.5rem; border-radius: 2px; }
.wpm-author-box .wp-block-avatar img { border-radius: 50%; }
.wpm-hub-head { margin-block: 1.5rem; }
.wpm-hub-list .wp-block-post:nth-child(-n+3) .wp-block-post-title { font-size: var(--wp--preset--font-size--large); }
.wpm-footer-title { font-size: var(--wp--preset--font-size--medium); margin-bottom: 0.6rem; }
.wpm-footer .wp-block-navigation { font-size: var(--wp--preset--font-size--small); }
.wpm-copy { margin-top: 2rem; }
@media (max-width: 781px) { .wpm-hero-small .wp-block-post-template { grid-template-columns: 1fr; } }


/* ==== Po Stanie Surowym: odbity sznur traserski. Z logo (pion murarski) opada pion, pod H1 biegnie poziom; krzyzyk wyznacza start tekstu. ==== */
:root {
  --tynk: var(--wp--preset--color--surface) url(assets/tynk.webp) 0 0 / 384px 384px;
  --sznur: url(assets/sznur.webp);
  --sznur-pion: url(assets/sznur-pion.webp);
  --os: 28px; /* srodek znaku 56 px: tu wisi pion */
  --wciecie: 62px;
  --linia-szer: 18px;
}
html { scroll-padding-top: 2rem; }
body, .wp-site-blocks { overflow-x: clip; }
body { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.wp-site-blocks > main, .wpm-main, .wpm-home, .wpm-hub { margin-block-start: 0; }
.wp-site-blocks > footer { margin-block-start: clamp(3rem, 6vw, 5rem); }
:focus-visible { outline: 3px solid var(--wp--preset--color--accent); outline-offset: 2px; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img { border-radius: 2px; }

/* naglowek */
.wpm-header { border-bottom: 0; }
.wpm-masthead-lewy.wpm-masthead-lewy { flex-wrap: nowrap; gap: 1.5rem; align-items: center; padding-block: 0.7rem; }
.wpm-brand { flex-shrink: 0; }
.wpm-brand .wp-block-site-logo img { display: block; }
.wpm-masthead .wp-block-navigation { flex: 1 1 auto; font-weight: 600; font-size: 0.95rem; }
.wpm-masthead .wp-block-navigation a { text-decoration: none; padding-block: 0.35rem; background: no-repeat 0 100% / 0 0; }
.wpm-masthead .wp-block-navigation a:hover,
.wpm-masthead .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--primary); background-image: var(--sznur); background-repeat: repeat-x; background-size: 800px var(--linia-szer); background-position: 0 calc(100% + 7px); }
.wpm-masthead .wp-block-search { flex: 0 0 11.5rem; }
.wpm-masthead .wp-block-search__input { font-size: 0.9rem; padding-block: 0.35rem; }
.wpm-masthead .wp-block-search__inside-wrapper { border: 1px solid var(--wp--preset--color--secondary); background: var(--wp--preset--color--base); border-radius: 2px; }
@media (min-width: 1100px) { .wpm-masthead .wp-block-navigation a { white-space: nowrap; } }
@media (max-width: 1000px) and (min-width: 600px) { .wpm-masthead .wp-block-search { display: none; } }

/* linki */
.wp-block-post-content a, .wpm-section-more a, .wpm-sidebar p a, .wpm-footer-note a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.wp-block-post-content a:hover, .wpm-section-more a:hover, .wpm-sidebar p a:hover { text-decoration-thickness: 2px; }
.wp-block-post-title a, .wpm-silos a, .wpm-footer-silos a, .wpm-hero-latest a { text-decoration: none; color: inherit; }
.wp-block-post-title a:hover, .wpm-footer-silos a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.wp-element-button, .wp-block-button__link { font-weight: 700; border-radius: 2px; padding: 0.8rem 1.5rem; }
.wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* ---- odwazna decyzja: sciana z tynku, pion z logo, poziom pod H1 ---- */
.wpm-kicker, .wpm-hub-head, .wpm-page-head {
  position: relative; isolation: isolate;
  padding: clamp(1.75rem, 4.5vw, 3.25rem) 0 clamp(1.75rem, 3.5vw, 2.75rem) var(--wciecie);
  margin: 0;
}
.wpm-kicker::before, .wpm-hub-head::before, .wpm-page-head::before { content: ""; position: absolute; inset: 0 -100vw; z-index: -2; background: var(--tynk); }
.wpm-kicker::after, .wpm-hub-head::after, .wpm-page-head::after {
  content: ""; position: absolute; z-index: 1; top: -1rem; bottom: 0; left: calc(var(--os) - var(--linia-szer) / 2); width: var(--linia-szer);
  background: var(--sznur-pion) 0 0 repeat-y; background-size: var(--linia-szer) 800px; pointer-events: none;
}
.wpm-kicker.wpm-kicker { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2.5rem; row-gap: 1.35rem; max-width: none; }
.wpm-kicker.wpm-kicker > * { margin-inline: 0; max-width: none; }
.wpm-home-h1, .wpm-hub-h1, .wpm-page-head h1 { position: relative; margin: 0; padding-bottom: 0.42em; line-height: 1.1; }
.wpm-home-h1::after, .wpm-hub-h1::after, .wpm-page-head h1::after {
  content: ""; position: absolute; left: -100vw; right: -100vw; bottom: calc(var(--linia-szer) / -2); height: var(--linia-szer);
  background: var(--sznur) 0 0 repeat-x; background-size: 800px var(--linia-szer);
}
.wpm-home-h1.wpm-home-h1 { flex: 0 0 100%; font-size: clamp(2.2rem, 4.9vw, 3.5rem); }
.wpm-hub-h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); max-width: 26ch; }
.wpm-page-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.wpm-home-lead.wpm-home-lead { flex: 1 1 26rem; margin: 0; max-width: 52ch; font-size: 1.15rem !important; line-height: 1.5; }
.wpm-kicker .wp-block-buttons { flex: 0 0 auto; margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* element centralny: glowny tekst i kolumna */
.wpm-hero-glowny { margin-block: clamp(1.75rem, 3vw, 2.5rem) 0; gap: clamp(1.5rem, 3vw, 2.75rem); }
.wpm-hero-main .wp-block-post-title { margin-block: 0.9rem 0.45rem; line-height: 1.15; font-size: clamp(1.6rem, 2.8vw, 2.25rem) !important; }
.wpm-hero-main .wp-block-post-excerpt { margin-block: 0 0.5rem; }
.wpm-hero-main .wp-block-post-excerpt p { margin: 0; }
.wpm-hero-fallback { margin: 0 0 1rem; }
.wpm-hero-fallback img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.wpm-hero-glowny > .wp-block-column:last-child:not(:has(.wp-block-post)) { display: none; }
.wpm-hero-glowny > .wp-block-column:first-child:not(:has(.wp-block-post)) { flex-basis: 100% !important; }
.wpm-hero-glowny:not(:has(.wp-block-post)) .wpm-hero-fallback img { aspect-ratio: 21/9; }
.wpm-hero-glowny:not(:has(.wp-block-post)) p { max-width: 62ch; }
.wpm-aside-title { font-size: 1.2rem; border-bottom: 1px solid var(--wp--preset--color--secondary); padding-bottom: 0.45rem; margin: 0 0 0.9rem; }
.wpm-hero-latest .wp-block-post { padding-block: 0.65rem; border-bottom: 1px solid var(--wp--preset--color--surface); }
.wpm-hero-latest .wp-block-post:first-child { padding-top: 0; }
.wpm-hero-latest .wp-block-post:last-child { border-bottom: 0; }
.wpm-mini { gap: 0.9rem; margin: 0; align-items: flex-start; flex-wrap: nowrap !important; }
.wpm-mini > .wp-block-column { margin: 0; }
.wpm-mini > .wp-block-column:first-child { flex: 0 0 5rem !important; }
.wpm-mini .wp-block-post-featured-image { margin: 0; }
.wpm-mini .wp-block-post-title { margin: 0 0 0.2rem; font-size: 1rem !important; line-height: 1.3; }
.wpm-mini .wp-block-post-date { color: var(--wp--preset--color--muted); }
.wpm-meta { margin-top: 0.4rem; }
.wpm-meta > * { margin: 0; }
.wpm-meta .wp-block-post-author-name a { color: inherit; text-decoration: none; }
.wpm-meta .wp-block-post-author-name a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }

/* pasek zaufania: zdanie, bez ramek */
.wpm-trust-linia { margin-block: clamp(1.5rem, 3vw, 2.25rem) 0; padding-block: 0.8rem; border-block: 1px solid var(--wp--preset--color--secondary); }
.wpm-hub-head .trust-bar { border: 0; padding: 0; margin: 0.7rem 0 0; }

/* pasy dzialow: nazwa stoi na sznurze, krzyzyk zaznacza poczatek */
.wpm-with-sidebar { margin-top: 0.5rem; gap: clamp(1.75rem, 4vw, 3.5rem); }
.wpm-section { margin-block: clamp(2rem, 4vw, 3.25rem); }
.wpm-section-head.wpm-section-head { position: relative; border: 0; padding: 0 0 0.7rem 1.35rem; margin-bottom: 1.35rem; background: var(--sznur) 0 100% repeat-x; background-size: 800px var(--linia-szer); }
.wpm-section-head::before { content: ""; position: absolute; left: 0; bottom: -0.55rem; height: 2.75rem; width: var(--linia-szer); margin-bottom: 0; background: var(--sznur-pion) 0 0 repeat-y; background-size: var(--linia-szer) 800px; }
.wpm-section-title { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.wpm-section-more { margin: 0; color: var(--wp--preset--color--primary); }
.wpm-section .wp-block-post-title { line-height: 1.22; margin-block: 0.6rem 0.35rem; }
.wpm-section .wp-block-post-featured-image { margin: 0; }
.wpm-section-duzy_plus_trzy > .wp-block-columns { gap: clamp(1.25rem, 2.5vw, 2rem); }
.wpm-section-duzy_plus_trzy .wpm-mini { margin-bottom: 0.9rem; }
.wpm-section-duzy_plus_trzy .wp-block-post-title.has-x-large-font-size { font-size: 1.5rem !important; }
.wpm-row { gap: 1.25rem; margin: 0 0 1.25rem; align-items: flex-start; }
.wpm-row > .wp-block-column { margin: 0; }
.wpm-row .wp-block-post-title { margin-top: 0; font-size: 1.2rem !important; }
.wpm-row .wp-block-post-excerpt p { margin: 0; font-size: 0.95rem; }
.wpm-textrow { align-items: baseline; gap: 1.1rem; border-bottom-color: var(--wp--preset--color--secondary); flex-wrap: nowrap; padding-block: 0.6rem; }
.wpm-textrow .wp-block-post-date { flex: 0 0 auto; min-width: 5.5rem; color: var(--wp--preset--color--muted); }
.wpm-textrow .wp-block-post-title { margin: 0; font-size: 1.05rem !important; }

/* sidebar */
.wpm-sidebar > * + .wpm-aside-title { margin-top: 2.25rem; }
.wpm-most-read .wp-block-post { border-bottom-color: var(--wp--preset--color--secondary); }
.wpm-most-read .wp-block-post-title { margin: 0; font-size: 1rem !important; line-height: 1.3; }
.wpm-most-read .wp-block-post::before { font-size: 1.35rem; font-weight: 700; color: var(--wp--preset--color--primary); }

/* wpis */
.wpm-single { margin-top: 1.5rem; }
.wpm-single-head { margin-block: 0 1.25rem; }
.wpm-single-head h1 { margin-block: 0.35rem 0.7rem; font-size: clamp(1.95rem, 3.6vw, 2.75rem); line-height: 1.12; }
.wpm-kicker-cat { font-weight: 700; margin: 0; }
.wpm-kicker-cat a { text-decoration: none; }
.wpm-kicker-cat a:hover { text-decoration: underline; }
.wpm-breadcrumbs a { color: inherit; }
.wpm-article > .wp-block-post-featured-image { margin: 0 0 1.75rem; }
.wp-block-post-content { line-height: 1.65; }
.wp-block-post-content h2 { margin-block: 2.5rem 0.75rem; font-size: clamp(1.5rem, 2.6vw, 1.85rem); line-height: 1.2; }
.wp-block-post-content h3 { margin-block: 1.75rem 0.5rem; font-size: 1.25rem; line-height: 1.25; }
/* ramka BLUF: pion zamiast kolorowego rantu */
.wpm-bluf, .tldr { border: 0; border-radius: 2px; padding: 1.25rem 1.5rem 1.25rem 2.25rem; background: var(--wp--preset--color--surface) var(--sznur-pion) 0.55rem 0 repeat-y; background-size: var(--linia-szer) 800px; }
.wpm-bluf .wpm-bluf-label { text-transform: none; letter-spacing: 0; opacity: 1; font-family: var(--wp--preset--font-family--bitter); font-weight: 700; }
.wpm-toc { border: 0; border-top: 1px solid var(--wp--preset--color--secondary); border-bottom: 1px solid var(--wp--preset--color--secondary); background: transparent; padding: 0.9rem 0 1rem; }
.wpm-toc strong { font-family: var(--wp--preset--font-family--bitter); }
.wpm-toc ol { padding-left: 1.3rem; }
.wpm-toc li { margin-block: 0.15rem; }
.wp-block-post-content blockquote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.9rem; border: 0; background: var(--sznur-pion) 0 0 repeat-y; background-size: var(--linia-szer) 800px; font-family: var(--wp--preset--font-family--bitter); font-size: 1.1rem; line-height: 1.5; }
.wp-block-post-content blockquote cite { font-family: var(--wp--preset--font-family--raleway); font-size: 0.85rem; font-style: normal; color: var(--wp--preset--color--muted); }
.wp-block-post-content figure { margin-block: 1.75rem; }
.wp-block-post-content figcaption, .wp-element-caption { font-size: 0.85rem; color: var(--wp--preset--color--muted); margin-top: 0.45rem; }
.wp-block-post-content table { font-variant-numeric: lining-nums tabular-nums; font-size: 0.95rem; border-collapse: collapse; width: 100%; }
.wp-block-post-content th { background: var(--wp--preset--color--surface); text-align: left; font-weight: 700; }
.wp-block-post-content th, .wp-block-post-content td { border: 0; border-bottom: 1px solid var(--wp--preset--color--secondary); padding: 0.55rem 0.7rem; vertical-align: top; }
@media (max-width: 600px) { .wp-block-post-content .wp-block-table { overflow-x: auto; } .wp-block-post-content table { min-width: 34rem; } }
.wpm-author-box { border-radius: 2px; gap: 1.1rem; align-items: flex-start; }
.wpm-author-box .wp-block-post-author-name { font-family: var(--wp--preset--font-family--bitter); font-weight: 700; }
.wpm-author-box .wp-block-post-author-name a { color: inherit; text-decoration: none; }
.wpm-author-box .wp-block-post-author-biography { margin-top: 0.3rem; }
.wpm-related-wrap { margin-block: clamp(2.5rem, 5vw, 3.75rem) 0; }
.wpm-related-wrap .wpm-section-title { margin-bottom: 1.2rem; padding-bottom: 0.7rem; background: var(--sznur) 0 100% repeat-x; background-size: 800px var(--linia-szer); }
.wpm-related-wrap .wp-block-post-title { margin-top: 0.55rem; font-size: 1.05rem !important; line-height: 1.25; }
.wpm-related-wrap .wp-block-post-featured-image { margin: 0; }
.wp-block-comments { margin-top: 2.5rem; }

/* hub */
.wpm-hub-head.wpm-hub-head { max-width: none; }
.wpm-hub-head.wpm-hub-head > * { margin-inline: 0; max-width: none; }
.wpm-hub-head .wpm-hub-h1 { max-width: none; margin-top: 0.25rem; }
.wpm-hub-lead { margin-block: 1.1rem 0; max-width: 62ch !important; font-size: 1.1rem; line-height: 1.5; }
.wpm-hub-lead p { margin: 0; }
.wpm-hub-list { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.wpm-hub-list .wp-block-post-featured-image { margin: 0; }
.wpm-hub-list .wp-block-post-title { margin-block: 0.6rem 0.3rem; line-height: 1.22; }
.wpm-hub-list .wp-block-post-excerpt p { margin: 0; font-size: 0.95rem; }
.wpm-hub-list .wp-block-query-pagination, .wpm-list .wp-block-query-pagination { margin-top: 2rem; gap: 0.75rem; }
.wpm-breadcrumbs ol { margin-bottom: 0.5rem; }

/* strony */
.wpm-page-body { margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-left: var(--wciecie); }
.wpm-page-head + .wp-block-paragraph, main > p, main > .wp-block-search { margin-top: 1.5rem; }
.wpm-list { margin-top: 2rem; }

/* stopka: druga sciana */
.wpm-footer.wpm-footer { position: relative; background: var(--tynk) !important; }
.wpm-footer::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--linia-szer) / -2); height: var(--linia-szer); background: var(--sznur) 0 0 repeat-x; background-size: 800px var(--linia-szer); }
.wpm-footer-title { font-size: 1.1rem; }
.wpm-footer-note { max-width: 34ch; }
.wpm-footer .wp-block-navigation { gap: 0.35rem; }
.wpm-footer .wp-block-navigation a { text-decoration: none; }
.wpm-footer .wp-block-navigation a:hover { text-decoration: underline; }
.wpm-copy { margin-bottom: 0; }

/* telefon: oska pionu zostaje pod znakiem */
@media (max-width: 781px) {
  .wpm-hero-glowny { gap: 1.75rem; }
  .wpm-row { flex-wrap: nowrap !important; gap: 0.9rem; }
  .wpm-row > .wp-block-column:first-child { flex: 0 0 6rem !important; }
  .wpm-row .wp-block-post-excerpt { display: none; }
  .wpm-section-duzy_plus_trzy > .wp-block-columns { flex-direction: column; }
  .wpm-textrow { flex-wrap: wrap; gap: 0 1rem; }
  .wpm-section-head.wpm-section-head { flex-wrap: wrap; gap: 0.2rem 1rem; }
  .wpm-related-wrap .wp-block-post-template { grid-template-columns: 1fr 1fr !important; }
  .wpm-page-body { padding-left: 0; }
}
@media (max-width: 600px) {
  :root { --os: 24px; --wciecie: 46px; }
  .wpm-masthead-lewy.wpm-masthead-lewy { gap: 0.75rem; padding-block: 0.5rem; }
  .wpm-brand .wp-block-site-logo img { width: 48px; height: auto; }
  .wpm-masthead .wp-block-search { flex: 1 1 auto; min-width: 0; order: 1; }
  .wpm-masthead .wp-block-navigation { flex: 0 0 auto; order: 2; }
  .wpm-home-lead.wpm-home-lead { flex-basis: 100%; }
}

/* --- po przegladzie zrzutow --- */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; width: 100%; }
h1, h2, h3, h4, .wp-block-post-title { word-spacing: 0.09em; text-rendering: geometricPrecision; }
.wpm-mini .wp-block-post-title, .wpm-most-read .wp-block-post-title, .wpm-row .wp-block-post-title, .wpm-textrow .wp-block-post-title, .wpm-aside-title, .wpm-footer-title, .wpm-related-wrap .wp-block-post-title { letter-spacing: 0; }
.wpm-masthead .wp-block-search__inside-wrapper { padding: 2px; }
.wpm-masthead .wp-block-search__input { border: 0; background: transparent; }
.wpm-masthead .wp-block-search__button { padding: 0.3rem 0.6rem; margin-left: 2px; border-radius: 1px; }
.wpm-footer.wpm-footer { padding-top: clamp(2.5rem, 4vw, 3.5rem) !important; }
.wpm-footer-silos { font-size: var(--wp--preset--font-size--small); }
.wp-block-post-content .wp-block-table figcaption { text-align: left; }
.wp-block-post-content thead { border-bottom: 1px solid var(--wp--preset--color--contrast); }
.wpm-page-body > p:first-child { margin-top: 0; }
@media (min-width: 782px) {
  /* hub: pierwsza karta dopelnia ostatni rzad, zeby nie zostawala dziura */
  .wpm-hub-list .wp-block-post:first-child:nth-last-child(3n+2) { grid-column: span 2; }
  .wpm-hub-list .wp-block-post:first-child:nth-last-child(3n+2) .wp-block-post-title { font-size: 1.6rem !important; }
  .wpm-hub-list .wp-block-post:first-child:nth-last-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 1.5rem; align-content: start; }
  .wpm-hub-list .wp-block-post:first-child:nth-last-child(3n+1) > .wp-block-post-featured-image { grid-row: 1 / span 4; }
  .wpm-hub-list .wp-block-post:first-child:nth-last-child(3n+1) .wp-block-post-title { font-size: 1.6rem !important; margin-top: 0; }
}

/* data aktualizacji przy wpisie (kwoty sprawdzane przy aktualizacji) */
.wpm-meta .wpm-updated::before { content: "aktualizacja: "; }

/* ---- po recenzji 2026-11-05 ---- */

/* cyfry: Raleway ma lnum tylko w prostych odmianach i nie ma tnum. Tabele biora cyfry z Bittera (lnum + tnum),
   kursywa (noty o zrodlach pod tabelami) cyfry z prostego Ralewaya z pochyleniem przegladarki. */
@font-face { font-family: "Cyfry tabel"; src: url(assets/fonts/bitter-400-normal.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+30-39; }
@font-face { font-family: "Cyfry tabel"; src: url(assets/fonts/bitter-700-normal.ttf) format("truetype"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+30-39; }
@font-face { font-family: "Cyfry kursywy"; src: url(assets/fonts/raleway-400-normal.ttf) format("truetype"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+30-39; }
.wp-block-post-content table { font-family: "Cyfry tabel", var(--wp--preset--font-family--raleway); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.wp-block-post-content em, .wp-block-post-content i { font-family: "Cyfry kursywy", var(--wp--preset--font-family--raleway); font-feature-settings: "lnum" 1; }

/* tytul glownego tekstu nad zgieciem na 1440x900 */
.wpm-kicker { padding-block: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1rem, 1.6vw, 1.25rem); }
.wpm-kicker.wpm-kicker { row-gap: 1rem; }
.wpm-home-h1.wpm-home-h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.wpm-home-lead.wpm-home-lead { font-size: 1.05rem !important; max-width: 68ch; }
.wpm-hero-glowny { margin-block-start: 1.5rem; }
.wpm-hero-main .wp-block-post-featured-image, .wpm-hero-main .wp-block-post-featured-image img { aspect-ratio: 2 / 1 !important; }
@media (max-width: 781px) {
  .wpm-hero-main .wp-block-post-featured-image, .wpm-hero-main .wp-block-post-featured-image img { aspect-ratio: 16 / 9 !important; }
}

/* sidebar idzie za czytelnikiem; ponizej 960 px kolumny sa za waskie */
@media (max-width: 959px) { .wpm-sidebar { position: static; } }

/* pas z kartami: Kolektory */
.wpm-section-karty .wp-block-post-template { gap: 1.25rem; }
.wpm-section-karty .wp-block-post-title { font-size: 1.05rem !important; line-height: 1.25; }
.wpm-section-karty .wpm-meta { margin-top: 0.3rem; row-gap: 0; }
@media (max-width: 781px) {
  .wpm-section-karty .wp-block-post-template { grid-template-columns: 1fr !important; gap: 1rem; }
  .wpm-section-karty .wp-block-post { display: grid; grid-template-columns: 6rem minmax(0, 1fr); column-gap: 0.9rem; align-items: start; }
  .wpm-section-karty .wp-block-post-featured-image { grid-row: 1 / span 2; }
  .wpm-section-karty .wp-block-post-title { margin-top: 0; }
}

/* kto to pisze */
.wpm-who { margin-block: 0.75rem; }
.wpm-who-person { gap: 0.7rem; align-items: center; padding-block: 0.35rem; }
.wpm-who-person .wp-block-avatar { flex: 0 0 auto; margin: 0; }
.wpm-who-person .wp-block-avatar img { display: block; border-radius: 50%; }
.wpm-who-person p { margin: 0; line-height: 1.35; color: var(--wp--preset--color--muted); }
.wpm-who-person a { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; }
.wpm-who-person a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }

/* redakcja: portret obok biogramu */
.wpm-person.wpm-person { grid-template-columns: 120px minmax(0, 1fr); column-gap: 1.25rem; margin-block: 1.5rem; }
.wpm-person .wp-block-media-text__media img { display: block; width: 120px; height: 120px; object-fit: cover; object-position: 50% 25%; }
.wpm-person .wp-block-media-text__content { padding: 0; }
.wpm-person .wp-block-media-text__content p { margin: 0; }
@media (max-width: 600px) {
  .wpm-person.wpm-person { grid-template-columns: 88px minmax(0, 1fr); column-gap: 1rem; }
  .wpm-person .wp-block-media-text__media img { width: 88px; height: 88px; }
}

/* lista w ramce i tabele na telefonie */
.wpm-bluf ul, .tldr ul { padding-left: 1.25rem; }
@media (max-width: 600px) {
  .wpm-bluf, .tldr { padding: 1rem 1rem 1rem 1.9rem; background-position: 0.35rem 0; }
  .wpm-bluf ul, .tldr ul { padding-left: 1.05rem; }
  .wp-block-post-content .wp-block-table { overflow-x: auto; }
  .wp-block-post-content table { min-width: 30rem; font-size: 0.875rem; line-height: 1.4; }
  .wp-block-post-content table:has(tr > :nth-child(4)) { min-width: 38rem; }
  .wp-block-post-content table:has(tr > :nth-child(5)) { min-width: 46rem; }
  .wp-block-post-content th, .wp-block-post-content td { padding: 0.5rem 0.6rem; }
}

/* baner cookies: grafit, dwa rowne przyciski, nisko na telefonie */
#moove_gdpr_cookie_info_bar, #moove_gdpr_cookie_info_bar.moove-gdpr-dark-scheme { background-color: #24272B !important; border-top: 0 !important; }
#moove_gdpr_cookie_info_bar, #moove_gdpr_cookie_info_bar p, #moove_gdpr_cookie_info_bar button { font-family: var(--wp--preset--font-family--raleway) !important; }
#moove_gdpr_cookie_info_bar p { color: #F7F7F4 !important; font-weight: 400 !important; }
#moove_gdpr_cookie_info_bar .change-settings-button { color: #F7F7F4 !important; font-weight: 600 !important; text-decoration: underline !important; background: none !important; padding: 0 !important; }
#moove_gdpr_cookie_info_bar button.mgbutton, #moove_gdpr_cookie_info_bar a.mgbutton, #moove_gdpr_cookie_info_bar .mgbutton.moove-gdpr-infobar-reject-btn, #moove_gdpr_cookie_info_bar .mgbutton.moove-gdpr-infobar-allow-all {
  background-color: #F7F7F4 !important; color: #24272B !important; border: 0 !important; border-radius: 2px !important; font-weight: 700 !important; font-size: 0.9rem !important; opacity: 1 !important; padding: 0.55rem 1.25rem !important; margin: 0 !important; min-width: 7.5rem; text-align: center;
}
#moove_gdpr_cookie_info_bar button.mgbutton:hover { background-color: #D8D7D1 !important; }
#moove_gdpr_cookie_info_bar .mgbutton:focus-visible, #moove_gdpr_cookie_info_bar .change-settings-button:focus-visible { outline: 3px solid #F7F7F4 !important; outline-offset: 2px; }
#moove_gdpr_cookie_modal .mgbutton { border-radius: 2px !important; }
#moove_gdpr_cookie_info_bar .moove-gdpr-button-holder { display: flex !important; gap: 0.6rem; }
@media (max-width: 767px) {
  #moove_gdpr_cookie_info_bar { padding-block: 0 !important; }
  #moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container { padding: 0.6rem 1rem !important; }
  #moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-content { padding: 0 !important; display: block !important; }
  #moove_gdpr_cookie_info_bar .moove-gdpr-cookie-notice { padding: 0 0 0.5rem !important; }
  #moove_gdpr_cookie_info_bar p { font-size: 0.8125rem !important; line-height: 1.35 !important; margin: 0 !important; }
  #moove_gdpr_cookie_info_bar .moove-gdpr-button-holder { padding: 0 !important; justify-content: stretch; }
  #moove_gdpr_cookie_info_bar .moove-gdpr-button-holder .mgbutton { flex: 1 1 0; padding-block: 0.5rem !important; }
}
