/*
 * Blog: the listing (archive-blog.php, taxonomy-blog_topic.php) and a post
 * (single-blog.php). Rides on the .works-page shell like careers.css and takes its
 * card chrome from there: 0.1rem white/16 border, 1.6rem radius, white/4 glass,
 * the teal wash and the arrow on hover.
 *
 * Reading text uses max(rem, px): the theme drops the root size to 1.74vw at
 * 375px and below (6.5px), which would put 1.8rem body copy at 11.7px on a phone.
 */

.blog-page > .container {
	z-index: 2; /* above .bg-gradient, see careers.css */
}

.blog-page .breadcrumb {
	margin-bottom: 5.6rem;
}

/* --- Headline and intro -------------------------------------------------- */

.blog-page .blog-h1 {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 3.2rem;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: clamp(max(3.2rem, 30px), 5vw, 7.2rem);
	line-height: 1.05;
	letter-spacing: normal;
	text-wrap: balance;
	/* The careers headline fill, so the two sections read as one site. */
	background: radial-gradient(106% 141% at 21% 38%,
			#fff 0%,
			rgba(202, 207, 214, 0.87) 25%,
			rgba(150, 159, 173, 0.74) 50%,
			rgba(97, 111, 131, 0.61) 75%,
			rgba(45, 63, 90, 0.48) 100%);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.blog-intro,
.blog-lead {
	max-width: 78rem;
	margin: -0.8rem 0 4.8rem;
	font-size: max(2rem, 16px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
}

/* --- Topic filter -------------------------------------------------------- */

.blog-topics {
	margin-bottom: 4.8rem;
}

.blog-topics ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The works filter pills (.list-tags in styles.min.css), which that file hides
   on phones; here they wrap instead. */
.blog-topics a {
	display: block;
	padding: 1.2rem 2.8rem;
	border: 0.1rem solid rgba(255, 255, 255, 0.26);
	border-radius: 50rem;
	background: rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 0 1.6rem rgba(255, 255, 255, 0.12);
	font-size: max(1.6rem, 14px);
	line-height: 1.1;
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.blog-topics a:hover,
.blog-topics a:focus-visible {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.blog-topics a[aria-current="page"] {
	color: #fff;
	border-color: #4fd1a5;
	background: rgba(9, 133, 100, 0.24);
}

/* --- Cards --------------------------------------------------------------- */

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.4rem;
	margin: 0 0 6.4rem;
	padding: 0;
	list-style: none;
}

.blog-grid > li {
	display: flex;
}

.blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border-radius: 1.6rem;
	background-color: rgba(255, 255, 255, 0.04);
	-webkit-backdrop-filter: blur(0.8rem);
	backdrop-filter: blur(0.8rem);
	color: #fff;
	text-decoration: none;
	/* translate, not transform: .js-fade-el's entrance tween owns the inline transform. */
	transition: border-color 0.3s ease, background-color 0.3s ease,
		translate 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.3s ease;
}

.blog-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(9, 133, 100, 0) 45%, rgba(9, 133, 100, 0.28) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

/* Outline drawn above the scaled image; a real border lets it bleed over the corners. */
.blog-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	border: 0.1rem solid rgba(255, 255, 255, 0.16);
	border-radius: inherit;
	transition: border-color 0.3s ease;
	pointer-events: none;
}

.blog-card:hover::after,
.blog-card:focus-visible::after {
	border-color: rgba(255, 255, 255, 0.4);
}

.blog-card:hover,
.blog-card:focus-visible {
	background-color: rgba(255, 255, 255, 0.07);
	translate: 0 -0.3rem;
	box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.42);
}

.blog-card:focus-visible {
	outline: 0.2rem solid #4fd1a5;
	outline-offset: 0.3rem;
}

.blog-card:hover::before,
.blog-card:focus-visible::before {
	opacity: 1;
}

.blog-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #11376f 0%, #116f64 100%);
}

.blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.blog-card:hover .blog-card__media img {
	scale: 1.04;
}

.blog-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 1.2rem;
	padding: 2.4rem 2.4rem 2.8rem;
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.6rem;
	font-size: max(1.4rem, 13px);
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.6);
}

.blog-card__topic {
	color: #4fd1a5;
}

.blog-card__title {
	margin: 0;
	padding-right: 4rem; /* room for the arrow */
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(2.6rem, 20px);
	line-height: 1.15;
	text-wrap: balance;
	transition: translate 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.blog-card:hover .blog-card__title {
	translate: 0.4rem 0;
}

.blog-card__excerpt {
	font-size: max(1.6rem, 14px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.72);
}

.blog-card .vacancy-arrow {
	position: absolute;
	top: 2.4rem;
	right: 2.4rem;
	width: 2.4rem;
	height: 2.4rem;
	color: rgba(255, 255, 255, 0.24);
	transition: color 0.3s ease, translate 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.blog-card .vacancy-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(135deg);
	transition: transform 0.3s ease;
}

.blog-card:hover .vacancy-arrow,
.blog-card:focus-visible .vacancy-arrow {
	color: #fff;
	translate: 0.4rem -0.4rem;
}

.blog-card:hover .vacancy-arrow svg,
.blog-card:focus-visible .vacancy-arrow svg {
	transform: rotate(90deg);
}

/* --- Pagination and empty state ----------------------------------------- */

.blog-pagination {
	margin-bottom: 8rem;
}

.blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.8rem;
	min-height: 4.8rem;
	padding: 0 1.6rem;
	border: 0.1rem solid rgba(255, 255, 255, 0.16);
	border-radius: 50rem;
	font-size: max(1.6rem, 14px);
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: border-color 0.3s ease, color 0.3s ease;
}

