/*
 * SNRTech theme styles that theme.json presets cannot express.
 * Loaded on the front end and in the editor (add_editor_style).
 * Use only var(--wp--preset--…) values so Global Styles changes flow through.
 *
 * Sections are owned by task groups; edit only inside your own section.
 */

/* ==========================================================================
   1. Base (foundation)
   ========================================================================== */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

/* Latin-only fragments (wordmark, domain, phone numbers, code) stay LTR. */
[dir="ltr"],
.is-ltr {
	direction: ltr;
	unicode-bidi: isolate;
}

/* Focus ring: visible on dark and cream grounds. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--wp--preset--color--on-accent) 70%, transparent);
	border-radius: 1px;
}

/* Links on light grounds hover to the darker accent for contrast. */
:where(
	.has-cream-background-color,
	.has-cream-light-background-color,
	.has-white-background-color,
	.has-sand-background-color
) a:where(:not(.wp-element-button)):hover,
:where(
	.has-cream-background-color,
	.has-cream-light-background-color,
	.has-white-background-color,
	.has-sand-background-color
) a:where(:not(.wp-element-button)):focus-visible {
	color: var(--wp--preset--color--accent-ink);
}

/* Visually hidden helper (screen-reader text). */
.screen-reader-text:not(:focus):not(:active) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Section eyebrow label ("۰۱ — خدمات ما"). */
.snrtech-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

/* Mono label (WEB, 01, [placeholder] tags). */
.snrtech-mono {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
}

/* Arrow-link with a 2px underline ("همه مطالب", "بیشتر درباره ما"). */
.snrtech-arrow-link a,
a.snrtech-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 800;
	border-bottom: 2px solid currentColor;
}

.snrtech-arrow-link svg,
.wp-element-button svg {
	flex: none;
}

/* Inline arrow icon inside buttons. */
.wp-block-button__link:has(svg) {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

/* ==========================================================================
   2. Backgrounds: grid paper and placeholders (foundation)
   ========================================================================== */

/* Dark grid paper (page heroes, post header). */
.snrtech-grid-dark {
	background-image:
		linear-gradient(color-mix(in srgb, var(--wp--preset--color--line) 55%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--line) 55%, transparent) 1px, transparent 1px);
	background-size: 32px 32px;
}

/* Light grid paper on sand (image placeholders, map area). */
.snrtech-grid-light {
	background-color: var(--wp--preset--color--sand);
	background-image:
		linear-gradient(var(--wp--preset--color--line-light) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--line-light) 1px, transparent 1px);
	background-size: 32px 32px;
}

/* Grid paper on a dark card (featured post image fallback). */
.snrtech-grid-card {
	background-color: color-mix(in srgb, var(--wp--preset--color--surface) 88%, var(--wp--preset--color--contrast));
	background-image:
		linear-gradient(color-mix(in srgb, var(--wp--preset--color--surface) 78%, var(--wp--preset--color--contrast)) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--surface) 78%, var(--wp--preset--color--contrast)) 1px, transparent 1px);
	background-size: 28px 28px;
}

/* Centered mono placeholder label ("[تصویر شاخص]"). */
.snrtech-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.snrtech-placeholder-label {
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 12px;
	color: var(--wp--preset--color--ink-muted);
	background: var(--wp--preset--color--cream);
	padding: 6px 12px;
}

/* ==========================================================================
   3. Hairline grids (values, process, service extras) (foundation)
   ========================================================================== */

/* A grid whose 1px gaps draw hairlines: parent shows the line colour,
   children paint the ground. */
.snrtech-hairline-grid {
	gap: 1px !important;
	background: var(--wp--preset--color--line);
	border: 1px solid var(--wp--preset--color--line);
}

.snrtech-hairline-grid > * {
	margin: 0 !important;
	background: var(--wp--preset--color--base);
}

/* Responsive auto-fit grid helper: set --snrtech-min on the element. */
.snrtech-auto-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(var(--snrtech-min, 300px), 100%), 1fr)) !important;
}

/* ==========================================================================
   4. Header and navigation (group 3)
   ========================================================================== */

/* Skip link (added by core for block themes): on-brand when focused. */
body .skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--body-sm);
	padding: 12px 20px;
	border-radius: 2px;
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
	box-shadow: none;
}

