/* Mikado Blog */
:root {
	--mkd-navy: #222e6b;
	--mkd-ink: #040920;
	--mkd-muted: #6c6c6d;
	--mkd-blue: #66b4e0;
	--mkd-sand: #f3efec;
	--mkd-line: #dcd8d2;
	--mkd-border: #e4e4e4;
	--mkd-head: "Didact Gothic", sans-serif;
	--mkd-body: Geist, sans-serif;
}

/* Eyebrow */
.mkd-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mkd-body);
	font-size: 14px;
	line-height: normal;
	text-transform: uppercase;
	color: var(--mkd-ink);
	white-space: pre-wrap;
}
.mkd-eyebrow__dot {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 2.5px;
	background: var(--mkd-blue);
}
.mkd-light .mkd-eyebrow { color: #fff; }

/* Category filter */
.mkd-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.mkd-filter__pill {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	border: 1px solid var(--mkd-line);
	border-radius: 100px;
	font-family: var(--mkd-body);
	font-size: 14px;
	line-height: 18px;
	color: var(--mkd-ink);
	text-decoration: none;
	transition: border-color .2s, background-color .2s, color .2s;
}
.mkd-filter__pill:hover { border-color: var(--mkd-navy); color: var(--mkd-ink); }
.mkd-filter__pill.is-active {
	background: var(--mkd-navy);
	border-color: var(--mkd-navy);
	color: #fff;
	font-weight: 500;
}

/* Grid + card */
.mkd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.mkd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 481px;
	background: var(--mkd-sand);
	border-radius: 12px;
	overflow: hidden;
}
.mkd-card__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}
.mkd-card__media {
	position: relative;
	height: 232px;
	overflow: hidden;
	background: #e9e4df;
}
.mkd-card__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform .5s ease;
}
.mkd-card .mkd-card__img.wp-post-image {
	flex: none !important;
	width: 100% !important;
	height: 100% !important;
}
.mkd-card:hover .mkd-card__img { transform: scale(1.04); }
.mkd-card__cat {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 100px;
	background: #fff;
	font-family: var(--mkd-body);
	font-size: 13px;
	font-weight: 500;
	line-height: normal;
	color: var(--mkd-ink);
}
.mkd-card__dot {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--mkd-blue);
}
.mkd-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
}
.mkd-card .mkd-card__title {
	margin: 0;
	font-family: var(--mkd-head);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mkd-ink);
}
.mkd-card .mkd-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-family: var(--mkd-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--mkd-muted);
}
.mkd-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 13px;
	font-family: var(--mkd-body);
	font-size: 14px;
	line-height: normal;
}
.mkd-card__time { color: var(--mkd-muted); }
.mkd-card__more {
	font-weight: 500;
	color: var(--mkd-ink);
	white-space: pre;
}
.mkd-card__more span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.mkd-card:hover .mkd-card__more span { transform: translateX(4px); }

/* AJAX filter state */
.mkd-blog-results { transition: opacity .2s; }
.mkd-blog-results.is-loading { opacity: .45; pointer-events: none; }

/* Pagination */
.mkd-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.mkd-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	padding: 12px 18px;
	border: 1px solid var(--mkd-border);
	border-radius: 8px;
	background: #fff;
	font-family: var(--mkd-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 18px;
	color: var(--mkd-ink);
	text-decoration: none;
	transition: border-color .2s;
}
.mkd-pagination a.page-numbers:hover { border-color: var(--mkd-navy); color: var(--mkd-ink); }
.mkd-pagination .page-numbers.current {
	border-color: var(--mkd-navy);
	background: var(--mkd-navy);
	color: #fff;
}
.mkd-pagination .next,
.mkd-pagination .prev { padding: 12px 22px; }
.mkd-pagination .dots { border-color: transparent; background: transparent; }

