/* General Queen theme styles. Tokens first, then base, layout and components (light only). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/playfair-display-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 600; font-display: swap; src: url(../fonts/playfair-display-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root {
	--c-primary: #6C63FF;
	--c-primary-2: #8B5CF6;
	--c-link: #5A4FF0;
	--c-btn: #5A4FF0;
	--c-btn-hover: #4A3FDC;
	--c-bg: #FFFFFF;
	--c-surface: #F6F5FB;
	--c-card: #FFFFFF;
	--c-ink: #1F2937;
	--c-muted: #5F6776;
	--c-line: #E5E7EB;
	--c-soft: #EEEDFF;
	--c-footer: #151827;
	--grad: linear-gradient(135deg, #6C63FF 0%, #8B5CF6 100%);
	--f-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--f-head: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-logo: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--c-cream: #FBF7F2;
	--c-blush: #FCEFF5;
	--c-head: #1C1733;
	--f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 16px;
	--sh-md: 0 4px 14px rgba(17, 24, 39, .08);
	--sh-lg: 0 14px 30px rgba(17, 24, 39, .12);
	--container: 1200px;
	--narrow: 720px;
	--gutter: 16px;
	--header-h: 68px;
	color-scheme: light;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font: 400 16px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--c-link); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.2; color: var(--c-head); letter-spacing: -.01em; }
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.card-title, .topic-feature-title, .topic-item-title, .band-title { text-wrap: balance; }
h3, h4, h5, h6 { font-weight: 600; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }
[hidden] { display: none !important; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -.125em; }
.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--c-btn); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 16px; }
.muted { color: var(--c-muted); font-weight: 500; }
.lead { font-size: 1.1rem; color: var(--c-muted); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: calc(var(--narrow) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .85rem 1.4rem; border: 2px solid transparent; border-radius: var(--r-md);
	font: 600 15px/1 var(--f-head); text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-btn); color: #fff; }
.btn-primary:hover { background: var(--c-btn-hover); }
.btn-light { background: #fff; color: #3E36C9; }
.btn-light:hover { background: #F1F0FF; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }

.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
	border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-card); color: var(--c-ink);
	font-size: 18px; text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--c-link); border-color: var(--c-primary); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--c-bg) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); font: 700 20px/1 var(--f-logo); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand .logo-mark { flex: none; border-radius: 10px; }
.brand-name span { color: var(--c-primary); }

.primary-nav .menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu a {
	display: block; padding: 8px 11px; border-radius: var(--r-sm);
	color: var(--c-ink); font: 500 15px/1.2 var(--f-body); text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.primary-nav .menu a:hover { background: var(--c-soft); color: var(--c-link); }
.primary-nav .current-menu-item > a, .primary-nav a[aria-current="page"] { background: var(--c-soft); color: var(--c-link); font-weight: 600; }
.nav-search { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.search-form {
	display: flex; align-items: center; background: var(--c-surface);
	border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-soft); }
.search-form input { flex: 1; min-width: 0; width: 170px; padding: 9px 12px; border: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: 14px; }
.search-form input:focus { outline: none; }
.search-form button { display: grid; place-items: center; height: 38px; padding: 0 12px; border: 0; background: transparent; color: var(--c-muted); cursor: pointer; font-size: 16px; }
.search-form button:hover { color: var(--c-link); }

.nav-toggle .icon-close { display: none; }
.nav-toggle { display: none; }

@media (min-width: 1100px) {
	.primary-nav { margin-left: 12px; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
	.search-form input { width: 130px; }
}
@media (max-width: 1099px) {
	.nav-toggle { display: inline-grid; }
	.header-search { display: none; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
		display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		padding: 12px var(--gutter) 24px; background: var(--c-bg);
		border-bottom: 1px solid var(--c-line); box-shadow: var(--sh-lg);
	}
	body.nav-open .primary-nav { display: block; }
	body.nav-open .nav-toggle .icon-open { display: none; }
	body.nav-open .nav-toggle .icon-close { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { padding: 13px 12px; font-size: 17px; }
	.nav-search { display: block; margin-top: 14px; }
	.nav-search .search-form input { width: 100%; font-size: 16px; }
}
@media (max-width: 380px) {
	.brand { font-size: 18px; gap: 8px; }
	.brand .logo-mark { width: 30px; height: 30px; }
}

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-initials {
	display: inline-grid; place-items: center; width: var(--size, 48px); height: var(--size, 48px);
	border-radius: 50%; background: var(--grad); color: #fff; flex: none;
	font: 700 calc(var(--size, 48px) * .36)/1 var(--f-head); letter-spacing: .02em;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 960px) { .section { padding: 72px 0; } }
.section-surface { background: var(--c-surface); }
.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head h1, .section-head h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 0; color: var(--c-muted); }

/* ---------- Topics ---------- */
.topic-icon {
	display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px;
	background: color-mix(in srgb, var(--topic, #6C63FF) 15%, transparent); color: var(--topic, #6C63FF); font-size: 22px;
}

.topic-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.topic-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
	background: var(--c-card); border: 1px solid var(--c-line); color: var(--c-ink); font-weight: 600; text-decoration: none;
}
.topic-pill .icon { color: var(--topic); }
.topic-pill:hover { border-color: var(--topic); }

/* ---------- Cards (editorial: open image and text, no box) ---------- */
.card-grid { display: grid; gap: 44px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 16px; background: var(--c-soft); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 18px 2px 0; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.card-tags .badge { position: relative; z-index: 1; }
.card-title { margin: 0; font: 600 1.25rem/1.3 var(--f-display); }
.card-title a {
	color: var(--c-head); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .35s ease, color .2s;
}
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a, .card-title a:hover { color: var(--c-link); background-size: 100% 1px; }
.card-title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--c-primary); outline-offset: 6px; border-radius: 18px; }
.card-excerpt { display: -webkit-box; margin: 0; overflow: hidden; color: var(--c-muted); font-size: .95rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; color: var(--c-muted); font-size: .8rem; }
.views { display: inline-flex; align-items: center; gap: 4px; color: var(--c-muted); font-size: 12px; font-weight: 600; }

