/* Seaglass – wyglad standardowych blokow WordPressa (wpisy, strony, wzorce) */

/* ---------- Tabela ---------- */
.wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	overflow: hidden;
	font-size: .95rem;
}
.wp-block-table th,
.wp-block-table td {
	padding: .75rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	text-align: left;
	vertical-align: top;
}
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table thead th,
.wp-block-table th {
	background: var(--wp--custom--tint--soft);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--wp--preset--color--contrast);
}
.wp-block-table thead { border-bottom: 0; }
.wp-block-table tfoot td { background: var(--wp--custom--tint--subtle); font-weight: 600; border-top: 1px solid var(--wp--preset--color--line); }
.wp-block-table.is-style-stripes table { border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--wp--custom--tint--subtle); }
.wp-block-table.is-style-stripes td { border-bottom: 0; }
.wp-block-table figcaption { margin-top: .5rem; font-size: .85rem; color: var(--wp--preset--color--muted); text-align: left; }

/* ---------- Obrazy, galeria, podpisy ---------- */
.wp-block-image figcaption,
.wp-block-gallery figcaption.blocks-gallery-caption,
.wp-block-embed figcaption,
.wp-block-video figcaption,
.wp-block-audio figcaption {
	margin-top: .55rem;
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
	text-align: center;
}
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 12px; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	border-radius: 0 0 12px 12px;
	background: linear-gradient(0deg, rgb(var(--wp--custom--ink-rgb) / .7), transparent);
	color: var(--wp--preset--color--surface);
}

/* ---------- Kod, preformatowany, wiersz ---------- */
.wp-block-code,
.wp-block-preformatted,
:is(.wp-block-post-content, .wp-block-comment-content) pre:not([class*="wp-block-"]) {
	padding: 1rem 1.2rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--custom--tint--soft);
	font-size: .9rem;
	line-height: 1.6;
	overflow-x: auto;
	white-space: pre;
}
.wp-block-code code { background: none; padding: 0; }
.wp-block-preformatted { white-space: pre-wrap; }
.wp-block-verse {
	padding: 1rem 1.2rem;
	border-left: 3px solid var(--wp--preset--color--sea-foam);
	background: none;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.05rem;
}

/* ---------- Plik ---------- */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem 1rem;
	padding: .9rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
}
.wp-block-file a:not(.wp-block-file__button) { font-weight: 600; color: var(--wp--preset--color--contrast); text-decoration: none; }
.wp-block-file .wp-block-file__button {
	margin-left: auto;
	padding: .45rem 1.1rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font-size: .88rem;
	font-weight: 700;
	text-decoration: none;
}
.wp-block-file .wp-block-file__button:hover { background: var(--wp--preset--color--contrast); }
.wp-block-file .wp-block-file__embed { width: 100%; border-radius: 10px; }

/* ---------- Przyciski (blok Przyciski): smuklejsze, jak w hero ---------- */
.wp-block-button > .wp-block-button__link {
	padding: .55rem 1.3rem;
	font-size: .98rem;
	line-height: 1.4;
}
.wp-block-button.has-custom-font-size > .wp-block-button__link { font-size: inherit; }

/* ---------- Przyciski: styl „Obramowanie” ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--primary);
	padding: calc(.55rem - 2px) calc(1.3rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }

/* ---------- Okladka (cover), media i tekst ---------- */
.wp-block-cover,
.wp-block-cover-image { border-radius: var(--wp--custom--radius--medium); overflow: hidden; }
.wp-block-cover.alignfull { border-radius: 0; }
.wp-block-media-text { border-radius: var(--wp--custom--radius--medium); overflow: hidden; }
.wp-block-media-text__media img { border-radius: 0; }
.wp-block-media-text.has-background .wp-block-media-text__content { padding: 2rem; }

/* ---------- Audio, wideo, osadzenia ---------- */
.wp-block-audio audio { width: 100%; }
.wp-block-video video,
.wp-block-embed iframe { border-radius: 14px; }

/* ---------- Ikony spolecznosciowe ---------- */
.wp-block-social-links:not(.is-style-logos-only) .wp-social-link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }
.wp-block-social-links.is-style-logos-only .wp-social-link { color: var(--wp--preset--color--primary); }

/* ---------- Wyszukiwarka (blok) ---------- */
.wp-block-search__inside-wrapper { gap: .5rem; }
.wp-block-search__input {
	padding: .55rem 1.1rem;
	font-size: .98rem !important;
	border: 1px solid var(--sg-field-border);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	font: inherit;
}
.wp-block-search__input:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 1px var(--wp--preset--color--primary), 0 0 0 4px var(--wp--custom--tint--strong); }
.wp-block-search__button {
	margin-left: 0;
	padding: .55rem 1.3rem !important;
	font-size: .98rem !important;
	line-height: 1.3;
}
.wp-block-search__button.has-icon { padding: .55rem .9rem !important; }
.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button { padding: .4rem 1rem !important; }


/* ---------- Listy: najnowsze wpisy, kategorie, archiwa, strony ---------- */
.wp-block-latest-posts,
.wp-block-categories-list,
.wp-block-archives-list,
.wp-block-page-list:not(.wp-block-navigation .wp-block-page-list),
.wp-block-latest-comments { padding-left: 0; list-style: none; }
.wp-block-latest-posts li,
.wp-block-categories-list li,
.wp-block-archives-list li,
.wp-block-latest-comments li { padding: .45rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-latest-posts a,
.wp-block-categories-list a,
.wp-block-archives-list a { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; }
.wp-block-latest-posts a:hover,
.wp-block-categories-list a:hover,
.wp-block-archives-list a:hover { color: var(--wp--preset--color--primary); }
.wp-block-latest-posts__post-date { display: block; font-size: .8rem; color: var(--wp--preset--color--muted); }
.wp-block-latest-posts.is-grid li { border: 0; }
.wp-block-latest-posts__featured-image img { border-radius: 12px; }

/* ---------- Chmura tagow ---------- */
.wp-block-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.wp-block-tag-cloud a {
	margin: 0 !important;
	padding: .25rem .75rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--tint--strong);
	color: var(--wp--preset--color--primary);
	font-size: .85rem !important;
	font-weight: 600;
	text-decoration: none;
}
.wp-block-tag-cloud a:hover { background: var(--wp--preset--color--sea-foam); color: var(--wp--preset--color--contrast); }

