/* ==========================================================================
   Markital blog.
   Two things live here: the listing, and the article format that every post
   inherits. The article measure, heading rhythm and callout boxes are the
   reusable part — write a post in plain WordPress blocks and it comes out
   looking like this without any per-post styling.
   ========================================================================== */

.mk-blog {
	--mk-ease: cubic-bezier(.22, .78, .26, 1);
	background: var(--void);
	color: var(--ink);
	overflow-x: clip;
}

.mk-blog .wrap {
	width: min(1200px, 100% - clamp(24px, 6vw, 88px));
	margin-inline: auto;
}
.mk-blog .wrap--read { width: min(860px, 100% - clamp(24px, 6vw, 88px)); }

/* --------------------------------------------------------------------------
   Shared controls
   -------------------------------------------------------------------------- */
.mk-blog .mkbtn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 24px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: transform .35s var(--mk-ease), box-shadow .35s var(--mk-ease), border-color .3s, color .3s;
}
.mk-blog .mkbtn--go {
	background: linear-gradient(135deg, #9BEE4C, var(--lime) 55%, #4FBF2B);
	color: var(--on-accent);
	box-shadow: 0 14px 38px rgba(124, 224, 42, .28);
}
.mk-blog .mkbtn--go:hover { transform: translateY(-3px); color: var(--on-accent); box-shadow: 0 20px 50px rgba(124, 224, 42, .4); }
.mk-blog .mkbtn--quiet { border: 1px solid var(--edge); background: var(--raise); color: var(--ink); }
.mk-blog .mkbtn--quiet:hover { border-color: var(--edge-lit); color: var(--accent-text); transform: translateY(-3px); }

.mk-blog .mklink {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	color: var(--accent-text);
	border-bottom: 1px solid rgba(124, 224, 42, .35);
	padding-bottom: 2px;
}
.mk-blog .mklink:hover { border-bottom-color: var(--accent-text); }

/* --------------------------------------------------------------------------
   Blog index
   -------------------------------------------------------------------------- */
.blog-head {
	position: relative;
	padding: calc(var(--header-h) + clamp(44px, 7vw, 86px)) 0 clamp(26px, 4vw, 44px);
	overflow: hidden;
}
.blog-head__glow {
	position: absolute;
	inset: -40% -20% auto -20%;
	height: 160%;
	pointer-events: none;
	background:
		radial-gradient(42% 40% at 20% 24%, rgba(124, 224, 42, .16), transparent 70%),
		radial-gradient(40% 36% at 84% 8%, rgba(23, 140, 120, .14), transparent 72%);
}
.blog-head > .wrap { position: relative; }

.blog-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent-text);
}
.blog-kicker__dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 0 4px rgba(124, 224, 42, .16);
}
.blog-h1 {
	color: var(--ink);
	margin: 16px 0 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	line-height: .98;
	letter-spacing: -.045em;
}
.blog-lead {
	margin: 18px 0 0;
	max-width: 56ch;
	font-size: clamp(1rem, 1.3vw, 1.14rem);
	line-height: 1.6;
	color: var(--muted-hi);
}

.blog-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: clamp(24px, 3.4vw, 38px);
}
.blog-cats__chip {
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--edge);
	background: var(--raise);
	font-size: 13px;
	font-weight: 600;
	color: var(--muted-hi);
	transition: border-color .3s, color .3s, background-color .3s;
}
.blog-cats__chip:hover { border-color: var(--edge-lit); color: var(--accent-text); }
.blog-cats__chip.is-on { background: var(--lime); border-color: var(--accent-text); color: var(--on-accent); }

.blog-body { padding-bottom: clamp(70px, 10vw, 120px); }

.pgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2vw, 26px);
	margin-top: clamp(20px, 2.6vw, 32px);
}

/* --------------------------------------------------------------------------
   Post card
   -------------------------------------------------------------------------- */
