/*
 * Style Home Corner — front-end stylesheet
 * Premium editorial magazine system. No frameworks, no gradients, no libraries.
 * Everything themable through CSS custom properties written by the Customizer.
 *
 * Layout principle: ONE container width across the whole site. Mastheads,
 * breadcrumbs, article text and grids all begin on the same left edge, so the
 * page has a single spine from header to footer.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	/* Light palette (overridable from the Customizer). */
	--shc-bg: #fbfaf7;
	--shc-surface: #ffffff;
	--shc-text: #262522;
	--shc-muted: #77736c;
	--shc-border: #e5e1da;
	--shc-accent: #8a6a52;

	/* Typography. */
	--shc-font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
	--shc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--shc-size-base: 1.0625rem;      /* 17px */
	--shc-leading-body: 1.75;
	--shc-leading-tight: 1.12;
	--shc-tracking-eyebrow: 0.16em;

	/* Fluid display scale. */
	--shc-h1: clamp(2.1rem, 1.35rem + 2.9vw, 3.6rem);
	--shc-h2: clamp(1.6rem, 1.25rem + 1.5vw, 2.35rem);
	--shc-h3: clamp(1.3rem, 1.12rem + 0.75vw, 1.7rem);
	--shc-h4: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);

	/* Layout. */
	--shc-container: 1280px;
	--shc-content: 760px;
	--shc-gutter: clamp(1.25rem, 4vw, 2.75rem);
	--shc-grid-gap: 2.5rem;
	--shc-card-ratio: 3 / 4;
	--shc-logo-height: 64px;

	/* Rhythm. */
	--shc-space-2xs: 0.375rem;
	--shc-space-xs: 0.625rem;
	--shc-space-s: 1rem;
	--shc-space-m: 1.75rem;
	--shc-space-l: 3rem;
	--shc-space-xl: clamp(3.5rem, 6vw, 6rem);

	--shc-radius: 0px;
	--shc-transition: 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
	--shc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	color-scheme: light;
}

[data-theme="dark"] {
	--shc-bg: #181715;
	--shc-surface: #211f1c;
	--shc-text: #f1eee8;
	--shc-muted: #aaa49b;
	--shc-border: #3a3732;
	--shc-accent: #c9a888;

	color-scheme: dark;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background-color: var(--shc-bg);
	color: var(--shc-text);
	font-family: var(--shc-font-body);
	font-size: var(--shc-size-base);
	line-height: var(--shc-leading-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
picture,
video,
iframe,
svg { max-width: 100%; }

img,
video { height: auto; }

figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--shc-font-display);
	font-weight: 400;
	line-height: var(--shc-leading-tight);
	letter-spacing: -0.008em;
	margin: 0 0 var(--shc-space-s);
	text-wrap: balance;
}

h1 { font-size: var(--shc-h1); }
h2 { font-size: var(--shc-h2); }
h3 { font-size: var(--shc-h3); }
h4 { font-size: var(--shc-h4); }
h5, h6 { font-size: 1.05rem; }

p, ul, ol, dl, blockquote, pre, table { margin: 0 0 var(--shc-space-m); }

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--shc-transition), opacity var(--shc-transition);
}

a:hover { color: var(--shc-accent); }

hr {
	border: 0;
	border-top: 1px solid var(--shc-border);
	margin: var(--shc-space-l) 0;
}

blockquote {
	font-family: var(--shc-font-display);
	font-size: var(--shc-h3);
	line-height: 1.35;
	margin-inline: 0;
	padding-left: var(--shc-space-m);
	border-left: 2px solid var(--shc-accent);
	color: var(--shc-text);
}

blockquote cite {
	display: block;
	margin-top: var(--shc-space-s);
	font-family: var(--shc-font-body);
	font-size: 0.8125rem;
	font-style: normal;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--shc-muted);
}

code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

pre {
	background: var(--shc-surface);
	border: 1px solid var(--shc-border);
	padding: var(--shc-space-s);
	overflow-x: auto;
}

table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--shc-border); padding: 0.6rem 0.75rem; text-align: left; }
th { font-weight: 600; }

/* Wide blocks scroll inside themselves, never the page. */
.wp-block-table { overflow-x: auto; }

::selection { background: var(--shc-accent); color: var(--shc-bg); }

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.screen-reader-text:focus {
	background-color: var(--shc-surface);
	clip-path: none;
	color: var(--shc-text);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 0.9rem 1.4rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
	border: 1px solid var(--shc-text);
}

