/*
 * GEO / semantic HTML helpers. Loaded last.
 */

/*
 * Titles that were <div> and are now real headings keep their original look:
 * neutralise the element styles (h1…h6 { margin, font-size… }) while the
 * existing classes (.heading-style-h2, .h2, .title…) keep winning, since this
 * selector only weighs as an element selector.
 */
:is(h1, h2, h3, h4, h5, h6):where(.heading-reset) {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* Editor headings whose level changed but whose size must not. */
.heading-as-h1 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	font-size: 2.5rem;
	font-weight: 600;
	line-height: 1.1;
}

.heading-as-h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
}

.heading-as-h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.heading-as-h4 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.6;
}

@media screen and (min-width: 768px) {
	.heading-as-h1 {
		font-size: 4rem;
	}

	.heading-as-h2 {
		font-size: 3rem;
	}

	.heading-as-h3 {
		font-size: 2rem;
	}

	.heading-as-h4 {
		font-size: 1.5rem;
	}
}

/* Screen-reader-only text. */
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Skip link. */
.skip-link {
	position: absolute;
	top: 0;
	left: 1rem;
	z-index: 10000;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 0.5rem 0.5rem;
	background: var(--white, #fff);
	color: var(--blue, #1d4ed8);
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-120%);
	transition: transform 0.2s;
}

.skip-link:focus {
	transform: translateY(0);
}

/* FAQ block: the header is now a <button> inside an <h3>. */
.faq-item__heading {
	display: block;
}

.faq-header {
	width: 100%;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.faq-header:focus-visible {
	outline: 0.125rem solid var(--blue, #1d4ed8);
	outline-offset: -0.375rem;
	border-radius: 1.25rem;
}

.faq-item:not(.active) .faq-answer {
	visibility: hidden;
	overflow: hidden;
}

/* Home figures: SAP Gold Partner badge (real image size in the markup). 200px over the 14px root. */
.data-wrapper__badge {
	width: 14.2857rem;
	max-width: 100%;
	height: auto;
}

/* "Bloque general" accordion: the question is now a <button>. */
.accordion .question {
	width: 100%;
	border-right: 0;
	border-bottom: 0;
	border-left: 0;
	background: none;
	font-family: inherit;
	line-height: inherit;
	text-align: left;
}

/* Images now carry their real width/height: keep the aspect ratio. */
.review-item-image,
.map-home-image,
.tabs-block .tab img,
.features-mobile-section img {
	height: auto;
}

/* Addresses keep the look of the surrounding text. */
.footer-address,
.location-address,
.contact-address {
	font-style: normal;
}

/* Office card: the links keep stacking as direct children of .location-wrapper did. */
.location-address {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.footer-address {
	text-align: center;
}

.footer-address:hover {
	text-decoration: none;
}
