/* ==========================================================================
   User Guide - /user-guide/
   ==========================================================================

   Loaded only on that page (see mm-user-guide.php). Presentation only - not a
   word of the guide is added, removed or reworded.

   Takes its measure, type scale and Support panel from the legal pages
   (mm-legal/legal.css): same 680px column, same eyebrow + title header, same
   section hairlines, same cream closing panel. Deliberately parallel so the
   two families of long-form pages read as one site.

   TYPOGRAPHY: no font-family - Astra's Lato is inherited site-wide.
   FONT WEIGHTS: 400 or 700 only (Astra loads Lato 100/400/700).
   COLOUR: monochrome site palette; cream only on the Support panel.
   ========================================================================== */

.mm-ug {
	--mm-ug-ink: #000000;
	--mm-ug-body: rgba( 0, 0, 0, 0.66 );
	--mm-ug-muted: rgba( 0, 0, 0, 0.45 );
	--mm-ug-rule: #e2ded6;
	--mm-ug-cream: #f5f1e8;

	max-width: 680px;
	margin: 0 auto;
	padding: 72px 24px 104px;
	box-sizing: border-box;
	color: var( --mm-ug-body );
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

.mm-ug-head {
	margin-bottom: 44px;
	padding-bottom: 30px;
	border-bottom: 1px solid var( --mm-ug-rule );
}

.mm-ug-eyebrow {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: var( --mm-ug-muted );
}

.mm-ug-title {
	margin: 0;
	font-size: 44px;
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.012em;
	color: var( --mm-ug-ink );
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */

.mm-ug-body {
	font-size: 18px;
	line-height: 1.8;
}

.mm-ug-body p {
	margin: 0 0 20px;
}

.mm-ug-h {
	margin: 54px 0 18px;
	padding-top: 26px;
	border-top: 1px solid var( --mm-ug-rule );
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: var( --mm-ug-ink );
}

.mm-ug-body > .mm-ug-h:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.mm-ug-body > *:last-child {
	margin-bottom: 0;
}

.mm-ug-body ul,
.mm-ug-body ol {
	margin: 0 0 24px;
	padding-left: 22px;
}

.mm-ug-body li {
	margin-bottom: 10px;
}

.mm-ug-body li::marker {
	color: var( --mm-ug-muted );
}

.mm-ug-body strong,
.mm-ug-body b {
	font-weight: 700;
	color: var( --mm-ug-ink );
}

.mm-ug-body a,
.mm-ug-body a:link,
.mm-ug-body a:visited,
.mm-ug-body a:hover,
.mm-ug-body a:focus {
	color: var( --mm-ug-ink ) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.mm-ug-body a:hover,
.mm-ug-body a:focus {
	text-decoration-thickness: 2px;
}

.mm-ug-body a:focus-visible {
	outline: 2px solid var( --mm-ug-ink );
	outline-offset: 3px;
}

/* Closing Support section - findable at a glance, like the legal contact panel. */
.mm-ug-contact {
	margin-top: 4px;
	padding: 26px 28px;
	background: var( --mm-ug-cream );
	border-radius: 12px;
}

.mm-ug-contact > *:last-child {
	margin-bottom: 0;
}

.mm-ug-h:has( + .mm-ug-contact ) {
	margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Breakpoints - 1024 / 767
   -------------------------------------------------------------------------- */

@media ( max-width: 1024px ) {
	.mm-ug {
		padding: 56px 24px 84px;
	}

	.mm-ug-title {
		font-size: 36px;
	}
}

@media ( max-width: 767px ) {
	.mm-ug {
		padding: 40px 20px 64px;
	}

	.mm-ug-head {
		margin-bottom: 32px;
		padding-bottom: 22px;
	}

	.mm-ug-title {
		font-size: 29px;
	}

	.mm-ug-body {
		font-size: 15px;
		line-height: 1.75;
	}

	.mm-ug-h {
		margin: 38px 0 14px;
		padding-top: 20px;
		font-size: 19px;
	}

	.mm-ug-contact {
		padding: 20px 20px;
	}
}
