/**
 * Modern Dark Tech — main stylesheet.
 */

:root {
	--bg-main: #0b0b0f;
	--bg-card: #15151c;
	--bg-card-hover: #1a1a24;
	--border-color: rgba(255, 255, 255, 0.08);
	--border-strong: rgba(255, 255, 255, 0.14);
	--text-main: #ffffff;
	--text-muted: #a1a1aa;
	--accent-purple: #c026d3;
	--accent-purple-hover: #d946ef;
	--accent-green: #10b981;
	--accent-green-hover: #34d399;
	--focus: #c026d3;
	--header-bg: rgba(11, 11, 15, 0.82);
	--header-bg-fallback: #101016;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-xl: 24px;
	--container-width: 1200px;
	--transition-fast: 150ms ease;
	--transition-normal: 250ms ease;
	--header-height: 72px;
	--space: 1rem;
	--font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html,
body {
	background: var(--bg-main);
	color: var(--text-main);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.65;
	min-height: 100dvh;
	overflow-x: clip;
}

body.is-nav-open {
	overflow: hidden;
}

img,
video,
svg,
iframe {
	max-width: 100%;
	height: auto;
}

img,
video {
	display: block;
}

figure {
	margin: 0;
}

a {
	color: inherit;
	text-decoration-color: rgba(192, 38, 211, 0.45);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
	color: var(--text-main);
	text-decoration-color: var(--accent-purple);
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--accent-purple);
	outline-offset: 3px;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 100000;
	background: var(--bg-card);
	color: var(--text-main);
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.15;
	letter-spacing: -0.03em;
	text-wrap: balance;
	margin: 0 0 0.6em;
	color: var(--text-main);
}

h1,
.hero-title,
.page-title,
.article-title {
	font-size: clamp(2rem, 5vw, 4rem);
}

h2,
.section-title {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-inline-start: 1.2em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

.container {
	width: min(100% - 32px, var(--container-width));
	margin-inline: auto;
}

.site-main {
	padding-block: 2rem 4rem;
}

.section {
	padding-block: 2.5rem;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.eyebrow {
	margin: 0 0 0.5rem;
	color: var(--accent-green);
	font-size: 0.8125rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.card,
.post-card,
.widget,
.toc,
.newsletter,
.topic-card,
.search-form,
.comment-body,
.hero-stat {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.7rem 1.15rem;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
	font-weight: 650;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform var(--transition-fast),
		background-color var(--transition-fast),
		border-color var(--transition-fast),
		filter var(--transition-fast);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn--primary {
	background: var(--accent-purple);
	color: #fff;
}

.btn--primary:hover {
	background: var(--accent-purple-hover);
	filter: brightness(1.04);
}

.btn--secondary {
	background: transparent;
	color: var(--accent-green);
	border-color: color-mix(in srgb, var(--accent-green) 55%, transparent);
}

.btn--secondary:hover {
	background: color-mix(in srgb, var(--accent-green) 10%, transparent);
	border-color: var(--accent-green);
}

.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.5;
	pointer-events: none;
	transform: none;
}

.badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 0.2rem 0.55rem;
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--accent-green) 14%, transparent);
	color: var(--accent-green);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.badge--muted {
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-muted);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 550;
}

.icon {
	flex-shrink: 0;
	display: block;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	min-height: var(--header-height);
	background: var(--header-bg-fallback);
	border-bottom: 1px solid var(--border-color);
}

@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
	.site-header {
		background: var(--header-bg);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
	}
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header-height);
}

.brand,
.brand-text,
.custom-logo-link {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
}

.custom-logo {
	max-height: 36px;
	width: auto;
}

.site-title {
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: -0.03em;
}

.site-description {
	display: none;
	color: var(--text-muted);
	font-size: 0.8rem;
	font-weight: 450;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	min-width: 44px;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	background: var(--bg-card);
	color: var(--text-main);
	cursor: pointer;
}

