/*!
 * School Mate theme – global styles, header, navigation and inner pages.
 * Homepage section styles ship with the School Mate Core plugin.
 *
 * Header geometry uses design units (1 unit = 1/2600 of the page width,
 * matching the 2600px design artboard) so it scales exactly with the layout.
 */

/* Fonts ------------------------------------------------------------------ */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url("../fonts/roboto-latin-var.woff2") format("woff2");
}

/* Base ------------------------------------------------------------------- */

:root {
	--sm-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
	--sm-black: #000;
	--sm-grey: #636366;
	--sm-dark: #343436;
	--sm-btn: #d8d8d8;
	--sm-btn-hover: #c8c8ca;
	--sm-navy: #17336a;
	--sm-light: #f0f6ff;
	--sm-ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: #fff;
	font-family: var(--sm-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--sm-dark);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--sm-navy);
}

button,
input,
select,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 2px solid #1e7ee5;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sm-skip-link:focus {
	position: fixed !important;
	z-index: 100001;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: #fff;
	color: #000;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.sm-site {
	container-type: inline-size;
	container-name: site;
	min-height: 100vh;
	overflow-x: clip;
}

.sm-main:focus {
	outline: 0;
}

/* Buttons & links ---------------------------------------------------------- */

.sm-btn {
	display: inline-flex;
	align-items: center;
	gap: 22px;
	height: 54px;
	padding: 0 22px 0 26px;
	border: 0;
	background: var(--sm-btn);
	color: var(--sm-black);
	font-family: var(--sm-font);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .08em;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s var(--sm-ease), box-shadow .3s var(--sm-ease);
}

.sm-btn__tri {
	display: block;
	flex: none;
	width: 16px;
	height: 20px;
	background: #fff;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transition: transform .35s var(--sm-ease);
}

.sm-btn:hover,
.sm-btn:focus-visible {
	background: var(--sm-btn-hover);
	box-shadow: 0 8px 20px rgba(52, 52, 54, .12);
	color: var(--sm-black);
}

.sm-btn:hover .sm-btn__tri,
.sm-btn:focus-visible .sm-btn__tri {
	transform: translateX(5px);
}

.sm-link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sm-grey);
}

.sm-arrow {
	position: relative;
	display: block;
	width: 48px;
	height: 1.5px;
	background: var(--sm-black);
	transition: transform .35s var(--sm-ease);
}

.sm-arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid var(--sm-black);
	border-right: 1.5px solid var(--sm-black);
	transform: translateY(-50%) rotate(45deg);
}

.sm-link:hover .sm-arrow,
.sm-link:focus-visible .sm-arrow {
	transform: translateX(8px);
}

.sm-eyebrow {
	margin: 0;
	font-size: max(13px, calc(40 * var(--u)));
	line-height: 1.225;
	letter-spacing: .075em;
	text-transform: uppercase;
	color: var(--sm-dark);
}

/* ==========================================================================
   HEADER (desktop: exact design geometry)
   ========================================================================== */

.sm-header {
	--u: calc(100cqw / 2600);
	position: relative;
	z-index: 100;
	height: calc(261 * var(--u));
	background: linear-gradient(90deg, #e5e5e5 0%, #ececec 22%, #f8f8f8 40%, #fff 52%);
	font-family: var(--sm-font);
}

.has-sticky-header .sm-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	box-shadow: 0 6px 24px rgba(40, 60, 90, .06);
}

.sm-header__inner {
	position: relative;
	height: 100%;
}

.sm-logo {
	position: absolute;
	left: calc(47 * var(--u));
	top: calc(53 * var(--u));
	display: block;
	width: calc(129 * var(--u));
}

.sm-logo__img {
	display: block;
	width: 100%;
	height: auto;
}

.sm-nav__list,
.sm-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-nav__list {
	position: absolute;
	left: calc(394 * var(--u));
	top: calc(105 * var(--u));
	display: flex;
	align-items: flex-start;
}

.sm-nav__list > li {
	position: relative;
	margin-right: calc(72 * var(--u));
}

.sm-nav__list > li > a {
	position: relative;
	display: flex;
	align-items: flex-start;
	padding-bottom: calc(9 * var(--u));
	font-size: calc(40 * var(--u));
	line-height: calc(49 * var(--u));
	font-weight: 600;
	letter-spacing: .07em;
	color: var(--sm-black);
	text-decoration: none;
	white-space: nowrap;
}