.blog-pagination a.page-numbers:hover,
.blog-pagination a.page-numbers:focus-visible {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.blog-pagination .page-numbers.current {
	border-color: #4fd1a5;
	color: #fff;
}

.blog-empty {
	max-width: 78rem;
	margin-bottom: 8rem;
	padding: 4.8rem;
	border: 0.1rem solid rgba(255, 255, 255, 0.16);
	border-radius: 1.6rem;
	background: rgba(255, 255, 255, 0.04);
}

.blog-empty__title {
	margin: 0 0 1.6rem;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(3.2rem, 22px);
	line-height: 1.1;
}

.blog-empty__text {
	margin: 0 0 3.2rem;
	font-size: max(1.8rem, 15px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

/* --- A post -------------------------------------------------------------- */

.blog-article {
	max-width: 112rem;
	margin-bottom: 9.6rem;
}

.blog-article__head {
	max-width: 96rem;
}

.blog-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem 2rem;
	margin-bottom: 2.4rem;
	font-size: max(1.6rem, 14px);
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.6);
}

.blog-topic {
	padding: 0.8rem 1.8rem;
	border: 0.1rem solid rgba(79, 209, 165, 0.5);
	border-radius: 50rem;
	color: #4fd1a5;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.blog-topic:hover,
.blog-topic:focus-visible {
	background: rgba(9, 133, 100, 0.24);
}

/* .blog-meta__author: colour, underline and hover come from the text-link block at the end of styles.min.css. */

.blog-cover {
	margin: 0 0 4.8rem;
}

/* The cover follows the picture rule below: never taller than the screen. */
.blog-cover img {
	border: 0.1rem solid rgba(255, 255, 255, 0.16);
	border-radius: 1.6rem;
}

.blog-takeaways,
.blog-faq,
.blog-cta {
	max-width: 78rem;
	border: 0.1rem solid rgba(255, 255, 255, 0.16);
	border-radius: 1.6rem;
	background: rgba(255, 255, 255, 0.04);
}

.blog-takeaways {
	margin-bottom: 4.8rem;
	padding: 3.2rem 3.2rem 2.4rem;
	border-color: rgba(79, 209, 165, 0.4);
}

.blog-takeaways__title,
.blog-faq__title {
	margin: 0 0 2rem;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(2.8rem, 20px);
	line-height: 1.2;
	color: #fff;
}

.blog-takeaways ul {
	margin: 0;
	padding-left: 2.4rem;
}

.blog-takeaways li {
	margin-bottom: 1.2rem;
	font-size: max(1.8rem, 15px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}

.blog-takeaways li::marker {
	color: #4fd1a5;
}

/* Body: the editor's plain blocks at a 78rem (~70ch) measure; pictures and tables
   may run the full article width. */
.blog-body {
	font-size: max(1.8rem, 16px);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.78);
}

.blog-body > * {
	max-width: 78rem;
}

.blog-body > figure,
.blog-body > .wp-block-image,
.blog-body > .wp-block-table {
	max-width: 100%;
}

.blog-body h2 {
	margin: 6.4rem 0 2rem;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(3.6rem, 24px);
	line-height: 1.15;
	color: #fff;
	text-wrap: balance;
	scroll-margin-top: 12rem;
}

.blog-body h3 {
	margin: 4rem 0 1.6rem;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(2.4rem, 19px);
	line-height: 1.25;
	color: #fff;
	scroll-margin-top: 12rem;
}

.blog-body > :first-child {
	margin-top: 0;
}

.blog-body p {
	margin: 0 0 2rem;
}

.blog-body ul,
.blog-body ol {
	margin: 0 0 2.4rem;
	padding-left: 2.4rem;
}

.blog-body li {
	margin-bottom: 1rem;
}

.blog-body li::marker {
	color: #4fd1a5;
}

.blog-body strong {
	color: #fff;
	font-weight: 600;
}

/* .blog-body a: colour, underline and hover come from the text-link block at the end of styles.min.css. */

.blog-body figure {
	margin-block: 4rem;
}

/* --- Pictures: one screen at most, no empty gutters (owner, 20.10.2026) --------
   Every picture in a post (cover included) fits in one screen: never taller than
   the viewport minus the fixed header, never wider than the column. The figure is
   given that width up front from the picture's proportions (--ar = width / height,
   set by inc/blog.php from the img's width/height attributes), so it is centred and
   exactly as wide as the picture before the file loads: no hole beside a narrow or
   tall shot, no caption sticking out under empty space, no layout shift. */
.blog-cover,
.blog-body figure.wp-block-image,
.blog-body > figure:not(.wp-block-table) {
	width: min(100%, calc((100vh - 14rem) * var(--ar, 100)));
	width: min(100%, calc((100svh - 14rem) * var(--ar, 100)));
	max-width: 100%;
	margin-inline: auto;
}

.blog-cover img,
.blog-body figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.2rem;
}

/* A phone screenshot stays at phone width (className is-narrow, as on thelegacy). */
.blog-body figure.is-narrow {
	max-width: min(100%, 42rem);
}

.blog-cover figcaption,
.blog-body figcaption {
	text-align: center;
}

.blog-body figcaption {
	margin-top: 1.2rem;
	font-size: max(1.5rem, 13px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.56);
}

.blog-body blockquote {
	margin: 4rem 0;
	padding: 0.4rem 0 0.4rem 2.4rem;
	border-left: 0.3rem solid #4fd1a5;
	font-size: max(2.2rem, 18px);
	line-height: 1.5;
	color: #fff;
}

.blog-body .wp-block-table {
	overflow-x: auto;
}

.blog-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: max(1.6rem, 14px);
	line-height: 1.45;
}

.blog-body th,
.blog-body td {
	padding: 1.4rem 1.6rem;
	border-bottom: 0.1rem solid rgba(255, 255, 255, 0.12);
	text-align: left;
	vertical-align: top;
}

.blog-body th {
	color: #fff;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.04);
}

/* --- FAQ ----------------------------------------------------------------- */

.blog-faq {
	margin-top: 6.4rem;
	padding: 3.2rem;
}

