/*
 * Layout & typography refresh (2026).
 * Loaded after style.css; overrides legacy rules. One column (no sidebars),
 * card grid on lists, readable article column.
 */

/* Open Sans, self-hosted (variable 300–800; latin + latin-ext cover Polish); upright files are preloaded in functions.php */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url(../fonts/open-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url(../fonts/open-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url(../fonts/open-sans-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url(../fonts/open-sans-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Theme images in WebP; scoped so phones never download the desktop page photo and live headers never download the legacy skyline */
@media screen and (min-width: 866px) {
    body { background-image: url(../images/tlo4i.jpg); background-image: image-set(url(../images/tlo4i.webp) type("image/webp"), url(../images/tlo4i.jpg) type("image/jpeg")); background-attachment: fixed; background-size: cover; }
}
:root:not(.wwp-sky) .main-header { background-image: url(../images/tlo-top.jpg); background-image: image-set(url(../images/tlo-top.webp) type("image/webp"), url(../images/tlo-top.jpg) type("image/jpeg")); }
#logo { background-image: url(../images/logo.svg); background-size: contain; } /* vector from docs/brand/*.eps (tools/logo-from-eps.py): sharp on every screen */

/* ad slot under the menu: keep its space before the ad arrives so the page does not jump
 * (same value as the rule production adds in its head code) */
.optad_atf { min-height: 336px; }
/* the ad sits on the bottom of that space, so the content starts right under it and the spare room
 * stays under the menu (stronger selector: production's head code sets display: block) */
.main-container > .optad_atf { display: flex; flex-direction: column; justify-content: flex-end; }
/* production's head code paints the slot white; the page colour fits both themes (a dark page had a white band) */
.main-container > .optad_atf, .main-container > .optad_atf .ATF_d { background: var(--wwp-bg) !important; } /* optAd paints its inner .ATF_d white with !important too */
/* optAd's "Ads by" bar stays white (dark logo) but only as wide as the logo, not a white strip under the ad */
body #optad360-branding { width: auto; align-self: flex-start; padding-right: 4px; border-radius: 0 0 4px 4px; }
:root {
    --wwp-font: "Open Sans", Arial, sans-serif;
    --wwp-red: #e00000;
    --wwp-ink: #1f1f1f;
    --wwp-text: #2e2e2e;
    --wwp-muted: #6b6b6b;
    --wwp-line: #e4e4e4;
    --wwp-field-border: #8c8c8c; /* >= 3:1 UI border contrast (WCAG 1.4.11) */
    --wwp-soft: #f5f5f5;
    --wwp-measure: 760px;
    --wwp-bar: #1f1f1f;
    --wwp-bg: #fff;
    --wwp-accent: #e00000; /* red as text on the page surface */
    --wwp-focus: #e00000;
    --wwp-excerpt: #4a4a4a;
    --wwp-tint: #fff6f6;
    --wwp-tint-line: #f2cfcf;
    --wwp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

body { color: var(--wwp-text); font: 1rem/1.6 var(--wwp-font); }
h1, h2, h3, h4, h5, h6 { color: var(--wwp-ink); text-transform: none; letter-spacing: -0.01em; text-wrap: balance; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [role="button"]:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 2px solid var(--wwp-focus);
    outline-offset: 2px;
}
::placeholder { color: var(--wwp-muted); opacity: 1; } /* browser grey is under 4.5:1 on the dark surface */

/* ---------- one-column page ---------- */
.main-container {
    background: var(--wwp-bg);
    display: flex; flex-direction: column; min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 10px 40px -20px rgba(0,0,0,.25);
}
.main-container > #page { flex: 1 0 auto; margin-top: 0; }
.main-container > * { flex-shrink: 0; }
#page, #page .content { background: transparent; } /* surface colour comes from .main-container */
#page .content { float: none; padding: 12px 40px 48px; /* top: just under the ad slot */ box-sizing: border-box; }
#page.single { padding-top: 0; }
#page.single .content { padding-top: 28px; } /* the article does not start flush under the Pilne bar (or the ad under it) */
.article { margin: 0; padding: 0; min-height: 0; width: auto !important; float: none; }
.ad-top { padding: 16px 0 0; }
.front-spacer { padding: 0; }

/* ---------- menu bar: dark on every width, like the mobile bar ---------- */
#header { background: var(--wwp-bar); }
#header:after { display: none; }
@media screen and (min-width: 866px) {
    #header { height: auto; display: flow-root; }
    .secondary-navigation, #navigation { background: transparent; }
    #navigation .menu > li { border: 0; }
    #navigation .menu > li > a,
    #navigation > ul li:first-child a {
        color: #fff; border: 0; padding: 0 18px; line-height: 52px; font-size: 0.8125rem; font-weight: 700; letter-spacing: .04em;
    }
    #navigation .menu > li > a .sub, #navigation .menu > li > a br { display: none; }
    #navigation .menu > li > a:hover,
    #navigation .menu > .current-menu-item > a,
    #navigation .menu > .current-menu-parent > a { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 -3px 0 var(--wwp-red); }
    .menu .current-menu-item > a:after { display: none; }
    #search-toggle { height: 52px; color: #fff; border-left: 1px solid rgba(255,255,255,.14); }
    #search-toggle:hover, #search-toggle.is-open { background: rgba(255,255,255,.08); }
    #search-toggle:focus-visible { outline-color: #fff; }
    #mobile-search { top: 52px; }
}
@media screen and (min-width: 866px) and (max-width: 1100px) {
    #navigation .menu > li > a, #navigation > ul li:first-child a { padding: 0 12px; font-size: 0.75rem; }
}
@media screen and (max-width: 865px) {
    .secondary-navigation, #navigation { background: var(--wwp-bar); }
    /* phones and tablets: the column fills the screen, so the city photo behind it and its shadow would never show */
    .main-container { max-width: 100%; box-shadow: none; }
    body, [data-theme="dark"] body { background: var(--wwp-bg); }
    /* drop the legacy fixed-height strip under the bar */
    #header { height: auto; display: flow-root; }
    .secondary-navigation { height: auto; margin-top: 0; }
    /* logo scales with the screen and the bar sits below it (legacy -30px pull clipped the mermaid) */
    .main-header { min-height: 0; }
    #logo { width: min(441px, calc(100% - 32px)); height: auto; aspect-ratio: 441 / 108; background-size: contain !important; margin: 14px 16px; }
}

/* ---------- section heading ---------- */
.frontTitle {
    background: none; color: var(--wwp-ink); line-height: 1.2; font-size: 0.9375rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em; padding: 0 0 10px; margin: 0 0 28px;
    border-bottom: 3px solid var(--wwp-ink); position: relative;
}
.frontTitle::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 64px; height: 3px; background: var(--wwp-red); }
/* Archive H1 must clearly outrank the 19px H2 card titles below it */
.postsby {
    background: none; color: var(--wwp-ink); line-height: 1.18; font-size: clamp(1.625rem, 2.5vw, 2.25rem); font-weight: 800;
    letter-spacing: -0.015em; text-transform: none; padding: 0 0 14px; margin: 0 0 28px;
    border-bottom: 3px solid var(--wwp-ink); position: relative;
}
.postsby::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px; background: var(--wwp-red); }
.postsby span { color: var(--wwp-muted); font-weight: 600; font-size: 0.72em; }

/* ---------- card grid (home, archive, search) ---------- */
.home-page .article { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 40px 32px; align-items: start; }
.home-page .article > :not(article) { grid-column: 1 / -1; }
.home-page .article > .frontTitle, .home-page .article > .postsby { margin-bottom: -8px; }
.home-page .post.excerpt {
    float: none; width: auto; margin: 0; padding: 0; border: 0 !important; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.home-page .featured-thumbnail-link { float: none; width: 100%; max-width: none; margin: 0; position: relative; display: block; overflow: hidden; }
.home-page .featured-thumbnail { width: 100%; aspect-ratio: 3 / 2; background: var(--wwp-soft); }
.home-page .featured-thumbnail img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform 300ms var(--wwp-ease-out); }
.home-page .featured-cat {
    top: 0; left: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: .05em; line-height: 1; padding: 7px 9px;
}
.home-page .featured-cat--artykul-sponsorowany { background: var(--wwp-ink) !important; color: var(--wwp-bg) !important; }
.home-page .post.excerpt header { margin: 0; overflow: visible; }
.home-page .post.excerpt .title { font-size: 1.1875rem; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
.home-page .post.excerpt .title a { color: var(--wwp-ink); transition: color 150ms ease; }
.home-page .post.excerpt .title a:hover { color: var(--wwp-accent); }
/* one centred row (wraps on narrow cards): category, date and the author with an avatar line up top to bottom */
.home-page .post-info { float: none; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: 0.8125rem; line-height: 1.4; color: var(--wwp-muted); margin: 0; }
.home-page .post.excerpt .post-content { padding: 0; margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--wwp-excerpt);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-page .post.excerpt .post-content p { margin: 0; }

/* lead story (first post of page 1 when the list has one, functions/wwp-lists.php) */
.home-page .post.excerpt.is-lead { grid-column: 1 / -1; padding: 0 0 40px; border-bottom: 1px solid var(--wwp-line) !important; }
.home-page .post.excerpt.wwp-lead--side { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 32px; }
.home-page .post.excerpt.wwp-lead--side.no-thumb { display: flex; max-width: var(--wwp-measure); }
.home-page .wwp-lead--side .featured-thumbnail-link { grid-row: 1 / span 2; }
.home-page .wwp-lead--side header { align-self: end; }
.home-page .post.excerpt.is-lead .title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 800; margin-bottom: 10px; }
.home-page .post.excerpt.is-lead .post-content { padding: 12px 0 0; font-size: 1.0625rem; -webkit-line-clamp: 5; align-self: start; }
/* lead with the title on the photo: the header sits in the photo's cell on a dark gradient (white text keeps AA in both themes) */
.home-page .post.excerpt.wwp-lead--overlay { display: grid; gap: 0; }
.home-page .wwp-lead--overlay .featured-thumbnail-link, .home-page .wwp-lead--overlay header { grid-area: 1 / 1; }
.home-page .wwp-lead--overlay .featured-thumbnail { aspect-ratio: 16 / 9; }
.home-page .wwp-lead--overlay header {
    align-self: end; z-index: 1; padding: 112px 32px 28px; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .86), rgba(0, 0, 0, .62) 55%, rgba(0, 0, 0, 0));
}
.home-page .wwp-lead--overlay header a { pointer-events: auto; }
.home-page .post.excerpt.wwp-lead--overlay .title a, .home-page .post.excerpt.wwp-lead--overlay .title a:hover { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.home-page .wwp-lead--overlay .post-info, .home-page .wwp-lead--overlay .post-info a { color: rgba(255, 255, 255, .88); }
.home-page .wwp-lead--overlay .post-info__cat { color: #fff; }
.home-page .post.excerpt.wwp-lead--overlay .post-content { padding-top: 16px; max-width: var(--wwp-measure); }

/* card elements: info line (category without a photo, date, author), longer excerpt */
.home-page .post-info > * + *::before { content: "·"; margin: 0 6px; }
.home-page .post-info > .post-info__author::before { margin-right: 0; } /* the author's gap already spaces the dot from the avatar */
.home-page .post-info__cat { font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wwp-accent); }
.home-page .post-info a { color: inherit; }
.post-info__author, .search-hit__author { display: inline-flex; align-items: center; gap: 6px; }
.post-info__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.home-page .is-lead .post-info__avatar { width: 32px; height: 32px; }
.home-page .post.excerpt.wwp-excerpt--long .post-content { -webkit-line-clamp: 6; }
.home-page .post.excerpt.is-lead.wwp-excerpt--long .post-content { -webkit-line-clamp: 8; }

/* photo ratio */
.home-page .wwp-ratio--16-9 .featured-thumbnail { aspect-ratio: 16 / 9; }
.home-page .wwp-ratio--4-3 .featured-thumbnail { aspect-ratio: 4 / 3; }
.home-page .wwp-ratio--1-1 .featured-thumbnail { aspect-ratio: 1; }
.home-page .wwp-lead--overlay .featured-thumbnail { aspect-ratio: 16 / 9; }

/* layouts (grid3 is the base above) */
.home-page .article.wwp-list--grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .post.excerpt.wwp-card--big .title, .home-page .wwp-list--grid2 .post.excerpt.wwp-card--card .title { font-size: 1.375rem; }
.home-page .article.wwp-list--list, .home-page .article.wwp-list--compact { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.home-page .wwp-list--list > .is-lead, .home-page .wwp-list--compact > .is-lead { margin-bottom: 16px; }
.home-page .wwp-list--list .post.excerpt.wwp-card--card {
    display: grid; grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 8px 24px; align-items: start;
    padding: 24px 0; border-bottom: 1px solid var(--wwp-line) !important;
}
.home-page .wwp-list--list .post.excerpt.wwp-card--card.no-thumb { grid-template-columns: minmax(0, 1fr); max-width: var(--wwp-measure); }
.home-page .wwp-list--list .wwp-card--card .featured-thumbnail-link { grid-row: 1 / span 2; }
.home-page .post.excerpt.wwp-card--compact { gap: 0; padding: 14px 0; border-bottom: 1px solid var(--wwp-line) !important; }
.home-page .article > article.post.excerpt:last-of-type { border-bottom: 0 !important; } /* the pagination below draws its own top line */
.home-page .wwp-card--compact header { display: flex; flex-direction: column-reverse; gap: 4px; }
.home-page .post.excerpt.wwp-card--compact .title { font-size: 1.0625rem; margin: 0; }
.home-page .article.wwp-list--narrow { width: 100%; max-width: var(--wwp-measure); margin-inline: auto; } /* Opcje WWP → Listy wpisów → Wąska lista: the article's column */
.home-page .article.wwp-list--editorial { grid-template-columns: repeat(6, minmax(0, 1fr)); } /* dense like the base: later cards backfill the row an ad slot cuts short */
.home-page .wwp-list--editorial > .wwp-card--big, .home-page .wwp-list--editorial > .wwp-card--compact { grid-column: span 3; }
.home-page .wwp-list--editorial > .wwp-card--card { grid-column: span 2; }
.home-page .wwp-list--editorial > .wwp-card--compact { padding: 12px 0; }

/* pinned (sticky) story: soft warm tint with a light red hairline */
body.blog .home-page .post.excerpt.is-sticky {
    padding: 24px; background: var(--wwp-tint); border: 1px solid var(--wwp-tint-line) !important; border-radius: 4px;
}
/* list and compact: a framed or tinted item (pinned story, own block, reserved ad) is its own separator, so the card above drops
 * its divider and the cards' padding is the gap on both sides; the heading pulls the first row up 8px, a first pinned story makes up for it */
.home-page .wwp-list--list > .post.excerpt:has(+ .is-sticky, + .code-block, + .wwp-ad-reserve),
.home-page .wwp-list--compact > .post.excerpt:has(+ .is-sticky, + .code-block, + .wwp-ad-reserve) { border-bottom: 0 !important; }
body.blog .home-page .wwp-list--list > .frontTitle + .is-sticky, body.blog .home-page .wwp-list--compact > .frontTitle + .is-sticky { margin-top: 24px; }
/* two framed items in a row (several pinned stories, a pinned story next to an own block) would touch: rows here have no gap */
.home-page :is(.wwp-list--list, .wwp-list--compact) > :is(.is-sticky, .code-block, .wwp-ad-reserve) + :is(.is-sticky, .code-block, .wwp-ad-reserve) { margin-top: 20px !important; }
@media screen and (max-width: 600px) {
    body.blog .home-page .post.excerpt.is-sticky { padding: 14px; }
    .home-page :is(.wwp-list--list, .wwp-list--compact) > :is(.is-sticky, .code-block, .wwp-ad-reserve) + :is(.is-sticky, .code-block, .wwp-ad-reserve) { margin-top: 12px !important; }
}

/* pagination */
.home-page .pagination { margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--wwp-line); }

/* ---------- single article ---------- */
.single .article, .page .article { max-width: var(--wwp-measure); margin: 0 auto; padding-bottom: 32px; }
.page h1.title { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.14; font-weight: 800; margin: 8px 0 28px; padding: 0; border: 0; text-wrap: pretty; }

/* article header: category chips, title, author bar */
.single article header.article-head { margin: 0 0 28px; }
.article-head__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-head__cat {
    display: inline-block; padding: 6px 10px; background: var(--wwp-red); color: #fff !important;
    font-size: 0.75rem; font-weight: 800; line-height: 1; letter-spacing: .08em; text-transform: uppercase;
}
.article-head__cat:hover { background: #b80000; }
.article-head__cat--artykul-sponsorowany, .article-head__cat--artykul-sponsorowany:hover { background: var(--wwp-ink); color: var(--wwp-bg) !important; }
.article-head .single-title { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.14; font-weight: 800; margin: 0; padding: 0; border: 0; text-wrap: pretty; }
.article-head__meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 0.875rem; line-height: 1.45; color: var(--wwp-muted); }
.article-head__avatar { width: 28px; height: 28px; border-radius: 50%; display: block; object-fit: cover; }
.article-head__author { color: var(--wwp-ink) !important; font-weight: 700; }
.article-head__author:hover { color: var(--wwp-accent) !important; }
.article-head__fact::before { content: "·"; margin: 0 8px; color: var(--wwp-muted); }
.single article header { margin-bottom: 28px; overflow: visible; }

.post-single-content, .single_page .post-content { font-size: 1.125rem; line-height: 1.75; color: var(--wwp-text); padding-right: 0; }
.post-single-content p, .single_page .post-content p { margin: 0 0 1.25em; }
.post-single-content > p:first-of-type strong:only-child { font-size: 1.25rem; line-height: 1.6; font-weight: 700; color: var(--wwp-ink); }
.post-single-content h2, .single_page .post-content h2 { font-size: 1.625rem; line-height: 1.3; margin: 1.8em 0 .6em; }
.post-single-content h3, .single_page .post-content h3 { font-size: 1.3125rem; line-height: 1.35; margin: 1.6em 0 .5em; }
.post-single-content h4, .single_page .post-content h4 { font-size: 1.1875rem; line-height: 1.4; margin: 1.4em 0 .45em; }
.post-single-content h5, .single_page .post-content h5 { font-size: 1.0625rem; line-height: 1.45; font-style: normal; margin: 1.2em 0 .4em; }
.post-single-content h6, .single_page .post-content h6 { font-size: 0.9375rem; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase; color: var(--wwp-muted); margin: 1.2em 0 .4em; }
.post-single-content a { color: var(--wwp-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-single-content ul, .post-single-content ol { margin: 0 0 1.25em 1.3em; }
.post-single-content li { margin-bottom: .4em; }
/* text pasted from other editors wraps each item in <div><p>: the paragraph gap made every item look like its own paragraph */
.post-single-content li p { margin-bottom: .4em; }
.post-single-content li p:last-child { margin-bottom: 0; }
.post-single-content li > :is(ul, ol) { margin-top: .4em; margin-bottom: 0; }
/* quote: no side rule, a large Polish opening quotation mark sits behind the first lines */
.post-single-content blockquote, .single_page .post-content blockquote {
    position: relative; isolation: isolate; margin: 2em 0; padding: 22px 0 4px 48px; border: 0; background: none;
    font-family: inherit; font-size: 1.3125rem; line-height: 1.55; font-style: normal; font-weight: 600; color: var(--wwp-ink);
}
.post-single-content blockquote::before, .single_page .post-content blockquote::before {
    content: "\201E"; position: absolute; left: -6px; top: -26px; z-index: -1;
    font: 700 150px/1 Georgia, "Times New Roman", serif; color: var(--wwp-red); opacity: .16; pointer-events: none;
}
.post-single-content blockquote p, .single_page .post-content blockquote p { margin-bottom: .4em; text-align: left; }
.post-single-content blockquote cite, .single_page .post-content blockquote cite {
    display: block; margin-top: 10px; font-size: 0.8125rem; font-weight: 700; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--wwp-muted);
}
.post-single-content blockquote cite::before, .single_page .post-content blockquote cite::before { content: "— "; }
.post-single-content img { height: auto; }
.post-single-content figcaption, .wp-caption-text { font-size: 0.875rem; line-height: 1.5; color: var(--wwp-muted); }
.wp-caption { background: var(--wwp-soft); }

/* ---------- footer ---------- */
.site-footer { clear: both; background: var(--wwp-bar); color: #b9b9b9; font-size: 0.875rem; line-height: 1.6; overflow: visible; }
.site-footer__inner { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; padding: 36px 40px; border-top: 4px solid var(--wwp-red); }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__name { display: block; margin-bottom: 6px; font-weight: 800; font-size: 0.9375rem; }
.site-footer__top {
    position: absolute; top: -22px; right: 40px; width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--wwp-red); color: #fff !important; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.site-footer__top:hover { background: #b80000; text-decoration: none !important; }

/* ---------- footer styles: night, river, masthead (Opcje WWP → Stopka; footer.php, parts/footer-art.php) ---------- */
.site-footer--night, .site-footer--wordmark, .site-footer--letters, .site-footer--river, .site-footer--masthead { position: relative; container-type: inline-size; } /* cqi: the wordmark follows the footer's width, not the window's */
.site-footer--night, .site-footer--wordmark { overflow: hidden; } /* the wordmark bleeds off the edges */
.site-footer--night .site-footer__inner, .site-footer--wordmark .site-footer__inner, .site-footer--letters .site-footer__inner, .site-footer--river .site-footer__inner, .site-footer--masthead .site-footer__inner { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer .site-footer__head { margin: 0 0 8px; color: #a3a3a3; font-size: 0.6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; } /* h2 colour is --wwp-ink, dark on dark */
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin: 0 0 6px; }
.site-footer__col { position: relative; z-index: 1; }
.site-footer__mark { display: none; }
.site-footer__art svg { display: block; }

/* night: the header's city, after dark */
.site-footer--night { background: #111; }
.site-footer--night .site-footer__art { height: clamp(84px, 12.5vw, 150px); background: linear-gradient(#0f182b, #2a3b5c); border-top: 4px solid var(--wwp-red); }
.site-footer--night .site-footer__art svg { width: 100%; height: 100%; }
.site-footer--night .site-footer__inner { position: static; border-top: 0; padding-bottom: clamp(56px, 9vw, 110px); }
.site-footer__city { fill: #111; }
.site-footer__stars { fill: #fff; opacity: .55; }
.site-footer__windows { fill: #ffd27a; }
.site-footer__stadium { fill: none; stroke: var(--wwp-red); stroke-width: 3; stroke-dasharray: 6 4; }
.site-footer__cables { fill: none; stroke: #111; stroke-width: 1.2; }
.site-footer--night .site-footer__top { top: clamp(14px, 2.5vw, 26px); box-shadow: 0 0 0 6px rgba(224,0,0,.18), 0 0 34px rgba(255,80,80,.55); } /* a red moon over the roofs */
.site-footer--night .site-footer__mark, .site-footer--wordmark .site-footer__mark, .site-footer--masthead .site-footer__mark { display: block; margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: .9; text-transform: uppercase; }
.site-footer--night .site-footer__mark, .site-footer--wordmark .site-footer__mark {
    position: absolute; left: 50%; bottom: -0.12em; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
    font-size: 8.4cqi; color: rgba(255,255,255,.05);
}
@media (prefers-reduced-motion: no-preference) {
    :root:not([data-motion="off"]) .site-footer:not(.site-footer--still) .site-footer__windows .is-tw { animation: wwp-twinkle 7s ease-in-out infinite; } /* --still: Opcje WWP → Stopka → Animacje; data-motion: the visitor's switch */
}
@keyframes wwp-twinkle { 0%, 60%, 100% { opacity: 1; } 70%, 90% { opacity: .15; } }

/* wordmark: the night footer without the city — red line, the columns, the faint wordmark at the bottom */
.site-footer--wordmark { background: #111; }
.site-footer--wordmark .site-footer__inner { position: static; padding-bottom: clamp(56px, 9vw, 110px); }
.site-footer--wordmark .site-footer__top { top: clamp(18px, 2.5vw, 30px); box-shadow: 0 0 0 6px rgba(224,0,0,.18), 0 0 34px rgba(255,80,80,.55); } /* inside: overflow:hidden would cut it on the red line */
@media screen and (max-width: 600px) {
    .site-footer--wordmark .site-footer__col:first-of-type { padding-right: 56px; } /* first div: the wordmark <p> comes before it */ /* one column: the portal name must not run under the button */
}

/* letters: the wordmark is the city — tall letters standing like towers, windows lit inside them */
.site-footer--letters { background: #111; }
.site-footer--letters .site-footer__art { padding-top: 12px; background: linear-gradient(#1b2a47, #47618f); border-top: 4px solid var(--wwp-red); } /* lighter sky than the night footer: the letters must read as a silhouette */
.site-footer--letters .site-footer__art svg { width: 100%; height: auto; }
.site-footer__word { font: 800 300px/1 var(--wwp-font); } /* textLength squeezes it to the width: tall and narrow */
.site-footer__towers { fill: #0b0b0d; }
.site-footer__glass { fill: #1a1f2c; } /* unlit windows */
.site-footer--letters .site-footer__inner { position: static; border-top: 0; } /* the top button hangs in the sky, as in the night footer */
.site-footer--letters .site-footer__top { top: clamp(14px, 2.5vw, 26px); box-shadow: 0 0 0 6px rgba(224,0,0,.18), 0 0 34px rgba(255,80,80,.55); }

/* river: the footer's top edge is the Vistula, the mermaid keeps watch */
.site-footer--river { background: linear-gradient(transparent 40px, var(--wwp-bar) 40px); } /* the wave lies on the page itself: no band edges to show as hairlines */
.site-footer--river .site-footer__art { position: relative; height: 44px; overflow: hidden; }
.site-footer__wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.site-footer__wave-back { fill: #3d6f9e; }
.site-footer__wave-front { fill: var(--wwp-bar); }
.site-footer--river .site-footer__inner { border-top: 0; }
.site-footer--river .site-footer__top { top: -6px; }
.site-footer__mermaid { position: absolute; right: clamp(8px, 7vw, 96px); bottom: 6px; width: clamp(84px, 10vw, 118px); opacity: .1; pointer-events: none; } /* sized by width: images get height:auto !important (style.css); at most ~195 px tall, under the river */
@media screen and (min-width: 901px) {
    .site-footer--river .site-footer__inner { min-height: 200px; padding-right: clamp(150px, 17vw, 220px); } /* room for the mermaid, text clear of her */
}
@media (prefers-reduced-motion: no-preference) {
    :root:not([data-motion="off"]) .site-footer:not(.site-footer--still) .site-footer__wave { animation: wwp-river 18s linear infinite; }
}
@keyframes wwp-river { to { transform: translateX(-50%); } }

/* masthead: a newspaper's foot */
.site-footer--masthead .site-footer__inner { border-top: 4px solid var(--wwp-red); row-gap: 20px; }
.site-footer--masthead .site-footer__mark {
    grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid var(--wwp-red);
    color: #fff; font-size: 7.6cqi; /* about the full width of the columns below */
}
.site-footer--masthead .site-footer__col + .site-footer__col { padding-left: 20px; border-left: 1px solid #3a3a3a; }
@media screen and (max-width: 600px) {
    .site-footer--masthead .site-footer__col + .site-footer__col { padding: 12px 0 0; border-left: 0; border-top: 1px solid #3a3a3a; }
}

/* ---------- tablet ---------- */
@media screen and (max-width: 1000px) {
    #page .content { padding: 12px 24px 40px; }
    .home-page .article { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .site-footer__inner { padding: 32px 24px; }
    .site-footer__top { right: 24px; }
    .home-page .post.excerpt.wwp-lead--side { grid-template-columns: 1fr; gap: 14px; }
    .home-page .wwp-lead--side .featured-thumbnail-link { grid-row: auto; }
    .home-page .post.excerpt.wwp-lead--side .post-content { padding-top: 0; }
    .home-page .post.excerpt.is-lead .title { font-size: 1.75rem; }
    .home-page .wwp-lead--overlay header { padding: 80px 24px 20px; }
    .home-page .wwp-list--editorial > .wwp-card--card { grid-column: span 3; }
}

/* ---------- phone ---------- */
@media screen and (max-width: 600px) {
    #page .content { padding: 12px 16px 32px; }
    #page.single .content { padding-top: 20px; }
    .home-page .article { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 12px; padding: 32px 16px 24px; }
    .site-footer__top { right: 16px; }
    .home-page .post.excerpt.is-lead { padding-bottom: 28px; }
    .home-page .post.excerpt.is-lead .title { font-size: 1.5rem; }
    .home-page .article.wwp-list--grid2, .home-page .article.wwp-list--editorial { grid-template-columns: 1fr; }
    .home-page .wwp-list--editorial > article.post { grid-column: 1 / -1; } /* outranks the span 2 / span 3 above */
    .home-page .wwp-lead--overlay .featured-thumbnail { aspect-ratio: 4 / 3; }
    .home-page .wwp-lead--overlay header { padding: 64px 16px 16px; }
    .home-page .wwp-list--list .post.excerpt.wwp-card--card { grid-template-columns: 120px minmax(0, 1fr); gap: 6px 14px; padding: 16px 0; }
    .home-page .wwp-list--list .wwp-card--card .post-content { display: none; }
    .home-page .post.excerpt .title { font-size: 1.125rem; }
    .article-head .single-title, .page h1.title { font-size: 1.75rem; }
    .article-head__meta { margin-top: 14px; font-size: 0.8125rem; }
    .article-head__avatar { width: 34px; height: 34px; }
    .article-head__author { display: block; }
    .article-head__author + .article-head__fact::before { content: none; }
    .post-single-content, .single_page .post-content { font-size: 1.0625rem; line-height: 1.7; }
    .post-single-content > p:first-of-type strong:only-child { font-size: 1.125rem; }
    .post-single-content h2 { font-size: 1.375rem; }
    .post-single-content blockquote { font-size: 1.125rem; padding-left: 36px; }
    .post-single-content blockquote::before { font-size: 7.5rem; top: -20px; }
}

/* optAd in-article video slot (338px reserved in CSS from first paint = zero CLS) */
.optadvideo { margin: 0 0 1.5em; min-height: 338px; }
.optadvideo:empty { display: grid; place-items: center; background: var(--wwp-soft); }
.optadvideo:empty::before { content: "Reklama"; font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wwp-muted); }
.optadvideo:empty:lang(en)::before { content: "Advertisement"; } /* English posts (Europe&Worldwide) */

/* ---------- interaction polish ---------- */
.skip-link {
    position: absolute; left: 16px; top: 16px; z-index: 1000; padding: 10px 16px;
    background: var(--wwp-ink); color: var(--wwp-bg) !important; font-weight: 700; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
a, button, input[type="submit"], [role="button"] { touch-action: manipulation; }
#search-toggle, #pull, .wwp-cta__btn, .site-footer__top, .article-head__cat, #mobile-search button { -webkit-tap-highlight-color: transparent; }

/* press feedback: the interface confirms it heard the tap */
#search-toggle, .wwp-cta .wwp-cta__btn, .site-footer__top, #mobile-search button, .home-page .pagination a {
    transition: transform 160ms var(--wwp-ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
#search-toggle:active, .site-footer__top:active { transform: scale(0.94); }
.wwp-cta .wwp-cta__btn:active, #mobile-search button:active, .home-page .pagination a:active { transform: scale(0.97); }

/* card hover only for real pointers; image hover also lights up the title */
@media (hover: hover) and (pointer: fine) {
    .home-page .featured-thumbnail-link:hover img { transform: scale(1.03); }
    .home-page .post.excerpt:has(.featured-thumbnail-link:hover) .title a { color: var(--wwp-accent); }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .featured-thumbnail img { transition: none; transform: none !important; }
    #search-toggle:active, .site-footer__top:active, .wwp-cta .wwp-cta__btn:active, #mobile-search button:active, .home-page .pagination a:active { transform: none; }
}

/* pagination: ‹ Poprzednia · 1 … 4 5 [6] 7 8 … 40 · Następna ›, 44px targets, current page filled.
 * Phones get the ±1 list and the prev/next pair on its own row above the numbers. */
.home-page .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 6px; float: none; overflow: visible; text-align: center; }
.home-page .pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; list-style: none; } /* .article ul (style.css) gives lists square bullets */
.home-page .pagination ul li { float: none; margin: 0; }
.home-page .pagination a, .home-page .pagination .currenttext, .home-page .pagination .pagination__step, .home-page .pagination .pagination__dots {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; float: none; min-width: 44px; height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box;
    background: var(--wwp-bg); border: 1px solid var(--wwp-line); box-shadow: none; color: var(--wwp-ink) !important; font-weight: 700; line-height: 1;
    font-variant-numeric: tabular-nums; text-decoration: none;
}
.home-page .pagination .pagination__step { padding: 0 16px; }
.home-page .pagination .pagination__step span { font-size: 20px; line-height: 0; position: relative; top: -1px; }
/* no previous/next page: keep its place in the row, show nothing (a greyed label fails contrast checks) */
.home-page .pagination .pagination__step.is-disabled { visibility: hidden; }
.home-page .pagination .pagination__dots { min-width: 20px; padding: 0; border-color: transparent; background: none; color: var(--wwp-muted) !important; }
.home-page .pagination .currenttext { background: var(--wwp-ink); border-color: var(--wwp-ink); color: var(--wwp-bg) !important; }
@media (hover: hover) and (pointer: fine) {
    .home-page .pagination a:hover { background: var(--wwp-red); border-color: var(--wwp-red); color: #fff !important; }
}
.home-page .pagination__pages--narrow { display: none !important; }
@media screen and (max-width: 600px) {
    .home-page .pagination__pages--wide { display: none !important; }
    .home-page .pagination__pages--narrow { display: flex !important; order: 1; flex-basis: 100%; }
    .home-page .pagination .pagination__step { flex: 1 1 0; }
}

/* ---------- Ad Inserter blocks ----------
 * "Między postami" blocks become full-width grid rows (dense flow backfills the gap they leave).
 * Block 8/9 (Marszałek) ship <center><i> + fixed-size YouTube iframe: present them as a labelled sponsored panel. */
.home-page .article > .code-block { width: 100%; margin: 0 !important; padding: 20px 24px 24px; box-sizing: border-box; background: var(--wwp-soft); text-align: center; }
.code-block center, .wwp-promo__label { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wwp-muted); }
.code-block center i { font-style: normal; }
.code-block iframe[src*="youtube"] { display: block; width: 100%; max-width: var(--wwp-measure); height: auto !important; aspect-ratio: 16 / 9; margin: 0 auto; border: 0; }
@media screen and (max-width: 600px) {
    .home-page .article > .code-block { padding: 16px; }
    .code-block center, .wwp-promo__label { letter-spacing: .04em; }
}

/* list ad slots (wwp_list_ad()): full-width rows like the blocks above; an unfilled slot takes no space unless reserved */
.wwp-ad { text-align: center; min-width: 0; }
.wwp-ad:not(.wwp-ad-reserve):empty { display: none; }
.search-results > .wwp-ad:not(.wwp-ad-reserve) { padding: 20px 0; border-bottom: 1px solid var(--wwp-line); }
.search-results > .wwp-ad-reserve { margin: 16px 0; }
.search-results > .wwp-promo-item { list-style: none; padding: 20px 0; border-bottom: 1px solid var(--wwp-line); }
.search-results > .wwp-promo-item > .code-block { padding: 20px 24px 24px; background: var(--wwp-soft); text-align: center; }

/* reserved ad space (wwp_post_ad(), wwp_list_ad()): min-height is the ad's own height (content-box), so the box keeps
 * its size when the ad loads; the centred label sits under the ad (isolation + z-index -1) and the ad covers it */
.wwp-ad-reserve {
    position: relative; isolation: isolate; box-sizing: content-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 12px; background: var(--wwp-soft); box-shadow: inset 0 0 0 1px var(--wwp-line); overflow: hidden;
}
.wwp-ad-reserve::before {
    content: "Reklama"; position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--wwp-muted);
}
.wwp-ad-reserve:lang(en)::before { content: "Advertisement"; } /* English posts (Europe&Worldwide) */
.wwp-ad-reserve > * { max-width: 100%; }

/* ---------- widget columns (Ad Inserter / Taboola widgets live here) ----------
 * Templates render the sidebars only when they have widgets. A sidebar is shown only if it holds
 * something other than the old search widget (replaced by the menu search). With content it becomes
 * a 300px right rail on wide screens and stacks under the content on narrower ones. */
#page .content > aside { display: none; position: static; float: none; width: auto; top: auto; left: auto; right: auto; margin: 32px auto 0; max-width: 300px; }
#page .content > aside:has(.widget:not(.widget_search)) { display: block; }
#page .content > aside .sidebar_list .widget:first-child { margin-top: 0; }
@media screen and (min-width: 1100px) {
    #page .content:has(> aside .widget:not(.widget_search)) {
        display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 40px; align-items: start;
    }
    #page .content:has(> aside .widget:not(.widget_search)) > .article { grid-column: 1; grid-row: 1 / span 10; }
    #page .content:has(> aside .widget:not(.widget_search)) > aside { grid-column: 2; margin: 0 0 24px; max-width: none; }
    .home-page .content:has(> aside .widget:not(.widget_search)) > .article { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Related Posts Injector boxes (plugin CSS lives in its settings; these override it) ----------
 * Hairline above and below, red label sitting on the top rule; red chevrons, bold titles, date below. */
.post-single-content .related-posts-box { margin: 2.2em 0 1.8em; padding: 0 0 14px; border: 0; border-top: 1px solid var(--wwp-line); border-bottom: 1px solid var(--wwp-line); background: none; }
.post-single-content .related-posts-box h2, .post-single-content .related-posts-box h3 {
    /* label sits on the top rule */
    display: table; margin: -8px 0 8px; padding-right: 12px; background: var(--wwp-bg);
    font-size: 0.75rem; font-weight: 700; line-height: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wwp-accent);
}
.post-single-content .related-posts-list { list-style: none; margin: 0 !important; padding: 0; }
.post-single-content .related-posts-list li { position: relative; margin: 0; padding: 0 0 0 18px; }
.post-single-content .related-posts-list li + li { margin-top: 10px; }
.post-single-content .related-posts-list li::marker { content: none; }
.post-single-content .related-posts-list li::before {
    content: "›"; position: absolute; left: 2px; top: -2px; font-size: 1.375rem; line-height: 1; font-weight: 700; color: var(--wwp-accent);
}
.post-single-content .related-posts-list a {
    display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; color: var(--wwp-ink); text-decoration: none; transition: color 150ms ease;
}
.post-single-content .related-posts-list a:hover { color: var(--wwp-accent); }
.post-single-content .related-post-meta { margin-top: 2px; font-size: 0.75rem; line-height: 1.4; color: var(--wwp-muted); font-variant-numeric: tabular-nums; }
@media screen and (max-width: 600px) {
    .post-single-content .related-posts-list a { font-size: 0.9375rem; }
}

/* ---------- wide desktop menu: categories with their description, info pages as utility links ----------
 * Items whose menu description is empty (pages: O nas, Skład, Reklama) become small links pushed right,
 * so the descriptions under the categories don't leave empty cells. */
@media screen and (min-width: 1250px) {
    #navigation .menu { display: flex; align-items: stretch; width: 100%; float: none; }
    #navigation .menu > li { float: none; display: flex; }
    .secondary-navigation #navigation .menu > li > a {
        display: flex; flex-direction: column; justify-content: center; gap: 2px;
        padding: 10px 22px 11px; line-height: 1.2; min-height: 58px; box-sizing: border-box;
    }
    #navigation .menu > li > a .sub { display: block; font-size: 0.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #a9a9a9; }
    #navigation .menu > li > a .sub:empty { display: none; }
    #navigation .menu > li > a:hover .sub { color: #d6d6d6; }

    #navigation .menu > li:has(.sub:empty) > a { padding: 0 12px; font-size: 0.75rem; font-weight: 600; color: #c9c9c9; }
    #navigation .menu > li:has(.sub:empty) > a:hover,
    #navigation .menu > li.current-menu-item:has(.sub:empty) > a { color: #fff; }
    #navigation .menu > li:not(:has(.sub:empty)) + li:has(.sub:empty) { margin-left: auto; }

    #search-toggle { height: auto; bottom: 0; }
    #mobile-search { top: 100%; }
}

/* ---------- mobile menu drawer ---------- */
@keyframes wwp-drawer { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { #navigation > ul.is-open { animation: none; } }
@media screen and (max-width: 865px) {
    /* skyline was centred on the whole header, so it slid down when the menu opened */
    .main-header { background-position: right top; }

    /* the list sits before #pull in the HTML; show it under the bar instead of above it */
    #navigation { display: flex; flex-direction: column; }
    #navigation > #pull { order: 1; }
    #navigation > ul { order: 2; }
    #search-toggle { top: 0; bottom: auto; }

    #navigation ul.menu { background: #262626; border-top: 1px solid rgba(255,255,255,.08); padding: 4px 0 6px; }
    /* opened by #pull (js/customscript.js) */
    #navigation > ul.is-open { display: block; animation: wwp-drawer .22s var(--wwp-ease-out); }
    .secondary-navigation #navigation .menu > li > a {
        display: block; padding: 10px 16px !important; text-indent: 0; line-height: 1.3; min-height: 0;
        color: #fff !important; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
        border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }
    .secondary-navigation #navigation .menu > li:last-child > a { border-bottom: 0 !important; }
    .secondary-navigation #navigation .menu > li > a br { display: none; }
    .secondary-navigation #navigation .menu > li > a .sub {
        display: block; margin-top: 2px; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #a9a9a9;
    }
    .secondary-navigation #navigation .menu > li > a .sub:empty { display: none; }
    /* info pages (no description): quieter */
    .secondary-navigation #navigation .menu > li:has(.sub:empty) > a { padding: 9px 16px !important; font-size: 12px; font-weight: 600; color: #cfcfcf !important; }
    .secondary-navigation #navigation .menu > .current-menu-item > a,
    .secondary-navigation #navigation .menu > .current-menu-item:has(.sub:empty) > a { color: #ff5a5a !important; }
    .secondary-navigation #navigation .menu > li > a:active { background: rgba(255,255,255,.06); }

    /* hamburger becomes a close icon while the menu is open */
    nav #pull::after {
        top: 15px; width: 30px; height: 30px;
        background: no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
    }
    nav #pull[aria-expanded="true"]::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
    }
}

/* ---------- theme menu (menu bar, left of the search toggle) ----------
 * <html data-theme-pref> = what the reader picked (system/dark/light), data-theme = what is shown.
 * On "system" the icon carries a small badge with the mode that is actually on. */
.theme-switch { position: absolute; top: 0; z-index: 6; }
#theme-toggle {
    position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    padding: 0; margin: 0; background: none; border: 0; color: #fff; cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    transition: transform 160ms var(--wwp-ease-out), background-color 150ms ease;
}
#theme-toggle > svg { display: none; width: 22px; height: 22px; }
:root:not([data-theme-pref]) #theme-toggle .icon-system,
[data-theme-pref="system"] #theme-toggle .icon-system,
[data-theme-pref="dark"] #theme-toggle .icon-dark,
[data-theme-pref="light"] #theme-toggle .icon-light { display: block; }
.theme-badge {
    display: none; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: 1px 0 0 3px;
    place-items: center; border-radius: 50%; background: var(--wwp-bar); color: #fff; box-shadow: 0 0 0 2px var(--wwp-bar);
}
.theme-badge svg { display: none; width: 11px; height: 11px; }
[data-theme-pref="system"] .theme-badge { display: grid; }
[data-theme="dark"] .theme-badge .badge-dark, [data-theme="light"] .theme-badge .badge-light { display: block; }
#theme-toggle:hover, #theme-toggle[aria-expanded="true"] { background: rgba(255,255,255,.08); }
#theme-toggle:active { transform: scale(0.94); }
#theme-toggle:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

#navigation .theme-menu { display: block; /* legacy mobile "#navigation ul { display: none }" */
    position: absolute; top: 100%; right: 0; width: 200px; margin: 0; padding: 6px 0; list-style: none;
    background: var(--wwp-bg); border: 1px solid var(--wwp-line); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transform-origin: top right;
    transition: opacity 160ms var(--wwp-ease-out), transform 160ms var(--wwp-ease-out), visibility 0s linear 160ms;
}
#navigation .theme-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
#navigation .theme-menu li { float: none; width: auto; margin: 0; padding: 0; border: 0; background: none; } /* undo legacy #navigation li rules */
.theme-menu button {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 8px 16px; box-sizing: border-box;
    background: none; border: 0; border-left: 3px solid transparent; cursor: pointer; text-align: left;
    font: 600 0.875rem/1.25 var(--wwp-font); color: var(--wwp-ink); -webkit-tap-highlight-color: transparent;
}
.theme-menu button svg { flex: none; width: 20px; height: 20px; color: var(--wwp-muted); }
.theme-menu button:hover { background: var(--wwp-soft); }
.theme-menu button:focus-visible { background: var(--wwp-soft); outline: 2px solid var(--wwp-focus); outline-offset: -2px; }
.theme-menu button[aria-checked="true"] { border-left-color: var(--wwp-red); }
.theme-menu button[aria-checked="true"] svg { color: var(--wwp-accent); }
.theme-menu__now { display: none; font-size: 0.75rem; font-weight: 400; color: var(--wwp-muted); }
[data-theme="dark"] .theme-menu__now--dark, [data-theme="light"] .theme-menu__now--light { display: block; }
@media (prefers-reduced-motion: reduce) {
    #theme-toggle:active { transform: none; }
    #navigation .theme-menu { transform: none; }
}
@media screen and (min-width: 866px) {
    #navigation .menu { padding-right: 104px; }
    .theme-switch { right: 56px; width: 48px; height: 52px; }
}
@media screen and (min-width: 1250px) { .theme-switch { height: auto; bottom: 0; } }
@media screen and (max-width: 865px) {
    .theme-switch { right: calc(3% + 84px); width: 44px; height: 60px; }
    #theme-toggle > svg { width: 24px; height: 24px; }
    #navigation .theme-menu { right: -84px; } /* hang from the bar's right edge area so it stays on screen */
}

/* ---------- dark theme ---------- */
:root[data-theme="dark"] {
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    --wwp-ink: #ececec;
    --wwp-text: #d0d0d0;
    --wwp-muted: #9a9a9a;
    --wwp-line: #333;
    --wwp-field-border: #6e6e6e; /* >= 3:1 UI border contrast on #141414 */
    --wwp-soft: #222;
    --wwp-bar: #1c1c1c;
    --wwp-bg: #141414;
    --wwp-accent: #ff6161;
    --wwp-focus: #ff6161;
    --wwp-excerpt: #b3b3b3;
    --wwp-tint: #221616;
    --wwp-tint-line: #4d2626;
}
/* city photo behind the page, dimmed (desktop only) */
@media screen and (min-width: 866px) {
    [data-theme="dark"] body {
        background-image: linear-gradient(rgba(8,8,8,.84), rgba(8,8,8,.84)), url(../images/tlo4i.jpg);
        background-image: linear-gradient(rgba(8,8,8,.84), rgba(8,8,8,.84)), image-set(url(../images/tlo4i.webp) type("image/webp"), url(../images/tlo4i.jpg) type("image/jpeg"));
    }
}
/* header: logo and skyline are drawn for white; inverting them (hue kept) gives a light logo and a night skyline;
 * the white they sat on turns black and "lighten" lets the surface show through it */
[data-theme="dark"] .main-header { background: var(--wwp-bg); }
:root[data-theme="dark"]:not(.wwp-sky) .main-header::before {
    content: ""; position: absolute; top: 0; right: 0; z-index: -1; width: 559px; height: 155px; max-width: 100%;
    background: url(../images/tlo-top.jpg) no-repeat right center; filter: invert(1) hue-rotate(180deg); mix-blend-mode: lighten;
    background-image: image-set(url(../images/tlo-top.webp) type("image/webp"), url(../images/tlo-top.jpg) type("image/jpeg"));
}
[data-theme="dark"] #logo { filter: invert(1) hue-rotate(180deg); mix-blend-mode: lighten; } /* lighten drops the black halo */
[data-theme="dark"] .ad-top { background: transparent; }
[data-theme="dark"] .post-single-content img, [data-theme="dark"] .home-page .featured-thumbnail img { filter: brightness(.92); }
[data-theme="dark"] .post-single-content blockquote::before { opacity: .3; }
/* search panel */
[data-theme="dark"] #mobile-search { background: #1f1f1f; border-color: var(--wwp-line); }
[data-theme="dark"] #mobile-search input { background: var(--wwp-bg); border-color: var(--wwp-field-border); color: var(--wwp-ink); }
[data-theme="dark"] #mobile-search input:focus { outline-color: var(--wwp-ink); }
[data-theme="dark"] #mobile-search button { background: var(--wwp-ink); color: var(--wwp-bg); }
/* article CTA banners */
[data-theme="dark"] .wwp-cta { background: var(--wwp-soft); }
[data-theme="dark"] .wwp-cta__text { color: var(--wwp-ink); }
/* section heading rule: a full-strength light line is too loud on dark */
[data-theme="dark"] .frontTitle, [data-theme="dark"] .postsby { border-bottom-color: #3d3d3d; }
/* Taboola draws dark text on a transparent box and has no dark mode on our side: give it a light panel */
[data-theme="dark"] [id^="taboola-"]:not(:empty) { padding: 16px; background: #f4f4f4; color-scheme: light; border-radius: 4px; }

/* ---------- 404 ---------- */
.e404__head { margin: 8px 0 28px; }
.e404__code {
    margin: 0 0 8px; font-size: clamp(6rem, 16vw, 10rem); font-weight: 800; line-height: .9; letter-spacing: -0.05em;
    color: var(--wwp-red); font-variant-numeric: tabular-nums;
}
.e404__title { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.14; font-weight: 800; margin: 0 0 14px; padding: 0; border: 0; }
.e404__lead { max-width: 34em; margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--wwp-muted); text-wrap: pretty; }
.e404__search { display: flex; gap: 8px; margin: 0 0 16px; }
.e404__search input {
    flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 16px; box-sizing: border-box; border: 1px solid var(--wwp-field-border); border-radius: 0;
    background: var(--wwp-bg); font: 1.0625rem var(--wwp-font); color: var(--wwp-ink); -webkit-appearance: none;
}
.e404__search input:focus { outline: 2px solid var(--wwp-ink); outline-offset: -1px; border-color: transparent; }
.e404__search button {
    height: 52px; margin: 0; padding: 0 24px; border: 0; border-radius: 0; cursor: pointer;
    background: var(--wwp-ink); color: var(--wwp-bg); font: 700 0.9375rem var(--wwp-font);
    transition: transform 160ms var(--wwp-ease-out), background-color 150ms ease;
}
.e404__search button:active { transform: scale(0.97); }
.e404__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 48px; }
.e404__links a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--wwp-line);
    font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wwp-ink); text-decoration: none;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}
.e404__links a.e404__home { background: var(--wwp-red); border-color: var(--wwp-red); color: #fff; }
.e404__latest .frontTitle { margin-bottom: 8px; }
.e404__latest ul { list-style: none; margin: 0; padding: 0; }
.e404__latest li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--wwp-line); }
.e404__latest li a { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--wwp-ink); text-decoration: none; transition: color 150ms ease; }
.e404__latest time { display: block; margin-top: 4px; font-size: 0.8125rem; color: var(--wwp-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
    .e404__search button:hover { background: var(--wwp-red); color: #fff; }
    .e404__links a:hover { border-color: var(--wwp-ink); }
    .e404__links a.e404__home:hover { background: #b80000; border-color: #b80000; }
    .e404__latest li a:hover { color: var(--wwp-accent); }
}
@media (prefers-reduced-motion: reduce) { .e404__search button:active { transform: none; } }
@media screen and (max-width: 600px) {
    .e404__title { font-size: 1.75rem; }
    .e404__lead { font-size: 1rem; }
    .e404__links { margin-bottom: 36px; }
    .e404__latest li a { font-size: 1rem; }
}

/* ---------- search: form on top, a list of hits in the article column (searched words marked) ----------
 * #page keeps .home-page for the pagination styles; the card grid is switched off here. */
.search-page .article { display: block; margin: 0 auto; padding-bottom: 32px; }
.search-page .article.wwp-list--narrow { max-width: var(--wwp-measure); } /* Opcje WWP → Listy wpisów → Wyszukiwanie → Wąska lista */
.search-head { margin: 8px 0 4px; }
.search-head__title { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.14; font-weight: 800; margin: 0 0 20px; padding: 0; border: 0; }
.search-head .e404__search { margin-bottom: 12px; }
.search-head__count { margin: 0; font-size: 0.875rem; color: var(--wwp-muted); }
.search-page .search-results { list-style: none; margin: 8px 0 32px; padding: 0; }
.search-hit { margin: 0; border-bottom: 1px solid var(--wwp-line); }
.search-hit__link { display: flex; align-items: flex-start; gap: 24px; padding: 20px 0; color: inherit; text-decoration: none; }
.search-hit__text { flex: 1; min-width: 0; }
.search-hit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 6px; font-size: 0.8125rem; color: var(--wwp-muted); font-variant-numeric: tabular-nums; }
.search-hit__cat { font-size: 0.6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wwp-accent); }
.search-hit__title { display: block; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--wwp-ink); text-wrap: pretty; transition: color 150ms ease; }
.search-hit__excerpt { display: block; margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--wwp-excerpt); }
.search-hit__thumb { flex: 0 0 200px; }
.search-hit__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.search-page .wwp-ratio--16-9 .search-hit__thumb img { aspect-ratio: 16 / 9; }
.search-page .wwp-ratio--4-3 .search-hit__thumb img { aspect-ratio: 4 / 3; }
.search-page .wwp-ratio--1-1 .search-hit__thumb img { aspect-ratio: 1; }
.search-hit mark { margin: 0; padding: 0 1px; border-radius: 2px; background: rgba(224, 0, 0, .12); color: inherit; }
[data-theme="dark"] .search-hit mark { background: rgba(255, 97, 97, .28); }
.search-empty { margin: 28px 0 24px; }
.search-empty__title { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.3; font-weight: 800; color: var(--wwp-ink); text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
    .search-hit__link:hover .search-hit__title { color: var(--wwp-accent); }
}
@media screen and (max-width: 600px) {
    .search-head__title { font-size: 1.75rem; margin-bottom: 16px; }
    .search-hit__link { gap: 14px; padding: 16px 0; }
    .search-hit__title { font-size: 1.0625rem; }
    .search-hit__excerpt { display: none; } /* phones: title and date are enough to choose */
    .search-hit__thumb { flex-basis: 96px; }
    .search-hit__thumb img, .search-page .search-results .search-hit__thumb img { aspect-ratio: 1; } /* phones: square for every ratio */
    .search-empty__title { font-size: 1.25rem; }
}

/* ---------- info pages: O nas i kontakt / Skład redakcyjny / Reklama ---------- */
.info-head { margin: 8px 0 24px; }
.info-head__eyebrow { margin: 0 0 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wwp-accent); }
.info-head__title { font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.14; font-weight: 800; margin: 0 0 16px; padding: 0; border: 0; text-wrap: balance; }
.info-head__lead { margin: 0; font-size: 1.1875rem; line-height: 1.6; color: var(--wwp-text); text-wrap: pretty; }

.info-nav { margin: 0 0 36px; border-bottom: 1px solid var(--wwp-line); }
.info-page .info-nav ul { display: flex; gap: 4px 24px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.info-nav ul::-webkit-scrollbar { display: none; }
.info-nav li { margin: 0; flex: none; }
.info-nav a {
    display: block; padding: 12px 0; margin-bottom: -1px; border-bottom: 3px solid transparent;
    font-size: 0.875rem; font-weight: 700; color: var(--wwp-muted); text-decoration: none; white-space: nowrap; transition: color 150ms ease;
}
.info-nav a[aria-current="page"] { color: var(--wwp-ink); border-bottom-color: var(--wwp-red); }

.info-figure { margin: 0 0 32px; }
.info-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.info-figure figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--wwp-muted); }
.info-text { margin: 0 0 40px; font-size: 1.125rem; line-height: 1.75; color: var(--wwp-text); }
.info-text p { margin: 0 0 1.1em; }
.info-text a, .info-card__mail, .info-cta__mail { color: var(--wwp-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* contact cards */
.info-page .info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.info-card { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 20px; background: var(--wwp-soft); font-size: 0.9375rem; line-height: 1.55; color: var(--wwp-text); }
.info-card p, .info-card address { margin: 0; font-style: normal; }
.info-card__title { margin: 0; font-size: 0.8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wwp-ink); }
.info-card__mail { margin-top: auto; font-weight: 700; overflow-wrap: anywhere; }

/* reklama: key facts + call to action */
.info-page .info-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 32px; padding: 0; list-style: none; background: var(--wwp-line); border: 1px solid var(--wwp-line); }
.info-facts li { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 20px 18px; background: var(--wwp-bg); }
.info-facts strong { font-size: 1.625rem; line-height: 1.1; font-weight: 800; color: var(--wwp-ink); letter-spacing: -0.01em; }
.info-facts span { font-size: 0.875rem; line-height: 1.4; color: var(--wwp-muted); }
.info-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; margin: 0 0 32px; padding: 28px; background: var(--wwp-bar); color: #d6d6d6; border-top: 4px solid var(--wwp-red); }
.info-cta__title { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.25; font-weight: 800; color: #fff; }
.info-cta p { margin: 0; font-size: 1rem; line-height: 1.6; }
.info-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.info-cta__btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
    background: var(--wwp-red); color: #fff !important; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: transform 160ms var(--wwp-ease-out), background-color 150ms ease; -webkit-tap-highlight-color: transparent;
}
.info-cta__btn:active { transform: scale(0.97); }
.info-cta__mail { font-size: 0.875rem; color: #fff; }

/* skład redakcyjny */
.info-page .team { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.team__person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--wwp-line); }
.team__person:first-child { padding-top: 4px; }
.team__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--wwp-soft); }
.team__name { margin: 0 0 8px; font-size: 1.375rem; line-height: 1.25; font-weight: 800; }
.team__name a { color: var(--wwp-ink); text-decoration: none; transition: color 150ms ease; }
.team__bio { margin: 0 0 10px; font-size: 1rem; line-height: 1.65; color: var(--wwp-text); }
.team__bio b:first-child, .team__bio strong:first-child { display: block; margin-bottom: 4px; color: var(--wwp-ink); }
.team__more { font-size: 0.875rem; font-weight: 700; color: var(--wwp-accent); text-decoration: none; }
.team__job { margin: 0 0 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wwp-accent); }
.team__bio p { margin: 0 0 .6em; }
.team__bio p:last-child { margin-bottom: 0; }

@media (hover: hover) and (pointer: fine) {
    .info-nav a:hover, .team__name a:hover { color: var(--wwp-accent); }
    .team__more:hover { text-decoration: underline; }
    .info-cta__btn:hover { background: #b80000; }
}
@media (prefers-reduced-motion: reduce) { .info-cta__btn:active { transform: none; } }
@media screen and (max-width: 1000px) {
    .info-page .info-cards { grid-template-columns: 1fr; }
    .info-page .info-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 600px) {
    .info-head__title { font-size: 1.75rem; }
    .info-head__lead { font-size: 1.0625rem; }
    .info-nav { margin-bottom: 28px; margin-right: -16px; }
    .info-text { font-size: 1.0625rem; }
    .info-facts strong { font-size: 1.375rem; }
    .info-facts li { padding: 16px 14px; }
    .info-cta { grid-template-columns: 1fr; padding: 22px 18px; }
    .info-cta__actions { align-items: stretch; }
    /* photo + name on one row, bio full width below */
    .team__person { grid-template-columns: 56px minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 22px 0; }
    .team__body { display: contents; }
    .team__photo { width: 56px; height: 56px; }
    .team__name { margin: 0; font-size: 1.1875rem; }
    .team__person:has(.team__job) .team__photo { grid-row: span 2; }
    .team__job { align-self: end; margin: 0; }
    .team__bio, .team__more { grid-column: 1 / -1; }
    .team__bio { margin: 0; font-size: 0.9375rem; }
}

/* polityka redakcyjna: table of contents + numbered sections */
.info-toc { margin: 0 0 36px; padding: 20px 24px; background: var(--wwp-soft); }
.info-toc__title { margin: 0 0 10px; font-size: 0.8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wwp-ink); }
.info-page .info-toc ol { margin: 0; padding: 0 0 0 1.4em; list-style: decimal; columns: 2; column-gap: 32px; }
.info-toc li { margin: 0 0 6px; break-inside: avoid; font-size: 0.9375rem; line-height: 1.4; color: var(--wwp-muted); }
.info-toc a { color: var(--wwp-ink); text-decoration: none; font-weight: 600; }
.info-doc h2 { scroll-margin-top: 16px; margin: 1.6em 0 .5em; padding-top: 1.2em; border-top: 1px solid var(--wwp-line); font-size: 1.5rem; line-height: 1.3; }
.info-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.info-doc__updated { margin: 0; padding-top: 16px; border-top: 1px solid var(--wwp-line); font-size: 0.875rem; color: var(--wwp-muted); }
@media (hover: hover) and (pointer: fine) { .info-toc a:hover { color: var(--wwp-accent); } }
@media screen and (max-width: 600px) {
    .info-page .info-toc ol { columns: 1; }
    .info-toc { padding: 16px 18px; }
    .info-doc h2 { font-size: 1.25rem; }
}

/* ---------- article galleries (classic [gallery]; block galleries keep core layout) ----------
 * Columns come from gallery-columns-N (phones: max 2, lead photo full width). Tiles: square at 3+ columns, 4:3 at 2, natural at 1.
 * Captions go to the viewer (js/gallery.js) except in one-column galleries. */
.article .gallery { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; margin: 2em 0; }
.article .gallery-columns-1 { --cols: 1; } .article .gallery-columns-2 { --cols: 2; } .article .gallery-columns-3 { --cols: 3; }
.article .gallery-columns-4 { --cols: 4; } .article .gallery-columns-5 { --cols: 5; } .article .gallery-columns-6 { --cols: 6; }
.article .gallery-columns-7 { --cols: 7; } .article .gallery-columns-8 { --cols: 8; } .article .gallery-columns-9 { --cols: 9; }
.article .gallery .gallery-item { position: relative; float: none; width: auto; max-width: none; margin: 0; padding: 0; overflow: hidden; background: var(--wwp-soft); }
.article .gallery .gallery-icon, .article .gallery .gallery-icon a { display: block; height: 100%; }
.article .gallery .gallery-item img {
    display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; border: 0 !important;
    transition: transform 300ms var(--wwp-ease-out), opacity 150ms ease;
}
.article .gallery-columns-2 .gallery-item img { aspect-ratio: 4 / 3; }
.article .gallery-columns-1 .gallery-item img { aspect-ratio: auto; height: auto; }
.article .gallery .gallery-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.article .gallery-columns-1 .gallery-caption { position: static; width: auto; height: auto; clip: auto; white-space: normal; padding: 8px 0 4px; background: var(--wwp-bg); font-size: 0.875rem; color: var(--wwp-muted); text-align: left; }
.article .gallery-columns-1 .gallery-item { background: none; }
.article .gallery .gallery-icon a { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.article .gallery .gallery-icon a:focus-visible { outline: 3px solid var(--wwp-focus); outline-offset: -3px; }
.article .gallery br { display: none; } /* old non-HTML5 markup */
/* large galleries: rest hidden, "+N" on the last visible tile */
.article .gallery .is-extra { display: none; }
.article .gallery [data-more]::after {
    content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
    background: rgba(0,0,0,.55); color: #fff; font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: -0.01em;
}
.article .wp-block-gallery { --wp--style--gallery-gap-default: 6px; gap: 6px; margin: 2em 0; }
.article .wp-block-gallery img { cursor: zoom-in; }
@media (hover: hover) and (pointer: fine) {
    .article .gallery .gallery-icon a:hover img { transform: scale(1.03); }
}
@media screen and (max-width: 1000px) {
    .article .gallery-columns-6, .article .gallery-columns-7, .article .gallery-columns-8, .article .gallery-columns-9 { --cols: 4; }
}
@media screen and (max-width: 600px) {
    /* phones: at most two columns; 3+ photos start with a full-width lead photo */
    .article .gallery { gap: 4px; margin: 1.5em 0; }
    .article .gallery:not(.gallery-columns-1):not(.gallery-columns-2) { --cols: 2; }
    .article .gallery:not(.gallery-columns-1):has(.gallery-item:nth-child(3)) .gallery-item:first-child { grid-column: 1 / -1; }
    .article .gallery:not(.gallery-columns-1):has(.gallery-item:nth-child(3)) .gallery-item:first-child img { aspect-ratio: 3 / 2; }
    .article .gallery-columns-2 .gallery-item img { aspect-ratio: 1; }
}

/* ---------- photo viewer ---------- */
html.has-lightbox { overflow: hidden; }
.lightbox {
    width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    display: none; grid-template-rows: auto minmax(0, 1fr) auto; background: #0b0b0b; color: #fff; overscroll-behavior: contain;
}
.lightbox[open] { display: grid; animation: lightbox-in 200ms var(--wwp-ease-out); }
.lightbox::backdrop { background: transparent; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; padding-top: max(8px, env(safe-area-inset-top)); }
.lightbox__count { font-size: 0.875rem; font-weight: 700; letter-spacing: .04em; color: #cfcfcf; font-variant-numeric: tabular-nums; }
.lightbox button { display: grid; place-items: center; padding: 0; margin: 0; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); -webkit-tap-highlight-color: transparent; transition: background-color 150ms ease, transform 160ms var(--wwp-ease-out); }
.lightbox button:active { transform: scale(0.94); }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox button[hidden] { display: none; }
.lightbox svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { width: 48px; height: 48px; border-radius: 50%; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; touch-action: pan-y pinch-zoom; }
.lightbox__img { position: absolute; inset: 0; margin: auto; display: block; max-width: calc(100% - 144px); max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 200ms ease; }
.lightbox__img.is-loading { opacity: .35; }
.lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__caption { margin: 0; padding: 12px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom)); min-height: 1.5em; max-width: 72ch; justify-self: center; font-size: 0.9375rem; line-height: 1.5; color: #d6d6d6; text-align: center; }
@media (hover: hover) and (pointer: fine) { .lightbox button:hover { background: rgba(255,255,255,.22); } }
@media (prefers-reduced-motion: reduce) {
    .lightbox[open] { animation: none; }
    .lightbox button:active { transform: none; }
    .article .gallery .gallery-icon a:hover img { transform: none; }
}
@media screen and (max-width: 600px) {
    .lightbox__stage { padding: 0; }
    .lightbox__img { max-width: 100%; }
    .lightbox__nav { top: auto; bottom: 8px; margin-top: 0; width: 44px; height: 44px; background: rgba(0,0,0,.45); }
    .lightbox__caption { font-size: 0.875rem; }
}

/* ---------- author archive: profile above the cards (author-hero.php) ---------- */
.author-hero { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 8px 32px; align-items: start; padding: 8px 0 36px; margin-bottom: 4px; border-bottom: 1px solid var(--wwp-line); }
.author-hero__avatar { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; background: var(--wwp-soft); box-shadow: 0 0 0 4px var(--wwp-bg), 0 0 0 5px var(--wwp-line); }
.author-hero .info-head__eyebrow { margin-bottom: 6px; }
.author-hero__name { margin: 0 0 14px; padding: 0; border: 0; font-size: clamp(1.75rem, 3.6vw, 2.625rem); line-height: 1.14; font-weight: 800; letter-spacing: -0.01em; }
.author-hero__bio { max-width: 68ch; font-size: 1.0625rem; line-height: 1.65; color: var(--wwp-text); }
.author-hero__bio p { margin: 0 0 .8em; }
.author-hero__bio b:first-child, .author-hero__bio strong:first-child { color: var(--wwp-ink); }
.home-page .author-hero__topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; padding: 0; list-style: none; }
.author-hero__topics li { margin: 0; padding: 5px 10px; background: var(--wwp-soft); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--wwp-ink); }
.author-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; font-size: 0.875rem; color: var(--wwp-muted); }
.author-hero__meta strong { color: var(--wwp-ink); font-variant-numeric: tabular-nums; }
.author-hero__meta a { font-weight: 700; color: var(--wwp-accent); text-decoration: none; }
.author-hero__meta a::after { content: " ›"; }
.author-hero__facts { grid-column: 2; display: grid; max-width: 760px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.author-hero__facts > div { padding: 16px 18px; background: var(--wwp-soft); }
.author-hero__facts-title { margin: 0 0 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wwp-ink); }
.home-page .author-hero__facts ul { margin: 0; padding: 0; list-style: none; }
.author-hero__facts li { margin: 0 0 6px; font-size: 0.875rem; line-height: 1.45; color: var(--wwp-text); }
.author-hero__facts li:last-child { margin-bottom: 0; }
/* later pages: just who this is */
.author-hero--compact { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; align-items: center; padding-bottom: 24px; }
.author-hero--compact .author-hero__avatar { width: 64px; height: 64px; }
.author-hero--compact .author-hero__name { font-size: 1.75rem; margin-bottom: 6px; }
@media (hover: hover) and (pointer: fine) { .author-hero__meta a:hover { text-decoration: underline; } }
@media screen and (max-width: 600px) {
    .author-hero { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding-bottom: 28px; }
    .author-hero__avatar { width: 88px; height: 88px; }
    .author-hero__name { font-size: 1.75rem; margin-bottom: 0; }
    /* avatar + name on one row, the rest full width */
    .author-hero__body { display: contents; }
    .author-hero .info-head__eyebrow, .author-hero__name { grid-column: 2; }
    .author-hero .info-head__eyebrow { align-self: end; margin: 0; }
    .author-hero__avatar { grid-row: 1 / span 2; }
    .author-hero__name { align-self: start; }
    .author-hero__bio, .author-hero__topics, .author-hero__meta, .author-hero__facts { grid-column: 1 / -1; }
    .author-hero__bio { font-size: 1rem; }
    .author-hero__facts { margin-top: 0; }
    .author-hero--compact .author-hero__avatar { width: 56px; height: 56px; }
    .author-hero--compact { grid-template-columns: 56px minmax(0, 1fr); }
    .author-hero--compact .author-hero__name { font-size: 1.375rem; }
}