.pcard { position: relative; }
.pcard__link {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--edge);
	background: linear-gradient(170deg, rgba(var(--ink-rgb), .05), rgba(var(--ink-rgb), .012));
	color: inherit;
	transition: transform .45s var(--mk-ease), border-color .35s, box-shadow .45s var(--mk-ease);
}
.pcard__link:hover {
	transform: translateY(-5px);
	border-color: var(--edge-lit);
	box-shadow: 0 26px 60px rgba(var(--shadow-rgb), .5);
	color: inherit;
}
.pcard__shot {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface);
}
.pcard__shot img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s var(--mk-ease);
}
.pcard__link:hover .pcard__shot img { transform: scale(1.04); }
.pcard__body {
	display: grid;
	align-content: start;
	gap: 9px;
	padding: clamp(16px, 1.8vw, 22px);
}
.pcard__cat {
	justify-self: start;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--accent-text);
}
.pcard__title {
	color: var(--ink);
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.02rem, 1.4vw, 1.2rem);
	line-height: 1.24;
	letter-spacing: -.02em;
}
.pcard__excerpt { font-size: 13.5px; line-height: 1.58; color: var(--muted); }
.pcard__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 3px;
	font-size: 11.5px;
	color: var(--dim);
}

/* The newest post gets a wide card at the top of the index. */
.pcard--big .pcard__link { grid-template-columns: 1.15fr 1fr; grid-template-rows: none; }
.pcard--big .pcard__shot { aspect-ratio: auto; height: 100%; min-height: 280px; }
.pcard--big .pcard__body { align-content: center; gap: 12px; padding: clamp(24px, 3vw, 44px); }
.pcard--big .pcard__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.12; }
.pcard--big .pcard__excerpt { font-size: 15px; }

/* --------------------------------------------------------------------------
   Pagination / empty
   -------------------------------------------------------------------------- */
.mk-blog .pagination { margin-top: clamp(34px, 5vw, 56px); }
.mk-blog .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mk-blog .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--edge);
	font-size: 14px;
	font-weight: 600;
	color: var(--muted-hi);
}
.mk-blog .page-numbers:hover { border-color: var(--edge-lit); color: var(--accent-text); }
.mk-blog .page-numbers.current { background: var(--lime); border-color: var(--accent-text); color: var(--on-accent); }

.blog-empty {
	display: grid;
	justify-items: start;
	gap: 14px;
	max-width: 46ch;
	padding: clamp(30px, 4vw, 48px);
	border-radius: 20px;
	border: 1px solid var(--edge);
	background: var(--raise);
	margin-top: 20px;
}
.blog-empty h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.blog-empty p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.read-bar {
	position: fixed;
	top: 0; left: 0;
	z-index: 60;
	width: 100%; height: 3px;
	background: transparent;
	pointer-events: none;
}
.read-bar i {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #4FBF2B, var(--lime));
	box-shadow: 0 0 12px rgba(124, 224, 42, .6);
}

.art-head {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(30px, 5vw, 60px));
}
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12.5px;
	color: var(--dim);
}
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--accent-text); }

.art-cat {
	margin: clamp(18px, 2.4vw, 26px) 0 0;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent-text);
}
.art-h1 {
	color: var(--ink);
	margin: 12px 0 0;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.1rem, 4.6vw, 3.5rem);
	line-height: 1.04;
	letter-spacing: -.04em;
}
.art-standfirst {
	margin: 20px 0 0;
	font-size: clamp(1.06rem, 1.5vw, 1.3rem);
	line-height: 1.55;
	color: var(--muted-hi);
}

.art-by {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: clamp(24px, 3vw, 34px);
	padding-top: clamp(18px, 2.4vw, 24px);
	border-top: 1px solid var(--edge);
}
.art-by__face {
	width: 44px; height: 44px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 12%;
	background: rgba(124, 224, 42, .12);
}
.art-by__who { display: grid; line-height: 1.3; }
.art-by__who strong { font-size: 14px; font-weight: 700; }
.art-by__who span { font-size: 11.5px; color: var(--dim); }
.art-by__when {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 12.5px;
	color: var(--dim);
	text-align: right;
}

.art-shot {
	margin: clamp(26px, 4vw, 44px) auto 0;
	border-radius: 20px;
	overflow: hidden;
}
.art-shot img { width: 100%; height: auto; display: block; }
.art-shot figcaption {
	padding: 12px 4px 0;
	font-size: 12.5px;
	color: var(--dim);
}