.skip-link { position: absolute; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--shc-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   4. Motion — subtle reveal on scroll
   ========================================================================== */

/*
 * Content is visible by default and stays that way until the script has run,
 * decided which elements are actually below the fold, and marked everything
 * already on screen as visible. Only then is `shc-reveal-ready` added.
 *
 * That ordering matters: hiding elements the moment `js` is set would blank the
 * main grid on an archive page between body-open and DOMContentLoaded, which
 * delays the largest contentful paint — an animation that costs you the metric
 * it was supposed to decorate. Nothing above the fold is ever hidden here.
 */
@media (prefers-reduced-motion: no-preference) {
	[data-reveal] {
		transition: opacity 620ms var(--shc-ease), transform 620ms var(--shc-ease);
	}

	body.shc-reveal-ready [data-reveal]:not(.is-visible) {
		opacity: 0;
		transform: translateY(14px);
		will-change: opacity, transform;
	}

	/* Stagger cards within a revealed grid, gently. */
	body.shc-reveal-ready [data-reveal].is-visible .shc-card:nth-child(2) { transition-delay: 60ms; }
	body.shc-reveal-ready [data-reveal].is-visible .shc-card:nth-child(3) { transition-delay: 120ms; }
	body.shc-reveal-ready [data-reveal].is-visible .shc-card:nth-child(4) { transition-delay: 180ms; }
}

/* Top loading bar. Starts from CSS so it appears without waiting for script,
   and finishes on window load. Fixed and 2px tall: it cannot shift layout. */
.shc-progress {
	position: fixed;
	inset: 0 auto auto 0;
	height: 2px;
	width: 0;
	background: var(--shc-accent);
	z-index: 2000;
	pointer-events: none;
	opacity: 1;
	animation: shc-progress-crawl 6s var(--shc-ease) forwards;
}

.shc-progress.is-done {
	width: 100% !important;
	animation: none;
	transition: width 220ms var(--shc-ease), opacity 320ms 200ms linear;
	opacity: 0;
}

@keyframes shc-progress-crawl {
	0%   { width: 0; }
	35%  { width: 62%; }
	70%  { width: 84%; }
	100% { width: 94%; }
}

@media (prefers-reduced-motion: reduce) {
	.shc-progress { display: none; }
}

/* ==========================================================================
   5. Layout primitives
   ========================================================================== */

.shc-container {
	width: 100%;
	max-width: var(--shc-container);
	margin-inline: auto;
	padding-inline: var(--shc-gutter);
}

.shc-site { display: flex; flex-direction: column; min-height: 100vh; }
.shc-main { flex: 1 0 auto; }
.shc-main:focus { outline: none; }

.shc-section { padding-block: var(--shc-space-xl); }
.shc-section + .shc-section { padding-top: 0; }

/* Sidebar layout: main content first in the DOM, so mobile and screen-reader
   order are both correct without any CSS reordering. */
.shc-layout {
	display: grid;
	gap: var(--shc-space-xl);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 1024px) {
	.shc-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: clamp(2.5rem, 4vw, 4.5rem);
	}
	.shc-layout--sidebar .shc-sidebar { position: sticky; top: 2rem; }
}

/* ==========================================================================
   6. Editorial type helpers
   ========================================================================== */

.shc-eyebrow {
	display: inline-block;
	font-family: var(--shc-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--shc-muted);
	margin: 0 0 var(--shc-space-xs);
	text-decoration: none;
}

a.shc-eyebrow:hover { color: var(--shc-accent); }

.shc-deck {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--shc-muted);
	max-width: 52ch;
}

.shc-meta {
	font-size: 0.8125rem;
	color: var(--shc-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	list-style: none;
	padding: 0;
}

.shc-meta li { display: inline-flex; align-items: center; gap: 0.5rem; }
.shc-meta li + li::before { content: "\00b7"; color: var(--shc-border); }
.shc-meta a { text-decoration: none; }
.shc-meta a:hover { text-decoration: underline; }

.shc-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--shc-space-s);
	padding-bottom: var(--shc-space-s);
	margin-bottom: var(--shc-space-l);
	border-bottom: 1px solid var(--shc-border);
}

.shc-section-head__title { margin: 0; font-size: var(--shc-h3); }
.shc-section-head__title a { text-decoration: none; }
.shc-section-head__title a:hover { text-decoration: underline; }

.shc-section-head__link {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--shc-muted);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.shc-section-head__link:hover { color: var(--shc-accent); }
.shc-section-head__link::after {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
	transition: width var(--shc-transition);
}
.shc-section-head__link:hover::after { width: 28px; }

/* Page masthead — left aligned, on the same spine as everything else. */
.shc-page-header {
	padding-block: clamp(2.25rem, 4vw, 3.75rem) var(--shc-space-l);
}

.shc-page-header__title {
	font-size: var(--shc-h1);
	margin: 0;
	max-width: 20ch;
}

.shc-page-header__description {
	max-width: 62ch;
	margin: var(--shc-space-s) 0 0;
	color: var(--shc-muted);
}

.shc-page-header__description > :last-child { margin-bottom: 0; }

.shc-page-header__count {
	margin: var(--shc-space-s) 0 0;
	font-size: 0.8125rem;
	color: var(--shc-muted);
}

/* ==========================================================================
   7. Sort-by / taxonomy navigation
   ========================================================================== */

.shc-sortnav {
	margin-top: var(--shc-space-l);
	border-top: 1px solid var(--shc-border);
	border-bottom: 1px solid var(--shc-border);
	padding-block: 0.85rem;
}

.shc-sortnav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem clamp(1rem, 2.2vw, 2rem);
}

.shc-sortnav__label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--shc-muted);
}

.shc-sortnav__link {
	display: inline-block;
	position: relative;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--shc-text);
	padding-block: 0.35rem;
}

.shc-sortnav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0.15rem;
	height: 1px;
	background: currentColor;
	transition: right var(--shc-transition);
}

.shc-sortnav__link:hover,
.shc-sortnav__link[aria-current="page"] { color: var(--shc-accent); }
.shc-sortnav__link:hover::after,
.shc-sortnav__link[aria-current="page"]::after { right: 0; }

/* Horizontal scroll rather than a ragged wrap on small screens. */
@media (max-width: 599px) {
	.shc-sortnav__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 0.2rem;
	}
	.shc-sortnav__list::-webkit-scrollbar { display: none; }
	.shc-sortnav__list > li { flex: 0 0 auto; }
}