/* Active/hover underline under the label (excludes the caret slot) */
.sm-nav__list > li > a::before {
	content: "";
	position: absolute;
	left: 0;
	right: calc(34 * var(--u));
	bottom: 0;
	height: max(1px, calc(3 * var(--u)));
	background: #cfcfd1;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--sm-ease);
}

.sm-nav__list > li > a:hover::before,
.sm-nav__list > li > a:focus-visible::before,
.sm-nav__list > .current-menu-item > a::before,
.sm-nav__list > .current-menu-ancestor > a::before,
.sm-nav__list > .current_page_item > a::before {
	transform: scaleX(1);
}

.sm-nav__caret {
	display: block;
	flex: none;
	width: calc(22 * var(--u));
	height: calc(13 * var(--u));
	margin: calc(28 * var(--u)) 0 0 calc(12 * var(--u));
	background: #b4b4b4;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transition: transform .3s var(--sm-ease), background-color .3s;
}

.sm-nav__caret.is-empty {
	visibility: hidden;
}

.sm-nav__list > li:hover > a .sm-nav__caret,
.sm-nav__list > li:focus-within > a .sm-nav__caret {
	transform: rotate(180deg);
	background: var(--sm-grey);
}

.sm-nav__toggle {
	display: none;
}

/* Dropdowns */
.sm-nav__list .sub-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + calc(26 * var(--u)));
	left: calc(-36 * var(--u));
	min-width: max(220px, calc(560 * var(--u)));
	padding: max(8px, calc(22 * var(--u))) 0;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: max(12px, calc(26 * var(--u)));
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 calc(30 * var(--u)) calc(70 * var(--u)) rgba(40, 60, 100, .16), 0 4px 12px rgba(40, 60, 100, .06);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(calc(14 * var(--u)));
	transition: opacity .3s var(--sm-ease), transform .3s var(--sm-ease), visibility 0s .3s;
}

.sm-nav__list .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(calc(-26 * var(--u)) - 2px);
	height: calc(calc(26 * var(--u)) + 2px);
}

.sm-nav__list li:hover > .sub-menu,
.sm-nav__list li:focus-within > .sub-menu,
.sm-nav__list li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .3s var(--sm-ease), transform .3s var(--sm-ease), visibility 0s;
}

.sm-nav__list .sub-menu li {
	position: relative;
}

.sm-nav__list .sub-menu .sub-menu {
	top: calc(-1 * max(8px, calc(22 * var(--u))));
	left: 100%;
}

.sm-nav__list .sub-menu a {
	display: block;
	padding: max(9px, calc(16 * var(--u))) max(18px, calc(40 * var(--u)));
	font-size: max(14px, calc(30 * var(--u)));
	line-height: 1.35;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--sm-dark);
	text-decoration: none;
	transition: background-color .2s, color .2s, padding-left .25s var(--sm-ease);
}

.sm-nav__list .sub-menu a:hover,
.sm-nav__list .sub-menu a:focus-visible,
.sm-nav__list .sub-menu .current-menu-item > a {
	background: #f0f5fc;
	color: var(--sm-black);
	padding-left: max(22px, calc(50 * var(--u)));
}

/* Header button */
.sm-header__cta {
	position: absolute;
	right: calc(74 * var(--u));
	top: calc(90 * var(--u));
	height: calc(76 * var(--u));
	gap: calc(42 * var(--u));
	padding: 0 calc(34 * var(--u)) 0 calc(35 * var(--u));
	font-size: calc(32 * var(--u));
}

.sm-header__cta .sm-btn__tri {
	width: calc(32 * var(--u));
	height: calc(43 * var(--u));
}

.sm-header__cta:hover .sm-btn__tri,
.sm-header__cta:focus-visible .sm-btn__tri {
	transform: translateX(calc(6 * var(--u)));
}

.sm-burger {
	display: none;
}

/* ==========================================================================
   HEADER – tablet & mobile (off-canvas menu)
   ========================================================================== */