/* ---------- Kalendarz ---------- */
.wp-block-calendar table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.wp-block-calendar th { background: var(--wp--custom--tint--soft); }
.wp-block-calendar th,
.wp-block-calendar td { padding: .4rem; border: 1px solid var(--wp--preset--color--line); text-align: center; }
.wp-block-calendar a { color: var(--wp--preset--color--primary); font-weight: 700; }

/* ---------- Przypisy, czytaj wiecej ---------- */
.wp-block-footnotes { font-size: .88rem; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--line); padding-top: 1rem; }
.wp-block-read-more { font-weight: 600; color: var(--wp--preset--color--primary); }

/* ---------- Avatar, autor ---------- */
.wp-block-avatar img { border-radius: 50%; }

/* Ramka „O autorze” pod wpisem */
.sg-author-box {
	margin-top: var(--wp--preset--spacing--60) !important;
	padding: 1.2rem 1.4rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--custom--tint--subtle);
}
.sg-author-box .wp-block-post-author { display: flex; align-items: flex-start; gap: 1rem; }
.sg-author-box .wp-block-post-author__avatar { margin: 0; flex: none; }
.sg-author-box .wp-block-post-author__avatar img { border-radius: 50%; width: 64px; height: 64px; }
.sg-author-box .wp-block-post-author__byline { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.sg-author-box .wp-block-post-author__name { margin: .1rem 0 .3rem; font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; font-weight: 700; }
.sg-author-box .wp-block-post-author__bio { margin: 0; font-size: .95rem; color: var(--wp--preset--color--muted); }
.sg-author-box:not(:has(.wp-block-post-author__bio)) .wp-block-post-author { align-items: center; }

/* ---------- Komentarze ---------- */
.wp-block-comments .wp-block-comments-title,
.wp-block-comments .comment-reply-title { font-size: var(--wp--preset--font-size--large); }
.sg-comments { margin-top: var(--wp--preset--spacing--60) !important; }
.wp-block-comment-template { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.wp-block-comment-template li:not(.wp-block-comment-content li) { margin: 0 0 .9rem; }
.wp-block-comment-template ol:not(.wp-block-comment-content ol) { margin: .9rem 0 0; padding-left: clamp(.8rem, 3vw, 2rem); border-left: 2px solid var(--wp--preset--color--line); list-style: none; }
.sg-comment,
.wp-block-comment-template > li > .wp-block-columns {
	padding: 1rem 1.2rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
}
.bypostauthor > .sg-comment { border-color: var(--wp--preset--color--sea-foam); background: var(--wp--custom--tint--subtle); }
.sg-comment__head { gap: .7rem !important; align-items: center; }
.sg-comment__head .wp-block-avatar { margin: 0; flex: none; }
.sg-comment__who > * { margin: 0 !important; }
/* Awatar zawsze 40×40 (takze gdy obrazek sie nie wczyta i widac tekst alternatywny), dlugie nazwy autorow sie lamia */
.sg-comment__head .wp-block-avatar img { display: block; width: 40px; height: 40px; overflow: hidden; font-size: 0; }
.sg-comment__who { min-width: 0; overflow-wrap: anywhere; }
/* Listy w tresci komentarza z punktorami i numerami (lista komentarzy sama jest bez punktorow) */
.sg-comment .wp-block-comment-content :is(ul, ol) { padding-left: 1.4em; }
.sg-comment .wp-block-comment-content ul { list-style: disc; }
.sg-comment .wp-block-comment-content ol { list-style: decimal; }
.sg-comment .wp-block-comment-content { margin: .7rem 0 0; }
.sg-comment .wp-block-comment-content > :first-child { margin-top: 0; }
.sg-comment .wp-block-comment-content > :last-child { margin-bottom: 0; }
.sg-comment .wp-block-comment-content .comment-awaiting-moderation { display: block; font-size: .85rem; color: var(--wp--preset--color--muted); font-style: italic; }
.sg-comment__actions { margin-top: .6rem !important; gap: 1rem !important; }
.sg-comment__actions:not(:has(a)) { display: none; }
.sg-comment__actions > * { margin: 0 !important; }
.wp-block-comment-edit-link a { font-size: .85rem; color: var(--wp--preset--color--muted); }
.wp-block-comment-author-name { font-weight: 700; }
.wp-block-comment-author-name a { color: inherit; text-decoration: none; }
.wp-block-comment-date { font-size: .8rem; color: var(--wp--preset--color--muted); }
.wp-block-comment-date a { color: inherit; text-decoration: none; }
.wp-block-comment-reply-link a { font-size: .85rem; font-weight: 600; color: var(--wp--preset--color--primary); text-decoration: none; }
.wp-block-comments-pagination { margin: 1.2rem 0; gap: .4rem; }
.wp-block-comments-pagination a,
.wp-block-comments-pagination .page-numbers { padding: .35rem .75rem; border-radius: var(--wp--custom--radius--pill); background: var(--wp--custom--tint--medium); color: var(--wp--preset--color--contrast); text-decoration: none; font-size: .9rem; }
.wp-block-comments-pagination .page-numbers.current { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }
.comment-respond { margin-top: var(--wp--preset--spacing--50); padding: 1.2rem 1.4rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--medium); background: var(--wp--custom--tint--subtle); }
.wp-block-comment-template .comment-respond { margin: .9rem 0; }
.comment-reply-title small { margin-left: .5rem; font-size: .85rem; font-family: var(--wp--preset--font-family--sans); }
.comment-form > p { margin: 0 0 .9rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 600; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form :is(input[type=text], input[type=email], input[type=url], textarea) {
	width: 100%;
	box-sizing: border-box;
	padding: .65rem .9rem;
	border: 1px solid var(--sg-field-border);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
	font: inherit;
	color: inherit;
}
.comment-form :is(input, textarea):focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 1px var(--wp--preset--color--primary), 0 0 0 4px var(--wp--custom--tint--strong); }
.comment-form .comment-notes,
.comment-form .logged-in-as { font-size: .85rem; color: var(--wp--preset--color--muted); }
.wp-block-post-comments-form input[type=submit],
.comment-form .submit {
	padding: .55rem 1.3rem;
	font-size: .98rem !important;
	line-height: 1.3;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
}
.wp-block-post-comments-form input[type=submit]:hover,
.comment-form .submit:hover { background: var(--wp--preset--color--contrast); }

/* ---------- Tresc stron (nie tylko wpisy) ---------- */
.wp-block-post-content > .wp-block-heading { margin-top: 1.8em; }
.wp-block-post-content ul li::marker,
.wp-block-post-content ol li::marker { color: var(--wp--preset--color--primary); }
.wp-block-post-content blockquote:not(.wp-block-pullquote blockquote) {
	margin-left: 0;
	margin-right: 0;
	padding: 1rem 1.3rem;
	border-left: 4px solid var(--wp--preset--color--sea-foam);
	border-radius: 0 14px 14px 0;
	background: var(--wp--custom--tint--soft);
}
.wp-block-post-content blockquote.has-text-align-right:not(.wp-block-pullquote blockquote) {
	border-left: 0;
	border-right: 4px solid var(--wp--preset--color--sea-foam);
	border-radius: 14px 0 0 14px;
}
.wp-block-post-content blockquote.has-text-align-center:not(.wp-block-pullquote blockquote) {
	border-left: 0;
	border-top: 3px solid var(--wp--preset--color--sea-foam);
	border-radius: 0 0 14px 14px;
}
.wp-block-quote cite,
.wp-block-quote footer { display: block; margin-top: .5rem; font-size: .85rem; font-style: normal; color: var(--wp--preset--color--muted); }
.wp-block-post-content .wp-block-separator:not(.is-style-dots) { border: 0; border-top: 1px solid var(--wp--preset--color--line); height: 0; background: none; opacity: 1; }

/* Podzial wpisu na strony (<!--nextpage-->) */
.post-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 2rem; font-size: .9rem; color: var(--wp--preset--color--muted); }
.post-nav-links .post-page-numbers { display: inline-block; min-width: 2.2em; padding: .3rem .7rem; border-radius: var(--wp--custom--radius--pill); background: var(--wp--custom--tint--medium); color: var(--wp--preset--color--contrast); text-align: center; text-decoration: none; font-weight: 600; }
.post-nav-links a.post-page-numbers:hover { background: var(--wp--preset--color--sea-foam); }
.post-nav-links .post-page-numbers.current { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }

/* Wyrownanie lewo/prawo (klasyczne obrazy w tekscie) */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1rem 0; } img.alignleft, img.alignright { display: block; } }

/* ---------- Klasyczna treść i bezpieczne granice (wpis + komentarze) ---------- */
.wp-block-post-content,
.wp-block-post-title,
.wp-block-comment-content { overflow-wrap: break-word; }
:is(.wp-block-post-content, .wp-block-comment-content) img,
:is(.wp-block-post-content, .wp-block-comment-content) video { max-width: 100%; height: auto; }
:is(.wp-block-post-content, .wp-block-comment-content) .wp-caption { max-width: 100% !important; }
:is(.wp-block-post-content, .wp-block-comment-content) .wp-caption img { display: block; }
:is(.wp-block-post-content, .wp-block-comment-content) .wp-caption-text { margin-top: .5rem; font-size: .85rem; color: var(--wp--preset--color--muted); text-align: center; }
:is(.wp-block-post-content, .wp-block-comment-content) iframe,
:is(.wp-block-post-content, .wp-block-comment-content) embed,
:is(.wp-block-post-content, .wp-block-comment-content) object { max-width: 100%; }
:is(.wp-block-post-content, .wp-block-comment-content) .aligncenter { margin-left: auto; margin-right: auto; }
/* Klasyczna tabela (bez bloku Tabela): wyglada jak blok Tabela – pelna szerokosc, ramka z zaokragleniem, linie miedzy wierszami */
:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	font-size: .95rem;
	overflow: hidden;
}
:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) :is(th, td) { padding: .65rem .9rem; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; vertical-align: top; }
:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) tr:last-child > :is(th, td) { border-bottom: 0; }
:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) th { background: var(--wp--custom--tint--soft); font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--wp--preset--color--contrast); }
:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) caption { padding-bottom: .5rem; caption-side: bottom; font-size: .85rem; color: var(--wp--preset--color--muted); text-align: left; }
:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) tr:first-child > :first-child { border-top-left-radius: calc(var(--wp--custom--radius--small) - 1px); }
:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) tr:first-child > :last-child { border-top-right-radius: calc(var(--wp--custom--radius--small) - 1px); }
/* Telefon: szeroka tabela przewija sie w poziomie zamiast rozpychac strone */
@media (max-width: 600px) {
	:is(.wp-block-post-content, .wp-block-comment-content) table:not(.wp-block-table table, .wp-block-calendar table) { display: block; overflow-x: auto; }
}
:is(.wp-block-post-content, .wp-block-comment-content) :not(pre) > code,
:is(.wp-block-post-content, .wp-block-comment-content) kbd { padding: .1em .35em; border-radius: 6px; background: var(--wp--custom--tint--medium); font-size: .88em; }
:is(.wp-block-post-content, .wp-block-comment-content) abbr[title] { text-decoration: underline dotted; cursor: help; }
:is(.wp-block-post-content, .wp-block-comment-content) mark { background: var(--wp--custom--highlight); color: inherit; padding: 0 .15em; border-radius: 3px; }
:is(.wp-block-post-content, .wp-block-comment-content) dl dt { font-weight: 700; margin-top: .6rem; }
:is(.wp-block-post-content, .wp-block-comment-content) dl dd { margin-left: 1.2rem; }
@media (max-width: 600px) {
	:is(.wp-block-post-content, .wp-block-comment-content) .alignleft,
	:is(.wp-block-post-content, .wp-block-comment-content) .alignright { float: none; margin-left: auto; margin-right: auto; }
}

