/*
Theme Name: Partivio Blog
Theme URI: https://partivio.cloud/blog/
Author: Alink Multimedia
Description: Motyw bloga Partivio w stylu strony produktu: kolory, fonty i logo marki, siatka wpisów, spis treści i czas czytania. Motyw potomny Twenty Twenty-Five, instalowany przez deploy/blog.sh.
Template: twentytwentyfive
Version: 1.15.0
Requires at least: 6.7
License: GNU General Public License v2 or later
Text Domain: partivio-blog
*/

/* Kolory i promienie jak na stronie głównej Partivio (index.html, .lp-*). */
:root {
	--pv-navy: var(--wp--preset--color--contrast);
	--pv-blue: var(--wp--preset--color--brand);
	--pv-blue-text: var(--wp--preset--color--brand-text);
	--pv-soft: var(--wp--preset--color--brand-soft);
	--pv-cloud: var(--wp--preset--color--cloud);
	--pv-muted: var(--wp--preset--color--muted);
	--pv-line: var(--wp--preset--color--line);
	--pv-ok: #0E7A50;
	--pv-head: 64px;
	/* Obramowanie pól formularza z kontrastem 3:1 do tła (WCAG 1.4.11) */
	--pv-field: #8A93A8;
}
/* Dostępność (WCAG 2.1 AA): widoczny fokus na wszystkich kontrolkach, kotwice nie chowają się pod przyklejonym nagłówkiem */
html { scroll-padding-top: calc(var(--pv-head) + 16px); }
:where(button, input, select, textarea, summary, [role="button"]):focus-visible { outline: 2px solid var(--pv-blue); outline-offset: 2px; }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body { font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.pv-in { box-sizing: border-box; width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.pv-main { margin: 0; }
.pv-main a:focus-visible, .pv-top a:focus-visible, .pv-foot a:focus-visible { outline: 2px solid var(--pv-blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .wp-block-post-title { word-spacing: .06em; }
.pv-label { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pv-muted); }
.pv-eyebrow { margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-blue-text); }

/* Przyciski */
.pv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-size: .94rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.pv-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-btn-pri { background: var(--pv-blue); color: #fff; }
.pv-btn-pri:hover { background: var(--wp--preset--color--brand-dark); color: #fff; }
.pv-btn-ghost { background: #fff; color: var(--pv-navy); border-color: var(--pv-line); }
.pv-btn-ghost:hover { background: var(--pv-cloud); border-color: #CBD3E4; color: var(--pv-navy); }
.pv-btn-dark { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.pv-btn-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pv-btn-s { height: 34px; padding: 0 12px; font-size: .86rem; font-weight: 500; }

/* Nagłówek: przyklejony, półprzezroczysty jak na stronie głównej */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 20; }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
.pv-top { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.5) blur(12px); backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--pv-line); }
.pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--pv-head); }
.pv-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pv-navy); }
.pv-logo img { height: 26px; width: auto; display: block; }
.pv-logo span { padding-left: 12px; border-left: 1px solid var(--pv-line); font-family: var(--wp--preset--font-family--jakarta); font-weight: 700; font-size: 1rem; line-height: 22px; color: var(--pv-navy); }
.pv-acts { display: flex; align-items: center; gap: 8px; }
.pv-link { padding: 8px 12px; border-radius: 8px; color: var(--pv-muted); font-size: .94rem; font-weight: 500; text-decoration: none; }
.pv-link:hover { color: var(--pv-navy); background: var(--pv-cloud); }

