/* Fundacja 22q11 — dodatki dla WordPressa (uzupełnienie skompilowanego main.css). */

/* Bez JS treść z animacją pojawiania się ma być widoczna. */
html:not(.js) .reveal,
html:not(.js) .reveal-mask,
html:not(.js) .reveal-slide { opacity: 1; transform: none; clip-path: none; }

/* Pasek administracyjny WordPressa */
.admin-bar header.sticky,
.admin-bar header.fixed { top: 32px; }
@media (max-width: 782px) {
	.admin-bar header.sticky,
	.admin-bar header.fixed { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar header.sticky { top: 0; }
	.admin-bar header.fixed { top: 0; position: absolute; }
	.admin-bar.f22-header-overlay header.fixed { top: 46px; }
}

html { scroll-padding-top: 6rem; }

/* ---------- Treść z edytora (wpisy, zwykłe strony) ---------- */
.f22-entry { color: var(--color-foreground); font-size: 1.0625rem; line-height: 1.78; hyphens: auto; }
@media (min-width: 768px) { .f22-entry { font-size: 1.125rem; } }
.f22-entry > * { max-width: 64ch; }
.f22-entry > * + * { margin-top: 1.5rem; }
.f22-entry p { text-align: justify; text-justify: inter-word; }
.f22-entry h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 500; line-height: 1.15; margin-top: 3rem; }
.f22-entry h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin-top: 2.5rem; }
.f22-entry h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-top: 2rem; }
.f22-entry strong { font-weight: 700; }
.f22-entry a:not([class]) { color: var(--color-turquoise-deep); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.f22-entry a:not([class]):hover { color: var(--color-foreground); }
.f22-entry ul, .f22-entry ol { padding-left: 1.25rem; }
.f22-entry ul { list-style: none; padding-left: 0; }
.f22-entry ul > li { position: relative; padding-left: 1.4rem; }
.f22-entry ul > li::before { content: ""; position: absolute; left: 0; top: .72em; width: .4rem; height: .4rem; background: var(--color-turquoise); }
.f22-entry ol { list-style: decimal; }
.f22-entry li + li { margin-top: .5rem; }
.f22-entry blockquote { border-left: 1px solid var(--color-turquoise); padding-left: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; }
.f22-entry figure, .f22-entry img { max-width: 100%; height: auto; }
.f22-entry .wp-block-image, .f22-entry .wp-block-gallery, .f22-entry .wp-block-embed, .f22-entry .wp-block-video { max-width: none; }
.f22-entry figcaption, .f22-entry .wp-element-caption { font-size: .82rem; color: var(--muted-foreground); margin-top: .6rem; text-align: left; }
.f22-entry hr { border: 0; border-top: 1px solid var(--color-hairline); margin: 3rem 0; }
.f22-entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.f22-entry th, .f22-entry td { border-bottom: 1px solid var(--color-hairline); padding: .75rem .5rem; text-align: left; }
.f22-entry .wp-block-button__link { display: inline-flex; align-items: center; gap: .75rem; border-radius: 9999px; background: var(--color-ink); color: var(--color-on-dark); padding: 1rem 2rem; font-size: .8rem; font-weight: 500; text-decoration: none; transition: background .5s; }
.f22-entry .wp-block-button__link:hover { background: var(--color-turquoise-deep); }

/* Galeria WordPressa (gdy nie jest pierwszym blokiem wpisu) */
.wp-block-gallery.has-nested-images { display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-block-gallery.has-nested-images figure.wp-block-image { flex: 1 1 calc(50% - 1rem); margin: 0; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; }

/* Wyrównania obrazów */
.alignleft { float: left; margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Stronicowanie */
.f22-pagination .page-numbers { display: inline-flex; min-width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--color-hairline); padding: 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: border-color .4s, color .4s, background .4s; }
.f22-pagination .page-numbers:hover { border-color: var(--color-turquoise-deep); color: var(--color-turquoise-deep); }
.f22-pagination .page-numbers.current { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-dark); }
.f22-pagination .page-numbers.dots { border-color: transparent; }

/* Czytniki ekranu */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Panel menu mobilnego – pełne tło (w oryginale prześwitywała treść strony). */
#mobile-navigation { background-color: var(--background); }

/* Logotypy partnerów („Wspierają nas”) – stały rozmiar niezależnie od atrybutów width/height,
   sizes="auto", <picture> czy leniwego ładowania dodawanych przez WordPress i wtyczki. */
.marquee-track img,
.marquee-track picture img {
	height: 3.5rem !important;
	width: auto !important;
	max-width: 13rem !important;
	min-width: 0 !important;
	object-fit: contain !important;
	contain-intrinsic-size: none !important;
	flex-shrink: 0;
}
.marquee-track picture { display: contents; }
@media (min-width: 768px) {
	.marquee-track img,
	.marquee-track picture img { height: 4rem !important; }
}
