/* Keep the main account link visible across the site. */
.site-header a[href*="/my-account-mm/"],
#mobile-site-navigation a[href*="/my-account-mm/"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 8px 0;
	padding: 9px 18px !important;
	border-radius: 999px;
	background: #00675e;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}
.site-header a[href*="/my-account-mm/"]:hover,
.site-header a[href*="/my-account-mm/"]:focus-visible,
#mobile-site-navigation a[href*="/my-account-mm/"]:hover,
#mobile-site-navigation a[href*="/my-account-mm/"]:focus-visible {
	background: #004d47;
	color: #fff !important;
	outline: 3px solid #e9a94c;
	outline-offset: 3px;
}
.site-header a[href*="/my-account-mm/"]::before,
#mobile-site-navigation a[href*="/my-account-mm/"]::before {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	margin-right: 8px;
	vertical-align: middle;
	background: radial-gradient(circle at 50% 30%, #fff 0 4px, transparent 4.5px), radial-gradient(ellipse at 50% 100%, #fff 0 8px, transparent 8.5px);
}

/* WooCommerce account links need readable contrast even outside My Manual. */
body.woocommerce-account .woocommerce-MyAccount-navigation a {
	color: #164940 !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
	outline: 3px solid #b36b18;
	outline-offset: 3px;
}
body.woocommerce-account:not(.logged-in) .woocommerce form.login {
	max-width: 640px;
	margin: 30px auto;
	padding: clamp(24px, 4vw, 44px);
	border: 2px solid #c6ddd5;
	border-radius: 18px;
	background: #fff;
}
body.woocommerce-account:not(.logged-in) .woocommerce form.login label {
	color: #173b35;
	font-weight: 700;
}
body.woocommerce-account:not(.logged-in) .woocommerce form.login input.input-text {
	min-height: 52px;
	border: 2px solid #769b92;
	border-radius: 8px;
	font-size: 1.1rem;
}
body.woocommerce-account:not(.logged-in) .woocommerce form.login button {
	min-height: 50px;
	padding: 10px 24px;
	border-radius: 8px;
	background: #00675e;
	color: #fff;
	font-weight: 800;
}
body.woocommerce-account:not(.logged-in) .woocommerce form.login button:focus-visible,
body.woocommerce-account:not(.logged-in) .woocommerce form.login input:focus-visible {
	outline: 3px solid #b36b18;
	outline-offset: 3px;
}
body.woocommerce-account:not(.logged-in) .woocommerce a {
	color: #005b52;
	text-decoration: underline;
}

/* The manual is a reading home, with store controls tucked away. */
body.pnsma-manual-page {
	background: #f1f6f3;
}
body.pnsma-manual-page .content-container.site-container {
	max-width: 1480px;
	padding-right: clamp(16px, 3vw, 48px);
	padding-left: clamp(16px, 3vw, 48px);
}
body.pnsma-manual-page .entry-header,
body.pnsma-manual-page .account-navigation-wrap {
	display: none;
}
body.pnsma-manual-page .content-bg {
	background: transparent;
	box-shadow: none;
}
body.pnsma-manual-page .entry-content-wrap {
	padding: 0;
}
body.pnsma-manual-page .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	margin: 0;
}
body.pnsma-manual-page .pnsma-manual-home {
	min-height: calc(100vh - 150px);
	padding: clamp(18px, 3vw, 42px) 0 56px;
	color: #183b35;
}