.rtl .skip-link.screen-reader-text:focus {
	left: auto;
	right: 5px;
}

/* SNRTech wordmark: two accent rules around "SNR" (900) + "Tech" (200),
   then a 2px divider. Colour follows the paragraph text colour (accent). */
.snrtech-wordmark {
	position: relative;
	display: flex;
	align-items: baseline;
	flex-shrink: 0;
	margin: 0;
	padding: 7px 0 6px;
	border-top: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	font-size: 34px;
	font-weight: 200;
	line-height: 0.86;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.snrtech-wordmark strong {
	font-weight: 900;
	letter-spacing: -0.055em;
}

.snrtech-wordmark::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -18px;
	width: 2px;
	height: 36px;
	margin-top: -18px;
	background: currentColor;
}

.rtl .snrtech-wordmark::after {
	right: auto;
	left: -18px;
}

/* Large standalone wordmark (about teaser media): no divider. */
.snrtech-wordmark--large {
	padding: 0.2em 0 0.18em;
	border-top-width: 0.09em;
	border-bottom-width: 0.09em;
	font-size: clamp(56px, 9vw, 120px);
}

.snrtech-wordmark--large::after,
.rtl .snrtech-wordmark--large::after {
	content: none;
}

.snrtech-brand .wp-block-site-title {
	margin: 0;
}

.snrtech-header .snrtech-brand .wp-block-site-title {
	white-space: nowrap;
}

/* The whole wordmark group links home through the site-title link. */
.snrtech-header .snrtech-brand {
	position: relative;
}

.snrtech-header .snrtech-site-name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

@supports selector(:has(*)) {
	.snrtech-header .snrtech-site-name a:focus-visible {
		outline: none;
		box-shadow: none;
	}

	.snrtech-header .snrtech-brand:has(a:focus-visible) {
		outline: 2px solid var(--wp--preset--color--accent);
		outline-offset: 6px;
		border-radius: 1px;
	}
}

.snrtech-header__row {
	box-sizing: content-box;
	min-height: 56px;
}

/* Primary navigation. */
.snrtech-primary-nav .wp-block-navigation__container {
	row-gap: 4px;
}

.snrtech-primary-nav .wp-block-navigation-item__content {
	padding: 10px 0;
}

.snrtech-primary-nav .current-menu-item > .wp-block-navigation-item__content,
.snrtech-primary-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent);
}

.snrtech-primary-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--accent);
}

/* Menu toggle and close buttons: 44px touch targets. */
.snrtech-primary-nav .wp-block-navigation__responsive-container-open,
.snrtech-primary-nav .wp-block-navigation__responsive-container-close {
	padding: 10px;
	color: var(--wp--preset--color--contrast);
}

.snrtech-primary-nav .wp-block-navigation__responsive-container-open:hover,
.snrtech-primary-nav .wp-block-navigation__responsive-container-close:hover {
	color: var(--wp--preset--color--accent);
}

/* Mobile overlay menu. */
.snrtech-primary-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 16px clamp(16px, 4vw, 32px);
}

.snrtech-primary-nav .is-menu-open .wp-block-navigation__container {
	gap: 8px;
}

.snrtech-primary-nav .is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
}

.snrtech-primary-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

/* "شروع پروژه" outline button. */
.snrtech-header-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 22px;
	background-color: transparent;
	line-height: 1.4;
}

.snrtech-header-cta .wp-block-button__link:hover,
.snrtech-header-cta .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--accent);
	/* Beats the !important .has-accent-color preset class on the link. */
	color: var(--wp--preset--color--on-accent) !important;
}

@media (max-width: 600px) {
	.snrtech-header__row {
		column-gap: 16px !important;
	}

	.snrtech-header .snrtech-brand {
		gap: 26px;
	}

	.snrtech-header .snrtech-wordmark {
		font-size: 28px;
	}

	.snrtech-header .snrtech-wordmark::after {
		height: 30px;
		margin-top: -15px;
		right: -14px;
	}

	.rtl .snrtech-header .snrtech-wordmark::after {
		right: auto;
		left: -14px;
	}

	.snrtech-header .snrtech-site-name {
		font-size: var(--wp--preset--font-size--body-sm) !important;
	}
}