/* Breadcrumbs */
.mkd-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-family: var(--mkd-body);
	font-size: 14px;
	line-height: normal;
	color: #e4e4e4;
}
.mkd-breadcrumbs a { color: #e4e4e4; text-decoration: none; }
.mkd-breadcrumbs a:hover { color: #fff; }

/* Author */
.mkd-author {
	display: flex;
	align-items: center;
	gap: 14px;
}
.mkd-author__img {
	flex: none;
	width: 61px;
	height: 61px;
	border-radius: 50%;
	object-fit: cover;
}
.mkd-author--hero .mkd-author__img { width: 48px; height: 48px; }
.mkd-author__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: var(--mkd-body);
	line-height: normal;
}
.mkd-author__name { font-size: 16px; font-weight: 500; color: var(--mkd-ink); }
.mkd-author__pos { font-size: 14px; color: var(--mkd-muted); }
.mkd-author--hero .mkd-author__name { color: #fff; }
.mkd-author--hero .mkd-author__pos { color: #e4e4e4; }

/* Sidebar boxes */
/* Theme wrapper uses overflow:hidden, which disables position:sticky. */
.single-post .fl-page { overflow: clip !important; }
.mkd-sticky {
	position: sticky;
	top: 40px;
}
.mkd-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.mkd-box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border-radius: 12px;
	background: var(--mkd-sand);
}
.mkd-box .mkd-box__title {
	margin: 0;
	font-family: var(--mkd-head);
	font-size: 22px;
	font-weight: 400;
	line-height: normal;
	color: var(--mkd-ink);
}
.mkd-box .mkd-author-box__bio {
	margin: 0;
	font-family: var(--mkd-body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--mkd-muted);
}
.mkd-toc__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mkd-toc__list li { margin: 0; padding: 0; }
.mkd-toc__link {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--mkd-body);
	font-size: 14px;
	line-height: 18px;
	color: var(--mkd-muted);
	text-decoration: none;
	transition: color .2s;
}
.mkd-toc__link::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 1.5px;
	background: #c9c5bf;
	transform: translateY(-1px);
	transition: background-color .2s;
}
.mkd-toc__link:hover,
.mkd-toc__link.is-active { color: var(--mkd-ink); }
.mkd-toc__link.is-active { font-weight: 500; }
.mkd-toc__link.is-active::before { background: var(--mkd-blue); }

