/* Przy Potoku – style całego serwisu (prefiks wpk-) */
:root {
	--wpk-mech: #46572F;
	--wpk-mech-2: #5A6E3C;
	--wpk-mech-soft: #EEF0E2;
	--wpk-kora: #2A2118;
	--wpk-miod: #9A5F10;
	--wpk-miod-jasny: #E2A64B;
	--wpk-miod-soft: #F6E7CC;
	--wpk-len: #F8F3E6;
	--wpk-potok: #7FB3C2;
	--wpk-potok-ciemny: #2F6E80;
	--wpk-linia: #E3DCCB;
	--wpk-tekst: #2A2118;
	--wpk-szary: #5E5446;
	--wpk-kamyk: 22px 14px 26px 12px;
	--font-sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-serif: 'Crimson Pro', Georgia, serif;
}
body { font-family: var(--font-sans); color: var(--wpk-tekst); background: #FFFDF7; }
h1, h2, h3, h4, .entry-title, .post-card__title, .site-branding__name, .page-header__title { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0; }
.entry-content h2 { font-size: 1.75rem; }

/* Nagłówek: falująca linia potoku pod spodem */
.site-header { border-bottom: 0; position: sticky; }
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8' viewBox='0 0 60 8'%3E%3Cpath d='M0 4 C10 0 20 8 30 4 S50 0 60 4' fill='none' stroke='%237FB3C2' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x;
}
.primary-nav .menu { flex-wrap: nowrap; gap: .15rem; }
.primary-nav .menu > li > a { font-weight: 600; color: var(--wpk-tekst); position: relative; padding: .55rem .7rem; border-radius: 0; }
.primary-nav .menu > li > a::after {
	content: ""; position: absolute; left: 50%; bottom: .1rem; width: 9px; height: 6px; border-radius: 50%;
	background: var(--wpk-miod-jasny); transform: translateX(-50%) scale(0); transition: transform .2s ease;
}
.primary-nav .menu > li > a:hover, .primary-nav .menu > li.current-menu-item > a { color: var(--wpk-mech); background: transparent; }
.primary-nav .menu > li > a:hover::after, .primary-nav .menu > li.current-menu-item > a::after, .primary-nav .menu > li.current-category-ancestor > a::after { transform: translateX(-50%) scale(1); }
@media (max-width: 1180px) { .primary-nav .menu > li > a { padding: .5rem .45rem; font-size: .88rem; } }