/* ==========================================================================
   5. Footer (group 3)
   ========================================================================== */

/* Four columns at full width; empty tracks collapse (auto-fit, not auto-fill). */
.snrtech-footer .snrtech-footer__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.snrtech-footer .snrtech-footer__heading {
	margin-block-end: 6px;
}

.snrtech-footer p {
	margin: 0;
}

.snrtech-footer .snrtech-domain {
	text-align: right;
}

/* Phone numbers keep their digit order inside RTL text. */
.snrtech-footer a[href^="tel:"] {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

.snrtech-footer__phone {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
}

/* Small bordered WhatsApp link. */
.snrtech-footer a[href*="wa.me/"] {
	display: inline-block;
	padding: 1px 8px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 30%, transparent);
	font-size: 12px;
	line-height: 1.8;
}

.snrtech-footer a[href*="wa.me/"]:hover {
	border-color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   6. Front-page sections (group 4)
   ========================================================================== */

/* Hero (animations and the showcase live in hero.css). */
.snrtech-hero {
	position: relative;
	overflow: hidden;
}

.snrtech-hero__grid {
	align-items: center;
}

.snrtech-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 500;
}

.snrtech-hero__eyebrow::before {
	content: "";
	flex: none;
	width: 40px;
	height: 2px;
	background: var(--wp--preset--color--accent);
}

.snrtech-hero h1 {
	line-height: 1.3;
	font-weight: 900;
	letter-spacing: -0.5px;
	text-wrap: balance;
}

.snrtech-hero h1 mark {
	position: relative;
	display: inline-block;
}

.snrtech-hero h1 mark::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	bottom: 0.08em;
	height: 0.12em;
	border-radius: 0.06em;
	background: var(--wp--preset--color--accent);
	opacity: 0.35;
	transform-origin: right;
	pointer-events: none;
}

.snrtech-hero__intro {
	max-width: 540px;
	line-height: 2;
	text-wrap: pretty;
}

.snrtech-hero__actions .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
}

/* Secondary "ghost" button: hairline border, light text. */
.wp-block-button.is-style-outline.snrtech-btn-ghost > .wp-block-button__link {
	padding: 14px 30px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 80%, var(--wp--preset--color--contrast));
	background: transparent;
	font-weight: 700;
}

.wp-block-button.is-style-outline.snrtech-btn-ghost > .wp-block-button__link:hover,
.wp-block-button.is-style-outline.snrtech-btn-ghost > .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	background: transparent;
}

/* Section headings shared by the front-page sections. */
.snrtech-section-head {
	max-width: 640px;
}

.snrtech-services h2,
.snrtech-process h2,
.snrtech-about-teaser h2,
.snrtech-cta h2 {
	text-wrap: balance;
}

/* Services. */
#services {
	scroll-margin-top: var(--wp-admin--admin-bar--height, 0px);
}

.snrtech-services__intro {
	max-width: 460px;
	text-wrap: pretty;
}

.snrtech-service-card__top {
	width: 100%;
}

.snrtech-icon,
.snrtech-icon svg {
	display: block;
}

.snrtech-list-lines {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--sand);
}

.snrtech-list-lines > li {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--sand);
	font-weight: 500;
}

.snrtech-service-card.is-dark .snrtech-list-lines,
.snrtech-service-card.is-dark .snrtech-list-lines > li {
	border-color: color-mix(in srgb, var(--wp--preset--color--contrast) 12%, var(--wp--preset--color--ink));
}

.snrtech-services__points {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)) !important;
}

.snrtech-services__point {
	padding-top: var(--wp--preset--spacing--50);
	padding-inline-end: var(--wp--preset--spacing--50);
}

/* Process: numbered steps in a hairline grid (Persian numerals). */
.snrtech-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: snrtech-step;
}

.snrtech-steps > li {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 36px 32px;
	counter-increment: snrtech-step;
	font-size: var(--wp--preset--font-size--body-sm);
	color: var(--wp--preset--color--muted);
}

.snrtech-steps > li::before {
	content: counter(snrtech-step, persian);
	font-size: 44px;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

.snrtech-steps > li strong {
	display: block;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast);
}

