/*
 * Blog, blog categories and articles — the look of the current secheal.com blog (dark editorial pages), rebuilt
 * for the block templates home.html, archive.html and single.html and the blocks secheal/bl-hero, bl-paths and
 * bl-related. Everything sits inside main.sb.
 */
.sb,
.v-page.sb {
	--sb-bg: #100d16;
	--sb-surface: #1b1622;
	--sb-surface-soft: #241d2d;
	--sb-text: #f7f4fa;
	--sb-muted: #b9b0bf;
	--sb-body: #ded7e3;
	--sb-line: rgba(255, 255, 255, 0.12);
	--sb-accent: #9b73ee;
	--sb-accent-hover: #b89af4;
	--sb-link: #bea7f2;
	--sb-heal: #78d5c9;
	--sb-explore: #efb462;
	--sb-radius: 12px;
	--sb-serif: Georgia, "Times New Roman", serif;
	display: block; /* the design layer makes .v-page a contents box, which would drop this background */
	background: var(--sb-bg);
	color: var(--sb-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	overflow: hidden;
}
.sb *,
.sb *::before,
.sb *::after {
	box-sizing: border-box;
}
.sb :where(h1, h2, h3, h4) {
	color: var(--sb-text);
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0;
}
.sb :where(p) {
	color: var(--sb-muted);
}
.sb a {
	color: inherit;
	text-decoration: none;
}
.sb :is(a, button, input, textarea):focus-visible {
	outline: 3px solid var(--sb-explore);
	outline-offset: 3px;
}
.sb .sb-wrap {
	width: min(1180px, calc(100% - 48px));
	max-width: none;
	margin-inline: auto;
}
.sb .sb-kicker {
	margin: 0 0 18px;
	color: var(--sb-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.sb .sb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid var(--sb-accent);
	border-radius: 999px;
	background: var(--sb-accent);
	color: #15101c;
	font-weight: 700;
	white-space: nowrap;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.sb .sb-button:hover {
	transform: translateY(-2px);
	border-color: var(--sb-accent-hover);
	background: var(--sb-accent-hover);
}

/* Blog hero: text left, two overlapping pictures right */
.sb .sb-hero {
	display: flex;
	align-items: center;
	min-height: 620px;
	padding: 72px 0 56px;
}
.sb .sb-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: center;
}
.sb .sb-hero__copy {
	max-width: 590px;
}
.sb .sb-hero h1 {
	max-width: 12ch;
	margin: 0 0 24px;
	font-size: 60px;
	line-height: 1.04;
}
.sb .sb-hero__lead {
	max-width: 540px;
	margin: 0 0 32px;
	font-size: 19px;
	line-height: 1.6;
}
.sb .sb-hero__media {
	position: relative;
	min-height: 500px;
}
.sb .sb-hero__img {
	position: absolute;
	display: block;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: var(--sb-surface-soft);
}
.sb .sb-hero__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sb .sb-hero__img--1 {
	top: 0;
	right: 0;
	width: 88%;
	height: 64%;
}
.sb .sb-hero__img--2 {
	left: 0;
	bottom: 0;
	width: 54%;
	height: 49%;
}

/* Sections */
.sb .sb-section {
	padding: 88px 0;
}
.sb .sb-section__head {
	max-width: 680px;
	margin-bottom: 38px;
}
.sb .sb-section__head h2 {
	margin: 0 0 14px;
	font-size: 42px;
	line-height: 1.12;
}
.sb .sb-section__head p {
	margin: 0;
	font-size: 17px;
}

/* Topic cards (“Choose a path”) */
.sb .sb-pillars {
	border-top: 1px solid var(--sb-line);
}
.sb .sb-pillars__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 22px;
}
.sb .sb-pillar {
	position: relative;
	display: block;
	min-height: 390px;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: var(--sb-surface);
	color: var(--sb-text);
}
.sb .sb-pillar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.82) contrast(1.02);
	transition: transform 0.32s ease, filter 0.32s ease;
}
.sb .sb-pillar::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(16, 13, 22, 0.96), rgba(16, 13, 22, 0.12) 70%);
}
.sb .sb-pillar:hover img {
	transform: scale(1.02);
	filter: saturate(1) contrast(1.02);
}
.sb .sb-pillar__content {
	position: absolute;
	z-index: 1;
	left: 28px;
	right: 28px;
	bottom: 26px;
	display: grid;
	gap: 7px;
}
.sb .sb-pillar__content strong {
	font-size: 34px;
	line-height: 1.1;
}
.sb .sb-pillar--heal strong {
	color: var(--sb-heal);
}
.sb .sb-pillar--explore strong {
	color: var(--sb-explore);
}
.sb .sb-pillar__content span {
	color: #e9e3ee;
	font-size: 16px;
}
.sb .sb-pillar__content small {
	color: var(--sb-muted);
	font-size: 13px;
}