/* ---------- Kolumny ----------
   Odstep miedzy kolumnami: theme.json (core/columns blockGap = spacing L).
   :where() = zerowa specyficznosc, wiec ustawienia z panelu bloku zawsze wygrywaja. */

/* Kolumna z tlem lub ramka: oddech w srodku i zaokraglenie jak karty motywu */
:where(.wp-block-column.has-background, .wp-block-column.has-border-color) {
	padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 2.6vw, 1.5rem);
	border-radius: var(--wp--custom--radius--medium);
}
:where(.wp-block-columns.has-background, .wp-block-columns.has-border-color, .wp-block-group.has-background) {
	border-radius: var(--wp--custom--radius--medium);
}
/* Stopka zawsze na dole okna (krotkie strony: 404, krotkie wpisy) */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > .wp-block-template-part:last-child { margin-block-start: 0; }

/* Stopka: zaokraglone tylko gorne rogi */
.wp-block-template-part > footer.wp-block-group,
footer.wp-block-group.alignfull {
	border-radius: var(--wp--custom--radius--medium) var(--wp--custom--radius--medium) 0 0;
	margin-bottom: 0;
}
/* Stopka: kolumny, ikonki, linki */
.sg-footer__top { gap: 2rem 3rem; }
.sg-footer__brand { max-width: 22rem; }
.sg-footer__cols { gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.sg-footer__col { min-width: 9rem; }
.sg-footer .sg-footer__label {
	margin: 0 0 .75rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--custom--on-primary-muted);
}
.sg-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.sg-footer__links li { margin: 0; }
.sg-footer :is(.sg-footer__links, .sg-footer__nav, .sg-footer__contact) a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.sg-footer :is(.sg-footer__links, .sg-footer__nav, .sg-footer__contact) a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
.sg-footer__nav .wp-block-navigation__container { gap: .6rem; }
/* Podmenu w stopce: zawsze rozwiniete, jako wcieta lista w kolorach stopki (bez rozwijanych okienek) */
.sg-footer__nav .wp-block-navigation-item.has-child { flex-direction: column; align-items: flex-start; }
.sg-footer__nav .wp-block-navigation__submenu-icon { display: none !important; }
.sg-footer__nav .has-child .wp-block-navigation__submenu-container {
	position: static !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	overflow: visible !important;
	display: grid;
	gap: .5rem;
	margin: .5rem 0 0 !important;
	padding: 0 0 0 .8rem !important;
	border: 0 !important;
	border-left: 1px solid var(--wp--custom--on-primary-line) !important;
	background: transparent !important;
	color: inherit !important;
	box-shadow: none !important;
	transform: none !important;
}
.sg-footer__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0 !important; font-weight: 500 !important; color: var(--wp--custom--on-primary-muted) !important; }
.sg-footer__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:is(:hover, :focus-visible) { color: var(--wp--preset--color--surface) !important; }
.sg-footer__contact p { margin: 0 0 .6rem; }
.sg-footer__hours { font-size: .85rem; color: var(--wp--custom--on-primary-muted); }
.sg-footer__social { gap: .5rem; margin-top: .6rem !important; }
.sg-footer__social:not(:has(li)) { display: none; }
.sg-footer .sg-footer__social .wp-social-link {
	background: color-mix(in srgb, var(--wp--preset--color--surface) 14%, transparent);
	color: var(--wp--preset--color--surface);
	transition: background .15s;
}
.sg-footer .sg-footer__social .wp-social-link:hover { background: color-mix(in srgb, var(--wp--preset--color--surface) 26%, transparent); transform: none; }
.sg-footer .sg-footer__social .wp-social-link a { padding: .45em; }
@media (max-width: 600px) {
	.sg-footer__cols { width: 100%; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-footer__contact { grid-column: 1 / -1; }
}
:where(.wp-block-column.has-background, .wp-block-column.has-border-color) > :last-child { margin-bottom: 0; }

/* Obrazek na samej gorze/dole kolumny z tlem: bez podwojnego marginesu */
:where(.wp-block-column.has-background, .wp-block-column.has-border-color) > .wp-block-image:first-child { margin-top: 0; }

/* Tekst w kolumnach (tresc wpisow i stron): wyjustowany, z dzieleniem wyrazow.
   Akapit z wyrownaniem ustawionym w edytorze (do lewej/srodka/prawej) zostaje bez zmian.
   Kolumny w szablonach motywu (hero, strona produktu, komentarze) nie sa ruszane. */
/* Tylko w ukladach do 2 kolumn – w wezszych kolumnach wyjustowanie robi duze odstepy miedzy slowami. */
:where([class*="wp-block-post-content"]) .wp-block-columns:not(:has(> .wp-block-column:nth-child(3))) > .wp-block-column p:not([class*="has-text-align-"]):not(:is(.wp-block-cover, .wp-block-pullquote, blockquote) p) {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 7 3 3;
	text-wrap: pretty;
}

/* Tablet (782–1023 px): 4+ kolumny bez wlasnej szerokosci ukladaja sie po 2 w rzedzie */
@media (min-width: 782px) and (max-width: 1023px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4)) { flex-wrap: wrap !important; }
	.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4)) > .wp-block-column:not([style*="flex-basis"]) { flex-basis: 40%; flex-grow: 1; }
}

