/*
Theme Name: Simple Base v5
Author: Structzilla
Description: Autorski, minimalistyczny motyw dla portalu wielotematycznego z redakcyjną stroną główną i prostymi ustawieniami w panelu Dostosuj.
Version: 5.0.7
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: przeswit
Tags: blog, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --pw-accent: #4a8f7b;
  --pw-bg: #ffffff;
  --pw-surface: #ffffff;
  --pw-text: #242321;
  --pw-muted: #77736d;
  --pw-line: #dedad3;
  --pw-width: 1240px;
  --pw-reading-width: 720px;
  --pw-radius: 18px;
  --pw-heading: Georgia, "Times New Roman", serif;
  --pw-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pw-bg);
  color: var(--pw-text);
  font-family: var(--pw-body);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--pw-accent); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: var(--pw-surface); }
.pw-wrap { width: min(calc(100% - 40px), var(--pw-width)); margin-inline: auto; }

/* Header */
.pw-header { position: relative; z-index: 30; border-bottom: 1px solid var(--pw-line); background: color-mix(in srgb, var(--pw-bg) 94%, transparent); }
.pw-sticky .pw-header { position: sticky; top: 0; backdrop-filter: blur(14px); }
.admin-bar.pw-sticky .pw-header { top: 32px; }
.pw-header__inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pw-brand { text-align: left; line-height: 1.1; }
.pw-brand a { text-decoration: none; }
.pw-brand__name { display: block; font-family: var(--pw-heading); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.04em; }
.pw-brand__tagline { display: block; margin-top: 7px; color: var(--pw-muted); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.custom-logo { width: auto; max-height: 54px; }
.custom-logo-link { display: inline-block; }
.pw-nav-row { border-top: 1px solid var(--pw-line); }
.pw-nav { min-height: 48px; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.pw-nav::-webkit-scrollbar { display: none; }
.pw-nav ul { display: flex; flex-wrap: nowrap; gap: 28px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.pw-nav a { text-decoration: none; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pw-actions { display: flex; gap: 8px; }
.pw-social { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.pw-social a { color: var(--pw-muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.pw-social a:hover { color: var(--pw-accent); }
.pw-social--header { margin-right: 10px; }
.pw-icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--pw-line); border-radius: 50%; background: var(--pw-surface); color: var(--pw-text); cursor: pointer; }
.pw-icon-button:hover { border-color: var(--pw-accent); color: var(--pw-accent); }
.pw-menu-toggle { display: none; }
.pw-search-panel { display: grid; grid-template-rows: 0fr; overflow: hidden; border-bottom: 1px solid transparent; transition: grid-template-rows .25s ease, border-color .25s ease; background: #fff; }
.pw-search-panel.is-open { grid-template-rows: 1fr; border-color: var(--pw-line); }
.pw-search-panel__inner { min-height: 0; display: flex; align-items: center; gap: 16px; }
.pw-search-panel form { flex: 1; padding: 18px 0; }
.pw-search-panel input[type="search"] { border: 0; border-bottom: 1px solid var(--pw-line); border-radius: 0; font-family: var(--pw-heading); font-size: 1.3rem; }

/* Intro and archive */
.pw-intro { padding: clamp(68px, 9vw, 128px) 0 clamp(52px, 7vw, 92px); }
.pw-intro__eyebrow, .pw-meta { color: var(--pw-muted); font-size: .69rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.pw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 13px; }
.pw-meta__item { display: inline-flex; align-items: center; gap: 3px; }
.pw-meta__item > a { display: inline-flex; align-items: center; gap: 4px; }
.pw-meta__item + .pw-meta__item { position: relative; }
.pw-meta__item + .pw-meta__item::before { content: ""; width: 3px; height: 3px; margin-right: 5px; border-radius: 50%; background: currentColor; opacity: .55; }
.pw-meta a { text-decoration: none; }
.pw-intro h1 { max-width: 900px; margin: 12px 0 0; font-family: var(--pw-heading); font-size: clamp(3rem, 8vw, 7.2rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; }
.pw-intro__description { max-width: 650px; margin: 28px 0 0; color: var(--pw-muted); font-size: 1.05rem; }
.pw-grid { display: grid; grid-template-columns: repeat(var(--pw-columns, 3), minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 38px); padding-bottom: 80px; }
.pw-card { min-width: 0; }
.pw-card--lead { grid-column: span 2; }
.pw-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--pw-image-ratio, 4 / 3); border-radius: var(--pw-radius); background: var(--pw-line); }
.pw-card--lead .pw-card__media { aspect-ratio: 16 / 10; }
.pw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pw-card:hover .pw-card__media img { transform: scale(1.025); }
.pw-card__body { padding: 20px 3px 0; }
.pw-card__title { display: -webkit-box; overflow: hidden; margin: 9px 0 10px; font-family: var(--pw-heading); font-size: clamp(1.3rem, 1.8vw, 1.65rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.pw-card--lead .pw-card__title { max-width: 780px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.pw-card__title a { text-decoration: none; }
.pw-card__excerpt { display: -webkit-box; max-width: 62ch; overflow: hidden; margin: 0; color: var(--pw-muted); font-size: .94rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.pw-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--pw-muted); background: linear-gradient(135deg, var(--pw-surface), var(--pw-line)); font-family: var(--pw-heading); font-size: 2.2rem; }
.pw-pagination { padding: 12px 0 90px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--pw-line); border-radius: 999px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { border-color: var(--pw-accent); background: var(--pw-accent); color: #fff; }

/* Portal homepage */
.pw-portal { padding: 46px 0 90px; }
.pw-portal-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pw-portal-heading h1, .pw-portal-heading h2 { margin: 0; font-family: var(--pw-heading); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.pw-portal-heading p { max-width: 520px; margin: 0; color: var(--pw-muted); font-size: .9rem; }
.pw-featured { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 78px; }
.pw-featured__side { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pw-feature { position: relative; min-width: 0; overflow: hidden; border-radius: var(--pw-radius); background: var(--pw-surface); }
.pw-feature--lead { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); align-items: stretch; border: 1px solid var(--pw-line); }
.pw-feature__link, .pw-feature__link img { width: 100%; height: 100%; }
.pw-feature__link { position: absolute; inset: 0; display: block; }
.pw-feature__link img { object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.pw-feature:hover .pw-feature__link img { transform: scale(1.025); }
.pw-feature__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(15 15 14 / .82), rgb(15 15 14 / 0) 68%); }
.pw-feature__content { position: absolute; z-index: 2; inset: auto 24px 22px; color: #fff; pointer-events: none; }
.pw-feature--lead .pw-feature__link { position: relative; min-height: 440px; }
.pw-feature--lead .pw-feature__link::after { display: none; }
.pw-feature--lead .pw-feature__content { position: static; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 58px); color: var(--pw-text); pointer-events: auto; }
.pw-feature--lead .pw-feature__content .pw-meta { color: var(--pw-muted); }
.pw-feature__content .pw-meta { color: rgb(255 255 255 / .75); }
.pw-feature__content a { pointer-events: auto; }
.pw-feature__title { display: -webkit-box; overflow: hidden; margin: 8px 0 0; font-family: var(--pw-heading); font-size: clamp(1.12rem, 1.45vw, 1.4rem); font-weight: 500; line-height: 1.18; letter-spacing: -.015em; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.pw-feature--lead .pw-feature__title { max-width: 780px; font-size: clamp(2rem, 3.2vw, 3.15rem); line-height: 1.08; -webkit-line-clamp: 6; }
.pw-feature__title a { text-decoration: none; color: #fff; }
.pw-feature--lead .pw-feature__title a { color: var(--pw-text); }
.pw-featured__side .pw-feature { display: flex; flex-direction: column; overflow: visible; }
.pw-featured__side .pw-feature__link { position: relative; flex: none; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--pw-radius) * .8); }
.pw-featured__side .pw-feature__link::after { display: none; }
.pw-featured__side .pw-feature__content { position: static; padding: 15px 2px 0; color: var(--pw-text); pointer-events: auto; }
.pw-featured__side .pw-feature__content .pw-meta { color: var(--pw-muted); }
.pw-featured__side .pw-feature__title a { color: var(--pw-text); }
.pw-latest { padding-top: 6px; }
.pw-latest .pw-grid { padding-bottom: 20px; }
.pw-category-sections { margin-top: 70px; border-top: 1px solid var(--pw-line); }
.pw-category-section { padding: 55px 0; border-bottom: 1px solid var(--pw-line); }
.pw-category-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 28px; }
.pw-category-section__head h2 { margin: 0; font-family: var(--pw-heading); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; }
.pw-category-section__head a { color: var(--pw-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.pw-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pw-compact-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--pw-radius) * .7); background: var(--pw-line); }
.pw-compact-card__media img { width: 100%; height: 100%; object-fit: cover; }
.pw-compact-card .pw-meta { margin-top: 14px; }
.pw-compact-card h3 { margin: 7px 0 0; font-family: var(--pw-heading); font-size: 1.3rem; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.pw-compact-card h3 a { text-decoration: none; }

/* Single */
.pw-progress { position: fixed; z-index: 50; top: 0; left: 0; width: 0; height: 3px; background: var(--pw-accent); }
.admin-bar .pw-progress { top: 32px; }
.pw-article { padding: clamp(64px, 8vw, 120px) 0 100px; }
.pw-article__header { width: min(calc(100% - 40px), 1040px); margin-inline: auto; }
.pw-content, .pw-author, .pw-comments { width: min(calc(100% - 40px), var(--pw-reading-width)); margin-inline: auto; }
.pw-article__title { overflow-wrap: anywhere; margin: 18px 0 24px; font-family: var(--pw-heading); font-size: clamp(2.45rem, 3.5vw, 3.75rem); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; }
.pw-article__dek { margin: 0 0 24px; color: var(--pw-muted); font-size: 1.18rem; }
.pw-article__hero { width: min(calc(100% - 40px), 1100px); margin: 46px auto 58px; overflow: hidden; border-radius: calc(var(--pw-radius) * 1.1); }
.pw-article__hero img { width: 100%; max-height: 680px; object-fit: cover; }
.pw-content { font-family: var(--pw-heading); font-size: clamp(1.08rem, 1.5vw, 1.22rem); }
.pw-content > * { margin-block: 0 1.45em; }
.pw-content h2, .pw-content h3, .pw-content h4 { margin-top: 2.2em; line-height: 1.15; letter-spacing: -.025em; }
.pw-content a { color: var(--pw-accent); }
.pw-content blockquote { margin: 2.2em 0; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--pw-accent); font-size: 1.35em; line-height: 1.45; }
.pw-content .alignwide { width: min(100vw - 40px, 980px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.pw-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.pw-content pre { overflow: auto; padding: 20px; background: var(--pw-surface); border: 1px solid var(--pw-line); border-radius: 10px; font-size: .85rem; }
.pw-content table { width: 100%; border-collapse: collapse; }
.pw-content th, .pw-content td { padding: 10px; border: 1px solid var(--pw-line); }
.pw-tags { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--pw-line); font-family: var(--pw-body); font-size: .78rem; }
.pw-author { display: grid; grid-template-columns: auto 1fr; gap: 22px; margin-top: 60px; padding: 28px; border: 1px solid var(--pw-line); border-radius: var(--pw-radius); background: var(--pw-surface); }
.pw-author img { border-radius: 50%; }
.pw-author h2 { margin: 0 0 5px; font-family: var(--pw-heading); }
.pw-author p { margin: 0; color: var(--pw-muted); }
.pw-article-tools { width: min(calc(100% - 40px), var(--pw-reading-width)); margin: 50px auto 0; padding-top: 24px; border-top: 1px solid var(--pw-line); font-size: .8rem; }
.pw-source, .pw-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.pw-source + .pw-share { margin-top: 22px; }
.pw-source > span, .pw-share > span { min-width: 88px; color: var(--pw-muted); font-size: .67rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.pw-source a, .pw-share a { font-weight: 650; text-decoration: none; }
.pw-copy-link { min-height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--pw-text); font-weight: 650; }
.pw-copy-link:hover { color: var(--pw-accent); }
.pw-related { margin-top: 100px; padding: 70px 0; border-block: 1px solid var(--pw-line); }
.pw-section-title { margin: 0 0 32px; font-family: var(--pw-heading); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; }

/* Pages, forms, comments */
.pw-page { padding: 50px 0; }
.pw-page__header { width: min(calc(100% - 40px), 880px); margin: 0 auto 50px; }
.pw-page__header .pw-article__title { margin: 0; font-size: 26px; line-height: 1.5; letter-spacing: -.025em; }
.pw-page__header .pw-title-rule { margin: 22px 0 24px; }
.pw-comments { margin-top: 75px; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin: 28px 0; padding-bottom: 28px; border-bottom: 1px solid var(--pw-line); }
.comment-meta { font-size: .82rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--pw-line); border-radius: 8px; background: var(--pw-surface); color: var(--pw-text); }
button, input[type="submit"], .pw-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--pw-accent); color: #fff; text-decoration: none; cursor: pointer; }

/* Footer and mobile panel */
.pw-footer { padding: 50px 0; border-top: 1px solid var(--pw-line); }
.pw-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--pw-muted); font-size: .82rem; }
.pw-footer__menu { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pw-footer a { text-decoration: none; }
.pw-panel { position: fixed; z-index: 110; inset: 0 0 0 auto; width: min(420px, 92vw); padding: 30px; overflow-x: hidden; overflow-y: auto; transform: translateX(105%); transition: transform .35s ease; background: var(--pw-surface); border-left: 1px solid var(--pw-line); }
.pw-panel.is-open { transform: translateX(0); }
.pw-panel__head { display: flex; justify-content: space-between; align-items: center; }
.pw-panel__menu { margin: 50px 0 0; padding: 0; list-style: none; }
.pw-panel__menu li { border-bottom: 1px solid var(--pw-line); }
.pw-panel__menu a { display: block; padding: 16px 0; text-decoration: none; font-family: var(--pw-heading); font-size: 1.5rem; }
.pw-panel-widgets { margin-top: 45px; padding-top: 35px; border-top: 1px solid var(--pw-line); }
.pw-panel-widget + .pw-panel-widget { margin-top: 38px; }
.pw-panel-widget__title, .pw-panel-widget .wp-block-heading { margin: 0 0 20px; color: #34343b; font-family: var(--pw-heading); font-size: 16px; font-weight: 700; line-height: 1.35; }
.pw-panel-widget__title::after, .pw-panel-widget .wp-block-heading::after { content: "."; color: var(--pw-accent); }
.pw-panel-widget { color: #777; font-size: 13px; line-height: 1.65; }
.pw-panel-widget p { margin: 0 0 14px; }
.pw-panel-widget ul, .pw-panel-widget ol { margin: 0; padding: 0; list-style: none; }
.pw-panel-widget li { padding: 9px 0; border-bottom: 1px solid var(--pw-line); }
.pw-panel-widget a { color: #333; text-decoration: none; }
.pw-panel-widget a:hover, .pw-panel-widget a:focus { color: var(--pw-accent); }
.pw-panel-widget img { max-width: 100%; height: auto; border-radius: var(--pw-radius); }
.pw-overlay { position: fixed; z-index: 105; inset: 0; visibility: hidden; opacity: 0; transition: opacity .25s; background: rgb(0 0 0 / .35); }
.pw-overlay.is-open { visibility: visible; opacity: 1; }
body.pw-panel-open { overflow: hidden; }

@media (max-width: 920px) {
  .pw-nav-row { display: none; }
  .pw-menu-toggle { display: inline-grid; }
  .pw-social--header { display: none; }
  .pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-card--lead { grid-column: 1 / -1; }
  .pw-feature--lead { grid-template-columns: 1fr; }
  .pw-feature--lead .pw-feature__link { min-height: 0; aspect-ratio: 16 / 10; }
  .pw-featured__side { grid-template-columns: repeat(2, 1fr); }
  .pw-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .admin-bar.pw-sticky .pw-header { top: 46px; }
  .admin-bar .pw-progress { top: 46px; }
  .pw-wrap { width: min(calc(100% - 28px), var(--pw-width)); }
  .pw-header__inner { min-height: 76px; }
  .pw-brand__name { font-size: 1.8rem; }
  .pw-brand__tagline { display: none; }
  .pw-grid { grid-template-columns: 1fr; gap: 40px; }
  .pw-card--lead { grid-column: auto; }
  .pw-card--lead .pw-card__media { aspect-ratio: var(--pw-image-ratio, 4 / 3); }
  .pw-portal { padding-top: 30px; }
  .pw-portal-heading { display: block; }
  .pw-portal-heading p { margin-top: 12px; }
  .pw-featured { margin-bottom: 58px; }
  .pw-feature--lead { min-height: 0; }
  .pw-featured__side { grid-template-columns: 1fr; }
  .pw-feature { min-height: 0; }
  .pw-category-grid { grid-template-columns: 1fr; }
  .pw-intro h1 { font-size: clamp(2.9rem, 17vw, 4.6rem); }
  .pw-article__header, .pw-content, .pw-author, .pw-comments, .pw-page__header, .pw-article-tools { width: min(calc(100% - 28px), var(--pw-reading-width)); }
  .pw-article__hero { width: calc(100% - 28px); margin-block: 36px 44px; }
  .pw-author { grid-template-columns: 1fr; }
  .pw-footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Alia-inspired editorial baseline — original implementation. */
:root { --pw-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif; --pw-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif; --pw-accent: #ff3d57; --pw-text: #222; --pw-muted: #969696; --pw-line: #ededed; --pw-radius: 5px; }
body { font-size: 17px; line-height: 1.7; }
.pw-svg { width: 18px; height: 18px; display: block; }
.pw-wrap { width: min(calc(100% - 40px), 880px); }
.pw-sticky .pw-header, .admin-bar.pw-sticky .pw-header { position: relative; top: auto; }
.pw-header { border-bottom: 1px solid var(--pw-line); background: #fff; }
.pw-masthead { min-height: 275px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.pw-masthead__avatar img { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; }
.pw-social--masthead { gap: 22px; }
.pw-social--masthead a { color: #111; }
.pw-social--masthead .pw-svg { width: 16px; height: 16px; }
.pw-header__inner { min-height: 55px; display: grid; grid-template-columns: auto 1fr auto; gap: 34px; border-top: 1px solid var(--pw-line); }
.pw-brand__name { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: -.025em; }
.pw-brand__name::after { content: "."; color: var(--pw-accent); }
.pw-brand__tagline { display: none; }
.custom-logo { display: block; width: auto; max-width: min(240px, 42vw); max-height: 40px; object-fit: contain; }
.custom-logo-link { display: inline-flex; align-items: center; }
.pw-nav { min-width: 0; justify-content: flex-end; }
.pw-nav ul { justify-content: flex-end; gap: 27px; }
.pw-nav a { position: relative; font-family: Arial, Helvetica, sans-serif; color: #222; font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: .015em; }
.pw-nav .current-menu-item > a::after { content: ""; position: absolute; left: 50%; bottom: -19px; width: 4px; height: 4px; border-radius: 50%; background: var(--pw-accent); }
.pw-actions { gap: 3px; }
.pw-icon-button { width: 29px; height: 38px; border: 0; border-radius: 0; padding: 0; }
.pw-icon-button .pw-svg { width: 18px; height: 18px; }
.pw-menu-toggle { display: inline-grid; }
.pw-search-panel input[type="search"] { font-family: var(--pw-heading); }
.pw-portal { padding: 50px 0; }
.pw-grid-home .pw-grid { grid-template-columns: repeat(var(--pw-columns, 2), minmax(0, 1fr)); grid-auto-rows: 8px; column-gap: 50px; row-gap: 0; align-items: start; padding-bottom: 0; }
.pw-grid-home .pw-card { align-self: start; }
.pw-card--lead { grid-column: auto; }
.pw-card__media, .pw-card--lead .pw-card__media { aspect-ratio: var(--pw-image-ratio, 16 / 10); border-radius: var(--pw-radius); }
.pw-card__body { padding: 21px 0 0; }
.pw-card__title, .pw-card--lead .pw-card__title { display: block; overflow: visible; max-width: none; margin: 0; font-family: var(--pw-heading); font-size: 18px; font-weight: 700; line-height: 1.38; letter-spacing: -.02em; }
.pw-title-rule { display: block; width: 118px; height: 1px; margin: 17px 0 14px; background: var(--pw-line); }
.pw-title-rule::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: #111; transform: translateY(-2.5px); }
.pw-meta { gap: 5px 12px; color: var(--pw-muted); font-family: var(--pw-body); font-size: 10.5px; font-weight: 400; letter-spacing: .04em; }
.pw-meta__author { color: #333; font-weight: 700; }
.pw-meta__item + .pw-meta__item::before { width: 14px; height: 1px; margin-right: 7px; border-radius: 0; background: #d8d8d8; }
.pw-meta .pw-svg { width: 13px; height: 13px; margin-right: 4px; }
.pw-card__excerpt { display: block; overflow: visible; max-width: none; margin: 10px 0 0; color: #777; font-family: var(--pw-body); font-size: 14px; line-height: 1.55; }
.pw-card__excerpt p { margin: 0; }
.pw-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 13px; }
.pw-read-more { font-size: 13px; font-weight: 700; text-decoration: none; }
.pw-read-more span { color: #d7d7d7; margin-left: 5px; }
.pw-card__signals, .pw-card__signals > span, .pw-card__signals > a { display: flex; align-items: center; gap: 4px; }
.pw-card__signals { gap: 12px; color: #aaa; font-size: 11px; }
.pw-card__signals a { text-decoration: none; }
.pw-card__signals .pw-svg { width: 15px; height: 15px; }
.pw-pagination { border-top: 1px dotted #ddd; padding-top: 45px; }
.pw-grid-home .pw-pagination { padding: 45px 0 0; }
.page-numbers { min-width: 32px; height: 32px; padding: 0 9px; border: 0; border-radius: 4px; font-size: 13px; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--pw-accent); color: #fff; }
.pw-home-widgets { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--pw-line); }
.pw-grid-home > .pw-grid + .pw-home-widgets { margin-top: 0; }
.pw-grid-home > .pw-pagination + .pw-home-widgets { margin-top: 50px; }
.pw-home-widgets__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px; }
.pw-home-widgets__column { min-width: 0; }
.pw-home-widget + .pw-home-widget { margin-top: 38px; }
.pw-home-widget__title, .pw-home-widget .wp-block-heading { margin: 0 0 20px; font-family: var(--pw-heading); font-size: 16px; font-weight: 700; line-height: 1.35; }
.pw-home-widget__title::after, .pw-home-widget .wp-block-heading::after { content: "."; color: var(--pw-accent); }
.pw-home-widget { color: #777; font-size: 13px; line-height: 1.65; }
.pw-home-widget p { margin: 0 0 14px; }
.pw-home-widget ul { margin: 0; padding: 0; list-style: none; }
.pw-home-widget li { padding: 9px 0; border-bottom: 1px solid var(--pw-line); }
.pw-home-widget a { color: #333; text-decoration: none; }
.pw-home-widget a:hover { color: var(--pw-accent); }
.pw-home-widget img { border-radius: var(--pw-radius); }
.pw-article { padding: 50px 0 0; }
.pw-article__header, .pw-content { width: min(calc(100% - 40px), 880px); }
.pw-author, .pw-comments, .pw-article-tools { width: min(calc(100% - 40px), var(--pw-reading-width)); }
.pw-article__title { margin: 0; font-family: var(--pw-heading); font-size: 26px; font-weight: 700; line-height: 1.5; letter-spacing: -.025em; overflow-wrap: normal; }
.pw-article__header .pw-title-rule { margin: 22px 0 24px; }
.pw-article__byline { display: flex; align-items: center; gap: 14px; }
.pw-article__byline > img { width: 42px; height: 42px; border-radius: 50%; }
.pw-article__byline .pw-meta { flex: 1; }
.pw-article__dek { margin: 25px 0 0; color: #777; font-family: var(--pw-body); font-size: 16px; line-height: 1.8; }
.pw-article__hero { width: min(calc(100% - 40px), 880px); margin: 50px auto 40px; border-radius: 5px; }
.pw-article__hero img { width: 100%; max-height: none; object-fit: cover; }
.pw-content { color: #4e4d58; font-family: var(--pw-body); font-size: 16px; font-style: normal; font-weight: 400; line-height: 1.7; letter-spacing: .2px; overflow-wrap: break-word; }
.pw-content > * { margin-block: 0 20px; }
.pw-content p, .pw-content ul, .pw-content ol, .pw-content dl, .pw-content table { margin-top: 20px; margin-bottom: 20px; }
.pw-content > p:first-child { font-size: 16px; }
.pw-content h1, .pw-content h2, .pw-content h3, .pw-content h4, .pw-content h5, .pw-content h6 { margin: 35px 0 20px; color: #34343b; font-family: var(--pw-heading); font-style: normal; font-weight: 700; letter-spacing: .1px; }
.pw-content h1 { font-size: 32px; line-height: 1.3; }
.pw-content h2 { font-size: 29px; line-height: 1.3; }
.pw-content h3 { font-size: 26px; line-height: 1.35; }
.pw-content h4 { font-size: 23px; line-height: 1.35; }
.pw-content h5 { font-size: 20px; line-height: 1.4; }
.pw-content h6 { font-size: 16px; line-height: 1.5; text-transform: uppercase; }
.pw-content ul, .pw-content ol { padding-left: 40px; }
.pw-content ul { list-style: disc; }
.pw-content li + li { margin-top: 6px; }
.pw-content ul ul, .pw-content ul ol, .pw-content ol ul, .pw-content ol ol { margin: 4px 0; padding-left: 29px; }
.pw-content dt { margin-bottom: 10px; color: #34343b; font-weight: 700; }
.pw-content dd { margin: 0 0 20px; padding-left: 20px; }
.pw-content a:not(.wp-block-button__link) { color: inherit; text-decoration: none; box-shadow: inset 0 -1px 0 currentColor; transition: color .2s ease, box-shadow .2s ease; }
.pw-content a:not(.wp-block-button__link):hover, .pw-content a:not(.wp-block-button__link):focus { color: var(--pw-accent); box-shadow: inset 0 -1px 0 var(--pw-accent); }
.pw-content blockquote { position: relative; margin: 35px 0; padding: 0 0 0 36px; border: 0; border-left: 4px solid var(--pw-line); color: #34343b; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-style: normal; font-weight: 400; line-height: 1.6; }
.pw-content blockquote::before { display: none; }
.pw-content blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.pw-content blockquote cite, .pw-content blockquote footer { display: block; margin-top: 20px; color: #4e4d58; font-size: 17px; font-style: normal; line-height: 1.6; }
.pw-content .wp-block-quote.is-large, .pw-content .wp-block-quote.is-style-large, .pw-content .wp-block-quote.is-style-plain, .pw-content .wp-block-pullquote blockquote { padding: 0 0 0 40px; border: 0; font-size: 24px; font-style: italic; line-height: 1.45; }
.pw-content .wp-block-quote.is-large::before, .pw-content .wp-block-quote.is-style-large::before, .pw-content .wp-block-quote.is-style-plain::before, .pw-content .wp-block-pullquote blockquote::before { display: block; position: absolute; top: -5px; left: -1px; content: "“"; color: #4e4d58; font-family: Georgia, "Times New Roman", serif; font-size: 120px; font-style: normal; line-height: .79; opacity: .12; pointer-events: none; }
.pw-content hr { margin: 40px 0; border: 0; border-top: 1px solid var(--pw-line); }
.pw-content code, .pw-content kbd, .pw-content tt { padding: 4px 6px; border-radius: 6px; background: rgb(78 77 88 / .07); color: inherit; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15px; }
.pw-content pre { margin: 20px 0; padding: 40px; border: 0; border-radius: 6px; background: #f8f8fa; color: #4e4d58; font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 15px; line-height: 1.7; white-space: pre; }
.pw-content pre code { padding: 0; background: transparent; }
.pw-content table { width: 100%; border-collapse: collapse; }
.pw-content th, .pw-content td { padding: 10px 15px; border: 1px solid var(--pw-line); text-align: left; }
.pw-content th { color: #34343b; font-weight: 700; }
.pw-content img { border-radius: 6px; box-shadow: 0 15px 15px -15px rgb(15 14 21 / .2); }
.pw-content figcaption, .pw-content .wp-caption-text { margin: 0; padding: 15px 5px 0; color: #777; font-size: 13px; font-style: normal; font-weight: 400; line-height: 1.55; text-align: center; }
.pw-tags { margin-top: 52px; border: 0; font-size: 12px; font-weight: 700; }
.pw-article-tools { margin-top: 50px; padding: 0 0 35px; border-top: 0; border-bottom: 1px solid var(--pw-line); }
.pw-source, .pw-share { gap: 13px; }
.pw-source > span, .pw-share > span { min-width: 62px; color: #333; font-size: 14px; font-weight: 400; }
.pw-source a { font-size: 12px; }
.pw-share a, .pw-copy-link { display: inline-grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 0; background: transparent; color: #4e4d58; text-decoration: none; transition: color .18s ease, transform .18s ease; }
.pw-share a .pw-svg, .pw-copy-link .pw-svg { width: 14px; height: 14px; }
.pw-share a:hover, .pw-share a:focus-visible, .pw-copy-link:hover, .pw-copy-link:focus-visible, .pw-copy-link.is-copied { color: var(--pw-accent); transform: translateY(-2px); }
.pw-author { margin-top: 45px; padding: 0 0 45px; border: 0; border-bottom: 1px solid var(--pw-line); border-radius: 0; }
.pw-author img { border-radius: 4px; }
.pw-author h2 { font-family: var(--pw-heading); font-size: 18px; font-weight: 700; }
.pw-author p { font-size: 14px; line-height: 1.55; }
.pw-comments { margin-top: 50px; padding-bottom: 50px; }
.pw-comments .form-submit { margin-bottom: 0; }
.pw-section-title, .comments-title, .comment-reply-title { font-family: var(--pw-heading); font-size: 18px; font-weight: 700; }
.pw-comments, .pw-comments input, .pw-comments textarea, .pw-comments button { font-family: var(--pw-body); font-size: 16px; line-height: 1.7; }
.pw-comments .comment-reply-title { font-family: var(--pw-body); font-size: 16px; line-height: 1.7; }
.pw-comments .logged-in-as, .pw-comments .comment-notes, .pw-comments .comment-form-comment label { font-size: 16px; line-height: 1.7; }
.pw-comments textarea { color: #4e4d58; }
.pw-comments input[type="submit"] { font-family: var(--pw-body); font-size: 16px; }
.comment-body { padding: 16px 20px; border: 0; border-radius: 18px; background: #f5f5f5; font-size: 14px; }
.pw-author-archive__header { padding-top: 50px; }
.pw-author-archive__header .pw-article__title { margin: 0; font-size: 26px; line-height: 1.5; letter-spacing: -.025em; }
.pw-author-archive__header .pw-title-rule { margin: 22px 0 24px; }
.pw-author-archive__description { max-width: 880px; color: #4e4d58; font-family: var(--pw-body); font-size: 16px; line-height: 1.7; letter-spacing: .2px; }
.pw-author-archive__description > :last-child { margin-bottom: 0; }
.pw-related { margin-top: 50px; padding: 50px 0; }
.pw-related .pw-wrap { width: min(calc(100% - 40px), 880px); }
.pw-related .pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
.pw-footer { min-height: 100px; padding: 0; }
.pw-footer__inner { min-height: 100px; font-size: 14px; }
.pw-footer__copyright { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.pw-theme-credit { color: #777; white-space: nowrap; }
.pw-cookie-notice { position: fixed; z-index: 95; right: 32px; bottom: 32px; width: min(342px, calc(100vw - 32px)); border: 1px solid #eee; background: #fff; color: #333; box-shadow: 0 10px 38px rgb(0 0 0 / .13); text-align: center; }
.pw-cookie-notice[hidden] { display: none; }
.pw-cookie-notice__main { padding: 28px 27px 20px; }
.pw-cookie-notice h2 { margin: 0 0 13px; font-family: var(--pw-heading); font-size: 17px; font-weight: 700; line-height: 1.3; }
.pw-cookie-notice p { margin: 0; color: #666; font-size: 13px; line-height: 1.65; }
.pw-cookie-notice__policy { padding: 12px 20px 5px; border-top: 1px solid #f0f0f0; background: #fafafa; font-size: 11.5px; line-height: 1.5; }
.pw-cookie-notice__policy span { margin-right: 4px; }
.pw-cookie-notice__policy a { font-weight: 700; text-decoration: none; }
.pw-cookie-notice__button { width: calc(100% - 40px); min-height: 34px; margin: 8px 20px 16px; padding: 0 16px; border-radius: 3px; background: var(--pw-accent); font-size: 12px; font-weight: 700; }
.pw-cookie-notice__button:hover { background: #e8324d; color: #fff; }
@media (max-width: 920px) {
  .pw-header__inner { grid-template-columns: 1fr auto; }
  .pw-nav { display: none; }
  .pw-grid-home .pw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
  .pw-home-widgets__grid { gap: 30px; }
}
@media (max-width: 600px) {
  .pw-masthead { min-height: 210px; }
  .pw-masthead__avatar img { width: 88px; height: 88px; }
  .pw-header__inner { min-height: 62px; }
  .pw-portal { padding: 50px 0; }
  .pw-grid-home .pw-grid, .pw-related .pw-grid { grid-template-columns: 1fr; display: grid; grid-auto-rows: auto; gap: 50px; }
  .pw-grid-home .pw-card { grid-row-end: auto !important; }
  .pw-home-widgets { margin-top: 50px; padding-top: 50px; }
  .pw-home-widgets__grid { grid-template-columns: 1fr; gap: 38px; }
  .pw-cookie-notice { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
  .pw-article { padding-top: 50px; }
  .pw-article__header, .pw-content, .pw-author, .pw-comments, .pw-page__header, .pw-article-tools { width: min(calc(100% - 28px), 640px); }
  .pw-article__title { font-size: 26px; line-height: 1.35; }
  .pw-article__hero { width: calc(100% - 28px); margin-top: 45px; }
  .pw-content { font-size: 16px; line-height: 1.85; }
  .pw-content blockquote::before { position: static; display: block; height: 32px; }
}

/* simple base. visual identity — modular editorial index. */
:root { --pw-ink: #191919; --pw-paper-soft: #f6f6f3; --pw-notch: 30px; }
.pw-header { border-bottom-color: #deded9; }
.pw-header__inner { position: relative; min-height: 72px; border-top: 0; }
.pw-brand { position: relative; padding-left: 18px; }
.pw-brand::before { content: ""; position: absolute; top: -8px; bottom: -8px; left: 0; width: 4px; background: var(--pw-accent); }
.pw-brand__name { font-size: 20px; font-weight: 800; letter-spacing: .015em; text-transform: none; }
.custom-logo { max-height: 46px; }
.pw-nav a { letter-spacing: .07em; text-transform: uppercase; }
.pw-nav .current-menu-item > a::after { left: 0; bottom: -11px; width: 100%; height: 2px; border-radius: 0; transform: none; }
.pw-actions { position: relative; padding-left: 13px; }
.pw-actions::before { content: ""; position: absolute; top: 11px; bottom: 11px; left: 0; width: 1px; background: var(--pw-line); }
.pw-icon-button:hover, .pw-icon-button:focus-visible { color: var(--pw-accent); transform: rotate(-4deg); }

.pw-grid-home .pw-grid, body.archive .pw-grid { counter-reset: pw-story; column-gap: 64px; }
.pw-grid-home .pw-card, body.archive .pw-card { position: relative; counter-increment: pw-story; padding-top: 28px; border-top: 1px solid var(--pw-ink); }
.pw-grid-home .pw-card::before, body.archive .pw-card::before { content: counter(pw-story, decimal-leading-zero); position: absolute; top: 7px; right: 0; color: var(--pw-muted); font-family: var(--pw-body); font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .12em; }
.pw-grid-home .pw-card::after, body.archive .pw-card::after { content: ""; position: absolute; top: -1px; left: 0; width: 42px; height: 3px; background: var(--pw-accent); }
.pw-card__media, .pw-card--lead .pw-card__media { border-radius: 0; clip-path: polygon(0 0, calc(100% - var(--pw-notch)) 0, 100% var(--pw-notch), 100% 100%, 0 100%); }
.pw-card__media::after { content: ""; position: absolute; top: 0; right: 0; width: var(--pw-notch); height: var(--pw-notch); background: linear-gradient(225deg, #fff 49%, rgb(255 255 255 / 0) 51%); pointer-events: none; }
.pw-card:hover .pw-card__media img { transform: scale(1.035) rotate(.15deg); }
.pw-card__body { padding-top: 18px; }
.pw-card__title, .pw-card--lead .pw-card__title { font-size: 19px; line-height: 1.34; letter-spacing: -.018em; }
.pw-title-rule { width: 100%; height: 1px; background: linear-gradient(90deg, #d8d8d3 0 74%, transparent 74%); }
.pw-title-rule::before { width: 42px; height: 3px; border-radius: 0; background: var(--pw-accent); transform: translateY(-1px); }
.pw-card__excerpt { color: #666; line-height: 1.65; }
.pw-read-more { display: inline-flex; align-items: center; gap: 7px; }
.pw-read-more span { display: inline-grid; width: 25px; height: 25px; margin: 0; place-items: center; border: 1px solid #cfcfca; border-radius: 50%; color: var(--pw-ink); font-size: 13px; line-height: 1; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.pw-read-more:hover span { border-color: var(--pw-accent); color: var(--pw-accent); transform: translateX(3px); }
.pw-home-widgets { border-top-color: var(--pw-ink); }
.pw-home-widget__title, .pw-home-widget .wp-block-heading { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .06em; }
.pw-home-widget__title::before, .pw-home-widget .wp-block-heading::before { content: ""; width: 8px; height: 8px; background: var(--pw-accent); }

.pw-article__header, .pw-page__header, .pw-author-archive__header { position: relative; padding-left: 28px; }
.pw-article__header::before, .pw-page__header::before, .pw-author-archive__header::before { content: ""; position: absolute; top: 3px; bottom: 0; left: 0; width: 3px; background: linear-gradient(var(--pw-accent) 0 68px, var(--pw-line) 68px 100%); }
.pw-article__title, .pw-page__header .pw-article__title, .pw-author-archive__header .pw-article__title { color: var(--pw-ink); line-height: 1.28; letter-spacing: -.02em; }
.pw-article__header .pw-title-rule, .pw-page__header .pw-title-rule, .pw-author-archive__header .pw-title-rule { width: 136px; background: var(--pw-line); }
.pw-article__hero { border-radius: 0; clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%); }
.pw-content h2::before, .pw-content h3::before { content: ""; display: inline-block; width: .38em; height: .38em; margin-right: .48em; background: var(--pw-accent); vertical-align: .1em; }
.pw-content blockquote { padding: 30px 34px 30px 42px; border: 0; background: var(--pw-paper-soft); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.pw-content blockquote::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--pw-accent); }
.pw-article-tools { border-bottom-color: #d8d8d3; }
.pw-author { position: relative; padding-left: 18px; }
.pw-author::before { content: ""; position: absolute; top: 0; bottom: 45px; left: 0; width: 3px; background: var(--pw-accent); }

.pw-panel { border-left: 0; box-shadow: -24px 0 60px rgb(0 0 0 / .08); background: linear-gradient(90deg, var(--pw-accent) 0 5px, #fff 5px); }
.pw-panel__menu { counter-reset: pw-menu; }
.pw-panel__menu li { position: relative; counter-increment: pw-menu; padding-left: 32px; }
.pw-panel__menu li::before { content: counter(pw-menu, decimal-leading-zero); position: absolute; top: 20px; left: 0; color: var(--pw-muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.pw-panel__menu a { font-size: 1.28rem; font-weight: 650; }
.pw-footer { border-top-color: var(--pw-ink); }
.pw-footer__copyright::before { content: "SB"; display: inline-grid; width: 30px; height: 30px; margin-right: 8px; place-items: center; background: var(--pw-ink); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.pw-cookie-notice { border: 0; border-top: 4px solid var(--pw-accent); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }

@media (max-width: 920px) {
  .pw-grid-home .pw-grid, body.archive .pw-grid { column-gap: 34px; }
}
@media (max-width: 600px) {
  :root { --pw-notch: 22px; }
  .pw-header__inner { min-height: 64px; }
  .pw-brand { padding-left: 13px; }
  .pw-brand::before { top: -5px; bottom: -5px; width: 3px; }
  .pw-brand__name { font-size: 17px; }
  .pw-grid-home .pw-card, body.archive .pw-card { padding-top: 25px; }
  .pw-article__header, .pw-page__header, .pw-author-archive__header { padding-left: 19px; }
  .pw-content blockquote { padding: 24px 22px 24px 28px; }
  .pw-footer__copyright::before { display: none; }
}

/* Simple Base v5 — clean magazine system. */
:root {
  --pw-accent: #4a8f7b;
  --sb5-serif: Georgia, "Times New Roman", serif;
  --sb5-sans: Arial, Helvetica, sans-serif;
  --sb5-border: #e3e3e3;
  --sb5-soft: #f7f7f7;
  --sb5-muted: #767676;
}
body { color: #171717; background: #fff; font-family: var(--sb5-sans); font-size: 16px; line-height: 1.45; }
.pw-wrap { width: min(calc(100% - 40px), var(--pw-width, 1180px)); }
a { color: inherit; }

/* Header */
.pw-header { position: relative !important; top: auto !important; border: 0; background: #fff; }
.pw-header__top { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 30px; }
.pw-brand { padding: 0; text-align: left; }
.pw-brand::before, .pw-actions::before { display: none; }
.pw-brand a { display: inline-block; }
.pw-brand__name { color: #111; font-family: var(--sb5-sans); font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: .015em; text-transform: uppercase; }
.pw-brand__name::after { content: none; }
.pw-brand__tagline { display: block; margin-top: 3px; color: #999; font-size: 12px; line-height: 1.1; letter-spacing: 0; text-transform: none; }
.custom-logo { max-width: 260px; max-height: 52px; }
.pw-header__utilities { margin-left: auto; padding: 0; }
.pw-icon-button { color: #777; }
.pw-icon-button:hover, .pw-icon-button:focus-visible { color: var(--pw-accent); transform: none; }
.pw-header__nav-row { border-top: 1px solid var(--sb5-border); border-bottom: 1px solid var(--sb5-border); }
.pw-header__nav-inner { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 26px; }
.pw-nav { margin: 0; }
.pw-nav ul { gap: 31px; }
.pw-nav a { padding: 16px 0 14px; color: #222; font-family: var(--sb5-sans); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pw-nav .current-menu-item > a::after { left: 0; right: 0; bottom: auto; top: -1px; width: 100%; height: 4px; background: var(--pw-accent); }
.pw-header__socials { min-width: 0; }
.pw-social--header { gap: 7px; }
.pw-social--header a, .pw-social--footer a { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #ededed; color: #aaa; }
.pw-social--header .pw-svg, .pw-social--footer .pw-svg { width: 13px; height: 13px; }
.pw-social--header a:hover, .pw-social--footer a:hover { background: var(--pw-accent); color: #fff; }

/* Homepage */
.sb5-home { padding-top: 20px; }
.sb5-home-lead { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(220px, 1fr) minmax(230px, 1.08fr); gap: 24px; }
.sb5-home-lead__secondary, .sb5-home-lead__rail { padding-left: 24px; border-left: 1px solid var(--sb5-border); }
.sb5-feature { margin: 0; }
.sb5-feature__media { display: block; overflow: hidden; background: #eee; }
.sb5-feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sb5-feature:hover .sb5-feature__media img { transform: scale(1.015); }
.sb5-feature--primary .sb5-feature__media { aspect-ratio: 1.5 / 1; }
.sb5-feature--primary .sb5-feature__body { padding: 14px 10px 0; text-align: center; }
.sb5-kicker { margin-bottom: 10px; color: var(--pw-accent); font-size: 14px; font-weight: 700; }
.sb5-kicker a { color: inherit; text-decoration: none; }
.sb5-feature h1 { max-width: 620px; margin: 0 auto; font-family: var(--sb5-serif); font-size: clamp(31px, 3vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.sb5-feature h1 a, .sb5-feature h2 a, .sb5-rail-story h2 a { text-decoration: none; }
.sb5-feature--primary p { max-width: 600px; margin: 13px auto 0; color: var(--sb5-muted); font-size: 17px; line-height: 1.45; }
.sb5-byline { display: flex; margin-top: 14px; align-items: center; justify-content: center; gap: 9px; color: var(--sb5-muted); font-size: 12px; }
.sb5-byline img { width: 30px; height: 30px; border-radius: 50%; }
.sb5-byline a { color: #333; text-decoration: none; }
.sb5-byline time::before, .sb5-list-card__meta time::before { content: "·"; margin-right: 9px; color: #bbb; }
.sb5-home-lead__secondary { display: grid; gap: 24px; align-content: start; }
.sb5-feature--secondary + .sb5-feature--secondary { padding-top: 18px; border-top: 1px solid var(--sb5-border); }
.sb5-feature--secondary .sb5-feature__media { aspect-ratio: 1.25 / 1; }
.sb5-feature--secondary .sb5-feature__body { padding-top: 10px; }
.sb5-feature--secondary h2 { margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -.015em; }
.sb5-feature__meta { margin-top: 9px; color: var(--sb5-muted); font-size: 12px; }
.sb5-feature__meta a { text-decoration: none; }
.sb5-home-lead__rail { display: grid; align-content: start; }
.sb5-rail-story { padding: 3px 0 17px; border-bottom: 1px solid var(--sb5-border); }
.sb5-rail-story + .sb5-rail-story { padding-top: 17px; }
.sb5-rail-story h2 { margin: 0; font-size: 17px; line-height: 1.13; }
.sb5-rail-story p { margin: 10px 0 0; color: var(--sb5-muted); font-size: 13px; line-height: 1.35; }
.sb5-rail-story time { display: block; margin-top: 9px; color: #999; font-size: 11px; }
.pw-category-sections { margin-top: 30px; padding: 0 0 24px; background: #fff; }
.pw-category-section { margin-top: 0; padding: 22px 0 28px; border-top: 1px solid var(--sb5-border); }
.pw-category-section + .pw-category-section { margin-top: 0; }
.pw-category-section__head { margin-bottom: 18px; }
.pw-category-section__head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.pw-category-section__head a { color: var(--pw-accent); font-size: 12px; text-decoration: none; }
.pw-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.pw-compact-card { padding-left: 20px; border-left: 1px solid var(--sb5-border); }
.pw-compact-card:first-child { padding-left: 0; border-left: 0; }
.pw-compact-card__media { aspect-ratio: 1.35 / 1; border-radius: 0; }
.pw-compact-card .pw-meta { margin-top: 9px; }
.pw-compact-card h3 { margin: 7px 0 0; font-size: 17px; line-height: 1.18; }
.pw-home-widgets { margin-top: 0; padding: 28px 0; border-top: 1px solid var(--sb5-border); }

/* Single post */
.sb5-single-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(230px, 1fr); gap: 46px; padding-top: 30px; align-items: start; }
.sb5-single-main { min-width: 0; }
.pw-article { padding: 0; }
.pw-article__header { width: 100%; padding: 0; }
.pw-article__header::before { display: none; }
.pw-article__header .sb5-kicker { margin-bottom: 18px; }
.pw-article__title { margin: 0; color: #111; font-family: var(--sb5-sans); font-size: clamp(36px, 4vw, 45px); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; overflow-wrap: anywhere; }
.pw-article__dek { max-width: 720px; margin: 14px 0 0; color: #8a8a8a; font-family: var(--sb5-sans); font-size: 17px; line-height: 1.42; }
.sb5-post-header-meta { display: flex; margin-top: 27px; align-items: center; justify-content: space-between; gap: 20px; }
.pw-article__byline { min-width: 0; }
.pw-article__byline .pw-meta { font-size: 11px; }
.pw-share { flex: 0 0 auto; gap: 7px; }
.pw-share > span { display: none; }
.pw-share a, .pw-copy-link { width: 31px; height: 31px; border-radius: 50%; background: #f1f1f1; color: #555; }
.pw-share a:hover, .pw-copy-link:hover { background: var(--pw-accent); color: #fff; transform: none; }
.pw-article__hero { width: 100%; margin: 28px 0 30px; border-radius: 0; clip-path: none; }
.pw-article__hero img { width: 100%; }
.pw-content { width: 100%; color: #272727; font-family: var(--sb5-serif); font-size: 20px; line-height: 1.55; letter-spacing: 0; }
.pw-content p, .pw-content ul, .pw-content ol { margin-top: 0; margin-bottom: 25px; }
.pw-content h1, .pw-content h2, .pw-content h3, .pw-content h4, .pw-content h5, .pw-content h6 { color: #111; font-family: var(--sb5-sans); }
.pw-content h2::before, .pw-content h3::before { display: none; }
.pw-content a:not(.wp-block-button__link) { box-shadow: inset 0 -1px 0 var(--pw-accent); }
.pw-content blockquote { padding: 0 0 0 28px; border-left: 4px solid var(--pw-accent); background: transparent; clip-path: none; font-family: var(--sb5-serif); font-size: 24px; font-style: italic; }
.pw-content blockquote::after { display: none; }
.pw-content img { border-radius: 0; box-shadow: none; }
.pw-article-tools, .pw-author, .pw-comments { width: 100%; }
.pw-article-tools { margin-top: 42px; }
.pw-author { margin-top: 42px; padding: 24px 0; border-top: 1px solid var(--sb5-border); border-bottom: 1px solid var(--sb5-border); }
.pw-author::before { display: none; }
.sb5-single-main .pw-related { margin-top: 42px; padding: 35px 0; }
.sb5-single-main .pw-related .pw-wrap { width: 100%; }
.sb5-single-main .pw-related .pw-grid { gap: 24px; }
.sb5-single-main .pw-comments { margin-top: 40px; }

/* Sidebar and archives */
.sb5-sidebar { min-width: 0; padding-left: 28px; border-left: 1px solid var(--sb5-border); }
.pw-post-widget + .pw-post-widget, .pw-content-widget + .pw-content-widget { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--sb5-border); }
.pw-post-widget__title, .pw-content-widget__title, .sb5-sidebar .wp-block-heading { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.pw-post-widget p, .pw-content-widget p { margin: 0; color: #555; font-size: 14px; line-height: 1.45; }
.pw-post-widget ul, .pw-content-widget ul { margin: 0; padding: 0; list-style: none; }
.pw-post-widget li, .pw-content-widget li { margin: 0 0 8px; }
.pw-post-widget a, .pw-content-widget a { text-decoration: none; }
.sb5-sidebar-posts { display: grid; gap: 10px; }
.sb5-sidebar-post { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--sb5-border); }
.sb5-sidebar-post__media { display: block; aspect-ratio: 1.2 / 1; overflow: hidden; background: #eee; }
.sb5-sidebar-post__media img { width: 100%; height: 100%; object-fit: cover; }
.sb5-sidebar-post h3 { margin: 0; font-size: 15px; line-height: 1.1; }
.sb5-sidebar-post h3 a { text-decoration: none; }
.sb5-sidebar-post time { display: block; margin-top: 4px; color: #999; font-size: 10px; }
.sb5-archive-header { padding: 22px 0 18px; border-bottom: 1px solid var(--sb5-border); }
.sb5-archive-header h1 { margin: 0; font-size: 38px; line-height: 1.1; letter-spacing: -.025em; }
.sb5-archive-description { max-width: 720px; margin-top: 12px; color: var(--sb5-muted); font-size: 15px; }
.sb5-archive-description p { margin: 0; }
.sb5-archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 46px; padding-top: 28px; align-items: start; }
.sb5-list-card { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 0 0 26px; border-bottom: 1px solid var(--sb5-border); align-items: center; }
.sb5-list-card + .sb5-list-card { padding-top: 24px; }
.sb5-list-card__body h2 { margin: 0; font-size: 24px; line-height: 1.12; letter-spacing: -.02em; }
.sb5-list-card__body h2 a { text-decoration: none; }
.sb5-list-card__body p { margin: 12px 0 0; color: var(--sb5-muted); font-size: 14px; line-height: 1.42; }
.sb5-list-card__meta { display: flex; margin-top: 13px; gap: 9px; color: #999; font-size: 11px; }
.sb5-list-card__meta a { color: #555; text-decoration: none; }
.sb5-list-card__media { display: block; overflow: hidden; aspect-ratio: 1.5 / 1; background: #eee; }
.sb5-list-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sb5-archive-list .pw-pagination { padding: 35px 0 55px; }

/* Pages */
.sb5-page { padding: 28px 0 90px; }
.sb5-page .pw-page__header { width: min(calc(100% - 40px), 680px); margin: 0 auto 28px; padding: 0; text-align: center; }
.sb5-page .pw-page__header::before { display: none; }
.sb5-page .pw-article__title { font-family: var(--sb5-sans); font-size: 42px; line-height: 1.1; letter-spacing: -.03em; }
.sb5-page .pw-article__hero { width: min(calc(100% - 40px), 760px); margin: 0 auto 28px; }
.sb5-page .pw-content { width: min(calc(100% - 40px), 680px); font-family: var(--sb5-serif); font-size: 20px; line-height: 1.55; }

/* Footer */
.pw-footer { min-height: 0; padding: 30px 0 26px; border-top: 1px solid var(--sb5-border); }
.sb5-footer-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 0; }
.sb5-footer-grid section { min-height: 145px; padding: 0 26px; border-left: 1px solid var(--sb5-border); }
.sb5-footer-grid section:first-child { padding-left: 0; border-left: 0; }
.sb5-footer-grid h2 { margin: 0 0 14px; font-size: 16px; }
.sb5-footer-grid ul { margin: 0; padding: 0; list-style: none; }
.sb5-footer-grid li { margin-bottom: 7px; font-size: 13px; }
.sb5-footer-grid a { text-decoration: none; }
.sb5-footer-about h2 { font-size: 30px; letter-spacing: -.03em; }
.sb5-footer-about p { max-width: 470px; margin: 0; color: #555; font-size: 13px; line-height: 1.5; }
.pw-footer__inner { min-height: 52px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--sb5-border); font-size: 12px; }
.pw-footer__copyright::before { display: none; }
.pw-theme-credit { color: #777; }

/* Panels and notice */
.pw-panel { background: #fff; box-shadow: -18px 0 50px rgb(0 0 0 / .1); }
.pw-panel__menu li { padding-left: 0; }
.pw-panel__menu li::before { display: none; }
.pw-panel__menu a { font-size: 20px; font-weight: 600; }
.pw-cookie-notice { border: 1px solid var(--sb5-border); border-top: 4px solid var(--pw-accent); clip-path: none; }

@media (max-width: 980px) {
  .sb5-home-lead { grid-template-columns: 1.7fr 1fr; }
  .sb5-home-lead__rail { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--sb5-border); }
  .sb5-rail-story, .sb5-rail-story + .sb5-rail-story { padding: 0 18px 0 0; border-right: 1px solid var(--sb5-border); border-bottom: 0; }
  .sb5-single-layout, .sb5-archive-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 30px; }
  .sb5-list-card { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 760px) {
  .pw-wrap { width: min(calc(100% - 28px), var(--pw-width, 1180px)); }
  .pw-header__top { min-height: 66px; }
  .pw-brand__name { font-size: 22px; }
  .pw-brand__tagline, .pw-header__socials, .pw-nav { display: none; }
  .pw-header__nav-row { display: none; }
  .pw-menu-toggle { display: inline-grid; }
  .sb5-home { padding-top: 14px; }
  .sb5-home-lead { grid-template-columns: 1fr; gap: 28px; }
  .sb5-home-lead__secondary { grid-template-columns: repeat(2, 1fr); padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--sb5-border); }
  .sb5-feature--secondary + .sb5-feature--secondary { padding-top: 0; padding-left: 18px; border-top: 0; border-left: 1px solid var(--sb5-border); }
  .sb5-home-lead__rail { grid-template-columns: repeat(2, 1fr); }
  .pw-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pw-compact-card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .sb5-single-layout, .sb5-archive-layout { display: block; padding-top: 22px; }
  .sb5-sidebar { margin-top: 42px; padding: 30px 0 0; border-top: 1px solid var(--sb5-border); border-left: 0; }
  .pw-article__title { font-size: 34px; }
  .sb5-post-header-meta { align-items: flex-start; flex-direction: column; }
  .pw-content, .sb5-page .pw-content { font-size: 18px; }
  .sb5-list-card { grid-template-columns: minmax(0, 1fr) 38%; gap: 18px; }
  .sb5-list-card__body h2 { font-size: 20px; }
  .sb5-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .sb5-footer-grid section { min-height: 0; padding: 0; border: 0; }
  .sb5-footer-about { grid-column: 1 / -1; }
  .pw-footer__inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .sb5-feature h1 { font-size: 30px; }
  .sb5-home-lead__secondary, .sb5-home-lead__rail { grid-template-columns: 1fr; }
  .sb5-feature--secondary + .sb5-feature--secondary, .sb5-rail-story, .sb5-rail-story + .sb5-rail-story { padding: 18px 0 0; border-left: 0; border-right: 0; border-top: 1px solid var(--sb5-border); }
  .pw-category-grid { grid-template-columns: 1fr; }
  .pw-compact-card { padding: 18px 0 0; border-top: 1px solid var(--sb5-border); border-left: 0; }
  .sb5-list-card { grid-template-columns: 1fr; }
  .sb5-list-card__media { grid-row: 1; }
  .sb5-page .pw-article__title { font-size: 34px; }
  .sb5-footer-grid { grid-template-columns: 1fr; }
  .sb5-footer-about { grid-column: auto; }
}

/* Simple Base v5.0.1 — typografia i rytm projektu „Szablon 1 (3)”. */
:root {
  --sb5-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --sb5-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}
body {
  color: #616161;
  font-family: var(--pw-body, var(--sb5-sans));
  font-size: 14px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6,
.pw-brand__name,
.pw-nav,
.pw-meta,
.sb5-kicker {
  font-family: var(--pw-heading, var(--sb5-sans));
}

/* Strona główna: 34 px dla materiału głównego, 24 px dla pozostałych. */
.sb5-home { padding-top: 50px; padding-bottom: 50px; }
.sb5-feature h1 {
  color: #505050;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.sb5-feature--secondary h2,
.sb5-rail-story h2,
.pw-compact-card h3 {
  color: #505050;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.sb5-feature__body { padding-top: 20px; }
.sb5-feature__body > p,
.sb5-rail-story p { font-size: 14px; line-height: 1.75; }
.sb5-home-lead { column-gap: 30px; }
.sb5-home-lead__secondary,
.sb5-home-lead__rail { padding-left: 30px; }
.sb5-home-lead__secondary { gap: 50px; }
.sb5-feature--secondary + .sb5-feature--secondary { padding-top: 50px; }
.sb5-rail-story,
.sb5-rail-story + .sb5-rail-story { padding-top: 25px; padding-bottom: 25px; }
.pw-category-sections { margin-top: 50px; padding-bottom: 50px; }
.pw-category-section { padding-top: 50px; }
.pw-category-section + .pw-category-section { margin-top: 50px; }
.pw-category-grid { gap: 50px 30px; }
.pw-home-widgets { margin-top: 50px; padding-top: 50px; }

/* Wpis: rozmiary i pionowy rytm zgodne z projektem referencyjnym. */
.sb5-single-layout { padding-top: 50px; padding-bottom: 50px; }
.pw-article { padding-top: 0; }
.pw-article__header { margin-bottom: 0; }
.pw-article__title {
  color: #505050;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.025em;
}
.pw-article__dek {
  margin-top: 25px;
  color: #888;
  font-family: var(--pw-body, var(--sb5-sans));
  font-size: 16px;
  line-height: 1.75;
}
.sb5-post-header-meta { margin-top: 25px; }
.pw-article__hero { margin-top: 50px; margin-bottom: 25px; }
.pw-content,
.sb5-page .pw-content {
  color: #616161;
  font-family: var(--pw-body, var(--sb5-sans));
  font-size: 16px;
  line-height: 1.8;
}
.pw-content p,
.pw-content ul,
.pw-content ol { margin-top: 0; margin-bottom: 1.35em; }
.pw-content h1,
.pw-content h2,
.pw-content h3,
.pw-content h4,
.pw-content h5,
.pw-content h6 {
  color: #505050;
  font-family: var(--pw-heading, var(--sb5-sans));
  font-weight: 500;
  line-height: 1.25;
}
.pw-content h2 { margin: 2em 0 .75em; font-size: 28px; }
.pw-content h3 { margin: 2em 0 .75em; font-size: 23px; }
.pw-content h4 { margin: 2em 0 .75em; font-size: 20px; }
.pw-content blockquote {
  margin: 2em 0;
  padding: 30px 36px;
  border: 0;
  border-left: 3px solid var(--pw-accent);
  background: #f7f7f7;
  color: #6d6d6d;
  font-family: var(--pw-heading, var(--sb5-sans));
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.6;
}
.pw-article-tools { margin-top: 50px; }
.pw-author { margin-top: 25px; padding-top: 25px; padding-bottom: 25px; }
.sb5-single-main .pw-related { margin-top: 25px; padding-top: 50px; padding-bottom: 50px; }
.sb5-single-main .pw-related .pw-card__title { font-size: 24px; font-weight: 300; line-height: 1.2; }
.sb5-single-main .pw-comments { margin-top: 0; padding-top: 25px; padding-bottom: 50px; }

/* Formularz komentarza zachowuje dokładną typografię z projektu. */
.pw-comments,
.pw-comments .comment-form,
.pw-comments .comment-reply-title,
.pw-comments .logged-in-as,
.pw-comments .comment-notes,
.pw-comments .comment-form-comment label,
.pw-comments input,
.pw-comments textarea,
.pw-comments button,
.pw-comments input[type="submit"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}
.pw-comments .comment-reply-title,
.pw-comments input[type="submit"],
.pw-comments button[type="submit"] { font-weight: 700; }

/* Kategorie, archiwa i strony. */
.sb5-archive-header { padding-top: 50px; padding-bottom: 25px; }
.sb5-archive-header h1,
.sb5-page .pw-article__title { font-size: 34px; font-weight: 300; line-height: 1.18; }
.sb5-archive-layout { gap: 50px; padding-top: 25px; padding-bottom: 50px; }
.sb5-list-card { gap: 30px; padding-bottom: 50px; }
.sb5-list-card + .sb5-list-card { padding-top: 50px; }
.sb5-list-card__body h2 { font-size: 24px; font-weight: 300; line-height: 1.2; }
.sb5-page { padding-top: 50px; padding-bottom: 50px; }
.sb5-page .pw-page__header { margin-bottom: 25px; }
.sb5-page .pw-article__hero { margin-bottom: 25px; }
.pw-footer { padding-top: 50px; padding-bottom: 0; }
.pw-footer__inner { min-height: 100px; margin-top: 50px; }

@media (max-width: 760px) {
  .sb5-home,
  .sb5-single-layout,
  .sb5-page { padding-top: 50px; padding-bottom: 50px; }
  .sb5-feature h1,
  .pw-article__title,
  .sb5-page .pw-article__title,
  .sb5-archive-header h1 { font-size: 34px; }
  .sb5-feature--secondary h2,
  .sb5-rail-story h2,
  .pw-compact-card h3,
  .sb5-list-card__body h2,
  .sb5-single-main .pw-related .pw-card__title { font-size: 24px; }
  .pw-content,
  .sb5-page .pw-content { font-size: 16px; line-height: 1.8; }
  .sb5-sidebar { margin-top: 50px; padding-top: 50px; }
}

/* Simple Base v5.0.2 — przywrócony rytm strony głównej i slider. */
.sb5-home { padding-top: 20px; padding-bottom: 0; }
.sb5-home-lead { gap: 24px; }
.sb5-home-lead__secondary,
.sb5-home-lead__rail { padding-left: 24px; }
.sb5-home-lead__secondary { gap: 24px; }
.sb5-feature--secondary + .sb5-feature--secondary { padding-top: 18px; }
.sb5-feature--primary .sb5-feature__body { padding: 14px 10px 0; }
.sb5-feature--secondary .sb5-feature__body { padding-top: 10px; }
.sb5-feature h1,
.sb5-feature--secondary h2,
.sb5-rail-story h2,
.pw-compact-card h3,
.pw-category-section__head h2 {
  color: #505050;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.sb5-feature--primary p { margin-top: 13px; font-size: 17px; line-height: 1.45; }
.sb5-rail-story { padding: 3px 0 17px; }
.sb5-rail-story + .sb5-rail-story { padding: 17px 0; }
.sb5-rail-story p { font-size: 13px; line-height: 1.35; }
.pw-category-sections { margin-top: 30px; padding-bottom: 24px; }
.pw-category-section { margin-top: 0; padding: 22px 0 28px; }
.pw-category-section + .pw-category-section { margin-top: 0; }
.pw-category-grid { gap: 22px; }
.pw-home-widgets { margin-top: 0; padding: 28px 0; }

.sb5-slider { position: relative; min-width: 0; }
.sb5-slider__track { position: relative; }
.sb5-slider__slide { display: none; margin: 0; }
.sb5-slider__slide.is-active { display: block; animation: sb5-slider-fade .35s ease both; }
.sb5-slider__controls { display: flex; margin-top: 16px; align-items: center; justify-content: center; gap: 13px; }
.sb5-slider__controls > button {
  display: inline-grid;
  width: 32px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  color: #777;
  font: 600 14px/1 var(--pw-body, var(--sb5-sans));
}
.sb5-slider__controls > button:hover,
.sb5-slider__controls > button:focus-visible { border-color: var(--pw-accent); color: var(--pw-accent); }
.sb5-slider__dots { display: flex; align-items: center; gap: 7px; }
.sb5-slider__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfcfcf;
}
.sb5-slider__dots button.is-active { background: var(--pw-accent); }
@keyframes sb5-slider-fade { from { opacity: .25; } to { opacity: 1; } }

/* Dokładnie 50 px pod przyciskiem komentarza. */
.pw-comments { padding-bottom: 50px !important; }
.pw-comments .form-submit { margin-bottom: 0 !important; }

/* Prosta strzałka „Czytaj dalej”, bez kółka i obramowania. */
.pw-read-more span {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin-left: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

@media (max-width: 760px) {
  .sb5-home { padding-top: 14px; padding-bottom: 0; }
  .sb5-home-lead { grid-template-columns: 1fr; gap: 28px; }
  .sb5-home-lead__secondary { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 22px 0 0; border-top: 1px solid var(--sb5-border); border-left: 0; }
  .sb5-feature--secondary + .sb5-feature--secondary { padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--sb5-border); }
  .sb5-home-lead__rail { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 20px 0 0; border-top: 1px solid var(--sb5-border); border-left: 0; }
  .sb5-rail-story,
  .sb5-rail-story + .sb5-rail-story { padding: 0 18px 17px 0; }
  .pw-category-grid { gap: 22px; }
}

@media (max-width: 480px) {
  .sb5-home-lead__secondary,
  .sb5-home-lead__rail { grid-template-columns: 1fr; }
  .sb5-feature--secondary + .sb5-feature--secondary,
  .sb5-rail-story,
  .sb5-rail-story + .sb5-rail-story { padding: 18px 0 0; border-right: 0; border-left: 0; border-top: 1px solid var(--sb5-border); }
}

@media (prefers-reduced-motion: reduce) {
  .sb5-slider__slide.is-active { animation: none; }
}

/* Simple Base v5.0.3 — jednolity format miniaturek i dodatkowy opis stopki. */
.sb5-home .sb5-feature__media,
.pw-category-sections .pw-compact-card__media {
  aspect-ratio: 4 / 3;
}
.sb5-home .sb5-feature__media img,
.pw-category-sections .pw-compact-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pw-category-grid .pw-compact-card {
  position: relative;
  padding-left: 0;
  border-left: 0;
}
.pw-category-grid .pw-compact-card + .pw-compact-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -11px;
  width: 1px;
  background: var(--sb5-border);
  content: "";
}
@media (max-width: 760px) {
  .pw-category-grid .pw-compact-card + .pw-compact-card::before {
    display: none;
  }
}

/* Simple Base v5.0.5 — izolacja typografii wpisu i wyrównanie z panelem bocznym. */
.pw-author,
.pw-related,
.sb5-sidebar,
.pw-shared-widgets,
.pw-footer {
  font-weight: 400;
}
@media (min-width: 761px) {
  .single .sb5-single-main {
    margin-top: -42px;
  }
}

/* Simple Base v5.0.6 — dokładne odstępy oznaczone na widoku wpisu. */
.single .sb5-single-layout {
  padding-bottom: 0;
}
.pw-footer__inner {
  align-items: flex-start;
  padding-top: 25px;
}

/* Simple Base v5.0.7 — tekst właściwy artykułu 15 px. */
.single .pw-content,
.single .pw-content > p:first-child {
  font-size: 15px;
}
.sb5-footer-about .sb5-footer-extra {
  margin-top: 14px;
  color: #777;
}

/* Simple Base v5.0.4 — wspólne kolumny widżetów i równa stopka. */
.pw-brand .pw-brand__text-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pw-brand__mark {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  color: var(--pw-accent);
}
.pw-brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sb5-footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
}
.sb5-footer-grid section,
.sb5-footer-grid section:first-child {
  padding-right: 0;
  padding-left: 0;
  border-left: 0;
}
.single .pw-shared-widgets {
  margin-top: 0;
  padding-top: 50px;
  padding-bottom: 50px;
}
.pw-home-widget.widget_categories > ul,
.pw-post-widget.widget_categories > ul,
.pw-panel-widget.widget_categories > ul,
.pw-home-widget .wp-block-categories-list,
.pw-post-widget .wp-block-categories-list,
.pw-panel-widget .wp-block-categories-list {
  column-count: 2;
  column-gap: 24px;
}
.pw-home-widget.widget_categories li,
.pw-post-widget.widget_categories li,
.pw-panel-widget.widget_categories li,
.pw-home-widget .wp-block-categories-list li,
.pw-post-widget .wp-block-categories-list li,
.pw-panel-widget .wp-block-categories-list li {
  break-inside: avoid;
}
@media (max-width: 760px) {
  .sb5-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 30px;
  }
  .sb5-footer-about {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .sb5-footer-grid {
    grid-template-columns: 1fr;
  }
  .sb5-footer-about {
    grid-column: auto;
  }
}
