/* YASH! theme. Colours come from theme.json presets; dark mode only redefines them. */

html.is-dark,
html.is-dark body {
	--wp--preset--color--base: #172E45;
	--wp--preset--color--surface: #1F3B57;
	--wp--preset--color--border: #2E5072;
	--wp--preset--color--heading: #FFFFFF;
	--wp--preset--color--body: #D3DCE6;
	--wp--preset--color--muted: #A9B7C6;
	--wp--preset--color--link: #F78820;
	--wp--preset--color--code-bg: #2E5072;
	--wp--preset--color--code-fg: #FFD3A8;
	--wp--preset--color--tip-bg: #2E4560;
	color-scheme: dark;
}

:root {
	--yash-radius: 20px;
	--yash-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
	--yash-navy-gradient: radial-gradient(900px 600px at 85% 10%, #2B5379 0%, #1F3B57 55%, #172E45 100%);
	--yash-dots: radial-gradient(rgba(255, 255, 255, 0.1) 1.4px, transparent 1.4px);
}

body {
	-webkit-font-smoothing: antialiased;
}

.yash-main {
	margin-block-start: 0;
}

.yash-main > * {
	margin-block: 0;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

:where(.yash-main) a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--orange);
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
}

/* ---------- Header ---------- */

.yash-header {
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: 14px;
}

.yash-header-inner {
	gap: 12px 36px;
}

.yash-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--wp--preset--color--heading);
	text-decoration: none;
}

.yash-wordmark {
	font-weight: 800;
	font-size: 30px;
	letter-spacing: -0.5px;
	line-height: 1;
}

.yash-wordmark span {
	color: var(--wp--preset--color--orange);
}

.yash-nav {
	flex-grow: 1;
	font-weight: 600;
	font-size: 16px;
	gap: 8px 28px;
	color: var(--wp--preset--color--heading);
}

.yash-nav a:hover {
	color: var(--wp--preset--color--orange);
}

.yash-header-tools {
	gap: 8px;
}

.yash-icon-btn,
.yash-search .wp-block-search__button {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--border);
	background: transparent;
	color: var(--wp--preset--color--heading);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin: 0;
}

.yash-icon-btn:hover,
.yash-search .wp-block-search__button:hover {
	border-color: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--orange);
}

.yash-search .wp-block-search__button svg {
	fill: currentColor;
	width: 22px;
	height: 22px;
}

.yash-search .wp-block-search__inside-wrapper {
	gap: 8px;
}

.yash-search .wp-block-search__input {
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--heading);
	padding: 0 14px;
	height: 44px;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--heading);
}

/* ---------- Shared navy band ---------- */

.yash-hero,
.yash-article-hero,
.yash-page-hero {
	position: relative;
	overflow: hidden;
	background: var(--yash-dots), var(--yash-navy-gradient);
	background-size: 28px 28px, auto;
	color: #FFFFFF;
}

.yash-hero :where(h1, h2, h3, a),
.yash-article-hero :where(h1, h2, a),
.yash-page-hero :where(h1, h2, a) {
	color: #FFFFFF;
}

.yash-page-hero {
	padding-block: 64px;
}

.yash-page-hero h1 {
	margin: 0;
}

.yash-page-body {
	padding-block: 48px 88px;
}

.yash-page-hero .yash-lede,
.yash-page-hero .wp-block-term-description {
	color: #D3DCE6;
	font-size: var(--wp--preset--font-size--large);
}

/* Limit the line length on the paragraph; a max-width on the block itself makes WordPress centre it. */
.yash-page-hero .wp-block-term-description p {
	max-width: 720px;
	margin: 0;
}

/* ---------- Homepage hero ---------- */

.yash-hero {
	padding-block: 88px 96px;
}

.yash-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	bottom: -220px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	border: 48px solid var(--wp--preset--color--orange);
	opacity: 0.9;
	pointer-events: none;
}

.yash-hero > * {
	position: relative;
	z-index: 1;
}

.yash-hero-cols {
	gap: 56px;
}

.yash-pill {
	display: inline-block;
	background: var(--wp--preset--color--orange);
	color: #172E45;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: 999px;
	margin: 0;
}

.yash-hero-title {
	margin-block-start: 24px;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1.05;
	letter-spacing: -1.5px;
}

.yash-accent {
	color: var(--wp--preset--color--orange);
}

.yash-hero-lede {
	font-size: 20px;
	line-height: 1.55;
	color: #D3DCE6;
	max-width: 540px;
}

.yash-hero-buttons {
	margin-block-start: 36px;
	gap: 12px;
}

.yash-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	color: #172E45;
}