/* About teaser. */
.snrtech-about-teaser__grid {
	align-items: center;
}

.snrtech-stat__value {
	margin: 0;
}

/* Latest posts. */
.snrtech-post-meta > * {
	margin: 0;
}

.snrtech-post-meta a {
	color: inherit;
}

/* Featured-image fallback (inc/front-page.php), shared by every post grid:
   <div class="wp-block-post-featured-image snrtech-thumb snrtech-thumb--empty" aria-hidden="true" style="aspect-ratio:…"> */
.snrtech-thumb {
	margin: 0;
}

.snrtech-thumb--empty {
	width: 100%;
	background: var(--wp--preset--color--sand);
}

/* CTA band. */
.snrtech-cta__text {
	max-width: 720px;
}

.snrtech-cta__text > * {
	margin: 0;
}

.snrtech-btn-lg > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 58px;
	padding-inline: 34px;
}

/* ==========================================================================
   7. Theme blocks, chips, pagination, featured post (group 5)
   ========================================================================== */

/* Breadcrumbs (snrtech/breadcrumbs). */
.wp-block-snrtech-breadcrumbs {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.8;
	color: var(--wp--preset--color--muted);
}

.wp-block-snrtech-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-snrtech-breadcrumbs__item {
	display: inline-flex;
	gap: 10px;
	margin: 0;
}

.wp-block-snrtech-breadcrumbs a {
	color: var(--wp--preset--color--muted);
}

.wp-block-snrtech-breadcrumbs a:hover,
.wp-block-snrtech-breadcrumbs a:focus-visible {
	color: var(--wp--preset--color--accent);
}

.wp-block-snrtech-breadcrumbs__current {
	color: var(--wp--preset--color--contrast);
}

/* On light grounds. */
:where(.has-cream-background-color, .has-cream-light-background-color, .has-white-background-color) .wp-block-snrtech-breadcrumbs,
:where(.has-cream-background-color, .has-cream-light-background-color, .has-white-background-color) .wp-block-snrtech-breadcrumbs a {
	color: var(--wp--preset--color--ink-muted);
}

:where(.has-cream-background-color, .has-cream-light-background-color, .has-white-background-color) .wp-block-snrtech-breadcrumbs__current {
	color: var(--wp--preset--color--ink);
}

/* Copy link (snrtech/copy-link). */
.wp-block-snrtech-copy-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.wp-block-snrtech-copy-link__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.wp-block-snrtech-copy-link__button:hover {
	color: var(--wp--preset--color--accent-ink);
}

.wp-block-snrtech-copy-link__status {
	color: var(--wp--preset--color--accent-ink);
}

.wp-block-snrtech-copy-link__status:empty {
	display: none;
}

/* Category chips: core/categories, block style "chips". */
.wp-block-categories.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-categories.is-style-chips .cat-item {
	margin: 0;
}

.wp-block-categories.is-style-chips .cat-item a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--line-light);
	border-radius: 2px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.4;
}

.wp-block-categories.is-style-chips .cat-item a:hover,
.wp-block-categories.is-style-chips .cat-item a:focus-visible {
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--accent-ink);
}

.wp-block-categories.is-style-chips .current-cat > a,
.wp-block-categories.is-style-chips .current-cat > a:hover {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}

/* Pagination (core/query-pagination with class snrtech-pagination). */
.wp-block-query-pagination.snrtech-pagination {
	gap: 8px;
	margin-top: var(--wp--preset--spacing--60);
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--line-light);
}

.snrtech-pagination .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.snrtech-pagination .page-numbers,
.wp-block-query-pagination.snrtech-pagination > .wp-block-query-pagination-previous,
.wp-block-query-pagination.snrtech-pagination > .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 46px;
	min-height: 46px;
	margin: 0;
	border: 1px solid var(--wp--preset--color--line-light);
	color: var(--wp--preset--color--ink);
	font-weight: 700;
	line-height: 1;
}

.wp-block-query-pagination.snrtech-pagination > .wp-block-query-pagination-previous,
.wp-block-query-pagination.snrtech-pagination > .wp-block-query-pagination-next {
	padding: 0 18px;
}

.snrtech-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
}

.snrtech-pagination .page-numbers.dots {
	min-width: 24px;
	border-color: transparent;
}