/* ==========================================================================
   8. Article cards & grids
   ========================================================================== */

.shc-grid {
	display: grid;
	gap: var(--shc-grid-gap);
	grid-template-columns: 1fr;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.shc-grid--2,
	.shc-grid--3,
	.shc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.shc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.shc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.shc-card {
	display: flex;
	flex-direction: column;
	background: transparent;
	transition: opacity 620ms var(--shc-ease), transform 620ms var(--shc-ease);
}

.shc-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: var(--shc-border);
	aspect-ratio: var(--shc-card-ratio);
	margin-bottom: var(--shc-space-s);
}

.shc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--shc-ease);
}

.shc-card:hover .shc-card__media img { transform: scale(1.035); }

@media (prefers-reduced-motion: reduce) {
	.shc-card:hover .shc-card__media img { transform: none; }
}

.shc-card__media--placeholder {
	display: grid;
	place-items: center;
	background: var(--shc-surface);
	border: 1px solid var(--shc-border);
}

.shc-card__media--placeholder span {
	font-family: var(--shc-font-display);
	font-size: 1.5rem;
	color: var(--shc-muted);
}

.shc-card__body { display: flex; flex-direction: column; }

.shc-card__title {
	font-size: var(--shc-h4);
	line-height: 1.25;
	margin: 0 0 var(--shc-space-2xs);
	text-wrap: pretty;
}

.shc-card__title a {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 320ms var(--shc-ease);
}

.shc-card__title a:hover { background-size: 100% 1px; }

.shc-card__excerpt {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--shc-muted);
	margin: var(--shc-space-2xs) 0 0;
}

.shc-card__meta { margin-top: var(--shc-space-xs); }

/* Hero / lead story. */
.shc-hero { padding-top: var(--shc-space-l); }

.shc-hero__inner {
	display: grid;
	gap: clamp(1.5rem, 3vw, 3.25rem);
	align-items: center;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.shc-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.shc-hero__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background-color: var(--shc-border);
}

.shc-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 900ms var(--shc-ease); }
.shc-hero:hover .shc-hero__media img { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
	.shc-hero:hover .shc-hero__media img { transform: none; }
}

.shc-hero__title {
	font-size: clamp(1.95rem, 1.2rem + 2.5vw, 3.15rem);
	margin: 0 0 var(--shc-space-s);
}

.shc-hero__title a { text-decoration: none; }
.shc-hero__title a:hover { color: var(--shc-accent); }

.shc-hero__deck { margin-bottom: var(--shc-space-s); }

/* ==========================================================================
   9. Header
   ========================================================================== */

.shc-header {
	background-color: var(--shc-bg);
	border-bottom: 1px solid var(--shc-border);
	position: relative;
	z-index: 50;
}

.shc-header--sticky { position: sticky; top: 0; }

.shc-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--shc-space-s);
	min-height: 82px;
	padding-block: 0.85rem;
}

.shc-branding { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }

.shc-branding .custom-logo-link { display: block; line-height: 0; }

.shc-branding .custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-height: var(--shc-logo-height);
	object-fit: contain;
}

/*
 * Logo variants. Specificity here must beat `.shc-branding .custom-logo`
 * (0,2,0) above, or both images render stacked — which is exactly what
 * happened in 1.1.x. Each rule below is therefore at least as specific.
 */
.shc-branding .custom-logo.shc-logo--dark,
.shc-footer__brand .custom-logo.shc-logo--dark { display: none; }

[data-theme="dark"] .shc-branding .custom-logo.shc-logo--dark,
[data-theme="dark"] .shc-footer__brand .custom-logo.shc-logo--dark {
	display: block;
	filter: none;
}

[data-theme="dark"] .shc-branding .custom-logo:not(.shc-logo--dark),
[data-theme="dark"] .shc-footer__brand .custom-logo:not(.shc-logo--dark) { display: none; }

/* With no dark variant uploaded, lift the artwork slightly rather than
   recolouring it. Scoped so it never applies to the dark variant itself. */
[data-theme="dark"] .shc-branding .custom-logo:not(.shc-logo--dark),
[data-theme="dark"] .shc-footer__brand .custom-logo:not(.shc-logo--dark) { filter: brightness(1.08); }

.shc-site-title {
	font-family: var(--shc-font-display);
	font-size: 1.5rem;
	line-height: 1.1;
	margin: 0;
	letter-spacing: 0.01em;
}

.shc-site-title a { text-decoration: none; }

.shc-site-description {
	margin: 0.15rem 0 0;
	font-size: 0.6875rem;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--shc-muted);
}

/* Primary navigation. */
.shc-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(0.9rem, 1.8vw, 1.9rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.shc-nav__list > li > a {
	position: relative;
	display: block;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-decoration: none;
	padding-block: 0.5rem;
	white-space: nowrap;
}

.shc-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0.15rem;
	height: 1px;
	background: currentColor;
	transition: right var(--shc-transition);
}

.shc-nav__list > li > a:hover,
.shc-nav__list .current-menu-item > a,
.shc-nav__list .current-menu-ancestor > a,
.shc-nav__list .current-menu-parent > a { color: var(--shc-accent); }