.yash-hero .is-style-outline .wp-block-button__link {
	background: transparent;
	color: #FFFFFF;
	border: 2px solid rgba(255, 255, 255, 0.35);
	padding: 12px 24px;
}

.yash-hero .is-style-outline .wp-block-button__link:hover {
	border-color: #FFFFFF;
}

.yash-hero-query .wp-block-post-template {
	margin: 0;
}

.yash-hero-card {
	position: relative;
	background: #FFFFFF;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--yash-shadow);
	max-width: 560px;
	transition: transform 180ms ease;
}

.yash-hero-card:hover {
	transform: translateY(-3px);
}

.yash-hero-card .wp-block-post-featured-image {
	margin: 0;
}

.yash-hero-card-body {
	padding: 22px 26px 26px;
}

.yash-kicker {
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #B4531A;
}

.yash-kicker p {
	margin: 0;
}

.yash-kicker p::after {
	content: " ·";
}

.yash-hero .yash-kicker a {
	color: #B4531A;
	position: relative;
	z-index: 2;
}

.yash-hero .yash-hero-card-title {
	margin: 8px 0 0;
	font-size: 24px;
	line-height: 1.25;
	letter-spacing: 0;
}

.yash-hero .yash-hero-card-title a {
	color: #1F3B57;
}

.yash-hero-card-title a::after,
.yash-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- Sections ---------- */

.yash-section {
	padding-block: 64px 0;
}

.yash-section-last {
	padding-block-end: 88px;
}

.yash-section-head {
	gap: 8px 24px;
	margin-block-end: 32px;
}

.yash-section-head h2,
.yash-section-head p {
	margin: 0;
}

.yash-more a {
	font-weight: 700;
}

.yash-muted {
	color: var(--wp--preset--color--muted);
}

/* ---------- Post cards ---------- */

.yash-cards .wp-block-post-template {
	gap: 28px;
}

.yash-card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--yash-radius);
	overflow: hidden;
	transition: transform 180ms ease;
}

.yash-card:hover {
	transform: translateY(-3px);
}

.yash-card > *,
.yash-hero-card > * {
	margin: 0 !important;
}

.yash-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 24px;
	flex-grow: 1;
}

.yash-card-body > * {
	margin: 0;
}

