/* Blog (inc/blog.php): the list pages (home.php, archive.php, search.php via parts/blog-list.php) and posts (single-post.php). */

/* List hero: the light band of the information pages, with the search form under the title. */
.mdk-section.mdk-blog-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 64px var(--mdk-gutter) 40px;
	background: linear-gradient(to bottom, #effafa 0%, #fff 100%);
}
.mdk-blog-hero .mdk-eyebrow {
	color: var(--mdk-teal);
	font-weight: 600;
}
.mdk-blog-hero .mdk-head__title {
	color: var(--mdk-ink);
	font-size: 44px;
	line-height: 1.4;
}

.mdk-blog-search {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 560px;
	padding: 6px;
	box-sizing: border-box;
	border: 0.8px solid #c9eeee;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(35, 74, 75, 0.06);
}
.mdk-blog-search:focus-within {
	border-color: var(--mdk-teal);
	box-shadow: 0 0 0 3px rgba(31, 173, 162, 0.16);
}
.mdk-blog-search input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	background: transparent;
	color: var(--mdk-text);
	font: inherit;
	font-size: 16px;
	box-shadow: none;
}
.mdk-blog-search input:focus {
	outline: none;
	box-shadow: none;
}
.mdk-blog-search button {
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 8px;
	background: var(--mdk-teal);
	color: #fff;
	font: inherit;
	font-size: 16px;
	cursor: pointer;
}
.mdk-blog-search button:hover {
	background: #188f86;
}

/* Category links and the post grid */
.mdk-section.mdk-blog {
	padding: 24px 0 80px;
}
.mdk-blog__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.mdk-blog-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.mdk-blog-cats__link {
	padding: 8px 18px;
	border: 0.8px solid #c9eeee;
	border-radius: 999px;
	background: #fff;
	color: var(--mdk-slate);
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}
.mdk-blog-cats__link:hover {
	border-color: var(--mdk-teal);
	color: var(--mdk-teal-dark);
}
.mdk-blog-cats__link[aria-current] {
	border-color: var(--mdk-teal);
	background: var(--mdk-teal);
	color: #fff;
}

/* Post card. The title link covers the whole card; the category link sits above it. */
.mdk-blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 0.8px solid #d7efef;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(35, 74, 75, 0.06);
	/* transform, not translate: the scroll reveal animates translate. */
	transition: box-shadow 0.2s, transform 0.2s;
}
.mdk-blog-card:hover {
	box-shadow: 0 16px 40px rgba(35, 74, 75, 0.11);
	transform: translateY(-4px);
}
.mdk-blog-card__media {
	aspect-ratio: 16 / 10;
	background: #effafa;
}
.mdk-blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mdk-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 24px 24px;
}
.mdk-blog-card__cat {
	position: relative;
	z-index: 1;
	font-size: 13px;
	text-decoration: none;
}
.mdk-blog-card__cat:hover {
	border-color: var(--mdk-teal);
}
.mdk-blog-card__title {
	color: var(--mdk-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
}
.mdk-blog-card__title a {
	color: inherit;
	text-decoration: none;
}
.mdk-blog-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.mdk-blog-card:hover .mdk-blog-card__title a {
	color: var(--mdk-teal-dark);
}
.mdk-blog-card__title a:focus-visible {
	outline: none;
}
.mdk-blog-card:has(.mdk-blog-card__title a:focus-visible) {
	outline: 2px solid var(--mdk-teal);
	outline-offset: 2px;
}
.mdk-blog-card__excerpt {
	color: var(--mdk-muted);
	font-size: 16px;
	line-height: 1.8;
}
.mdk-section.mdk-section .mdk-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
	color: #6b7a7d;
	font-size: 14px;
	line-height: 1.6;
}

.mdk-blog-pages .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.mdk-blog-pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	box-sizing: border-box;
	border: 0.8px solid #c9eeee;
	border-radius: 10px;
	color: var(--mdk-slate);
	text-decoration: none;
}
.mdk-blog-pages a.page-numbers:hover {
	border-color: var(--mdk-teal);
	color: var(--mdk-teal-dark);
}
.mdk-blog-pages .page-numbers.current {
	border-color: var(--mdk-teal);
	background: var(--mdk-teal);
	color: #fff;
}
.mdk-blog-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 48px 16px;
	color: var(--mdk-muted);
	font-size: 18px;
	text-align: center;
}
.mdk-section.mdk-blog--related {
	padding-top: 64px;
	border-top: 1px solid #e3f1f1;
	background: linear-gradient(to bottom, #fff 0%, #f5fbfb 100%);
}
.mdk-blog__heading {
	color: var(--mdk-ink);
	text-align: center;
}

/* Post: title band */
.mdk-section.mdk-post-hero {
	padding: 48px var(--mdk-gutter) 32px;
	background: linear-gradient(to bottom, #effafa 0%, #fff 100%);
}
.mdk-post-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 880px;
	margin-inline: auto;
}
.mdk-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	color: #6b7a7d;
	font-size: 14px;
	line-height: 1.6;
	list-style: none;
}
.mdk-breadcrumb li + li::before {
	content: "/";
	margin-inline-end: 6px;
	color: #9aa7a5;
}
.mdk-breadcrumb a {
	color: var(--mdk-teal-dark);
	text-decoration: none;
}
.mdk-breadcrumb a:hover {
	text-decoration: underline;
}
.mdk-post__title {
	color: var(--mdk-ink);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.5;
}
.mdk-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: #6b7a7d;
	font-size: 15px;
	line-height: 1.6;
}

