/* ============ Static pages: hero band + editorial content ============ */

/* --- Page hero band --- */
.mke-page-hero {
	background: linear-gradient(180deg, var(--cream-light) 0%, #fff 100%);
	border-bottom: 1px solid var(--line);
}
.mke-page-hero-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 4rem 1.25rem 3.2rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}
.mke-page-hero.has-image .mke-page-hero-inner { grid-template-columns: 1.1fr .9fr; }
.mke-page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); max-width: 640px; }
.mke-page-lead { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); max-width: 520px; line-height: 1.7; }
.mke-page-hero-media img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: var(--shadow);
}

.mke-page-hero.is-compact .mke-page-hero-inner { padding: 2rem 1.25rem 1.6rem; }
.mke-page-hero.is-compact h1 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }

/* --- Content column --- */
.mke-page-wrap {
	max-width: 820px;
	margin: 0 auto;
	padding: 3.2rem 1.25rem 4.5rem;
}
.mke-page-wrap > p, .mke-page-wrap > ul, .mke-page-wrap > ol { color: #3d3a33; }
.mke-page-wrap > p:first-child strong { font-size: 1.1rem; }
.mke-page-wrap h2 {
	margin: 2.6rem 0 .9rem;
	padding-top: 1.6rem;
	position: relative;
}
.mke-page-wrap h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 44px;
	height: 3px;
	background: var(--olive);
	border-radius: 2px;
}
.mke-page-wrap h3 { margin: 1.8rem 0 .5rem; }
.mke-page-wrap ul, .mke-page-wrap ol { padding-left: 1.3rem; }
.mke-page-wrap li { margin-bottom: .45rem; }
.mke-page-wrap li::marker { color: var(--olive); }
.mke-page-wrap a { color: var(--olive-dark); text-underline-offset: 2px; }
.mke-page-wrap hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.mke-page-wrap blockquote {
	border: 0;
	background: var(--bottle);
	color: var(--cream);
	border-radius: 16px;
	margin: 2.4rem 0;
	padding: 2rem 2.2rem;
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-style: italic;
	text-align: center;
}
.mke-page-wrap blockquote p { margin: 0; }

/* --- Media blocks inside content --- */
.mke-media-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
	margin: 2.6rem 0;
}
.mke-media-split > p:empty { display: none; }
.mke-page-wrap p:empty { display: none; }
.mke-media-split img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; height: 300px; object-fit: cover; }
.mke-media-split h2 { margin-top: 0; padding-top: 1.4rem; }
.mke-media-split p { color: var(--muted); }

.mke-photo-band { margin: 2.6rem 0; }
.mke-photo-band img { width: 100%; height: 340px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.mke-photo-band figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: .6rem; font-style: italic; }

/* --- Callout / info cards --- */
.mke-callout {
	background: var(--cream-light);
	border: 1px solid var(--line);
	border-left: 4px solid var(--olive);
	border-radius: 12px;
	padding: 1.3rem 1.6rem;
	margin: 1.8rem 0;
}
.mke-callout p { margin: 0; }

.mke-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin: 2rem 0;
	padding: 0 !important;
	list-style: none;
}
.mke-cards li {
	background: var(--cream-light);
	border: 0;
	border-radius: 14px;
	padding: 1.5rem 1.6rem;
	margin: 0;
	font-size: .93rem;
	color: var(--muted);
}
.mke-cards li strong {
	display: block;
	margin-bottom: .4rem;
	font-size: 1.05rem;
	color: var(--ink);
	position: relative;
	padding-left: 1.1rem;
}
.mke-cards li strong::before {
	content: '';
	position: absolute;
	left: 0;
	top: .38em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--olive);
}