.yash-topic {
	align-self: flex-start;
	position: relative;
	z-index: 2;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.yash-card .yash-topic a {
	display: inline-block;
	color: var(--wp--preset--color--heading);
	background: var(--wp--preset--color--code-bg);
	padding: 5px 10px;
	border-radius: 999px;
}

.yash-card-title {
	font-size: 21px;
	line-height: 1.3;
	letter-spacing: 0;
}

.yash-card-excerpt {
	font-size: 16px;
	line-height: 1.55;
}

.yash-card-excerpt p {
	margin: 0;
}

.yash-card-meta {
	margin-top: auto !important;
	padding-top: 8px;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.yash-sep {
	margin-inline: 8px;
}

/* ---------- Topic tiles ---------- */

.yash-topics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.yash-topic-card {
	display: flex;
	gap: 14px;
	align-items: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 16px 18px;
	text-decoration: none;
	transition: transform 180ms ease;
}

.yash-topic-card:hover {
	transform: translateY(-3px);
}

.yash-topic-icon {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #1F3B57;
	color: var(--wp--preset--color--orange);
	display: flex;
	align-items: center;
	justify-content: center;
}

.yash-topic-name {
	display: block;
	font-weight: 800;
	font-size: 18px;
	color: var(--wp--preset--color--heading);
}

.yash-topic-meta {
	display: block;
	font-size: 14px;
	line-height: 1.45;
	color: var(--wp--preset--color--muted);
}

/* ---------- Stack block ---------- */

.yash-stack {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 28px;
	padding: 48px;
	gap: 40px;
}

.yash-stack h2 {
	margin-top: 0;
}

.yash-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.yash-chips li {
	font-weight: 600;
	font-size: 15px;
	color: var(--wp--preset--color--heading);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	padding: 10px 16px;
	border-radius: 12px;
}

/* ---------- Article ---------- */

.yash-article-hero {
	padding-block: 64px 220px;
}

.yash-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #C9D4DF;
}

.yash-article-hero .yash-breadcrumb a {
	color: #C9D4DF;
}

.yash-article-hero .yash-breadcrumb a:last-child {
	color: #FFFFFF;
}

.yash-article-title {
	margin-block-start: 20px;
	font-size: clamp(34px, 4.2vw, 52px);
}

.yash-lede {
	font-size: 21px;
	line-height: 1.55;
	color: #D3DCE6;
}

.yash-lede p {
	max-width: 720px;
}

.yash-lede p {
	margin: 0;
}

.yash-article-meta {
	gap: 8px 18px;
	font-size: 15px;
	color: #C9D4DF;
	margin-block-start: 30px;
}

.yash-article-meta > * {
	margin: 0;
}

.yash-article-meta .wp-block-post-author-name {
	color: #FFFFFF;
	font-weight: 700;
}

.yash-article-meta .wp-block-post-author-name::before {
	content: "by ";
	font-weight: 400;
	color: #C9D4DF;
}

.yash-article-meta .wp-block-post-comments-link a {
	color: #FFFFFF;
	font-weight: 600;
}

.yash-article-cover {
	margin-block-start: -180px;
	position: relative;
	z-index: 1;
}

.yash-article-cover .wp-block-post-featured-image img {
	border-radius: 24px;
	box-shadow: var(--yash-shadow);
}

.yash-article-row {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
	padding-block-start: 64px;
}

.yash-article-aside {
	flex: 1 1 240px;
	max-width: 280px;
	position: sticky;
	top: 24px;
}

.admin-bar .yash-article-aside {
	top: 56px;
}

.yash-article-row > .yash-prose {
	flex: 999 1 560px;
	min-width: 0;
	max-width: 700px;
	margin: 0;
}

.yash-toc-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.yash-toc ol {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
}

.yash-toc a {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 7px 0;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.yash-toc a::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: transparent;
	transform: translateY(-1px);
}

.yash-toc a.is-active {
	color: var(--wp--preset--color--heading);
	font-weight: 700;
}

.yash-toc a.is-active::before {
	background: var(--wp--preset--color--orange);
}

.yash-back {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 14px;
	font-weight: 700;
}

@media (max-width: 900px) {
	.yash-article-aside {
		position: static;
		max-width: none;
		flex-basis: 100%;
	}

	.yash-toc ol {
		columns: 2;
	}

	.yash-back {
		display: none;
	}
}

/* ---------- Prose ---------- */

.yash-prose {
	font-size: 18px;
	line-height: 1.7;
}

.yash-prose > p:first-child {
	font-size: 20px;
	line-height: 1.65;
	color: var(--wp--preset--color--heading);
}

.yash-prose h2 {
	margin-block: 56px 18px;
	scroll-margin-top: 24px;
}

.yash-prose h3 {
	margin-block: 36px 12px;
	scroll-margin-top: 24px;
}

.yash-step {
	color: #E8622C;
}

html.is-dark .yash-step {
	color: var(--wp--preset--color--orange);
}

.yash-prose a:where(:not(.wp-element-button)) {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.yash-prose a:where(:not(.wp-element-button)):hover {
	color: inherit;
	text-decoration-thickness: 3px;
}

.yash-prose li + li {
	margin-top: 8px;
}

.yash-prose strong {
	color: var(--wp--preset--color--heading);
}

.yash-prose :not(pre) > code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.85em;
	background: var(--wp--preset--color--code-bg);
	color: var(--wp--preset--color--code-fg);
	padding: 2px 7px;
	border-radius: 6px;
	overflow-wrap: anywhere;
}

.yash-prose ol:not([class*="has-"]) {
	list-style: none;
	counter-reset: yash-step;
	padding-left: 0;
}

.yash-prose ol:not([class*="has-"]) > li {
	counter-increment: yash-step;
	position: relative;
	padding-left: 48px;
	min-height: 32px;
}

.yash-prose ol:not([class*="has-"]) > li::before {
	content: counter(yash-step);
	position: absolute;
	left: 0;
	top: 2px;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #1F3B57;
	color: #FFFFFF;
	font-weight: 800;
	font-size: 15px;
	line-height: 32px;
	text-align: center;
}

.yash-prose .wp-block-image img {
	border-radius: 16px;
}

.yash-prose .wp-block-quote {
	border-left: 0;
	margin-inline: 0;
	padding: 18px 22px;
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
}

.yash-prose .wp-block-quote.yash-callout {
	background: var(--wp--preset--color--tip-bg);
	border-color: transparent;
	font-size: 16px;
	line-height: 1.6;
}

.yash-prose .wp-block-quote > :first-child {
	margin-top: 0;
}

.yash-prose .wp-block-quote > :last-child {
	margin-bottom: 0;
}

.yash-prose .wp-block-kevinbatdorf-code-block-pro {
	border-radius: 16px;
	overflow: hidden;
}

.yash-prose table {
	display: block;
	overflow-x: auto;
}

/* ---------- Related + comments ---------- */

.yash-related {
	padding-block-start: 72px;
}

.yash-related h2 {
	margin: 0 0 28px;
	font-size: 28px;
}

.yash-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 28px;
}