@container site (max-width: 1023px) {
	.sm-header {
		height: 84px;
	}

	.sm-logo {
		left: 24px;
		top: 10px;
		width: 54px;
	}

	.sm-burger {
		position: absolute;
		z-index: 120;
		right: 14px;
		top: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		margin-top: -24px;
		padding: 0;
		border: 0;
		border-radius: 10px;
		background: var(--sm-btn);
		color: var(--sm-black);
		cursor: pointer;
	}

	.sm-burger__bars,
	.sm-burger__bars::before,
	.sm-burger__bars::after {
		display: block;
		width: 22px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .3s var(--sm-ease), opacity .2s;
	}

	.sm-burger__bars {
		position: relative;
	}

	.sm-burger__bars::before,
	.sm-burger__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.sm-burger__bars::before { top: -7px; }
	.sm-burger__bars::after { top: 7px; }

	.sm-burger[aria-expanded="true"] .sm-burger__bars { background: transparent; }
	.sm-burger[aria-expanded="true"] .sm-burger__bars::before { transform: translateY(7px) rotate(45deg); }
	.sm-burger[aria-expanded="true"] .sm-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

	.sm-header__panel {
		position: fixed;
		z-index: 110;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: min(420px, 88vw);
		padding: calc(96px + var(--wp-admin--admin-bar--height, 0px)) 26px 40px;
		overflow-y: auto;
		background: linear-gradient(180deg, #fff 0%, #f4f8fd 100%);
		box-shadow: -20px 0 50px rgba(20, 40, 70, .18);
		transform: translateX(105%);
		visibility: hidden;
		transition: transform .4s var(--sm-ease), visibility 0s .4s;
	}

	.sm-menu-open .sm-header__panel {
		transform: none;
		visibility: visible;
		transition: transform .4s var(--sm-ease), visibility 0s;
	}

	.sm-menu-open .sm-header::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 105;
		background: rgba(15, 25, 40, .35);
	}

	.sm-nav__list {
		position: static;
		display: block;
	}

	.sm-nav__list > li {
		margin: 0;
		border-bottom: 1px solid #e6e9ee;
	}

	.sm-nav__list > li > a {
		display: block;
		padding: 15px 52px 15px 0;
		font-size: 18px;
		line-height: 1.35;
	}

	.sm-nav__list > li > a::before,
	.sm-nav__caret {
		display: none;
	}

	.sm-nav__list > .current-menu-item > a,
	.sm-nav__list > .current-menu-ancestor > a {
		color: var(--sm-navy);
	}

	.sm-nav__toggle {
		position: absolute;
		right: 0;
		top: 5px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 8px;
		background: transparent;
		cursor: pointer;
	}

	.sm-nav__toggle span {
		display: block;
		width: 14px;
		height: 9px;
		background: var(--sm-grey);
		clip-path: polygon(0 0, 100% 0, 50% 100%);
		transition: transform .3s var(--sm-ease);
	}

	.sm-nav__toggle[aria-expanded="true"] span {
		transform: rotate(180deg);
	}

	.sm-nav__list .sub-menu,
	.sm-nav__list .sub-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 12px;
		padding: 0 0 0 14px;
		border: 0;
		border-left: 2px solid var(--sm-btn);
		border-radius: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.sm-nav__list .sub-menu::before {
		display: none;
	}

	.sm-nav__list li.is-open > .sub-menu {
		display: block;
	}

	.sm-nav__list .sub-menu li .sm-nav__toggle {
		top: 0;
	}

	.sm-nav__list .sub-menu a {
		padding: 10px 44px 10px 6px;
		font-size: 16px;
	}

	.sm-nav__list .sub-menu a:hover,
	.sm-nav__list .sub-menu a:focus-visible {
		padding-left: 10px;
	}

	.sm-header__cta {
		position: static;
		align-self: flex-start;
		height: 54px;
		margin-top: 28px;
		gap: 22px;
		padding: 0 22px 0 26px;
		font-size: 16px;
	}

	.sm-header__cta .sm-btn__tri {
		width: 16px;
		height: 21px;
	}
}

@container site (max-width: 767px) {
	.sm-header {
		height: 74px;
	}

	.sm-logo {
		left: 18px;
		top: 8px;
		width: 48px;
	}
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

.sm-container {
	width: min(1200px, 100% - 48px);
	margin-inline: auto;
}

.sm-section-pad {
	padding-block: clamp(48px, 7vw, 110px);
}

.sm-page-hero {
	--u: calc(100cqw / 2600);
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(820 * var(--u));
	background: var(--sm-banner) left center / cover no-repeat, #f4f7fb;
}

.sm-page-hero__inner {
	position: relative;
	width: calc(1000 * var(--u));
	margin-left: calc(1450 * var(--u));
	padding: calc(100 * var(--u)) 0;
}

.sm-page-hero__title {
	margin: calc(30 * var(--u)) 0 0;
	font-size: max(30px, calc(96 * var(--u)));
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--sm-grey);
}