.shc-nav__list > li > a:hover::after,
.shc-nav__list .current-menu-item > a::after,
.shc-nav__list .current-menu-ancestor > a::after,
.shc-nav__list .current-menu-parent > a::after { right: 0; }

.shc-nav li { position: relative; }

/* Submenus open on hover and on keyboard focus. */
.shc-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--shc-surface);
	border: 1px solid var(--shc-border);
	padding: 0.4rem 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--shc-transition), transform var(--shc-transition), visibility var(--shc-transition);
	z-index: 60;
}

.shc-nav li:hover > .sub-menu,
.shc-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.shc-nav .sub-menu a {
	display: block;
	padding: 0.5rem 1.1rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: normal;
}

.shc-nav .sub-menu a:hover { color: var(--shc-accent); }
.shc-nav .sub-menu .sub-menu { top: 0; left: 100%; }

/* Header tools. */
.shc-tools { display: flex; align-items: center; gap: 0.15rem; }

.shc-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	border-radius: 2px;
	letter-spacing: normal;
	text-transform: none;
	transition: color var(--shc-transition);
}

.shc-iconbtn:hover { background: none; color: var(--shc-accent); border-color: transparent; }
.shc-iconbtn svg { width: 20px; height: 20px; display: block; }

/* Exactly one glyph shows per scheme. */
.shc-theme-toggle .shc-icon--sun { display: none; }
.shc-theme-toggle .shc-icon--moon { display: block; }
[data-theme="dark"] .shc-theme-toggle .shc-icon--sun { display: block; }
[data-theme="dark"] .shc-theme-toggle .shc-icon--moon { display: none; }

.shc-menu-toggle { display: inline-flex; }

@media (min-width: 1024px) { .shc-menu-toggle { display: none; } }

.shc-nav--desktop { display: none; }

@media (min-width: 1024px) { .shc-nav--desktop { display: block; } }

/* ==========================================================================
   10. Overlays — search modal and mobile navigation
   ========================================================================== */

.shc-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
}

.shc-overlay[hidden] { display: none !important; }

.shc-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--shc-bg) 82%, transparent);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	cursor: pointer;
	animation: shc-fade-in 260ms var(--shc-ease);
}

/* Browsers without color-mix still get a solid, readable backdrop. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.shc-overlay__backdrop { background: var(--shc-bg); opacity: 0.97; }
}

@keyframes shc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Search modal: centred in the viewport, both axes. */
.shc-searchmodal { align-items: center; justify-content: center; }

.shc-searchmodal__panel {
	position: relative;
	width: min(720px, calc(100vw - 2.5rem));
	margin-inline: auto;
	text-align: center;
	animation: shc-rise 320ms var(--shc-ease);
}

.shc-searchmodal__label {
	display: block;
	margin-bottom: var(--shc-space-s);
}

.shc-searchmodal .shc-searchform {
	max-width: none;
	border-bottom-width: 1px;
}

.shc-searchmodal .shc-searchform__field {
	font-family: var(--shc-font-display);
	font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
	padding-block: 0.5rem 0.7rem;
	text-align: left;
}

.shc-searchmodal .shc-searchform__submit svg { width: 22px; height: 22px; }

.shc-searchmodal__hint {
	margin: var(--shc-space-s) 0 0;
	font-size: 0.75rem;
	color: var(--shc-muted);
	text-align: left;
}

.shc-searchmodal__suggest {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: var(--shc-space-m) 0 0;
	padding: 0;
}

.shc-searchmodal__suggest a {
	display: inline-block;
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--shc-border);
	padding: 0.45rem 0.85rem;
	transition: border-color var(--shc-transition), color var(--shc-transition);
}

.shc-searchmodal__suggest a:hover { border-color: var(--shc-accent); color: var(--shc-accent); }

.shc-overlay__close {
	position: absolute;
	top: clamp(0.75rem, 2vw, 1.5rem);
	right: clamp(0.75rem, 2vw, 1.5rem);
	z-index: 2;
}

/* Mobile navigation panel. */
.shc-mobilenav {
	overflow-y: auto;
	overscroll-behavior: contain;
	/* The absolute backdrop only covers the visible box, and this panel
	   scrolls — so the panel paints its own ground as well. */
	background-color: var(--shc-bg);
}

.shc-mobilenav__inner {
	position: relative;
	width: 100%;
	padding-block: var(--shc-space-s) var(--shc-space-xl);
	animation: shc-rise 300ms var(--shc-ease);
}

.shc-mobilenav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	border-bottom: 1px solid var(--shc-border);
	padding-bottom: var(--shc-space-s);
	margin-bottom: var(--shc-space-s);
}

.shc-mobilenav__list { list-style: none; margin: 0; padding: 0; }
.shc-mobilenav__list li { border-bottom: 1px solid var(--shc-border); }

.shc-mobilenav__list a {
	display: block;
	padding: 0.95rem 0;
	font-family: var(--shc-font-display);
	font-size: 1.4rem;
	text-decoration: none;
}

.shc-mobilenav__list .sub-menu {
	list-style: none;
	margin: 0 0 0.6rem;
	padding: 0 0 0 1rem;
	border-top: 1px solid var(--shc-border);
}

.shc-mobilenav__list .sub-menu li { border-bottom: 0; }
.shc-mobilenav__list .sub-menu a { font-family: var(--shc-font-body); font-size: 0.95rem; padding: 0.45rem 0; }

.shc-mobilenav__search { margin-top: var(--shc-space-m); }

body.shc-nav-open { overflow: hidden; }