.yash-related-card {
	display: flex;
	flex-wrap: wrap;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--yash-radius);
	overflow: hidden;
	text-decoration: none;
	transition: transform 180ms ease;
}

.yash-related-card:hover {
	transform: translateY(-3px);
}

.yash-related-img {
	display: block;
	flex: 1 1 220px;
	min-width: 0;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.yash-related-text {
	flex: 1 1 220px;
	min-width: 0;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}

.yash-related-topic {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.yash-related-title {
	font-weight: 800;
	font-size: 20px;
	line-height: 1.3;
	color: var(--wp--preset--color--heading);
}

.yash-article-layout > .yash-comments-section {
	max-width: 700px;
	margin: 56px 0 88px !important;
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--border);
}

.yash-comments-title {
	margin: 0 0 8px;
	font-size: 24px;
}

@media (min-width: 901px) {
	.yash-article-aside {
		flex: 0 0 260px;
		max-width: 260px;
	}

	.yash-article-layout > .yash-comments-section {
		margin-left: calc(max(0px, (100% - 1200px) / 2) + 308px) !important;
	}
}

.yash-comment {
	padding-block: 20px;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.yash-comment .wp-block-comment-author-name {
	font-weight: 700;
	color: var(--wp--preset--color--heading);
}

.yash-comment .wp-block-comment-date {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.yash-comments :where(input:not([type="submit"]):not([type="checkbox"]), textarea) {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 12px 14px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--heading);
	font: inherit;
}

/* ---------- WPForms (Lite exposes its look as CSS variables) ---------- */

.wp-site-blocks .wpforms-container {
	--wpforms-field-border-radius: 12px;
	--wpforms-field-border-color: var(--wp--preset--color--border);
	--wpforms-field-background-color: var(--wp--preset--color--surface);
	--wpforms-field-text-color: var(--wp--preset--color--heading);
	--wpforms-label-color: var(--wp--preset--color--heading);
	--wpforms-label-sublabel-color: var(--wp--preset--color--muted);
	--wpforms-button-border-radius: 14px;
	--wpforms-button-background-color: var(--wp--preset--color--orange);
	--wpforms-button-border-color: var(--wp--preset--color--orange);
	--wpforms-button-text-color: #172E45;
	--wpforms-page-break-color: var(--wp--preset--color--orange);
	--wpforms-field-size-input-height: 48px;
	--wpforms-button-size-height: 48px;
	--wpforms-button-size-padding-h: 26px;
	--wpforms-button-size-font-size: 17px;
}

.wp-site-blocks .wpforms-container button[type="submit"] {
	font-weight: 700;
}

/* Styled by the theme itself, so it looks right whatever WPForms' own "Include Form Styling" setting is. */
.yash-prose .wpforms-container {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--yash-radius);
	padding: 32px !important;
	margin-top: 32px !important;
}

.yash-prose .wpforms-container .wpforms-field {
	padding: 0 0 22px !important;
	margin: 0 !important;
}

.yash-prose .wpforms-container .wpforms-field-label {
	display: block;
	margin: 0 0 8px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--heading) !important;
}

.yash-prose .wpforms-container .wpforms-required-label {
	color: #E8622C !important;
}

.yash-prose .wpforms-container :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], select, textarea) {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 48px !important;
	padding: 10px 14px !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 12px !important;
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--heading) !important;
	font: inherit !important;
	font-size: 17px !important;
	box-shadow: none !important;
	box-sizing: border-box;
}

.yash-prose .wpforms-container textarea {
	height: auto !important;
	min-height: 180px;
	resize: vertical;
}

.yash-prose .wpforms-container :is(input, select, textarea):focus {
	outline: none !important;
	border-color: var(--wp--preset--color--orange) !important;
	box-shadow: 0 0 0 3px rgba(247, 136, 32, 0.25) !important;
}

.yash-prose .wpforms-container .wpforms-submit-container {
	padding: 4px 0 0 !important;
	margin: 0 !important;
}

.yash-prose .wpforms-container button[type="submit"] {
	height: auto !important;
	padding: 14px 28px !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--wp--preset--color--orange) !important;
	color: #172E45 !important;
	font: inherit !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.yash-prose .wpforms-container button[type="submit"]:hover {
	filter: brightness(1.06);
}

.yash-prose .wpforms-container label.wpforms-error,
.yash-prose .wpforms-container .wpforms-error {
	color: #E8622C !important;
	font-size: 14px !important;
	margin-top: 6px !important;
}

