/* Gminne Sprawy – style całego serwisu (prefiks grk-). */
:root {
	--grk-chaber: #1E3A5F;
	--grk-chaber-d: #142842;
	--grk-dach: #A23B2A;
	--grk-zboze: #D9A441;
	--grk-laka: #4C7A3A;
	--grk-len: #F7F4EC;
	--grk-ink: #1A2230;
	--grk-muted: #4A5563;
	--grk-line: #E2DDD0;
	--grk-field: repeating-linear-gradient(90deg, #4C7A3A 0 46px, #D9A441 46px 80px, #7E9B4E 80px 118px, #E6C477 118px 150px);
}
body { font-family: 'Open Sans', system-ui, sans-serif; color: var(--grk-ink); }
h1, h2, h3, h4, .site-title, .entry-title, .archive-title, .post-card__title { font-family: 'Source Serif 4', Georgia, serif; letter-spacing: -0.01em; }

/* Nagłówek: pas „pól” pod spodem */
.site-header { border-bottom: 0; box-shadow: none; position: relative; }
.site-header::after { content: ""; display: block; height: 6px; background: var(--grk-field); }
.custom-logo { max-height: 56px; width: auto; }

/* Menu: czerwony „daszek” pod aktywną pozycją */
.primary-nav a { font-weight: 600; position: relative; }
.primary-nav .current-menu-item > a,
.primary-nav .current-category-ancestor > a,
.primary-nav a:hover { color: var(--grk-dach); }
.primary-nav .current-menu-item > a::after,
.primary-nav .current-category-ancestor > a::after {
	content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 7px; transform: translateX(-50%);
	background: var(--grk-dach); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Okruszki */
.breadcrumb, .breadcrumbs { font-size: .875rem; color: var(--grk-muted); }
.breadcrumb a, .breadcrumbs a { color: var(--grk-chaber); text-decoration: underline dotted; text-underline-offset: 3px; }

/* Karty wpisów: obramowanie, złota stopka przy hover */
.post-card { border: 1px solid var(--grk-line); border-radius: 6px; box-shadow: none; overflow: hidden; transition: border-color .2s, transform .2s; border-bottom: 3px solid var(--grk-line); }
.post-card:hover { transform: translateY(-2px); border-color: var(--grk-chaber); border-bottom-color: var(--grk-zboze); }
.post-card__categories a { background: var(--grk-len); color: var(--grk-chaber); border: 1px solid var(--grk-line); border-radius: 3px; }

/* Treść wpisu */
.entry-content h2 { position: relative; padding-left: 16px; border-bottom: 1px dashed var(--grk-line); padding-bottom: 6px; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .55em; width: 5px; background: var(--grk-zboze); border-radius: 2px; }
.entry-content a { color: var(--grk-chaber); text-decoration-color: var(--grk-zboze); text-underline-offset: 3px; }
.entry-content blockquote { border-left: 0; background: var(--grk-len); border-top: 3px solid var(--grk-laka); padding: 18px 22px; border-radius: 0 0 6px 6px; font-style: normal; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content th { background: var(--grk-chaber); color: #fff; text-align: left; }
.entry-content th, .entry-content td { border: 1px solid var(--grk-line); padding: 8px 10px; }
.entry-content tr:nth-child(even) td { background: var(--grk-len); }
.entry-content figcaption, .wp-caption-text { font-size: .82rem; color: var(--grk-muted); border-left: 3px solid var(--grk-zboze); padding-left: 8px; }
.grk-photo-credit { font-size: .8rem; color: var(--grk-muted); }
.entry-content .grk-zobacz { background: var(--grk-len); border-left: 4px solid var(--grk-laka); padding: 12px 16px; border-radius: 0 4px 4px 0; }

/* Przyciski */
.btn--primary, .entry-content .wp-block-button__link { background: var(--grk-chaber); border-radius: 4px; }
.btn--primary:hover { background: var(--grk-dach); }

/* Kategorie */
.grk-cat-header { border: 1px solid var(--grk-line); border-top: 6px solid transparent; border-image: var(--grk-field) 6 0 0 0 / 6px 0 0 0; background: #fff; padding: 22px 24px; border-radius: 0 0 6px 6px; margin-bottom: 24px; }
.grk-cat-header__eyebrow { text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; color: var(--grk-dach); font-weight: 700; }
.grk-cat-header__count { font-size: .875rem; color: var(--grk-muted); margin: 8px 0 0; }
.grk-cat-faq { margin-top: 36px; background: var(--grk-len); padding: 22px 24px; border-radius: 6px; }
.grk-cat-faq details { border-bottom: 1px dashed var(--grk-line); padding: 10px 0; }
.grk-cat-faq summary { cursor: pointer; font-weight: 700; color: var(--grk-chaber); }

/* Oceny */
.grk-rate { margin: 36px 0 8px; padding: 18px 20px; border: 1px dashed var(--grk-chaber); border-radius: 6px; background: var(--grk-len); }
.grk-rate__q { font-weight: 700; margin: 0 0 6px; }
.grk-rate__stars button { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #c9c2b0; cursor: pointer; padding: 0 2px; }
.grk-rate__stars button.is-on { color: var(--grk-zboze); }
.grk-rate.is-done .grk-rate__stars button { cursor: default; }
.grk-rate__sum { margin: 6px 0 0; font-size: .9rem; color: var(--grk-muted); }

/* Formularz kontaktowy */
.grk-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.grk-form input[type=text], .grk-form input[type=email], .grk-form textarea { width: 100%; max-width: 620px; border: 1px solid var(--grk-line); border-radius: 4px; padding: 10px 12px; font: inherit; box-sizing: border-box; }
.grk-form input:focus, .grk-form textarea:focus { outline: 2px solid var(--grk-zboze); border-color: var(--grk-chaber); }
.grk-form__hp { position: absolute; left: -9999px; }
.grk-form__rodo { font-size: .82rem; color: var(--grk-muted); max-width: 620px; }
.grk-form__info { background: var(--grk-len); border-left: 4px solid var(--grk-laka); padding: 10px 14px; }

/* Stopka */
.site-footer { background: var(--grk-chaber-d); color: #e8ecf2; position: relative; }
.site-footer::before { content: ""; display: block; height: 6px; background: var(--grk-field); position: absolute; top: 0; left: 0; right: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--grk-zboze); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); }
.grk-indep { background: var(--grk-chaber-d); color: #cfd8e4; font-size: .8rem; padding: 10px 0 16px; text-align: center; }
.grk-indep a { color: var(--grk-zboze); }

@media (max-width: 600px) {
	.grk-cat-header { padding: 16px; }
}