/* Styl bloku „Karty” (is-style-seaglass-cards): kazda kolumna jako karta, przyciski przyklejone do dolu */
.wp-block-columns.is-style-seaglass-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	padding: clamp(1.1rem, 2.4vw, 1.5rem);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--soft);
}
.wp-block-columns.is-style-seaglass-cards > .wp-block-column:where(:not(.has-background)) { background: var(--wp--preset--color--surface); }
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > :first-child { margin-top: 0; }
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > .wp-block-buttons:last-child { margin-top: auto; padding-top: .75rem; }
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > .wp-block-image:first-child {
	margin: calc(-1 * clamp(1.1rem, 2.4vw, 1.5rem)) calc(-1 * clamp(1.1rem, 2.4vw, 1.5rem)) .25rem;
}
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > .wp-block-image:first-child img {
	width: 100%;
	border-radius: var(--wp--custom--radius--medium) var(--wp--custom--radius--medium) 0 0;
}

/* Odtwarzacz audio: lekko zielonkawe tlo (Chrome, Edge, Safari) */
.wp-block-audio audio,
:is(.wp-block-post-content, .wp-block-comment-content) audio { width: 100%; border-radius: var(--wp--custom--radius--pill); }
audio::-webkit-media-controls-panel { background-color: var(--wp--custom--tint--strong); }
audio::-webkit-media-controls-enclosure { border-radius: var(--wp--custom--radius--pill); background-color: var(--wp--custom--tint--strong); }

/* Stary styl przycisku „kwadratowy” (is-style-squared) */
.wp-block-button.is-style-squared > .wp-block-button__link { border-radius: 6px; }

/* ---------- Listy punktowane: „szkielko morskie” zamiast kropki ----------
   1. poziom: pelny romb, 2. poziom: romb z obrysem, 3. poziom: krotka kreska */
:is(.wp-block-post-content, .wp-block-comment-content) :is(ul.wp-block-list, ul:not([class], .woocommerce-MyAccount-navigation *), ol.wp-block-list, ol:not([class], .woocommerce-MyAccount-navigation *)) { padding-left: 1.5em; }
:is(.wp-block-post-content, .wp-block-comment-content) :is(ul.wp-block-list, ul:not([class], .woocommerce-MyAccount-navigation *), ol.wp-block-list, ol:not([class], .woocommerce-MyAccount-navigation *)) > li + li { margin-top: .3em; }
:is(.wp-block-post-content, .wp-block-comment-content) li > :is(ul, ol) { margin-top: .3em; margin-bottom: 0; }
:is(.wp-block-post-content, .wp-block-comment-content) :is(ol.wp-block-list, ol:not([class], .woocommerce-MyAccount-navigation *)) > li::marker { color: var(--wp--preset--color--primary); font-weight: 700; }
:is(.wp-block-post-content, .wp-block-comment-content) :is(ul.wp-block-list, ul:not([class], .woocommerce-MyAccount-navigation *)) > li { position: relative; list-style: none; }
:is(.wp-block-post-content, .wp-block-comment-content) :is(ul.wp-block-list, ul:not([class], .woocommerce-MyAccount-navigation *)) > li::before {
	content: "";
	position: absolute;
	left: -1.2em;
	top: calc(.5lh - .22em);
	width: .44em;
	height: .44em;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
	transform: rotate(45deg);
}
:is(.wp-block-post-content, .wp-block-comment-content) :is(ul, ol) :is(ul.wp-block-list, ul:not([class], .woocommerce-MyAccount-navigation *)) > li::before {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary);
}
:is(.wp-block-post-content, .wp-block-comment-content) :is(ul, ol) :is(ul, ol) :is(ul.wp-block-list, ul:not([class], .woocommerce-MyAccount-navigation *)) > li::before {
	top: calc(.5lh - 1px);
	width: .55em;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--dusty-sky);
	box-shadow: none;
	transform: none;
}

/* ---------- Nawigacja w tresci (np. blok Nawigacja z lista stron) ----------
   Rozwijane podmenu jako karta jak w kapsule; menu w naglowku ma wlasne style (capsule.css). */
.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation__submenu-container {
	padding: .35rem;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--lifted);
}
/* Szerokosc tylko dla otwartego podmenu (ukryte ma width 0 – inaczej poziome przewijanie) */
.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container,
.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .has-child > [aria-expanded="true"] ~ .wp-block-navigation__submenu-container { min-width: 220px; }
.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .5rem .75rem !important;
	border-radius: 8px;
	text-decoration: none;
}
.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
}
/* Podmenu 2. poziomu: odstep od karty rodzica, zeby nie nachodzily na siebie ramki */
@media (min-width: 600px) {
	.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { top: -.4rem; left: calc(100% + .35rem); }
	.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container::before { content: ""; position: absolute; inset: 0 auto 0 -.5rem; width: .5rem; }
}
.wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation__submenu-icon { color: var(--wp--preset--color--dusty-sky); }
.wp-block-post-content .wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation-item__content { text-decoration: none; }
.wp-block-post-content .wp-block-navigation:not(.sg-capsule__nav, .sg-footer__nav) .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); }

/* ---------- Paginacja petli wpisow (wszedzie, nie tylko na blogu) ---------- */
.wp-block-query-pagination { gap: .4rem; align-items: center; }
.wp-block-query-pagination > .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	box-sizing: border-box;
	min-width: 42px;
	height: 42px;
	margin: 0;
	padding: 0 .9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
}
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }
.wp-block-query-pagination .page-numbers.dots { min-width: 0; padding: 0 .2rem; border-color: transparent; background: none; color: var(--wp--preset--color--muted); }
.wp-block-query-pagination a:hover { border-color: var(--wp--preset--color--sea-foam); background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary); }
.wp-block-query-pagination :is(.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow) { margin: 0; }

/* Petla wpisow w tresci: bez wciecia listy */
.wp-block-post-content .wp-block-post-template { padding-left: 0; }
.wp-block-post-content .wp-block-post-template > li::before { content: none; }

/* Nastepny / poprzedni wpis jako kapsulki */
.wp-block-post-navigation-link a {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .45rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast) !important;
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none !important;
}
.wp-block-post-navigation-link a:hover { border-color: var(--wp--preset--color--sea-foam); background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary) !important; }