/* Article cards: the query loop (core blocks) and the related articles block share this look */
.sb .sb-latest,
.sb .sb-related {
	background: var(--sb-surface);
}
.sb .sb-posts .wp-block-post-template,
.sb .sb-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb :is(.sb-posts .wp-block-post, .sb-card) {
	display: grid;
	grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr);
	min-height: 270px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: var(--sb-bg);
}
.sb .sb-posts .wp-block-post:first-child {
	grid-column: 1 / -1;
	grid-template-columns: 1.15fr 0.85fr;
	min-height: 430px;
}
.sb :is(.sb-posts .wp-block-post, .sb-card) .wp-block-post-featured-image {
	display: block;
	height: 100%;
	min-height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--sb-surface-soft);
}
.sb :is(.sb-posts .wp-block-post, .sb-card) .wp-block-post-featured-image :is(a, img) {
	display: block;
	width: 100%;
	height: 100%;
}
.sb :is(.sb-posts .wp-block-post, .sb-card) .wp-block-post-featured-image img {
	object-fit: cover;
	transition: transform 0.32s ease;
}
.sb :is(.sb-posts .wp-block-post, .sb-card):hover .wp-block-post-featured-image img {
	transform: scale(1.02);
}
.sb .sb-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	padding: 30px;
}
.sb :is(.sb-card__meta, .sb-article-meta) {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 0 0 18px;
	color: var(--sb-muted);
	font-size: 13px;
}
.sb .sb-card__meta > * {
	margin: 0;
}
.sb .sb-card__meta .taxonomy-category a {
	color: var(--sb-accent);
	font-weight: 700;
}
.sb .category-heal .sb-card__meta .taxonomy-category a {
	color: var(--sb-heal);
}
.sb .category-explore .sb-card__meta .taxonomy-category a {
	color: var(--sb-explore);
}
.sb .sb-card__body .wp-block-post-title {
	margin: 0 0 14px;
	font-size: 25px;
	line-height: 1.22;
}
.sb .sb-posts .wp-block-post:first-child .wp-block-post-title {
	font-size: 38px;
}
.sb .sb-card__body .wp-block-post-excerpt {
	margin: 0 0 24px;
}
.sb .sb-card__body .wp-block-post-excerpt__excerpt {
	margin: 0;
	color: var(--sb-muted);
	line-height: 1.65;
}
.sb :is(.wp-block-read-more, .sb-text-link, .sb-back-link a, a.sb-back-link) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--sb-text);
	font-weight: 700;
}
.sb .sb-back-link {
	margin: 0;
}

/* Articles without a featured image: the text uses the whole card */
.sb :is(.sb-posts .wp-block-post, .sb-posts .wp-block-post:first-child, .sb-card):not(:has(.wp-block-post-featured-image img)) {
	grid-template-columns: 1fr;
	min-height: 0;
}
.sb :is(.sb-posts .wp-block-post, .sb-card):not(:has(.wp-block-post-featured-image img)) .wp-block-post-featured-image {
	display: none;
}

/* Pagination */
.sb .wp-block-query-pagination {
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}
.sb .wp-block-query-pagination-numbers {
	display: flex;
	gap: 8px;
}
.sb .wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--sb-line);
	border-radius: 999px;
	color: var(--sb-text);
}
.sb .wp-block-query-pagination :is(.page-numbers.current, .page-numbers:hover, a:hover) {
	border-color: var(--sb-accent);
	background: var(--sb-accent);
	color: #15101c;
}
.sb .wp-block-query-no-results,
.sb .sb-empty {
	padding: 52px;
	border: 1px solid var(--sb-line);
	border-radius: var(--sb-radius);
	background: var(--sb-surface-soft);
	text-align: center;
}