/* --------------------------------------------------------------------------
   Article layout: contents rail beside the text
   -------------------------------------------------------------------------- */
.art-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	gap: clamp(32px, 5vw, 70px);
	align-items: start;
	padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 100px);
}
.art-body { max-width: 72ch; }

.art-rail {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	order: 2;
	display: grid;
	gap: 26px;
	align-content: start;
}
.toc__label {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dim);
}
.toc__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0 14px;
	border-left: 1px solid var(--edge);
	display: grid;
	gap: 9px;
}
.toc__item a {
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
	transition: color .25s;
}
.toc__item a:hover { color: var(--accent-text); }
.toc__item--h3 { padding-left: 12px; }
.toc__item--h3 a { font-size: 12.5px; }
.toc__item.is-here a { color: var(--ink); font-weight: 600; }
.toc__item.is-here { position: relative; }
.toc__item.is-here::before {
	content: '';
	position: absolute;
	left: -15px; top: 3px;
	width: 2px; height: calc(100% - 6px);
	background: var(--lime);
	box-shadow: 0 0 10px rgba(124, 224, 42, .7);
}

.share__row { display: flex; flex-wrap: wrap; gap: 7px; }
.share__btn {
	padding: 8px 13px;
	border-radius: 999px;
	border: 1px solid var(--edge);
	background: var(--raise);
	font-size: 12px;
	font-weight: 600;
	color: var(--muted-hi);
	cursor: pointer;
	font-family: inherit;
	transition: border-color .3s, color .3s;
}
.share__btn:hover { border-color: var(--edge-lit); color: var(--accent-text); }

/* ==========================================================================
   THE PROSE FORMAT — this is what every article inherits
   ========================================================================== */
.prose-mk {
	font-size: clamp(1.02rem, 1.2vw, 1.14rem);
	line-height: 1.78;
	color: var(--read);
}
.prose-mk :where(p, ul, ol, blockquote, figure, table, pre, hr, aside, div) { margin: 0; }
.prose-mk > * + * { margin-top: 1.35em; }

.prose-mk h2 {
	margin-top: 2.2em;
	margin-bottom: .25em;
	padding-top: .55em;
	border-top: 1px solid var(--edge);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 2.6vw, 2.05rem);
	line-height: 1.18;
	letter-spacing: -.032em;
	color: var(--ink);
	scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose-mk h2::before {
	content: '';
	display: block;
	width: 40px; height: 2px;
	margin-bottom: .55em;
	background: var(--lime);
	box-shadow: 0 0 12px rgba(124, 224, 42, .55);
}
.prose-mk h3 {
	margin-top: 1.9em;
	margin-bottom: .1em;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.16rem, 1.7vw, 1.4rem);
	line-height: 1.3;
	letter-spacing: -.02em;
	color: var(--ink);
	scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose-mk h4 {
	margin-top: 1.6em;
	margin-bottom: .1em;
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--ink);
}

.prose-mk strong { color: var(--ink); font-weight: 700; }
.prose-mk em { color: var(--ink); }

.prose-mk a {
	color: var(--accent-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(124, 224, 42, .45);
}
.prose-mk a:hover { text-decoration-color: var(--accent-text); }

.prose-mk ul, .prose-mk ol { padding-left: 0; list-style: none; display: grid; gap: .6em; }
.prose-mk li { position: relative; padding-left: 1.6em; }
.prose-mk ul > li::before {
	content: '';
	position: absolute;
	left: .25em; top: .72em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 9px rgba(124, 224, 42, .5);
}
.prose-mk ol { counter-reset: mk; }
.prose-mk ol > li { counter-increment: mk; }
.prose-mk ol > li::before {
	content: counter(mk);
	position: absolute;
	left: 0; top: .18em;
	font-family: var(--font-display);
	font-size: .82em;
	font-weight: 800;
	color: var(--accent-text);
}
.prose-mk li > ul, .prose-mk li > ol { margin-top: .5em; }

.prose-mk blockquote {
	margin: 1.8em 0 !important;
	padding: 4px 0 4px 24px;
    border-left: 2px solid var(--lime);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.1rem, 1.7vw, 1.36rem);
	line-height: 1.45;
	letter-spacing: -.02em;
	color: var(--ink);
}
.prose-mk blockquote p { margin: 0; }
.prose-mk blockquote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--font-body);
	font-size: 13px;
	font-style: normal;
	color: var(--dim);
}

