/*
 * Client Base Theme — style uzupełniające.
 * Większość wyglądu pochodzi z theme.json (Global Styles).
 * Ten plik zawiera tylko to, czego theme.json nie obsługuje:
 * dostępność (skip-link, focus) oraz podstawowy wygląd nagłówka.
 */

.skip-link {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: -9999px;
	z-index: 100000;
	padding: 0.75em 1.25em;
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
	text-decoration: none;
	border-radius: 0 0 var(--wp--custom--radius--small) 0;
}

.skip-link:focus {
	inset-inline-start: 0;
}

.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

img {
	height: auto;
	max-width: 100%;
}

.cbt-site-header {
	position: relative;
	background-color: var(--wp--preset--color--background);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

/*
 * Elementy edytorialskiego stylu wzorców (Etap 3, wersja "Bold & Editorial"):
 * mały nadtytuł, duży wyblakły numer porządkowy, cienki podział zamiast
 * obramowanych kart oraz link ze strzałką reagującą na hover.
 */
.cbt-eyebrow {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	color: var(--wp--preset--color--accent);
}

.cbt-index-number {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	opacity: 0.25;
}

.cbt-divider {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	margin: 0;
}

.cbt-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	text-decoration: none;
	font-weight: 600;
}

.cbt-link-arrow .cbt-link-arrow__glyph {
	transition: transform 0.2s ease;
}

.cbt-link-arrow:hover .cbt-link-arrow__glyph {
	transform: translateX(0.25em);
}

/* Akordeon FAQ (core/details) w stylu edytorialskim — bez własnego JS. */
.wp-block-details {
	border: none;
	border-top: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--30) 0;
}

.wp-block-details summary {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	cursor: pointer;
	padding-right: 2rem;
}

.wp-block-details summary:hover {
	color: var(--wp--preset--color--primary);
}
