/* MP Site Code — snippet #7503147. Edited in wp-admin; do not edit this file. */
/* ============================================================
   MP article page — v2.4.5
   Site Code → Add Snippet → Type: CSS → Loads on: All single posts
   Typography and heading colours inherit from Twenty Twenty-Five.
   No font-family declarations. Berry is accent chrome only.
   ============================================================ */

/* tokens (scoped to wrapper, not :root) */
.mp-article-main{
	/* token names match the theme's registered presets (custom-*) so the
	   theme values actually resolve; hex fallbacks mirror the theme */
	--mp-berry:var(--wp--preset--color--custom-berry,#8E2C4E);
	--mp-berry-hover:var(--wp--preset--color--custom-berry-hover,#7A2542);
	--mp-berry-deep:var(--wp--preset--color--custom-berry-deep,#6E1F39);
	--mp-ink:var(--wp--preset--color--custom-ink,#1A1A1A);
	--mp-muted:var(--wp--preset--color--custom-muted,#645A60);
	--mp-line:var(--wp--preset--color--custom-line,#F1E0E6);
	--mp-ivory:var(--wp--preset--color--custom-ivory,#FCF8F5);
	--mp-baby:var(--wp--preset--color--custom-baby-pink,#FBE1E8);
	--mp-blush:var(--wp--preset--color--custom-blush,#EED4D9);
	--mp-lav:#C9BBE8;      /* not registered in theme — literal */
	--mp-lav-soft:#F4F0FB; /* not registered in theme — literal */
	--mp-sage:#8DA79B;     /* not registered in theme — literal */
	--mp-r:18px;--mp-r-lg:28px;
	padding-bottom:64px; /* space at the very end of the page, below the CTA band */
}

/* ---------- hero ---------- */
.mp-a-hero{padding:32px 0 20px;position:relative;z-index:0}
/* full-bleed background wash (redesign colours): ivory→white base with
   baby-pink glow top-right and lavender glow bottom-left. Painted on a
   pseudo-element spanning the viewport, since the hero box itself is
   constrained to 1120px. */
.mp-a-hero::before{
	content:"";
	position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;
	z-index:-1;pointer-events:none;
	background:
		/* divider below byline — 1px strip, lavender on the left (matching the
		   bottom-left glow) blending into the pink line colour */
		linear-gradient(90deg, rgba(201,187,232,.32) 0%, var(--mp-line) 45%) left bottom / 100% 1px no-repeat,
		radial-gradient(560px 300px at 90% -40px, rgba(251,225,232,.7), transparent 70%),
		radial-gradient(440px 280px at -4% 100%, rgba(201,187,232,.3), transparent 70%),
		linear-gradient(to bottom, var(--mp-ivory), #fff);
}
/* 100vw can overshoot by the scrollbar width; clip (not hidden — hidden
   would kill the sticky sidebar) prevents a horizontal scrollbar */
body{overflow-x:clip}

/* left-align hero content: beat TT5's is-layout-constrained auto-centering */
.mp-a-hero.is-layout-constrained > *,
.mp-a-hero > .mp-a-title,
.mp-a-hero > .mp-dek,
.mp-a-hero > .mp-crumb,
.mp-a-hero > .byline,
.mp-a-hero > .mp-byline{
	margin-left:0 !important;
	margin-right:auto !important;
	text-align:left;
}
.mp-a-hero .mp-a-title{max-width:900px;margin-top:0;margin-bottom:14px;line-height:1.12}
.mp-a-hero .mp-dek{max-width:760px;margin-top:0;margin-bottom:22px;font-size:1.12rem;color:var(--mp-muted);line-height:1.5}

/* ---------- breadcrumb (Yoast) ---------- */
.mp-crumb{font-size:.8rem;color:var(--mp-muted);font-weight:600;margin-bottom:16px}
.mp-crumb a{color:var(--mp-muted);text-decoration:none}
.mp-crumb a:hover{color:var(--mp-berry)}
.mp-crumb > span > :last-child{
	display:inline-block;
	color:#fff !important;background:var(--mp-berry);
	font-weight:800;font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;
	padding:4px 11px;border-radius:100px;margin-left:4px;text-decoration:none;
	line-height:1.4;
}
.mp-crumb > span > :last-child:hover,
.mp-crumb > span > :last-child a:hover{background:var(--mp-berry-hover);color:#fff !important}
.mp-crumb > span > span:last-child > a{color:#fff !important;text-decoration:none}
.mp-crumb > span > :not(:last-child){
	background:none;color:var(--mp-muted);
	font-size:.8rem;text-transform:none;letter-spacing:normal;font-weight:600;
	padding:0;border-radius:0;
}
.mp-crumb > span > :not(:last-child) a{color:var(--mp-muted);text-decoration:none}
.mp-crumb > span > :not(:last-child) a:hover{color:var(--mp-berry)}

/* ---------- two-column layout (gap reduced 36 → 24; content cap 720 → 760) ---------- */
.mp-a-layout{gap:24px !important;align-items:flex-start;margin-top:0;padding:30px 0 20px}
.mp-a-content{min-width:0}
.mp-a-content > .wp-block-post-content{max-width:760px}
.mp-a-content h2,.mp-a-content h3{scroll-margin-top:84px}

/* ---------- sticky sidebar ---------- */
.mp-a-sidebar{align-self:flex-start}
.mp-aside-inner{position:sticky;top:84px;display:flex;flex-direction:column;gap:16px}

/* ---------- sidebar tool cards (ring design) ---------- */
.mp-sbtools{display:flex;flex-direction:column;gap:16px}

.mp-sbtools-label{
	display:inline-flex;align-items:center;gap:10px;
	font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
	color:var(--mp-berry);margin-bottom:2px;
}
.mp-sbtools-label::before{content:"";width:22px;height:2px;background:var(--mp-berry);border-radius:2px}

.mp-sbtools-card{
	display:flex;flex-direction:column;align-items:center;text-align:center;
	text-decoration:none;color:var(--mp-ink);
	background:#fff;border:1px solid var(--mp-line);border-radius:20px;
	padding:22px 20px 24px;
	transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.mp-sbtools-card:hover{
	border-color:var(--mp-berry);
	box-shadow:0 12px 30px rgba(142,44,78,.11);
	transform:translateY(-2px);
}
.mp-sbtools-card:focus-visible{outline:2px solid var(--mp-berry);outline-offset:3px}

.mp-sbtools-ring{
	position:relative;width:158px;aspect-ratio:1;border-radius:50%;
	display:flex;align-items:center;justify-content:center;
	margin-bottom:16px;padding:5px;border:2px solid;
}
.mp-sbtools-card--ask  .mp-sbtools-ring{border-color:#A9C5B6}
.mp-sbtools-card--calc .mp-sbtools-ring{border-color:#F3B8CB}
.mp-sbtools-card--hyg  .mp-sbtools-ring{border-color:var(--mp-lav)}

.mp-sbtools-ring img{
	width:100%;height:100%;object-fit:contain;border-radius:50%;display:block;
	filter:drop-shadow(0 8px 18px rgba(142,44,78,.16));
	transition:transform .25s ease;
}
.mp-sbtools-card:hover .mp-sbtools-ring img{transform:scale(1.03)}
/* Ask a Doctor icon (icon-3-1.png) carries more built-in transparent padding
   than the other two — scale it up so the visible gap to the ring matches */
.mp-sbtools-card--ask .mp-sbtools-ring img{transform:scale(1.1)}
.mp-sbtools-card--ask:hover .mp-sbtools-ring img{transform:scale(1.13)}
/* Period Calculator artwork reaches the image corners (the girl's hair) —
   the circular crop was clipping it. Drop the crop; the PNG's transparency
   keeps the round look inside the ring */
.mp-sbtools-card--calc .mp-sbtools-ring img{border-radius:0}

.mp-sbtools-dot{
	position:absolute;bottom:10%;width:10px;height:10px;border-radius:50%;
	box-shadow:0 0 0 3px #fff;
}
.mp-sbtools-card--ask  .mp-sbtools-dot{right:4%;background:var(--mp-baby)}
.mp-sbtools-card--calc .mp-sbtools-dot{left:4%;background:var(--mp-lav)}
.mp-sbtools-card--hyg  .mp-sbtools-dot{right:4%;background:var(--mp-baby)}

.mp-sbtools-pill{
	position:absolute;bottom:-9px;
	display:inline-flex;align-items:center;gap:5px;
	padding:3px 12px;background:#fff;border:1px solid var(--mp-line);border-radius:999px;
	font-size:.68rem;font-weight:700;color:var(--mp-berry-deep);
	box-shadow:0 3px 10px rgba(142,44,78,.12);white-space:nowrap;
}
.mp-sbtools-pill svg{color:var(--mp-sage);flex:none}

.mp-sbtools-card h3{margin:0 0 4px;font-size:1rem;font-weight:800;line-height:1.4}
.mp-sbtools-card h3 span{color:var(--mp-berry)}
.mp-sbtools-card p{margin:0 0 14px;font-size:.82rem;color:var(--mp-muted);line-height:1.65}

.mp-sbtools-cta{
	display:inline-flex;align-items:center;gap:8px;
	padding:9px 22px;background:var(--mp-berry);border-radius:999px;
	color:#fff;font-size:.8rem;font-weight:700;
	box-shadow:0 4px 12px rgba(142,44,78,.24);
	transition:background .18s ease,box-shadow .18s ease;
}
.mp-sbtools-card:hover .mp-sbtools-cta{
	background:var(--mp-berry-hover);
	box-shadow:0 6px 16px rgba(142,44,78,.3);
}

/* ---------- related articles slider ---------- */
.mp-related{padding:35px 0;margin-top:20px}

.mp-related-header{
	display:flex;align-items:flex-end;justify-content:space-between;
	gap:20px;margin-bottom:24px;
}
.mp-related-eyebrow{
	display:inline-flex;align-items:center;gap:10px;
	font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
	color:var(--mp-berry);margin-bottom:6px;
}
.mp-related-eyebrow::before{content:"";width:22px;height:2px;background:var(--mp-berry);border-radius:2px}
.mp-related-head{font-size:1.5rem;margin:0}

.mp-related-nav{display:flex;gap:8px}
.mp-rel-arrow{
	width:40px;height:40px;border-radius:50%;
	display:inline-flex;align-items:center;justify-content:center;
	background:#fff;border:1.5px solid var(--mp-line);color:var(--mp-berry);
	cursor:pointer;padding:0;
	transition:border-color .18s ease,background .18s ease,color .18s ease,opacity .18s ease;
}
.mp-rel-arrow:hover:not(:disabled){border-color:var(--mp-berry);background:var(--mp-berry);color:#fff}
.mp-rel-arrow:focus-visible{outline:2px solid var(--mp-berry);outline-offset:2px}
.mp-rel-arrow:disabled{opacity:.35;cursor:default}

/* track: CSS scroll-snap — swipe works even without JS */
.mp-related-grid .wp-block-post-template{
	display:flex;gap:22px;
	overflow-x:auto;
	scroll-snap-type:x mandatory;
	list-style:none;margin:0;padding:4px 4px 18px;
	-webkit-overflow-scrolling:touch;
	scrollbar-width:none;
}
.mp-related-grid .wp-block-post-template::-webkit-scrollbar{display:none}

/* Gutenberg's flow layout injects margin-block-start on every li EXCEPT
   the first (`* + *` stack spacing). In the flex row that shrinks cards
   2+ and leaves card 1 taller. Zero it on the items themselves. */
.mp-related-grid .wp-block-post-template > li{margin-block-start:0 !important;margin-block-end:0 !important}

.mp-related-grid li{
	flex:0 0 calc((100% - 44px)/3);
	scroll-snap-align:start;
	display:flex;flex-direction:column;
	background:#fff;border:1px solid var(--mp-line);border-radius:var(--mp-r);
	overflow:hidden;
	transition:transform .2s ease,box-shadow .2s ease;
}
.mp-related-grid li:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(142,44,78,.14)}
/* kill theme flow-gap + figure default margins inside the card:
   this is what caused the oversized image-to-title gap and uneven heights */
.mp-related-grid li > *{margin-block-start:0;margin-block-end:0}
.mp-rel-img{margin:0;flex:none}
.mp-rel-img a{display:block}
.mp-rel-img img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.mp-rel-title{padding:14px 18px 22px;margin:0}
/* every title gets a fixed two-line slot: long titles clamp with an
   ellipsis, short titles keep the same footprint — so no card ends up
   taller than its neighbours with dead space under the title */
.mp-rel-title a{
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden;
	min-height:calc(3 * 1.35em); /* fixed three-line slot — full titles show, all cards equal height */
	line-height:1.35;
}
.mp-rel-title a{font-size:1.12rem;color:var(--mp-ink);text-decoration:none;font-weight:700}
.mp-rel-title a:hover{color:var(--mp-berry)}
.mp-rel-title a:focus-visible{outline:2px solid var(--mp-berry);outline-offset:3px;border-radius:4px}

/* ---------- CTA band (ivory + two-glow wash, per site design language) ---------- */
.mp-cta-band{
	position:relative;
	background:
		radial-gradient(520px 300px at 85% 0%, var(--mp-baby) 0%, transparent 65%),
		radial-gradient(520px 300px at 8% 100%, var(--mp-lav-soft) 0%, transparent 65%),
		var(--mp-ivory);
	border:1px solid var(--mp-line);
	border-radius:var(--mp-r-lg);
	padding:56px 40px;
	margin:50px auto;
	overflow:hidden;
}
.mp-cta-inner{max-width:640px;margin:0 auto;text-align:center;display:flex;flex-direction:column;align-items:center}
.mp-cta-eyebrow{
	display:inline-flex;align-items:center;gap:10px;
	font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
	color:var(--mp-berry);margin-bottom:12px;
}
.mp-cta-eyebrow::before{content:"";width:22px;height:2px;background:var(--mp-berry);border-radius:2px}
.mp-cta-title{font-size:clamp(1.35rem,2.4vw,1.75rem);margin:0 0 10px}
.mp-cta-sub{margin:0 0 24px;color:var(--mp-muted);font-size:1rem;line-height:1.6;max-width:520px}

.mp-cta-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}
.mp-cta-primary{
	display:inline-flex;align-items:center;gap:8px;
	background:var(--mp-berry);color:#fff;text-decoration:none;
	font-weight:700;font-size:.9rem;
	border-radius:100px;padding:11px 26px;
	box-shadow:0 6px 16px rgba(142,44,78,.24);
	transition:background .18s ease,box-shadow .18s ease;
}
.mp-cta-primary:hover{background:var(--mp-berry-hover);box-shadow:0 8px 20px rgba(142,44,78,.3)}
.mp-cta-primary:focus-visible{outline:2px solid var(--mp-berry-deep);outline-offset:3px}
.mp-cta-ghost{
	display:inline-flex;align-items:center;
	background:transparent;color:var(--mp-berry);text-decoration:none;
	font-weight:700;font-size:.9rem;
	border:1.5px solid var(--mp-berry);border-radius:100px;padding:11px 24px;
	transition:background .18s ease,color .18s ease;
}
.mp-cta-ghost:hover{background:var(--mp-berry);color:#fff}
.mp-cta-ghost:focus-visible{outline:2px solid var(--mp-berry-deep);outline-offset:3px}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
	.mp-sbtools-card,.mp-sbtools-ring img,.mp-related-grid li,
	.mp-rel-arrow,.mp-cta-primary,.mp-cta-ghost,.mp-sbtools-cta{transition:none}
	.mp-sbtools-card:hover,.mp-related-grid li:hover{transform:none}
	.mp-sbtools-card:hover .mp-sbtools-ring img{transform:none}
}

/* ---------- responsive ----------
   NOTE: these stay at the END of the file — base component styles
   above win by source order if this block moves up. */
@media (max-width:900px){
	.mp-a-layout{display:block !important}
	.mp-a-content,.mp-a-sidebar{width:100% !important;flex-basis:auto !important}
	.mp-a-sidebar{margin-top:0;padding-top:44px}
	.mp-aside-inner{position:static}
	.mp-sbtools{flex-direction:row;flex-wrap:wrap;align-items:stretch}
	.mp-sbtools-label{flex-basis:100%}
	.mp-sbtools-card{flex:1 1 260px}
	.mp-related-grid li{flex-basis:calc((100% - 22px)/2)}
}
@media (max-width:560px){
	.mp-related-grid li{flex-basis:86%}
	.mp-related-header{align-items:center}
	.mp-cta-band{padding:44px 22px;border-radius:20px}
	.mp-sbtools-card{flex:1 1 100%}
}

/* ---------- related heading & card titles vs the header breakpoint ----------
   The site header collapses to hamburger below 1140px (see header CSS:
   max-width:1139.98px closes the fractional-viewport gap). Same boundary
   here: bigger section heading on true desktop, card titles back to the
   previous size once the header is in tablet/mobile mode. */
@media (min-width:1140px){
	.mp-related-head{font-size:1.9rem}
}
@media (max-width:1139.98px){
	.mp-rel-title a{font-size:1.02rem}
}
/* Key Takeaways (MP Content Blocks) — list text matches body text exactly,
   at every width, via the theme's own preset */
.mp-a-content .mp-key .mp-key-list li{font-size:var(--wp--preset--font-size--medium)}
/* Key Takeaways heading — larger on desktop only */
@media (min-width:1140px){
	.mp-a-content .mp-key .mp-key-title{font-size:1.45rem}
}
/* a little more air between the heading and the first takeaway */
.mp-a-content .mp-key .mp-key-title{margin-bottom:22px}