.prose-mk img, .prose-mk figure img { max-width: 100%; height: auto; border-radius: 14px; display: block; }
.prose-mk figure { margin: 1.9em 0 !important; }
.prose-mk figcaption { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--dim); }

.prose-mk hr {
	margin: 2.4em 0 !important;
	border: 0;
	height: 1px;
	background: var(--edge);
}

.prose-mk table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92em;
	display: block;
	overflow-x: auto;
}
.prose-mk th, .prose-mk td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--edge);
	text-align: left;
	vertical-align: top;
}
.prose-mk th {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .86em;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--accent-text);
	border-bottom-color: var(--edge-lit);
}
.prose-mk tbody tr:hover { background: rgba(var(--ink-rgb), .025); }

.prose-mk code {
	padding: 2px 7px;
	border-radius: 6px;
	background: rgba(var(--ink-rgb), .08);
	font-size: .88em;
}
.prose-mk pre {
	padding: 18px 20px;
	border-radius: 14px;
	border: 1px solid var(--edge);
	background: var(--surface-deep);
	overflow-x: auto;
	font-size: .86em;
	line-height: 1.6;
}
.prose-mk pre code { background: none; padding: 0; }

/* ---- Reusable content boxes -------------------------------------------- */
/* Add class="mk-key" / "mk-note" / "mk-warn" to any paragraph, list or group
   in the editor. Nothing else is needed. */
.prose-mk .mk-key,
.prose-mk .mk-note,
.prose-mk .mk-warn {
	margin: 1.9em 0;
	padding: clamp(18px, 2.2vw, 26px);
	border-radius: 16px;
	border: 1px solid var(--edge);
	background: var(--raise);
	font-size: .96em;
}
.prose-mk .mk-key > *:first-child,
.prose-mk .mk-note > *:first-child,
.prose-mk .mk-warn > *:first-child { margin-top: 0; }

.prose-mk .mk-key {
	border-color: var(--edge-lit);
	background:
		radial-gradient(70% 60% at 0% 0%, rgba(124, 224, 42, .12), transparent 70%),
		rgba(124, 224, 42, .05);
}
.prose-mk .mk-key::before {
	content: 'Key takeaways';
	display: block;
	margin-bottom: 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent-text);
}
.prose-mk .mk-note::before {
	content: 'Note';
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dim);
}
.prose-mk .mk-warn {
	border-color: rgba(240, 180, 41, .34);
	background: rgba(240, 180, 41, .06);
}
.prose-mk .mk-warn::before {
	content: 'Watch out';
	display: block;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--amber);
}

/* The FAQ section: h3 questions read as questions without extra markup. */
.prose-mk h2[id*="faq"] ~ h3,
.prose-mk h2[id*="frequently"] ~ h3 {
	padding-top: .9em;
	border-top: 1px solid var(--edge);
	font-size: clamp(1.04rem, 1.4vw, 1.2rem);
}

.prose-mk .art-tags,
.art-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 2.6em 0 0;
	padding: 1.6em 0 0;
	border-top: 1px solid var(--edge);
}
.prose-mk .art-tags { gap: 8px; }
.art-tags li { padding: 0; }
.art-tags li::before { display: none; }
.art-tags a {
	display: inline-block;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid var(--edge);
	font-size: 12px;
	color: var(--muted);
	text-decoration: none;
}
.art-tags a:hover { border-color: var(--edge-lit); color: var(--accent-text); }

/* --------------------------------------------------------------------------
   The ask, the author, what to read next
   -------------------------------------------------------------------------- */