@media (max-width: 600px) { .mke-cards { grid-template-columns: 1fr; } }
.mke-page-wrap a.mke-btn { color: #fff; text-decoration: none; }
.mke-page-wrap a.mke-btn:hover { color: #fff; }

/* --- Numbered steps --- */
.mke-steps { list-style: none; padding: 0 !important; margin: 2rem 0; counter-reset: step; }
.mke-steps li {
	counter-increment: step;
	position: relative;
	padding: .2rem 0 1.4rem 3.4rem;
	margin: 0;
	border-left: 1px dashed var(--line);
	margin-left: 1.2rem;
}
.mke-steps li:last-child { border-left-color: transparent; padding-bottom: .2rem; }
.mke-steps li::before {
	content: counter(step);
	position: absolute;
	left: -1.25rem;
	top: 0;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--olive);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .95rem;
}
.mke-steps li strong { display: block; margin-bottom: .2rem; }
.mke-steps li { color: var(--muted); }

/* --- Stat band --- */
.mke-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	margin: 2.4rem 0;
	padding: 0 !important;
	list-style: none;
	text-align: center;
}
.mke-stats li { background: var(--cream-light); border-radius: 14px; padding: 1.4rem 1rem; margin: 0; }
.mke-stats strong { display: block; font-family: var(--font-sans); font-weight: 700; font-size: 1.7rem; color: var(--olive-dark); line-height: 1.2; margin-bottom: .2rem; }
.mke-stats span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* --- FAQ page accordion --- */
.mke-page-wrap .mke-faq-list { border-top: 1px solid var(--line); margin-top: 1.4rem; }
.mke-faq-item { border-bottom: 1px solid var(--line); }
.mke-faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 1.15rem 2.2rem 1.15rem .2rem;
	font-weight: 600;
	position: relative;
}
.mke-faq-item summary::-webkit-details-marker { display: none; }
.mke-faq-item summary::after {
	content: '+';
	position: absolute;
	right: .4rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4rem;
	color: var(--olive);
	transition: rotate .2s ease;
}
.mke-faq-item[open] summary::after { rotate: 45deg; }
.mke-faq-item p { padding: 0 .2rem 1.2rem; color: var(--muted); margin: 0; }

/* --- Contact page --- */
.mke-contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; margin-top: .5rem; }
.mke-contact-aside {
	background: var(--cream-light);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 1.8rem;
	align-self: start;
	position: sticky;
	top: calc(var(--header-h) + 1.5rem);
}
.mke-contact-aside h3 { margin: 0 0 .8rem; }
.mke-contact-aside p { margin: 0 0 1rem; font-size: .95rem; }
.mke-contact-aside strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin-bottom: .15rem; }

/* --- Blog archive --- */
.blog .mke-main .entry-card, .archive .mke-main article { border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }

/* --- Legal pages: slightly narrower measure --- */
.page-template-default .mke-page-wrap { font-size: .98rem; }

/* --- Responsive --- */
@media (max-width: 860px) {
	.mke-page-hero.has-image .mke-page-hero-inner { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.6rem 1.25rem 2.2rem; }
	.mke-page-hero-media img { height: 220px; }
	.mke-media-split { grid-template-columns: 1fr; gap: 1.2rem; }
	.mke-media-split img { height: 220px; }
	.mke-photo-band img { height: 220px; }
	.mke-contact-grid { grid-template-columns: 1fr; gap: 1.6rem; }
	.mke-contact-aside { position: static; }
	.mke-page-wrap { padding-top: 2.4rem; }
}

/* Blog grid (home.php reuses .mke-card from home.css scope-free) */
.mke-blog-grid {
	max-width: var(--container);
	margin: 0 auto;
	padding: 3rem 1.25rem 4.5rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
}
.mke-blog-grid .mke-card { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; transition: transform .22s ease, box-shadow .22s ease; display: flex; flex-direction: column; }
.mke-blog-grid .mke-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mke-blog-grid .mke-card-img { height: 235px; overflow: clip; background: var(--cream-light); }
.mke-blog-grid .mke-card-img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.mke-blog-grid h3 { font-size: 1.15rem; margin: 1rem 1.2rem .2rem; }
.mke-blog-grid .mke-card-price { margin: 0 1.2rem; color: var(--muted); font-size: .85rem; }
.mke-blog-grid .mke-card-cta { margin: .8rem 1.2rem 1.2rem; font-size: .82rem; font-weight: 600; color: var(--olive); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .mke-blog-grid { grid-template-columns: 1fr; } }

