/*
Theme Name: ISALTS
Theme URI: https://isalts.pl/
Author: ISALTS
Description: Motyw Indywidualnej Sycowskiej Amatorskiej Ligi Tenisa Stołowego. Tabele, wyniki, profile zawodników, historia i rekordy z danych eksportowanych z Excela (wymaga wtyczki „ISALTS Wyniki”). Tryb ciemny, dolny pasek na telefonach, bez ciasteczek.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: isalts
*/

/* Główne style: assets/css/isalts.css. Tu tylko dopasowanie do treści z edytora WordPressa. */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }

.wpis-okladka { margin: -20px -20px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.wpis-okladka img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
/* odstępy akapitów (WordPress zeruje marginesy) */
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose figure { margin: 18px 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose a { color: var(--red); }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--yellow); color: var(--muted); }
.alignleft { float: left; margin: 4px 18px 10px 0; } .alignright { float: right; margin: 4px 0 10px 18px; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.prose .wp-block-image img { height: auto; }
.prose .wp-block-table table { width: 100%; }
.prose .wp-block-button__link { background: var(--yellow); color: var(--ink); border-radius: 999px; font-weight: 800; padding: 11px 18px; text-decoration: none; }

/* galerie z edytora – ten sam wygląd i podgląd pełnoekranowy co .galeria */
.prose .wp-block-gallery, .prose .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px !important; margin: 12px 0; }
.prose .wp-block-gallery figure.wp-block-image, .prose .gallery .gallery-item { width: auto !important; margin: 0 !important; aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; }
.prose .wp-block-gallery img, .prose .gallery img { width: 100% !important; height: 100% !important; object-fit: cover; cursor: zoom-in; transition: transform .2s; border-radius: 0; }
.prose .wp-block-gallery img:hover, .prose .gallery img:hover { transform: scale(1.04); }
.prose .wp-block-gallery figcaption { display: none; }
.gallery br { display: none; }

.post .okl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post .okl:has(img)::before { display: none; }
.stronicowanie { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.stronicowanie .page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; }
.stronicowanie .current { background: var(--yellow); color: var(--ink); border-color: transparent; }
.wpis-nawigacja { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.wpis-nawigacja a { font-weight: 700; }
.zg-blad { color: var(--red); font-weight: 700; margin-top: 10px; }
.zg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ---- bloki ISALTS ---- */
.isalts-app { margin-bottom: 8px; }
.isalts-app .loading { padding: 30px 0; color: var(--muted); }
/* Baner: nagłówek, tekst i przyciski z edytora */
.hero .hero-tresc > h1, .hero .hero-tresc > h2 { margin: 0 0 10px; font-size: clamp(30px, 5.4vw, 54px); line-height: .98; font-style: italic; font-weight: 900; text-transform: uppercase; color: #fff; }
.hero .hero-tresc em { color: var(--yellow); }
.hero .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero .wp-block-button__link { display: inline-flex; padding: 11px 18px; border-radius: 999px; font-weight: 800; text-decoration: none; background: var(--yellow); color: var(--ink); border: 0; font-size: 16px; }
.hero .wp-block-button.is-style-outline .wp-block-button__link { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.hero .klapki { margin: 4px 0 18px; }
.nav a.zapisy.on { background: var(--yellow); }