.snrtech-pagination .wp-block-query-pagination-next::after,
.snrtech-pagination .wp-block-query-pagination-previous::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.snrtech-pagination .wp-block-query-pagination-previous::before {
	transform: scaleX(-1);
}

/* Featured (sticky) post card on the blog index. */
.snrtech-featured .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.snrtech-featured__card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	margin: 0;
}

.snrtech-featured__media {
	position: relative;
	min-height: 320px;
	margin: 0;
}

.snrtech-featured__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.snrtech-featured__media.snrtech-thumb--empty {
	aspect-ratio: auto !important;
	background-color: color-mix(in srgb, var(--wp--preset--color--surface) 88%, var(--wp--preset--color--contrast));
	background-image:
		linear-gradient(color-mix(in srgb, var(--wp--preset--color--surface) 78%, var(--wp--preset--color--contrast)) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--surface) 78%, var(--wp--preset--color--contrast)) 1px, transparent 1px);
	background-size: 28px 28px;
}

.snrtech-featured__body > * {
	margin: 0;
}

.snrtech-featured__label {
	font-weight: 700;
}

.snrtech-featured__title {
	margin: 0;
	font-weight: 900;
	line-height: 1.55;
}

.snrtech-featured__title a {
	color: inherit;
}

.snrtech-featured .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.wp-block-read-more.snrtech-read-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	min-height: 44px;
	color: var(--wp--preset--color--accent);
	font-weight: 800;
}

.wp-block-read-more.snrtech-read-more::after {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-read-more.snrtech-read-more:hover {
	color: var(--wp--preset--color--contrast);
}


/* ==========================================================================
   8. Blog listing, sidebar, single post, comments, .prose (group 6)
   ========================================================================== */

/* Listing hero (blog index, archives, search). */
.snrtech-listing-hero__text {
	flex: 1 1 360px;
	max-width: 640px;
}

.snrtech-listing-hero__text > *,
.snrtech-listing-hero .wp-block-query-title,
.snrtech-not-found .wp-block-group > * {
	margin: 0;
}

/* Search form (core/search, class snrtech-search). */
.wp-block-search.snrtech-search {
	width: 100%;
	max-width: 420px;
	margin: 0;
}

.snrtech-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--line) 75%, var(--wp--preset--color--muted));
	border-radius: 0;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, var(--wp--preset--color--base));
}

.snrtech-search .wp-block-search__input {
	min-width: 0;
	min-height: 54px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--body-sm);
}

.snrtech-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.snrtech-search .wp-block-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

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

.snrtech-search--light .wp-block-search__inside-wrapper {
	border-color: var(--wp--preset--color--line-light);
	background: var(--wp--preset--color--white);
}

.snrtech-search--light .wp-block-search__input {
	color: var(--wp--preset--color--ink);
}

.snrtech-search--light .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--ink-muted);
}

/* Listing body: main column and sidebar side by side, sidebar below on narrow screens. */
.snrtech-listing {
	align-items: flex-start;
}

.snrtech-listing__main {
	flex: 999 1 560px;
	min-width: 0;
}

.snrtech-listing > .snrtech-sidebar {
	flex: 1 1 280px;
	min-width: 0;
}

.snrtech-posts > * {
	margin-block: 0;
}

/* Post cards (blog grid and related posts). */
.wp-block-post-template.snrtech-post-grid {
	gap: 44px 32px;
}

.snrtech-card > *,
.snrtech-card__meta > * {
	margin: 0;
}

.snrtech-card__meta > * + *::before {
	content: "·";
	content: "·" / "";
	margin-inline-end: 12px;
}

.snrtech-card__cat {
	font-weight: 700;
}

.snrtech-card__cat a,
.snrtech-card__title a {
	color: inherit;
}

.snrtech-card__title {
	font-weight: 800;
	line-height: 1.65;
}

.snrtech-card__excerpt .wp-block-post-excerpt__excerpt,
.snrtech-no-results > * {
	margin: 0;
}

/* Sidebar (parts/sidebar.html). */
.snrtech-sidebar {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.snrtech-sidebar > * {
	margin: 0;
}

.snrtech-sidebar__title {
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wp--preset--color--ink);
	font-weight: 800;
	line-height: 1.6;
}

