:root {
	--tec-paper: #f5f7fb;
	--tec-white: #fff;
	--tec-text: #131d30;
	--tec-muted: #4d5b70;
	--tec-line: #d9dfea;
	--tec-accent: #2042b5;
	--tec-panel: #17233b;
	--tec-radius: 14px;
	--tec-font: var(--wp--preset--font-family--manrope, Manrope, system-ui, sans-serif);
}

.tec-editorial {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	background: var(--tec-paper);
	color: var(--tec-text);
	font-family: var(--tec-font);
}

.tec-editorial > .tec-index { flex: 1; }

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

.tec-masthead {
	border-bottom: 1px solid var(--tec-line);
	background: var(--tec-white);
	color: var(--tec-text);
	font-family: var(--tec-font);
}

.tec-masthead-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 68px;
}

.tec-logo {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 8px;
}

.tec-logo img { display: block; width: 44px; height: 44px; }

.tec-footer {
	--tec-footer-muted: #c7d0e1;
	background: var(--tec-panel);
	color: var(--tec-white);
	font-family: var(--tec-font);
}

.tec-footer-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 28px;
	padding-block: 32px 24px;
}

.tec-footer-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tec-footer .tec-logo {
	flex: 0 0 52px;
	min-height: 52px;
	border-radius: 10px;
	background: #e6dff7;
}

.tec-footer-brand p {
	max-width: 25ch;
	margin: 0;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.tec-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tec-footer-nav a, .tec-back-to-top {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--tec-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.tec-footer-nav a:hover, .tec-back-to-top:hover {
	color: var(--tec-white);
	text-decoration: underline;
	text-decoration-color: #e6dff7;
	text-underline-offset: .24em;
}

.tec-footer-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 16px;
	padding-block: 5px;
	border-top: 1px solid rgb(255 255 255 / 20%);
	color: var(--tec-footer-muted);
	font-size: 13px;
}

.tec-footer-meta small { font-size: inherit; }
.tec-back-to-top { gap: 9px; }

.tec-back-to-top::after {
	width: 6px;
	height: 6px;
	border-block-start: 1.5px solid currentColor;
	border-inline-start: 1.5px solid currentColor;
	transform: translateY(2px) rotate(45deg);
	content: "";
}

.tec-menu { position: relative; }

.tec-menu summary {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 8px;
	background: var(--tec-text);
	color: var(--tec-white);
	font: 700 14px/1.2 var(--tec-font);
	list-style: none;
	cursor: pointer;
}

.tec-menu summary::-webkit-details-marker { display: none; }
.tec-menu summary:hover, .tec-menu[open] summary { background: #2c3951; }

.tec-menu-icon {
	position: relative;
	width: 16px;
	height: 16px;
	color: #e1dcfb;
}

.tec-menu-icon::before, .tec-menu-icon::after {
	position: absolute;
	inset-inline: 0;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	content: "";
}

.tec-menu-icon::before { top: 4px; }
.tec-menu-icon::after { bottom: 4px; }
.tec-menu[open] .tec-menu-icon::before { top: 7px; transform: rotate(45deg); }
.tec-menu[open] .tec-menu-icon::after { bottom: 7px; transform: rotate(-45deg); }

.tec-menu-panel {
	position: absolute;
	z-index: 20;
	inset-block-start: calc(100% + 12px);
	inset-inline-end: 0;
	display: grid;
	gap: 12px;
	box-sizing: border-box;
	width: min(388px, calc(100vw - 48px));
	padding: 16px;
	border-radius: var(--tec-radius);
	background: var(--tec-white);
	box-shadow: 0 12px 32px rgb(19 29 48 / 18%);
}

.tec-menu:not([open]) .tec-menu-panel { display: none; }
.tec-menu-nav { display: grid; }

.tec-menu-nav a {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) 8px;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 14px;
	border-block-start: 1px solid var(--tec-line);
	color: var(--tec-text);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.tec-menu-nav a:hover { background: var(--tec-paper); color: var(--tec-text); }

.tec-menu-nav a::after {
	width: 6px;
	height: 6px;
	border-block-start: 1.5px solid currentColor;
	border-inline-end: 1.5px solid currentColor;
	transform: rotate(45deg);
	content: "";
}

.tec-menu-destination {
	position: relative;
	display: block;
	box-sizing: border-box;
	justify-self: center;
	border: 1.5px solid currentColor;
	border-radius: 3px;
}

.tec-menu-destination::after {
	position: absolute;
	inset-inline: 3px;
	border-block-start: 1px solid currentColor;
	content: "";
}

.tec-menu-reviews { width: 14px; height: 17px; }
.tec-menu-reviews::after { inset-block-start: 4px; height: 3px; border-block-end: 1px solid currentColor; }
.tec-menu-specs { width: 11px; height: 18px; }
.tec-menu-specs::after { inset-block-end: 2px; }

.tec-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 44px;
	min-width: 0;
	padding: 3px;
	border: 1px solid #8b97a9;
	border-radius: 10px;
	background: var(--tec-paper);
}

.tec-search input, .tec-search button {
	box-sizing: border-box;
	min-width: 0;
	min-height: 44px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--tec-text);
}

.tec-search input { width: 100%; padding: 0 10px 0 12px; font: 600 16px/1.2 var(--tec-font); }
.tec-search input::placeholder { color: var(--tec-muted); opacity: 1; }