/* ---------- author box under the article (functions/wwp-author.php): the author page header, smaller ---------- */
.post-single-content .author-box { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 24px; margin: 2.4em 0 1.6em; padding: 24px 0; border-top: 1px solid var(--wwp-line); }
.author-box__photo { display: block; line-height: 0; }
.post-single-content .author-box .author-hero__avatar { width: 96px; height: 96px; margin: 0; }
.post-single-content .author-box .info-head__eyebrow { margin: 0 0 4px; }
.post-single-content .author-box .author-hero__name { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.2; }
.post-single-content .author-box .author-hero__name a { color: var(--wwp-ink); text-decoration: none; }
.post-single-content .author-box .author-hero__bio { margin-bottom: 8px; font-size: 1rem; line-height: 1.6; }
.post-single-content .author-box .author-hero__bio p { margin: 0 0 .6em; }
.post-single-content .author-box .author-hero__meta { font-size: 0.875rem; }
.post-single-content .author-box .author-hero__meta a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post-single-content .author-box .author-hero__name a:hover { color: var(--wwp-accent); } }
@media screen and (max-width: 600px) {
    .post-single-content .author-box { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; }
    .post-single-content .author-box .author-hero__avatar { width: 64px; height: 64px; }
    .post-single-content .author-box .author-hero__name { font-size: 1.25rem; margin: 0; }
    .author-box__photo { grid-row: 1 / span 2; }
    .post-single-content .author-box .author-hero__bio { margin-top: 12px; }
}
/* single photos in the text open the viewer too (js/gallery.js) */
.post-single-content img.is-zoomable { cursor: zoom-in; }
.post-single-content img.is-zoomable:focus-visible { outline: 3px solid var(--wwp-focus); outline-offset: 2px; }