.sm-page-hero__text {
	margin: calc(40 * var(--u)) 0 0;
	font-size: max(15px, calc(36 * var(--u)));
	line-height: 1.4;
	letter-spacing: .05em;
	color: var(--sm-dark);
}

.sm-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: calc(50 * var(--u));
	font-size: max(13px, calc(28 * var(--u)));
	letter-spacing: .05em;
	color: var(--sm-grey);
}

.sm-breadcrumbs a {
	color: var(--sm-grey);
	text-decoration: none;
	border-bottom: 1px solid var(--sm-btn);
}

.sm-breadcrumbs a:hover {
	color: var(--sm-black);
	border-color: var(--sm-grey);
}

@container site (max-width: 1023px) {
	.sm-page-hero {
		min-height: 340px;
		background-position: 25% center;
	}

	.sm-page-hero::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(255, 255, 255, .25) 0%, rgba(255, 255, 255, .88) 45%, rgba(255, 255, 255, .95) 100%);
	}

	.sm-page-hero__inner {
		width: auto;
		max-width: 620px;
		margin: 0 0 0 auto;
		padding: 56px 32px;
	}

	.sm-page-hero__title { font-size: clamp(30px, 5vw, 44px); }
}

@container site (max-width: 600px) {
	.sm-page-hero {
		min-height: 280px;
	}

	.sm-page-hero::before {
		background: linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .93) 60%);
	}

	.sm-page-hero__inner {
		margin: 0;
		padding: 48px 20px;
	}
}

/* Entry content ------------------------------------------------------------ */

.sm-entry {
	max-width: 1000px;
	font-size: 18px;
	line-height: 1.75;
	letter-spacing: .015em;
}

.sm-entry > *:first-child { margin-top: 0; }

.sm-entry :where(h1, h2, h3, h4, h5, h6) {
	margin: 1.6em 0 .55em;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .04em;
	color: var(--sm-grey);
}

.sm-entry h2 { font-size: clamp(24px, 2.4vw, 32px); }
.sm-entry h3 { font-size: clamp(20px, 2vw, 25px); }
.sm-entry h4 { font-size: 20px; }

.sm-entry :where(p, ul, ol, figure, blockquote, table, pre) {
	margin: 0 0 1.25em;
}

.sm-entry a {
	color: var(--sm-navy);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sm-entry a:hover { color: #1e7ee5; }

.sm-entry ul,
.sm-entry ol { padding-left: 1.3em; }

.sm-entry li { margin-bottom: .35em; }

.sm-entry blockquote {
	padding: 20px 26px;
	border-left: 4px solid var(--sm-btn);
	background: var(--sm-light);
	font-size: 1.1em;
	color: var(--sm-dark);
}

.sm-entry img { border-radius: 12px; }

.sm-entry table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.sm-entry th,
.sm-entry td {
	padding: 10px 14px;
	border: 1px solid #e3e6ea;
	text-align: left;
}

.sm-entry th { background: #f4f7fb; }

.sm-entry pre {
	overflow-x: auto;
	padding: 18px;
	background: #f4f6f8;
	border-radius: 8px;
	font-size: 15px;
}

.sm-entry .alignwide {
	width: min(1200px, 100vw - 48px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.sm-entry .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

.sm-entry .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.sm-entry .alignright { float: right; margin: .3em 0 1em 1.5em; }
.sm-entry .aligncenter { margin-inline: auto; }

.sm-entry__media {
	margin: 0 0 2em;
}

.sm-entry__media img {
	display: block;
	width: 100%;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(40, 80, 140, .14);
}

.sm-entry .smc-sections {
	margin-block: 2em;
}

.sm-entry .smc-sections .smc-section {
	border-radius: 18px;
}

.sm-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	padding: 0 !important;
	list-style: none;
}

.sm-features li {
	margin: 0;
	padding: 14px 16px 14px 44px;
	border-radius: 12px;
	background: var(--sm-light);
	position: relative;
	font-size: 16px;
}

.sm-features li::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 21px;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--sm-navy);
	border-bottom: 2px solid var(--sm-navy);
	transform: rotate(-45deg);
}

.sm-meta {
	margin: 0 0 12px;
	font-size: 14px;
	letter-spacing: .05em;
	color: var(--sm-grey);
}

.sm-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 12px;
	border-radius: 20px;
	background: #eef2f7;
	font-size: 14px;
	text-decoration: none;
}

.sm-page-links { margin-top: 2em; font-weight: 600; }

/* Cards grid (archives, blog, search) -------------------------------------- */

.sm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 30px;
}