/* Przyciski */
.wpk-btn, .btn--primary, .btn--accent { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; border-radius: 999px; background: var(--wpk-mech); color: #fff; font-weight: 600; text-decoration: none; border: 0; }
.wpk-btn:hover, .btn--primary:hover { background: var(--wpk-kora); color: #fff; }
.wpk-btn--jasny { background: var(--wpk-miod-jasny); color: var(--wpk-kora); }
.wpk-btn--jasny:hover { background: #fff; color: var(--wpk-kora); }
.wpk-link { background: none; border: 0; padding: 0; color: var(--wpk-mech); text-decoration: underline; cursor: pointer; font: inherit; }

/* Karty wpisów motywu: „kamyk” */
.post-card { border: 1px solid var(--wpk-linia); border-radius: var(--wpk-kamyk); box-shadow: none; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: 0 10px 24px -14px rgba(42, 33, 24, .45); transform: translateY(-2px); }
.post-card__category, .post-card__cat { color: var(--wpk-miod); }

/* Nagłówek archiwów */
.page-header { background: linear-gradient(160deg, var(--wpk-kora) 0%, var(--wpk-mech) 100%); }
.page-header__eyebrow { color: var(--wpk-miod-jasny); }

/* Treść wpisów */
.entry-content a { color: var(--wpk-potok-ciemny); text-decoration: underline; text-underline-offset: 2px; }
.entry-content h2 { position: relative; padding-left: 1.4rem; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .55em; width: .85rem; height: .55rem; border-radius: 50%; background: var(--wpk-potok); box-shadow: 4px -4px 0 -1px var(--wpk-mech); }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; border: 1px solid var(--wpk-linia); border-radius: 12px; overflow: hidden; }
.entry-content th { background: var(--wpk-mech); color: #fff; text-align: left; }
.entry-content th, .entry-content td { padding: .6rem .8rem; border-bottom: 1px solid var(--wpk-linia); vertical-align: top; }
.entry-content tbody tr:nth-child(odd) td { background: var(--wpk-len); }
.entry-content figcaption, .wpk-photo-credit { font-size: .85rem; color: var(--wpk-szary); font-style: italic; padding-top: .3rem; }
.entry-content blockquote { border: 0; border-radius: var(--wpk-kamyk); background: var(--wpk-mech-soft); padding: 1rem 1.3rem; font-style: normal; }
.entry-content ul li::marker { color: var(--wpk-mech); }
.author-box__bio:empty { display: none; }

/* Stopka: kora z potokiem u góry */
.site-footer { background: var(--wpk-kora); color: #E7DFCF; position: relative; margin-top: 4rem; }
.site-footer::before {
	content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='14' viewBox='0 0 90 14'%3E%3Cpath d='M0 14 V8 C15 2 30 12 45 7 S75 2 90 8 V14Z' fill='%232A2118'/%3E%3Cpath d='M0 8 C15 2 30 12 45 7 S75 2 90 8' fill='none' stroke='%237FB3C2' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--wpk-miod-jasny); }
.site-footer .footer-col__title, .site-footer .footer-brand__name { color: #fff; font-family: var(--font-serif); font-size: 1.25rem; }
.site-footer .footer-bottom { border-top-color: rgba(255, 255, 255, .14); color: #CFC5B1; }

/* Formularz kontaktowy */
.wpk-kontakt input, .wpk-kontakt textarea { border: 1px solid var(--wpk-linia); border-radius: 12px; padding: .65rem .8rem; font: inherit; box-sizing: border-box; background: #fff; }
.wpk-kontakt input:focus, .wpk-kontakt textarea:focus { outline: 2px solid var(--wpk-potok-ciemny); outline-offset: 1px; }
.wpk-kontakt__rodo { font-size: .85rem; color: var(--wpk-szary); max-width: 640px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Logo */
.custom-logo { max-height: 58px; width: auto; }
@media (max-width: 760px) { .custom-logo { max-height: 46px; } }

/* Kategorie: nagłówek działu i FAQ */
.wpk-cat-header { border-bottom: 0; padding-bottom: 1rem; margin-bottom: 1.5rem; position: relative; }
.wpk-cat-header::after { content: ""; display: block; height: 8px; margin-top: 1rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='8' viewBox='0 0 60 8'%3E%3Cpath d='M0 4 C10 0 20 8 30 4 S50 0 60 4' fill='none' stroke='%237FB3C2' stroke-width='2.5'/%3E%3C/svg%3E") repeat-x; }
.wpk-cat-header__eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--wpk-miod); }
.wpk-cat-intro { background: var(--wpk-len); border-radius: var(--wpk-kamyk); padding: 1rem 1.3rem; color: var(--wpk-tekst); }
.wpk-cat-intro p { margin: .4rem 0; }
.wpk-cat-header__count { font-size: .9rem; color: var(--wpk-szary); }
.wpk-cat-faq { margin-top: 3rem; }
.wpk-cat-faq h2 { font-size: 1.6rem; }
.wpk-cat-faq details { border-bottom: 1px solid var(--wpk-linia); }
.wpk-cat-faq summary { cursor: pointer; padding: .8rem 0; font-weight: 600; }
.wpk-cat-faq details p { margin: 0 0 .9rem; color: var(--wpk-szary); }

/* Oceny wpisów */
.wpk-rate { margin: 2.5rem 0 1rem; padding: 1.2rem 1.4rem; border: 2px dashed var(--wpk-mech); border-radius: 22px; background: #fff; }
.wpk-rate__q { margin: 0 0 .4rem; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; }
.wpk-rate__stars button { background: none; border: 0; padding: 0 .1rem; font-size: 1.8rem; line-height: 1; color: var(--wpk-linia); cursor: pointer; }
.wpk-rate__stars button.is-on { color: var(--wpk-miod-jasny); }
.wpk-rate.is-done .wpk-rate__stars button { cursor: default; }
.wpk-rate__sum { margin: .4rem 0 0; font-size: .92rem; color: var(--wpk-szary); }