/* ---------- high-contrast mode (Windows "contrast themes") ----------
 * the logo is a background image, which the dark-theme filter and forced colours make disappear: show the name as text */
@media (forced-colors: active) {
    #logo { background-image: none !important; filter: none !important; mix-blend-mode: normal !important; display: flex; align-items: center; text-indent: 0; font-size: clamp(22px, 6vw, 34px); font-weight: 800; color: LinkText; text-decoration: none; }
    .main-header::before { display: none; }
}

/* ---------- diorama / panorama header (js/wwp-city.js) and solid logo ----------
 * --wwp-top is the area beside/behind the logo; modes: city (3D right), panorama2d (2.5D full), citywide (3D full) */
.main-header { --wwp-top: 138px; --wwp-sky-end: 138px; }
.main-header[data-city-mode="panorama2d"],
.main-header[data-city-mode="citywide"] { --wwp-top: 148px; --wwp-sky-end: 148px; }
#logo { position: relative; z-index: 2; }
#logo.logo-3d { /* solid logo (Theme Options → Styling → Logo) */
    filter: drop-shadow(1px 1px 0 #b4b4b4) drop-shadow(1px 1px 0 #a9a9a9) drop-shadow(1px 1px 0 #9e9e9e) drop-shadow(1px 1px 0 #939393)
            drop-shadow(1px 1px 0 #888) drop-shadow(5px 11px 10px rgba(20, 40, 60, .26)); }
[data-theme="dark"] #logo.logo-3d { /* inverted logo; the depth must stay lighter than the page so "lighten" keeps it */
    filter: invert(1) hue-rotate(180deg)
            drop-shadow(1px 1px 0 #5c5c5c) drop-shadow(1px 1px 0 #535353) drop-shadow(1px 1px 0 #4a4a4a) drop-shadow(1px 1px 0 #424242)
            drop-shadow(1px 1px 0 #3a3a3a); }
.wwp-city { pointer-events: none; }
.wwp-city canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .35s ease-out; }
.wwp-city-on .wwp-city canvas { opacity: 1; }
/* crisp editorial square controls (minimal 2px radius matching the portal nav & breaking-news bar; WCAG 2.2 >=24px target & >=3:1 border) */
.wwp-city__bar { pointer-events: auto; display: flex; align-items: stretch; justify-content: flex-end; gap: 6px; position: relative; z-index: 3; }
.wwp-weather { display: inline-flex; align-items: center; gap: 7px; box-sizing: border-box; min-height: 28px; padding: 0 10px; border-radius: 2px; font-size: 0.75rem; line-height: 1; color: var(--wwp-muted);
    background: color-mix(in srgb, var(--wwp-bg) 94%, transparent); border: 1px solid color-mix(in srgb, var(--wwp-ink) 68%, transparent);
    box-shadow: 0 1px 3px rgba(15, 25, 40, .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } /* >= 4.5:1 text & >= 3:1 UI border contrast */
.wwp-weather__label { color: var(--wwp-ink); font-weight: 600; letter-spacing: -0.01em; }
.wwp-weather__src { color: inherit !important; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 50%, transparent); transition: color .15s ease, border-color .15s ease; }
.wwp-weather__src:hover { color: var(--wwp-ink) !important; border-bottom-color: currentColor; }
/* Opcje WWP → podpis pogody wyłączony: the element stays (the header animation reads its data), only hidden */
[data-weather-caption="off"] .wwp-weather { display: none; }
/* play/pause: square editorial icon button, hidden under prefers-reduced-motion */
.wwp-city__play { display: none; min-width: 28px; height: 28px; font-size: 0.875rem; padding: 0; border-radius: 2px; cursor: pointer; place-items: center;
    color: var(--wwp-ink); background: color-mix(in srgb, var(--wwp-bg) 94%, transparent); border: 1px solid color-mix(in srgb, var(--wwp-ink) 68%, transparent);
    box-shadow: 0 1px 3px rgba(15, 25, 40, .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .15s ease; }
.wwp-city__play:hover { background: var(--wwp-bg); }
.wwp-city__play svg { width: 1em; height: 1em; }
.wwp-city-on .wwp-city__play { display: grid; }
.wwp-city__play:focus-visible { outline: 3px solid var(--wwp-focus); outline-offset: 2px; }
.wwp-city__resume, [data-motion="static"] .wwp-city__pause { display: none; }
[data-motion="static"] .wwp-city__resume { display: block; }
@media (prefers-reduced-motion: reduce) {
    .wwp-city-on .wwp-city__play { display: none; }
    .wwp-city canvas { transition: none; }
}
/* desktop & tablets with full menu */
@media screen and (min-width: 866px) {
    .wwp-city { position: absolute; top: 0; left: 0; right: 0; height: var(--wwp-top); z-index: 1; overflow: hidden; }
    .wwp-city__bar { position: absolute; right: 14px; bottom: 8px; }
    /* full-width panorama modes (2.5D & 3D wide): compact centered logo framed cleanly in the open central sky */
    .wwp-sky .main-header[data-city-mode="panorama2d"] #logo,
    .wwp-sky .main-header[data-city-mode="citywide"] #logo {
        float: none; display: block; width: 332px; height: 81px; margin: 24px auto 43px; background-size: contain !important;
    }
    .wwp-sky .main-header[data-city-mode="panorama2d"]::after,
    .wwp-sky .main-header[data-city-mode="citywide"]::after {
        content: ""; position: absolute; top: 8px; left: 50%; width: 420px; height: 108px; transform: translateX(-50%); z-index: 1; pointer-events: none;
        background: radial-gradient(ellipse at center, rgba(255, 255, 255, .48) 0%, rgba(255, 255, 255, 0) 72%);
    }
    .wwp-sky .main-header[data-city-mode="panorama2d"][data-city-time="golden"]::after,
    .wwp-sky .main-header[data-city-mode="citywide"][data-city-time="golden"]::after {
        background: radial-gradient(ellipse at center, rgba(255, 224, 185, .46) 0%, rgba(255, 224, 185, 0) 72%);
    }
    .wwp-sky[data-theme="dark"] .main-header[data-city-mode="panorama2d"]::after,
    .wwp-sky[data-theme="dark"] .main-header[data-city-mode="citywide"]::after {
        background: radial-gradient(ellipse at center, rgba(8, 16, 32, .56) 0%, rgba(8, 16, 32, 0) 74%);
    }
}
/* phones and tablets with the mobile menu: 3D modes hide canvas (never download three.js); 2.5D panorama stays active behind the logo */
@media screen and (max-width: 865px) {
    .main-header { --wwp-sky-end: calc(18px + min(441px, 100vw - 32px) * 108 / 441 + 28px); }
    #logo { margin: 14px auto 6px; }
    .wwp-city__bar { justify-content: center; padding: 0 16px 8px; }
    .main-header:not([data-city-mode="panorama2d"]) .wwp-city canvas,
    .wwp-city-on .main-header:not([data-city-mode="panorama2d"]) .wwp-city__play { display: none; }
    .main-header[data-weather-caption="off"]:not([data-city-mode="panorama2d"]) .wwp-city__bar { display: none; } /* only the caption lived here */
    .wwp-sky .main-header[data-city-mode="panorama2d"] { position: relative; }
    .wwp-sky .main-header[data-city-mode="panorama2d"] .wwp-city { position: relative; }
    .wwp-sky .main-header[data-city-mode="panorama2d"] .wwp-city canvas { position: absolute; top: calc(-1 * (14px + min(441px, 100vw - 32px) * 108 / 441 + 6px)); left: 0; right: 0; bottom: 0; height: auto; }
    .wwp-weather { font-size: 0.75rem; min-height: 32px; padding: 0 10px; }
    .wwp-city__play { min-width: 32px; height: 32px; }
}
/* the sky replaces the panorama from the first paint (class set in header.php), coloured by weather & time of day */
.wwp-sky .main-header { background: linear-gradient(180deg, #cde1f2 0%, #e6f0f8 58%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky[data-theme="dark"] .main-header { background: linear-gradient(180deg, #091426 0%, #112039 62%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky .main-header[data-city-state^="sun"] { background: linear-gradient(180deg, #c2ddf5 0%, #e1eef9 56%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky[data-theme="dark"] .main-header[data-city-state^="sun"] { background: linear-gradient(180deg, #081326 0%, #11213d 62%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky .main-header[data-city-state^="clouds"] { background: linear-gradient(180deg, #d3dce5 0%, #e7ecf1 60%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky[data-theme="dark"] .main-header[data-city-state^="clouds"] { background: linear-gradient(180deg, #101928 0%, #192436 62%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky .main-header[data-city-state^="fog"] { background: linear-gradient(180deg, #dce2e8 0%, #eceff2 62%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky[data-theme="dark"] .main-header[data-city-state^="fog"] { background: linear-gradient(180deg, #172030 0%, #212c3e 62%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky .main-header[data-city-state^="rain"] { background: linear-gradient(180deg, #b8c5d3 0%, #d4dce4 60%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky[data-theme="dark"] .main-header[data-city-state^="rain"] { background: linear-gradient(180deg, #0a121f 0%, #141f31 62%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky .main-header[data-city-state^="snowfall"] { background: linear-gradient(180deg, #d9e3ee 0%, #edf2f7 60%, var(--wwp-bg) var(--wwp-sky-end)); }
.wwp-sky[data-theme="dark"] .main-header[data-city-state^="snowfall"] { background: linear-gradient(180deg, #121c2e 0%, #1c283d 62%, var(--wwp-bg) var(--wwp-sky-end)); }
/* golden hour sky tint (sunrise / sunset in light mode) */
.wwp-sky .main-header[data-city-time="golden"] { background: linear-gradient(180deg, #5d7ba3 0%, #d4967c 54%, #f4cfa4 var(--wwp-sky-end)); }
.wwp-sky .main-header[data-city-time="golden"][data-city-state^="rain"],
.wwp-sky .main-header[data-city-time="golden"][data-city-state^="clouds"] { background: linear-gradient(180deg, #8691a3 0%, #caa08e 56%, #e7c6a6 var(--wwp-sky-end)); }
.wwp-sky[data-theme="dark"] .main-header::before { display: none; }
@media print, (forced-colors: active) {
    .wwp-city canvas, .wwp-city__play { display: none !important; }
    .wwp-sky .main-header { background: var(--wwp-bg); }
    .wwp-weather { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--wwp-bg); }
}

/* ---------- breaking-news ticker (functions/wwp-ticker.php, js/customscript.js) ----------
 * two copies of the list scroll by half the track, so the loop has no seam; paused under the pointer, on a focused link and by the button */
.ticker { display: flex; align-items: stretch; background: var(--wwp-soft); border-bottom: 1px solid var(--wwp-line); font-size: 0.9375rem; line-height: 1.3; }
.ticker__label { flex: none; display: flex; align-items: center; padding: 0 14px; background: var(--wwp-red); color: #fff; font-size: 0.8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; container-type: inline-size; }
.ticker__track { display: flex; width: max-content; animation: wwp-ticker var(--ticker-duration, 40s) linear infinite; }
/* separate rules: a list with :has() is dropped whole where :has is unsupported. Not on hover of the button, so "resume" takes effect at once */
.ticker__viewport:hover .ticker__track { animation-play-state: paused; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
/* a focused link must be in view: the list stands at its start and the browser scrolls to the link (customscript.js resets that on focusout) */
.ticker:has(.ticker__item:focus) .ticker__track { animation: none; }
@keyframes wwp-ticker { to { transform: translateX(-50%); } }
.ticker__list { flex: none; display: flex; min-width: 100cqi; margin: 0; padding: 0; list-style: none; } /* at least the bar's width: one short entry leaves no blank half */
.ticker__list li { display: flex; align-items: center; margin: 0; padding: 10px 6px 10px 16px; white-space: nowrap; }
.ticker__list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-right: 10px; background: var(--wwp-red); }
.ticker__item { color: var(--wwp-ink); text-decoration: none; }
a.ticker__item:hover { text-decoration: underline; }
a.ticker__item:focus-visible { outline: 2px solid var(--wwp-focus); outline-offset: 2px; }
.ticker__item time { margin-right: 6px; color: var(--wwp-accent); font-weight: 700; }
.ticker__toggle { flex: none; display: grid; place-items: center; width: 40px; padding: 0; border: 0; border-left: 1px solid var(--wwp-line); background: transparent; color: var(--wwp-ink); cursor: pointer; }
.ticker__toggle:focus-visible { outline: 3px solid var(--wwp-focus); outline-offset: -3px; }
.ticker__play, .ticker.is-paused .ticker__pause { display: none; }
.ticker.is-paused .ticker__play { display: block; }
@media screen and (max-width: 865px) {
    .ticker { font-size: 0.875rem; }
    .ticker__label { padding: 0 10px; font-size: 0.75rem; }
}
/* less motion: it stands still and scrolls by hand */
@media (prefers-reduced-motion: reduce) {
    .ticker__track { animation: none; }
    .ticker__viewport { overflow-x: auto; }
    .ticker__list[aria-hidden], .ticker__toggle { display: none; }
}
@media (forced-colors: active) {
    .ticker { border: 1px solid CanvasText; }
    .ticker__label { border-right: 1px solid CanvasText; }
    .ticker__list li::before { background: CanvasText; }
}
@media print { .ticker { display: none; } }

/* publisher under the article (Opcje WWP → Stopka → Wydawca pod wpisem; wwp_post_publisher()) */
.post-single-content .wwp-publisher { margin: 2em 0 0; font-size: 0.8125rem; line-height: 1.6; font-style: italic; text-align: center; color: var(--wwp-muted); }