.sm-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e7ecf3;
	border-radius: 22px;
	background: linear-gradient(170deg, #fff 0%, #f6f9fd 100%);
	box-shadow: 0 10px 30px rgba(110, 135, 175, .12);
	transition: transform .45s var(--sm-ease), box-shadow .45s var(--sm-ease);
}

.sm-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(110, 135, 175, .22);
}

.sm-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: radial-gradient(circle at 30% 20%, #f7fbff 0%, #e4eefb 100%);
}

.sm-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--sm-ease);
}

.sm-card:hover .sm-card__media img { transform: scale(1.06); }

.sm-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	padding: 28px;
	border-radius: 50%;
	background: radial-gradient(circle at 58% 42%, #f8f0e6 0%, #fcf8f3 35%, #fff 66%);
	box-shadow: 0 10px 26px rgba(90, 110, 150, .2);
	color: #1c2742;
	--smc-ic-a1: #f7931e;
	--smc-ic-a2: #1e7ee5;
}

.sm-card__icon--letter {
	font-size: 44px;
	font-weight: 700;
	color: var(--sm-grey);
}

.sm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px 26px 28px;
}

.sm-card__title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: .05em;
}

.sm-card__title a {
	color: var(--sm-black);
	text-decoration: none;
}

.sm-card__title a:hover { color: var(--sm-navy); }

.sm-card__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	letter-spacing: .03em;
	color: var(--sm-grey);
}

.sm-card .sm-link { margin-top: auto; }

/* Pagination / nav --------------------------------------------------------- */

.pagination,
.sm-post-nav {
	margin-top: 56px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 8px;
	background: #eef2f7;
	font-weight: 600;
	color: var(--sm-dark);
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--sm-btn);
	color: var(--sm-black);
}

.sm-post-nav .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.sm-post-nav a {
	font-weight: 600;
	text-decoration: none;
	color: var(--sm-black);
}

.sm-post-nav a span {
	display: block;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sm-grey);
}

/* Search form -------------------------------------------------------------- */

.sm-search {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 20px 0;
}

.sm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 54px;
	padding: 0 16px;
	border: 1px solid var(--sm-btn);
	border-radius: 10px;
	background: #fff;
}

.sm-empty {
	padding: 40px 0;
	text-align: left;
}

.sm-empty h2 {
	margin-top: 0;
	color: var(--sm-grey);
}

/* Comments ----------------------------------------------------------------- */

.sm-comments-wrap {
	max-width: 1000px;
	padding-bottom: 80px;
}

.sm-comments__list {
	padding-left: 0;
	list-style: none;
}

.sm-comments__list .comment-body {
	margin-bottom: 20px;
	padding: 20px;
	border-radius: 14px;
	background: #f6f8fb;
}

.sm-comments__list .children {
	list-style: none;
	padding-left: 28px;
}

.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--sm-btn);
	border-radius: 10px;
}

.comment-form .submit {
	height: 52px;
	padding: 0 28px;
	border: 0;
	background: var(--sm-btn);
	font-weight: 700;
	letter-spacing: .07em;
	cursor: pointer;
}

/* Footer (optional – hidden unless it has content) ------------------------- */

.sm-footer {
	background: linear-gradient(100deg, #dcdfe3 0%, #e2eef9 65%, #f4f9fe 100%);
	border-top: 1px solid rgba(255, 255, 255, .7);
	font-size: 14px;
	letter-spacing: .05em;
	color: var(--sm-dark);
}

.sm-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
	width: min(1200px, 100% - 48px);
	margin-inline: auto;
	padding: 56px 0 20px;
}

.sm-footer .widget-title {
	margin: 0 0 12px;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sm-grey);
}

.sm-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	width: min(1200px, 100% - 48px);
	margin-inline: auto;
	padding: 22px 0;
}

.sm-footer__text p { margin: 0; }

.sm-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-footer a {
	color: var(--sm-dark);
	text-decoration: none;
}

.sm-footer a:hover { color: var(--sm-black); text-decoration: underline; }

/* Fallback for browsers without container query units */
@supports not (width: 1cqw) {
	.sm-header,
	.sm-page-hero { --u: calc(100vw / 2600); }
}
