/* ==========================================================================
   MediMix — blog.css (blog index, blog categories, single article)
   Loaded after pages.css on blog screens only (inc/blog.php).
   ========================================================================== */

/* ---------- Shared card ---------- */
.mx-blog-grid, .mx-blog-feature { display: grid; gap: var(--mx-s5); margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .mx-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mx-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mx-s6); } }

.mx-post-card {
	position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%;
	border: 1px solid var(--mx-line-2); border-radius: var(--mx-r-lg); overflow: hidden; background: #fff;
	transition: box-shadow .2s, transform .2s var(--mx-ease), border-color .2s;
}
.mx-post-card:hover { border-color: var(--mx-line); box-shadow: var(--mx-shadow-md); transform: translateY(-2px); }
.mx-post-card__media { display: block; overflow: hidden; background: var(--mx-surface); }
.mx-post-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s var(--mx-ease); }
.mx-post-card:hover .mx-post-card__media img { transform: scale(1.03); }
.mx-post-card__ph { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--mx-muted); }
.mx-post-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--mx-s2); padding: var(--mx-s4) var(--mx-s5) var(--mx-s5); }
.mx-post-card__cat {
	align-self: flex-start; padding: 3px 10px; border-radius: var(--mx-r-pill);
	background: var(--mx-brand-soft); color: var(--mx-brand-ink); font-size: var(--mx-fs-xs); font-weight: 700; line-height: 1.6;
}
.mx-post-card__title { margin: 0; font-size: var(--mx-fs-h4); line-height: 1.55; }
.mx-post-card__title a { color: var(--mx-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mx-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.mx-post-card__title a:focus-visible { outline: none; }
.mx-post-card:focus-within { outline: 2px solid var(--mx-focus); outline-offset: 2px; }
.mx-post-card__excerpt { margin: 0; font-size: var(--mx-fs-sm); line-height: 1.8; color: var(--mx-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mx-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: auto 0 0; padding-top: var(--mx-s2); font-size: var(--mx-fs-xs); color: var(--mx-muted); }
.mx-post-card__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* Phones: list rows (thumbnail + title) so many articles fit on a screen. */
@media (max-width: 599px) {
	.mx-blog-grid { gap: var(--mx-s3); }
	.mx-blog-grid .mx-post-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: stretch; }
	.mx-blog-grid .mx-post-card:hover { transform: none; }
	.mx-blog-grid .mx-post-card__media img { height: 100%; aspect-ratio: 1 / 1; object-position: 0 50%; }
	.mx-blog-grid .mx-post-card__body { gap: 6px; padding: var(--mx-s3); }
	.mx-blog-grid .mx-post-card__title { font-size: .95rem; line-height: 1.6; }
	.mx-blog-grid .mx-post-card__excerpt { display: none; }
	.mx-blog-grid .mx-post-card__meta { padding-top: 0; }
	.mx-blog-grid .mx-post-card__cat { padding: 1px 8px; font-size: 11px; }
}

/* Lead card */
.mx-post-card--feature .mx-post-card__title { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.85rem); line-height: 1.45; }
.mx-post-card--feature .mx-post-card__excerpt { font-size: var(--mx-fs-md); -webkit-line-clamp: 4; }
.mx-post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--mx-s2); font-weight: 700; color: var(--mx-brand-ink); }
@media (min-width: 900px) {
	.mx-post-card--feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.mx-post-card--feature .mx-post-card__media img { height: 100%; min-height: 340px; }
	.mx-post-card--feature .mx-post-card__body { justify-content: center; gap: var(--mx-s3); padding: var(--mx-s8) var(--mx-s10); }
	.mx-post-card--feature .mx-post-card__meta { margin-top: 0; }
}