/* Post: cover, article, app box and share links in one centred column */
.mdk-section.mdk-post-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	padding: 0 var(--mdk-gutter) 64px;
}
.mdk-post-body > * {
	width: 100%;
	max-width: 760px;
	box-sizing: border-box;
}
.mdk-post-body > .mdk-post__cover {
	max-width: 880px;
}
.mdk-post__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	border-radius: 24px;
	object-fit: cover;
}

/* Article text. Doubled classes: the section reset (site.css) zeroes margins inside .mdk-section. */
.mdk-prose {
	color: #1f2d2d;
	font-size: 18px;
	line-height: 2;
	overflow-wrap: break-word;
}
.mdk-section.mdk-section .mdk-prose > * + * {
	margin-top: 20px;
}
.mdk-section.mdk-section .mdk-prose > :is(h2, h3, h4) {
	margin-top: 44px;
}
.mdk-section.mdk-section .mdk-prose > :is(h2, h3, h4) + * {
	margin-top: 12px;
}
.mdk-prose h2 {
	color: var(--mdk-teal-dark);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.6;
}
.mdk-prose h3 {
	color: var(--mdk-ink);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.6;
}
.mdk-prose h4 {
	color: var(--mdk-ink);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.6;
}
.mdk-prose a {
	color: var(--mdk-teal-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}
.mdk-prose a:hover {
	color: var(--mdk-teal);
}
.mdk-prose strong {
	color: var(--mdk-ink);
	font-weight: 700;
}
.mdk-section.mdk-section .mdk-prose :is(ul, ol) {
	padding-inline-start: 24px;
}
.mdk-prose li + li {
	margin-top: 8px;
}
.mdk-prose li::marker {
	color: var(--mdk-teal);
}
.mdk-prose blockquote,
.mdk-prose .mdk-post-note {
	margin-inline: 0;
	padding: 16px 20px;
	border-inline-start: 4px solid var(--mdk-teal);
	border-radius: 12px;
	background: #effafa;
	color: var(--mdk-ink);
}
.mdk-section.mdk-section .mdk-prose figure {
	margin-inline: 0;
}
.mdk-prose img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: 16px;
}
.mdk-prose figcaption {
	margin-top: 8px;
	color: #6b7a7d;
	font-size: 14px;
	text-align: center;
}
.mdk-prose iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 16px;
}
.mdk-prose table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 16px;
}
.mdk-prose :is(th, td) {
	padding: 10px 12px;
	border: 1px solid #d7efef;
	text-align: start;
}
.mdk-prose th {
	background: #effafa;
}
.mdk-prose hr {
	border: 0;
	border-top: 1px solid #d7efef;
}
/* Download buttons inside the article (old posts' app links) */
.mdk-prose .mdk-post-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
.mdk-prose .mdk-post-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 24px;
	box-sizing: border-box;
	border-radius: 10px;
	background: var(--mdk-teal);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}
.mdk-prose .mdk-post-cta a:hover {
	background: #188f86;
	color: #fff;
}

.mdk-post-app {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	border: 0.8px solid #c9eeee;
	border-radius: 24px;
	background: linear-gradient(135deg, #e3f6f5 0%, #f6fcfc 100%);
}
.mdk-post-app__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.mdk-post-app__title {
	color: var(--mdk-teal-dark);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.5;
}
.mdk-post-app p {
	color: var(--mdk-muted);
	font-size: 16px;
	line-height: 1.8;
}
.mdk-post-app .mdk-stores {
	flex: none;
	flex-wrap: nowrap;
	gap: 12px;
}
.mdk-post-app .mdk-stores img {
	height: 44px;
}

.mdk-post-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 24px;
	border-top: 1px solid #e3f1f1;
}
.mdk-post-share__label {
	color: var(--mdk-ink);
	font-weight: 600;
}
.mdk-section.mdk-section .mdk-post-share ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mdk-post-share :is(a, button) {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	box-sizing: border-box;
	border: 0.8px solid #c9eeee;
	border-radius: 999px;
	background: #fff;
	color: var(--mdk-slate);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}
.mdk-post-share :is(a, button):hover {
	border-color: var(--mdk-teal);
	background: #fff;
	color: var(--mdk-teal-dark);
}

@media (max-width: 860px) {
	.mdk-section.mdk-blog-hero {
		gap: 20px;
		padding: 40px var(--mdk-gutter) 28px;
	}
	.mdk-blog-hero .mdk-head__title {
		font-size: 32px;
	}
	.mdk-section.mdk-blog {
		padding: 16px 0 56px;
	}
	.mdk-blog__inner {
		gap: 24px;
	}
	/* Category links wrap onto a second line when a language names them at length. */
	.mdk-blog-cats {
		justify-content: flex-start;
	}
	.mdk-blog-card__body {
		padding: 18px 20px 20px;
	}
	.mdk-blog-card__title {
		font-size: 19px;
	}
	.mdk-section.mdk-blog--related {
		padding-top: 48px;
	}
	.mdk-section.mdk-post-hero {
		padding: 28px var(--mdk-gutter) 20px;
	}
	.mdk-post__title {
		font-size: 28px;
	}
	.mdk-section.mdk-post-body {
		gap: 28px;
		padding-bottom: 48px;
	}
	.mdk-post__cover img {
		border-radius: 16px;
	}
	.mdk-prose {
		font-size: 17px;
		line-height: 1.95;
	}
	.mdk-prose h2 {
		font-size: 23px;
	}
	.mdk-prose h3 {
		font-size: 20px;
	}
	.mdk-prose .mdk-post-cta a {
		width: 100%;
	}
	.mdk-post-app {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 20px;
	}
	.mdk-post-app .mdk-stores {
		flex-wrap: wrap;
	}
	.mdk-post-app .mdk-stores img {
		height: 40px;
	}
}