@media (min-width: 1024px) { .shc-mobilenav { display: none !important; } }

/* ==========================================================================
   11. Search form
   ========================================================================== */

.shc-searchform {
	display: flex;
	align-items: stretch;
	gap: 0;
	border-bottom: 1px solid var(--shc-text);
	max-width: 560px;
	transition: border-color var(--shc-transition);
}

.shc-searchform__field {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1rem;
	padding: 0.65rem 0;
}

.shc-searchform__field::placeholder { color: var(--shc-muted); }
.shc-searchform__field:focus { outline: none; }
.shc-searchform:focus-within { border-bottom-color: var(--shc-accent); }

.shc-searchform__submit {
	flex: 0 0 auto;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	padding: 0 0.5rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	letter-spacing: normal;
	text-transform: none;
}

.shc-searchform__submit svg { width: 18px; height: 18px; }
.shc-searchform__submit:hover { background: none; color: var(--shc-accent); border-color: transparent; }

/* ==========================================================================
   12. Forms & buttons
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--shc-text);
	background-color: var(--shc-surface);
	border: 1px solid var(--shc-border);
	border-radius: var(--shc-radius);
	padding: 0.7rem 0.85rem;
}

textarea { min-height: 9rem; resize: vertical; }

input:focus,
select:focus,
textarea:focus { outline: 2px solid var(--shc-accent); outline-offset: 1px; }

label { display: block; font-size: 0.8125rem; letter-spacing: 0.02em; margin-bottom: 0.35rem; }

.shc-btn,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--shc-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.9rem 1.75rem;
	min-height: 44px;
	border: 1px solid var(--shc-text);
	border-radius: var(--shc-radius);
	background-color: var(--shc-text);
	color: var(--shc-bg);
	cursor: pointer;
	transition: background-color var(--shc-transition), color var(--shc-transition), border-color var(--shc-transition);
}

.shc-btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
	background-color: transparent;
	color: var(--shc-text);
	border-color: var(--shc-text);
}

.shc-btn--ghost { background-color: transparent; color: var(--shc-text); }
.shc-btn--ghost:hover { background-color: var(--shc-text); color: var(--shc-bg); }

/* ==========================================================================
   13. Breadcrumbs
   ========================================================================== */

.shc-breadcrumbs {
	font-size: 0.75rem;
	color: var(--shc-muted);
	padding-block: var(--shc-space-s);
}

.shc-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.shc-breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.shc-breadcrumbs li + li::before { content: "/"; color: var(--shc-border); }
.shc-breadcrumbs a { text-decoration: none; }
.shc-breadcrumbs a:hover { text-decoration: underline; }
.shc-breadcrumbs [aria-current="page"] { color: var(--shc-text); }

/* ==========================================================================
   14. Single article
   ========================================================================== */

.shc-article__header {
	padding-block: var(--shc-space-m) var(--shc-space-l);
	max-width: var(--shc-content);
}

.shc-article__title { font-size: var(--shc-h1); margin: 0 0 var(--shc-space-s); }

.shc-article__deck {
	font-family: var(--shc-font-body);
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--shc-muted);
	max-width: 58ch;
	margin: 0 0 var(--shc-space-m);
}

.shc-article__figure { margin: 0 0 var(--shc-space-l); }
.shc-article__figure img { width: 100%; display: block; }

.shc-article__figure figcaption,
.wp-element-caption,
.wp-block-image figcaption {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--shc-muted);
	margin-top: 0.6rem;
	text-align: left;
	max-width: var(--shc-content);
}

/*
 * Article body. Left aligned on the container spine, not centred — wide blocks
 * break out to the right, which is how a magazine column actually behaves.
 */
.shc-entry-content > * {
	max-width: var(--shc-content);
	margin-inline: 0;
}

.shc-entry-content > .alignwide { max-width: min(1080px, 100%); }
.shc-entry-content > .alignfull { max-width: none; width: 100%; }
.shc-entry-content > .aligncenter { margin-inline: auto; }

.shc-entry-content p { margin-bottom: 1.55em; }

.shc-entry-content h2 {
	font-size: var(--shc-h2);
	margin-top: 2.1em;
	margin-bottom: 0.55em;
}

.shc-entry-content h3 {
	font-size: var(--shc-h3);
	margin-top: 1.8em;
	margin-bottom: 0.5em;
}

.shc-entry-content h4 { margin-top: 1.6em; margin-bottom: 0.5em; }

.shc-entry-content > h2:first-child,
.shc-entry-content > h3:first-child { margin-top: 0; }

.shc-entry-content li { margin-bottom: 0.5em; }
.shc-entry-content ul, .shc-entry-content ol { padding-left: 1.35em; }

.shc-entry-content a { color: var(--shc-text); text-decoration: underline; text-decoration-color: var(--shc-accent); }
.shc-entry-content a:hover { color: var(--shc-accent); }

.shc-entry-content img { display: block; }
.shc-entry-content .wp-block-image { margin-block: var(--shc-space-l); }

.shc-article__footer { margin-top: var(--shc-space-l); max-width: var(--shc-content); }

/*
 * Full-width bodies. The text runs the whole container, on the same left edge
 * and the same right edge as the header, the grid and the footer.
 *
 * Long lines are harder to read than short ones, so the measure is not simply
 * abandoned: line-height opens up as the column widens, and the reading size
 * steps up slightly on large screens to keep the characters-per-line count in
 * a sane range rather than letting it run to 160.
 */