.tec-search button {
	display: grid;
	place-items: center;
	padding: 0;
	background: #e5eaf3;
	cursor: pointer;
}

.tec-search button:hover { background: #d8e0ed; }

.tec-search-icon {
	position: relative;
	box-sizing: border-box;
	width: 13px;
	height: 13px;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.tec-search-icon::after {
	position: absolute;
	right: -6px;
	bottom: -2px;
	width: 7px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transform: rotate(45deg);
	transform-origin: left center;
	content: "";
}

.tec-masthead :focus-visible, .tec-footer :focus-visible, .tec-index :focus-visible {
	outline: 2px solid var(--tec-accent);
	outline-offset: 4px;
}

.tec-footer :focus-visible { outline-color: #e6dff7; }

.tec-footer .tec-back-to-top:focus-visible {
	outline: none;
	text-decoration: underline 2px #e6dff7;
	text-underline-offset: .24em;
}

.tec-masthead .tec-search :focus-visible { outline-offset: -2px; }

.tec-visually-hidden:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tec-skip:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100000;
	padding: 12px;
	color: var(--tec-white);
	background: var(--tec-accent);
}

.tec-index { padding-block: 30px 64px; }
.tec-index * { box-sizing: border-box; }
.tec-index h1, .tec-index h2 { font-family: var(--tec-font); text-wrap: balance; }

.tec-index-title {
	margin: 0 0 18px;
	font-size: clamp(30px, 4.4vw, 50px);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1.06;
	overflow-wrap: anywhere;
}

#latest-reviews { scroll-margin-top: 24px; }
.tec-story-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: 1fr;
	gap: 16px;
}

.tec-story {
	position: relative;
	display: grid;
	min-width: 0;
	border: 1px solid var(--tec-line);
	border-radius: var(--tec-radius);
	background: var(--tec-white);
	color: var(--tec-text);
}

.tec-story:has(.tec-story-image) { grid-template-columns: minmax(0, min(49%, 300px)) minmax(0, 1fr); }
.tec-story:hover, .tec-story:focus-within { border-color: #89919e; }

.tec-story-image {
	position: relative;
	min-height: 160px;
	overflow: hidden;
	border-radius: 13px 0 0 13px;
	background: var(--tec-panel);
}

.tec-story-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tec-story-copy { display: grid; align-content: center; gap: 8px; min-width: 0; padding: 18px 20px; }

.tec-story-copy h2, .tec-story-copy p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.tec-story-copy h2 {
	--tec-title-lines: 2;
	-webkit-line-clamp: var(--tec-title-lines);
	block-size: calc(var(--tec-title-lines) * 1lh);
	margin: 0;
	color: var(--tec-text);
	font-size: clamp(19px, 2.1vw, 24px);
	font-weight: 800;
	letter-spacing: -.026em;
	line-height: 1.25;
}

.tec-story-copy p {
	-webkit-line-clamp: 2;
	block-size: 2lh;
	max-width: 68ch;
	margin: 0;
	color: var(--tec-muted);
	font-size: 14px;
	line-height: 1.55;
}
.tec-story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tec-story-meta time { color: var(--tec-muted); font-size: 13px; }

.tec-read-more, .tec-read-more:hover {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid #9aa7bb;
	border-radius: 8px;
	background: var(--tec-white);
	color: var(--tec-text);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.tec-read-more:hover { border-color: #69717e; color: var(--tec-text); }
.tec-read-more::after { position: absolute; inset: 0; border-radius: var(--tec-radius); content: ""; }

.tec-index .navigation.pagination { margin-top: 24px; }
.tec-index .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tec-index .nav-links a, .tec-index .nav-links span { padding: 8px 12px; border: 1px solid var(--tec-line); border-radius: 6px; }
.tec-index .nav-links .current { background: var(--tec-panel); color: var(--tec-white); }
.tec-empty { max-width: 60ch; margin: 8px 0 0; color: var(--tec-muted); }

@media (max-width: 720px) {
	.tec-container { width: calc(100% - 36px); }
	.tec-index { padding-block: 22px 48px; }
	.tec-story-copy h2 { --tec-title-lines: 3; }
}

@media (max-width: 550px) {
	.tec-masthead-inner { position: relative; display: block; }
	.tec-masthead .tec-logo { position: absolute; z-index: 1; inset-block-start: 12px; inset-inline-start: 0; }
	.tec-logo img { width: 40px; height: 40px; }
	.tec-menu { padding-block: 12px; }
	.tec-menu summary { width: max-content; margin-inline-start: auto; }
	.tec-menu-panel {
		position: static;
		width: 100%;
		margin-block-start: 12px;
		padding: 12px 0 0;
		border-block-start: 1px solid var(--tec-line);
		border-radius: 0;
		box-shadow: none;
	}
	.tec-footer-main { gap: 10px; padding-block: 24px 10px; }
	.tec-footer-nav ul { gap: 0 16px; }
}

@media (max-width: 520px) {
	.tec-story:has(.tec-story-image) { grid-template-columns: minmax(0, 1fr); }
	.tec-story-image { min-height: 0; aspect-ratio: 16 / 9; border-radius: 13px 13px 0 0; }
}