.prose-mk .art-cta__h,
.prose-mk .art-author__name {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}
.prose-mk .art-cta__h::before,
.prose-mk .art-author__name::before { display: none; }

.art-cta {
	margin: 3em 0 0;
	padding: clamp(26px, 3.4vw, 42px);
	border-radius: 22px;
	border: 1px solid var(--edge-lit);
	background:
		radial-gradient(70% 70% at 12% 0%, rgba(124, 224, 42, .16), transparent 70%),
		linear-gradient(160deg, rgba(124, 224, 42, .07), rgba(var(--bg-rgb), .5));
}
.art-cta__h {
	color: var(--ink);
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.16;
	letter-spacing: -.03em;
}
.art-cta__p { margin: 12px 0 0; font-size: .96em; line-height: 1.6; color: var(--muted-hi); }
.art-cta__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.art-author {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: clamp(18px, 2.4vw, 30px);
	align-items: end;
	margin: 2.4em 0 0;
	padding: clamp(22px, 2.6vw, 30px);
	border-radius: 20px;
	border: 1px solid var(--edge);
	background: var(--raise);
}
.art-author img { width: 100%; height: auto; display: block; }
.art-author__label {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dim);
}
.art-author__name {
	color: var(--ink); margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.art-author__bio { margin: 10px 0 14px; font-size: .9em; line-height: 1.6; color: var(--muted); }

.art-next {
	padding: clamp(50px, 7vw, 84px) 0 clamp(70px, 10vw, 120px);
	border-top: 1px solid var(--edge);
	background: linear-gradient(180deg, rgba(var(--ink-rgb), .02), transparent);
}
.art-next__h {
	color: var(--ink);
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 2.8vw, 2.2rem);
	letter-spacing: -.03em;
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.art-grid { grid-template-columns: 1fr; gap: 30px; }
	.art-rail {
		position: static;
		order: 0;
		grid-template-columns: 1fr;
		padding: 18px 20px;
		border-radius: 16px;
		border: 1px solid var(--edge);
		background: var(--raise);
	}
	.art-body { max-width: none; }
	.toc__item.is-here::before { display: none; }
	.pgrid { grid-template-columns: repeat(2, 1fr); }
	.pcard--big .pcard__link { grid-template-columns: 1fr; }
	.pcard--big .pcard__shot { aspect-ratio: 16 / 9; min-height: 0; }
}

/* --------------------------------------------------------------------------
   Phone
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
	.pgrid { grid-template-columns: 1fr; }
	.art-by { flex-wrap: wrap; }
	.art-by__when { margin-left: 0; width: 100%; text-align: left; }
	.art-author { grid-template-columns: 1fr; justify-items: start; }
	.art-author img { width: 90px; }
	.art-cta__row .mkbtn { flex: 1 1 100%; justify-content: center; }
	.prose-mk table { font-size: .85em; }
	.art-shot { border-radius: 14px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.pcard__link, .pcard__shot img, .mk-blog .mkbtn, .share__btn, .blog-cats__chip { transition: none; }
	.read-bar { display: none; }
}

/* ==========================================================================
   ARTICLE COMPONENT KIT

   The pieces an article is built from, so every post looks like the same
   publication instead of eight screens of unbroken paragraph. Everything here
   is plain HTML and CSS: it re-colours itself in light and dark theme, stays
   sharp at any size, costs no images and no JavaScript.

   Only existing tokens are used. Never redefine --ink, --read, --edge or
   --ease in this file: --ink is the TEXT colour in main.css, and shadowing it
   turns the whole article near-black. The page background token is --void.

   Specificity note: the flow rule is `.prose-mk > * + *` (0,1,0), so every
   component below is written as `.prose-mk .mk-x` (0,2,0) and its own margin
   wins without !important.
   ========================================================================== */

/* ---- Lead paragraph ------------------------------------------------------
   The opening paragraph of every article carries the standfirst, so it is set
   a notch larger and in full-strength ink. Automatic - nothing to add. */
.prose-mk > p:first-of-type {
	font-size: 1.1em;
	line-height: 1.66;
	color: var(--ink);
}

/* A little more air between blocks than the old 1.35em. */
.prose-mk > * + * { margin-top: 1.45em; }

