/* ==========================================================================
   Blog listing (blog.php)
   1. Masthead: title + search (topic buttons below 992px)
   2. Body: articles | sticky sidebar (Categories, Most read, Archive, Talk to a specialist)
   3. Plum closing band: ask a specialist, FAQs, treatment topics
   Editorial, no cards: sidebar blocks are split by rules, not boxed.
   Tokens (--pg-*) come from custom/css/nav.css.
   ========================================================================== */

.pg-bl { font-family: var(--pg-font); color: var(--pg-ink); }
.pg-bl :where(h1, h2, h3) { font-family: var(--pg-font); }
:where(.pg-bl) :is(p, ul, ol, li, h1, h2, h3) { margin: 0; }
:where(.pg-bl) :is(ul, ol) { padding: 0; list-style: none; }
.pg-bl [hidden] { display: none !important; }

.pg-bl-eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px !important;
	color: var(--pg-pink); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.pg-bl-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.pg-bl-eyebrow--light { color: #ff9fd0; }
.pg-bl-h2 { color: var(--pg-plum); font: 600 clamp(22px, 2vw, 28px)/1.2 var(--pg-font); }
.pg-bl-link {
	padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--pg-pink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* Shared meta line: Latest · Topic · date · read time */
.pg-bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; color: var(--pg-muted); font-size: 13.5px; font-weight: 500; }
.pg-bl-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px; border-radius: 50%; background: rgba(59, 50, 132, .3); vertical-align: middle; }
.pg-bl-meta__new { padding: 4px 10px; border-radius: 999px; background: var(--pg-pink); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pg-bl-meta__new + *::before { display: none; }
.pg-bl-meta__new + * { margin-left: 10px; }
.pg-bl-meta__cat { color: var(--pg-pink); font-weight: 600; }

/* 1. Masthead =============================================================== */
.pg-bl-mast {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	column-gap: clamp(32px, 6vw, 110px); align-items: end;
	padding: clamp(36px, 4vw, 56px) var(--pg-gutter) clamp(40px, 4.5vw, 60px);
	background: linear-gradient(180deg, #fdf6fa 0%, #f7f4fd 100%);
}
.pg-bl-mast__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.pg-bl-mast__glow--a { width: 480px; height: 480px; left: -180px; top: -220px; background: rgba(230, 8, 127, .15); }
.pg-bl-mast__glow--b { width: 520px; height: 520px; right: -180px; bottom: -280px; background: rgba(122, 104, 214, .2); }

.pg-bl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.pg-bl-crumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--pg-muted); font-size: 14px; }
.pg-bl-crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: rgba(59, 50, 132, .3); }
.pg-bl-crumbs a { color: var(--pg-plum); font-weight: 500; }
.pg-bl-crumbs a:hover { color: var(--pg-pink); }