/* Category / archive header */
.sb .sb-archive-hero {
	padding: 72px 0 68px;
	border-bottom: 1px solid var(--sb-line);
}
.sb .sb-archive-hero__inner {
	max-width: 830px;
	margin-left: max(24px, calc((100% - 1180px) / 2));
}
.sb .sb-archive-hero .sb-back-link {
	margin-bottom: 46px;
}
.sb .sb-archive-hero h1 {
	margin: 0 0 20px;
	font-size: 58px;
	line-height: 1.05;
}
.sb .sb-archive-hero .wp-block-term-description {
	max-width: 650px;
	color: var(--sb-muted);
	font-size: 18px;
}
.sb .sb-archive-hero .wp-block-term-description p {
	margin: 0;
}
body.category-heal .sb .sb-archive-hero .sb-kicker {
	color: var(--sb-heal);
}
body.category-explore .sb .sb-archive-hero .sb-kicker {
	color: var(--sb-explore);
}

/* Article */
.sb .sb-article-hero {
	padding: 64px 0 0;
}
.sb .sb-article-hero__copy {
	max-width: 940px;
	text-align: center;
}
.sb .sb-article-hero .sb-back-link {
	margin-bottom: 34px;
}
.sb .sb-category-link {
	display: block;
	width: fit-content;
	margin: 0 auto 18px;
	font-size: 14px;
	font-weight: 700;
}
.sb .sb-category-link a {
	color: var(--sb-accent);
}
body.category-heal .sb .sb-category-link a,
.sb.category-heal .sb-category-link a {
	color: var(--sb-heal);
}
body.category-explore .sb .sb-category-link a,
.sb.category-explore .sb-category-link a {
	color: var(--sb-explore);
}
.sb .sb-article-hero h1 {
	max-width: 18ch;
	margin: 0 auto 24px;
	font-family: var(--sb-serif);
	font-size: 58px;
	line-height: 1.08;
}
.sb .sb-article-meta {
	justify-content: center;
	margin-bottom: 38px;
}
.sb .sb-article-meta > * {
	margin: 0;
}
.sb .sb-article-hero__media {
	aspect-ratio: 16 / 7;
	margin-top: 0;
	margin-bottom: 0;
	overflow: hidden;
	border-radius: var(--sb-radius);
	background: var(--sb-surface-soft);
}
.sb .sb-article-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sb .sb-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
	padding-top: 68px;
	padding-bottom: 92px;
}
.sb .sb-article-content {
	color: var(--sb-body);
	font-size: 18px;
	line-height: 1.78;
}
.sb .sb-article-content > *:first-child {
	margin-top: 0;
}
.sb .sb-article-content :is(p, ul, ol, blockquote, figure, .wp-block-image) {
	margin-top: 0;
	margin-bottom: 26px;
}
.sb .sb-article-content :is(p, li) {
	color: var(--sb-body);
}
.sb .sb-article-content h2 {
	margin: 52px 0 18px;
	font-size: 34px;
	line-height: 1.16;
}
.sb .sb-article-content h3 {
	margin: 38px 0 14px;
	font-size: 25px;
	line-height: 1.2;
}
.sb .sb-article-content a {
	color: var(--sb-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.sb .sb-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.sb .sb-article-content blockquote {
	padding: 24px 26px;
	border-left: 3px solid var(--sb-accent);
	background: var(--sb-surface);
}
.sb .sb-article-content table {
	width: 100%;
	border-collapse: collapse;
}
.sb .sb-article-content :is(th, td) {
	padding: 12px;
	border: 0;
	border-bottom: 1px solid var(--sb-line);
	text-align: left;
}
.sb .sb-article-content figure.wp-block-table {
	overflow-x: auto;
}

/* Related articles: three stacked cards */
.sb .sb-related {
	padding: 78px 0;
	border-top: 1px solid var(--sb-line);
}
.sb .sb-related .sb-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sb .sb-related .sb-card {
	grid-template-columns: 1fr;
	grid-template-rows: 190px auto;
}

/* Comments */
.sb .sb-comments {
	padding: 76px 0;
	border-top: 1px solid var(--sb-line);
}
.sb .sb-comments .wp-block-comments {
	max-width: 800px;
}
.sb .sb-comments :is(input:not([type="submit"]), textarea) {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--sb-line);
	border-radius: 8px;
	background: var(--sb-surface);
	color: var(--sb-text);
}
.sb .sb-comments :is(input[type="submit"], .wp-block-button__link) {
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--sb-accent);
	color: #15101c;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 980px) {
	.sb .sb-hero {
		min-height: 0;
		padding: 60px 0;
	}
	.sb .sb-hero__grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}
	.sb .sb-hero__copy {
		max-width: 720px;
	}
	.sb .sb-hero h1 {
		max-width: 14ch;
		font-size: 48px;
	}
	.sb .sb-hero__media {
		min-height: 430px;
	}
	.sb .sb-posts .wp-block-post-template,
	.sb .sb-grid,
	.sb .sb-related .sb-grid {
		grid-template-columns: 1fr;
	}
	.sb :is(.sb-posts .wp-block-post, .sb-posts .wp-block-post:first-child, .sb-card, .sb-related .sb-card) {
		grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.2fr);
		grid-template-rows: none;
		min-height: 260px;
	}
}