/* ---------- Blog index ---------- */
.mx-blog-hero {
	padding-block: var(--mx-s6) var(--mx-s5);
	background: radial-gradient(900px 300px at 85% -10%, #fde4e4 0, transparent 70%), var(--mx-surface);
	border-bottom: 1px solid var(--mx-line-2);
}
.mx-blog-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--mx-s5); margin-top: var(--mx-s5); }
.mx-blog-hero__text { flex: 1 1 520px; max-width: 760px; }
.mx-blog-hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--mx-s2); font-size: var(--mx-fs-sm); font-weight: 700; color: var(--mx-brand-ink); }
.mx-blog-hero__title { margin: 0; font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem); line-height: 1.3; }
.mx-blog-hero__desc { margin-top: var(--mx-s3); color: var(--mx-ink-2); font-size: var(--mx-fs-lg); line-height: 1.9; }
.mx-blog-hero__desc p { margin: 0; }
.mx-blog-hero__count {
	display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; margin: 0;
	min-width: 112px; padding: var(--mx-s3) var(--mx-s5); border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg); background: #fff;
}
.mx-blog-hero__count strong { font-size: 2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mx-blog-hero__count span { font-size: var(--mx-fs-sm); color: var(--mx-muted); }
@media (max-width: 599px) {
	.mx-blog-hero__desc { font-size: var(--mx-fs-md); }
	.mx-blog-hero__count { display: none; }
}

.mx-blog-cats { margin-top: var(--mx-s6); }
.mx-blog-cats ul {
	display: flex; gap: var(--mx-s2); margin: 0; padding: 2px 0 4px; list-style: none;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mx-blog-cats ul::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .mx-blog-cats ul { flex-wrap: wrap; overflow: visible; } }
.mx-blog-cat {
	display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 6px 16px;
	border: 1px solid var(--mx-line); border-radius: var(--mx-r-pill); background: #fff;
	color: var(--mx-ink); font-size: var(--mx-fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap;
	transition: border-color .15s, background .15s, color .15s;
}
.mx-blog-cat small { min-width: 22px; padding: 0 6px; border-radius: var(--mx-r-pill); background: var(--mx-surface-2); color: var(--mx-muted); font-size: 11px; text-align: center; line-height: 20px; }
.mx-blog-cat:hover { border-color: var(--mx-ink-2); }
.mx-blog-cat.is-active { background: var(--mx-ink); border-color: var(--mx-ink); color: #fff; }
.mx-blog-cat.is-active small { background: rgb(255 255 255 / 18%); color: #fff; }

.mx-blog__body { padding-block: var(--mx-s8) var(--mx-s12); }
.mx-blog-feature { margin-bottom: var(--mx-s8); }
.mx-blog__heading { margin: 0 0 var(--mx-s5); font-size: var(--mx-fs-h3); }
.mx-blog .mx-pagination { margin-top: var(--mx-s10); }

.mx-blog-cta {
	display: grid; gap: var(--mx-s5); align-items: center; margin-top: var(--mx-s12); padding: var(--mx-s6);
	border-radius: var(--mx-r-lg); background: var(--mx-ink); color: #fff;
}
.mx-blog-cta__title { margin: 0 0 var(--mx-s2); color: #fff; font-size: var(--mx-fs-h3); }
.mx-blog-cta p { margin: 0; color: rgb(255 255 255 / 78%); }
.mx-blog-cta .mx-btn { gap: 8px; }
@media (min-width: 900px) { .mx-blog-cta { grid-template-columns: minmax(0, 1fr) auto; padding: var(--mx-s8) var(--mx-s10); } }

/* ---------- Single article ---------- */
.mx-article-hero { background: linear-gradient(var(--mx-surface) 0, var(--mx-surface) calc(100% - 140px), #fff calc(100% - 140px)); }
.mx-article-hero:not(:has(.mx-article-hero__media)) { background: var(--mx-surface); border-bottom: 1px solid var(--mx-line-2); padding-bottom: var(--mx-s6); }
.mx-article-hero__inner { max-width: calc(860px + var(--mx-gutter) * 2); padding-top: var(--mx-s5); }
.mx-article-hero__cat {
	display: inline-block; margin-top: var(--mx-s5); padding: 4px 12px; border-radius: var(--mx-r-pill);
	background: var(--mx-brand-soft); color: var(--mx-brand-ink); font-size: var(--mx-fs-sm); font-weight: 700; text-decoration: none;
}
.mx-article-hero__cat:hover { background: var(--mx-brand); color: #fff; }
.mx-article-hero__title { margin: var(--mx-s3) 0 0; font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.6rem); line-height: 1.4; }
.mx-article-hero__dek { margin: var(--mx-s3) 0 0; max-width: 70ch; color: var(--mx-ink-2); font-size: var(--mx-fs-lg); line-height: 1.9; }
.mx-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mx-s3) var(--mx-s5); margin-top: var(--mx-s5); color: var(--mx-muted); font-size: var(--mx-fs-sm); }
.mx-article-meta__author { display: inline-flex; align-items: center; gap: 10px; color: var(--mx-ink); }
.mx-article-meta__author > span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.mx-article-meta__author small { color: var(--mx-muted); font-size: var(--mx-fs-xs); }
.mx-article-meta__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--mx-line); background: #fff; object-fit: contain; }
.mx-article-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.mx-article-meta__upd { color: var(--mx-muted); }
.mx-article-hero__media { max-width: calc(1060px + var(--mx-gutter) * 2); margin: var(--mx-s6) auto 0; }
.mx-article-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--mx-r-lg); box-shadow: var(--mx-shadow-md); }
@media (max-width: 599px) {
	.mx-article-hero { background: linear-gradient(var(--mx-surface) 0, var(--mx-surface) calc(100% - 70px), #fff calc(100% - 70px)); }
	.mx-article-hero__dek { font-size: var(--mx-fs-md); }
	.mx-article-hero__media { margin-top: var(--mx-s5); }
	.mx-article-hero__media img { border-radius: var(--mx-r-md); }
}

.mx-article-layout { display: grid; gap: var(--mx-s8); padding-block: var(--mx-s8) var(--mx-s12); }
.mx-article-main { min-width: 0; }
.mx-article-aside { display: none; }
@media (min-width: 1024px) {
	.mx-article-layout { grid-template-columns: minmax(0, 760px) 290px; grid-template-areas: "main aside"; justify-content: center; gap: var(--mx-s12); padding-top: var(--mx-s10); }
	.mx-article-layout--solo { grid-template-columns: minmax(0, 760px); grid-template-areas: "main"; }
	.mx-article-main { grid-area: main; }
	.mx-article-aside { display: block; grid-area: aside; }
	.mx-toc-m { display: none; }
}
.mx-article-layout--solo { max-width: calc(760px + var(--mx-gutter) * 2); }
.mx-article-aside__sticky { position: sticky; top: 140px; display: flex; flex-direction: column; gap: var(--mx-s4); }

/* Table of contents */
.mx-toc { padding: var(--mx-s5); border: 1px solid var(--mx-line-2); border-radius: var(--mx-r-lg); background: #fff; }
.mx-toc__title { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--mx-s3); font-weight: 700; }
.mx-toc ol, .mx-toc-m ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.mx-toc ol { max-height: calc(100vh - 380px); overflow-y: auto; scrollbar-width: thin; }
.mx-toc li, .mx-toc-m li { counter-increment: toc; }
.mx-toc a, .mx-toc-m a {
	display: flex; gap: 10px; padding: 7px 10px; border-inline-start: 2px solid var(--mx-line-2);
	color: var(--mx-ink-2); font-size: var(--mx-fs-sm); line-height: 1.6; text-decoration: none; transition: color .15s, border-color .15s, background .15s;
}
.mx-toc a::before, .mx-toc-m a::before { content: counter(toc); flex: none; min-width: 1.2em; color: var(--mx-muted); font-variant-numeric: tabular-nums; }
.mx-toc a:hover, .mx-toc-m a:hover { color: var(--mx-ink); background: var(--mx-surface); }
.mx-toc a.is-active { border-color: var(--mx-brand); color: var(--mx-brand-ink); font-weight: 700; background: var(--mx-brand-soft); }
.mx-toc a.is-active::before { color: var(--mx-brand-ink); }

.mx-toc-m { margin-bottom: var(--mx-s6); border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg); background: #fff; }
.mx-toc-m summary, .mx-comments-toggle summary {
	display: flex; align-items: center; gap: 8px; padding: var(--mx-s3) var(--mx-s4); cursor: pointer; font-weight: 700; list-style: none;
}
.mx-toc-m summary::-webkit-details-marker, .mx-comments-toggle summary::-webkit-details-marker { display: none; }
.mx-toc-m summary small { padding: 0 8px; border-radius: var(--mx-r-pill); background: var(--mx-surface-2); color: var(--mx-muted); font-size: 11px; line-height: 20px; }
.mx-toc-m__chev { margin-inline-start: auto; transition: transform .2s; }
details[open] > summary .mx-toc-m__chev { transform: rotate(180deg); }
.mx-toc-m ol { padding: 0 var(--mx-s3) var(--mx-s3); }

/* Aside shop card */
.mx-aside-shop {
	display: flex; align-items: center; gap: var(--mx-s3); padding: var(--mx-s4); border-radius: var(--mx-r-lg);
	background: var(--mx-ink); color: #fff; text-decoration: none; transition: background .15s;
}
.mx-aside-shop:hover { background: #2d2d35; color: #fff; }
.mx-aside-shop__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mx-brand); }
.mx-aside-shop > span:last-child { display: flex; flex-direction: column; line-height: 1.5; }
.mx-aside-shop small { color: rgb(255 255 255 / 70%); font-size: var(--mx-fs-xs); }

/* Share */
.mx-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--mx-s2); }
.mx-share__label { margin-inline-end: 4px; font-size: var(--mx-fs-sm); font-weight: 700; color: var(--mx-ink-2); }
.mx-share__btn {
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--mx-line); border-radius: 50%;
	background: #fff; color: var(--mx-ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; position: relative;
}
.mx-share__btn:hover { background: var(--mx-ink); border-color: var(--mx-ink); color: #fff; }
.mx-share__btn--wa:hover { background: #1f9d55; border-color: #1f9d55; }
.mx-share__btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.mx-share__btn.is-copied::after {
	content: attr(data-mx-copied); position: absolute; bottom: calc(100% + 6px); white-space: nowrap;
	padding: 3px 8px; border-radius: var(--mx-r-sm); background: var(--mx-ink); color: #fff; font-size: 11px;
}
.mx-article-aside .mx-share { padding: var(--mx-s4); border: 1px solid var(--mx-line-2); border-radius: var(--mx-r-lg); }

/* Article prose */
.mx-article__content { max-width: none; font-size: 1.0625rem; line-height: 2; color: #24242a; }
.mx-article__content > *:first-child { margin-top: 0; }
.mx-article__content h2 { position: relative; margin-top: var(--mx-s12); padding-top: var(--mx-s4); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); line-height: 1.5; scroll-margin-top: 140px; }
.mx-article__content h2::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--mx-brand); }
.mx-article__content h3 { margin-top: var(--mx-s8); font-size: var(--mx-fs-h3); line-height: 1.6; scroll-margin-top: 140px; }
.mx-article__content a:not(.mx-btn):not(.button):not(.woocommerce-loop-product__link) { color: var(--mx-brand-ink); text-decoration: underline; text-decoration-color: rgb(200 56 56 / 35%); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.mx-article__content a:not(.mx-btn):not(.button):hover { text-decoration-color: currentColor; }
.mx-article__content strong { color: var(--mx-ink); }
.mx-article__content ul:not(.products) { padding-inline-start: 1.3em; }
.mx-article__content ul:not(.products) > li::marker { color: var(--mx-brand); font-size: 1.1em; }
.mx-article__content ol:not(.products) > li::marker { color: var(--mx-brand-ink); font-weight: 700; }
.mx-article__content li + li { margin-top: 10px; }

/* Tables: rounded, zebra, scroll sideways on phones instead of squeezing (wrapped by single.php) */
.mx-article .mx-table-wrap { margin-block: var(--mx-s6); overflow-x: auto; border: 1px solid var(--mx-line); border-radius: var(--mx-r-md); -webkit-overflow-scrolling: touch; }
.mx-article .mx-article__content table { display: table; width: 100%; min-width: 520px; margin: 0; border: 0; border-collapse: collapse; font-size: .95rem; line-height: 1.75; }
.mx-article .mx-article__content th, .mx-article .mx-article__content td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--mx-line-2); text-align: start; vertical-align: top; }
.mx-article .mx-article__content th { background: var(--mx-ink); color: #fff; font-weight: 700; white-space: nowrap; }
.mx-article .mx-article__content tbody tr:nth-child(even) td { background: var(--mx-surface); }
.mx-article .mx-article__content tbody tr:last-child td { border-bottom: 0; }
.mx-article .mx-article__content td:first-child { font-weight: 700; color: var(--mx-ink); }

/* "باختصار" answer box (Mirror SEO) */
.mx-article__content .mseo-answer {
	position: relative; margin: 0 0 var(--mx-s8); padding: var(--mx-s5) var(--mx-s6); border: 1px solid #f6caca; border-radius: var(--mx-r-lg);
	background: linear-gradient(135deg, #fff6f6, #fdeeee);
}
.mx-article__content .mseo-answer__label {
	display: inline-flex; align-items: center; gap: 6px; margin-bottom: var(--mx-s2); padding: 2px 12px; border-radius: var(--mx-r-pill);
	background: var(--mx-brand); color: #fff; font-size: var(--mx-fs-sm);
}
.mx-article__content .mseo-answer__label::before { content: ""; width: 9px; height: 5px; margin-bottom: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.mx-article__content .mseo-answer p { margin: 0; line-height: 1.95; }

/* Notes */
.mx-article__content .mx-note { padding: var(--mx-s4) var(--mx-s5); border: 0; border-inline-start: 4px solid var(--mx-warning); border-radius: var(--mx-r-md); background: var(--mx-warning-soft); color: #4a3200; }

/* FAQ (Mirror SEO) as an accordion */
.mx-article__content .mseo-faq { margin: var(--mx-s12) 0 0; }
.mx-article__content .mseo-faq__title { margin-bottom: var(--mx-s4); }
.mx-article__content .mseo-faq__item { margin: 0 0 var(--mx-s3); padding: 0; border: 1px solid var(--mx-line); border-radius: var(--mx-r-md); background: #fff; transition: border-color .15s, box-shadow .15s; }
.mx-article__content .mseo-faq__item[open] { border-color: var(--mx-ink-2); box-shadow: var(--mx-shadow-sm); }
.mx-article__content .mseo-faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: var(--mx-s3); padding: var(--mx-s4) var(--mx-s5);
	list-style: none; font-weight: 700; line-height: 1.6;
}
.mx-article__content .mseo-faq__item summary::-webkit-details-marker { display: none; }
.mx-article__content .mseo-faq__item summary::after {
	content: "+"; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--mx-surface-2); font-size: 1.2rem; line-height: 1; transition: transform .2s, background .2s;
}
.mx-article__content .mseo-faq__item[open] summary::after { content: "−"; background: var(--mx-brand); color: #fff; }
.mx-article__content .mseo-faq__answer { padding: 0 var(--mx-s5) var(--mx-s4); color: var(--mx-ink-2); }
.mx-article__content .mseo-faq__answer p { margin: 0; }

/* Product picks inside the article */
.mx-article__content .mx-picks { margin: var(--mx-s8) 0; padding: var(--mx-s4); border-radius: var(--mx-r-lg); background: var(--mx-surface); }
.mx-article__content .mx-picks ul.products { margin: 0; }
.mx-article__content img { border-radius: var(--mx-r-md); }

/* Shop band after the article */
.mx-article-shop {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--mx-s3) var(--mx-s4); align-items: center;
	margin-top: var(--mx-s10); padding: var(--mx-s5); border-radius: var(--mx-r-lg); background: var(--mx-ink); color: #fff;
}
.mx-article-shop__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--mx-brand); }
.mx-article-shop h2 { margin: 0; color: #fff; font-size: var(--mx-fs-h4); line-height: 1.5; }
.mx-article-shop p { margin: 4px 0 0; color: rgb(255 255 255 / 75%); font-size: var(--mx-fs-sm); }
.mx-article-shop .mx-btn { grid-column: 1 / -1; }
@media (min-width: 700px) {
	.mx-article-shop { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--mx-s6); }
	.mx-article-shop .mx-btn { grid-column: auto; }
}

.mx-article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--mx-s4); margin-top: var(--mx-s8); padding-block: var(--mx-s5); border-block: 1px solid var(--mx-line-2); }
.mx-article-foot__cat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--mx-line); border-radius: var(--mx-r-pill); color: var(--mx-ink); font-size: var(--mx-fs-sm); text-decoration: none; }
.mx-article-foot__cat:hover { border-color: var(--mx-ink); }