.pg-bl-mast__title { color: var(--pg-plum); font: 600 clamp(36px, 4vw, 60px)/1.05 var(--pg-font); letter-spacing: -.02em; }
.pg-bl .pg-bl-mast__title span { display: block; color: var(--pg-pink) !important; }
.pg-bl-mast__lead { max-width: 560px; margin-top: 18px !important; color: #4d4870; font-size: 18px; line-height: 1.65; }

.pg-bl-tools { display: grid; gap: 14px; padding-bottom: 4px; }
.pg-bl-search { position: relative; display: block; margin: 0; }
.pg-bl-search .pg-i { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--pg-plum); pointer-events: none; }
.pg-bl-search input {
	display: block; width: 100%; height: 58px; padding: 0 22px 0 54px;
	border: 1.5px solid rgba(59, 50, 132, .14); border-radius: 999px; background: rgba(255, 255, 255, .9);
	color: var(--pg-ink); font: 400 16px var(--pg-font);
	box-shadow: 0 16px 34px -26px rgba(42, 35, 99, .6);
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.pg-bl-search input::placeholder { color: #a5a1bf; }
.pg-bl-search input:focus { outline: none; border-color: var(--pg-plum); box-shadow: 0 0 0 4px rgba(59, 50, 132, .1); }

/* Topic buttons: phones and tablets only (the sidebar has Categories from 992px) */
.pg-bl-topics { display: none; flex-wrap: wrap; gap: 8px; }
.pg-bl-topic {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
	border: 1.5px solid rgba(59, 50, 132, .16); border-radius: 999px; background: rgba(255, 255, 255, .7);
	color: var(--pg-ink); font: 500 14.5px/1.1 var(--pg-font); cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s;
	-webkit-tap-highlight-color: transparent;
}
.pg-bl-topic small { color: var(--pg-muted); font-size: 12px; font-weight: 600; transition: color .2s; }
.pg-bl-topic:hover { border-color: var(--pg-plum); }
.pg-bl-topic.is-active { border-color: var(--pg-plum); background: var(--pg-plum); color: #fff; }
.pg-bl-topic.is-active small { color: #ff9fd0; }
.pg-bl-topic:focus-visible { outline: 3px solid rgba(230, 8, 127, .35); outline-offset: 2px; }

/* 2. Body: articles | sidebar =============================================== */
.pg-bl-body {
	display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: clamp(36px, 4.5vw, 72px); align-items: start;
	padding: clamp(40px, 5vw, 72px) var(--pg-gutter) clamp(48px, 6vw, 88px);
	background: #fff;
}

/* Active filters */
.pg-bl-filterbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
	margin-bottom: 26px; padding: 0 0 16px; border-bottom: 1px solid var(--pg-line);
}
.pg-bl-filterbar p { color: var(--pg-ink); font-size: 15px; font-weight: 600; }
.pg-bl-clear {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--pg-lilac); color: var(--pg-plum); font: 600 13.5px var(--pg-font); transition: background-color .2s;
}
.pg-bl-clear .pg-i { width: 14px; height: 14px; }
.pg-bl-clear:hover { background: #e6e2f7; }

/* Featured: stacked inside the article column */
.pg-bl-feature { padding-bottom: clamp(36px, 4vw, 52px); }
.pg-bl-feature__media { position: relative; display: block; margin-bottom: 24px; border-radius: 28px; overflow: hidden; }
.pg-bl-feature__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(59, 50, 132, .06); }
.pg-bl-feature__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--pg-ease); }
.pg-bl-feature:hover .pg-bl-feature__media img { transform: scale(1.03); }
.pg-bl-feature__title { margin-top: 14px !important; font: 600 clamp(28px, 2.7vw, 42px)/1.14 var(--pg-font); letter-spacing: -.015em; }
.pg-bl-feature__title a { color: var(--pg-ink); background: linear-gradient(var(--pg-pink), var(--pg-pink)) left 100% / 0 2px no-repeat; transition: background-size .5s var(--pg-ease), color .3s; }
.pg-bl-feature__title a:hover { color: var(--pg-plum); background-size: 100% 2px; }
.pg-bl-feature__excerpt { max-width: 760px; margin-top: 14px !important; color: #5b567c; font-size: 17px; line-height: 1.7; }
.pg-bl-feature__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.pg-bl-by { color: var(--pg-muted); font-size: 14px; }

.pg-bl-read {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
	background: linear-gradient(135deg, var(--pg-pink), var(--pg-pink-deep)); color: #fff;
	font: 600 16px/1 var(--pg-font); box-shadow: 0 14px 28px -14px rgba(230, 8, 127, .85);
	transition: transform .25s var(--pg-ease), box-shadow .25s;
}
.pg-bl-read .pg-i { width: 18px; height: 18px; transition: transform .3s var(--pg-ease); }
.pg-bl-read:hover { color: #fff; transform: translateY(-2px); }
.pg-bl-read:hover .pg-i { transform: translateX(3px); }

/* Reading list */
.pg-bl-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--pg-plum); }
.pg-bl-list__count { color: var(--pg-muted); font-size: 14px; font-weight: 500; }
.pg-bl.is-filtering .pg-bl-list__count { visibility: hidden; }

