/*
Theme Name: Komunalnik
Theme URI: https://sorodkomunalnik.pl
Author: SO ROD „Komunalnik”
Description: Lekki, czytelny motyw dla Stowarzyszenia Ogrodowego ROD „Komunalnik” w Gdańsku. Strona główna z najważniejszymi informacjami (opłaty, druki, ogłoszenia Zarządu, kontakt), systemowe czcionki bez zewnętrznych zasobów, kolory zgodne z WCAG AA. Dane kontaktowe, konto i tabela opłat edytowalne w Customizerze (Wygląd → Dostosuj → Komunalnik – dane).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
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: komunalnik
Tags: one-column, custom-menu, custom-logo, editor-style, featured-images, accessibility-ready, translation-ready, block-styles, wide-blocks
*/

:root {
	--green: #2E5E1E;
	--green-dark: #234817;
	--leaf: #7BAE3A;
	--leaf-soft: #EAF2DD;
	--cream: #F7F5EF;
	--text: #1F2A24;
	--muted: #4A5650;
	--accent: #E0A526;
	--border: #E3E0D6;
	--white: #fff;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--radius: 14px;
	--wrap: 1180px;
	--content: 780px;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 18px/1.6 var(--sans); font-style: normal; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
em, i, cite, address, dfn, var { font-style: normal; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--text); font-style: normal; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
img, svg, video { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .pay :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; display: block; }
.small { font-size: .9rem; color: var(--muted); }
.link-arrow { font-weight: 700; white-space: nowrap; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: var(--green); display: block; height: auto; left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100000; font-weight: 700; }
.skip-link:focus { left: 8px; color: #fff; outline-color: var(--accent); }

/* ---------- Przyciski ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; line-height: 1.25; border: 2px solid transparent; }
.btn-primary { background: #fff; color: var(--green); }
.btn-primary:hover { background: var(--cream); color: var(--green-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline:hover { background: var(--green); color: #fff; }

/* ---------- Nagłówek ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand svg { flex: none; }
.brand-logo img { max-height: 56px; width: auto; display: block; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.1; display: block; }
.brand-sub { font-size: .78rem; color: var(--muted); display: block; letter-spacing: .02em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .97rem; }
.nav a:hover { background: var(--cream); color: var(--green); }
.nav a[aria-current], .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.head-phone { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--green); white-space: nowrap; border: 1.5px solid var(--green); padding: 8px 14px; border-radius: 999px; font-size: .97rem; }
.head-phone:hover { background: var(--green); color: #fff; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--border); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; color: var(--text); padding: 0; flex: none; }
.menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; transition: .2s; }
.menu-btn span + span { margin-top: 4px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; background: var(--green); color: #fff; overflow: hidden; }
.hero-art, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero-photo { object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,40,13,.88) 0%, rgba(20,40,13,.55) 55%, rgba(20,40,13,.2) 100%); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 104px; }
.hero-card { max-width: 640px; }
.hero .eyebrow { color: #DCEBC6; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: .4em; }
.hero .lead { font-size: 1.2rem; color: #EEF4E6; margin-bottom: 1.8em; }

/* ---------- Ważne teraz ---------- */
.notice { padding: 0; margin-top: -44px; position: relative; z-index: 2; }
.notice-box { background: #fff; border: 1px solid var(--border); border-left: 8px solid var(--accent); border-radius: var(--radius); padding: 22px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; box-shadow: 0 10px 30px rgba(31,42,36,.08); }
.notice-ico { width: 48px; height: 48px; border-radius: 50%; background: #FCF1D6; display: grid; place-items: center; color: #8A6100; }
.notice-tag { display: inline-block; background: var(--accent); color: #2B2000; font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-right: 8px; vertical-align: 2px; }
.notice h2 { font-size: 1.25rem; margin: .35em 0 .25em; }
.notice h2 a { color: var(--text); text-decoration: none; }
.notice h2 a:hover { color: var(--green); text-decoration: underline; }
.notice p { margin: 0; color: var(--muted); font-size: 1rem; }
.notice .entry-date { font-size: .9rem; color: var(--muted); }
.notice .entry-date svg { display: none; }
.notice + .tiles-section { padding-top: 64px; }

/* ---------- Kafelki ---------- */
.tiles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tiles li { display: flex; }
.tile { flex: 1; display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31,42,36,.08); border-color: var(--leaf); color: var(--text); }
.tile .ico { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--leaf-soft); display: grid; place-items: center; color: var(--green); }
.tile-title { display: block; font: 700 1.2rem/1.2 var(--serif); margin: 2px 0 6px; color: var(--green); }
.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 3px; }
.tile-desc { display: block; margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }

/* ---------- Aktualności ---------- */
.news { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; background: var(--cream); }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.entry-date { font-size: .88rem; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card h3 { font-size: 1.2rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--green); text-decoration: underline; }
.card p { font-size: .97rem; color: var(--muted); flex: 1; }
.card .link-arrow { align-self: flex-start; }
.new, .type-tag { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.type-tag { background: var(--leaf-soft); color: var(--green); }

/* ---------- Opłaty ---------- */
.fees-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 28px; align-items: start; }
.fees-grid.no-table { grid-template-columns: minmax(0, 560px); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.fees-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 0; }
.fees-table caption { text-align: left; font-size: .95rem; color: var(--muted); padding-bottom: 10px; caption-side: top; }
.fees-table th, .fees-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.fees-table thead th { background: var(--green); color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.fees-table tbody th { font-weight: 400; }
.fees-table tbody tr:last-child > * { border-bottom: 0; }
.fees-table .amt { text-align: right; }
.fees-table td.amt { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.fees-table td:not(.amt) { white-space: nowrap; }
.extra { margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; font-size: .97rem; }
.extra h3 { font-size: 1.05rem; margin-bottom: .3em; }
.extra .small { margin-bottom: .4em; }
.extra ul { margin: 0; padding-left: 1.2em; }
.pay { background: var(--green); color: #fff; border-radius: var(--radius); padding: 28px; position: relative; }
.pay h3 { color: #fff; }
.pay-text { font-size: .95rem; color: #DCEBC6; }
.acct-label { font-size: .85rem; color: #DCEBC6; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.acct { font: 700 1.3rem/1.35 var(--mono); letter-spacing: .02em; margin: 6px 0 4px; word-break: break-word; }
.bank { color: #DCEBC6; font-size: .95rem; margin-bottom: 16px; }
.copy { background: #fff; color: var(--green); border: 0; border-radius: 999px; padding: 11px 20px; font: 700 .95rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.copy:hover { background: var(--cream); }
.copy.ok { background: var(--leaf); color: #14270C; }
.hint { margin-top: 22px; background: rgba(255,255,255,.1); border-radius: 10px; padding: 16px 18px; font-size: .95rem; }
.hint strong { display: block; margin-bottom: 4px; }
.hint code { display: block; font: 600 .95rem var(--mono); background: rgba(0,0,0,.2); padding: 8px 10px; border-radius: 6px; margin-top: 6px; color: #fff; }
.hint-note { font-size: .8rem; color: #DCEBC6; }

/* ---------- Kontakt ---------- */
.contact { background: #fff; border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 28px; align-items: start; }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist .ico { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--leaf-soft); color: var(--green); display: grid; place-items: center; }
.clist b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.clist a { font-weight: 700; }
.contact-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 1.15rem; }
.reg-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.contact-card .btn { margin-top: 8px; }

/* ---------- Stopka ---------- */
.site-footer { background: #1F2A24; color: #D8DDD6; padding: 52px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #DCEBC6; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-title { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-brand { margin-bottom: 14px; color: #fff; }
.foot-brand .brand-sub { color: #AEB7AF; }
.foot-bottom { border-top: 1px solid #3A4740; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #AEB7AF; font-size: .88rem; }

/* ---------- Podstrony ---------- */
.page-header { background: #fff; border-bottom: 1px solid var(--border); padding: 56px 0 44px; }
.page-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 0; max-width: 900px; }
.page-header .entry-meta { margin-top: 14px; }
.archive-description { margin-top: 12px; color: var(--muted); max-width: var(--content); }
.header-search { margin-top: 20px; max-width: 560px; }
.content-wrap { padding-top: 48px; padding-bottom: 80px; }
.content-wrap > * { max-width: var(--content); }
.entry-thumb { margin: 0 0 32px; }
.entry-thumb img { border-radius: var(--radius); display: block; }

.post-list { display: grid; gap: 18px; }
.list-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.list-title { font-size: 1.35rem; margin: 0 0 .4em; }
.list-title a { color: var(--text); text-decoration: none; }
.list-title a:hover { color: var(--green); text-decoration: underline; }
.list-item p { color: var(--muted); font-size: .97rem; margin-bottom: .6em; }
.pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pager .pager-next { margin-left: auto; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-block; min-width: 44px; padding: 10px 14px; text-align: center; border: 1px solid var(--border); background: #fff; border-radius: 10px; text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }

.post-navigation { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 24px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation a { display: block; text-decoration: none; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); height: 100%; }
.post-navigation a:hover { border-color: var(--leaf); }
.post-navigation .nav-label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.post-navigation .nav-title { display: block; font-weight: 700; color: var(--text); }
.back-link { margin-top: 28px; }

/* Wyszukiwarka */
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 1em 0; }
.search-form label { flex: 1 1 240px; display: flex; }
.search-field, input[type="search"], input[type="text"], input[type="email"], textarea, select { flex: 1; width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #B9B5A8; border-radius: 10px; background: #fff; color: var(--text); }
.search-submit, input[type="submit"], button[type="submit"] { font: 700 1rem var(--sans); padding: 12px 22px; border-radius: 999px; border: 0; background: var(--green); color: #fff; cursor: pointer; }
.search-submit:hover, input[type="submit"]:hover { background: var(--green-dark); }

/* ---------- Treść (edytor blokowy i klasyczny) ---------- */
.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.2em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.1em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li > p { margin-bottom: .3em; }
.entry-content li::marker { color: var(--green); font-weight: 700; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content em { font-style: normal; color: var(--muted); }
.entry-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--border); margin: 2em 0; height: 0; }
.entry-content blockquote, .wp-block-quote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--leaf); color: var(--text); }
.wp-block-pullquote { border-top: 3px solid var(--green); border-bottom: 3px solid var(--green); padding: 1.5em 0; }
.entry-content img { border-radius: 10px; height: auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-caption-text, .wp-element-caption { font-size: .88rem; color: var(--muted); margin-top: .5em; text-align: center; }
.entry-content code { font-family: var(--mono); background: #EFEDE5; padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.entry-content pre { background: #1F2A24; color: #F1F3EF; padding: 18px; border-radius: 10px; overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.wp-caption { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }
.content-wrap > .entry-content > .alignwide { max-width: min(var(--wrap) - 48px, 100vw - 48px); width: calc(100vw - 48px); margin-left: 50%; transform: translateX(-50%); max-width: 1100px; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Tabele */
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; background: #fff; font-size: .97rem; margin: 0; }
.wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.entry-content > table { margin: 1.5em 0; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.entry-content thead th, .wp-block-table thead th { background: var(--green); color: #fff; font-weight: 700; }
.wp-block-table thead { border-bottom: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--cream); }
.wp-block-table.is-style-stripes { border-bottom: 0; }

/* Pliki do pobrania – blok „Plik” i linki do dokumentów */
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; }
.wp-block-file:not(.wp-element-button) { font-size: 1rem; }
.wp-block-file > a:first-child { font-weight: 700; flex: 1 1 260px; }
.wp-block-file .wp-block-file__button, .wp-block-file__button { background: var(--green); color: #fff; border-radius: 999px; padding: 9px 18px; font-size: .92rem; font-weight: 700; text-decoration: none; margin: 0; }
.wp-block-file .wp-block-file__button:hover { background: var(--green-dark); color: #fff; }
.wp-block-file__embed { width: 100%; border-radius: 10px; }
.entry-content a[href$=".doc"], .entry-content a[href$=".docx"], .entry-content a[href$=".pdf"], .entry-content a[href$=".odt"], .entry-content a[href$=".xls"], .entry-content a[href$=".xlsx"], .entry-content a[href$=".DOC"], .entry-content a[href$=".DOCX"], .entry-content a[href$=".PDF"] { font-weight: 600; }
.entry-content p > a[href$=".doc"]:only-child, .entry-content p > a[href$=".docx"]:only-child, .entry-content p > a[href$=".pdf"]:only-child, .entry-content p > a[href$=".odt"]:only-child, .entry-content p > a[href$=".xls"]:only-child, .entry-content p > a[href$=".xlsx"]:only-child { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--text); }
.entry-content p > a[href$=".doc"]:only-child::before, .entry-content p > a[href$=".docx"]:only-child::before, .entry-content p > a[href$=".pdf"]:only-child::before, .entry-content p > a[href$=".odt"]:only-child::before, .entry-content p > a[href$=".xls"]:only-child::before, .entry-content p > a[href$=".xlsx"]:only-child::before { content: ""; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E5E1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 12v6M9 15l3 3 3-3'/%3E%3C/svg%3E") center / 22px no-repeat; }
.entry-content p > a[href$=".doc"]:only-child:hover, .entry-content p > a[href$=".docx"]:only-child:hover, .entry-content p > a[href$=".pdf"]:only-child:hover, .entry-content p > a[href$=".odt"]:only-child:hover, .entry-content p > a[href$=".xls"]:only-child:hover, .entry-content p > a[href$=".xlsx"]:only-child:hover { border-color: var(--leaf); color: var(--green); text-decoration: underline; }

/* Przyciski */
.wp-block-button__link, .wp-element-button { background: var(--green); color: #fff; border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; display: inline-block; }
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--green-dark); color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link, .is-style-outline .wp-block-button__link { background: transparent; color: var(--green); border: 2px solid var(--green); }
.wp-block-buttons { margin: 1.5em 0; }

/* Mapa (WP Go Maps) i osadzenia */
.entry-content .wpgmza_map, .entry-content .wpgmza-map, .entry-content iframe { max-width: 100%; border-radius: 12px; }
.entry-content .wpgmza_map { width: 100% !important; margin: 1.5em 0; border: 1px solid var(--border); }

/* Kolory palety edytora */
.has-green-color { color: var(--green); } .has-green-background-color { background-color: var(--green); }
.has-leaf-color { color: var(--leaf); } .has-leaf-background-color { background-color: var(--leaf); }
.has-cream-color { color: var(--cream); } .has-cream-background-color { background-color: var(--cream); }
.has-text-background-color { background-color: var(--text); }
.has-accent-color { color: var(--accent); } .has-accent-background-color { background-color: var(--accent); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
	.head-phone .txt { display: none; }
	.nav a { padding: 8px 9px; }
}
@media (max-width: 960px) {
	.menu-btn { display: block; }
	.head-phone { padding: 10px; border-radius: 10px; }
	.nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
	.nav.open { display: block; }
	.nav ul { flex-direction: column; padding: 8px 16px 16px; }
	.nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
	.nav li:last-child a { border-bottom: 0; }
	.nav a[aria-current], .nav .current-menu-item > a, .nav .current_page_item > a { box-shadow: inset 4px 0 0 var(--green); }
	.site-header .wrap { gap: 10px; }
	.tiles, .cards { grid-template-columns: 1fr 1fr; }
	.fees-grid, .contact-grid { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.section { padding: 52px 0; }
	.wrap { padding: 0 18px; }
	.site-header .wrap { min-height: 66px; }
	.brand-name { font-size: 1.05rem; }
	.brand-sub { display: none; }
	.hero .wrap { padding-top: 76px; padding-bottom: 84px; }
	.hero .lead { font-size: 1.05rem; }
	.btn { flex: 1 1 100%; }
	.notice-box { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
	.notice-ico { display: none; }
	.tiles, .cards { grid-template-columns: 1fr; }
	.tile { padding: 18px; }
	.fees-table th, .fees-table td { padding: 12px 14px; }
	.acct { font-size: 1.1rem; }
	.foot-grid { grid-template-columns: 1fr; }
	.page-header { padding: 40px 0 32px; }
	.content-wrap { padding-top: 32px; padding-bottom: 56px; }
	.list-item { padding: 20px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; text-align: left; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}
@media print {
	.site-header, .menu-btn, .copy, .site-footer .foot-grid > div:last-child { display: none; }
	body { background: #fff; }
}