.pnsma-hero {
	padding: clamp(26px, 5vw, 64px);
	border-radius: 24px;
	background: linear-gradient(130deg, #075a51, #063a38);
	color: #fff;
}
.pnsma-hero .pnsma-eyebrow {
	color: #c5eee4;
}
.pnsma-hero h1 {
	max-width: 820px;
	margin: 12px 0 18px;
	color: #fff !important;
	font-size: clamp(2.3rem, 4vw, 4rem);
	line-height: 1.08;
}
.pnsma-hero > p:last-child {
	max-width: 650px;
	margin: 0;
	color: #fff;
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	line-height: 1.55;
}
.pnsma-eyebrow {
	margin: 0;
	color: #00675e;
	font-size: .85rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.pnsma-chapters {
	margin-top: clamp(34px, 5vw, 64px);
}
.pnsma-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 24px;
}
.pnsma-section-heading h2 {
	margin: 5px 0 0;
	color: #173b35;
	font-size: clamp(1.8rem, 2.5vw, 2.6rem);
}
.pnsma-section-heading > p {
	max-width: 310px;
	margin: 0;
	color: #405b55;
	font-size: 1.05rem;
	line-height: 1.5;
}
.pnsma-chapter-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pnsma-chapter-list li {
	min-width: 0;
}
.pnsma-chapter-list li:first-child {
	grid-column: span 2;
}
.pnsma-chapter-list a {
	display: flex;
	flex-direction: column;
	min-height: 190px;
	height: 100%;
	padding: 26px;
	border: 2px solid #c6ddd5;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(13, 64, 54, .07);
	color: #173b35 !important;
	text-decoration: none !important;
}
.pnsma-locked-card {
	min-height: 190px;
	height: 100%;
	padding: 26px;
	border: 2px solid #c6ddd5;
	border-radius: 18px;
	background: #e8eeeb;
	color: #405b55;
}
.pnsma-locked-card strong {
	display: block;
	font-size: 1.35rem;
}
.pnsma-locked-card .pnsma-chapter-action {
	display: block;
	margin-top: 18px;
}
.pnsma-complete {
	margin: 40px 0;
}
.pnsma-complete button {
	min-height: 54px;
	padding: 12px 24px;
	border-radius: 10px;
	background: #00675e;
	color: #fff;
	font-weight: 800;
}
.pnsma-complete button:focus-visible {
	outline: 3px solid #b36b18;
	outline-offset: 3px;
}
.pnsma-chapter-list li:first-child a {
	border-color: #00786d;
	background: #e4f5ef;
}
.pnsma-chapter-list a:hover {
	border-color: #00675e;
	background: #f8fcfa;
}
.pnsma-chapter-list a:focus-visible,
.pnsma-account-links a:focus-visible,
.pnsma-help-button:focus-visible {
	outline: 4px solid #b36b18;
	outline-offset: 4px;
}
.pnsma-start-label {
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 5px 11px;
	border-radius: 999px;
	background: #00675e;
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
}
.pnsma-chapter-number {
	color: #00675e;
	font-size: 2.35rem;
	font-weight: 800;
	line-height: 1;
}
.pnsma-chapter-list strong {
	margin: 13px 0 20px;
	color: #173b35;
	font-size: clamp(1.3rem, 1.5vw, 1.55rem);
	line-height: 1.25;
}
.pnsma-draft-label {
	align-self: flex-start;
	margin: 0 0 15px;
	padding: 5px 9px;
	border: 1px solid #8aaea5;
	border-radius: 6px;
	color: #34564e;
	font-size: .85rem;
	font-weight: 700;
}
.pnsma-chapter-action {
	margin-top: auto;
	color: #005b52;
	font-size: 1.05rem;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.pnsma-state {
	max-width: 840px;
	margin: 36px auto 0;
	padding: clamp(24px, 4vw, 48px);
	border: 2px solid #c6ddd5;
	border-radius: 18px;
	background: #fff;
}
.pnsma-state h2 {
	margin: 0 0 14px;
	color: #173b35;
	font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}
.pnsma-state p {
	margin: 0 0 22px;
	font-size: 1.13rem;
	line-height: 1.6;
}
.pnsma-help-button {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 22px;
	border-radius: 10px;
	background: #00675e;
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
}
.pnsma-help-button:hover {
	background: #004d47;
	color: #fff !important;
}
.pnsma-account-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	margin-top: 42px;
	padding-top: 20px;
	border-top: 1px solid #c6ddd5;
}
.pnsma-account-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #005b52 !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 980px) {
	.pnsma-chapter-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.pnsma-hero {
		border-radius: 16px;
	}
	.pnsma-section-heading {
		display: block;
	}
	.pnsma-section-heading > p {
		margin-top: 10px;
	}
	.pnsma-chapter-list {
		grid-template-columns: 1fr;
	}
	.pnsma-chapter-list li:first-child {
		grid-column: auto;
	}
	.pnsma-chapter-list a {
		min-height: 160px;
	}
}