/* ---------- Bloki widzetow w tresci: listy bez punktorow i wciec ----------
   (styl list we wpisach .sg-prose dodawal wciecie 22 px, podlisty mialy kolka) */
:is(.wp-block-latest-posts, .wp-block-categories-list, .wp-block-archives-list, .wp-block-page-list:not(.wp-block-navigation .wp-block-page-list),  .wp-block-latest-comments, .wp-block-rss),
:is(.wp-block-categories-list, .wp-block-page-list:not(.wp-block-navigation .wp-block-page-list)) ul {
	margin-left: 0;
	padding-left: 0 !important;
	list-style: none !important;
}
:is(.wp-block-latest-posts, .wp-block-categories-list, .wp-block-archives-list, .wp-block-page-list:not(.wp-block-navigation .wp-block-page-list),  .wp-block-latest-comments, .wp-block-rss) li { list-style: none; margin: 0; }
:is(.wp-block-latest-posts, .wp-block-categories-list, .wp-block-archives-list, .wp-block-page-list:not(.wp-block-navigation .wp-block-page-list),  .wp-block-latest-comments, .wp-block-rss) li::before { content: none !important; }

/* Podkategorie i podstrony: drzewko z cienka linia zamiast punktorow */
:is(.wp-block-categories-list, .wp-block-page-list:not(.wp-block-navigation .wp-block-page-list)) ul {
	margin: .35rem 0 .1rem .35rem;
	padding-left: .9rem !important;
	border-left: 2px solid var(--wp--preset--color--sea-foam);
}
:is(.wp-block-categories-list, .wp-block-page-list:not(.wp-block-navigation .wp-block-page-list)) ul li { border-bottom: 0; padding: .25rem 0; font-size: .95em; }
:is(.wp-block-categories-list, .wp-block-page-list:not(.wp-block-navigation .wp-block-page-list)) ul a { font-weight: 500; }

/* Lista stron (poza nawigacja) jak lista kategorii */
.wp-block-page-list:not(.wp-block-navigation .wp-block-page-list) > li { padding: .45rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-page-list:not(.wp-block-navigation .wp-block-page-list) a { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; }
.wp-block-page-list:not(.wp-block-navigation .wp-block-page-list) a:hover { color: var(--wp--preset--color--primary); }
.wp-block-page-list .current-menu-item > a,
.wp-block-page-list a[aria-current="page"] { color: var(--wp--preset--color--primary); }
/* W bloku Lista stron podlisty maja klase nawigacji – nie moga byc ukryte jak podmenu */
.wp-block-page-list:not(.wp-block-navigation .wp-block-page-list) .wp-block-navigation__submenu-container { position: static; visibility: visible; opacity: 1; width: auto; height: auto; overflow: visible; box-shadow: none; background: none; border-width: 0 0 0 2px !important; border-radius: 0; min-width: 0 !important; }

/* Ostatnie komentarze: awatar w kolku, autor pogrubiony, data pod spodem */
.wp-block-latest-comments__comment { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0 !important; line-height: 1.45; }
.wp-block-latest-comments__comment > article { flex: 1; min-width: 0; }
.wp-block-latest-comments .avatar,
.wp-block-latest-comments__comment-avatar { flex: none; width: 40px; height: 40px; margin: 0 !important; border-radius: 50%; }
.has-avatars .wp-block-latest-comments__comment :is(.wp-block-latest-comments__comment-meta, .wp-block-latest-comments__comment-excerpt) { margin-left: 0; }
.wp-block-latest-comments__comment-meta { font-size: .9rem; color: var(--wp--preset--color--muted); }
.wp-block-latest-comments__comment-meta a { text-decoration: none !important; }
.wp-block-latest-comments__comment-author { font-weight: 700; color: var(--wp--preset--color--contrast) !important; }
.wp-block-latest-comments__comment-link { color: var(--wp--preset--color--primary) !important; font-weight: 600; }
.wp-block-latest-comments__comment-meta a:hover { text-decoration: underline !important; }
.wp-block-latest-comments__comment-date { display: block; margin-top: .1rem; font-size: .78rem; color: var(--wp--preset--color--muted); }
.wp-block-latest-comments__comment-excerpt p { margin: .35rem 0 0; font-size: .95rem; color: var(--wp--preset--color--contrast); }

/* RSS: jak lista wpisow */
.wp-block-rss__item { padding: .6rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-rss__item-title a { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; }
.wp-block-rss__item-title a:hover { color: var(--wp--preset--color--primary); }
.wp-block-rss__item :is(.wp-block-rss__item-publish-date, .wp-block-rss__item-author) { display: inline-block; margin-right: .6rem; font-size: .8rem; color: var(--wp--preset--color--muted); }
.wp-block-rss__item-excerpt { margin-top: .25rem; font-size: .92rem; color: var(--wp--preset--color--muted); }

/* ---------- Kalendarz jako karta ---------- */
.wp-block-calendar {
	max-width: 380px;
	padding: .9rem 1rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}
.wp-block-calendar.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-calendar table { border-collapse: separate; border-spacing: 3px; margin: 0; }
.wp-block-calendar caption { padding: 0 0 .5rem; caption-side: top; font-family: var(--wp--preset--font-family--serif); font-size: 1.05rem; font-weight: 700; color: var(--wp--preset--color--contrast); text-transform: capitalize; }
.wp-block-calendar :is(th, td) { padding: 0; height: 2.2rem; border: 0 !important; border-radius: 8px; text-align: center; vertical-align: middle; }
.wp-block-calendar th { background: none !important; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--wp--preset--color--muted); }
.wp-block-calendar td { font-size: .88rem; color: var(--wp--preset--color--contrast); }
.wp-block-calendar td:has(a) { background: var(--wp--custom--tint--strong); }
.wp-block-calendar td a { display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 8px; color: var(--wp--preset--color--primary); font-weight: 700; text-decoration: none; }
.wp-block-calendar td a:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface); }
.wp-block-calendar #today { box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary); font-weight: 700; }
.wp-block-calendar .wp-calendar-nav { display: flex; justify-content: space-between; margin-top: .6rem; }
.wp-block-calendar .wp-calendar-nav span:empty,
.wp-block-calendar .wp-calendar-nav .pad { display: none; }
.wp-block-calendar .wp-calendar-nav a {
	display: inline-block;
	padding: .3rem .8rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-size: .82rem;
	font-weight: 600;
	text-decoration: none;
	text-transform: capitalize;
}
.wp-block-calendar .wp-calendar-nav a:hover { border-color: var(--wp--preset--color--sea-foam); background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary); }
.wp-block-calendar .wp-calendar-nav-next { margin-left: auto; }