.pg-bl-row {
	position: relative;
	display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 28px; align-items: center;
	padding: 24px 0; border-bottom: 1px solid var(--pg-line);
}
.pg-bl-row__media { display: block; border-radius: 18px; overflow: hidden; }
.pg-bl-row__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--pg-ease); }
.pg-bl-row:hover .pg-bl-row__media img { transform: scale(1.04); }
.pg-bl-row__title { margin-top: 8px !important; font-size: 21px; font-weight: 600; line-height: 1.3; }
.pg-bl-row__title a { color: var(--pg-ink); transition: color .25s; }
.pg-bl-row__title a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.pg-bl-row:hover .pg-bl-row__title a { color: var(--pg-plum); }
.pg-bl-row__title a:focus-visible { outline: none; }
.pg-bl-row:focus-within { outline: 3px solid rgba(230, 8, 127, .3); outline-offset: 4px; border-radius: 6px; }
.pg-bl-row__excerpt { margin-top: 8px !important; color: var(--pg-muted); font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pg-bl-more {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 26px; padding: 16px;
	border: 1.5px solid var(--pg-line); border-radius: 999px; background: #fff; cursor: pointer;
	color: var(--pg-plum); font: 600 15.5px var(--pg-font); transition: border-color .2s, background-color .2s;
}
.pg-bl-more .pg-i { width: 18px; height: 18px; }
.pg-bl-more:hover { border-color: var(--pg-plum); background: var(--pg-lilac); }

/* Nothing matches / nothing published */
.pg-bl-empty { padding: 8px 0 0; color: var(--pg-muted); font-size: 16px; line-height: 1.6; }
.pg-bl-empty__title { margin-bottom: 6px !important; color: var(--pg-ink); font-size: 22px; font-weight: 600; }

/* Sidebar ------------------------------------------------------------------- */
.pg-bl-side { position: sticky; top: calc(var(--pg-bar-h, 78px) + 24px); display: grid; gap: 34px; }
.pg-bl-widget__title {
	display: flex; align-items: center; gap: 10px; margin-bottom: 12px !important; padding-bottom: 12px;
	border-bottom: 2px solid var(--pg-plum); color: var(--pg-plum); font-size: 18px; font-weight: 600;
}

/* Categories and Archive: ruled rows of filter buttons with counts */
.pg-bl-cats li + li { border-top: 1px solid var(--pg-line); }
.pg-bl-cat {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
	padding: 11px 4px; border: 0; background: none; cursor: pointer; text-align: left;
	color: var(--pg-ink); font: 500 15.5px/1.3 var(--pg-font);
	transition: color .2s, padding .3s var(--pg-ease);
	-webkit-tap-highlight-color: transparent;
}
.pg-bl-cat span { display: inline-flex; align-items: center; gap: 10px; }
.pg-bl-cat span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(59, 50, 132, .2); transition: background-color .2s, transform .3s; }
.pg-bl-cat .pg-i { width: 16px; height: 16px; color: var(--pg-muted); }
[data-bl-month] span::before { display: none; }
.pg-bl-cat small {
	min-width: 28px; padding: 3px 8px; border-radius: 999px; background: var(--pg-lilac);
	color: var(--pg-plum); font-size: 12px; font-weight: 700; text-align: center; transition: background-color .2s, color .2s;
}
.pg-bl-cat:hover { color: var(--pg-plum); padding-left: 8px; }
.pg-bl-cat.is-active { color: var(--pg-pink); font-weight: 600; }
.pg-bl-cat.is-active span::before { background: var(--pg-pink); transform: scale(1.3); }
.pg-bl-cat.is-active .pg-i { color: var(--pg-pink); }
.pg-bl-cat.is-active small { background: var(--pg-pink); color: #fff; }
.pg-bl-cat:focus-visible { outline: 3px solid rgba(230, 8, 127, .3); outline-offset: 0; border-radius: 6px; }

/* Most read: numbered list */
.pg-bl-top li { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 8px; padding: 12px 0; }
.pg-bl-top li + li { border-top: 1px solid var(--pg-line); }
.pg-bl-top__n { color: transparent; -webkit-text-stroke: 1.2px rgba(230, 8, 127, .55); font: 700 26px/1 var(--pg-font); letter-spacing: -.03em; }
.pg-bl-top a { color: var(--pg-ink); font-size: 15.5px; font-weight: 600; line-height: 1.35; transition: color .2s; }
.pg-bl-top a:hover { color: var(--pg-pink); }
.pg-bl-top small { display: block; margin-top: 4px; color: var(--pg-muted); font-size: 12.5px; font-weight: 500; }
.pg-bl-top li:hover .pg-bl-top__n { color: var(--pg-pink); -webkit-text-stroke-color: var(--pg-pink); }

/* Talk to a specialist */
.pg-bl-widget--ask p { color: var(--pg-muted); font-size: 14.5px; line-height: 1.6; }
.pg-bl-widget--ask .pg-bl-btn { width: 100%; margin-top: 16px; min-height: 50px; font-size: 15.5px; }
.pg-bl-side__call { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--pg-plum); font-size: 15.5px; font-weight: 600; }
.pg-bl-side__call .pg-i { width: 17px; height: 17px; color: var(--pg-pink); }
.pg-bl-side__call:hover { color: var(--pg-pink); }