.snrtech-sidebar__cats {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snrtech-sidebar__cats .cat-item a {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
}

.snrtech-popular__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: snrtech-popular;
}

.snrtech-popular__list > li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	counter-increment: snrtech-popular;
}

.snrtech-popular__list > li::before {
	content: counter(snrtech-popular, persian);
	flex: none;
	color: var(--wp--preset--color--accent-ink);
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
}

.snrtech-popular__title {
	margin: 0;
	font-weight: 700;
	line-height: 1.7;
}

.snrtech-popular__title a {
	color: var(--wp--preset--color--ink);
}

.wp-block-tag-cloud.snrtech-tags,
.wp-block-post-terms.snrtech-tag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.wp-block-tag-cloud.snrtech-tags a,
.snrtech-tag-chips a {
	display: inline-block;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--wp--preset--color--line-light);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small) !important;
	line-height: 1.8;
}

.snrtech-tag-chips .wp-block-post-terms__separator,
.snrtech-pill .wp-block-post-terms__separator {
	display: none;
}

.snrtech-sidebar-contact > * {
	margin: 0;
}

.snrtech-sidebar-contact .wp-block-heading {
	line-height: 1.6;
}

.snrtech-sidebar-contact .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding-block: 0;
}

/* On single posts the sidebar is a full-width band below related posts. */
.snrtech-sidebar-band .snrtech-sidebar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	align-items: start;
	gap: 40px 32px;
}

/* Single post header. */
.snrtech-post-header .wp-block-group > * {
	margin: 0;
}

.wp-block-post-terms.snrtech-pill {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.snrtech-pill a {
	padding: 4px 14px;
	border: 1px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
}

.snrtech-pill a:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

.snrtech-post-header__title {
	line-height: 1.45;
	text-wrap: balance;
}

.snrtech-post-header__meta {
	align-items: center;
}

.snrtech-post-header__meta > * {
	margin: 0;
}

.wp-block-post-author.snrtech-post-header__author {
	align-items: center;
	gap: 12px;
}

.wp-block-post-author .wp-block-post-author__avatar {
	margin: 0;
}

.wp-block-post-author .wp-block-post-author__avatar img {
	display: block;
	border-radius: 50%;
	background: var(--wp--preset--color--line);
}

.snrtech-post-header__author .wp-block-post-author__name {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

/* Single post body. */
.snrtech-single__media {
	position: relative;
	margin-top: -100px !important;
	border: 1px solid var(--wp--preset--color--line-light);
}

.snrtech-single__media.snrtech-thumb--empty {
	background-color: var(--wp--preset--color--sand);
	background-image:
		linear-gradient(var(--wp--preset--color--line-light) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--line-light) 1px, transparent 1px);
	background-size: 32px 32px;
}

/* Long-form content. */
.prose {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: 40px;
	color: color-mix(in srgb, var(--wp--preset--color--ink) 88%, var(--wp--preset--color--ink-muted));
	font-size: 18px;
	line-height: 2.1;
}

.prose > p:first-child {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 2;
}

.prose :where(h2, h3, h4) {
	color: var(--wp--preset--color--ink);
	line-height: 1.5;
}

.prose > :where(h2, h3, h4) {
	margin-block-start: 48px;
}

.prose h2 {
	font-size: var(--wp--preset--font-size--heading-sm);
	font-weight: 900;
}

.prose h3 {
	font-size: var(--wp--preset--font-size--xx-large);
}

.prose :where(ul, ol) {
	padding-inline-start: 24px;
}

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

.prose a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

.prose a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--ink);
}

.prose .wp-block-quote {
	margin-block: 40px;
	padding: 8px 0;
	padding-inline-start: 28px;
	border: 0;
	border-inline-start: 3px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1.8;
}

.prose .wp-block-quote > * {
	margin: 0;
}

.prose .wp-block-quote cite {
	display: block;
	margin-top: 12px;
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--body-sm);
	font-style: normal;
	font-weight: 500;
}

/* Code stays left-to-right and scrolls inside its own box. */
.prose pre,
.prose .wp-block-code {
	max-width: 100%;
	overflow-x: auto;
	direction: ltr;
	text-align: left;
	border: 0;
	border-radius: 0;
}