.nav-toggle__label {
	font-size: 0.875rem;
	font-weight: 650;
}

.header-panel {
	display: none;
	position: fixed;
	inset: var(--header-height) 0 0 0;
	background: var(--bg-main);
	padding: 1.25rem 1rem 2rem;
	overflow: auto;
	z-index: 40;
}

.header-panel.is-open {
	display: block;
}

.primary-nav .menu {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}

.primary-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0.4rem 0.7rem;
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--text-muted);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--text-main);
	background: color-mix(in srgb, var(--accent-purple) 12%, transparent);
}

.primary-nav .sub-menu {
	list-style: none;
	margin: 0.15rem 0 0.4rem;
	padding-inline-start: 0.85rem;
}

.header-tools {
	display: grid;
	gap: 0.85rem;
}

.header-cta {
	justify-self: start;
}

.search-form {
	padding: 0.85rem;
}

.search-form__label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.search-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.search-form__input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	background: var(--bg-card);
	color: var(--text-main);
	caret-color: var(--accent-purple);
}

.search-form__input {
	flex: 1 1 160px;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

::placeholder {
	color: var(--text-muted);
	opacity: 1;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	border-color: var(--accent-purple);
	outline: 2px solid var(--accent-purple);
	outline-offset: 1px;
}

.hero {
	padding-block: 2.2rem 1rem;
}

.hero-inner {
	display: grid;
	gap: 2rem;
}

.hero-title {
	max-width: 16ch;
	margin-bottom: 0.7rem;
}

.hero-desc {
	max-width: 46ch;
	color: var(--text-muted);
	font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.4rem;
}

.hero-stats {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.85rem;
	padding: 0;
	margin: 0;
}

.hero-stat {
	padding: 1rem 1.1rem;
}

.hero-stat__value {
	display: block;
	font-size: 1.6rem;
	font-weight: 750;
	letter-spacing: -0.04em;
}

.hero-stat__label {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 24px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition:
		transform var(--transition-normal),
		background-color var(--transition-normal),
		border-color var(--transition-normal);
}

.post-card:hover {
	transform: translateY(-4px);
	background: var(--bg-card-hover);
	border-color: var(--border-strong);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #101018;
	text-decoration: none;
}

.post-card__image,
.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-normal);
}

.post-card:hover .post-card__image,
.post-card:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__media--placeholder {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(192, 38, 211, 0.16), transparent 55%),
		var(--bg-card-hover);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.15rem 1.15rem 1.25rem;
	flex: 1;
}

.post-card__title {
	font-size: 1.25rem;
	margin: 0;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__excerpt,
.post-card__meta {
	color: var(--text-muted);
	margin: 0;
}

.post-card__meta,
.post-card__excerpt {
	font-size: 0.9rem;
}

.post-card__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--accent-green);
	font-weight: 650;
	text-decoration: none;
}

.topic-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 1rem;
}

.topic-card {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.2rem;
	text-decoration: none;
	transition:
		transform var(--transition-normal),
		background-color var(--transition-normal),
		border-color var(--transition-normal);
}

.topic-card:hover {
	transform: translateY(-4px);
	background: var(--bg-card-hover);
	border-color: var(--border-strong);
}

.topic-card__text {
	color: var(--text-muted);
	margin: 0;
	font-size: 0.95rem;
}

.topic-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: auto;
	color: var(--accent-green);
	font-weight: 650;
}

.layout-with-sidebar,
.layout-page {
	display: grid;
	gap: 2rem;
}

.page-header,
.archive-header,
.search-header {
	margin-bottom: 1.75rem;
}

.archive-header__description,
.search-header__count {
	color: var(--text-muted);
}