/* Pill badge: post headers and the lead story. */
.badge {
	display: inline-flex; align-items: center; min-height: 26px; padding: 4px 12px; border-radius: 999px;
	background: color-mix(in srgb, var(--topic, #6C63FF) 14%, transparent);
	color: color-mix(in srgb, var(--topic, #6C63FF) 55%, #000);
	font: 600 12px/1.3 var(--f-body); letter-spacing: .02em; text-decoration: none;
}
a.badge:hover { background: color-mix(in srgb, var(--topic, #6C63FF) 24%, transparent); }

/* Topic label: small capitals with a color dot, used on cards and in the post byline. */
.card .badge, .entry-header .badge {
	display: inline-flex; align-items: center; gap: 7px; min-height: 0; padding: 0; border-radius: 0; background: none;
	color: color-mix(in srgb, var(--topic, #6C63FF) 62%, #000);
	font: 700 11.5px/1.3 var(--f-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.card .badge::before, .entry-header .badge::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--topic, #6C63FF); }
.card a.badge:hover, .entry-header a.badge:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- No pagination: "Load more" (homepage) and "Show all" lists (topic, author, search) ---------- */
.js .card.card-more { display: none; }
.load-more { display: none; justify-content: center; margin-top: 48px; }
.js .load-more { display: flex; }
.btn-outline { background: #fff; border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-line)); color: var(--c-link); }
.btn-outline:hover { background: var(--c-soft); border-color: var(--c-primary); }

.more-posts { margin-top: 48px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 18px; }
.more-posts summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
	color: var(--c-head); font: 600 1.15rem/1.3 var(--f-display); list-style: none; cursor: pointer;
}
.more-posts summary::-webkit-details-marker { display: none; }
.more-posts summary::after {
	content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
	background: var(--c-soft); color: var(--c-primary); font: 600 1.25rem/1 var(--f-body);
}
.more-posts[open] summary::after { content: "\2212"; }
.more-posts summary:hover { color: var(--c-link); }
.more-posts-list { margin: 0; padding: 6px 22px 18px; border-top: 1px solid var(--c-line); list-style: none; columns: 2 22rem; column-gap: 40px; }
.more-posts-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); break-inside: avoid; font-size: .95rem; line-height: 1.45; }
.more-posts-list a { color: var(--c-ink); text-decoration: none; }
.more-posts-list a:hover { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; }
.more-posts-list time { flex: none; color: var(--c-muted); font-size: .8rem; white-space: nowrap; }
@media (max-width: 639px) {
	.more-posts summary { padding: 16px 18px; font-size: 1.05rem; }
	.more-posts-list { padding: 4px 18px 14px; }
	.more-posts-list li { flex-direction: column; gap: 2px; }
}

/* ---------- Archive headers ---------- */
.archive-header {
	padding: 28px 0 36px; border-bottom: 1px solid var(--c-line);
	background: linear-gradient(180deg, color-mix(in srgb, var(--topic, #6C63FF) 10%, var(--c-bg)) 0%, var(--c-bg) 100%);
}
.archive-title-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.archive-title { margin: 12px 0 0; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.archive-title-row .archive-title { margin: 0; }
.topic-icon-lg { width: 56px; height: 56px; margin: 0; font-size: 26px; }
.archive-description { max-width: 720px; margin-top: 12px; font-size: 1.05rem; }
.archive-description p { margin: .4em 0; }
.archive-count { margin: 10px 0 0; color: var(--c-muted); font-size: .9rem; font-weight: 600; }
.archive-search .search-form { max-width: 480px; margin-top: 16px; }
.archive-search .search-form input { width: 100%; font-size: 16px; }
.author-intro { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 16px; }
.author-intro .archive-title { margin-top: 2px; }
.author-intro .social { margin-top: 14px; }

.breadcrumbs { color: var(--c-muted); font-size: .85rem; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-link); text-decoration: underline; }
.breadcrumb_last { color: var(--c-ink); }
.crumb-sep { margin: 0 2px; }
/* Phones: a post's trail stops at the topic ("Home › Relationships"); the title is right below. Google still gets the full trail. */
@media (max-width: 767px) {
	.single-post .breadcrumbs .breadcrumb_last, .single-post .breadcrumbs .crumb-sep:has(+ .breadcrumb_last) { display: none; }
}

/* ---------- Single post ---------- */
.post-layout { width: 100%; max-width: calc(var(--narrow) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.post-rail { display: none; }
.entry-header { padding-top: 28px; }
.entry-title { margin: 12px 0; font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.15; letter-spacing: -.02em; }
/* Left-aligned post titles and section headings fill each line and only avoid a lone last word ("balance" left a gap after line 1). */
.single-post .entry-title, .single-post .entry-content :is(h2, h3, h4) { text-wrap: pretty; }
.entry-dek { margin: 0 0 18px; color: var(--c-muted); font-size: 1.2rem; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0 20px; border-bottom: 1px solid var(--c-line); }
.byline-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .9rem; }
.byline-author a { color: var(--c-ink); font-weight: 600; text-decoration: none; }
.byline-author a:hover { color: var(--c-link); text-decoration: underline; }
/* Dates and reading time: each item starts with a dot; the dot at the start of any line sits in the clipped margin. */
.byline-meta { overflow: hidden; color: var(--c-muted); }
.byline-items { display: flex; flex-wrap: wrap; align-items: baseline; margin-left: -1.1em; }
.byline-items > span { white-space: nowrap; }
.byline-items > span::before { content: "\00B7"; display: inline-block; width: 1.1em; text-align: center; }
/* The "general information, not medical advice" line on health topics. */
.entry-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--c-muted); font-size: .85rem; line-height: 1.5; }
.entry-note .icon { flex: none; margin-top: 2px; color: #3B82F6; font-size: 15px; }
.entry-featured { margin: 28px 0; }
.entry-featured img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); background: var(--c-soft); }

.notice { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; padding: 14px 16px; border: 1px solid; border-radius: var(--r-md); font-size: .95rem; }
.notice .icon { margin-top: 3px; font-size: 18px; }
.notice p { margin: 0; }
.notice-info { background: color-mix(in srgb, #3B82F6 8%, var(--c-bg)); border-color: color-mix(in srgb, #3B82F6 30%, transparent); }
.notice-info .icon { color: #3B82F6; }
.notice-warning { background: color-mix(in srgb, #F59E0B 10%, var(--c-bg)); border-color: color-mix(in srgb, #F59E0B 40%, transparent); }
.notice-warning .icon { color: #D97706; }
/* Notices written inside post content (paragraph blocks) have no icon. */
.prose p.notice { display: block; }
.notice-success { background: color-mix(in srgb, #10B981 10%, var(--c-bg)); border-color: color-mix(in srgb, #10B981 35%, transparent); }
.notice-success .icon { color: #059669; }
.notice-error { background: color-mix(in srgb, #EF4444 8%, var(--c-bg)); border-color: color-mix(in srgb, #EF4444 35%, transparent); }
.notice-error .icon { color: #DC2626; }

.toc { margin: 24px 0 32px; padding: 16px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.toc summary { font: 600 1rem/1.4 var(--f-head); cursor: pointer; }
.toc ol { margin: 12px 0 0; padding-left: 1.3em; }
.toc li { margin: 6px 0; }
.toc li::marker { color: var(--c-primary); font-weight: 600; }
.toc a { color: var(--c-ink); text-decoration: none; }
.toc a:hover { color: var(--c-link); text-decoration: underline; }

/* Wide screens: posts with 3+ sections get an "In this article" sidebar that stays in view while reading. */
@media (min-width: 1200px) {
	.post-layout.has-rail {
		display: grid; grid-template-columns: minmax(0, var(--narrow)) 240px; column-gap: 64px; justify-content: center;
		max-width: calc(var(--narrow) + 304px + 2 * var(--gutter));
	}
	.post-layout.has-rail .post-main > .toc { display: none; }
	.post-rail { display: block; }
	.post-rail-inner { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; padding-top: 28px; }
}
.toc-rail-title { margin: 0 0 12px; color: var(--c-primary); font: 700 .75rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.toc-rail ol { margin: 0; padding: 0; border-left: 2px solid var(--c-line); list-style: none; }
.toc-rail a {
	display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
	color: var(--c-muted); font-size: .9rem; line-height: 1.4; text-decoration: none; transition: color .2s, border-color .2s;
}
.toc-rail a:hover { color: var(--c-ink); }
.toc-rail a.is-active { border-left-color: var(--c-primary); color: var(--c-head); font-weight: 600; }

/* ---------- Post and page content ---------- */
.prose { font-size: 1.075rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 2em 0 .6em; font-size: clamp(1.45rem, 2.6vw, 1.8rem); }
/* Sub-headings step down clearly from H2, so they never read as bold body text. */
.prose h3 { margin: 1.8em 0 .55em; font-size: 1.35rem; font-weight: 700; }
.prose h4 { margin: 1.7em 0 .45em; font-size: 1.2rem; font-weight: 700; }
.prose h5, .prose h6 { margin: 1.3em 0 .4em; font-size: 1rem; }
.prose a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--c-primary); }
.prose strong { font-weight: 650; }
.prose img { border-radius: var(--r-md); }
.prose figure { margin: 1.8em 0; }
.prose .wp-block-image { text-align: center; }
.prose .wp-block-image img { display: inline-block; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignright { float: right; max-width: 45%; margin: .3em 0 1em 1.5em; }
.prose .alignleft { float: left; max-width: 45%; margin: .3em 1.5em 1em 0; }
@media (max-width: 600px) {
	.prose .alignright, .prose .alignleft { float: none; max-width: 100%; margin: 1.2em auto; }
}
.prose figcaption, .prose .wp-element-caption { margin-top: .5em; color: var(--c-muted); font-size: .85rem; text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: .3em 0 .3em 1.2em; border-left: 4px solid var(--c-primary); font-style: italic; }
.prose .wp-block-pullquote { padding: 1.4em 0; border-top: 3px solid var(--c-primary); border-bottom: 3px solid var(--c-primary); text-align: center; font-size: 1.2rem; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; }
.prose hr, .prose .wp-block-separator { margin: 2.2em 0; border: 0; border-top: 1px solid var(--c-line); }
.prose .wp-block-table, .prose .table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child td { background: var(--c-surface); }
.prose iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose pre { overflow-x: auto; padding: 1em; background: var(--c-surface); border-radius: var(--r-md); font-size: .9rem; }
.prose code { font-size: .9em; }
/* Coloured boxes from the old editor use light inline backgrounds: keep their text dark. */
.prose .has-background { padding: 1.2em 1.4em; border-radius: var(--r-md); color: #1F2937; }
.prose .has-background a { color: #3E36C9; }
.prose .wp-block-columns { gap: 1.5em; margin: 1.6em 0; }
/* Yoast FAQ block */
.prose .schema-faq { margin: 2em 0; }
.prose .schema-faq-section { margin: 12px 0; padding: 16px 20px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.prose .schema-faq-question { display: block; margin-bottom: 6px; font: 600 1.05rem/1.4 var(--f-head); }
.prose .schema-faq-answer { margin: 0; }
.prose::after { content: ""; display: table; clear: both; }

.entry-footer { margin: 40px 0 56px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.share-label { margin-right: 4px; font-weight: 600; }
.share .copied { border-color: #10B981; color: #059669; }
.share-icons { display: contents; }
/* Phones with a share menu (site.js adds .is-native): one button instead of the icon row. */
.share-native { display: none; }
.share.is-native .share-native { display: inline-flex; }
.share.is-native .share-icons, .share.is-native .share-label { display: none; }

.author-box { display: flex; align-items: flex-start; gap: 18px; padding: 22px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.author-box-kicker { margin: 0; color: var(--c-muted); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.author-box-name { margin: 2px 0 6px; font-size: 1.25rem; }
.author-box-name a { color: var(--c-ink); text-decoration: none; }
.author-box-name a:hover { color: var(--c-link); }
.author-box p { margin: 0 0 10px; font-size: .95rem; }
.author-box-text { flex: 1; min-width: 0; }
.author-box-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--c-link); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* ---------- Comments and forms ---------- */
.comments { margin: 48px auto 64px; }
.comments-title { margin: 0 0 16px; font-size: 1.5rem; }
.comment-list { margin: 0 0 32px; padding: 0; list-style: none; }
.comment-list .children { margin: 0 0 0 18px; padding-left: 20px; border-left: 2px solid var(--c-line); list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-author { display: block; font-weight: 600; }
.comment-date { color: var(--c-muted); font-size: .8rem; text-decoration: none; }
.comment-text p { margin: 0 0 .6em; }
.comment-awaiting { color: #B45309; font-size: .85rem; }
.comment-reply a { color: var(--c-link); font-size: .85rem; font-weight: 600; text-decoration: none; }
.comment-reply-title { margin: 0 0 8px; font-size: 1.2rem; }
.comment-reply-title small { margin-left: 8px; font-size: .8rem; }
/* The comment form folds away behind a "Write a comment" button. */
.comments-empty { margin: 0 0 18px; color: var(--c-muted); }
.comment-toggle > summary { list-style: none; cursor: pointer; }
.comment-toggle > summary::-webkit-details-marker { display: none; }
.comment-toggle[open] > summary { display: none; }

.form p { margin: 0 0 14px; }
.form label, .comment-form label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form textarea {
	width: 100%; padding: 11px 14px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px;
	color: var(--c-ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-soft); }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note, .logged-in-as { color: var(--c-muted); font-size: .85rem; }
.optional { color: var(--c-muted); font-weight: 400; }
.required { color: #DC2626; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-form-cookies-consent input { margin-top: 5px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-wrap { margin: 32px 0 64px; padding: 28px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.contact-form-wrap .notice { margin-top: 0; }
/* Contributor application: radio and checkbox choices, and short notes under fields. */
.form fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.form legend { margin-bottom: 8px; padding: 0; font-size: .9rem; font-weight: 600; }
.form label.choice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; font-weight: 400; font-size: .95rem; cursor: pointer; }
.form label.choice input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-primary); }
.form .field > .form-note { display: block; margin-top: 6px; }

/* ---------- Pages ---------- */
.page-article { padding-bottom: 56px; }
.page-article .entry-title { margin-bottom: 28px; }

.error-404 { text-align: center; }
.error-code { margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font: 600 clamp(4rem, 12vw, 7rem)/1 var(--f-display); }
.error-404 h1 { margin: 8px 0 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.error-404 .archive-search .search-form { margin: 20px auto 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 24px; background: var(--c-footer); color: #C9CDD8; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: #A9A4FF; }
.footer-brand p { max-width: 34em; margin: 14px 0 18px; color: #A3A9BA; }
.footer-title { margin: 0 0 14px; color: #A3A9BA; font: 600 .8rem/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin: 0 0 10px; }
.footer-list a { color: #E5E7EB; text-decoration: none; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer .icon-btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #E5E7EB; }
.site-footer .icon-btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: #A3A9BA; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Front page ---------- */
.kicker { margin: 0 0 10px; color: var(--c-primary); font: 700 .75rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }

/* Section heading: title left, link right, hairline with a short accent in the topic colour. */
.sec-head, .topic-head {
	position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px;
	margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line);
}
.sec-head::after, .topic-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; border-radius: 3px; background: var(--topic, var(--c-primary)); }
.sec-head h1, .sec-head h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.4rem); line-height: 1.1; }
.sec-head .kicker { margin-bottom: 8px; }
/* Topic heading: name and "See all" on one line, blurb below across the full width. */
.topic-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 6px; }
.topic-head h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.6rem, 2.4vw, 1.95rem); line-height: 1.1; }
.topic-head p { grid-column: 1 / -1; margin: 0; color: var(--c-muted); font-size: .95rem; }
.topic-head .link-arrow { font-size: .92rem; white-space: nowrap; }
.topic-tile { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--topic) 14%, #fff); color: var(--topic); font-size: 18px; }

/* Titles in homepage lists: colour shift and a line drawn in under the title. */
.topic-feature-title a, .topic-item-title a, .band-title a {
	color: var(--c-head); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .35s ease, color .2s;
}
.topic-feature:hover .topic-feature-title a, .topic-list li:hover .topic-item-title a,
.band-card:hover .band-title a { color: var(--c-link); background-size: 100% 1px; }
.topic-feature-media img, .band-media img, .topic-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.topic-feature:hover .topic-feature-media img, .band-card:hover .band-media img,
.topic-list li:hover .topic-thumb img { transform: scale(1.05); }

/* Hero: centred headline and intro. The part after the last comma ("from health to home") gets its own line. */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; background: linear-gradient(180deg, #F5F2FF 0%, #FAF8FF 60%, var(--c-bg) 100%); text-align: center; }
.hero::before {
	content: ""; position: absolute; top: -380px; left: 50%; width: 1000px; height: 760px; border-radius: 50%; pointer-events: none; transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(236, 72, 153, .12), rgba(139, 92, 246, .06) 60%, transparent);
}
/* minmax(0, 1fr): one-column grids must not grow to fit a wide child. */
.pair-grid { grid-template-columns: minmax(0, 1fr); }
.hero-copy { position: relative; }
.hero-title { margin: 0 auto 22px; font-size: clamp(2.35rem, 5.2vw, 4.3rem); line-height: 1.05; letter-spacing: -.02em; }
.hero-title em { display: block; color: var(--c-primary); }
.hero-lead { max-width: 36em; margin: 0 auto; color: var(--c-muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; text-wrap: balance; }

/* Topic cards */
.topic-index { padding: 16px 0 96px; }
.topic-index .section-head { margin-bottom: 40px; }
.topic-index .section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.topic-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 959px) { .topic-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.topic-card {
	display: flex; flex-direction: column; align-items: center; height: 100%; padding: 36px 28px 28px;
	background: #fff; border: 1px solid var(--c-line); border-radius: 20px; color: var(--c-ink); text-align: center; text-decoration: none;
	box-shadow: 0 1px 2px rgba(28, 23, 51, .04); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.topic-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--topic) 35%, var(--c-line)); box-shadow: 0 24px 44px -26px color-mix(in srgb, var(--topic) 60%, transparent); }
.topic-card-icon {
	display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 20px; border-radius: 50%; color: #fff; font-size: 28px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--topic) 65%, #fff) 0%, var(--topic) 55%, color-mix(in srgb, var(--topic) 70%, #6C63FF) 100%);
	box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--topic) 80%, transparent); transition: transform .25s;
}
.topic-card:hover .topic-card-icon { transform: scale(1.06); }
.topic-card-name { margin: 0 0 8px; font: 600 1.4rem/1.2 var(--f-display); color: var(--c-head); }
.topic-card-blurb { max-width: 26em; margin: 0 0 18px; color: var(--c-muted); font-size: .95rem; line-height: 1.55; text-wrap: balance; }
.topic-card-count {
	display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: color-mix(in srgb, var(--topic) 65%, #000);
	font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.topic-card-count .icon { transition: transform .25s; }
.topic-card:hover .topic-card-count .icon { transform: translateX(3px); }

/* Topics: pairs side by side */
.topic-pair { padding: 0 0 96px; }
.pair-grid { display: grid; gap: 64px; }
@media (min-width: 900px) {
	.pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
	.pair-grid > .topic-block + .topic-block { position: relative; }
	.pair-grid > .topic-block + .topic-block::before { content: ""; position: absolute; top: 0; bottom: 0; left: -28px; border-left: 1px solid var(--c-line); }
}
.topic-feature { position: relative; }
.topic-feature-media { display: block; overflow: hidden; margin-bottom: 18px; border-radius: 18px; aspect-ratio: 16 / 10; background: var(--c-soft); }
.topic-feature-title { margin: 0 0 8px; font: 600 clamp(1.35rem, 2vw, 1.6rem)/1.22 var(--f-display); }
.topic-feature .card-excerpt { margin-bottom: 12px; }
.topic-list { margin: 22px 0 0; padding: 0; list-style: none; }
.topic-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--c-line); }
.topic-list li:last-child { padding-bottom: 0; }
.topic-thumb { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--c-soft); }
.topic-item-title { margin: 0 0 6px; font: 600 1.06rem/1.3 var(--f-display); }

/* Topics: full-width band in a tint of the topic colour */
.topic-band { margin-bottom: 96px; padding: 72px 0 80px; background: linear-gradient(180deg, color-mix(in srgb, var(--topic) 9%, #fff), color-mix(in srgb, var(--topic) 4%, #fff)); }
.topic-band .topic-head { border-bottom-color: color-mix(in srgb, var(--topic) 22%, var(--c-line)); }
.topic-band .topic-tile { background: #fff; }
.band-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 959px) { .band-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.band-card { position: relative; }
.band-media { display: block; overflow: hidden; margin-bottom: 16px; border-radius: 16px; aspect-ratio: 4 / 3; background: #fff; box-shadow: 0 18px 30px -22px rgba(28, 23, 51, .5); }
.band-title { margin: 0 0 8px; font: 600 1.14rem/1.3 var(--f-display); }

/* New on General Queen */
.latest { padding: 0 0 104px; }
.card-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Phones: shorter hero, swipeable rows, compact lists. */
@media (max-width: 639px) {
	.hero { padding: 44px 0 40px; }
	.hero-title { margin-bottom: 14px; font-size: 2.35rem; }
	.hero-lead { font-size: 1.02rem; }

	.topic-index { padding: 24px 0 64px; }
	.topic-index .section-head { margin-bottom: 24px; }
	.topic-cards { gap: 12px; }
	.topic-card { padding: 22px 12px 18px; border-radius: 16px; }
	.topic-card-icon { width: 52px; height: 52px; margin-bottom: 12px; font-size: 22px; }
	.topic-card-name { margin-bottom: 6px; font-size: 1.15rem; }
	.topic-card-blurb { display: none; }
	.topic-card-count { font-size: .7rem; letter-spacing: .06em; }

	.topic-pair { padding-bottom: 64px; }

	.pair-grid { gap: 56px; }
	.topic-band { margin-bottom: 64px; padding: 48px 0 52px; }
	.band-track {
		display: flex; overflow-x: auto; gap: 16px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px;
		scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
	}
	.band-track::-webkit-scrollbar { display: none; }
	.band-card { flex: 0 0 78%; scroll-snap-align: start; }

	.latest { padding-bottom: 72px; }
	.card-grid-3 { gap: 0; }
	.card-grid-3 .card { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--c-line); }
	.card-grid-3 .card:first-child { padding-top: 0; border-top: 0; }
	.card-grid-3 .card-media { border-radius: 12px; aspect-ratio: 1; }
	.card-grid-3 .card-body { gap: 6px; padding: 0; }
	.card-grid-3 .card-title { font-size: 1.06rem; }
	.card-grid-3 .card-excerpt { display: none; }
}

/* Level (lining) numbers in Playfair headings ("15", not old-style). Set last: the font shorthands above reset it. */
h1, h2, h3, h4, h5, h6, .card-title, .topic-card-name, .topic-feature-title, .topic-item-title, .band-title, .more-posts summary, .error-code { font-variant-numeric: lining-nums; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .share, .comments, .toc, .post-rail, .section-surface { display: none !important; }
	body { background: #fff; color: #000; }
}