/* ---------- Archiwa i Kategorie jako lista rozwijana ---------- */
:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) label {
	display: block;
	margin-bottom: .35rem;
	font-size: .85rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}
:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	max-width: 360px;
	min-height: 44px;
	padding: .55rem 2.6rem .55rem 1.1rem;
	border: 1px solid var(--sg-field-border);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23355F63' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 16px;
	box-shadow: var(--wp--preset--shadow--soft);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: .95rem;
	cursor: pointer;
	transition: border-color .15s ease;
}
:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) select:hover { border-color: var(--wp--preset--color--primary); }
:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) select:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--primary);
}

/* ---------- Zaloguj / Wyloguj ---------- */
.wp-block-loginout > a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem 1.1rem;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--primary) !important;
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease;
}
.wp-block-loginout > a:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--surface) !important; }
/* Wariant „pokaz formularz logowania” */
.wp-block-loginout form {
	max-width: 400px;
	padding: 1.2rem 1.4rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--soft);
}
.wp-block-loginout form p { margin: 0 0 .8rem; }
.wp-block-loginout form label { display: block; margin-bottom: .3rem; font-size: .85rem; font-weight: 600; }
.wp-block-loginout form :is(input[type="text"], input[type="password"]) {
	box-sizing: border-box;
	width: 100%;
	padding: .6rem .9rem;
	border: 1px solid var(--sg-field-border);
	border-radius: var(--wp--custom--radius--small);
	font: inherit;
}
.wp-block-loginout form :is(input[type="text"], input[type="password"]):focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 1px; }
.wp-block-loginout form .login-remember label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.wp-block-loginout form input[type="submit"] {
	padding: .55rem 1.3rem;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.wp-block-loginout form input[type="submit"]:hover { background: var(--wp--preset--color--contrast); }

/* Kalendarz w tresci: do lewej jak reszta tekstu (wysrodkowany tylko z wyrownaniem „do srodka”) */
.is-layout-constrained > .wp-block-calendar:not(.aligncenter, .alignright) { margin-left: 0 !important; }

/* Rozwinieta lista (Chrome/Edge 135+: konfigurowalny select). Inne przegladarki: systemowa lista. */
@supports (appearance: base-select) {
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) select,
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) select::picker(select) { appearance: base-select; }
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) select::picker-icon { display: none; }
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) select::picker(select) {
		max-height: min(320px, 60vh);
		margin-top: 6px;
		padding: .35rem;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: var(--wp--custom--radius--small);
		background: var(--wp--preset--color--surface);
		box-shadow: var(--wp--preset--shadow--lifted);
		overflow-y: auto;
	}
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) option {
		padding: .5rem .75rem;
		border-radius: 8px;
		color: var(--wp--preset--color--contrast);
		font-size: .92rem;
		cursor: pointer;
	}
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) option::checkmark { display: none; }
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) option:is(:hover, :focus-visible) { background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary); outline: 0; }
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) option:checked { background: var(--wp--custom--tint--strong); color: var(--wp--preset--color--primary); font-weight: 700; }
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) option:first-child { color: var(--wp--preset--color--muted); }
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) option.level-1 { padding-left: 1.5rem; }
	:is(.wp-block-archives-dropdown, .wp-block-categories-dropdown) option.level-2 { padding-left: 2.25rem; }
}

/* ---------- Klasyczna galeria [gallery]: siatka zamiast plywajacych miniatur ---------- */
:is(.wp-block-post-content, .wp-block-comment-content) .gallery {
	--sg-gcols: 3;
	display: grid !important;
	grid-template-columns: repeat(var(--sg-gcols), minmax(0, 1fr));
	gap: clamp(10px, 2vw, 18px);
	margin: 1.5em 0 !important;
}
.gallery-columns-1 { --sg-gcols: 1 !important; } .gallery-columns-2 { --sg-gcols: 2 !important; }
.gallery-columns-4 { --sg-gcols: 4 !important; } .gallery-columns-5 { --sg-gcols: 5 !important; }
.gallery-columns-6 { --sg-gcols: 6 !important; } .gallery-columns-7 { --sg-gcols: 7 !important; }
.gallery-columns-8 { --sg-gcols: 8 !important; } .gallery-columns-9 { --sg-gcols: 9 !important; }
@media (max-width: 600px) { :is(.wp-block-post-content, .wp-block-comment-content) .gallery:not(.gallery-columns-1) { --sg-gcols: 2 !important; } }
:is(.wp-block-post-content, .wp-block-comment-content) .gallery br { display: none; }
:is(.wp-block-post-content, .wp-block-comment-content) .gallery-item {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	text-align: left !important;
}
:is(.wp-block-post-content, .wp-block-comment-content) .gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border: 0 !important;
	border-radius: 12px;
}
:is(.wp-block-post-content, .wp-block-comment-content) .gallery-caption {
	margin: .45rem 0 0 !important;
	font-size: .8rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
	text-align: left !important;
}

/* ---------- Wideo wklejone linkiem (YouTube, Vimeo, WordPress.tv) w zwyklym akapicie: pelna szerokosc 16:9, zaokraglone ---------- */
:is(.wp-block-post-content, .wp-block-comment-content) :is(iframe[src*="youtube.com"], iframe[src*="youtube-nocookie.com"], iframe[src*="vimeo.com"], iframe[src*="video.wordpress.com"], iframe[src*="videopress.com"], video) {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--contrast);
}
:is(.wp-block-post-content, .wp-block-comment-content) video { aspect-ratio: auto; }
.wp-block-embed iframe { border-radius: var(--wp--custom--radius--medium); }
.wp-video { width: 100% !important; }