/* Wstęp listy */
.pv-hero { background: linear-gradient(180deg, #F6F8FD 0%, #fff 100%); border-bottom: 1px solid var(--pv-line); padding-block: 64px 28px; }
.pv-hero h1, .pv-hero .wp-block-query-title { margin: 0; max-width: 20ch; font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.pv-lead { margin: 18px 0 0; max-width: 56ch; font-size: 1.12rem; line-height: 1.6; color: var(--pv-muted); }
.pv-lead p { margin: 0; }
.pv-hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; }
.pv-hero-s { padding-block: 56px 28px; }
.pv-hero-s .pv-chips, .pv-hero-s .pv-search { margin-top: 32px; }

/* Kategorie jako filtr */
.pv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pv-chips ul { display: contents; }
.pv-chips li { list-style: none; margin: 0; }
.pv-chips a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pv-line); background: #fff; color: var(--pv-navy); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.pv-chips a:hover { border-color: var(--pv-blue); color: var(--pv-blue-text); }
body.blog:not(.paged) .pv-chip-all, body.blog .pv-chip-all, .pv-chips .current-cat > a { background: var(--pv-navy); border-color: var(--pv-navy); color: #fff; }

/* Wyszukiwarka */
.pv-search { margin: 0; width: 300px; max-width: 100%; }
.pv-search .wp-block-search__inside-wrapper { height: 42px; padding: 3px 3px 3px 14px; border: 1px solid var(--pv-field); border-radius: 10px; background: #fff; box-sizing: border-box; }
.pv-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--pv-blue); box-shadow: 0 0 0 3px rgba(58, 97, 247, .38); }
.pv-search .wp-block-search__input { border: 0; padding: 0; background: transparent; font-size: .94rem; color: var(--pv-navy); outline: 0; }
.pv-search .wp-block-search__button { margin: 0; padding: 0 10px; border-radius: 8px; background: transparent; color: var(--pv-muted); }
.pv-search .wp-block-search__button:hover { background: var(--pv-cloud); color: var(--pv-navy); }

/* Wyróżniony wpis (pierwsza strona bloga) */
body.paged .pv-feature { display: none; }
.pv-feature { padding-top: 48px; }
.pv-feature-list { list-style: none; margin: 0; padding: 0; }
.pv-feature-list > li { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; margin: 0; }
.pv-feature-list .pv-card-body .wp-block-post-title { margin: 12px 0 0; font-size: clamp(1.7rem, 2.9vw, 2.35rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.14; }
.pv-feature-list .pv-card-body .wp-block-post-excerpt__excerpt { font-size: 1.06rem; -webkit-line-clamp: 4; }
.pv-feature-list .pv-card-img { margin: 0; border-radius: 18px; }
.pv-feature-list .pv-date { margin-top: 20px; }

/* Siatka wpisów */
.pv-list { padding-top: 64px; }
.pv-sec-h { margin: 0 0 24px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
body.blog:not(.paged) .pv-list .pv-grid > li:first-child { display: none; }
.pv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.pv-grid > li { position: relative; display: flex; flex-direction: column; margin: 0; }
.pv-card-img { margin: 0 0 18px; overflow: hidden; border-radius: 14px; border: 1px solid var(--pv-line); background: var(--pv-cloud); }
.pv-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
li:hover > .pv-card-img img { transform: scale(1.025); }
.pv-noimg a { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--pv-soft); }
.pv-noimg img, li:hover > .pv-noimg img { width: 44px; height: 44px; transform: none; opacity: .9; }
.pv-card-body { display: flex; flex-direction: column; flex: 1; }
.pv-card-body > * { margin-block: 0; }
.pv-cat { position: relative; z-index: 1; font-size: .8rem; font-weight: 600; color: var(--pv-blue-text); }
.pv-cat a { color: var(--pv-blue-text); text-decoration: none; }
.pv-cat a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv-card-body .wp-block-post-title { margin-top: 8px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.pv-card-body .wp-block-post-title a { color: var(--pv-navy); text-decoration: none; transition: color .15s; }
.pv-card-body .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
li:hover .pv-card-body .wp-block-post-title a { color: var(--pv-blue-text); }
.pv-card-body .wp-block-post-excerpt { margin-top: 8px; }
.pv-card-body .wp-block-post-excerpt__excerpt { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--pv-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pv-card-body .wp-block-post-excerpt__more-text { display: none; }
.pv-date { display: flex; flex-wrap: wrap; align-items: center; margin-top: 16px; font-size: .84rem; color: var(--pv-muted); font-variant-numeric: tabular-nums; }
.pv-grid .pv-date { margin-top: auto; padding-top: 16px; }
.pv-rt::before { content: "·"; margin: 0 8px; }
.pv-empty { color: var(--pv-muted); }

.pv-pages { margin-top: 56px; gap: 8px; font-size: .94rem; font-weight: 600; }
.pv-pages a, .pv-pages .current { display: inline-flex; align-items: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; justify-content: center; border-radius: 10px; border: 1px solid var(--pv-line); color: var(--pv-navy); text-decoration: none; box-sizing: border-box; }
.pv-pages a:hover { background: var(--pv-cloud); }
.pv-pages .current { background: var(--pv-navy); border-color: var(--pv-navy); color: #fff; }

/* Artykuł */
.pv-post-head { padding-top: 48px; }
.pv-post-head > * { max-width: 860px; }
.pv-crumbs { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; color: var(--pv-muted); }
.pv-crumbs > * { margin: 0; font-size: inherit; }
.pv-crumbs a { color: var(--pv-muted); text-decoration: none; }
.pv-crumbs a:hover { color: var(--pv-navy); }
.pv-crumbs .wp-block-post-terms::before { content: "/"; margin-right: 8px; color: var(--pv-line); }
.pv-crumbs .wp-block-post-terms a { color: var(--pv-blue-text); font-weight: 600; }
.pv-post-head .wp-block-post-title { margin: 18px 0 0; font-size: clamp(2.2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.pv-post-head .pv-date { margin-top: 20px; font-size: .92rem; }
.pv-hero-img { margin: 40px 0 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--pv-line); }
.pv-hero-img img { display: block; width: 100%; height: auto; }
.pv-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; margin-top: 56px; }
.pv-post-main { max-width: 720px; min-width: 0; }

.pv-body { font-size: 1.125rem; line-height: 1.75; }
.pv-body > * { margin-block: 0 1.15em; }
.pv-body > :first-child { margin-top: 0; }
.pv-body h2 { margin-top: 2em; margin-bottom: .6em; font-size: 1.65rem; letter-spacing: -0.025em; line-height: 1.25; scroll-margin-top: calc(var(--pv-head) + 24px); }
.pv-body h3 { margin-top: 1.8em; margin-bottom: .5em; font-size: 1.25rem; letter-spacing: -0.015em; scroll-margin-top: calc(var(--pv-head) + 24px); }
.pv-body ul, .pv-body ol { padding-left: 1.3em; }
.pv-body li { margin-bottom: .35em; }
.pv-body li::marker { color: var(--pv-blue); }
.pv-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pv-body blockquote { margin-inline: 0; padding: 20px 24px; border: 0; border-left: 3px solid var(--pv-blue); border-radius: 0 12px 12px 0; background: var(--pv-cloud); font-size: 1.15rem; line-height: 1.6; }
.pv-body blockquote p { margin: 0; }
.pv-body blockquote cite { display: block; margin-top: 8px; font-size: .9rem; font-style: normal; color: var(--pv-muted); }
.pv-body figure { margin-block: 2em; }
.pv-body img { border-radius: 12px; }
.pv-body figcaption { margin-top: 8px; font-size: .88rem; color: var(--pv-muted); }
.pv-body .wp-block-table table { font-size: .95rem; font-variant-numeric: tabular-nums; }
.pv-body .wp-block-table th { text-align: left; border-bottom: 1px solid var(--pv-navy); }
.pv-body .wp-block-table td, .pv-body .wp-block-table th { padding: 8px 10px; border-color: var(--pv-line); }
.pv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; font-size: .86rem; }
.pv-tags .wp-block-post-terms__separator { display: none; }
.pv-tags a { display: inline-flex; height: 30px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--pv-cloud); color: var(--pv-navy); text-decoration: none; }
.pv-tags a::before { content: "#"; color: var(--pv-muted); margin-right: 2px; }

/* Panel boczny wpisu */
.pv-aside { position: sticky; top: calc(var(--pv-head) + 32px); display: grid; gap: 32px; }
body.admin-bar .pv-aside { top: calc(var(--pv-head) + 64px); }
.pv-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--pv-line); }
.pv-toc li { margin: 0; }
.pv-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: .9rem; line-height: 1.4; color: var(--pv-muted); text-decoration: none; }
.pv-toc a:hover { color: var(--pv-navy); }
.pv-toc a.on { border-left-color: var(--pv-blue); color: var(--pv-navy); font-weight: 600; }
.pv-toc-m { display: none; margin: 0 0 32px; border: 1px solid var(--pv-line); border-radius: 12px; background: var(--pv-soft); }
.pv-toc-m summary { cursor: pointer; padding: 14px 18px; min-height: 48px; box-sizing: border-box; font-weight: 600; color: var(--pv-navy); list-style-position: inside; }
.pv-toc-m summary span { color: var(--pv-muted); font-weight: 400; }
.pv-toc-m nav { padding: 0 18px 12px; }
.pv-toc-m ol { list-style: none; margin: 0; padding: 0; }
.pv-toc-m li { margin: 0; border-top: 1px solid var(--pv-line); }
.pv-toc-m a { display: block; padding: 11px 0; font-size: .95rem; line-height: 1.4; color: var(--pv-navy); text-decoration: none; }
.pv-share div { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-side-cta { padding: 20px; border-radius: 14px; background: var(--pv-cloud); font-size: .92rem; line-height: 1.55; color: var(--pv-muted); }
.pv-side-cta p { margin: 0 0 16px; }
.pv-side-cta strong { color: var(--pv-navy); }
.pv-side-cta .pv-btn { width: 100%; box-sizing: border-box; }
.pv-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: var(--pv-blue); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
body.admin-bar .pv-progress { top: 32px; }

.pv-more { padding-top: 96px; }

/* Zacznij tutaj: seria czytana po kolei */
.pv-start { padding-top: 56px; }
.pv-start-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 40px; align-items: start; padding: 32px; border-radius: 20px; background: var(--pv-cloud); }
.pv-start-txt h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.pv-start-txt > p:not(.pv-eyebrow) { margin: 12px 0 0; color: var(--pv-muted); font-size: .96rem; line-height: 1.6; }
.pv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pv-steps li { display: flex; min-width: 0; margin: 0; }
.pv-steps a { display: flex; flex-direction: column; gap: 10px; width: 100%; box-sizing: border-box; padding: 18px; border: 1px solid var(--pv-line); border-radius: 14px; background: #fff; color: var(--pv-navy); text-decoration: none; transition: border-color .15s, background-color .15s; }
.pv-steps a:hover { border-color: var(--pv-blue); box-shadow: 0 10px 28px -18px rgba(11, 16, 35, .4); }
.pv-step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pv-soft); color: var(--pv-blue-text); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-step-t { font-family: var(--wp--preset--font-family--jakarta); font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.pv-step-m { margin-top: auto; font-size: .82rem; color: var(--pv-muted); }

/* Kafelki kategorii */
.pv-cats { padding-top: 64px; }
.pv-cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pv-tile { display: flex; min-width: 0; margin: 0; }
.pv-tile a { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; box-sizing: border-box; padding: 22px; border: 1px solid var(--pv-line); border-radius: 16px; background: #fff; color: var(--pv-navy); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pv-tile a:hover { border-color: var(--pv-blue); box-shadow: 0 10px 28px -18px rgba(11, 16, 35, .4); }
.pv-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-tile-name { font-family: var(--wp--preset--font-family--jakarta); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.015em; }
.pv-count { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--pv-cloud); color: var(--pv-muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-tile-desc { font-size: .94rem; line-height: 1.55; color: var(--pv-muted); }
.pv-tile-last { margin-top: auto; padding-top: 4px; font-size: .86rem; font-weight: 500; color: var(--pv-blue-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Wzory do pobrania */
.pv-dl { padding-top: 96px; }
.pv-dl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pv-dl-card { display: flex; gap: 18px; align-items: flex-start; margin: 0; padding: 18px; border: 1px solid var(--pv-line); border-radius: 16px; background: #fff; }
.pv-dl-img { flex: none; display: grid; place-items: center; width: 76px; aspect-ratio: 210 / 297; overflow: hidden; border: 1px solid var(--pv-line); border-radius: 6px; background: var(--pv-cloud); color: var(--pv-muted); font-size: .72rem; font-weight: 700; }
.pv-dl-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pv-dl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pv-dl-t { font-family: var(--wp--preset--font-family--jakarta); font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--pv-navy); }
.pv-dl-from { font-size: .84rem; line-height: 1.45; color: var(--pv-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pv-dl-from a { color: var(--pv-blue-text); text-decoration: none; }
.pv-dl-from a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv-dl-card .pv-btn { margin-top: 8px; }
.pv-pdf { display: inline-flex; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--pv-soft); color: var(--pv-blue-text); font-size: .72rem; font-weight: 600; vertical-align: 1px; }

/* Podtematy i sortowanie w kategorii */
.pv-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--pv-line); }
.pv-hero-s .pv-subchips { margin-top: 0; }
.pv-subchips a { height: 32px; padding: 0 12px; font-size: .86rem; }
.pv-subchips a[aria-current] { background: var(--pv-soft); border-color: var(--pv-soft); color: var(--pv-blue-text); font-weight: 600; }
.pv-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: .9rem; color: var(--pv-muted); }
.pv-sort select { height: 36px; padding: 0 10px; border: 1px solid var(--pv-field); border-radius: 10px; background: #fff; color: var(--pv-navy); font: inherit; cursor: pointer; }
.pv-sort select:focus-visible { outline: 2px solid var(--pv-blue); outline-offset: 2px; }
.pv-sort button { height: 36px; font: inherit; font-weight: 600; cursor: pointer; }

/* Seria we wpisie */
.pv-series-tag { margin: 16px 0 0; }
.pv-series-tag a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--pv-soft); color: var(--pv-blue-text); font-size: .84rem; font-weight: 600; text-decoration: none; }
.pv-series-tag a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv-series { margin: 48px 0 0; padding: 24px; border: 1px solid var(--pv-line); border-radius: 16px; background: var(--pv-cloud); scroll-margin-top: calc(var(--pv-head) + 24px); }
.pv-series .pv-label { margin-bottom: 6px; }
.pv-series-name { margin: 0 0 14px; font-family: var(--wp--preset--font-family--jakarta); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
.pv-series-name a { color: var(--pv-navy); text-decoration: none; }
.pv-series-name a:hover { color: var(--pv-blue-text); }
.pv-series ol { display: grid; gap: 6px; margin: 0; padding-left: 1.4em; font-size: .96rem; line-height: 1.45; }
.pv-series li { margin: 0; }
.pv-series li::marker { color: var(--pv-muted); font-weight: 600; }
.pv-series li.on { color: var(--pv-navy); font-weight: 600; }
.pv-series li.on::marker { color: var(--pv-blue); }
.pv-series li a { color: var(--pv-muted); text-decoration: none; }
.pv-series li a:hover { color: var(--pv-navy); text-decoration: underline; text-underline-offset: 3px; }
.pv-series-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.pv-series-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--pv-line); border-radius: 12px; background: #fff; color: var(--pv-navy); font-size: .95rem; font-weight: 600; line-height: 1.4; text-decoration: none; transition: border-color .15s; }
.pv-series-nav a:hover { border-color: var(--pv-blue); }
.pv-series-nav small { font-size: .78rem; font-weight: 500; color: var(--pv-muted); }
.pv-sn-next { grid-column: 2; text-align: right; }

/* Zachęta przed stopką */
.pv-cta { margin-top: 112px; }
.pv-cta-box { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 56px; border-radius: 24px; background: var(--pv-navy); color: #fff; overflow: hidden; }
.pv-cta-box .pv-eyebrow { color: #9DB2FF; }
.pv-cta-box h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.pv-cta-txt > p:not(.pv-eyebrow) { margin: 16px 0 0; max-width: 50ch; color: rgba(255, 255, 255, .72); font-size: 1.04rem; line-height: 1.6; }
.pv-cta-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pv-cta-acts .pv-btn { height: 46px; padding: 0 20px; font-size: 1rem; }
.pv-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 22px 0 0; padding: 0; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.pv-trust li { display: flex; align-items: center; gap: 6px; margin: 0; }
.pv-trust svg, .pv-mk svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pv-trust svg { color: #4ADE9B; }
.pv-mk { justify-self: end; width: 100%; max-width: 380px; display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: #fff; color: var(--pv-navy); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.pv-mk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pv-mk-head small { display: block; font-size: .72rem; color: var(--pv-muted); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pv-mk-head b { font-family: var(--wp--preset--font-family--jakarta); font-size: 1.02rem; }
.pv-mk-tag { padding: 4px 9px; border-radius: 999px; background: #E3F6EE; color: var(--pv-ok); font-size: .72rem; font-weight: 600; white-space: nowrap; }
.pv-mk-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.pv-mk-steps i { height: 6px; border-radius: 3px; background: var(--pv-line); }
.pv-mk-steps i.d { background: var(--pv-blue); }
.pv-mk-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--pv-cloud); font-size: .84rem; }
.pv-mk-line svg { color: var(--pv-muted); }
.pv-mk-line.ok { background: #EEF9F4; }
.pv-mk-line.ok svg { color: var(--pv-ok); }
.pv-mk-line small { color: var(--pv-muted); font-size: .74rem; }

/* Stopka */
.pv-foot { margin-top: 96px; padding-block: 56px 32px; border-top: 1px solid var(--pv-line); font-size: .92rem; color: var(--pv-muted); }
.pv-foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.pv-foot-brand img { height: 26px; width: auto; display: block; }
.pv-foot-brand p { margin: 16px 0 0; max-width: 34ch; line-height: 1.6; }
.pv-foot nav { display: flex; flex-direction: column; gap: 10px; }
.pv-foot nav .pv-label { margin-bottom: 4px; }
.pv-foot a { color: var(--pv-navy); text-decoration: none; }
.pv-foot a:hover { color: var(--pv-blue-text); }
.pv-foot-link { align-self: flex-start; min-height: 24px; padding: 0; border: 0; background: none; font: inherit; color: var(--pv-navy); text-align: left; cursor: pointer; }
.pv-foot-link:hover { color: var(--pv-blue-text); }

/* Baner zgody na cookies analityczne (inc/zgoda.php, assets/zgoda.js). Przyciski równorzędne: ten sam wygląd i rozmiar. */
.pv-zgoda { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; box-sizing: border-box; background: #fff; color: var(--pv-navy); border: 1px solid var(--pv-field); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(11, 16, 35, .45); }
.pv-zgoda[hidden] { display: none; }
.pv-zgoda-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; padding: 18px 20px; }
.pv-zgoda h2 { margin: 0 0 6px; font-size: 1rem; line-height: 1.3; }
.pv-zgoda p { margin: 0; font-size: .9rem; line-height: 1.55; }
.pv-zgoda p a { color: var(--pv-blue-text); text-decoration: underline; }
.pv-zgoda p a:focus-visible { outline: 2px solid var(--pv-blue); outline-offset: 2px; border-radius: 4px; }
.pv-zgoda-btns { display: flex; gap: 10px; }
.pv-zgoda-btns .pv-btn { min-width: 120px; }
@media (max-width: 640px) {
	.pv-zgoda { left: 8px; right: 8px; bottom: 8px; max-height: calc(100dvh - 16px); overflow-y: auto; }
	.pv-zgoda-in { grid-template-columns: 1fr; padding: 16px; }
	.pv-zgoda-btns .pv-btn { flex: 1; min-width: 0; }
}
@media print { .pv-zgoda { display: none !important; } }

/* Ułatwienia dostępu (assets/ulatwienia.js): okno <dialog> i klasy ul-* na <html>, wspólne z aplikacją Partivio. */
.pv-ul { border: 0; border-radius: 16px; padding: 24px; width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); box-sizing: border-box; color: var(--pv-navy); background: #fff; box-shadow: 0 24px 60px -24px rgba(11, 16, 35, .5); }
.pv-ul::backdrop { background: rgba(11, 16, 35, .5); }
.pv-ul h2 { margin: 0 0 4px; font-size: 1.25rem; }
.pv-ul > p { margin: 0 0 14px; font-size: .9rem; color: var(--pv-muted); }
.pv-ul-opts { display: grid; gap: 8px; }
.pv-ul-opt { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--pv-field); border-radius: 10px; cursor: pointer; font-size: .95rem; }
.pv-ul-opt input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pv-blue); }
.pv-ul-opt b { display: block; } .pv-ul-opt small { color: var(--pv-muted); }
.pv-ul-opt:has(input:checked) { border-color: var(--pv-blue); background: var(--pv-soft); }
.pv-ul p.pv-ul-st { min-height: 1.2em; margin: 10px 0 0; color: var(--pv-ok); }
.pv-ul-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 8px; }
html.ul-txt { font-size: 120%; }
html.ul-kontrast { --pv-muted: #2B3140; --pv-field: #3F4654; --pv-blue-text: #1E3FCC; }
html.ul-linki a:not(.pv-btn) { text-decoration: underline !important; text-underline-offset: 3px; }
html.ul-ruch, html.ul-ruch *, html.ul-ruch *::before, html.ul-ruch *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.pv-foot-copy { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--pv-line); font-size: .86rem; }

@media (max-width: 980px) {
	.pv-feature-list > li { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pv-post-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.pv-post-main { max-width: none; }
	.pv-aside { position: static; border-top: 1px solid var(--pv-line); padding-top: 32px; }
	.pv-toc { display: none; }
	.pv-toc-m { display: block; }
	.pv-cta-box { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
	.pv-start-box { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.pv-cat-grid, .pv-dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pv-mk { justify-self: start; }
	.pv-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pv-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > header.wp-block-template-part, body.admin-bar .pv-progress { top: 46px; }
}
@media (max-width: 640px) {
	.pv-in { padding-inline: 20px; }
	.pv-hide-s { display: none; }
	.pv-hero { padding-block: 44px 24px; }
	.pv-hero-row { margin-top: 28px; }
	.pv-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
	.pv-chips a { white-space: nowrap; }
	.pv-search { width: 100%; }
	.pv-feature { padding-top: 32px; }
	.pv-list { padding-top: 48px; }
	.pv-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.pv-start { padding-top: 40px; }
	.pv-start-box { padding: 22px; border-radius: 16px; }
	.pv-steps a { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 14px; padding: 16px; }
	.pv-step-n { grid-row: span 2; }
	.pv-cats { padding-top: 48px; }
	.pv-cat-grid, .pv-dl-grid { grid-template-columns: minmax(0, 1fr); }
	.pv-dl { padding-top: 72px; }
	.pv-sort { margin-left: 0; }
	.pv-series { padding: 20px; }
	.pv-series-nav { grid-template-columns: minmax(0, 1fr); }
	.pv-sn-next { grid-column: auto; text-align: left; }
	.pv-post-head { padding-top: 32px; }
	.pv-hero-img { margin-top: 28px; border-radius: 14px; }
	.pv-post-grid { margin-top: 36px; }
	.pv-body { font-size: 1.0625rem; }
	.pv-more { padding-top: 72px; }
	.pv-cta { margin-top: 80px; padding-inline: 0; }
	.pv-cta-box { border-radius: 0; padding: 40px 20px; }
	.pv-mk { display: none; }
	.pv-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
	.pv-hide-xs { display: none; }
}
/* Ekran 320 px (WCAG 1.4.10): nagłówek mieści się bez przewijania w poziomie. */
@media (max-width: 360px) {
	.pv-in { padding-inline: 16px; }
	.pv-chips { margin-inline: -16px; padding-inline: 16px; }
	.pv-bar { gap: 8px; }
	.pv-logo span { display: none; }
	.pv-acts .pv-btn { padding: 0 12px; font-size: .88rem; }
}
/* Szeroka tabela we wpisie przewija się w poziomie i dostaje fokus (tabindex dodaje functions.php). */
.wp-block-table[tabindex]:focus-visible { outline: 2px solid var(--pv-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.pv-card-img img, .pv-btn, .pv-chips a, .pv-steps a, .pv-tile a, .pv-series-nav a { transition: none; }
	li:hover > .pv-card-img img { transform: none; }
}

/* Formularz wzoru dokumentu za e-mail ([partivio_wzor]) */
.pv-wzor { border: 1px solid #E1E6F0; border-radius: 16px; padding: 20px 22px; margin-block: 28px; background: #F7F9FC; display: grid; gap: 10px; }
.pv-wzor p { margin: 0; }
.pv-wzor-h { font-size: 1.15rem; }
.pv-wzor-r { display: grid; gap: 4px; }
.pv-wzor input[type="email"], .pv-wzor input[name="name"] { padding: 10px 12px; border: 1px solid #8A93A8; border-radius: 10px; font: inherit; }
.pv-wzor-c { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.pv-wzor-c input { margin-top: 4px; }
.pv-wzor-m:empty { display: none; }
.pv-wzor-k { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pv-blue-text, #2A4FE0); }
.pv-wzor[hidden], .pv-pakiet-l[hidden], .pv-wzor-d[hidden] { display: none; }
.pv-pakiet-l { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pv-pakiet-l li { position: relative; padding-left: 26px; }
.pv-pakiet-l li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid #3A61F7; border-bottom: 2px solid #3A61F7; transform: rotate(-45deg); }

/* Sekcja „Z naszego Facebooka” (wtyczka partivio-facebook, blok partivio/facebook): karty jak lista wpisów. */
.pv-fb { padding-top: 64px; }
.pv-fb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.pv-fb-head .pv-sec-h { margin: 0; }
.pv-fb-img { aspect-ratio: 16 / 10; }
.pv-fb-t { margin-top: 8px; font-size: .98rem; line-height: 1.6; color: var(--pv-navy); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.pv-fb-t a { color: inherit; text-decoration: none; }
.pv-fb-t a::after { content: ""; position: absolute; inset: 0; }
.pv-fb-grid > li:hover .pv-fb-t a { color: var(--pv-blue-text); }
.pv-fb-grid > li:focus-within { outline: 2px solid var(--pv-blue); outline-offset: 6px; border-radius: 14px; }

/* Strona 404 (1.13.0) */
.pv-404 h1 { margin: 0 0 12px; }
.pv-404-txt { max-width: 560px; color: var(--pv-muted); margin: 0 0 20px; }
.pv-404 .pv-search { max-width: 420px; margin-bottom: 20px; }
.pv-404-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
