:root {
	--dv-line: 1px solid color-mix(in srgb, var(--wp--preset--color--digital) 18%, transparent);
	--dv-transition: 180ms ease;
}

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--wp--preset--color--sustainable);
	color: var(--wp--preset--color--white);
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--sustainable);
	outline-offset: 3px;
}

.wp-site-blocks {
	padding-left: 0;
	padding-right: 0;
}

.dv-site-header {
	border-bottom: var(--dv-line);
}

.dv-brand {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.dv-brand img {
	display: block;
	height: auto;
	width: min(220px, 48vw);
}

.dv-brand--footer img {
	width: min(220px, 58vw);
}

.dv-site-header .wp-block-navigation-item__content {
	text-decoration: none;
	text-underline-offset: 0.35em;
}

.dv-site-header .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--sustainable);
	text-decoration-thickness: 2px;
}

.dv-eyebrow {
	align-items: center;
	display: flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	gap: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dv-eyebrow::before {
	background: var(--wp--preset--color--sustainable);
	content: "";
	height: 2px;
	width: 2.5rem;
}

.dv-hero {
	min-height: min(780px, 78vh);
	position: relative;
}

.dv-hero::after {
	background: linear-gradient(180deg, var(--wp--preset--color--digital), var(--wp--preset--color--sustainable));
	content: "";
	height: clamp(5rem, 14vw, 10rem);
	position: absolute;
	right: clamp(1.5rem, 6vw, 6rem);
	top: 0;
	width: 2px;
}

.dv-hero__title {
	max-width: 11ch;
}

.dv-hero__copy {
	max-width: 37rem;
}

.dv-section-heading {
	border-top: 2px solid var(--wp--preset--color--digital);
	padding-top: var(--wp--preset--spacing--30);
}

.dv-axis-card,
.dv-sector-card,
.dv-stat {
	border-top: 1px solid currentColor;
	height: 100%;
	padding-top: var(--wp--preset--spacing--30);
}

/* Estados do anel: um segmento aceso, dois, anel fechado. Identificam o eixo,
   como definido nas guidelines; o texto do título dá o significado. */
.dv-axis-card__symbol {
	display: block;
	height: auto;
	margin-bottom: var(--wp--preset--spacing--30);
	width: clamp(3.25rem, 6vw, 4.5rem);
}

/* Realce só na cor do filete: sobre o Azul Digital da secção, o antigo hover
   com fundo azul era invisível e o avanço do padding fazia o texto saltar. */
.dv-sector-card {
	border-top-width: 2px;
	transition: border-top-color var(--dv-transition);
}

.dv-sector-card:hover {
	border-top-color: var(--wp--preset--color--sustainable);
}

.dv-stat__value {
	color: var(--wp--preset--color--digital);
	font-size: clamp(3.5rem, 8vw, 7rem);
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 0.85;
}

.dv-post-list .wp-block-post {
	border-top: var(--dv-line);
	padding-top: var(--wp--preset--spacing--30);
}

.dv-post-list .wp-block-post-title a {
	text-decoration: none;
}

.dv-post-list .wp-block-post-title a:hover {
	color: var(--wp--preset--color--sustainable);
}

.dv-partners {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	gap: 1.5rem;
}

.dv-partner-logo {
	display: block;
	height: auto;
	max-width: 180px;
}

/* A marca INESC TEC é horizontal: precisa de mais largura do que a da AEP
   para as duas ficarem com peso ótico semelhante. */
.dv-partner-logo--inesctec {
	max-width: 235px;
}

.dv-site-footer a {
	color: inherit;
}

.dv-funding__bar {
	display: block;
	height: auto;
	width: min(680px, 100%);
}

.wp-element-button {
	transition: background-color var(--dv-transition), color var(--dv-transition), transform var(--dv-transition);
}

.wp-element-button:hover {
	background: var(--wp--preset--color--digital);
	transform: translateY(-2px);
}

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

	.wp-element-button,
	.dv-sector-card {
		transition: none;
	}
}

@media (max-width: 781px) {
	.dv-hero {
		min-height: auto;
	}

	.dv-hero::after {
		right: var(--wp--preset--spacing--30);
	}
}