.yash-prose .wpforms-confirmation-container-full,
.yash-prose .wpforms-confirmation-container {
	background: var(--wp--preset--color--tip-bg) !important;
	border: 0 !important;
	border-radius: 16px !important;
	color: var(--wp--preset--color--heading) !important;
	padding: 20px 24px !important;
}

@media (max-width: 599px) {
	.yash-prose .wpforms-container {
		padding: 20px !important;
	}
}

/* ---------- Search, pagination, footer ---------- */

.yash-search-large {
	margin-top: 24px;
}

.yash-search-large .wp-block-search__inside-wrapper {
	max-width: 560px;
}

.yash-search-large .wp-block-search__input {
	border-radius: 14px;
	border: 0;
	padding: 12px 16px;
	font: inherit;
	background: #FFFFFF;
	color: #1F3B57;
}

.yash-search-large .wp-block-search__button {
	border-radius: 14px;
	background: var(--wp--preset--color--orange);
	color: #172E45;
	border: 0;
	font-weight: 700;
	padding-inline: 22px;
}

.yash-pagination {
	margin-top: 48px;
	font-weight: 700;
	gap: 8px;
}

.yash-pagination a,
.yash-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--heading);
}

.yash-pagination .page-numbers.current {
	background: var(--wp--preset--color--orange);
	border-color: var(--wp--preset--color--orange);
	color: #172E45;
}

.yash-pagination .page-numbers.dots {
	border: 0;
	background: transparent;
}

.yash-pagination a:hover {
	border-color: var(--wp--preset--color--orange);
}

.yash-footer {
	color: #C9D4DF;
	padding-block: 40px;
	font-size: 15px;
}

.yash-footer a {
	color: #C9D4DF;
}

.yash-footer a:hover {
	color: #FFFFFF;
}

.yash-footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #FFFFFF;
	font-weight: 800;
}

.yash-footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
	margin: 0;
}

.yash-footer-nav a {
	display: inline-block;
	padding-block: 10px;
}

.yash-nav :not(.is-menu-open) .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--heading) !important;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 14px;
	padding: 8px !important;
	box-shadow: 0 16px 40px rgba(23, 46, 69, 0.15);
	min-width: 220px !important;
}

.yash-nav :not(.is-menu-open) .wp-block-navigation__submenu-container a {
	border-radius: 8px;
	padding: 8px 12px !important;
}

.yash-nav :not(.is-menu-open) .wp-block-navigation__submenu-container a:hover {
	background: var(--wp--preset--color--base);
}

.yash-nav .current-menu-item > a {
	color: var(--wp--preset--color--orange);
}

/* ---------- Mobile menu overlay ---------- */

.yash-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--heading) !important;
	padding: 20px 24px;
}

.yash-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	font-size: 22px;
	font-weight: 700;
	padding-top: 56px;
}

.yash-nav .is-menu-open .wp-block-navigation__container {
	gap: 18px;
}

.yash-nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 10px 0 0 18px !important;
	font-size: 18px;
	font-weight: 500;
	gap: 10px;
}

.yash-nav .wp-block-navigation__responsive-container-open,
.yash-nav .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--heading);
}

@media (max-width: 599px) {
	.yash-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

.yash-nav .wp-block-navigation__responsive-container-close {
	display: flex;
	top: 14px;
	right: 0;
}

.yash-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: 22px;
	font-weight: 700;
}

.yash-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 17px;
	font-weight: 500;
	padding: 2px 0 !important;
	color: var(--wp--preset--color--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.yash-hero {
		padding-block: 56px 64px;
	}

	.yash-hero::after {
		width: 320px;
		height: 320px;
		border-width: 32px;
		right: -140px;
		bottom: -160px;
	}

	.yash-stack {
		padding: 28px;
	}

	.yash-hero-card {
		max-width: none;
	}

	.yash-article-hero {
		padding-block: 40px 140px;
	}

	.yash-article-cover {
		margin-block-start: -110px;
	}
}

@media (max-width: 599px) {
	.yash-header-tools {
		order: 2;
		margin-left: auto;
	}

	.yash-nav {
		order: 3;
		flex-grow: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yash-card,
	.yash-hero-card,
	.yash-topic-card,
	.yash-related-card {
		transition: none;
	}
}

/* The topic label repeats the page title on a category archive. */
.category .yash-card .yash-topic {
	display: none;
}

/* Nord comments in Code Block Pro are below 3:1; lift them a little. */
.wp-block-kevinbatdorf-code-block-pro span[style*="#616E88"] {
	color: #A3ADBF !important;
}