@media (max-width: 767px) {
	.sb .sb-wrap {
		width: min(100% - 32px, 1180px);
	}
	.sb .sb-hero {
		padding: 44px 0 48px;
	}
	.sb .sb-hero__grid {
		gap: 36px;
	}
	.sb .sb-hero h1 {
		max-width: none;
		margin-bottom: 18px;
		font-size: 38px;
		line-height: 1.08;
	}
	.sb .sb-hero__lead {
		margin-bottom: 26px;
		font-size: 17px;
	}
	.sb .sb-hero__media {
		min-height: 330px;
	}
	.sb .sb-hero__img--1 {
		width: 92%;
		height: 61%;
	}
	.sb .sb-hero__img--2 {
		width: 58%;
		height: 48%;
	}
	.sb .sb-section {
		padding: 64px 0;
	}
	.sb .sb-section__head {
		margin-bottom: 28px;
	}
	.sb .sb-section__head h2 {
		font-size: 34px;
	}
	.sb .sb-pillars__grid {
		grid-template-columns: 1fr;
	}
	.sb .sb-pillar {
		min-height: 320px;
	}
	.sb :is(.sb-posts .wp-block-post, .sb-posts .wp-block-post:first-child, .sb-card, .sb-related .sb-card) {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		min-height: 0;
	}
	.sb :is(.sb-posts .wp-block-post, .sb-card) .wp-block-post-featured-image {
		min-height: 220px;
		aspect-ratio: 16 / 10;
	}
	.sb .sb-card__body {
		padding: 24px;
	}
	.sb .sb-card__body .wp-block-post-title,
	.sb .sb-posts .wp-block-post:first-child .wp-block-post-title {
		font-size: 26px;
	}
	.sb .sb-archive-hero {
		padding: 48px 0 50px;
	}
	.sb .sb-archive-hero__inner {
		margin-left: 16px;
		margin-right: 16px;
	}
	.sb .sb-archive-hero .sb-back-link {
		margin-bottom: 34px;
	}
	.sb .sb-archive-hero h1 {
		font-size: 42px;
	}
	.sb .sb-article-hero {
		padding-top: 46px;
	}
	.sb .sb-article-hero h1 {
		max-width: none;
		font-size: 38px;
	}
	.sb .sb-article-hero__media {
		width: 100%;
		border-radius: 0;
		aspect-ratio: 16 / 10;
	}
	.sb .sb-article-layout {
		padding-top: 48px;
		padding-bottom: 64px;
	}
	.sb .sb-article-content {
		font-size: 17px;
	}
	.sb .sb-article-content h2 {
		margin-top: 42px;
		font-size: 29px;
	}
	.sb .sb-related,
	.sb .sb-comments {
		padding: 60px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sb *,
	.sb *::before,
	.sb *::after {
		transition-duration: 0.01ms !important;
	}
}
