.sunrite-editorial {
	padding-block-end: clamp(2.5rem, 6vw, 5rem);
	background: var(--sunrite-cream);
}

.sunrite-editorial-intro {
	padding-block: clamp(1.6rem, 5vw, 3.5rem);
}

.sunrite-editorial-intro h1 {
	max-width: 20ch;
	margin-block: .65rem;
	font-family: var(--sunrite-heading);
	font-size: clamp(2rem, 5.5vw, 3.9rem);
	letter-spacing: -.035em;
	text-wrap: balance;
}

.sunrite-editorial-intro p {
	max-width: 65ch;
	margin-block: .75rem 0;
	color: #3d546e;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.sunrite-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
}

.sunrite-breadcrumbs li + li::before {
	content: '/';
	margin-inline-end: .6rem;
	color: #3d546e;
}

.sunrite-editorial-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: start;
}

.sunrite-editorial-guide .sunrite-editorial-grid {
	grid-template-columns: minmax(12rem, 15rem) minmax(0, 72ch);
}

.sunrite-editorial .wp-block-post-content {
	min-width: 0;
	overflow-wrap: anywhere;
}

.sunrite-editorial .wp-block-post-content > :first-child { margin-block-start: 0; }

.sunrite-editorial .wp-block-post-content > h2 {
	margin-block: 2rem .6rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.sunrite-editorial-rail,
.sunrite-editorial-guide .sunrite-editorial-toc {
	position: sticky;
	top: calc(5.5rem + var(--wp-admin--admin-bar--height, 0px));
}

.sunrite-editorial-toc {
	margin-block-end: 1rem;
	padding-inline-start: 1rem;
	border-inline-start: 2px solid var(--sunrite-border);
	font-size: .95rem;
}

.sunrite-editorial-rail .sunrite-editorial-toc { margin-block: 1.25rem 0; }
.sunrite-editorial-toc p { margin-block: 0 .5rem; font-weight: 700; }
.sunrite-editorial-toc ol { margin: 0; padding: 0; list-style: none; }
.sunrite-editorial-toc a { display: inline-block; padding-block: .35rem; }
.sunrite-editorial-guide .sunrite-editorial-toc[hidden] + .sunrite-editorial-article { grid-column: 2; }

.sunrite-editorial-cta {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 1.5rem;
	background: var(--sunrite-ink);
	color: #fff;
}

.sunrite-editorial-cta h2 { margin-block: 0 .6rem; font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.sunrite-editorial-cta p { margin-block: 0 1rem; }
.sunrite-editorial-cta .wp-block-buttons { gap: .65rem; }
.sunrite-editorial-rail .wp-block-buttons { flex-direction: column; align-items: stretch; }
.sunrite-editorial-rail .wp-block-button__link { width: 100%; }
.sunrite-editorial-article > .sunrite-editorial-cta,
.sunrite-editorial-index > .sunrite-editorial-cta { margin-block-start: 2.5rem; }

.sunrite-editorial-cta .wp-block-button__link { min-height: 44px; }
.sunrite-editorial-cta .sunrite-primary > .wp-block-button__link {
	background: var(--sunrite-sun);
	color: var(--sunrite-ink);
}
.sunrite-editorial-cta .sunrite-secondary > .wp-block-button__link {
	border-color: #fff;
	background: transparent;
	color: #fff;
}
.sunrite-editorial-cta .wp-block-button__link:hover { text-decoration: underline; }
.sunrite-editorial :focus-visible { outline: 3px solid var(--sunrite-focus); outline-offset: 3px; }
.sunrite-editorial-cta :focus-visible { outline-color: var(--sunrite-sun); }

.sunrite-guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sunrite-guide-card { padding: 1.25rem; border: 1px solid var(--sunrite-border); border-radius: 1.25rem; background: #fff; }
.sunrite-guide-card h2 { margin-block: 0 .6rem; font-size: 1.3rem; }
.sunrite-guide-card p { margin: 0; }

@media (max-width: 800px) {
	.sunrite-editorial-grid,
	.sunrite-editorial-guide .sunrite-editorial-grid,
	.sunrite-guide-cards { grid-template-columns: minmax(0, 1fr); }
	.sunrite-editorial-rail,
	.sunrite-editorial-guide .sunrite-editorial-toc { position: static; }
	.sunrite-editorial-guide .sunrite-editorial-toc[hidden] + .sunrite-editorial-article { grid-column: auto; }
	.sunrite-editorial-rail .sunrite-editorial-toc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.sunrite-editorial-cta .wp-block-button__link { transition: none; }
}