.prose pre code,
.prose .wp-block-code code {
	display: block;
	direction: ltr;
	white-space: pre;
	overflow-wrap: normal;
	word-break: normal;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
}

.prose :where(p, li) code {
	padding: 2px 6px;
	background: var(--wp--preset--color--sand);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: 0.85em;
	direction: ltr;
	unicode-bidi: isolate;
}

/* Tags + copy link row and author box. */
.snrtech-single__after {
	padding-bottom: var(--wp--preset--spacing--70);
}

.snrtech-share-row {
	align-items: center;
	padding: 24px 0;
	border-top: 1px solid var(--wp--preset--color--line-light);
	border-bottom: 1px solid var(--wp--preset--color--line-light);
}

.snrtech-share-row > * {
	margin: 0;
}

.wp-block-post-author.snrtech-author-box {
	align-items: flex-start;
	gap: 22px;
	padding: 28px;
	border: 1px solid var(--wp--preset--color--line-light);
	background: var(--wp--preset--color--white);
}

.snrtech-author-box .wp-block-post-author__content {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.snrtech-author-box .wp-block-post-author__content > * {
	margin: 0;
}

.snrtech-author-box .wp-block-post-author__byline {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--x-small);
}

.snrtech-author-box .wp-block-post-author__name {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 800;
}

.snrtech-author-box .wp-block-post-author__bio {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--body-sm);
}

/* Comments. */
.wp-block-comments.snrtech-comments {
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

.snrtech-comments > * {
	max-width: 760px;
	margin-inline: auto;
}

.snrtech-comments > * + * {
	margin-block-start: 36px;
}

.snrtech-comments__title {
	margin-block: 0;
}

.snrtech-comments .wp-block-comment-template,
.snrtech-comments .wp-block-comment-template ol {
	margin-block: 0;
	padding: 0;
	list-style: none;
}

/* Keep the list in the same centred 760px column as the title and form. */
.snrtech-comments > .wp-block-comment-template {
	margin-inline: auto;
	margin-block-start: 28px;
}

.snrtech-comments .wp-block-comment-template li {
	margin: 0;
}

.snrtech-comments .wp-block-comment-template li + li,
.snrtech-comments .wp-block-comment-template .children {
	margin-top: 28px;
}

.snrtech-comments .wp-block-comment-template .children {
	padding-inline-start: 32px;
}

.snrtech-comment {
	padding-bottom: 28px;
	border-bottom: 1px solid var(--wp--preset--color--sand);
}

.snrtech-comment > *,
.snrtech-comment__body > *,
.snrtech-comment__body > .wp-block-group > * {
	margin: 0;
}

.snrtech-comment__avatar {
	flex: none;
}

.snrtech-comment__avatar img {
	display: block;
	border-radius: 50%;
	background: var(--wp--preset--color--sand);
}

.snrtech-comment__author {
	font-weight: 800;
}

.snrtech-comment__author a {
	color: inherit;
}

.snrtech-comment__content p {
	margin: 0;
	color: var(--wp--preset--color--ink);
}

.snrtech-comment__reply a {
	color: var(--wp--preset--color--accent-ink);
	font-weight: 700;
}

.snrtech-comment-form .comment-reply-title {
	margin: 0 0 18px;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 800;
}

.snrtech-comment-form .comment-reply-title small {
	margin-inline-start: 12px;
	font-size: var(--wp--preset--font-size--small);
}

.snrtech-comment-form form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: 18px;
}

.snrtech-comment-form form > * {
	grid-column: 1 / -1;
	margin: 0;
}

.snrtech-comment-form form > .comment-form-author,
.snrtech-comment-form form > .comment-form-email {
	grid-column: auto;
}

.snrtech-comment-form :where(.comment-form-author, .comment-form-email, .comment-form-comment) {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.snrtech-comment-form label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.snrtech-comment-form .comment-notes,
.snrtech-comment-form .logged-in-as {
	color: var(--wp--preset--color--ink-muted);
	font-size: var(--wp--preset--font-size--small);
}

.snrtech-comment-form .logged-in-as a {
	color: var(--wp--preset--color--accent-ink);
}

.snrtech-comment-form input[type="text"],
.snrtech-comment-form input[type="email"],
.snrtech-comment-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--line-light);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--body-sm);
}