/* ---------- Grupy i akapity z tlem w tresci: oddech, gdy w edytorze nie ustawiono wlasnego paddingu ---------- */
.wp-block-post-content :is(.wp-block-group, .wp-block-columns).has-background:not([style*="padding"]) {
	padding: clamp(1rem, 2.4vw, 1.4rem) clamp(1rem, 2.8vw, 1.6rem);
}
.wp-block-post-content p.has-background:not([style*="padding"]) { padding: .9rem 1.2rem; border-radius: var(--wp--custom--radius--small); }
.wp-block-post-content :is(.wp-block-group, .wp-block-column).has-background > :first-child { margin-top: 0; }
.wp-block-post-content :is(.wp-block-group, .wp-block-column).has-background > :last-child { margin-bottom: 0; }

/* ---------- Format „czat”: dymki rozmowy (znaczniki dodaje wtyczka Seaglass Tools) ---------- */
.sg-chat { display: flex; flex-direction: column; gap: .6rem; margin: 1.5em 0; }
.sg-chat__line {
	position: relative;
	max-width: min(80%, 34rem);
	margin: 0 !important;
	padding: .65rem 1rem .7rem;
	border-radius: 18px 18px 18px 6px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	line-height: 1.5;
	text-align: left !important;
}
.sg-chat__line--b {
	align-self: flex-end;
	border-radius: 18px 18px 6px 18px;
	border-color: transparent;
	background: var(--wp--custom--tint--strong);
}
.sg-chat__who {
	display: block;
	margin-bottom: .1rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--wp--preset--color--primary);
}
.sg-chat__line--b .sg-chat__who { text-align: right; }

/* ---------- Okladka: linki w kolorze tekstu okladki (np. bialym na kolorowej nakladce), podkreslone ---------- */
.wp-block-cover :is(p, h1, h2, h3, h4, h5, h6, li) a:not(.wp-element-button, .wp-block-button__link),
.wp-block-cover-text a {
	color: inherit !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px;
}
.wp-block-cover :is(p, h1, h2, h3, h4, h5, h6, li) a:not(.wp-element-button, .wp-block-button__link):hover,
.wp-block-cover-text a:hover { text-decoration-thickness: 2px !important; opacity: .9; }

/* ---------- Media i tekst z tlem: obrazek z oddechem wewnatrz kolorowego pola, zaokraglony ---------- */
.wp-block-media-text.has-background { gap: 0; }
.wp-block-media-text.has-background:not(.is-image-fill, .is-image-fill-element) > .wp-block-media-text__media { padding: clamp(.6rem, 1.6vw, 1rem); }
.wp-block-media-text.has-background:not(.is-image-fill, .is-image-fill-element) > .wp-block-media-text__media :is(img, video) { border-radius: var(--wp--custom--radius--small); }
@media (max-width: 600px) {
	.wp-block-media-text.has-background.is-stacked-on-mobile > .wp-block-media-text__content { padding: 1.2rem 1.2rem 1.4rem; }
}

/* Karty: naglowek blisko obrazka (wpis dodaje naglowkom H2/H3 duzy odstep u gory), tekst do lewej (waska karta + justowanie = dziury) */
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > :is(h2, h3, h4, h5, h6) { margin-top: .6rem !important; margin-bottom: .4rem !important; line-height: 1.2; }
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > .wp-block-image:first-child + :is(h2, h3, h4, h5, h6, p) { margin-top: .9rem !important; }
.wp-block-columns.is-style-seaglass-cards .wp-block-column p:not([class*="has-text-align-"]) { text-align: left; hyphens: manual; }
.wp-block-columns.is-style-seaglass-cards > .wp-block-column > .wp-block-buttons { gap: .5rem; }

/* ---------- Lead wpisu/strony (pole wtyczki Seaglass Tools, Block Bindings) ---------- */
.sg-lead {
	margin-top: .6rem !important;
	font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
	line-height: 1.55;
	color: var(--wp--custom--lead);
	text-wrap: pretty;
}

/* ---------- Emoji jako sylwetka w kolorze tekstu (ikony kategorii) ----------
   Kolorowych emoji nie da sie przemalowac, wiec rysujemy ich cien w currentColor,
   a sam znak przesuwamy poza przycinane pudelko. */
.sg-emoji { display: inline-block; overflow: hidden; line-height: 1; vertical-align: middle; }
.sg-emoji > span { display: inline-block; transform: translateX(-3em); filter: drop-shadow(3em 0 0 currentColor); }
/* Blok Szczegoly (rozwijane pytania: FAQ na stronie glownej i FAQ produktu) */
.wp-block-details {
	margin: 0 0 .6rem !important;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	overflow: hidden;
}
.wp-block-details summary {
	position: relative;
	padding: 1rem 3rem 1rem 1.2rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 1.1rem;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(180deg); }
.wp-block-details[open] summary { background: var(--wp--custom--tint--soft); }
.wp-block-details > :not(summary) { margin: 0 !important; padding: .2rem 1.2rem 1.1rem; color: var(--wp--preset--color--muted); }
.wp-block-details > :not(summary) > :first-child { margin-top: 0; }
.wp-block-details > :not(summary) > :last-child { margin-bottom: 0; }

@media (forced-colors: active) {
	.sg-emoji > span { transform: none; filter: none; }
}

/* Tresc wpisu/strony na pelna szerokosc (zeby dzialaly „szeroki” i „pelna szerokosc”):
   bloki wyrownane do lewej/prawej zostaja przy krawedzi kolumny tekstu, a nie ekranu. */
.wp-block-post-content.is-layout-constrained > .alignleft { margin-inline-start: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; }
.wp-block-post-content.is-layout-constrained > .alignright { margin-inline-end: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important; }