.shc-article--full .shc-article__header,
.shc-article--full .shc-page__header,
.shc-article--full .shc-article__footer,
.shc-article--full .shc-article__deck,
.shc-article--full .shc-entry-content > *,
.shc-article--full .shc-article__figure figcaption,
.shc-article--full + .shc-comments,
.shc-article--full .shc-comments { max-width: none; }

.shc-article--full .shc-entry-content > .aligncenter { margin-inline: auto; }

@media (min-width: 1100px) {
	.shc-article--full .shc-entry-content { line-height: 1.85; }
	.shc-article--full .shc-entry-content > ul,
	.shc-article--full .shc-entry-content > ol { line-height: 1.85; }
}

@media (min-width: 1400px) {
	.shc-article--full .shc-entry-content { font-size: 1.125rem; }
}

.shc-taglist {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0 0 var(--shc-space-l);
	padding: 0;
}

.shc-taglist a {
	display: inline-block;
	font-size: 0.6875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--shc-muted);
	border: 1px solid var(--shc-border);
	padding: 0.4rem 0.8rem;
	transition: border-color var(--shc-transition), color var(--shc-transition);
}

.shc-taglist a:hover { color: var(--shc-accent); border-color: currentColor; }

/* Author box. */
.shc-authorbox {
	display: flex;
	gap: var(--shc-space-s);
	align-items: flex-start;
	border-top: 1px solid var(--shc-border);
	border-bottom: 1px solid var(--shc-border);
	padding-block: var(--shc-space-m);
	margin-block: var(--shc-space-l);
}

.shc-authorbox__avatar { flex: 0 0 auto; }
.shc-authorbox__avatar img { display: block; border-radius: 50%; }
.shc-authorbox__name { font-size: var(--shc-h4); margin: 0 0 0.25rem; }
.shc-authorbox__name a { text-decoration: none; }
.shc-authorbox__bio { font-size: 0.9375rem; color: var(--shc-muted); margin: 0 0 0.5rem; }
.shc-authorbox__links { display: flex; flex-wrap: wrap; gap: 0.85rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Prev / next. */
.shc-postnav {
	display: grid;
	gap: var(--shc-space-s);
	grid-template-columns: 1fr;
	border-top: 1px solid var(--shc-border);
	padding-top: var(--shc-space-m);
	margin-top: var(--shc-space-l);
}

@media (min-width: 700px) { .shc-postnav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--shc-space-m); } }

.shc-postnav__item { display: flex; flex-direction: column; gap: 0.35rem; }
.shc-postnav__item--next { text-align: right; align-items: flex-end; }
.shc-postnav__title { font-family: var(--shc-font-display); font-size: 1.15rem; line-height: 1.3; text-decoration: none; }
.shc-postnav__title:hover { color: var(--shc-accent); }

/* Static pages get the same left spine and a comfortable measure. */
.shc-page__header { padding-block: var(--shc-space-l) var(--shc-space-m); max-width: var(--shc-content); }

/* ==========================================================================
   15. Sidebar & widgets
   ========================================================================== */

.shc-sidebar .widget {
	margin-bottom: var(--shc-space-l);
	padding-bottom: var(--shc-space-l);
	border-bottom: 1px solid var(--shc-border);
}

.shc-sidebar .widget:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.shc-sidebar .widget-title,
.shc-sidebar .wp-block-heading {
	font-size: 0.6875rem;
	font-family: var(--shc-font-body);
	font-weight: 600;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--shc-muted);
	margin: 0 0 var(--shc-space-s);
}

.shc-sidebar ul { list-style: none; margin: 0; padding: 0; }
.shc-sidebar .widget > ul > li { padding: 0.4rem 0; border-bottom: 1px solid var(--shc-border); font-size: 0.9375rem; }
.shc-sidebar .widget > ul > li:last-child { border-bottom: 0; }
.shc-sidebar a { text-decoration: none; }
.shc-sidebar a:hover { text-decoration: underline; }

/* ==========================================================================
   16. Pagination
   ========================================================================== */

.shc-pagination {
	margin-top: var(--shc-space-xl);
	padding-top: var(--shc-space-m);
	border-top: 1px solid var(--shc-border);
}

.shc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
}

.shc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-decoration: none;
	border: 1px solid transparent;
	color: var(--shc-muted);
	transition: color var(--shc-transition), border-color var(--shc-transition);
}

.shc-pagination a.page-numbers:hover { color: var(--shc-accent); border-color: var(--shc-border); }
.shc-pagination .page-numbers.current { color: var(--shc-text); border-color: var(--shc-text); }
.shc-pagination .page-numbers.dots { min-width: 0; padding: 0 0.25rem; }

.shc-page-links { margin-block: var(--shc-space-m); font-size: 0.875rem; }
.shc-page-links a, .shc-page-links > span { padding: 0 0.35rem; }

/* ==========================================================================
   17. Advertising slots
   ========================================================================== */

.shc-ad {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	margin-inline: auto;
	text-align: center;
	clear: both;
}

.shc-ad__inner { display: block; width: 100%; max-width: 100%; overflow-x: hidden; }

.shc-ad__label {
	display: block;
	font-size: 0.625rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--shc-muted);
	margin-bottom: 0.5rem;
}

.shc-ad--header,
.shc-ad--below-header { padding-block: var(--shc-space-s); }