.breadcrumbs {
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs__item:not(:last-child)::after {
	content: "/";
	margin-inline-start: 0.35rem;
	opacity: 0.55;
}

.breadcrumbs a {
	text-decoration: none;
}

.article,
.page-article {
	max-width: 760px;
}

.layout-with-sidebar--article .content-area .article {
	max-width: 760px;
}

.article-title {
	margin-bottom: 0.8rem;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.2rem;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.article-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.article-figure {
	margin: 1.5rem 0 1.75rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--border-color);
}

.article-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.article-figure figcaption {
	padding: 0.7rem 1rem;
	color: var(--text-muted);
	font-size: 0.875rem;
	background: var(--bg-card);
}

.article-content {
	font-size: clamp(1.05rem, 0.6vw + 1rem, 1.2rem);
	line-height: 1.75;
}

.article-content > *:first-child {
	margin-top: 0;
}

.article-content h2,
.article-content h3 {
	margin-top: 1.6em;
}

.article-content a {
	color: #f0abfc;
}

.article-content img,
.article-content .wp-block-image img,
.article-content iframe,
.article-content table {
	max-width: 100%;
}

.article-content pre,
.article-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.article-content code {
	font-size: 0.9em;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 0.1em 0.35em;
}

.article-content pre {
	overflow-x: auto;
	padding: 1rem 1.1rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
}

.article-content pre code {
	border: 0;
	padding: 0;
	background: transparent;
}

.article-content blockquote {
	margin: 1.4em 0;
	padding: 0.2em 0 0.2em 1em;
	border-inline-start: 2px solid var(--accent-purple);
	color: var(--text-muted);
}

.article-content table {
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
	width: 100%;
}

.article-content th,
.article-content td {
	border: 1px solid var(--border-color);
	padding: 0.55rem 0.7rem;
	text-align: start;
}

.article-content .alignleft {
	float: inline-start;
	margin-inline-end: 1.25rem;
}

.article-content .alignright {
	float: inline-end;
	margin-inline-start: 1.25rem;
}

.article-content .aligncenter {
	margin-inline: auto;
}

.wp-block-embed,
.wp-block-image,
.wp-block-gallery {
	margin: 1.4em 0;
}

.toc {
	padding: 1.1rem 1.2rem;
	margin: 0 0 1.75rem;
}

.toc__title {
	font-size: 1rem;
	margin-bottom: 0.7rem;
}

.toc__list {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.toc__item--h3 {
	margin-inline-start: 0.7rem;
}

.toc a {
	text-decoration: none;
	color: var(--text-muted);
}

.toc a:hover {
	color: var(--text-main);
}

.article-footer,
.share,
.related {
	margin-top: 2.5rem;
}

.tag-list,
.share__list,
.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0.6rem 0 0;
	padding: 0;
}

.share__label,
.article-tags__label,
.widget-title,
.footer-heading {
	margin: 0 0 0.7rem;
	font-size: 0.92rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.share__btn,
.social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	background: var(--bg-card);
	text-decoration: none;
	color: var(--text-muted);
}

.share__btn:hover,
.social-link:hover {
	border-color: var(--border-strong);
	color: var(--text-main);
	background: var(--bg-card-hover);
}

.sidebar {
	display: grid;
	gap: 1rem;
	align-content: start;
}

.widget {
	padding: 1.15rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.widget a {
	text-decoration: none;
	color: var(--text-muted);
}

.widget a:hover {
	color: var(--text-main);
}

.newsletter {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.2rem;
	padding: 1.5rem;
}

.newsletter__text {
	color: var(--text-muted);
	margin: 0;
	max-width: 46ch;
}

.comments-area {
	margin-top: 3rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.comment-list .children {
	list-style: none;
	margin: 1rem 0 0;
	padding-inline-start: 1rem;
	display: grid;
	gap: 1rem;
}

.comment-body {
	padding: 1rem 1.1rem;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 0.7rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.comment-avatar {
	border-radius: 50%;
}

.comment-metadata,
.comment-awaiting-moderation,
.no-comments {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

.comment-form p {
	margin-bottom: 0.9rem;
}

.comment-form .required {
	color: var(--accent-purple);
}

.navigation.pagination,
.nav-links,
.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
}

.page-numbers {
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	text-decoration: none;
	color: var(--text-muted);
	background: var(--bg-card);
}

.page-numbers.current,
.page-numbers:hover {
	color: var(--text-main);
	border-color: var(--accent-purple);
}

.empty-state,
.error-404 {
	max-width: 40rem;
	margin-inline: auto;
	text-align: center;
	padding: 3rem 0;
}

.error-404__code {
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	margin: 0;
	color: color-mix(in srgb, var(--accent-purple) 80%, white);
}

.error-404__text,
.empty-state__text {
	color: var(--text-muted);
}

.error-404__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.site-footer {
	border-top: 1px solid var(--border-color);
	padding-block: 3rem 2rem;
	background: #09090d;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 2rem;
}

.footer-brand__text,
.footer-copy {
	color: var(--text-muted);
}

.menu--footer {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.menu--footer a {
	text-decoration: none;
	color: var(--text-muted);
}

.menu--footer a:hover {
	color: var(--text-main);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border-color);
}

.footer-top {
	color: var(--text-muted);
	text-decoration: none;
}

.ad-slot {
	margin: 1rem auto;
	width: min(100% - 32px, var(--container-width));
}

.ad-slot--in_content,
.ad-slot--sidebar {
	width: 100%;
}

.ad-slot__inner {
	min-height: 90px;
	display: grid;
	place-items: center;
	border: 1px dashed var(--border-color);
	border-radius: var(--radius-md);
	background: var(--bg-card);
	overflow: hidden;
}

.ad-slot--sidebar .ad-slot__inner {
	min-height: 250px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.wp-block-button__link {
	background: var(--accent-purple);
	color: #fff;
	border-radius: var(--radius-md);
	text-decoration: none;
}

.has-accent-purple-color { color: var(--accent-purple); }
.has-accent-green-color { color: var(--accent-green); }
.has-text-main-color { color: var(--text-main); }
.has-text-muted-color { color: var(--text-muted); }
.has-bg-main-background-color { background: var(--bg-main); }
.has-bg-card-background-color { background: var(--bg-card); }

@media (min-width: 720px) {
	.site-description {
		display: block;
	}

	.hero {
		padding-block: 4rem 2rem;
	}

	.comment-list .children {
		padding-inline-start: 2rem;
	}
}

@media (min-width: 900px) {
	.nav-toggle {
		display: none;
	}

	.header-panel,
	.header-panel.is-open {
		display: flex;
		position: static;
		inset: auto;
		background: transparent;
		padding: 0;
		overflow: visible;
		align-items: center;
		gap: 1.25rem;
		flex: 1;
	}

	.primary-nav {
		margin-inline-start: auto;
	}

	.primary-nav .menu {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.15rem;
		margin: 0;
	}

	.primary-nav .sub-menu {
		position: absolute;
		min-width: 200px;
		padding: 0.45rem;
		background: var(--bg-card);
		border: 1px solid var(--border-color);
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-soft);
		display: none;
	}

	.primary-nav .menu-item-has-children {
		position: relative;
	}

	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu {
		display: grid;
	}

	.header-tools {
		display: flex;
		align-items: center;
		gap: 0.75rem;
	}

	.header-tools .search-form {
		padding: 0;
		background: transparent;
		border: 0;
	}

	.header-tools .search-form__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}

	.header-tools .search-form__row {
		flex-wrap: nowrap;
	}

	.header-tools .search-form__input {
		width: 190px;
		flex: 0 1 190px;
	}

	.header-tools .search-form__submit span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
	}

	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: start;
	}

	.hero-inner {
		grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
		align-items: end;
	}
}

@media (max-width: 360px) {
	.container {
		width: min(100% - 24px, var(--container-width));
	}

	.btn {
		width: 100%;
	}

	.hero-actions .btn,
	.error-404__actions .btn {
		width: auto;
		flex: 1 1 calc(50% - 0.75rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.post-card:hover,
	.topic-card:hover,
	.btn:hover {
		transform: none;
	}
}