/* ---- 1. Stat row ---------------------------------------------------------
   <div class="mk-stats">
     <div class="mk-stat"><b>38%</b><span>fewer clicks</span></div>
   </div>
   Three or four at most. Numbers only - if it needs a sentence, it is not a
   stat, it is a paragraph. */
.prose-mk .mk-stats {
	margin: 2em 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
	gap: 10px;
}

.prose-mk .mk-stat {
	padding: 20px 18px;
	border-radius: 16px;
	border: 1px solid var(--edge);
	background: var(--raise);
}

.prose-mk .mk-stat b {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.75rem, 3.2vw, 2.4rem);
	line-height: 1;
	letter-spacing: -.04em;
	font-variant-numeric: tabular-nums;
	color: var(--accent-text);
}

.prose-mk .mk-stat span {
	display: block;
	margin-top: 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--dim);
}

/* ---- 2. Bar chart --------------------------------------------------------
   <div class="mk-bars">
     <p class="mk-bars__h">Where each model looks</p>
     <div class="mk-bar" style="--v:52">
       <span class="mk-bar__k">Gemini</span>
       <span class="mk-bar__t"><i></i></span>
       <span class="mk-bar__v">52.0%</span>
     </div>
   </div>
   --v is the percentage as a bare number. The value is also printed as text,
   so the chart still reads correctly to a screen reader and in print. */
.prose-mk .mk-bars {
	margin: 2em 0;
	padding: clamp(18px, 2.2vw, 26px);
	border-radius: 16px;
	border: 1px solid var(--edge);
	background: var(--raise);
	display: grid;
	gap: 13px;
}

.prose-mk .mk-bars__h {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dim);
}

.prose-mk .mk-bar {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(74px, 24%) 1fr auto;
	align-items: center;
	gap: 12px;
	font-size: 14px;
}

.prose-mk .mk-bar__k {
	font-weight: 600;
	color: var(--ink);
}

.prose-mk .mk-bar__t {
	position: relative;
	height: 10px;
	border-radius: 999px;
	background: rgba(var(--ink-rgb), .09);
	overflow: hidden;
}

.prose-mk .mk-bar__t i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: calc(var(--v, 0) * 1%);
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(124, 224, 42, .5), var(--lime));
}

.prose-mk .mk-bar__v {
	min-width: 54px;
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

/* A muted bar, for the comparison value rather than the headline one. */
.prose-mk .mk-bar--mute i { background: rgba(var(--ink-rgb), .3); }

/* ---- 3. Pull quote -------------------------------------------------------
   <p class="mk-pull">One sentence worth stopping on.</p>
   One per article. Pull a line that is already in the piece; do not invent a
   new claim here. */
.prose-mk .mk-pull {
	margin: 2.2em 0;
	padding-left: clamp(18px, 2.6vw, 30px);
	border-left: 3px solid var(--lime);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.22rem, 2.3vw, 1.68rem);
	line-height: 1.32;
	letter-spacing: -.028em;
	color: var(--ink);
}

/* ---- 4. Numbered steps ---------------------------------------------------
   <ol class="mk-steps">
     <li><h4>Heading</h4><p>Body.</p></li>
   </ol>
   For a sequence or a checklist of actions. Use the ordinary <ol> when the
   items are one line each; use this when each item needs a paragraph. */
.prose-mk .mk-steps {
	margin: 2em 0;
	padding-left: 0;
	list-style: none;
	display: grid;
	gap: 10px;
	counter-reset: mkstep;
}

.prose-mk .mk-steps > li {
	counter-increment: mkstep;
	position: relative;
	padding: 18px 20px 18px 64px;
	border-radius: 16px;
	border: 1px solid var(--edge);
	background: var(--raise);
}

.prose-mk .mk-steps > li::before {
	content: counter(mkstep, decimal-leading-zero);
	position: absolute;
	left: 20px;
	top: 17px;
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: var(--font-display);
	font-size: 1.02rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--accent-text);
}

.prose-mk .mk-steps > li > *:first-child { margin-top: 0; }