.shc-ad--home,
.shc-ad--before-article,
.shc-ad--after-article,
.shc-ad--in-content { padding-block: var(--shc-space-m); }

.shc-ad--sidebar { padding-block: var(--shc-space-s); }
.shc-ad--footer { padding-block: var(--shc-space-m); border-top: 1px solid var(--shc-border); }

.shc-ad--reserve .shc-ad__inner { min-height: 100px; }
@media (min-width: 768px) { .shc-ad--reserve .shc-ad__inner { min-height: 120px; } }

.shc-ad ins,
.shc-ad iframe,
.shc-ad img { max-width: 100%; }

.shc-ad-placeholder {
	border: 1px dashed var(--shc-border);
	color: var(--shc-muted);
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	display: grid;
	place-items: center;
	min-height: 120px;
	padding: var(--shc-space-s);
}

/* ==========================================================================
   18. Comments (only rendered when re-enabled in the Customizer)
   ========================================================================== */

.shc-comments { margin-top: var(--shc-space-xl); max-width: var(--shc-content); }
.shc-comments__title { font-size: var(--shc-h3); margin-bottom: var(--shc-space-m); }
.shc-comments .comment-list { list-style: none; margin: 0 0 var(--shc-space-l); padding: 0; }
.shc-comments .comment-list ol.children { list-style: none; margin: var(--shc-space-s) 0 0; padding-left: clamp(1rem, 4vw, 2.5rem); }
.shc-comments .comment-body { border-top: 1px solid var(--shc-border); padding-block: var(--shc-space-m); }
.shc-comments .comment-meta { font-size: 0.8125rem; color: var(--shc-muted); margin-bottom: 0.5rem; }
.shc-comments .comment-author { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; }
.shc-comments .comment-author img { border-radius: 50%; }
.shc-comments .comment-author .fn { font-style: normal; font-weight: 600; }
.shc-comments .reply { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.shc-comments .comment-respond { border-top: 1px solid var(--shc-border); padding-top: var(--shc-space-m); }
.shc-comments .comment-form > p { margin-bottom: var(--shc-space-s); }
.shc-comments .comment-notes,
.shc-comments .comment-form-cookies-consent label { font-size: 0.8125rem; color: var(--shc-muted); }
.shc-comments .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.shc-comments .comment-form-cookies-consent input { width: auto; }
.shc-comments .comment-form-cookies-consent label { margin: 0; }

/* ==========================================================================
   19. Author archive
   ========================================================================== */

.shc-authorheader { padding-block: clamp(2.25rem, 4vw, 3.5rem) var(--shc-space-l); }
.shc-authorheader__inner { display: flex; gap: var(--shc-space-m); align-items: flex-start; flex-wrap: wrap; }
.shc-authorheader__avatar { flex: 0 0 auto; line-height: 0; }
.shc-authorheader__avatar img { border-radius: 50%; display: block; }
.shc-authorheader__body { flex: 1 1 320px; min-width: 0; }
.shc-authorheader__name { margin: 0 0 0.35rem; font-size: var(--shc-h2); }
.shc-authorheader__role { font-size: 0.6875rem; letter-spacing: var(--shc-tracking-eyebrow); text-transform: uppercase; color: var(--shc-muted); margin: 0 0 var(--shc-space-s); }
.shc-authorheader__bio { max-width: 62ch; margin: 0 0 var(--shc-space-s); color: var(--shc-muted); }
.shc-authorheader__links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; list-style: none; padding: 0; margin: 0; }

/* ==========================================================================
   20. 404, empty states & no results
   ========================================================================== */

.shc-error404 { padding-block: var(--shc-space-xl); }
.shc-error404__code {
	font-family: var(--shc-font-display);
	font-size: clamp(3.5rem, 10vw, 7rem);
	line-height: 1;
	margin: 0 0 var(--shc-space-s);
	color: var(--shc-border);
}
.shc-error404__deck { max-width: 52ch; }
.shc-error404 .shc-searchform { margin-block: var(--shc-space-m) var(--shc-space-xl); }

.shc-categorycloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.shc-categorycloud a {
	display: inline-block;
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--shc-border);
	padding: 0.5rem 0.9rem;
	transition: border-color var(--shc-transition), color var(--shc-transition);
}

.shc-categorycloud a:hover { border-color: var(--shc-accent); color: var(--shc-accent); }

.shc-noresults { padding-block: var(--shc-space-xl); }
.shc-noresults .shc-searchform { margin-top: var(--shc-space-m); }
.shc-noresults__heading { display: block; margin-top: var(--shc-space-l); }

/* Homepage empty state — a designed panel, not a bare paragraph. */
.shc-emptyhome { padding-block: var(--shc-space-xl); }

.shc-emptyhome__panel {
	border: 1px solid var(--shc-border);
	background: var(--shc-surface);
	padding: clamp(1.75rem, 4vw, 3.5rem);
	display: grid;
	gap: var(--shc-space-l);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 900px) {
	.shc-emptyhome__panel { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.shc-emptyhome__title { font-size: var(--shc-h2); margin: 0 0 var(--shc-space-s); }
.shc-emptyhome__deck { max-width: 48ch; margin: 0; }

.shc-emptyhome__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--shc-space-s);
	margin-top: var(--shc-space-m);
}

.shc-emptyhome__steps {
	margin: 0;
	padding: 0 0 0 1.15rem;
	font-size: 0.9375rem;
	color: var(--shc-muted);
	line-height: 1.7;
}

