/*
Theme Name: Galion
Theme URI: https://fundacjagalion.pl/
Template: astra
Description: Motyw potomny Astry dla Fundacji Galion (makieta v3 z 9.11.2026, kierunek A „Kreska” z flagami sygnałowymi). Kolor logo #008BAD, ikony rysowane kreską, przełączniki wielkości tekstu i kontrastu, czcionki lokalne. Opis dla ludzi i agenta: README.md.
Author: Fundacja Galion
Version: 2026.11.1
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: galion
*/

/* ============ 0. Czcionki lokalne (Google Fonts, SIL OFL 1.1 – czcionki/OFL-*.txt). Strona nie łączy się z Google. ============ */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(czcionki/jost-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(czcionki/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(czcionki/atkinson-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(czcionki/atkinson-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(czcionki/atkinson-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(czcionki/atkinson-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ 1. Kolory (jeden kolor logo + jego ciemniejsze i jaśniejsze odcienie) i kroje ============
   Kontrasty WCAG: biały na #008BAD 3,97:1 – na nim tylko duży tekst (od 24 px albo pogrubiony od 19 px);
   #00566B na białym 8,26:1; #003C4C na białym ok. 12:1; #10262E na białym ok. 15:1; #3A5560 na #F1F8FA ok. 7:1. */
:root {
	--g-galion: #008BAD;  /* kolor logo: nagłówek, pasma, kafle */
	--g-glebia: #00566B;  /* tekst i linki na białym, przyciski, podmenu */
	--g-ton: #003C4C;     /* pasek pomocy, stopka */
	--g-mgla: #D9EEF4;    /* linie */
	--g-piana: #F1F8FA;   /* tło sekcji */
	--g-tusz: #10262E;    /* tekst */
	--g-szary: #3A5560;   /* tekst drugorzędny */
	--g-sygnal: #F2C230;  /* obwódka fokusu, ramka „pilne” */
	--g-tekst: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--g-naglowki: "Jost", "Atkinson Hyperlegible Next", system-ui, sans-serif;
	--g-szer: 1200px;
	--g-fala: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 7 q6 -6 12 0 t12 0 t12 0 t12 0' fill='none' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.6'/%3E%3C/svg%3E");
}
/* Wielkość tekstu z paska dostępności (klasa na <html>, zapis w localStorage) */
html { font-size: 100%; }
html.g-tekst-1 { font-size: 112.5%; }
html.g-tekst-2 { font-size: 125%; }

/* ============ 2. Podstawa ============ */
body, button, input, select, textarea, .ast-button, .ast-custom-button { font-family: var(--g-tekst); }
body { font-size: 1.125rem; line-height: 1.6; color: var(--g-tusz); background-color: #fff; }
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
.entry-title, .ast-archive-title { font-family: var(--g-naglowki); font-weight: 500; color: var(--g-glebia); letter-spacing: -0.005em; }
h1, .entry-content h1 { font-size: 2.5rem; line-height: 1.15; }
h2, .entry-content h2 { font-size: 1.875rem; line-height: 1.2; }
h3, .entry-content h3 { font-size: 1.4375rem; line-height: 1.25; }
h4, .entry-content h4 { font-size: 1.25rem; line-height: 1.3; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; margin-bottom: .5em; }
a { color: var(--g-glebia); }
a:hover, a:focus { color: var(--g-ton); }
.entry-content a:not(.g-btn):not(.wp-block-button__link), .g-tresc a { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--g-sygnal) !important; outline-offset: 2px; box-shadow: 0 0 0 5px var(--g-tusz) !important; }
/* Czytelna szerokość wiersza, tekst równo z tytułem (Astra centruje bloki i daje im pełną szerokość) */
.galion .entry-content > :is(p, ul, ol, h2, h3, h4, h5, h6, blockquote, dl, .g-ramka-pilne),
.galion .entry-content[data-ast-blocks-layout] > :is(p, ul, ol, h2, h3, h4, h5, h6, blockquote, dl, .g-ramka-pilne) { max-width: 46rem; margin-left: 0; margin-right: auto; }
.entry-content li { margin-bottom: .35em; }
.g-szer { box-sizing: border-box; width: 100%; max-width: calc(var(--g-szer) + 40px); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.g-ukryty { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Ikony kreską i flagi (sprite SVG wstawiany przez galion_ikony()) */
.g-ik { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: miter; stroke-linecap: square; flex: none; }
.g-flaga-m { width: 30px; height: 30px; flex: none; outline: 2px solid #fff; }
.g-flaga-s { width: 22px; height: 22px; flex: none; outline: 2px solid #fff; }
.g-flaga-xs { width: 18px; height: 18px; flex: none; margin: 3px 2px 0 0; outline: 1.5px solid var(--g-glebia); }

/* Przyciski: proste prostokąty jak w znaku */
.g-btn { display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box; font-family: var(--g-tekst); font-weight: 700; font-size: 1.1875rem; line-height: 1.25; padding: 12px 22px; border: 2px solid transparent; border-radius: 0; white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.g-btn-bialy, .g-btn-bialy:visited { background: #fff; border-color: #fff; color: var(--g-glebia) !important; }
.g-btn-bialy:hover, .g-btn-bialy:focus { background: var(--g-mgla); border-color: var(--g-mgla); color: var(--g-ton) !important; }
.g-btn-obrys-bialy, .g-btn-obrys-bialy:visited { background: transparent; border-color: #fff; color: #fff !important; }
.g-btn-obrys-bialy:hover, .g-btn-obrys-bialy:focus { background: rgba(255, 255, 255, .14); color: #fff !important; }
.g-btn-glebia, .g-btn-glebia:visited { background: var(--g-glebia); border-color: var(--g-glebia); color: #fff !important; }
.g-btn-glebia:hover, .g-btn-glebia:focus { background: var(--g-ton); border-color: var(--g-ton); color: #fff !important; }
.g-link, .g-link:hover, .g-link:focus { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; line-height: inherit; text-decoration: underline; text-transform: none; letter-spacing: 0; cursor: pointer; }

/* ============ 3. Pasek „Potrzebuję pomocy” i przełączniki dostępności ============ */
.g-gora { background: var(--g-ton); color: #fff; font-size: .9375rem; line-height: 1.5; }
.g-gora .g-szer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 6px; padding-bottom: 6px; }
.g-gora a, .g-gora a:visited { color: #fff; font-weight: 700; text-decoration: none; }
.g-gora a:hover, .g-gora a:focus { color: #fff; text-decoration: underline; }
.g-dostep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.g-dostep .g-dostep-etykieta { margin-right: 2px; }
.g-dostep button, .g-dostep button:hover, .g-dostep button:focus { min-height: 28px; margin: 0; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 0; background: transparent; box-shadow: none; color: #fff; font: 700 .9375rem/1.5 var(--g-tekst); text-transform: none; letter-spacing: 0; cursor: pointer; }
.g-dostep button:hover { background: rgba(255, 255, 255, .16); }
.g-dostep button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--g-ton); }

/* ============ 4. Nagłówek w kolorze logo ============ */
.g-naglowek { container: g-naglowek / inline-size; position: relative; z-index: 50; background: var(--g-galion); color: #fff; }
.g-naglowek .g-szer { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.g-logo { display: block; flex: none; line-height: 0; }
.g-logo img { display: block; width: auto; height: 58px; max-width: none; }
.g-logo-tekst { color: #fff; font: 600 1.5rem/1 var(--g-naglowki); }
.g-nav { flex: 1 1 auto; min-width: 0; }
.g-nav ul { margin: 0; padding: 0; list-style: none; }
.g-nav > ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px 22px; }
.g-nav li { position: relative; display: flex; align-items: center; margin: 0; }
.g-nav > ul > li > a, .g-nav > ul > li > a:visited { padding: 6px 0; border-bottom: 2px solid transparent; color: #fff; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.g-nav > ul > li > a:hover,
.g-nav > ul > li.current-menu-item > a, .g-nav > ul > li.current-menu-ancestor > a, .g-nav > ul > li.current-menu-parent > a,
.g-nav > ul > li.current_page_item > a, .g-nav > ul > li.current_page_ancestor > a, .g-nav > ul > li.current_page_parent > a { border-bottom-color: #fff; color: #fff; }
.g-podmenu-przelacz, .g-podmenu-przelacz:hover, .g-podmenu-przelacz:focus { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 34px; margin: 0 0 0 2px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #fff; cursor: pointer; }
.g-podmenu-przelacz svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .15s; }
.g-podmenu-przelacz[aria-expanded="true"] svg { transform: rotate(180deg); }
.g-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 60; min-width: 310px; padding: 8px 0; background: var(--g-glebia); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.g-nav li.g-otwarte > .sub-menu { display: block; }
@media (hover: hover) { .g-nav > ul > li:hover > .sub-menu { display: block; } }
.g-nav .sub-menu li { display: block; }
.g-nav .sub-menu a, .g-nav .sub-menu a:visited { display: block; padding: 9px 18px; color: #fff; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.g-nav .sub-menu a:hover, .g-nav .sub-menu a:focus, .g-nav .sub-menu .current-menu-item > a { background: var(--g-ton); color: #fff; text-decoration: underline; }
.g-menu-przycisk { display: none; }
.g-wesprzyj-btn { flex: none; }
/* Wąski nagłówek (w rem, więc przy większym tekście menu zwija się wcześniej) */
@container g-naglowek (max-width: 64rem) {
	.g-naglowek .g-szer { flex-wrap: wrap; gap: 12px; min-height: 72px; }
	.g-logo img { height: 50px; }
	.g-menu-przycisk, .g-menu-przycisk:hover, .g-menu-przycisk:focus { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 8px 14px; border: 2px solid #fff; border-radius: 0; background: transparent; box-shadow: none; color: #fff; font: 700 1.1875rem/1.2 var(--g-tekst); cursor: pointer; }
	.g-menu-przycisk[aria-expanded="true"] { background: #fff; color: var(--g-glebia); }
	.g-nav { order: 3; flex-basis: 100%; padding: 4px 0 16px; }
	.g-js .g-nav { display: none; }
	.g-js .g-naglowek.g-menu-otwarte .g-nav { display: block; }
	.g-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.g-nav li { display: block; }
	.g-nav > ul > li > a, .g-nav > ul > li > a:visited { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .3); white-space: normal; }
	.g-podmenu-przelacz, .g-podmenu-przelacz:hover, .g-podmenu-przelacz:focus { display: none; }
	.g-nav .sub-menu { display: block; position: static; min-width: 0; padding: 2px 0 8px 18px; background: transparent; box-shadow: none; }
	.g-nav .sub-menu a, .g-nav .sub-menu a:visited { padding: 7px 0; font-size: 1.1875rem; } /* na kolorze logo tylko duży tekst (kontrast 3,97:1) */
	.g-nav .sub-menu a:hover, .g-nav .sub-menu a:focus { background: transparent; }
}
@container g-naglowek (max-width: 34rem) {
	.g-naglowek .g-szer { gap: 10px; }
	.g-logo img { height: 42px; }
	.g-menu-przycisk, .g-menu-przycisk:hover, .g-menu-przycisk:focus { padding: 4px 11px; font-size: 1.375rem; }
	.g-menu-przycisk .g-slowo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
	.g-wesprzyj-btn { padding: 8px 12px; font-size: 1.0625rem; }
}

/* ============ 5. Pasmo tytułu stron (zamiast tytułu Astry) ============ */
.g-pasmo { container-type: inline-size; position: relative; background: var(--g-galion); color: #fff; }
.g-pasmo .g-szer { position: relative; padding-top: 44px; padding-bottom: 64px; }
.g-pasmo .g-szer::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 26px; height: 14px; background: var(--g-fala) repeat-x; }
.g-pasmo h1 { max-width: 32ch; margin: 0; color: #fff; font-family: var(--g-naglowki); font-size: 2.75rem; font-weight: 500; line-height: 1.1; }
.g-pasmo .g-nad { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.1875rem; font-weight: 700; }
.g-pasmo .g-nad a, .g-pasmo .g-nad a:visited { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.g-pasmo .g-nad a:hover, .g-pasmo .g-nad a:focus { color: #fff; text-decoration: underline; }
.g-pasmo .g-znaki { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 16px; }
.g-pasmo .g-ik { width: 64px; height: 64px; }
.g-pasmo .g-pod { margin: 12px 0 0; font-size: 1.1875rem; font-weight: 700; }
@container (max-width: 40rem) { .g-pasmo h1 { font-size: 2.125rem; } .g-pasmo .g-ik { width: 52px; height: 52px; } }

/* ============ 6. Strona główna ============ */
.galion-glowna .site-content > .ast-container { display: block; max-width: none; padding: 0; margin: 0; }
.galion-glowna .site-content { padding: 0; }
.g-hero { container-type: inline-size; background: var(--g-galion); }
.g-hero__siatka { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.g-hero__panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 64px 56px 76px max(20px, calc((100cqw - var(--g-szer)) / 2)); color: #fff; }
.g-hero__panel::after { content: ""; position: absolute; left: max(20px, calc((100cqw - var(--g-szer)) / 2)); right: 56px; bottom: 30px; height: 14px; background: var(--g-fala) repeat-x; }
.g-hero__panel h1 { margin: 0 0 22px; color: #fff; font-family: var(--g-naglowki); font-size: 3.5rem; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.g-hero__panel p { max-width: 30ch; margin: 0 0 32px; font-size: 1.5rem; line-height: 1.45; }
.g-hero__panel p.g-przyciski { display: flex; flex-wrap: wrap; gap: 14px; max-width: none; margin: 0; }
.g-hero__foto { position: relative; min-height: 320px; margin: 0; }
.g-hero__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-hero__foto figcaption { position: absolute; left: 0; bottom: 0; margin: 0; padding: 8px 14px; background: #fff; color: var(--g-tusz); font-size: .9375rem; line-height: 1.4; }
@container (max-width: 56rem) {
	.g-hero__siatka { grid-template-columns: 1fr; min-height: 0; }
	.g-hero__panel { padding: 40px 20px 62px; }
	.g-hero__panel::after { left: 20px; right: 20px; bottom: 24px; }
	.g-hero__panel h1 { font-size: 2.4rem; }
	.g-hero__foto { min-height: 260px; }
}
.g-sekcja { padding: 72px 0; }
.g-sekcja.g-piana { background: var(--g-piana); }
.g-tytul-sekcji { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 30px; padding-bottom: 12px; border-bottom: 1.5px solid var(--g-galion); }
.g-tytul-sekcji h2 { margin: 0; color: var(--g-glebia); font-family: var(--g-naglowki); font-size: 2.25rem; font-weight: 500; line-height: 1.1; }
.g-tytul-sekcji span { color: var(--g-glebia); font-size: 1.0625rem; }
.g-wiecej { margin: 34px 0 0; font-weight: 700; }
.g-wiecej a { text-decoration: underline; text-underline-offset: .18em; }

/* Kafle obszarów: ikona kreską, BEZ flag (decyzja z 9.11.2026) */
.g-obszary-k { container-type: inline-size; margin: 0 0 1.5em; }
.g-obszary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.g-obszar, .g-obszar:visited { display: flex; flex-direction: column; gap: 14px; min-height: 270px; padding: 28px 22px 26px; background: var(--g-galion); color: #fff !important; text-decoration: none !important; }
.g-obszar:hover, .g-obszar:focus { background: var(--g-glebia); color: #fff !important; }
.g-obszar .g-obszar-tytul { margin: 0; color: #fff; font-family: var(--g-naglowki); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.g-obszar p { margin: 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.4; }
.g-obszar .g-dalej { margin-top: auto; font-size: 1.1875rem; font-weight: 700; }
.g-obszar:hover .g-dalej { text-decoration: underline; }
@container (max-width: 72rem) { .g-obszary { grid-template-columns: repeat(3, 1fr); } .g-obszar, .g-obszar:visited { min-height: 230px; } }
@container (max-width: 40rem) {
	.g-obszary { grid-template-columns: 1fr; }
	.g-obszar, .g-obszar:visited { flex-direction: row; align-items: center; min-height: 0; padding: 16px 18px; }
	.g-obszar p, .g-obszar .g-dalej { display: none; }
	.g-obszar .g-ik { width: 44px; height: 44px; }
}

/* Karty projektów: zdjęcie w ramce przesuniętej jak cień, flaga obszaru, oznaczenie finansowania z umowy */
.g-projekty-k { container-type: inline-size; margin: 0 0 1.5em; }
.g-projekty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@container (max-width: 60rem) { .g-projekty { grid-template-columns: repeat(2, 1fr); } }
@container (max-width: 36rem) { .g-projekty { grid-template-columns: 1fr; } }
.g-projekt { position: relative; color: var(--g-tusz); }
.g-projekt .g-zdj { position: relative; margin: 0 10px 22px 0; }
.g-projekt .g-zdj::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; border: 1.5px solid var(--g-galion); }
.g-projekt .g-zdj img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.g-projekt .g-meta { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--g-glebia); font-size: 1rem; font-weight: 700; line-height: 1.45; }
.g-projekt .g-projekt-tytul { margin: 6px 0 10px; color: var(--g-glebia); font-family: var(--g-naglowki); font-size: 1.5625rem; font-weight: 500; line-height: 1.2; }
.g-projekt .g-projekt-tytul a, .g-projekt .g-projekt-tytul a:visited { color: inherit; text-decoration: none !important; }
.g-projekt .g-projekt-tytul a::after { content: ""; position: absolute; inset: 0; }
.g-projekt:hover .g-projekt-tytul a { text-decoration: underline !important; }
.g-projekt .g-finans { margin: 0; padding-top: 10px; border-top: 1px solid var(--g-mgla); color: var(--g-szary); font-size: .9375rem; line-height: 1.45; }

/* Pasmo „Wesprzyj” */
.g-wesprzyj { container-type: inline-size; background: var(--g-galion); color: #fff; }
.g-wesprzyj__siatka { display: grid; grid-template-columns: 1.1fr 1fr; }
.g-wesprzyj__tekst { padding: 56px 56px 60px max(20px, calc((100cqw - var(--g-szer)) / 2)); }
.g-wesprzyj h2 { margin: 0 0 14px; color: #fff; font-family: var(--g-naglowki); font-size: 2.5rem; font-weight: 500; line-height: 1.1; }
.g-wesprzyj p { max-width: 34ch; margin: 0 0 26px; font-size: 1.375rem; font-weight: 700; line-height: 1.45; }
.g-wesprzyj__foto { position: relative; min-height: 300px; margin: 0; }
.g-wesprzyj__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@container (max-width: 56rem) { .g-wesprzyj__siatka { grid-template-columns: 1fr; } .g-wesprzyj__tekst { padding: 40px 20px 44px; } .g-wesprzyj__foto { min-height: 240px; } }

/* ============ 7. Treść stron i wpisów ============ */
.g-ramka-pilne { margin: 1.5em 0; padding: 16px 20px; border-left: 6px solid var(--g-sygnal); background: #FFF8E1; }
.g-ramka-pilne p { margin: 0; }
.galion .entry-content .wp-block-button__link, .galion .entry-content .wp-block-button__link:visited { border-radius: 0; }
.ast-pagination a, .ast-pagination span, .page-numbers { border-radius: 0; }
.wpcf7-form input[type="submit"], .ast-button, button.ast-button { border-radius: 0; }
/* Formularze: wyraźna ramka pól (kontrast 3:1 wymagany dla granic pól), czytelne etykiety, szerokość jak tekst */
.galion input[type="text"], .galion input[type="email"], .galion input[type="url"], .galion input[type="tel"], .galion input[type="number"],
.galion input[type="search"], .galion input[type="password"], .galion textarea, .galion select { border: 1.5px solid var(--g-szary); border-radius: 0; background: #fff; color: var(--g-tusz); font-size: 1.0625rem; }
.galion input:focus, .galion textarea:focus, .galion select:focus { border-color: var(--g-glebia); border-style: solid; }
.galion .wpcf7 form { max-width: 46rem; }
.galion .wpcf7 label { color: var(--g-tusz); font-size: 1rem; font-weight: 700; }
.galion .wpcf7 input[type="submit"], .galion #commentform input[type="submit"] { padding: 12px 22px; border: 2px solid var(--g-glebia); border-radius: 0; background: var(--g-glebia); color: #fff; font: 700 1.1875rem/1.25 var(--g-tekst); }
.galion .wpcf7 input[type="submit"]:hover, .galion .wpcf7 input[type="submit"]:focus, .galion #commentform input[type="submit"]:hover { border-color: var(--g-ton); background: var(--g-ton); color: #fff; }
#ast-scroll-top { border-radius: 0; background-color: var(--g-glebia); }
#ast-scroll-top:hover, #ast-scroll-top:focus { background-color: var(--g-ton); }

/* ============ 8. Stopka ============ */
.g-stopka { container-type: inline-size; padding: 44px 0 24px; background: var(--g-ton); color: #fff; font-size: 1rem; line-height: 1.6; }
.g-stopka a, .g-stopka a:visited, .g-stopka .g-link { color: #fff; }
.g-stopka a, .g-stopka a:visited, .g-stopka .g-link { text-decoration: none; }
.g-stopka a:hover, .g-stopka a:focus, .g-stopka .g-link:hover, .g-stopka .g-link:focus { color: #fff; text-decoration: underline; }
.g-stopka p a { text-decoration: underline; text-underline-offset: .18em; }
.g-stopka__kol { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.g-stopka h2 { margin: 0 0 8px; color: #fff; font-family: var(--g-naglowki); font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
.g-stopka p { margin: 0 0 6px; }
.g-stopka ul { margin: 0; padding: 0; list-style: none; }
.g-stopka li { margin: 0 0 4px; }
.g-stopka__dol { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 30px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .9375rem; }
@container (max-width: 48rem) { .g-stopka__kol { grid-template-columns: 1fr; } .g-stopka__dol { padding-bottom: 56px; } } /* miejsce na okrągły przycisk CookieYes */

/* ============ 9. Wersja kontrastowa (przycisk „Kontrast”): czerń, biel, żółte linki ============ */
html.g-kontrast body, html.g-kontrast #page, html.g-kontrast .site-content, html.g-kontrast .ast-container, html.g-kontrast #primary, html.g-kontrast #secondary,
html.g-kontrast .ast-separate-container, html.g-kontrast .ast-article-post, html.g-kontrast .ast-article-single, html.g-kontrast .ast-article-inner, html.g-kontrast .entry-content,
html.g-kontrast .comments-area, html.g-kontrast .ast-archive-description, html.g-kontrast .g-sekcja, html.g-kontrast .g-piana, html.g-kontrast .g-ramka-pilne,
html.g-kontrast .g-gora, html.g-kontrast .g-naglowek, html.g-kontrast .g-pasmo, html.g-kontrast .g-hero, html.g-kontrast .g-hero__panel, html.g-kontrast .g-obszar,
html.g-kontrast .g-wesprzyj, html.g-kontrast .g-stopka, html.g-kontrast .g-nav .sub-menu, html.g-kontrast .g-hero__foto figcaption { background: #000 !important; color: #fff !important; }
html.g-kontrast :is(h1, h2, h3, h4, h5, h6, p, li, span, figcaption, label, td, th, dt, dd, strong, em, small, time) { color: #fff !important; }
html.g-kontrast a, html.g-kontrast a *, html.g-kontrast .g-link { color: #FFE500 !important; }
html.g-kontrast .g-naglowek, html.g-kontrast .g-pasmo, html.g-kontrast .g-hero { border-bottom: 2px solid #fff; }
html.g-kontrast .g-stopka { border-top: 2px solid #fff; }
html.g-kontrast .g-obszar { outline: 2px solid #FFE500; outline-offset: -4px; }
html.g-kontrast .g-tytul-sekcji, html.g-kontrast .g-finans, html.g-kontrast .g-ramka-pilne { border-color: #fff !important; }
html.g-kontrast .g-projekt .g-zdj::before { border-color: #FFE500; }
html.g-kontrast .g-btn, html.g-kontrast .wp-block-button__link, html.g-kontrast input[type="submit"], html.g-kontrast .g-menu-przycisk, html.g-kontrast .ast-button { background: #000 !important; border: 2px solid #FFE500 !important; color: #FFE500 !important; }
html.g-kontrast .g-dostep button { background: #000; border-color: #fff; color: #fff; }
html.g-kontrast .g-dostep button[aria-pressed="true"] { background: #FFE500; border-color: #FFE500; color: #000 !important; }
html.g-kontrast input, html.g-kontrast textarea, html.g-kontrast select { background: #000 !important; border: 2px solid #fff !important; color: #fff !important; }
html.g-kontrast .g-hero__panel::after, html.g-kontrast .g-pasmo .g-szer::after { opacity: 1; }
html.g-kontrast .g-ik { color: #FFE500; }