/* Content tables (AEO: data in tables) */
.mke-page-wrap table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8rem 0;
	font-size: .93rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: clip;
}
.mke-page-wrap table th {
	background: var(--cream-light);
	text-align: left;
	padding: .8rem 1rem;
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--olive-dark);
	border-bottom: 1px solid var(--line);
}
.mke-page-wrap table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); color: #3d3a33; vertical-align: top; }
.mke-page-wrap table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .mke-page-wrap { overflow-x: visible; } .mke-page-wrap table { display: block; overflow-x: auto; } }

/* Key takeaways box */
.mke-takeaways { background: var(--bottle); color: rgba(255,255,255,.92); border-radius: 14px; padding: 1.6rem 1.8rem; margin: 2rem 0; }
.mke-takeaways strong { color: #fff; display: block; font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: .6rem; }
.mke-takeaways ul { margin: 0; padding-left: 1.2rem; }
.mke-takeaways li { margin-bottom: .35rem; }
.mke-takeaways li::marker { color: var(--cream); }

/* ---------------------------------------------------------------------------
   Editorial + answer blocks (v1.7)
   --------------------------------------------------------------------------- */

.mke-crumbs { margin: 1.75rem 0 -0.75rem; }
.mke-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; font-size: .82rem; letter-spacing: .01em; }
.mke-crumbs li { color: #6b6257; }
.mke-crumbs li + li::before { content: "›"; margin-right: .45rem; color: #b6ac9e; }
.mke-crumbs a { color: #6b6257; text-decoration: none; }
.mke-crumbs a:hover { color: #1E3A2F; text-decoration: underline; }

.mke-answer { background: #fff; border: 1px solid #e5ded2; border-left: 4px solid #1E3A2F; border-radius: 10px; padding: 1.35rem 1.5rem; margin: 2rem 0; }
.mke-answer-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #1E3A2F; font-weight: 700; margin: 0 0 .5rem; }
.mke-answer-body { margin: 0; font-size: 1.12rem; line-height: 1.6; }

.mke-toc { background: #F6F1E8; border-radius: 10px; padding: 1.35rem 1.6rem; margin: 2rem 0; }
.mke-toc-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #6b6257; font-weight: 700; margin: 0 0 .6rem; }
.mke-toc ol { margin: 0; padding-left: 1.15rem; }
.mke-toc li { margin: .3rem 0; }
.mke-toc a { color: #1E3A2F; text-decoration: none; }
.mke-toc a:hover { text-decoration: underline; }

.mke-qa { border-top: 1px solid #e5ded2; padding-top: 1.25rem; margin-top: 1.25rem; }
.mke-qa-q { font-size: 1.18rem; margin: 0 0 .5rem; }
.mke-qa-a p { margin: 0 0 .7rem; }

.mke-facts { background: #fff; border: 1px solid #e5ded2; border-radius: 10px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.mke-facts-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #6b6257; font-weight: 700; margin: 0 0 .75rem; }
.mke-facts table { width: 100%; border-collapse: collapse; }
.mke-facts th { text-align: left; font-weight: 600; padding: .5rem 1rem .5rem 0; vertical-align: top; width: 40%; color: #4a443c; }
.mke-facts td { padding: .5rem 0; vertical-align: top; }
.mke-facts tr + tr th, .mke-facts tr + tr td { border-top: 1px solid #efe9df; }

.mke-table-wrap { overflow-x: auto; margin: 2rem 0; -webkit-overflow-scrolling: touch; }
.mke-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.mke-table caption { caption-side: bottom; text-align: left; font-size: .82rem; color: #6b6257; padding-top: .6rem; }
.mke-table th, .mke-table td { padding: .7rem .9rem; border: 1px solid #e5ded2; text-align: left; vertical-align: top; }
.mke-table thead th { background: #F6F1E8; font-weight: 700; }
.mke-table tbody th { font-weight: 600; background: #fcfaf6; }

.mke-pcards { margin: 2.25rem 0; }
.mke-pcards-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #6b6257; font-weight: 700; margin: 0 0 .8rem; }
.mke-pcards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.mke-pcard { display: block; background: #fff; border: 1px solid #e5ded2; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .18s ease; }
.mke-pcard:hover { box-shadow: 0 8px 24px rgba(30,58,47,.10); }
.mke-pcard-media img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #F6F1E8; }
.mke-pcard-body { display: block; padding: .85rem 1rem 1rem; }
.mke-pcard-name { display: block; font-weight: 600; line-height: 1.35; }
.mke-pcard-price { display: block; margin-top: .3rem; color: #1E3A2F; font-weight: 700; }

.mke-related { margin: 3.5rem 0 1rem; }
.mke-related h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.mke-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.mke-related-card { display: block; text-decoration: none; color: inherit; }
.mke-related-media img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 10px; }
.mke-related-title { display: block; margin-top: .65rem; font-weight: 600; line-height: 1.4; }
.mke-related-card:hover .mke-related-title { color: #1E3A2F; text-decoration: underline; }

.mke-byline { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #e5ded2; font-size: .88rem; color: #6b6257; line-height: 1.6; }

.mke-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.1rem; margin: 2rem 0; }
.mke-swatch { background: #fff; border: 1px solid #e5ded2; border-radius: 10px; padding: 1rem 1.1rem 1.15rem; }
.mke-swatch-chip { display: block; width: 100%; height: 62px; border-radius: 7px; margin-bottom: .75rem; }
.mke-swatch-name { display: block; font-weight: 700; }
.mke-swatch-note { display: block; margin-top: .3rem; font-size: .88rem; color: #6b6257; line-height: 1.5; }


/* ---------------------------------------------------------------------------
   Tables on phones: each row becomes a small card, header cell as its title
   --------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.mke-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.mke-table, .mke-table tbody, .mke-table tr, .mke-table td, .mke-table th { display: block; }
	.mke-table tr { border: 1px solid #e5ded2; border-radius: 10px; margin-bottom: .8rem; background: #fff; overflow: clip; }
	.mke-table tbody th { border: 0; background: #F6F1E8; font-weight: 700; padding: .65rem .9rem; }
	.mke-table td { border: 0; border-top: 1px solid #efe9df; padding: .55rem .9rem .55rem .9rem; }
	.mke-table td[data-th]::before { content: attr(data-th); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #6b6257; font-weight: 700; margin-bottom: .15rem; }
	.mke-table-wrap { overflow: visible; }
}

/* ---------------------------------------------------------------------------
   Printable download sheet
   --------------------------------------------------------------------------- */
.dl-toolbar { background: #F6F1E8; border-bottom: 1px solid #e5ded2; }
.dl-toolbar-inner { max-width: 900px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; color: #6b6257; }
.dl-toolbar .mke-btn { padding: .65rem 1.2rem; font-size: .9rem; }
.dl-sheet { max-width: 820px; margin: 2rem auto; padding: 2.5rem 2.75rem; background: #fff; border: 1px solid #e5ded2; border-radius: 6px; font-size: 14.5px; line-height: 1.5; }
.dl-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid #1E3A2F; padding-bottom: 1rem; margin-bottom: 1.4rem; }
.dl-head h1 { font-size: 1.7rem; margin: 0; text-align: right; }
.dl-sheet h2 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.dl-intro { color: #4a443c; }
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.dl-card { border: 1.5px dashed #b6ac9e; border-radius: 10px; padding: .9rem 1rem; break-inside: avoid; }
.dl-card header { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .4rem; }
.dl-card h2 { margin: 0; font-size: 1.15rem; flex: 1; }
.dl-card-n { font-family: var(--font-sans); font-size: 1.05rem; color: #796F51; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-card-age { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #1E3A2F; font-weight: 700; background: #E4EEE7; padding: .15rem .5rem; border-radius: 20px; }
.dl-card p { margin: .25rem 0; font-size: .86rem; }
.dl-card-ing { color: #4a443c; }
.dl-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin: .5rem 0 1rem; }
.dl-table th, .dl-table td { border: 1px solid #cfc6b6; padding: .45rem .55rem; vertical-align: top; text-align: left; }
.dl-table thead th { background: #F6F1E8; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.dl-tick { text-align: center; font-size: 1.1rem; width: 2.2rem; }
.dl-check td:first-child { width: 60%; }
.dl-meta, .dl-sign, .dl-planner { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; margin: 0 0 1.2rem; font-size: .85rem; }
.dl-meta > div, .dl-sign > div, .dl-planner > div { display: flex; align-items: baseline; gap: .5rem; }
.dl-line { flex: 1; border-bottom: 1px solid #201E1A; min-width: 80px; height: 1.1em; }
.dl-line.short { flex: 0 0 110px; }
.dl-sign { margin-top: 1.4rem; }
.dl-checklist { list-style: none; margin: 0 0 .6rem; padding: 0; }
.dl-checklist li { display: flex; gap: .6rem; align-items: flex-start; padding: .3rem 0; border-bottom: 1px dotted #e5ded2; font-size: .9rem; }
.dl-box { font-size: 1.1rem; line-height: 1.2; }
.dl-foot { margin-top: 1.6rem; padding-top: .8rem; border-top: 1px solid #e5ded2; font-size: .76rem; color: #6b6257; }
.dl-after { max-width: 820px; margin: 0 auto 3rem; padding: 0 1.25rem; }
@media (max-width: 640px) { .dl-sheet { padding: 1.4rem 1.1rem; margin: 1rem .75rem; } .dl-cards, .dl-meta, .dl-planner { grid-template-columns: 1fr; } .dl-head { flex-direction: column; align-items: flex-start; } .dl-head h1 { text-align: left; } }
@media print {
	.mke-topbar, .mke-header, .mke-footer, .dl-toolbar, .dl-after, #wpadminbar, .cmplz-cookiebanner, #cmplz-manage-consent { display: none !important; }
	body { background: #fff; }
	.dl-sheet { border: 0; margin: 0; padding: 0; max-width: none; box-shadow: none; font-size: 12.5px; }
	.dl-cards { grid-template-columns: 1fr 1fr; }
	.dl-card { page-break-inside: avoid; }
	@page { size: A4; margin: 14mm; }
}

/* Breadcrumb row sits in its own .mke-page-wrap (page.php/single.php). It used
   to inherit the full column padding, which put ~165px of nothing between the
   hero and the first line of content. Now it is one tight row. */
div.mke-page-wrap:has(> .mke-crumbs) { padding-top: 1.3rem; padding-bottom: 0; }
div.mke-page-wrap:has(> .mke-crumbs) .mke-crumbs { margin: 0; }
div.mke-page-wrap:has(> .mke-crumbs) + .mke-page-wrap { padding-top: 1.7rem; }
@media (max-width: 860px) {
	div.mke-page-wrap:has(> .mke-crumbs) { padding-top: 1rem; }
	div.mke-page-wrap:has(> .mke-crumbs) + .mke-page-wrap { padding-top: 1.3rem; }
	.mke-page-hero.is-compact .mke-page-hero-inner { padding: 1.4rem 1.25rem 1.2rem; }
}