/* CTA */
.mkd-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 40px;
	border-radius: 12px;
	background: var(--mkd-sand);
}
.mkd-cta .mkd-cta__title {
	margin: 0;
	font-family: var(--mkd-head);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mkd-ink);
}
.mkd-cta .mkd-cta__text {
	max-width: 664px;
	margin: 0;
	font-family: var(--mkd-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--mkd-muted);
}
.mkd-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.mkd-btn {
	display: inline-flex;
	align-items: center;
	padding: 14px 30px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-family: var(--mkd-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 21px;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.mkd-btn--primary { background: var(--mkd-blue); color: #fff; }
.mkd-btn--primary:hover { background: var(--mkd-navy); color: #fff; }
.mkd-btn--light { background: #fff; border-color: var(--mkd-border); color: #000; }
.mkd-btn--light:hover { border-color: var(--mkd-navy); color: #000; }

/* Tags + share */
.mkd-tags-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 8px;
	font-family: var(--mkd-body);
	font-size: 14px;
	line-height: normal;
}
.mkd-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.mkd-tag {
	padding: 10px 16px;
	border: 1px solid var(--mkd-line);
	border-radius: 100px;
	color: var(--mkd-ink);
}
.mkd-share {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	color: var(--mkd-ink);
}
.mkd-share a,
.mkd-share button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--mkd-ink);
	text-decoration: none;
	cursor: pointer;
}
.mkd-share a:hover,
.mkd-share button:hover { color: var(--mkd-blue); background: none; }

/* ------------------------------------------------------------------
 * Post content (front: module class mkd-post-content, and block editor)
 * ---------------------------------------------------------------- */
.mkd-post-content .fl-module-content > *:first-child,
.mkd-post-content .fl-post-content > *:first-child { margin-top: 0; }
.mkd-post-content .fl-module-content,
.editor-styles-wrapper { counter-reset: mkdstep; }

.mkd-post-content p,
.editor-styles-wrapper .wp-block-paragraph {
	margin: 0 0 24px;
	font-family: var(--mkd-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--mkd-muted);
}
.mkd-post-content p.is-style-mkd-lead,
.mkd-post-content p.mkd-lead,
.editor-styles-wrapper p.is-style-mkd-lead,
.editor-styles-wrapper p.mkd-lead {
	font-size: 20px;
	line-height: 1.55;
	color: var(--mkd-ink);
}
.mkd-post-content h2,
.editor-styles-wrapper h2.wp-block-heading {
	margin: 32px 0 24px;
	font-family: var(--mkd-head);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mkd-ink);
	counter-reset: mkdstep;
	scroll-margin-top: 40px;
}
.mkd-post-content h3,
.editor-styles-wrapper h3.wp-block-heading {
	margin: 32px 0 16px;
	font-family: var(--mkd-head);
	font-size: 22px;
	font-weight: 400;
	line-height: normal;
	color: var(--mkd-ink);
}
.mkd-post-content ul,
.mkd-post-content ol { margin: 0 0 24px; padding-left: 22px; color: var(--mkd-muted); line-height: 1.65; }
.mkd-post-content li { margin-bottom: 8px; }
.mkd-post-content a { color: var(--mkd-navy); text-decoration: underline; text-underline-offset: 3px; }
.mkd-post-content img { border-radius: 12px; }

/* Step */
.mkd-post-content .is-style-mkd-step,
.editor-styles-wrapper .is-style-mkd-step {
	position: relative;
	margin: 0 0 24px;
	padding: 24px 28px 24px 84px;
	border-radius: 12px;
	background: var(--mkd-sand);
	counter-increment: mkdstep;
}
.mkd-post-content .is-style-mkd-step::before,
.editor-styles-wrapper .is-style-mkd-step::before {
	content: counter(mkdstep);
	position: absolute;
	top: 24px;
	left: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--mkd-blue);
	font-family: var(--mkd-body);
	font-size: 16px;
	font-weight: 500;
	color: #fff;
}
.mkd-post-content .is-style-mkd-step h3,
.editor-styles-wrapper .is-style-mkd-step h3 {
	margin: 0 0 6px;
	line-height: normal;
}
.mkd-post-content .is-style-mkd-step p,
.editor-styles-wrapper .is-style-mkd-step p {
	margin: 0;
	line-height: 1.6;
}

/* Callout */
.mkd-post-content .is-style-mkd-callout,
.editor-styles-wrapper .is-style-mkd-callout {
	position: relative;
	margin: 0 0 24px;
	padding: 28px 28px 28px 52px;
	border-radius: 12px;
	background: var(--mkd-navy);
}
.mkd-post-content .is-style-mkd-callout::before,
.editor-styles-wrapper .is-style-mkd-callout::before {
	content: "";
	position: absolute;
	top: 28px;
	bottom: 28px;
	left: 28px;
	width: 4px;
	border-radius: 2px;
	background: var(--mkd-blue);
}
.mkd-post-content .is-style-mkd-callout p,
.editor-styles-wrapper .is-style-mkd-callout p {
	margin: 0;
	font-family: var(--mkd-head);
	font-size: 22px;
	line-height: 1.4;
	color: #fff;
}

/* FAQ (core Details block) */
.mkd-post-content .wp-block-details,
.editor-styles-wrapper .wp-block-details {
	margin: 0 0 24px;
	padding: 22px 0;
	border-bottom: 1px solid #e2ded8;
}
.mkd-post-content .wp-block-details summary,
.editor-styles-wrapper .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-family: var(--mkd-head);
	font-size: 22px;
	line-height: normal;
	color: var(--mkd-ink);
	list-style: none;
	cursor: pointer;
}
.mkd-post-content .wp-block-details summary::-webkit-details-marker { display: none; }
.mkd-post-content .wp-block-details summary::after,
.editor-styles-wrapper .wp-block-details summary::after {
	content: "+";
	flex: none;
	font-family: var(--mkd-body);
	font-size: 24px;
	line-height: 1;
	color: var(--mkd-blue);
}
.mkd-post-content .wp-block-details[open] summary::after,
.editor-styles-wrapper .wp-block-details[open] summary::after { content: "\2212"; }
.mkd-post-content .wp-block-details p,
.editor-styles-wrapper .wp-block-details p {
	max-width: 680px;
	margin: 10px 0 0;
	line-height: 1.6;
}
.mkd-post-content .wp-block-details:last-child { margin-bottom: 0; }