.mx-author-box { display: flex; align-items: flex-start; gap: var(--mx-s4); margin-top: var(--mx-s8); padding: var(--mx-s5); border-radius: var(--mx-r-lg); background: var(--mx-surface); }
.mx-author-box__avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--mx-line); background: #fff; object-fit: contain; }
.mx-author-box__name { margin: 0; font-weight: 700; }
.mx-author-box__bio { margin: 4px 0 0; color: var(--mx-ink-2); font-size: var(--mx-fs-sm); line-height: 1.9; }

/* Previous / next */
.mx-article .post-navigation { margin: var(--mx-s8) 0 0; }
.mx-article .post-navigation .nav-links { display: grid; gap: var(--mx-s3); }
@media (min-width: 600px) { .mx-article .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.mx-article .post-navigation .nav-next { text-align: end; }
.mx-article .post-navigation .nav-next:only-child { grid-column: 2; }
.mx-article .post-navigation a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: var(--mx-s4) var(--mx-s5); border: 1px solid var(--mx-line); border-radius: var(--mx-r-lg); color: var(--mx-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.mx-article .post-navigation a:hover { border-color: var(--mx-ink-2); box-shadow: var(--mx-shadow-sm); }
.mx-postnav__title { font-weight: 700; line-height: 1.6; }

/* Comments: folded until someone wants to write */
.mx-comments-toggle { margin-top: var(--mx-s8); border: 1px dashed var(--mx-line); border-radius: var(--mx-r-lg); }
.mx-comments-toggle[open] { border-style: solid; }
.mx-comments-toggle .mx-comments { margin: 0; padding: 0 var(--mx-s5) var(--mx-s5); }
.mx-comments-toggle .comment-reply-title { display: none; }
.mx-article .mx-comments textarea { min-height: 120px; }

/* Related */
.mx-article-related { padding-block: var(--mx-s10) var(--mx-s12); background: var(--mx-surface); border-top: 1px solid var(--mx-line-2); }
.mx-article-related__head { display: flex; align-items: center; justify-content: space-between; gap: var(--mx-s4); margin-bottom: var(--mx-s5); }
.mx-article-related__head h2 { margin: 0; font-size: var(--mx-fs-h2); }
.mx-article-related__head a { display: inline-flex; align-items: center; gap: 4px; color: var(--mx-brand-ink); font-weight: 700; font-size: var(--mx-fs-sm); text-decoration: none; }