.snrtech-comment-form textarea {
	padding: 14px 16px;
	line-height: 1.9;
	resize: vertical;
}

.snrtech-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--wp--preset--font-size--small);
}

.snrtech-comment-form .comment-form-cookies-consent label {
	font-weight: 400;
}

.snrtech-comment-form .comment-form-cookies-consent input {
	margin-top: 6px;
}

.snrtech-comment-form .form-submit .wp-element-button {
	min-height: 52px;
	padding: 0 30px;
	border: 0;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--cream);
	cursor: pointer;
}

.snrtech-comment-form .form-submit .wp-element-button:hover,
.snrtech-comment-form .form-submit .wp-element-button:focus-visible {
	background: var(--wp--preset--color--accent-ink);
	color: var(--wp--preset--color--white);
}

/* Related posts header. */
.snrtech-related .wp-block-heading {
	margin: 0;
}


/* ==========================================================================
   9. Company pages: about, contact, page hero (group 7)
   ========================================================================== */

/* Page hero: optional intro line (page excerpt or template paragraph). */
.snrtech-page-intro {
	max-width: 680px;
	margin: 0;
}

.snrtech-page-intro .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Page content (post-content) on cream: readable column. Renders nothing
   when the page has no content, so About/Contact show only their sections. */
.snrtech-page-body {
	padding-top: var(--wp--preset--spacing--80);
	padding-bottom: var(--wp--preset--spacing--90);
	font-size: 18px;
	line-height: 2.1;
}

.snrtech-page-body h2 {
	margin-top: 1.4em;
	font-size: var(--wp--preset--font-size--heading-sm);
	line-height: 1.5;
}

.snrtech-page-body h3 {
	margin-top: 1.2em;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.6;
}

.snrtech-page-body :where(ul, ol) {
	padding-inline-start: 24px;
}

.snrtech-page-body :where(li + li) {
	margin-top: 8px;
}

.snrtech-page-body a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* About: numbers grid is auto-fit (never an empty fifth column). */
.snrtech-stats-grid {
	--snrtech-min: 220px;
}

/* About: team photo. A Cover block, so editors can "Add media"; the sand
   overlay shows only while no photo is set. */
.wp-block-cover.snrtech-team-photo {
	width: 100%;
	aspect-ratio: 4 / 5;
	min-height: 0;
	padding: 16px;
}

.wp-block-cover.snrtech-team-photo:has(> .wp-block-cover__image-background, > .wp-block-cover__video-background) > .wp-block-cover__background.has-background-dim {
	opacity: 0;
}

/* About: call to action band. */
.snrtech-cta-text {
	max-width: 720px;
}

.snrtech-cta-button .wp-block-button__link {
	min-height: 58px;
}

/* Contact: info cards. */
.snrtech-contact-icon {
	display: block;
	flex: none;
	color: var(--wp--preset--color--accent-ink);
}

.snrtech-contact-phones a {
	color: inherit;
}

.snrtech-contact-card .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

/* Contact: map area (420px, sand grid paper, 40px squares). An Embed or
   Custom HTML iframe placed here fills the full width at 420px tall. */
/* Contact split: info cards beside the map; the map fills its column. */
.snrtech-contact-map {
	display: flex;
}

.snrtech-contact-map iframe {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 420px;
	border: 1px solid var(--wp--preset--color--line-light);
}

.snrtech-map {
	background-size: 40px 40px;
	padding: 0;
}

.snrtech-map > :where(iframe, figure, .wp-block-embed, .wp-block-html, div:not(.snrtech-placeholder-label)) {
	flex: 1 1 100%;
	align-self: stretch;
	width: 100%;
	max-width: none;
	margin: 0;
}

.snrtech-map iframe {
	display: block;
	width: 100% !important;
	height: 420px;
	border: 0;
}

.snrtech-map .wp-block-embed__wrapper::before {
	content: none;
}

.snrtech-map .wp-block-embed__wrapper iframe {
	position: static;
}

/* ==========================================================================
   10. Reduced motion (foundation)
   ========================================================================== */

@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;
	}
}
