*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

:where(h1, h2, h3, h4, p, ul, ol, figure) {
	margin-block: 0;
}

:where(h1, h2) {
	text-wrap: balance;
}

.is-style-kicker + :is(h1, h2, h3) {
	margin-top: 12px;
}

h2.wp-block-heading + p {
	margin-top: 20px;
}

/* Butoanele păstrează distanță față de textul sau lista de deasupra. */
:is(p, .wp-block-list) + .wp-block-buttons {
	margin-top: 22px;
}

/* O ancoră din pagină se oprește sub antetul fix. */
:target {
	scroll-margin-top: 110px;
}

a:hover {
	opacity: 0.9;
}

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

/* Etichetă mică, rotunjită: gri, sau roșie pentru transmisia automată. */
.jianu-tag {
	display: inline-block;
	padding: 5px 10px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--color--faint);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.26;
	text-transform: uppercase;
}

.is-automata:not(.is-soon) .jianu-tag {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* Rândul de stele din recenzii și din caseta cu nota. */
.is-style-stars {
	color: var(--wp--preset--color--star);
	font-size: 14px;
	letter-spacing: 2px;
	line-height: 21px;
}

/* Șir de file rotunjite: filtrul flotei și listele cu stilul „File rotunjite”. */
:is(.wp-block-jianu-fleet__filters, .is-style-tabs) {
	display: flex;
	gap: 6px;
	padding: 5px;
	list-style: none;
	border: 1px solid var(--wp--custom--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.26;
	white-space: nowrap;
}

:is(.wp-block-jianu-fleet__filters button, .is-style-tabs :is(a, strong)) {
	display: block;
	padding: 9px 18px;
	border-radius: var(--wp--custom--radius--pill);
}

:is(.wp-block-jianu-fleet__filters [aria-pressed="true"], .is-style-tabs strong) {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