.shc-emptyhome__steps li { margin-bottom: 0.35rem; }

/* Decorative arch, echoing the mark. Purely presentational. */
.shc-emptyhome__art {
	aspect-ratio: 3 / 4;
	max-width: 260px;
	width: 100%;
	margin-inline: auto;
	border: 1px solid var(--shc-border);
	border-radius: 130px 130px 0 0;
	background:
		radial-gradient(circle at 50% 78%, var(--shc-border) 0 6px, transparent 7px),
		var(--shc-bg);
}

/* ==========================================================================
   21. Newsletter / CTA
   ========================================================================== */

.shc-cta {
	background-color: var(--shc-surface);
	border-block: 1px solid var(--shc-border);
	padding-block: var(--shc-space-xl);
}

.shc-cta__inner {
	display: grid;
	gap: var(--shc-space-m);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 900px) {
	.shc-cta__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--shc-space-xl); }
	.shc-cta__actions { justify-self: end; }
}

.shc-cta__title { font-size: var(--shc-h2); margin-bottom: var(--shc-space-s); }
.shc-cta__text { color: var(--shc-muted); margin: 0; max-width: 52ch; }

/* ==========================================================================
   22. Footer
   ========================================================================== */

.shc-footer {
	background-color: var(--shc-surface);
	border-top: 1px solid var(--shc-border);
	margin-top: var(--shc-space-xl);
	padding-block: var(--shc-space-xl) var(--shc-space-m);
}

.shc-footer__grid {
	display: grid;
	gap: var(--shc-space-l);
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.shc-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.shc-footer__grid {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr);
		gap: clamp(2rem, 4vw, 4rem);
	}
}

.shc-footer__brand .custom-logo { max-height: 54px; width: auto; height: auto; }
.shc-footer__tagline { color: var(--shc-muted); font-size: 0.9375rem; max-width: 40ch; margin-top: var(--shc-space-s); }

.shc-footer__heading {
	font-family: var(--shc-font-body);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--shc-muted);
	margin: 0 0 var(--shc-space-s);
}

.shc-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.shc-footer__menu a {
	font-size: 0.9375rem;
	text-decoration: none;
	display: inline-block;
	transition: transform var(--shc-transition), color var(--shc-transition);
}
.shc-footer__menu a:hover { color: var(--shc-accent); transform: translateX(3px); }

.shc-footer__cta-text { color: var(--shc-muted); font-size: 0.9375rem; margin: 0 0 var(--shc-space-s); max-width: 34ch; }

.shc-footer__social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--shc-space-m); list-style: none; padding: 0; }
.shc-footer__social a {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--shc-border);
	text-decoration: none;
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: border-color var(--shc-transition), color var(--shc-transition);
}
.shc-footer__social a:hover { border-color: var(--shc-accent); color: var(--shc-accent); }
.shc-footer__social svg { width: 17px; height: 17px; }

.shc-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--shc-space-s);
	margin-top: var(--shc-space-xl);
	padding-top: var(--shc-space-m);
	border-top: 1px solid var(--shc-border);
	font-size: 0.8125rem;
	color: var(--shc-muted);
}

.shc-footer__bottom p { margin: 0; }
.shc-footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.shc-footer__legal a { text-decoration: none; }
.shc-footer__legal a:hover { color: var(--shc-accent); }

.shc-totop {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.6875rem;
	letter-spacing: var(--shc-tracking-eyebrow);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--shc-muted);
	background: none;
	border: 0;
	padding: 0.5rem 0;
	min-height: 44px;
	cursor: pointer;
}

.shc-totop:hover { background: none; color: var(--shc-accent); border-color: transparent; }
.shc-totop svg { width: 14px; height: 14px; }

/* ==========================================================================
   23. WordPress core block & alignment support
   ========================================================================== */

.alignleft { float: left; margin: 0.35rem var(--shc-space-m) var(--shc-space-s) 0; }
.alignright { float: right; margin: 0.35rem 0 var(--shc-space-s) var(--shc-space-m); }
.aligncenter { display: block; margin-inline: auto; }

@media (max-width: 599px) {
	.alignleft, .alignright { float: none; margin-inline: 0; display: block; }
}

.sticky .shc-card__title::after { content: " \2605"; color: var(--shc-accent); }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { font-size: 0.8125rem; color: var(--shc-muted); }

.wp-block-separator { border-top: 1px solid var(--shc-border); border-bottom: 0; }
.wp-block-pullquote { border-block: 1px solid var(--shc-border); padding-block: var(--shc-space-m); }
.wp-block-quote { border-left: 2px solid var(--shc-accent); }
.wp-block-group.has-background { padding: var(--shc-space-m); }
.wp-block-embed { margin-block: var(--shc-space-l); }
.wp-block-embed__wrapper { position: relative; }

.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-block-embed.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.wp-block-cover { min-height: 420px; }

.kt-blocks-carousel-init,
.kb-row-layout-wrap { max-width: 100%; }

/* ==========================================================================
   24. Print
   ========================================================================== */

@media print {
	.shc-header, .shc-footer, .shc-ad, .shc-postnav, .shc-comments,
	.shc-sidebar, .shc-related, .shc-tools, .shc-overlay, .shc-progress { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	body.js [data-reveal] { opacity: 1 !important; transform: none !important; }
	.shc-entry-content a::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
}