/* 3. Closing band ============================================================ */
.pg-bl-ask {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(32px, 6vw, 110px); align-items: center;
	padding: clamp(56px, 7vw, 100px) var(--pg-gutter);
	background:
		radial-gradient(640px 420px at 100% 0%, rgba(230, 8, 127, .3), transparent 65%),
		radial-gradient(560px 400px at 0% 100%, rgba(122, 104, 214, .28), transparent 65%),
		linear-gradient(160deg, #2c2568 0%, #3b3284 55%, #33296f 100%);
	color: rgba(255, 255, 255, .8);
}
.pg-bl-ask__title { color: #fff; font: 600 clamp(28px, 3vw, 46px)/1.12 var(--pg-font); letter-spacing: -.015em; }
.pg-bl .pg-bl-ask__title span { display: block; color: #ff8cc6 !important; }
.pg-bl-ask__text { max-width: 520px; margin-top: 16px !important; font-size: 17px; line-height: 1.7; }
.pg-bl-ask__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pg-bl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 0 28px; border-radius: 999px; font: 600 16px/1 var(--pg-font); white-space: nowrap;
	transition: transform .25s var(--pg-ease), background-color .25s, color .25s, border-color .25s;
}
.pg-bl-btn .pg-i { width: 18px; height: 18px; transition: transform .3s var(--pg-ease); }
.pg-bl-btn--main { background: linear-gradient(135deg, var(--pg-pink), var(--pg-pink-deep)); color: #fff; box-shadow: 0 14px 28px -14px rgba(230, 8, 127, .7); }
.pg-bl-btn--main:hover { color: #fff; transform: translateY(-2px); }
.pg-bl-btn--main:hover .pg-i { transform: translateX(3px); }
.pg-bl-btn--light { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.pg-bl-btn--light:hover { border-color: #fff; background: #fff; color: var(--pg-plum); }
.pg-bl-btn:active { transform: scale(.97); }

.pg-bl-ask__label { margin-bottom: 12px !important; color: #ff9fd0; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pg-bl-ask__topics ul { border-top: 1px solid rgba(255, 255, 255, .16); }
.pg-bl-ask__topics li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.pg-bl-ask__topics a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; color: rgba(255, 255, 255, .65); font-size: 13.5px; }
.pg-bl-ask__topics b { display: block; margin-bottom: 1px; color: #fff; font-size: 17px; font-weight: 600; transition: color .25s; }
.pg-bl-ask__topics .pg-i { flex: none; width: 19px; height: 19px; color: #ff9fd0; transition: transform .3s var(--pg-ease); }
.pg-bl-ask__topics a:hover b { color: #ff9fd0; }
.pg-bl-ask__topics a:hover .pg-i { transform: translateX(4px); }

/* Responsive ================================================================= */
@media (max-width: 1199.98px) {
	.pg-bl-body { grid-template-columns: minmax(0, 1fr) 300px; }
	.pg-bl-row { grid-template-columns: 180px minmax(0, 1fr); column-gap: 22px; }
}

/* Below 992px: one column; topic buttons in the masthead, sidebar after the articles */
@media (max-width: 991.98px) {
	.pg-bl-mast, .pg-bl-ask { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.pg-bl-topics { display: flex; }
	.pg-bl-body { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
	.pg-bl-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
	.pg-bl-widget--cats { display: none; }
}

@media (max-width: 767.98px) {
	.pg-bl-mast { padding-top: 22px; row-gap: 22px; }
	.pg-bl-crumbs ol { margin-bottom: 16px; }
	.pg-bl-mast__title { font-size: 36px; }
	.pg-bl-mast__lead { font-size: 16.5px; }
	.pg-bl-search input { height: 52px; }
	.pg-bl-topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pg-gutter) * -1); padding: 0 var(--pg-gutter); scrollbar-width: none; }
	.pg-bl-topics::-webkit-scrollbar { display: none; }
	.pg-bl-topic { flex: none; }
	.pg-bl-body { padding-top: 28px; }
	.pg-bl-feature__media { border-radius: 20px; margin-bottom: 18px; }
	.pg-bl-feature__title { font-size: 26px; }
	.pg-bl-feature__excerpt { font-size: 16px; }
	.pg-bl-read { flex: 1 1 auto; justify-content: center; }
	.pg-bl-row { grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 20px 0; }
	.pg-bl-row__media { border-radius: 14px; }
	.pg-bl-row__media img { aspect-ratio: 1; }
	.pg-bl-row__title { margin-top: 6px !important; font-size: 17.5px; }
	.pg-bl-row__excerpt { display: none; }
	.pg-bl-meta { font-size: 12.5px; }
	.pg-bl-side { grid-template-columns: minmax(0, 1fr); }
	.pg-bl-btn { flex: 1 1 auto; min-height: 50px; padding: 0 20px; font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.pg-bl-feature__media img, .pg-bl-row__media img { transition: none; }
	.pg-bl-feature:hover .pg-bl-feature__media img, .pg-bl-row:hover .pg-bl-row__media img { transform: none; }
}