.blog-faq__item {
	border-top: 0.1rem solid rgba(255, 255, 255, 0.12);
}

.blog-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.4rem;
	padding: 2rem 0;
	cursor: pointer;
	list-style: none;
}

.blog-faq__item summary::-webkit-details-marker {
	display: none;
}

/* A plus that turns into a cross when the answer is open. */
.blog-faq__item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 1.6rem;
	height: 1.6rem;
	background:
		linear-gradient(#4fd1a5, #4fd1a5) center / 100% 0.2rem no-repeat,
		linear-gradient(#4fd1a5, #4fd1a5) center / 0.2rem 100% no-repeat;
	transition: rotate 0.3s ease;
}

.blog-faq__item[open]:not(.is-closing) summary::after {
	rotate: 45deg;
}

.blog-faq__item summary:focus-visible {
	outline: 0.2rem solid #4fd1a5;
	outline-offset: 0.4rem;
	border-radius: 0.4rem;
}

.blog-faq__question {
	margin: 0;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(2rem, 17px);
	line-height: 1.3;
	color: #fff;
}

.blog-faq__answer {
	margin: 0 0 2.4rem;
	font-size: max(1.7rem, 15px);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
}

/* --- Request block ------------------------------------------------------- */

.blog-cta {
	margin-top: 6.4rem;
	padding: 4rem;
	background: rgba(9, 133, 100, 0.12);
	border-color: rgba(79, 209, 165, 0.32);
}

.blog-cta__title {
	margin: 0 0 1.2rem;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(3.2rem, 22px);
	line-height: 1.15;
	color: #fff;
}

.blog-cta__text {
	margin: 0 0 3.2rem;
	font-size: max(1.8rem, 15px);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

/* --- Related ------------------------------------------------------------- */

.blog-related__title {
	margin: 0 0 3.2rem;
	font-family: "Random Grotesque Standard", sans-serif;
	font-weight: 600;
	font-size: max(4rem, 26px);
	line-height: 1.1;
	color: #fff;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1200px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	.blog-page .breadcrumb {
		margin-bottom: 3.2rem;
	}

	.blog-takeaways,
	.blog-faq,
	.blog-empty {
		padding: 2.4rem;
	}

	.blog-cta {
		padding: 3.2rem 2.4rem;
	}
}

@media (max-width: 768px) {
	.blog-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.6rem;
	}

	.blog-topics ul {
		gap: 0.6rem;
	}

	.blog-topics a {
		padding: 1rem 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.blog-card,
	.blog-card::before,
	.blog-card__media img,
	.blog-card__title,
	.blog-card .vacancy-arrow,
	.blog-card .vacancy-arrow svg,
	.blog-faq__item summary::after {
		transition-duration: 0.01ms;
	}

	.blog-card:hover,
	.blog-card:focus-visible,
	.blog-card:hover .blog-card__title,
	.blog-card:hover .vacancy-arrow {
		translate: none;
	}

	.blog-card:hover .blog-card__media img {
		scale: none;
	}
}

/* --- Centred post (owner, 20.10.2026) --------------------------------------
   The post column sits in the middle of the page: the header is centred text,
   the body keeps left-aligned reading text in a centred 78rem column, and the
   cover, pictures and tables keep the full 112rem article width. */

.blog-post .breadcrumb {
	justify-content: center;
	flex-wrap: wrap;
	row-gap: 0.8rem;
}

.blog-post .blog-article,
.blog-post .blog-article__head {
	margin-inline: auto;
}

.blog-post .blog-article__head {
	text-align: center;
}

.blog-post .blog-meta {
	justify-content: center;
}

.blog-post .blog-h1,
.blog-post .blog-lead,
.blog-post .blog-body > *,
.blog-post .blog-takeaways,
.blog-post .blog-faq,
.blog-post .blog-cta {
	margin-inline: auto;
}

.blog-post .blog-related__title {
	text-align: center;
}
