/* =========================================================
   4.16.0: calmer, more human reading
   Progress line, article typography, perfume page sections
   and the community's reviews and questions.
   Black on white; one serif for headings; room to breathe.
   ========================================================= */

.mn-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1300;
	height: 3px;
	background: transparent;
	pointer-events: none;
}

.mn-progress i {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--color-accent);
	transform: scaleX(0);
	transform-origin: left;
}

body.admin-bar .mn-progress {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .mn-progress {
		top: 46px;
	}
}

/* ---------- Articles ---------- */

.article-content {
	font-size: var(--text-h3, clamp(1.3rem, 1.15rem + 0.7vw, 1.625rem));
	line-height: 1.8;
	color: #1a1a1a;
}

.article-content > p,
.article-content > ul,
.article-content > ol,
.article-content > blockquote {
	max-width: 68ch;
}

.article-content h2 {
	margin-top: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	scroll-margin-top: 96px;
}

.article-content h3 {
	margin-top: 2rem;
	scroll-margin-top: 96px;
}

.article-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.article-content blockquote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	font-family: var(--font-display);
	font-size: 1.35em;
	font-style: italic;
	line-height: 1.45;
	border-left: 2px solid #141414;
}

.article-content img {
	border-radius: 6px;
}

.article-content figcaption {
	margin-top: 0.5rem;
	font-size: var(--text-sm, 0.875rem);
	color: #666;
}

.article-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.article-content th,
.article-content td {
	padding: 0.6rem 0.8rem;
	text-align: left;
	border-bottom: 1px solid #e5e5e5;
}

/* ---------- Perfume page: sections breathe, headings read as a set ---------- */

.mn-perfume-page .perfume-section {
	scroll-margin-top: 110px;
}

.mn-perfume-page .section-subheading {
	margin-bottom: 1.1rem;
	font-weight: 500;
	letter-spacing: -0.005em;
}

.mn-perfume-page .section-subheading::after {
	background: #141414;
}

/* ---------- Reviews and questions on the perfume page ---------- */

.mncm-section {
	--mc-btn: var(--color-accent);
}

.mncm-section .mncm-review {
	padding: 1.5rem 0;
}

.mncm-section .mncm-review__head {
	gap: 0.9rem;
}

.mncm-section .mncm-review__head .mncm-avatar {
	width: 48px;
	height: 48px;
}

.mncm-section .mncm-review__text {
	max-width: 62ch;
	font-size: var(--text-base, 1rem);
	line-height: 1.7;
}

.mncm-section .mncm-tags li {
	background: #f5f5f5;
	border: 1px solid #e5e5e5;
	color: #333;
}

.mncm-section .mncm-btn {
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.mncm-section .mncm-btn--ghost {
	color: var(--color-accent);
	background: transparent;
	border-color: #d0d0d0;
}

.mncm-section .mncm-chip.is-on {
	color: var(--color-on-accent);
	background: var(--color-accent);
	border-color: var(--color-accent);
}

.mncm-section .mncm-question {
	padding: 1.4rem 0;
}

.mncm-section .mncm-question__text {
	font-family: var(--font-display);
	font-size: var(--text-h3, clamp(1.3rem, 1.15rem + 0.7vw, 1.625rem));
	font-weight: 600;
	line-height: 1.3;
}

.mncm-section .mncm-answers {
	margin-left: 0.25rem;
	padding-left: 1rem;
	border-left: 2px solid #e5e5e5;
}

/* Wishlist and collection buttons near the top of a perfume page */
.mncm-shelf .mncm-chip {
	min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
	.mn-progress i {
		transition: none;
	}
}

/* =========================================================
   4.18.1: centred images, button text, prompt boxes
   ========================================================= */

/* An image set to "centre" stays centred, with its caption underneath at
   the same width. The editor's own figure styles can leave the figure
   shrink-wrapped on the left. */
.article-content .aligncenter,
.entry-content .aligncenter,
.page-content .aligncenter {
	float: none;
	clear: both;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.article-content figure.aligncenter,
.article-content .wp-block-image.aligncenter,
.entry-content figure.aligncenter,
.entry-content .wp-block-image.aligncenter {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: auto;
	max-width: 100%;
}

.article-content figure.aligncenter > a,
.article-content figure.aligncenter > img,
.article-content .wp-block-image.aligncenter > a,
.article-content .wp-block-image.aligncenter > img {
	margin-left: auto;
	margin-right: auto;
}

.article-content figure.aligncenter figcaption,
.article-content figure.aligncenter .wp-element-caption,
.article-content .wp-caption.aligncenter .wp-caption-text {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	text-align: center;
}

.article-content .wp-caption {
	max-width: 100%;
}

.article-content .wp-caption img {
	max-width: 100%;
	height: auto;
}

/* The theme sets links inside the perfume page to inherit their colour,
   which turned the white text of "Join free" black on black. */
.mn-perfume-page .mncm-btn:not(.mncm-btn--ghost),
.mn-perfume-page a.mncm-btn:not(.mncm-btn--ghost):hover,
.mn-perfume-page a.mncm-btn:not(.mncm-btn--ghost):focus-visible {
	color: #ffffff;
}

.mn-perfume-page .mncm-btn--ghost {
	color: var(--color-accent);
}

/* Sign-in prompts and empty states: a clear box with room around it. */
.mncm-section .mncm-prompt {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	background: #f7f7f7;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
}

.mncm-section--ask .mncm-empty,
.mncm-section--ask .mncm-questions + .mncm-empty {
	margin: 1rem 0 0;
	padding: 1rem 1.15rem;
	color: #555555;
	border: 1px dashed #cfcfcf;
	border-radius: 4px;
}
