/* ============================================================
   etr.css — tekst łatwy do czytania (ETR)
   Plain layout, Atkinson Hyperlegible, wysoki kontrast.
   Zgodne z Inclusion Europe + PSONI rekomendacjami.
   ============================================================ */

body.etr-page {
	font-family: 'Atkinson Hyperlegible', 'Verdana', system-ui, sans-serif;
	font-size: 20px;
	line-height: 1.7;
	color: #1D1932;          /* granat NPZ, kontrast > 12:1 na białym */
	background: #ffffff;
	margin: 0;
	padding: 0;
	text-align: left;        /* nigdy nie justujemy w ETR */
	-webkit-font-smoothing: antialiased;
}

.etr-page .etr-header {
	background: #f7f7f5;
	border-bottom: 2px solid #1D1932;
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.etr-page .etr-brand {
	text-decoration: none;
	color: inherit;
}
.etr-page .etr-brand-logo {
	max-height: 48px;
	width: auto;
	display: block;
}
.etr-page .etr-brand-text {
	font-weight: 700;
	font-size: 22px;
}

.etr-page .etr-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1D1932;
	text-decoration: underline;
	font-weight: 700;
	font-size: 18px;
	padding: 8px 0;
	min-height: 44px;        /* touch target WCAG */
}
.etr-page .etr-back-link:hover,
.etr-page .etr-back-link:focus-visible {
	color: #68B42D;          /* zielony NPZ */
	outline: 3px solid #68B42D;
	outline-offset: 2px;
}

.etr-page .etr-main {
	max-width: 660px;        /* ETR rekomendacja: nie za szeroka kolumna */
	margin: 32px auto;
	padding: 0 24px;
}

.etr-page .etr-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 24px;
	line-height: 1.3;
	color: #1D1932;
}

.etr-page .etr-content h2 {
	font-size: 26px;
	font-weight: 700;
	margin: 32px 0 12px;
	line-height: 1.3;
	color: #34611A;          /* ciemna zieleń NPZ */
}

.etr-page .etr-content h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 24px 0 8px;
	line-height: 1.3;
}

.etr-page .etr-content p {
	margin: 0 0 16px;
	font-size: 20px;
	line-height: 1.7;
}

.etr-page .etr-content ul,
.etr-page .etr-content ol {
	margin: 16px 0;
	padding-left: 28px;
}

.etr-page .etr-content li {
	margin-bottom: 12px;
	font-size: 20px;
	line-height: 1.7;
}

.etr-page .etr-content a {
	color: #1D1932;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.etr-page .etr-content a:hover,
.etr-page .etr-content a:focus-visible {
	color: #68B42D;
	outline: 3px solid #68B42D;
	outline-offset: 2px;
}

/* Boks "O tym tekście" — separator wizualny */
.etr-page .etr-info {
	margin-top: 48px;
	padding: 24px;
	border: 2px solid #1D1932;
	border-radius: 8px;
	background: #f7f7f5;
}
.etr-page .etr-info h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #1D1932;
}
.etr-page .etr-info p {
	margin: 0 0 8px;
	font-size: 18px;
}
.etr-page .etr-info p:last-child {
	margin-top: 12px;
}
/* Oficjalne logo Easy-to-Read (Inclusion Europe) + wymagana atrybucja.
   Kolor #333399, rozmiar > 15 mm (min. wg zasad Inclusion Europe). */
.etr-page .etr-info .etr-logo {
	width: 72px;
	height: 72px;
	display: block;
	margin: 0 0 16px;
}
.etr-page .etr-info .etr-attribution {
	margin-top: 16px;
	font-size: 14px;
	color: #555;
}
.etr-page .etr-info .etr-attribution a { color: #333399; }

/* Hide WP admin bar / Kadence elements on ETR pages */
.etr-page #wpadminbar { display: none !important; }
.etr-page html { margin-top: 0 !important; }

/* ====== ETR INDEX (/etr/) — lista 14 urządzeń (reguły wcześniej zaginęły) ====== */
.etr-index-list {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
}
.etr-index-item { margin: 0 0 12px; }
.etr-index-link {
	display: block;
	font-family: 'Atkinson Hyperlegible', 'Verdana', sans-serif;
	font-size: 20px;
	line-height: 1.5;
	color: #1a4d8f;
	text-decoration: underline;
	background: #f6f6f6;
	border: 1px solid #d4d4d4;
	border-radius: 8px;
	padding: 16px 20px;
	transition: background 0.15s ease;
}
.etr-index-link:hover,
.etr-index-link:focus-visible { background: #e8eef7; }
.etr-index-link:focus-visible { outline: 3px solid #1D1932; outline-offset: 2px; }

/* WCAG AA — hover/focus linków ETR: zieleń #68B42D→#3E6E1B (6.09:1) */
.etr-page .etr-back-link:hover,
.etr-page .etr-back-link:focus-visible,
.etr-page .etr-content a:hover,
.etr-page .etr-content a:focus-visible{ color:#3E6E1B; outline-color:#3E6E1B; }
