/* Amur Wilga – style całego serwisu (prefiks amw-) */
:root {
	--amw-walnut: #3A2A21;
	--amw-walnut-deep: #24190F;
	--amw-brick: #A9472A;
	--amw-ochre: #C9962B;
	--amw-ochre-dark: #8A6414;
	--amw-olive: #5C6B3C;
	--amw-lime: #F6F1E8;
	--amw-line: #E2D8CA;
	--amw-text: #2A211B;
	--amw-muted: #5E5248;
	--font-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-serif: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body { font-family: var(--font-sans); color: var(--amw-text); font-size: 17px; }
h1, h2, h3, h4, .entry-title, .post-card__title, .site-branding__name, .footer-brand__name { font-family: var(--font-serif); letter-spacing: -.015em; }

/* Nagłówek: „mur z cegieł” pod spodem */
.site-header { position: relative; border-bottom: 0; }
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; z-index: 2;
	background:
		repeating-linear-gradient(90deg, var(--amw-brick) 0 22px, var(--amw-lime) 22px 24px) 0 0 / 100% 3px no-repeat,
		repeating-linear-gradient(90deg, var(--amw-brick) 0 11px, var(--amw-lime) 11px 13px, var(--amw-brick) 13px 24px) 0 3px / 100% 3px no-repeat;
}
.primary-nav .menu { gap: .15rem; flex-wrap: nowrap; }
.primary-nav .menu > li > a { font-family: var(--font-serif); font-weight: 600; font-size: .9rem; white-space: nowrap; padding: .5rem .65rem; position: relative; }
.primary-nav .menu > li > a::after { content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .15rem; height: 2px; background: var(--amw-brick); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.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: scaleX(1); }
@media (max-width: 1180px) { .primary-nav .menu > li > a { padding: .5rem .42rem; font-size: .84rem; } .primary-nav .menu > li > a::after { left: .42rem; right: .42rem; } }

/* Przyciski */
.amw-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.15rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .93rem; font-family: var(--font-serif); background: transparent; border-radius: 0; }
.amw-btn--brick { background: var(--amw-brick); color: #fff; }
.amw-btn--brick:hover { background: #8C3A22; color: #fff; }
.amw-btn--line { border-color: var(--amw-walnut); color: var(--amw-walnut); }
.amw-btn--line:hover { background: var(--amw-walnut); color: #fff; }
.btn--primary, .btn--accent { border-radius: 0; }

/* Karty wpisów motywu: kątownik w rogu przy hover */
.post-card { border: 1px solid var(--amw-line); border-radius: 0; box-shadow: none; position: relative; transition: border-color .2s; }
.post-card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 0; height: 0; border-right: 4px solid var(--amw-brick); border-bottom: 4px solid var(--amw-brick); transition: width .2s, height .2s; }
.post-card:hover { border-color: #CDBFAD; }
.post-card:hover::after { width: 34px; height: 34px; }
.post-card__thumbnail-link img { border-radius: 0; }

/* Treść wpisów */
.entry-content h2 { border-bottom: 1px solid var(--amw-line); padding-bottom: .35rem; }
.entry-content h2::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .55rem; background: var(--amw-brick); box-shadow: 4px 4px 0 var(--amw-ochre); vertical-align: .1em; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content th { background: var(--amw-walnut); color: #fff; text-align: left; }
.entry-content th, .entry-content td { padding: .55rem .75rem; border: 1px solid var(--amw-line); }
.entry-content tr:nth-child(even) td { background: var(--amw-lime); }
.entry-content figcaption, .amw-photo-credit, .amw-zrodlo { font-size: .86rem; color: var(--amw-muted); border-top: 1px dashed #CDBFAD; padding-top: .45rem; }
.entry-content blockquote { border-left: 0; border-top: 3px solid var(--amw-brick); background: var(--amw-lime); padding: 1rem 1.2rem; font-style: normal; }
.entry-content a { color: var(--amw-brick); }

/* Breadcrumbs */
.breadcrumbs, .yoast-breadcrumbs, #breadcrumbs { font-size: .88rem; }
.breadcrumbs a, #breadcrumbs a { color: var(--amw-brick); }

/* Formularz kontaktowy */
.amw-kontakt input, .amw-kontakt textarea { border: 1px solid #CDBFAD; padding: .6rem .7rem; font: inherit; border-radius: 0; }
.amw-kontakt input:focus, .amw-kontakt textarea:focus { outline: 2px solid var(--amw-brick); }
.amw-kontakt__rodo { color: var(--amw-muted); }

/* Stopka: orzech z „cegłami” u góry */
.site-footer { background: var(--amw-walnut-deep); color: #E8DFD3; position: relative; border-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--amw-brick) 0 34px, var(--amw-walnut-deep) 34px 37px); }
.site-footer a { color: #F6F1E8; }
.site-footer a:hover { color: var(--amw-ochre); }
.footer-col__title { color: var(--amw-ochre); font-family: var(--font-serif); }
.footer-bottom { border-top: 1px solid rgba(232, 223, 211, .15); }

/* Kategorie: opis działu i FAQ */
.amw-cat-header { border-bottom: 1px solid var(--amw-line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.amw-cat-header__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--amw-brick); }
.amw-cat-intro { background: var(--amw-lime); border-left: 5px solid var(--amw-brick); padding: .9rem 1.1rem; margin-top: .8rem; }
.amw-cat-intro p { margin: .3rem 0; }
.amw-cat-header__count { font-size: .88rem; color: var(--amw-muted); margin: .6rem 0 0; }
.amw-cat-faq { margin-top: 2.5rem; border: 2px solid var(--amw-walnut); padding: 1.2rem 1.4rem; }
.amw-cat-faq h2 { margin-top: 0; font-size: 1.25rem; }
.amw-cat-faq details { border-top: 1px solid var(--amw-line); padding: .7rem 0; }
.amw-cat-faq summary { cursor: pointer; font-weight: 700; color: var(--amw-walnut); }
.amw-cat-faq details p { margin: .5rem 0 0; color: var(--amw-muted); }

/* Oceny wpisów */
.amw-rate { margin: 2.2rem 0 0; padding: 1rem 1.2rem; background: var(--amw-lime); border-top: 3px solid var(--amw-ochre); }
.amw-rate__q { margin: 0 0 .4rem; font-weight: 700; font-family: var(--font-serif); color: var(--amw-walnut); }
.amw-rate__stars button { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: #CDBFAD; cursor: pointer; padding: 0 .1rem; }
.amw-rate__stars button.is-on { color: var(--amw-brick); }
.amw-rate.is-done .amw-rate__stars button { cursor: default; }
.amw-rate__sum { margin: .4rem 0 0; font-size: .9rem; color: var(--amw-muted); }