/* Layout parts */
.mkd-post-hero-top,
.mkd-hero-top {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.mkd-hero-top { gap: 16px; }
.mkd-hero-title { max-width: 800px; }
.mkd-light .mkd-eyebrow { color: #fff; }
.mkd-hero-text {
	max-width: 640px;
	margin: 0;
	font-family: var(--mkd-body);
	font-size: 16px;
	line-height: 1.5;
	color: #fff;
}
.mkd-cover {
	height: 640px;
	overflow: hidden;
}
.mkd-cover__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.mkd-post-after {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.mkd-post-after .fl-html {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.mkd-related__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.mkd-related__titles {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.mkd-related .mkd-related__title,
.mkd-archive .mkd-archive__title { margin: 0; }
.mkd-archive {
	display: flex;
	flex-direction: column;
	gap: 56px;
}
.mkd-archive__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.mkd-empty { margin: 0; }

/* ------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.mkd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.mkd-card { min-height: 0; }
	.mkd-card .mkd-card__title { font-size: 22px; }
	.mkd-sticky { position: static; }
	.mkd-sidebar { margin-top: 24px; }
	.mkd-toc { display: none; }
	.mkd-cover { height: 440px; }
	.mkd-related .mkd-card:nth-child(3) { display: none; }
	.mkd-archive { gap: 40px; }
	.mkd-post-content h2,
	.mkd-cta .mkd-cta__title { font-size: 30px; }
}

@media (max-width: 767px) {
	.mkd-grid { grid-template-columns: 1fr; gap: 20px; }
	.mkd-card__media { height: 210px; }
	.mkd-card__body { padding: 24px 20px; }
	.mkd-filter { flex-wrap: nowrap; gap: 8px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
	.mkd-filter::-webkit-scrollbar { display: none; }
	.mkd-filter__pill { flex: none; padding: 10px 16px; }
	.mkd-pagination .page-numbers { min-width: 40px; padding: 10px 14px; }
	.mkd-post-content p.is-style-mkd-lead,
	.mkd-post-content p.mkd-lead { font-size: 18px; }
	.mkd-post-content h2,
	.mkd-cta .mkd-cta__title { font-size: 26px; }
	.mkd-post-content .is-style-mkd-step { padding: 20px 20px 20px 72px; }
	.mkd-post-content .is-style-mkd-step::before { top: 20px; left: 20px; width: 36px; height: 36px; }
	.mkd-post-content .is-style-mkd-step h3,
	.mkd-post-content .wp-block-details summary { font-size: 20px; }
	.mkd-post-content .is-style-mkd-callout { padding: 24px 20px 24px 40px; }
	.mkd-post-content .is-style-mkd-callout::before { top: 24px; bottom: 24px; left: 20px; }
	.mkd-post-content .is-style-mkd-callout p { font-size: 20px; }
	.mkd-cta { padding: 28px 20px; }
	.mkd-box { padding: 24px 20px; }
	.mkd-tags-share { flex-direction: column; align-items: flex-start; }
	.mkd-cover { height: 260px; }
	.mkd-related .mkd-card:nth-child(3) { display: flex; }
	.mkd-archive { gap: 32px; }
	.mkd-related__head { margin-bottom: 24px; }
}
