/* EduŁódź – style całego serwisu (prefiks edl-) */
:root {
	--edl-board: #1E4D40;
	--edl-board-dark: #143429;
	--edl-crayon: #B5531C;
	--edl-crayon-dark: #8F3F12;
	--edl-crayon-soft: #FBEBDF;
	--edl-paper: #FBFAF6;
	--edl-grid: #EEF3F8;
	--edl-gridline: #D9E4EF;
	--edl-margin: #D9534F;
	--edl-ink: #1C2422;
	--edl-muted: #55605C;
	--edl-line: #D6DDE3;
	--edl-marker: #F6E27A;
	--font-sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-serif: 'PT Serif', Georgia, 'Times New Roman', serif;
}
body { font-family: var(--font-sans); color: var(--edl-ink); background: var(--edl-paper); }
h1, h2, h3, h4, .entry-title, .post-card__title, .site-branding__name, .page-title { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0; }

/* Nagłówek: linijka z podziałką pod spodem */
.site-header { position: relative; border-bottom: 0; background: #fff; }
.site-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; z-index: 2;
	background:
		repeating-linear-gradient(90deg, var(--edl-board) 0 1px, transparent 1px 10px) 0 0 / 100% 4px no-repeat,
		repeating-linear-gradient(90deg, var(--edl-board) 0 2px, transparent 2px 50px) 0 0 / 100% 8px no-repeat,
		#F3E6C4;
}
.primary-nav .menu { gap: .2rem; flex-wrap: nowrap; }
.primary-nav .menu > li > a {
	font-weight: 600; font-size: .95rem; white-space: nowrap; padding: .5rem .7rem; border-radius: 3px;
	background-image: linear-gradient(transparent 62%, var(--edl-marker) 62%, var(--edl-marker) 92%, transparent 92%);
	background-repeat: no-repeat; background-size: 0 100%; background-position: left; transition: background-size .25s ease;
}
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-category-ancestor > a,
.primary-nav .menu > li.current-post-ancestor > a { color: var(--edl-board-dark); background-size: 100% 100%; }
@media (max-width: 1100px) { .primary-nav .menu > li > a { padding: .5rem .45rem; font-size: .9rem; } }

/* Przyciski */
.edl-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.15rem; border-radius: 3px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .95rem; font-family: var(--font-sans); line-height: 1.2; }
.edl-btn--chalk { background: var(--edl-crayon); color: #fff; box-shadow: 3px 3px 0 var(--edl-board-dark); }
.edl-btn--chalk:hover { background: var(--edl-crayon-dark); color: #fff; }
.edl-btn--line { border-color: var(--edl-board); color: var(--edl-board); background: transparent; }
.edl-btn--line:hover { background: var(--edl-board); color: #fff; }
.edl-btn--ghost { background: transparent; color: var(--edl-muted); text-decoration: underline; }
.btn--primary, .btn--accent { border-radius: 3px; }

/* Karty wpisów motywu – kartka z przesuniętym cieniem */
.post-card { border: 1px solid var(--edl-line); border-radius: 3px; box-shadow: 4px 4px 0 var(--edl-gridline); transition: box-shadow .2s, transform .2s; background: #fff; }
.post-card:hover { box-shadow: 6px 6px 0 var(--edl-crayon-soft); transform: translate(-2px, -2px); }

/* Okruszki */
.breadcrumbs, .breadcrumb, .yoast-breadcrumbs { font-size: .88rem; color: var(--edl-muted); }
.breadcrumbs a, .breadcrumb a, .yoast-breadcrumbs a { color: var(--edl-board); text-decoration-style: dotted; }

/* Treść wpisów */
.entry-content h2 { display: inline; background: linear-gradient(transparent 60%, var(--edl-marker) 60%, var(--edl-marker) 90%, transparent 90%); padding: 0 .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.entry-content h2::after { content: ""; display: block; margin-bottom: .6rem; }
.entry-content h3 { color: var(--edl-board); }
.entry-content a { color: var(--edl-board); text-decoration-color: var(--edl-crayon); text-underline-offset: 2px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th { background: var(--edl-board); color: #fff; text-align: left; }
.entry-content th, .entry-content td { padding: .55rem .75rem; border: 1px solid var(--edl-line); }
.entry-content tr:nth-child(even) td { background: var(--edl-grid); }
.entry-content figcaption, .edl-photo-credit { font-size: .85rem; color: var(--edl-muted); border-top: 1px dashed var(--edl-line); padding-top: .4rem; }
.entry-content blockquote { border-left: 4px solid var(--edl-margin); background: var(--edl-grid); padding: 1rem 1.2rem; font-style: normal; }
.entry-content ol li::marker { color: var(--edl-crayon); font-weight: 700; }

/* Stopka: tablica szkolna */
.site-footer { background: var(--edl-board-dark); color: #DCE8E2; position: relative; margin-top: 3rem; border-top: 10px solid #7A5534; }
.site-footer::before { content: ""; position: absolute; left: 8%; top: -16px; width: 64px; height: 6px; background: #F4F1E8; border-radius: 2px; box-shadow: 80px 0 0 #E8C25A; }
.site-footer a { color: #fff; }
.site-footer .footer-col__title, .site-footer .footer-brand__name { color: #fff; font-family: var(--font-serif); }
.site-footer .footer-bottom { border-top-color: rgba(255,255,255,.18); color: #B8CCC3; }

/* Formularz kontaktowy */
.edl-kontakt input, .edl-kontakt textarea { border: 1px solid var(--edl-line); border-radius: 3px; padding: .6rem .7rem; font: inherit; box-sizing: border-box; background: #fff; }
.edl-kontakt input:focus, .edl-kontakt textarea:focus { outline: 2px solid var(--edl-board); }

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

/* Kategorie: nagłówek działu i ściąga FAQ */
.edl-cat-header { border-bottom: 2px solid var(--edl-board); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.edl-cat-header__eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--edl-board); padding: .2rem .6rem; border-radius: 3px; }
.edl-cat-intro { background: var(--edl-grid); border-left: 4px solid var(--edl-margin); padding: .8rem 1rem; margin-top: .8rem; }
.edl-cat-intro p { margin: .3rem 0; }
.edl-cat-header__count { font-size: .88rem; color: var(--edl-muted); margin: .6rem 0 0; }
.edl-cat-faq { margin-top: 2.2rem; background: #FFFDF2; border: 1px solid var(--edl-line); box-shadow: 4px 4px 0 var(--edl-gridline); padding: 1.2rem 1.4rem; border-radius: 3px; }
.edl-cat-faq h2 { margin-top: 0; font-size: 1.3rem; color: var(--edl-crayon-dark); }
.edl-cat-faq details { border-top: 1px dashed var(--edl-line); padding: .6rem 0; }
.edl-cat-faq summary { cursor: pointer; font-weight: 600; }
.edl-cat-empty { padding: 1rem; background: var(--edl-grid); }

/* Oceny wpisów */
.edl-rate { margin: 2rem 0 1rem; padding: 1rem 1.2rem; border: 2px dashed var(--edl-board); border-radius: 3px; background: #fff; }
.edl-rate__q { margin: 0 0 .4rem; font-weight: 700; font-family: var(--font-serif); }
.edl-rate__stars button { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--edl-line); cursor: pointer; padding: 0 .1rem; }
.edl-rate__stars button.is-on { color: var(--edl-crayon); }
.edl-rate__sum { margin: .4rem 0 0; font-size: .9rem; color: var(--edl-muted); }
.edl-rate.is-done .edl-rate__stars button { cursor: default; }