.prose-mk .mk-steps h4 {
	margin: 0 0 6px;
	font-size: 1.02rem;
	color: var(--ink);
}

.prose-mk .mk-steps p {
	margin: 0;
	font-size: .95em;
}

/* ---- 5. Side by side -----------------------------------------------------
   <div class="mk-vs">
     <div class="mk-vs__yes"><h4>Worth doing</h4><ul>...</ul></div>
     <div class="mk-vs__no"><h4>Not worth it</h4><ul>...</ul></div>
   </div>
   The house voice says where something is the wrong spend. This is where. */
.prose-mk .mk-vs {
	margin: 2em 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
	gap: 10px;
}

.prose-mk .mk-vs > div {
	padding: clamp(16px, 2vw, 22px);
	border-radius: 16px;
	border: 1px solid var(--edge);
	background: var(--raise);
}

.prose-mk .mk-vs > div > *:first-child { margin-top: 0; }

.prose-mk .mk-vs h4 {
	margin: 0 0 12px;
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.prose-mk .mk-vs ul {
	gap: .5em;
	font-size: .95em;
}

.prose-mk .mk-vs__yes {
	border-color: var(--edge-lit);
	background: rgba(124, 224, 42, .05);
}

.prose-mk .mk-vs__yes h4 { color: var(--accent-text); }

.prose-mk .mk-vs__no {
	border-color: rgba(240, 180, 41, .3);
	background: rgba(240, 180, 41, .05);
}

.prose-mk .mk-vs__no h4 { color: var(--amber); }
.prose-mk .mk-vs__no ul > li::before { background: var(--amber); box-shadow: none; }

/* ---- 6. Tick list --------------------------------------------------------
   <ul class="mk-check"> - for deliverables and requirements, where a tick
   reads better than a dot. */
.prose-mk .mk-check > li::before {
	content: '';
	left: .15em;
	top: .46em;
	width: 9px;
	height: 5px;
	border: 2px solid var(--lime);
	border-top: 0;
	border-right: 0;
	border-radius: 1px;
	background: none;
	box-shadow: none;
	transform: rotate(-45deg);
}

/* ---- 7. Wide table -------------------------------------------------------
   <div class="mk-tablewrap"><table>...</table></div>
   Tables do not shrink gracefully on a phone, so they scroll inside a frame
   instead of forcing the whole page sideways. */
.prose-mk .mk-tablewrap {
	margin: 2em 0;
	overflow-x: auto;
	border-radius: 16px;
	border: 1px solid var(--edge);
	background: var(--raise);
}

.prose-mk .mk-tablewrap table {
	margin: 0;
	width: 100%;
	min-width: 440px;
	border: 0;
}

/* ---- 8. Source line ------------------------------------------------------
   <p class="mk-src">Source: Yext Research, Q1 2026. Vendor research.</p>
   Every data component gets one. Numbers without a source do not ship. */
.prose-mk .mk-src {
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.55;
	color: var(--dim);
}

.prose-mk .mk-src a { color: var(--dim); text-decoration-color: rgba(var(--ink-rgb), .3); }
.prose-mk .mk-src a:hover { color: var(--accent-text); }

/* ---- Phone --------------------------------------------------------------- */
@media (max-width: 680px) {
	.prose-mk .mk-stats { grid-template-columns: repeat(2, 1fr); }
	.prose-mk .mk-bar {
		grid-template-columns: 1fr auto;
		grid-template-areas: 'k v' 't t';
		gap: 6px 10px;
	}
	.prose-mk .mk-bar__k { grid-area: k; }
	.prose-mk .mk-bar__v { grid-area: v; }
	.prose-mk .mk-bar__t { grid-area: t; }
	.prose-mk .mk-steps > li { padding: 16px 16px 16px 54px; }
	.prose-mk .mk-steps > li::before { left: 16px; }
}

/* Grid children default to min-width: auto, so a wide table (or any long
   unbreakable line) pushed the article column past the viewport on phones
   and made the whole page scroll sideways. Let the column shrink; wide
   tables then scroll inside .mk-tablewrap as intended. */
.art-grid > * { min-width: 0; }
