/* ==========================================================================
   HiFi Oasis — main stylesheet
   --------------------------------------------------------------------------
   1. Tokens (light + dark)
   2. Base & typography
   3. Layout
   4. Buttons, forms, chips
   5. Header, navigation, overlays
   6. Cards & thumbnails
   7. Homepage sections
   8. Archive headers, pagination, empty states
   9. Single posts & pages
   10. Comments
   11. Sidebar & widgets
   12. Newsletter
   13. Footer
   14. Plugin integrations
   15. Utilities, motion, print
   ========================================================================== */

/* 1. Tokens ================================================================ */

:root {
	--ho-bg: #f4f7fc;
	--ho-surface: #ffffff;
	--ho-surface-2: #ebf1fa;
	--ho-line: #d9e2ef;
	--ho-line-2: #bfcde2;
	--ho-text: #0a1628;
	--ho-muted: #4a5970;
	--ho-primary: #1d4ed8;
	--ho-on-primary: #ffffff;
	--ho-primary-strong: color-mix(in srgb, var(--ho-primary) 82%, #000);
	--ho-soft: color-mix(in srgb, var(--ho-primary) 11%, var(--ho-surface));
	--ho-soft-text: color-mix(in srgb, var(--ho-primary) 72%, var(--ho-text));
	--ho-tile: #e2eaf8;
	--ho-tile-icon: color-mix(in srgb, var(--ho-primary) 85%, #fff);
	--ho-ring: #cbd8f1;
	--ho-dev-body: #0f1b33;
	--ho-dev-line: #8a9bb8;
	--ho-dev-screen: #2563eb;
	--ho-dev-ui: #93b4ff;
	--ho-header-bg: rgba(255, 255, 255, 0.86);
	--ho-band: #0b2766;
	--ho-band-text: #ffffff;
	--ho-band-muted: #c3d3f6;
	--ho-shadow: 0 1px 2px rgba(10, 22, 40, 0.04), 0 10px 30px rgba(10, 22, 40, 0.07);
	--ho-shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.18);
	--ho-ok: #0f7a4d;
	--ho-danger: #b42318;
	--ho-backdrop: rgba(6, 12, 26, 0.48);

	--ho-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ho-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--ho-r-sm: 6px;
	--ho-r: 10px;
	--ho-r-md: 12px;
	--ho-r-lg: 16px;
	--ho-r-xl: 24px;

	--ho-container: 1280px;
	--ho-prose: 720px;
	--ho-gutter: clamp(16px, 4vw, 24px);
	--ho-logo-h: 40px;
	--ho-header-h: 72px;

	color-scheme: light;
}

:root[data-theme="dark"] {
	--ho-bg: #060b16;
	--ho-surface: #0c1526;
	--ho-surface-2: #111d33;
	--ho-line: #1c2a44;
	--ho-line-2: #2b3d60;
	--ho-text: #e7edf8;
	--ho-muted: #98a7c1;
	--ho-primary: #6e9dff;
	--ho-on-primary: #04102a;
	--ho-primary-strong: color-mix(in srgb, var(--ho-primary) 70%, #fff);
	--ho-soft: color-mix(in srgb, var(--ho-primary) 16%, var(--ho-surface));
	--ho-soft-text: color-mix(in srgb, var(--ho-primary) 55%, #fff);
	--ho-tile: #0f1d38;
	--ho-tile-icon: #7fa7ff;
	--ho-ring: #1a2d52;
	--ho-dev-body: #22324f;
	--ho-dev-line: #5d7299;
	--ho-dev-screen: #3366e0;
	--ho-dev-ui: #a9c3ff;
	--ho-header-bg: rgba(6, 11, 22, 0.84);
	--ho-band: #10265a;
	--ho-band-text: #f1f5ff;
	--ho-band-muted: #b5c7ee;
	--ho-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.35);
	--ho-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
	--ho-ok: #4ade9b;
	--ho-danger: #ff8a7a;
	--ho-backdrop: rgba(0, 3, 10, 0.66);

	color-scheme: dark;
}

/* No JavaScript: follow the device. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--ho-bg: #060b16;
		--ho-surface: #0c1526;
		--ho-surface-2: #111d33;
		--ho-line: #1c2a44;
		--ho-line-2: #2b3d60;
		--ho-text: #e7edf8;
		--ho-muted: #98a7c1;
		--ho-primary: #6e9dff;
		--ho-on-primary: #04102a;
		--ho-tile: #0f1d38;
		--ho-tile-icon: #7fa7ff;
		--ho-ring: #1a2d52;
		--ho-header-bg: rgba(6, 11, 22, 0.84);
		--ho-band: #10265a;
		color-scheme: dark;
	}
}

/* 2. Base & typography ===================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ho-header-h) + 16px);
}

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

.is-switching-scheme *,
.is-switching-scheme *::before,
.is-switching-scheme *::after {
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease !important;
}

[hidden] {
	display: none !important;
}

img,
svg,
video,
canvas,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--ho-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--ho-primary-strong);
}

:focus-visible {
	outline: 2px solid var(--ho-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--ho-text);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

hr {
	border: 0;
	border-top: 1px solid var(--ho-line);
	margin: 2.5em 0;
}

.mono,
code,
kbd,
pre,
samp {
	font-family: var(--ho-mono);
}

::selection {
	background: color-mix(in srgb, var(--ho-primary) 26%, transparent);
}

/* 3. Layout ================================================================ */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: clip;
}

.site-main {
	flex: 1 0 auto;
	outline: none;
}

.container {
	width: 100%;
	max-width: calc(var(--ho-container) + 2 * var(--ho-gutter));
	margin-inline: auto;
	padding-inline: var(--ho-gutter);
}

.container--header {
	max-width: calc(860px + 2 * var(--ho-gutter));
}

.container--media {
	max-width: calc(1080px + 2 * var(--ho-gutter));
}

.container--wide {
	max-width: calc(var(--ho-container) + 2 * var(--ho-gutter));
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	padding-block: 40px 16px;
}

.layout--prose > .layout__main {
	width: 100%;
	max-width: var(--ho-prose);
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
	}
}

/* 4. Buttons, forms, chips ================================================= */

.btn,
.wp-block-button__link,
.wpcf7-submit,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--ho-r);
	background: var(--ho-primary);
	color: var(--ho-on-primary);
	font: 600 15px/1.1 var(--ho-font);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover,
.comment-form .submit:hover {
	background: var(--ho-primary-strong);
	color: var(--ho-on-primary);
}

.btn--ghost,
.is-style-outline .wp-block-button__link {
	background: var(--ho-surface);
	border-color: var(--ho-line-2);
	color: var(--ho-text);
}

.btn--ghost:hover,
.is-style-outline .wp-block-button__link:hover {
	background: var(--ho-surface-2);
	color: var(--ho-text);
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r);
	background: var(--ho-surface);
	color: var(--ho-text);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
	background: var(--ho-surface-2);
	border-color: var(--ho-line-2);
}

:where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], select, textarea) {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--ho-line-2);
	border-radius: var(--ho-r);
	background: var(--ho-surface);
	color: var(--ho-text);
	font: 400 16px/1.4 var(--ho-font);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(textarea) {
	min-height: 140px;
	resize: vertical;
}

:where(input, select, textarea):focus {
	outline: none;
	border-color: var(--ho-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ho-primary) 22%, transparent);
}

::placeholder {
	color: var(--ho-muted);
	opacity: 1;
}

:where(label) {
	font-size: 15px;
	font-weight: 500;
}

:where(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--ho-primary);
	width: 18px;
	height: 18px;
}

.search-form {
	position: relative;
	display: flex;
	gap: 8px;
	width: 100%;
}

.search-form__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ho-muted);
	pointer-events: none;
	display: flex;
}

.search-form .search-form__input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding-left: 42px;
	border-radius: var(--ho-r-md);
}

.search-form__submit {
	height: 48px;
	border-radius: var(--ho-r-md);
}

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

.chips--scroll {
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	margin-inline: calc(-1 * var(--ho-gutter));
	padding-inline: var(--ho-gutter);
	padding-bottom: 4px;
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--ho-gutter), #000 calc(100% - 40px), transparent);
}

.chips--scroll::-webkit-scrollbar {
	display: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ho-line);
	border-radius: 999px;
	background: var(--ho-surface);
	color: var(--ho-text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.chip:hover {
	border-color: var(--ho-primary);
	color: var(--ho-primary);
}

.chip.is-active {
	background: var(--ho-text);
	border-color: var(--ho-text);
	color: var(--ho-bg);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ho-soft);
	color: var(--ho-soft-text);
	font-size: 13px;
	font-weight: 600;
}

.eyebrow {
	margin: 0 0 8px;
	color: var(--ho-primary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kicker {
	position: relative;
	z-index: 1;
	color: var(--ho-primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
}

a.kicker:hover {
	color: var(--ho-primary-strong);
	text-decoration: underline;
}

.kicker--chip {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--ho-soft);
	color: var(--ho-soft-text);
}

.kicker--muted {
	background: var(--ho-surface-2);
	color: var(--ho-muted);
}

a.kicker--chip:hover {
	text-decoration: none;
	background: var(--ho-primary);
	color: var(--ho-on-primary);
}

/* 5. Header, navigation, overlays ========================================== */

.skip-link:focus {
	position: fixed !important;
	z-index: 1000;
	top: 12px;
	left: 12px;
	width: auto !important;
	height: auto !important;
	padding: 12px 16px !important;
	clip: auto !important;
	clip-path: none !important;
	background: var(--ho-surface);
	color: var(--ho-text);
	border-radius: var(--ho-r);
	box-shadow: var(--ho-shadow-lg);
}

.site-header {
	position: relative;
	z-index: 50;
	background: var(--ho-header-bg);
	border-bottom: 1px solid var(--ho-line);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	transition: transform 0.28s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}

.header-sticky-smart .site-header,
.header-sticky-always .site-header {
	position: sticky;
	top: 0;
}

.admin-bar.header-sticky-smart .site-header,
.admin-bar.header-sticky-always .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar.header-sticky-smart .site-header,
	.admin-bar.header-sticky-always .site-header {
		top: 0;
	}
}

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(10, 22, 40, 0.06);
}

.site-header.is-hidden {
	transform: translateY(-110%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 72px;
}

.site-header__brand {
	flex: 0 1 auto;
	min-width: 0;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	min-width: 0;
	color: var(--ho-text);
	text-decoration: none;
}

.site-brand:hover {
	color: var(--ho-text);
}

.site-brand__logo {
	width: auto;
	height: var(--ho-logo-h);
	max-width: 220px;
	object-fit: contain;
}

.site-brand__logo--dark,
[data-theme="dark"] .site-brand__logo--light:not(.site-brand__logo--any) {
	display: none;
}

[data-theme="dark"] .site-brand__logo--dark {
	display: block;
}

[data-theme="dark"] .site-brand__logo--invert {
	filter: invert(1) hue-rotate(180deg);
}

.site-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--ho-r);
	background: var(--ho-primary);
	color: var(--ho-on-primary);
}

.site-brand__name {
	min-width: 0;
	overflow: hidden;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-brand__logo,
.site-brand__mark {
	flex-shrink: 0;
}

@media (max-width: 380px) {
	.site-header__inner {
		gap: 10px;
	}

	.site-header__actions {
		gap: 6px;
	}

	.site-brand__name {
		font-size: 17px;
	}
}

/* Primary navigation (desktop). */
.primary-nav {
	display: none;
	flex: 1;
	min-width: 0;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.primary-nav .menu > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--ho-text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.primary-nav .menu > .menu-item-has-children > a {
	padding-right: 4px;
}

.primary-nav .menu > li > a:hover,
.primary-nav .menu > li.is-open > a,
.primary-nav .menu > li:hover > a {
	background: var(--ho-surface-2);
	color: var(--ho-text);
}

.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current-menu-parent > a,
.primary-nav .menu > .current_page_item > a {
	background: var(--ho-soft);
	color: var(--ho-soft-text);
}

/* Items with a dropdown: the highlight wraps the label AND its chevron as one pill. */
.primary-nav .menu > .menu-item-has-children {
	border-radius: 8px;
	transition: background-color 0.15s ease;
}

.primary-nav .menu > .menu-item-has-children > a,
.primary-nav .menu > .menu-item-has-children > a:hover,
.primary-nav .menu > .menu-item-has-children.is-open > a,
.primary-nav .menu > .menu-item-has-children:hover > a {
	background: transparent;
}

.primary-nav .menu > .menu-item-has-children:hover,
.primary-nav .menu > .menu-item-has-children.is-open,
.primary-nav .menu > .menu-item-has-children:focus-within {
	background: var(--ho-surface-2);
}

.primary-nav .menu > .menu-item-has-children.current-menu-ancestor,
.primary-nav .menu > .menu-item-has-children.current-menu-parent,
.primary-nav .menu > .menu-item-has-children.current-menu-item {
	background: var(--ho-soft);
}

.primary-nav .menu > .menu-item-has-children.current-menu-ancestor > a,
.primary-nav .menu > .menu-item-has-children.current-menu-parent > a,
.primary-nav .menu > .menu-item-has-children.current-menu-item > a,
.primary-nav .menu > .menu-item-has-children.current-menu-ancestor > .submenu-toggle {
	color: var(--ho-soft-text);
}

.primary-nav .menu > .menu-item-has-children > .submenu-toggle {
	margin-right: 6px;
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 36px;
	margin-left: -2px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--ho-muted);
	cursor: pointer;
}

.submenu-toggle svg {
	transition: transform 0.2s ease;
}

.menu-item.is-open > .submenu-toggle svg {
	transform: rotate(180deg);
}

.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 60;
	min-width: 240px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	box-shadow: var(--ho-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.primary-nav .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 10px;
}

.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li.is-open > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.primary-nav .menu-item--columns > .sub-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px;
	width: 540px;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--ho-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a {
	background: var(--ho-surface-2);
	color: var(--ho-primary);
}

.primary-nav .sub-menu .sub-menu {
	position: static;
	opacity: 1;
	visibility: visible;
	transform: none;
	min-width: 0;
	padding: 0 0 0 12px;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.site-header__cta {
	display: none;
}

/* Header quick links (DAP Database + YouTube). */
.quick-link--dap.quick-link--header {
	gap: 8px;
	padding-inline: 14px;
	background: var(--ho-soft);
	border-color: transparent;
	color: var(--ho-soft-text);
}

.quick-link--dap.quick-link--header:hover {
	background: var(--ho-primary);
	color: var(--ho-on-primary);
}

.quick-link--youtube {
	--ho-yt: #e0211a;
	color: var(--ho-yt);
}

[data-theme="dark"] .quick-link--youtube {
	--ho-yt: #ff5b54;
}

.quick-link--youtube.quick-link--header:hover {
	background: color-mix(in srgb, var(--ho-yt) 12%, var(--ho-surface));
	border-color: color-mix(in srgb, var(--ho-yt) 40%, var(--ho-line));
	color: var(--ho-yt);
}

.offcanvas__quick .quick-link--youtube {
	border-color: color-mix(in srgb, var(--ho-yt) 35%, var(--ho-line));
}

/* Phones: the DAP button stays in the header as an icon; YouTube moves to the menu panel. */
.quick-link--dap.quick-link--header {
	display: inline-flex;
}

.quick-link__short {
	display: none;
}

@media (max-width: 719px) {
	.quick-link--dap.quick-link--header {
		padding-inline: 12px;
	}

	.quick-link--dap.quick-link--header:not(.has-short) {
		width: 44px;
		padding-inline: 0;
	}

	.quick-link--dap.quick-link--header .quick-link__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.quick-link--dap.quick-link--header .quick-link__short {
		display: inline;
	}

	.quick-link--youtube.quick-link--header {
		display: none;
	}
}

/* Phones: search lives in the menu panel, which frees room for the brand and DAP button. */
@media (max-width: 599px) {
	.site-header__actions > .icon-btn[data-open="search"] {
		display: none;
	}
}

/* With the desktop menu showing but little room, the DAP button is icon-only. */
@media (min-width: 1100px) and (max-width: 1299px) {
	.quick-link--dap.quick-link--header {
		width: 44px;
		padding-inline: 0;
	}

	.quick-link--dap.quick-link--header .quick-link__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

.offcanvas__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.offcanvas__quick:empty {
	display: none;
}

.offcanvas__quick .quick-link {
	flex: 1 1 140px;
	justify-content: center;
	gap: 8px;
}

.offcanvas__quick .quick-link--dap {
	background: var(--ho-soft);
	border-color: transparent;
	color: var(--ho-soft-text);
}

.scheme-toggle__to-light,
[data-theme="dark"] .scheme-toggle__to-dark {
	display: none;
}

[data-theme="dark"] .scheme-toggle__to-light {
	display: inline-flex;
}

.scheme-toggle__to-dark {
	display: inline-flex;
}

@media (min-width: 600px) {
	.site-header__cta {
		display: inline-flex;
	}
}

@media (min-width: 1100px) {
	.primary-nav {
		display: block;
	}

	.menu-toggle {
		display: none;
	}
}

@media (min-width: 1100px) and (max-width: 1239px) {
	.primary-nav .menu > li > a {
		padding: 0 9px;
		font-size: 14.5px;
	}

	.site-header__inner {
		gap: 12px;
	}
}

/* Overlays (search + off-canvas). */
.has-overlay,
.has-overlay body {
	overflow: hidden;
}

.overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.overlay[hidden] {
	display: none;
}

.overlay__backdrop {
	position: absolute;
	inset: 0;
	background: var(--ho-backdrop);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.overlay.is-open .overlay__backdrop {
	opacity: 1;
}

.search-panel__box {
	position: relative;
	padding-block: 18px;
	background: var(--ho-surface);
	border-bottom: 1px solid var(--ho-line);
	box-shadow: var(--ho-shadow-lg);
	transform: translateY(-100%);
	transition: transform 0.22s ease;
}

.overlay.is-open .search-panel__box {
	transform: none;
}

.search-panel__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(880px + 2 * var(--ho-gutter));
}

.search-panel .search-form__input {
	height: 56px;
	font-size: 18px;
}

.search-panel .search-form__submit {
	height: 56px;
}

.offcanvas__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 92vw);
	background: var(--ho-surface);
	box-shadow: var(--ho-shadow-lg);
	transform: translateX(100%);
	transition: transform 0.24s ease;
}

.overlay.is-open .offcanvas__panel {
	transform: none;
}

.offcanvas__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 72px;
	padding: 0 16px 0 20px;
	border-bottom: 1px solid var(--ho-line);
}

.offcanvas__body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.offcanvas .search-form__submit {
	display: none;
}

.offcanvas-menu,
.offcanvas-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.offcanvas-menu > li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--ho-line);
}

.offcanvas-menu > li > a {
	flex: 1;
	display: flex;
	align-items: center;
	min-height: 52px;
	color: var(--ho-text);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
}

.offcanvas-menu .submenu-toggle {
	width: 44px;
	height: 44px;
	color: var(--ho-text);
}

.offcanvas-menu .sub-menu {
	display: none;
	flex-basis: 100%;
	padding: 0 0 12px;
}

.offcanvas-menu .is-open > .sub-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px 12px;
}

.offcanvas-menu .sub-menu a {
	display: flex;
	align-items: center;
	min-height: 40px;
	color: var(--ho-muted);
	font-size: 15px;
	text-decoration: none;
}

.offcanvas-menu .sub-menu a:hover,
.offcanvas-menu a:hover {
	color: var(--ho-primary);
}

.offcanvas-menu .current-menu-item > a {
	color: var(--ho-primary);
}

@media (max-width: 420px) {
	.offcanvas-menu .is-open > .sub-menu {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 6. Cards & thumbnails ==================================================== */

.thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: inherit;
	background: var(--ho-tile);
}

.thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ho-tile-icon);
}

.thumb__rings {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--ho-ring);
}

.thumb__glyph {
	position: relative;
}

.card__media-link {
	display: block;
	border-radius: inherit;
}

/* Review score badge. */
.score {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 5px 9px;
	border-radius: 8px;
	background: var(--ho-surface);
	color: var(--ho-text);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: 0 1px 3px rgba(10, 22, 40, 0.12);
}

.score__value {
	font-family: var(--ho-mono);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.score__label {
	color: var(--ho-muted);
}

.score--overlay {
	position: absolute;
	z-index: 2;
	top: 10px;
	left: 10px;
}

.score--large {
	position: absolute;
	z-index: 2;
	top: 16px;
	left: 16px;
	padding: 8px 12px;
	border-radius: var(--ho-r);
}

.score--large .score__value {
	font-size: 18px;
}

.score--large .score__label {
	font-size: 13px;
}

.score--inline {
	background: var(--ho-soft);
	color: var(--ho-soft-text);
	box-shadow: none;
}

.score--inline .score__label {
	color: inherit;
	opacity: 0.85;
}

.score--9 .score__value,
.score--10 .score__value {
	color: var(--ho-primary);
}

/* Vertical card. */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 10px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
	border-color: var(--ho-line-2);
	box-shadow: var(--ho-shadow);
}

.card:hover .thumb__img,
.card-row:hover .thumb__img,
.lead:hover .thumb__img {
	transform: scale(1.025);
}

.card__media,
.card-row__media,
.lead__media {
	position: relative;
	border-radius: var(--ho-r);
	overflow: hidden;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 0 8px 8px;
}

.card__title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

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

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
}

.card:hover .card__title a,
.card-row:hover .card__title a,
.card__title a:focus-visible {
	color: var(--ho-primary);
}

.card__title a:focus-visible {
	outline: none;
}

.card:has(.card__title a:focus-visible),
.card-row:has(.card__title a:focus-visible) {
	outline: 2px solid var(--ho-primary);
	outline-offset: 2px;
}

.card__excerpt {
	margin: 0;
	color: var(--ho-muted);
	font-size: 15px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: auto;
	padding-top: 4px;
	color: var(--ho-muted);
	font-size: 14px;
}

.card__author {
	color: var(--ho-text);
	font-weight: 500;
}

.card--large {
	padding: 12px;
}

.card--large .card__body {
	padding: 6px 12px 12px;
	gap: 12px;
}

.card--large .card__title {
	font-size: clamp(24px, 2.6vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.card--large .card__excerpt {
	font-size: 17px;
	-webkit-line-clamp: 4;
}

@media (min-width: 900px) {
	.archive-lead .card--large {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: center;
		gap: 28px;
	}

	.archive-lead .card--large .card__body {
		padding: 12px 20px 12px 0;
	}
}

/* Horizontal card. */
.card-row {
	position: relative;
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding: 10px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-row:hover {
	border-color: var(--ho-line-2);
	box-shadow: var(--ho-shadow);
}

.card-row .thumb {
	aspect-ratio: 4 / 3;
}

.card-row__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 2px 4px 2px 0;
}

.card-row .card__title {
	font-size: 17px;
	line-height: 1.3;
}

.card-row .card__meta {
	padding-top: 0;
	font-size: 13px;
}

.card-row .score--overlay {
	top: 6px;
	left: 6px;
	padding: 3px 6px;
}

.card-row .score--overlay .score__value {
	font-size: 12px;
}

.card-row .score--overlay .score__label {
	display: none;
}

@media (min-width: 720px) {
	.card-list .card-row {
		grid-template-columns: 300px minmax(0, 1fr);
		gap: 24px;
		padding: 12px;
	}

	.card-list .card-row .thumb {
		aspect-ratio: 16 / 9;
	}

	.card-list .card-row__body {
		padding: 8px 12px 8px 0;
		gap: 10px;
	}

	.card-list .card__title {
		font-size: 22px;
		letter-spacing: -0.02em;
	}

	.card-list .card-row .score--overlay {
		top: 10px;
		left: 10px;
		padding: 5px 9px;
	}

	.card-list .card-row .score--overlay .score__value {
		font-size: 14px;
	}
}

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

@media (min-width: 1000px) {
	.card-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.layout--sidebar .card-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.card-list {
	display: grid;
	gap: 16px;
}

.card-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
	gap: 16px;
}

/* 7. Homepage sections ===================================================== */

.home-section {
	padding-top: clamp(48px, 6vw, 72px);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 20px;
}

.section-head__title {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 30px);
	letter-spacing: -0.025em;
}

.section-head__desc {
	margin: 6px 0 0;
	color: var(--ho-muted);
	font-size: 16px;
}

.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.section-head + .chips {
	margin-bottom: 24px;
}

/* Featured. */
.home-featured {
	padding-top: clamp(20px, 3vw, 40px);
}

.home-featured__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

@media (min-width: 960px) {
	.home-featured__grid {
		grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
	}
}

.lead {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 12px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lead:hover {
	border-color: var(--ho-line-2);
	box-shadow: var(--ho-shadow);
}

.lead__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 12px 14px;
}

.lead__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.lead__flag {
	color: var(--ho-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lead__flag::after {
	content: "·";
	margin-left: 10px;
}

.lead__title {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.lead__title a {
	color: var(--ho-text);
	text-decoration: none;
}

.lead__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.lead:hover .lead__title a {
	color: var(--ho-primary);
}

.lead__excerpt {
	margin: 0;
	color: var(--ho-muted);
	font-size: 17px;
	max-width: 62ch;
}

.lead__meta {
	color: var(--ho-muted);
	font-size: 15px;
}

.home-featured__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.trending {
	flex: 1;
	padding: 18px 20px 8px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
}

.trending__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 6px;
	color: var(--ho-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.trending__title svg {
	color: var(--ho-primary);
}

.trending__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: trending;
}

.trending__list li {
	counter-increment: trending;
	border-top: 1px solid var(--ho-line);
}

.trending__list a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 48px;
	padding: 8px 0;
	color: var(--ho-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.trending__list a::before {
	content: counter(trending, decimal-leading-zero);
	flex-shrink: 0;
	width: 24px;
	color: var(--ho-muted);
	font-family: var(--ho-mono);
	font-size: 13px;
}

.trending__list a:hover {
	color: var(--ho-primary);
}

/* DAP promo. */
.dap-promo__box {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	padding: clamp(24px, 4vw, 48px);
	background: var(--ho-surface-2);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-xl);
	overflow: hidden;
}

@media (min-width: 900px) {
	.dap-promo__box {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	}
}

.dap-promo__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.dap-promo__title {
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.dap-promo__desc {
	margin: 0;
	color: var(--ho-muted);
	font-size: 17px;
	max-width: 54ch;
}

.dap-promo__desc strong {
	color: var(--ho-text);
}

.dap-promo__form {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	max-width: 620px;
}

.dap-promo__form input[type="search"] {
	flex: 1 1 240px;
	height: 48px;
	padding-left: 42px;
	border-radius: var(--ho-r-md);
}

.dap-promo__form .search-form__icon {
	top: 24px;
}

.dap-promo__form .btn {
	height: 48px;
}

.dap-promo__art {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 18px;
	height: 260px;
}

.dap-art {
	width: auto;
}

.dap-art--a {
	height: 210px;
}

.dap-art--b {
	height: 250px;
}

.dap-art--c {
	height: 160px;
}

.dap-art__body {
	fill: var(--ho-dev-body);
}

.dap-art__screen {
	fill: var(--ho-dev-screen);
}

.dap-art__ui {
	fill: var(--ho-dev-ui);
}

.dap-art__ui--dim {
	opacity: 0.55;
}

.dap-art__ui--soft {
	opacity: 0.6;
}

.dap-art__ui--faint {
	opacity: 0.4;
}

.dap-art__ring {
	fill: none;
	stroke: var(--ho-dev-line);
	stroke-width: 2;
}

.dap-art__ring--ui {
	stroke: var(--ho-dev-ui);
}

.dap-art__ring--thick {
	stroke-width: 2.5;
}

.dap-art__line {
	fill: var(--ho-dev-line);
}

@media (max-width: 899px) {
	.dap-promo__art {
		height: 150px;
		order: -1;
		justify-content: flex-start;
	}

	.dap-art--a {
		height: 120px;
	}

	.dap-art--b {
		height: 145px;
	}

	.dap-art--c {
		height: 92px;
	}
}

/* Columns. */
.columns-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}

.panel {
	padding: 24px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
}

.panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.panel__title {
	margin: 0;
	font-size: 22px;
	letter-spacing: -0.02em;
}

.panel__link {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.link-list li {
	border-top: 1px solid var(--ho-line);
}

.link-list a {
	display: block;
	padding: 13px 0;
	color: var(--ho-text);
	text-decoration: none;
}

.link-list__title {
	display: block;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.link-list__meta {
	display: block;
	margin-top: 3px;
	color: var(--ho-muted);
	font-size: 13px;
}

.link-list a:hover .link-list__title {
	color: var(--ho-primary);
}

.cat-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.cat-tiles a {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0 10px;
	align-items: center;
	padding: 12px;
	border-radius: var(--ho-r-md);
	background: var(--ho-surface-2);
	color: var(--ho-text);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.cat-tiles a:hover {
	background: var(--ho-soft);
}

.cat-tiles__icon {
	grid-row: span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--ho-surface);
	color: var(--ho-primary);
}

.cat-tiles__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cat-tiles__count {
	color: var(--ho-muted);
	font-size: 13px;
}

/* 8. Archive headers, pagination, empty states ============================= */

.page-header {
	padding: clamp(24px, 4vw, 40px) 0 clamp(20px, 3vw, 32px);
	background: var(--ho-surface);
	border-bottom: 1px solid var(--ho-line);
}

.page-header__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.page-header__text {
	max-width: 760px;
}

.page-header__title {
	margin: 0;
	font-size: clamp(32px, 4.2vw, 50px);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.page-header__desc {
	margin-top: 12px;
	color: var(--ho-muted);
	font-size: 18px;
}

.page-header__desc p:last-child {
	margin-bottom: 0;
}

.page-header__count {
	margin: 0;
	color: var(--ho-muted);
	font-size: 14px;
}

.page-header__count .mono {
	display: block;
	color: var(--ho-text);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.page-header__search {
	max-width: 720px;
	margin-top: 20px;
}

.page-header .chips {
	margin-top: 24px;
}

.archive-lead {
	margin-bottom: 24px;
}

.results-count {
	margin: 0 0 16px;
	color: var(--ho-muted);
	font-size: 15px;
}

.breadcrumbs {
	margin-bottom: 14px;
	color: var(--ho-muted);
	font-size: 14px;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--ho-line-2);
}

.breadcrumbs a {
	color: var(--ho-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--ho-primary);
	text-decoration: underline;
}

.breadcrumbs [aria-current] span,
.breadcrumbs .last {
	color: var(--ho-text);
}

.breadcrumbs__sep {
	margin-inline: 8px;
	color: var(--ho-line-2);
}

.pagination {
	margin-top: 40px;
}

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

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r);
	background: var(--ho-surface);
	color: var(--ho-text);
	font-family: var(--ho-mono);
	font-size: 15px;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--ho-primary);
	color: var(--ho-primary);
}

.pagination .page-numbers.current {
	background: var(--ho-primary);
	border-color: var(--ho-primary);
	color: var(--ho-on-primary);
}

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

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 24px auto;
	padding: 40px 24px;
	text-align: center;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
}

.empty-state__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--ho-soft);
	color: var(--ho-primary);
}

.empty-state__title {
	margin: 0;
	font-size: 24px;
}

.empty-state__text {
	margin: 0 0 8px;
	color: var(--ho-muted);
}

.not-found {
	padding: clamp(40px, 8vw, 96px) 0 24px;
}

.not-found__code {
	margin: 0;
	color: var(--ho-primary);
	font-size: clamp(64px, 12vw, 128px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.05em;
}

.not-found .search-form {
	max-width: 620px;
	margin: 24px 0 16px;
}

/* 9. Single posts & pages ================================================== */

.entry-header {
	padding: clamp(24px, 4vw, 48px) 0 clamp(20px, 3vw, 32px);
}

.entry-header__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.entry-header__cats:empty {
	display: none;
}

.entry-title {
	margin: 0;
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.06;
	letter-spacing: -0.035em;
}

.entry-subtitle {
	margin: 16px 0 0;
	color: var(--ho-muted);
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.5;
	max-width: 68ch;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--ho-line);
}

.entry-meta__byline {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.entry-meta__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--ho-surface-2);
}

.entry-meta__text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.entry-meta__author {
	color: var(--ho-text);
	font-weight: 600;
	text-decoration: none;
}

.entry-meta__author:hover {
	color: var(--ho-primary);
}

.entry-meta__details {
	color: var(--ho-muted);
	font-size: 14px;
}

.entry-meta__aside {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.entry-score {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.entry-score .score {
	padding: 7px 12px;
	border-radius: var(--ho-r);
}

.entry-score .score__value {
	font-size: 17px;
}

.entry-score__link {
	font-size: 14px;
	font-weight: 600;
}

.entry-score:hover .entry-score__link {
	text-decoration: underline;
}

.entry-media {
	margin-top: 0;
	margin-bottom: 0;
}

.entry--page .entry-media {
	margin-bottom: 28px;
}

.entry-media__img {
	width: 100%;
	max-height: min(70vh, 640px);
	object-fit: cover;
	border-radius: var(--ho-r-lg);
	background: var(--ho-surface-2);
}

.entry-media__caption {
	margin-top: 10px;
	color: var(--ho-muted);
	font-size: 14px;
	text-align: center;
}

.entry-content {
	overflow-wrap: break-word;
}

.entry-content--wide {
	padding-block: 8px 48px;
}

/* Wide pages (e.g. the DAP Database): keep text at a readable width, let the database use the full container. */
.entry-content--wide > :not(.hfo-dap-app):not(.alignwide):not(.alignfull):not(.wp-block-table) {
	max-width: 860px;
	margin-inline: auto;
}

/* Blocks that set their own width (e.g. the "Browse DAP Database" video) stay centred too. */
.entry-content--wide > div:not([class]) {
	margin-inline: auto;
}

.entry-content--wide > p,
.entry-content--wide > ul,
.entry-content--wide > ol {
	font-size: 18px;
	line-height: 1.7;
}

.entry-content--wide > .comments {
	max-width: 860px;
}

.entry-content--full > *:not(.alignfull) {
	max-width: calc(var(--ho-container) + 2 * var(--ho-gutter));
	margin-inline: auto;
	padding-inline: var(--ho-gutter);
}

/* Prose. */
.prose {
	font-size: 18px;
	line-height: 1.72;
	overflow-wrap: break-word;
}

.prose > * {
	margin-top: 0;
	margin-bottom: 1.25em;
}

.prose > *:last-child {
	margin-bottom: 0;
}

.prose h1 {
	margin-top: 1.7em;
	margin-bottom: 0.6em;
	font-size: clamp(28px, 3vw, 36px);
	letter-spacing: -0.03em;
}

.prose .wp-block-group > h1:first-child,
.prose .wp-block-group > h2:first-child,
.prose .wp-block-group > h3:first-child,
.prose .wp-block-group__inner-container > :first-child {
	margin-top: 0;
}

.prose .wp-block-group > :last-child,
.prose .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.prose h2 {
	margin-top: 1.9em;
	margin-bottom: 0.6em;
	font-size: clamp(26px, 2.6vw, 32px);
	letter-spacing: -0.025em;
}

.prose h3 {
	margin-top: 1.7em;
	margin-bottom: 0.5em;
	font-size: clamp(21px, 2vw, 24px);
}

.prose h4 {
	margin-top: 1.5em;
	font-size: 19px;
}

.prose a:not([class]) {
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--ho-primary) 45%, transparent);
	text-underline-offset: 3px;
}

.prose a:not([class]):hover {
	text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li {
	margin-bottom: 0.4em;
}

.prose li::marker {
	color: var(--ho-primary);
}

.prose blockquote,
.prose .wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--ho-primary);
	color: var(--ho-text);
	font-size: 1.1em;
}

.prose blockquote cite,
.prose .wp-block-quote cite {
	display: block;
	margin-top: 8px;
	color: var(--ho-muted);
	font-size: 15px;
	font-style: normal;
}

.prose .wp-block-pullquote {
	padding: 32px 0;
	border-block: 2px solid var(--ho-line);
	text-align: center;
}

.prose .wp-block-pullquote blockquote {
	border: 0;
	padding: 0;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 600;
	line-height: 1.35;
}

.prose code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--ho-surface-2);
	font-size: 0.88em;
}

.prose pre {
	padding: 18px 20px;
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-md);
	background: var(--ho-surface-2);
	font-size: 15px;
	line-height: 1.6;
	overflow-x: auto;
}

.prose pre code {
	padding: 0;
	background: none;
}

.prose img {
	border-radius: var(--ho-r-md);
}

/* Resized / centred image blocks: never wider than the column (core uses display:table). */
.entry-content .wp-block-image img {
	max-width: 100% !important;
	height: auto !important;
}

.entry-content .wp-block-image.aligncenter,
.entry-content .wp-block-image .aligncenter,
.entry-content .wp-block-image.is-resized {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
}

.entry-content .wp-block-image.is-resized > a {
	display: block;
}

/* Long unbroken values (firmware versions, URLs) wrap instead of overflowing. */
.entry-content dd,
.entry-content td,
.entry-content a {
	overflow-wrap: anywhere;
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 10px;
	color: var(--ho-muted);
	font-size: 14px;
	text-align: center;
}

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

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

.prose table,
.prose .wp-block-table table,
.prose .wp-block-table thead,
.prose .wp-block-table tfoot {
	border: 0;
}

.prose th,
.prose td,
.prose .wp-block-table th,
.prose .wp-block-table td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--ho-line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	color: var(--ho-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--ho-surface-2);
}

.prose .wp-block-separator {
	border-top: 1px solid var(--ho-line);
}

.prose .wp-block-separator.is-style-dots {
	border: 0;
}

.prose .has-small-font-size {
	font-size: 15px;
}

.prose .has-large-font-size {
	font-size: 22px;
}

.prose .wp-block-embed {
	margin-inline: 0;
}

/* Block embeds: WordPress core keeps them 16:9 (responsive-embeds support). */
.prose .wp-block-embed iframe {
	width: 100%;
	border-radius: var(--ho-r-md);
}

/* Older posts with a pasted video iframe (no embed block around it). */
.prose :not(.wp-block-embed__wrapper) > iframe:is([src*="youtube"], [src*="youtu.be"], [src*="vimeo"], [data-src*="youtube"], [data-src*="vimeo"], [data-pk-src*="youtube"]) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--ho-r-md);
}

.prose .alignwide {
	--ho-w: min(1080px, calc(100vw - 2 * var(--ho-gutter)));
	width: var(--ho-w);
	max-width: none;
	margin-inline: calc((100% - var(--ho-w)) / 2);
}

.prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.prose .alignfull img {
	border-radius: 0;
}

.layout--sidebar .prose .alignwide,
.layout--sidebar .prose .alignfull {
	width: 100%;
	margin-inline: 0;
}

.prose .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
	max-width: 50%;
}

.prose .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
	max-width: 50%;
}

.prose .aligncenter {
	margin-inline: auto;
}

.prose::after {
	content: "";
	display: table;
	clear: both;
}

.prose .wp-block-group.has-background,
.prose .wp-block-columns.has-background {
	padding: 24px;
	border-radius: var(--ho-r-lg);
}

.prose .wp-block-button__link {
	text-decoration: none;
}

.prose .wp-block-buttons {
	gap: 10px;
}

/* Page links. */
.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 32px;
	font-family: var(--ho-mono);
}

.page-links__label {
	margin-right: 6px;
	font-family: var(--ho-font);
	font-weight: 600;
}

.page-links > a,
.page-links > span:not(.page-links__label) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r);
	text-decoration: none;
}

/* Entry footer. */
.entry-footer {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin-top: 40px;
}

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

.tag-list a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--ho-surface-2);
	color: var(--ho-muted);
	font-size: 14px;
	text-decoration: none;
}

.tag-list a:hover {
	background: var(--ho-soft);
	color: var(--ho-soft-text);
}

.author-box {
	display: flex;
	gap: 20px;
	padding: 24px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
}

.author-box__avatar {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
}

.author-box__eyebrow {
	margin: 0 0 2px;
	color: var(--ho-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.author-box__name {
	margin: 0 0 8px;
	font-size: 22px;
}

.author-box__name a {
	color: var(--ho-text);
	text-decoration: none;
}

.author-box__bio {
	margin: 0 0 12px;
	color: var(--ho-muted);
	font-size: 16px;
}

.author-box__links {
	display: flex;
	gap: 16px;
	font-size: 15px;
	font-weight: 600;
}

.author-box__links a {
	text-decoration: none;
}

@media (max-width: 520px) {
	.author-box {
		flex-direction: column;
		gap: 14px;
	}
}

.prev-next {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
}

.prev-next__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	background: var(--ho-surface);
	color: var(--ho-text);
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.prev-next__item:hover {
	border-color: var(--ho-primary);
	color: var(--ho-text);
}

.prev-next__item--next {
	text-align: right;
	align-items: flex-end;
}

.prev-next__label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--ho-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.prev-next__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.prev-next__item:hover .prev-next__title {
	color: var(--ho-primary);
}

.related {
	padding: clamp(48px, 6vw, 72px) 0 8px;
}

.entry--page .entry-header--page {
	padding-bottom: clamp(12px, 2vw, 24px);
}

/* 10. Comments ============================================================= */

.comments-wrap {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--ho-line);
}

.comments-wrap__toggle {
	width: 100%;
}

.js .comments-wrap.is-collapsed .comments-wrap__inner {
	display: none;
}

.comments__title,
.comment-reply-title {
	margin: 0 0 20px;
	font-size: 24px;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: clamp(16px, 4vw, 48px);
}

.comment-body {
	margin-bottom: 16px;
	padding: 18px 20px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin-bottom: 10px;
	font-size: 14px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.comment-author .fn {
	font-style: normal;
	font-weight: 600;
}

.comment-author .says {
	display: none;
}

.comment-metadata a {
	color: var(--ho-muted);
	text-decoration: none;
}

.comment-content {
	font-size: 16px;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
}

.reply a {
	text-decoration: none;
}

.bypostauthor > .comment-body {
	border-color: color-mix(in srgb, var(--ho-primary) 45%, var(--ho-line));
}

.comment-respond {
	margin-top: 24px;
}

.comment-form {
	display: grid;
	gap: 14px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
}

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

.comment-notes,
.logged-in-as {
	color: var(--ho-muted);
	font-size: 14px;
}

/* 11. Sidebar & widgets ==================================================== */

.sidebar__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (min-width: 1024px) {
	.sidebar {
		position: sticky;
		top: calc(var(--ho-header-h) + 24px);
	}

	.header-sticky-off .sidebar {
		top: 24px;
	}
}

.widget {
	padding: 20px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	font-size: 15px;
}

.offcanvas__widgets .widget {
	padding: 0;
	border: 0;
	background: none;
	margin-bottom: 24px;
}

.widget-title,
.widget .cnvs-block-section-heading,
.widget .cs-section-heading {
	margin: 0 0 12px;
	color: var(--ho-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget ul:not([class*="pk-"]):not([class*="abr-"]):not(.children):not(.sub-menu) > li {
	padding: 9px 0;
	border-top: 1px solid var(--ho-line);
	line-height: 1.4;
}

.widget ul:not([class*="pk-"]):not([class*="abr-"]):not(.children):not(.sub-menu) > li:first-child {
	border-top: 0;
	padding-top: 0;
}

.widget .post-date {
	display: block;
	margin-top: 2px;
	color: var(--ho-muted);
	font-size: 13px;
}

.widget a {
	color: var(--ho-text);
	text-decoration: none;
}

.widget a:hover {
	color: var(--ho-primary);
}

.widget_categories li,
.widget_archive li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	color: var(--ho-muted);
}

.widget .children {
	width: 100%;
	padding-left: 12px;
}

.widget_search .search-form__submit {
	display: none;
}

.after-post-widgets .widget {
	margin-bottom: 0;
}

/* 12. Newsletter =========================================================== */

.newsletter {
	padding-top: clamp(48px, 6vw, 72px);
}

.newsletter--footer {
	padding-top: 0;
	padding-bottom: 40px;
	margin-top: -1px;
	background: var(--ho-bg);
}

.newsletter__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px 40px;
	align-items: center;
	padding: clamp(28px, 5vw, 56px);
	overflow: hidden;
	border-radius: var(--ho-r-xl);
	background: var(--ho-band);
	color: var(--ho-band-text);
}

@media (min-width: 900px) {
	.newsletter__box {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.newsletter--footer .newsletter__box {
	padding: clamp(24px, 4vw, 40px);
}

.newsletter__rings {
	position: absolute;
	top: -90px;
	right: -90px;
	width: 420px;
	height: 420px;
	color: #fff;
	opacity: 0.14;
	pointer-events: none;
}

.newsletter__text,
.newsletter__form {
	position: relative;
	min-width: 0;
}

.newsletter__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--ho-band-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.newsletter__title {
	margin: 0 0 10px;
	color: var(--ho-band-text);
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.newsletter__desc {
	margin: 0;
	color: var(--ho-band-muted);
	font-size: 17px;
	max-width: 48ch;
}

.newsletter-form--plain {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.newsletter .newsletter-form input[type="email"],
.newsletter .newsletter-form input[type="text"],
.newsletter .pk-subscribe-form-wrap input[type="text"],
.newsletter .pk-subscribe-form-wrap input[type="email"] {
	flex: 1 1 220px;
	min-height: 48px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--ho-r-md);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.newsletter .newsletter-form input::placeholder,
.newsletter .pk-subscribe-form-wrap input::placeholder {
	color: var(--ho-band-muted);
}

.newsletter .newsletter-form input:focus,
.newsletter .pk-subscribe-form-wrap input:focus {
	border-color: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.newsletter .newsletter-form .btn,
.hifioasis-theme .newsletter .pk-subscribe-submit {
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--ho-r-md);
	background: #fff;
	color: #0b2766;
	font: 600 15px/1 var(--ho-font);
	cursor: pointer;
}

.newsletter .newsletter-form .btn:hover,
.hifioasis-theme .newsletter .pk-subscribe-submit:hover {
	background: #e3ecff;
	color: #0b2766;
}

/* 13. Footer =============================================================== */

.site-footer {
	margin-top: clamp(56px, 8vw, 96px);
	background: var(--ho-surface);
	border-top: 1px solid var(--ho-line);
}

.site-footer:has(.newsletter--footer) {
	padding-top: 0;
	border-top: 0;
	background: linear-gradient(var(--ho-bg) 0 120px, var(--ho-surface) 120px);
}

.site-footer:has(.newsletter--footer) .newsletter--footer {
	background: transparent;
}

.site-footer__top {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: 32px;
	padding-block: 48px 32px;
}

@media (min-width: 900px) {
	.site-footer__top {
		grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	}
}

.footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.footer-brand__tagline {
	margin: 0;
	color: var(--ho-muted);
	font-size: 15px;
	max-width: 36ch;
}

.footer-col__title {
	margin: 0 0 12px;
	color: var(--ho-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-menu,
.legal-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li + li {
	margin-top: 4px;
}

.footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--ho-muted);
	font-size: 15px;
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--ho-text);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 20px 32px;
	border-top: 1px solid var(--ho-line);
	color: var(--ho-muted);
	font-size: 13px;
}

.site-footer__disclosure {
	margin: 0;
	max-width: 70ch;
}

.site-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

.legal-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.legal-menu a,
.to-top {
	color: var(--ho-muted);
	text-decoration: none;
}

.legal-menu a:hover,
.to-top:hover {
	color: var(--ho-text);
}

.to-top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--ho-line);
	border-radius: 999px;
	background: var(--ho-surface);
	color: var(--ho-text);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
}

.social-links a:hover {
	border-color: var(--ho-primary);
	color: var(--ho-primary);
}

/* 14. Plugin integrations ================================================== */

/* --- HiFi Oasis DAP Database ------------------------------------------- */

html body.dap-match-theme .hfo-dap-app,
html body.dap-match-theme .hfo-single-specs,
html body.dap-match-theme .hfo-review-dap-links {
	--hfo-accent: var(--ho-primary) !important;
	--hfo-accent-contrast: var(--ho-on-primary);
	--hfo-bg: var(--ho-bg);
	--hfo-surface: var(--ho-surface);
	--hfo-surface-2: var(--ho-surface-2);
	--hfo-text: var(--ho-text);
	--hfo-muted: var(--ho-muted);
	--hfo-line: var(--ho-line);
	--hfo-shadow: var(--ho-shadow);
	--hfo-result-text: var(--ho-text);
}

html body.dap-match-theme .hfo-dap-app {
	margin-top: 8px;
}

html body.dap-match-theme .hfo-dap-hero {
	background:
		repeating-radial-gradient(circle at 92% 12%, transparent 0 46px, rgba(255, 255, 255, 0.07) 46px 47.5px),
		var(--ho-band);
	border-radius: var(--ho-r-xl);
	color: var(--ho-band-text);
}

html body.dap-match-theme .hfo-dap-hero p:not(.hfo-dap-eyebrow),
html body.dap-match-theme .hfo-dap-hero-stat span {
	color: var(--ho-band-muted);
}

html body.dap-match-theme .hfo-dap-hero-side .hfo-dap-suggest-link {
	color: #c9dbff;
}

html body.dap-match-theme .hfo-dap-hero h2 {
	color: var(--ho-band-text);
	letter-spacing: -0.03em;
}

html body.dap-match-theme .hfo-dap-compare-tray {
	background: var(--ho-band);
	border-color: color-mix(in srgb, var(--ho-band) 70%, #fff);
	border-radius: var(--ho-r-lg);
}

html body.dap-match-theme .hfo-dap-compare-tray [data-hfo-compare-names] span {
	background: rgba(255, 255, 255, 0.12);
	color: #dce6ff;
}

html body.dap-match-theme .hfo-dap-app .hfo-dap-price,
html body.dap-match-theme .hfo-dap-app [class*="price"] strong {
	font-family: var(--ho-mono);
}

html body.dap-match-theme .hfo-single-verdict {
	background: var(--ho-soft);
	color: var(--ho-text);
	border-radius: var(--ho-r-lg);
}

html body.dap-match-theme .hfo-single-verdict strong,
html body.dap-match-theme .hfo-single-verdict p {
	color: var(--ho-text);
}

html body.dap-match-theme .hfo-single-product-figure {
	background: var(--ho-surface-2);
	border-color: var(--ho-line);
	border-radius: var(--ho-r-lg);
}

html body.dap-match-theme .hfo-single-spec-table,
html body.dap-match-theme .hfo-single-spec-table > div {
	border-color: var(--ho-line);
}

html body.dap-match-theme .hfo-single-notes,
html body.dap-match-theme .hfo-single-provenance,
html body.dap-match-theme .hfo-single-firmware,
html body.dap-match-theme .hfo-review-dap-links {
	background: var(--ho-surface);
	border-color: var(--ho-line);
	color: var(--ho-text);
	border-radius: var(--ho-r-lg);
}

html body.dap-match-theme .hfo-review-dap-links {
	border-left: 4px solid var(--ho-primary);
}

html body.dap-match-theme .hfo-single-notes h2,
html body.dap-match-theme .hfo-single-provenance h2,
html body.dap-match-theme .hfo-single-firmware h2,
html body.dap-match-theme .hfo-review-dap-links h2,
html body.dap-match-theme .hfo-single-provenance .hfo-dap-verification-date time,
html body.dap-match-theme .hfo-single-provenance .hfo-dap-source-list strong {
	color: var(--ho-text);
}

/* The database is wide; give it the full container even inside prose. */
.prose .hfo-dap-app {
	--ho-w: min(1080px, calc(100vw - 2 * var(--ho-gutter)));
	width: var(--ho-w);
	max-width: none;
	margin-inline: calc((100% - var(--ho-w)) / 2);
}

/* --- Absolute Reviews -------------------------------------------------- */

.hifioasis-theme .abr-post-review {
	--abr-review-name-color: var(--ho-muted);
	--abr-review-score-label-color: var(--ho-muted);
	--abr-review-text-font-weight: 600;
	--abr-review-score-text-font-size: 3.25rem;
	--abr-review-score-info-background: var(--ho-muted);
	--abr-review-score-info-popup-background: var(--ho-surface);
	--abr-review-score-info-popup-border-color: var(--ho-line);
	--abr-review-score-info-popup-color: var(--ho-text);
	margin: 48px 0 0;
	padding: clamp(20px, 3vw, 32px);
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	color: var(--ho-text);
	font-size: 16px;
	line-height: 1.55;
}

.hifioasis-theme .abr-post-review .abr-review-title,
.hifioasis-theme .abr-post-review .abr-title {
	margin-top: 0;
	color: var(--ho-text);
	font-size: 22px;
	letter-spacing: -0.02em;
}

.hifioasis-theme .abr-post-review ul {
	padding-left: 0;
	list-style: none;
}

.hifioasis-theme .abr-post-review li {
	margin-bottom: 0;
}

.hifioasis-theme .abr-review-slice {
	--abr-review-slice-background-color: var(--ho-line);
	--abr-review-slice-height: 6px;
	border-radius: 3px;
}

.hifioasis-theme .abr-review-progress {
	--abr-review-progress-background: var(--ho-line);
}

.hifioasis-theme .abr-review-line .abr-review-slice-active,
.hifioasis-theme .abr-review-progressbar {
	background-color: var(--ho-primary) !important;
}

.hifioasis-theme .abr-review-stars {
	--abr-review-star-empty-color: var(--ho-line-2);
	--abr-review-star-color: var(--ho-primary);
}

.hifioasis-theme .abr-review-score .abr-review-text,
.hifioasis-theme .abr-review-label .abr-review-text,
.hifioasis-theme .abr-review-number {
	font-family: var(--ho-mono);
	letter-spacing: -0.02em;
}

.hifioasis-theme .abr-review-score .abr-review-text .total {
	color: var(--ho-primary);
}

.hifioasis-theme .abr-review-score {
	border-color: var(--ho-line);
}

.hifioasis-theme .abr-badge-primary[class*="abr-review-badge-"] {
	background-color: var(--ho-soft) !important;
	color: var(--ho-soft-text) !important;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 8px;
}

.hifioasis-theme .abr-badge-text-primary[class*="abr-review-badge-text-"] {
	color: var(--ho-muted) !important;
}

.hifioasis-theme .abr-review-details {
	gap: 24px;
}

/* Reviews with only pros or only cons: use the full width. */
.hifioasis-theme .abr-review-details > :only-child {
	grid-column: 1 / -1;
}

.hifioasis-theme .abr-review-items ul {
	padding-left: 0;
	list-style: none;
}

.hifioasis-theme .abr-review-items li {
	margin-bottom: 8px;
	font-size: 16px;
}

.hifioasis-theme .abr-review-pros .abr-title {
	color: var(--ho-ok);
}

.hifioasis-theme .abr-review-cons .abr-title {
	color: var(--ho-danger);
}

.hifioasis-theme .abr-review-details .abr-review-pros ul > li::before {
	color: var(--ho-ok);
}

.hifioasis-theme .abr-review-details .abr-review-cons ul > li::before {
	color: var(--ho-danger);
}

.hifioasis-theme .abr-review-desc {
	color: var(--ho-muted);
}

/* Absolute Reviews widgets/blocks. */
.hifioasis-theme .abr-reviews-posts {
	--abr-posts-meta-color: var(--ho-muted);
	--abr-posts-item-separator-color: var(--ho-line);
	--abr-posts-number-badge-color: var(--ho-on-primary);
	--abr-posts-number-caption-color: var(--ho-muted);
	--abr-posts-thumbnail-width: 84px;
	--abr-posts-thumbnail-small-width: 72px;
}

.hifioasis-theme .abr-reviews-posts .abr-post-thumbnail img {
	border-radius: var(--ho-r);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hifioasis-theme .abr-reviews-posts .entry-title {
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.35;
}

.hifioasis-theme .abr-reviews-posts .abr-review-number {
	background: var(--ho-primary) !important;
	color: var(--ho-on-primary) !important;
	border-radius: 6px;
}

.hifioasis-theme .abr-reviews-posts .abr-review-caption {
	color: var(--ho-muted) !important;
	background: none !important;
}

/* --- Powerkit ---------------------------------------------------------- */

.hifioasis-theme .pk-font-heading {
	--pk-heading-font-color: var(--ho-text);
	font-family: var(--ho-font);
}

.hifioasis-theme .pk-font-secondary {
	--pk-secondary-font-color: var(--ho-muted);
}

.hifioasis-theme .pk-font-primary {
	font-family: var(--ho-font);
}

.hifioasis-theme .pk-post-meta {
	--pk-post-meta-color: var(--ho-muted);
}

.hifioasis-theme .pk-badge {
	--pk-badge-background: var(--ho-surface-2);
	--pk-badge-primary-background: var(--ho-primary);
	--pk-badge-primary-color: var(--ho-on-primary);
}

.hifioasis-theme .pk-alert {
	--pk-alert-background: var(--ho-surface-2);
}

.hifioasis-theme .pk-share-buttons-wrap {
	--pk-share-link-background: var(--ho-surface-2);
	--pk-share-link-color: var(--ho-text);
	--pk-share-simple-light-link-background: var(--ho-surface-2);
	--pk-share-simple-light-link-hover-color: var(--ho-primary);
	--pk-share-bold-light-link-hover-count-color: var(--ho-muted);
	--pk-share-bold-link-hover-count-color: var(--ho-muted);
	--pk-share-highlight-background: var(--ho-surface);
	--pk-share-tip-background: var(--ho-surface);
	--pk-share-tip-border-color: var(--ho-line);
	--pk-mobile-share-horizontal-background: var(--ho-surface);
	font-family: var(--ho-font);
}

.hifioasis-theme .pk-share-buttons-wrap .pk-share-buttons-link {
	border-radius: var(--ho-r);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hifioasis-theme .pk-share-buttons-wrap .pk-share-buttons-count,
.hifioasis-theme .pk-share-buttons-wrap .pk-share-buttons-label,
.hifioasis-theme .pk-share-buttons-wrap .pk-share-buttons-title {
	color: var(--ho-muted);
}

.share--metabar-post .pk-share-buttons-wrap {
	margin: 0;
}

.share--metabar-post .pk-share-buttons-total {
	display: none;
}

.share--metabar-post .pk-share-buttons-items {
	gap: 6px;
}

.share--metabar-post .pk-share-buttons-link {
	min-width: 40px;
	min-height: 40px;
	justify-content: center;
}

.share--after-post .pk-share-buttons-wrap {
	margin: 0;
	padding: 18px 20px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
}

.hifioasis-theme .pk-social-links-wrap {
	--pk-social-link-color: var(--ho-text);
	--pk-social-links-label-color: var(--ho-muted);
	--pk-social-nav-count-color: var(--ho-muted);
	--pk-social-bold-title-color: var(--ho-text);
	--pk-social-light-bg-link-background: var(--ho-surface-2);
	--pk-social-light-rounded-icon-background: var(--ho-surface-2);
	--pk-social-light-rounded-title-color: var(--ho-text);
	--pk-social-bold-rounded-icon-background: var(--ho-surface-2);
	--pk-social-bold-rounded-title-color: var(--ho-text);
}

.hifioasis-theme .pk-social-links-template-vertical .pk-social-links-link {
	border-radius: var(--ho-r);
}

.hifioasis-theme .pk-widget-posts {
	--pk-posts-thumbnail-width: 72px;
	--pk-posts-thumbnail-border-radius: var(--ho-r);
	--pk-posts-thumbnail-gutter: 1rem;
	--pk-posts-number-color: var(--ho-on-primary);
}

.hifioasis-theme .pk-widget-posts .pk-post-item + .pk-post-item {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--ho-line);
}

.hifioasis-theme .pk-widget-posts .entry-title,
.hifioasis-theme .pk-widget-posts .cs-entry__title {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
}

.hifioasis-theme .pk-widget-posts img {
	aspect-ratio: 1;
	object-fit: cover;
}

.hifioasis-theme .pk-widget-author {
	--pk-author-social-link-color: var(--ho-text);
}

.hifioasis-theme .pk-toc {
	--pk-toc-box-background: var(--ho-soft);
	--pk-toc-box-color: var(--ho-soft-text);
	--pk-toc-box-small-background: var(--ho-surface-2);
}

.hifioasis-theme .pk-toc,
.hifioasis-theme .pk-block-toc {
	padding: 20px 24px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	font-size: 16px;
}

.hifioasis-theme .pk-scroll-to-top {
	--pk-scrolltop-background: var(--ho-primary);
	--pk-scrolltop-icon-color: var(--ho-on-primary);
	border-radius: var(--ho-r);
}

.hifioasis-theme .pk-subscribe-form-wrap {
	--pk-subscribe-heading-font-size: 1.25rem;
	font-family: var(--ho-font);
}

.hifioasis-theme .pk-subscribe-form-wrap .pk-input-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hifioasis-theme .pk-subscribe-form-wrap .pk-input-group input {
	flex: 1 1 220px;
	width: auto;
}

.hifioasis-theme .pk-subscribe-form-wrap .pk-subscribe-submit {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--ho-r);
	background: var(--ho-primary);
	color: var(--ho-on-primary);
	font: 600 15px/1 var(--ho-font);
	cursor: pointer;
}

.newsletter .pk-subscribe-form-wrap,
.newsletter .pk-subscribe-container,
.newsletter .pk-subscribe-data {
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
	text-align: left;
}

.newsletter .pk-subscribe-form-wrap .pk-title,
.newsletter .pk-subscribe-form-wrap .pk-subscribe-message {
	display: none;
}

.newsletter .pk-privacy,
.newsletter .pk-alert {
	margin-top: 10px;
	color: var(--ho-band-muted);
	font-size: 13px;
	background: none;
}

.newsletter .pk-privacy a {
	color: #fff;
}

/* --- Canvas ------------------------------------------------------------ */

.canvas-content {
	padding-block: clamp(24px, 4vw, 48px) 0;
}

.hifioasis-theme .cnvs-font-heading {
	--cnvs-heading-font-color: var(--ho-text);
	font-family: var(--ho-font);
}

.hifioasis-theme .cnvs-font-secondary {
	--cnvs-secondary-font-color: var(--ho-muted);
}

.hifioasis-theme .cnvs-post-meta {
	--cnvs-post-meta-color: var(--ho-muted);
}

.hifioasis-theme .cnvs-badge {
	--cnvs-badge-background: var(--ho-surface-2);
	--cnvs-badge-primary-background: var(--ho-primary);
}

.hifioasis-theme .cnvs-alert {
	--cnvs-alert-background: var(--ho-surface-2);
}

.hifioasis-theme .cnvs-block-section-heading {
	margin-bottom: 20px;
	color: var(--ho-text);
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.hifioasis-theme .cnvs-block-posts article .entry-title a,
.hifioasis-theme .cnvs-block-posts article .cs-entry__title a {
	color: var(--ho-text);
	text-decoration: none;
}

.hifioasis-theme .cnvs-block-posts article .entry-title a:hover,
.hifioasis-theme .cnvs-block-posts article .cs-entry__title a:hover {
	color: var(--ho-primary);
}

.hifioasis-theme .cnvs-block-posts img {
	border-radius: var(--ho-r);
}

.hifioasis-theme .cnvs-block-posts-sidebar {
	--cnvs-posts-sidebar-number-background: var(--ho-primary);
	--cnvs-posts-sidebar-number-color: var(--ho-on-primary);
	--cnvs-posts-sidebar-number-border-radius: 6px;
}

.hifioasis-theme .has-drop-cap {
	--cnvs-drop-cap-color: var(--ho-primary);
	--cnvs-drop-cap-dark-background: var(--ho-text);
	--cnvs-drop-cap-dark-color: var(--ho-bg);
	--cnvs-drop-cap-light-background: var(--ho-surface-2);
	--cnvs-drop-cap-bordered-color: var(--ho-line);
}

.prose .is-style-cnvs-block-bg-light,
.canvas-content .is-style-cnvs-block-bg-light,
.prose .is-style-cnvs-block-bordered,
.prose .is-style-cnvs-block-shadow {
	padding: clamp(18px, 3vw, 28px);
	border-radius: var(--ho-r-lg);
}

.hifioasis-theme .is-style-cnvs-block-bg-light {
	background: var(--ho-surface-2) !important;
}

.hifioasis-theme .is-style-cnvs-block-bordered {
	border: 1px solid var(--ho-line) !important;
}

.hifioasis-theme .is-style-cnvs-block-shadow {
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	box-shadow: var(--ho-shadow) !important;
}

/* Canvas post lists (used on Canvas pages such as the old homepage). */
.hifioasis-theme .cnvs-block-posts a {
	text-decoration: none;
}

.hifioasis-theme .cnvs-block-posts .post-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}

.hifioasis-theme .cnvs-block-posts .post-categories li::after,
.hifioasis-theme .cnvs-block-posts .post-categories li + li::before {
	display: none;
}

.hifioasis-theme .cnvs-block-posts .meta-category a,
.hifioasis-theme .cnvs-block-posts .cnvs-meta-category a {
	color: var(--ho-primary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hifioasis-theme .cnvs-block-posts .entry-title,
.hifioasis-theme .cnvs-block-posts .cnvs-block-posts-title {
	margin: 0 0 6px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

.hifioasis-theme .cnvs-block-posts .entry-title a,
html body.hifioasis-theme .cnvs-block-posts .cnvs-block-posts-title a {
	color: var(--ho-text);
}

.hifioasis-theme .cnvs-block-posts .entry-title a:hover,
html body.hifioasis-theme .cnvs-block-posts .cnvs-block-posts-title a:hover,
html body.hifioasis-theme .cnvs-block-posts .cnvs-block-posts-title a:focus {
	color: var(--ho-primary);
}

.hifioasis-theme .cnvs-block-posts .cnvs-post-meta,
.hifioasis-theme .cnvs-block-posts .cnvs-post-meta a,
.hifioasis-theme .cnvs-block-posts .post-meta a {
	color: var(--ho-muted);
	font-size: 14px;
}

.hifioasis-theme .cnvs-block-posts .entry-details,
.hifioasis-theme .cnvs-block-posts .entry-excerpt {
	color: var(--ho-muted);
}

.hifioasis-theme .cnvs-block-posts .cnvs-overlay-background,
.hifioasis-theme .cnvs-block-posts .entry-thumbnail {
	border-radius: var(--ho-r);
	overflow: hidden;
}

/* Canvas "Table of contents" block wraps a Powerkit TOC: one frame, not two. */
.hifioasis-theme .cnvs-block-toc {
	border-color: var(--ho-line-2) !important;
	border-radius: var(--ho-r-lg) !important;
	background: var(--ho-surface);
}

.hifioasis-theme .cnvs-block-toc .pk-toc {
	padding: 0;
	border: 0;
	background: none;
}

.hifioasis-theme .pk-toc .pk-toc-title {
	margin: 0 0 10px;
	color: var(--ho-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hifioasis-theme .pk-toc a {
	text-decoration: none;
}

/* --- SearchWP Live Ajax Search ----------------------------------------- */

.searchwp-live-search-results {
	z-index: 1100 !important;
	max-height: min(70vh, 600px) !important;
	overflow-y: auto;
	background: var(--ho-surface) !important;
	border: 1px solid var(--ho-line) !important;
	border-radius: var(--ho-r-md) !important;
	box-shadow: var(--ho-shadow-lg) !important;
}

/* Compact rows: small thumbnail, one-line title, so more results fit. */
.searchwp-live-search-result {
	display: flex;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 12px !important;
	padding: 6px 12px !important;
	border-bottom: 1px solid var(--ho-line) !important;
}

.searchwp-live-search-result:last-child {
	border-bottom: 0 !important;
}

.searchwp-live-search-results-container .searchwp-live-search-result--img {
	flex: 0 0 44px !important;
	width: 44px;
	height: 44px;
	border-radius: var(--ho-r-sm);
	overflow: hidden;
	background: var(--ho-surface-2);
}

.searchwp-live-search-result--img img,
.searchwp-live-search-result--img svg {
	width: 100%;
	height: 100%;
	object-fit: cover !important;
	object-position: center !important;
}

.searchwp-live-search-result--info {
	flex: 1 1 auto !important;
	min-width: 0;
}

.searchwp-live-search-result--title {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 500;
	line-height: 1.35;
}

.searchwp-live-search-result--title a {
	display: block;
	padding: 0 !important;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.searchwp-live-search-result--desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
	margin: 2px 0 0 !important;
	color: var(--ho-muted) !important;
	font-size: 12.5px !important;
	line-height: 1.35;
}

.searchwp-live-search-result a,
.searchwp-live-search-result p {
	color: var(--ho-text) !important;
	font-family: var(--ho-font);
	font-size: 14px;
}

.searchwp-live-search-result:hover,
.searchwp-live-search-result--focused {
	background: var(--ho-surface-2) !important;
}

.searchwp-live-search-result a:hover,
.searchwp-live-search-result--focused a {
	background: transparent !important;
	color: var(--ho-primary) !important;
}

.searchwp-live-search-no-results {
	color: var(--ho-muted) !important;
}

/* --- Contact Form 7 ---------------------------------------------------- */

.wpcf7-form {
	display: grid;
	gap: 14px;
}

.wpcf7-form p {
	margin: 0;
}

.wpcf7-form label {
	display: block;
}

.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

.wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--ho-danger);
	font-size: 14px;
}

.wpcf7 form .wpcf7-response-output {
	margin: 8px 0 0;
	padding: 12px 16px;
	border-radius: var(--ho-r);
	border-color: var(--ho-line-2);
	font-size: 15px;
}

/* --- Spectra / misc blocks --------------------------------------------- */

.prose [class*="wp-block-uagb-image-gallery"] img {
	border-radius: var(--ho-r);
}

.prose .wp-block-gallery {
	gap: 12px;
}

/* Powerkit lazy-load placeholder: match the theme instead of a fixed light grey. */
.hifioasis-theme .pk-lazyload {
	--pk-lazyload-background: var(--ho-surface-2);
}

/* Spectra buttons: let a row of buttons wrap on small screens, and long labels wrap. */
.hifioasis-theme .wp-block-uagb-buttons,
.hifioasis-theme .wp-block-uagb-buttons .uagb-buttons__wrap {
	flex-wrap: wrap;
}

.hifioasis-theme .wp-block-uagb-buttons .wp-block-button__link {
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

/* Spectra FAQ: theme borders, readable icons in both modes. */
.hifioasis-theme .wp-block-uagb-faq .uagb-faq-item {
	border-color: var(--ho-line);
	border-radius: var(--ho-r);
	background: var(--ho-surface);
	overflow: hidden;
}

.hifioasis-theme .wp-block-uagb-faq .uagb-faq-questions-button {
	padding: 14px 16px;
	cursor: pointer;
}

.hifioasis-theme .wp-block-uagb-faq .uagb-question {
	color: var(--ho-text);
	font-weight: 600;
}

.hifioasis-theme .wp-block-uagb-faq .uagb-faq-content {
	padding: 0 16px 14px;
	color: var(--ho-text);
}

.hifioasis-theme .wp-block-uagb-faq .uagb-faq-content p:last-child {
	margin-bottom: 0;
}

.hifioasis-theme .wp-block-uagb-faq .uagb-faq-icon-wrap svg {
	fill: var(--ho-primary);
}

/* Spectra table of contents. */
.hifioasis-theme .wp-block-uagb-table-of-contents .uagb-toc__wrap {
	padding: 18px 22px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
	color: var(--ho-text);
}

.hifioasis-theme .wp-block-uagb-table-of-contents .uagb-toc__wrap .uagb-toc__title {
	color: var(--ho-text);
	font-size: 17px;
	font-weight: 600;
}

.hifioasis-theme .wp-block-uagb-table-of-contents .uagb-toc__title svg {
	fill: var(--ho-muted);
}

.hifioasis-theme .wp-block-uagb-table-of-contents .uagb-toc__list-wrap li,
.hifioasis-theme .wp-block-uagb-table-of-contents .uagb-toc__list-wrap li a {
	color: var(--ho-text);
	text-decoration: none;
}

.hifioasis-theme .wp-block-uagb-table-of-contents .uagb-toc__list-wrap li a:hover {
	color: var(--ho-primary);
}

.hifioasis-theme .wp-block-uagb-table-of-contents .uagb-toc__list li::marker {
	color: var(--ho-muted);
}

/* Spectra separator. */
.hifioasis-theme .wp-block-uagb-separator .wp-block-uagb-separator__inner {
	--my-border-color: var(--ho-line-2);
	border-color: var(--ho-line-2);
}

/* Stackable: buttons and containers left on their defaults follow the theme.
   Blocks given their own colours in the editor keep them. */
.hifioasis-theme {
	--stk-button-background-color: var(--ho-primary);
	--stk-default-button-background-color: var(--ho-primary);
	--stk-button-text-color: var(--ho-on-primary);
	--stk-default-button-text-color: var(--ho-on-primary);
	--stk-button-border-radius: var(--ho-r);
	--stk-button-padding: 12px 18px;
	--stk-button-min-height: 44px;
	--stk-tab-accent-color: var(--ho-primary);
	--stk-container-background-color: var(--ho-surface);
	--stk-default-container-background-color: var(--ho-surface);
	--stk-container-color: var(--ho-text);
	--stk-container-border-radius: var(--ho-r-lg);
	--stk-block-background-color: var(--ho-surface-2);
	--stk-subtitle-color: var(--ho-muted);
	--stk-icon-color: var(--ho-muted);
	--stk-icon-shape-color: var(--ho-line);
	--stk-image-border-radius: var(--ho-r);
}

.hifioasis-theme :where(.stk-block-button) .stk-button {
	border-radius: var(--ho-r);
}

.hifioasis-theme .stk-block-button .stk-button {
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

/* Table of contents ======================================================= */

.layout__rail {
	display: none;
}

@media (min-width: 1200px) {
	.layout--prose.has-toc {
		grid-template-columns: minmax(0, 1fr) minmax(0, var(--ho-prose)) minmax(0, 1fr);
		column-gap: 40px;
	}

	.layout--prose.has-toc > .layout__main {
		grid-column: 2;
		grid-row: 1;
	}

	.layout--prose.has-toc > .layout__rail {
		display: block;
		grid-column: 3;
		grid-row: 1;
		min-width: 0;
		max-width: 260px;
	}
}

.toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc__link {
	display: block;
	color: var(--ho-muted);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.toc__link:hover {
	color: var(--ho-text);
}

.toc__link.is-active {
	color: var(--ho-primary);
	font-weight: 600;
}

/* Rail (wide screens, or top of the sidebar). */
.toc--rail {
	position: sticky;
	top: calc(var(--ho-header-h) + 32px);
	max-height: calc(100vh - var(--ho-header-h) - 64px);
	overflow-y: auto;
	padding: 4px 4px 4px 0;
	scrollbar-width: thin;
	transition: top 0.28s ease;
}

.header-hidden .toc--rail {
	top: 32px;
	max-height: calc(100vh - 64px);
}

.sidebar .toc--rail {
	position: static;
	max-height: none;
	padding: 20px;
	background: var(--ho-surface);
	border: 1px solid var(--ho-line);
	border-radius: var(--ho-r-lg);
}

.toc__title {
	margin: 0 0 12px;
	color: var(--ho-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.toc--rail .toc__list {
	border-left: 2px solid var(--ho-line);
}

.toc--rail .toc__link {
	margin-left: -2px;
	padding: 7px 0 7px 14px;
	border-left: 2px solid transparent;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.toc--rail .toc__item--sub .toc__link {
	padding-left: 26px;
	font-size: 13px;
}

.toc--rail .toc__link.is-active {
	border-left-color: var(--ho-primary);
}

.toc__top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	color: var(--ho-muted);
	font-size: 13px;
	text-decoration: none;
}

.toc__top:hover {
	color: var(--ho-primary);
}

/* Bar (phones and tablets). */
.toc--bar {
	position: sticky;
	z-index: 40;
	top: var(--ho-header-h);
	margin: -16px calc(-1 * var(--ho-gutter)) 28px;
	background: var(--ho-header-bg);
	border-bottom: 1px solid var(--ho-line);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	transition: top 0.28s ease;
}

.admin-bar .toc--bar {
	top: calc(var(--ho-header-h) + var(--wp-admin--admin-bar--height, 0px));
}

.header-sticky-off .toc--bar,
.header-hidden .toc--bar {
	top: 0;
}

@media (max-width: 600px) {
	.admin-bar .toc--bar {
		top: var(--ho-header-h);
	}

	.admin-bar.header-hidden .toc--bar {
		top: 0;
	}
}

@media (min-width: 720px) {
	.toc--bar {
		top: calc(var(--ho-header-h) + 10px);
		margin: 0 0 32px;
		background: var(--ho-surface);
		border: 1px solid var(--ho-line);
		border-radius: var(--ho-r-lg);
		box-shadow: var(--ho-shadow);
	}
}

.toc__summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px var(--ho-gutter);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.toc__summary::-webkit-details-marker {
	display: none;
}

.toc__summary:focus-visible {
	outline-offset: -2px;
}

.toc__summary-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.toc__summary-label {
	color: var(--ho-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.toc__current {
	overflow: hidden;
	color: var(--ho-text);
	font-size: 15px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.toc__count {
	color: var(--ho-muted);
	font-size: 13px;
}

.toc__chevron {
	color: var(--ho-muted);
	transition: transform 0.2s ease;
}

.toc--bar[open] .toc__chevron {
	transform: rotate(180deg);
}

.toc__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: min(60vh, 480px);
	overflow-y: auto;
	padding: 6px var(--ho-gutter) 14px;
	background: var(--ho-surface);
	border-top: 1px solid var(--ho-line);
	border-bottom: 1px solid var(--ho-line);
	box-shadow: var(--ho-shadow-lg);
	overscroll-behavior: contain;
}

@media (min-width: 720px) {
	.toc__panel {
		top: calc(100% + 6px);
		border: 1px solid var(--ho-line);
		border-radius: var(--ho-r-lg);
	}
}

.toc--bar .toc__link {
	padding: 11px 12px;
	border-radius: var(--ho-r);
	font-size: 15px;
}

.toc--bar .toc__item--sub .toc__link {
	padding-left: 28px;
	font-size: 14px;
}

.toc--bar .toc__link.is-active {
	background: var(--ho-soft);
	color: var(--ho-soft-text);
}

.toc__progress {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 2px;
	width: calc(var(--toc-progress, 0) * 100%);
	background: var(--ho-primary);
	pointer-events: none;
}

@media (min-width: 720px) {
	.toc__summary,
	.toc__panel {
		padding-inline: 18px;
	}

	.toc__progress {
		left: 16px;
		right: 16px;
		bottom: 0;
		width: calc(var(--toc-progress, 0) * (100% - 32px));
		border-radius: 2px;
	}
}

@media (min-width: 720px) {
	.header-hidden .toc--bar {
		top: 10px;
	}
}

/* Wide pages (DAP Database): the bar matches the centred text column. */
@media (min-width: 720px) {
	.container--wide .toc--bar {
		max-width: 860px;
		margin-inline: auto;
	}
}

/* Canvas table-of-contents block: centre it like the rest of a wide page. */
.entry-content--wide > .cnvs-block-toc {
	margin-inline: auto;
}

@media (min-width: 1200px) {
	.layout--prose .toc--bar {
		display: none;
	}
}

@media (min-width: 1024px) {
	.layout--sidebar .toc--bar {
		display: none;
	}
}

@media (max-width: 1199px) {
	html:has(.toc--bar) {
		scroll-padding-top: calc(var(--ho-header-h) + 76px);
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:has([data-toc]) {
		scroll-behavior: smooth;
	}
}

/* Invisible anchors the theme inserts (e.g. #newsletter, #browse-dap-database). */
.hifioasis-anchor {
	display: block;
	height: 0;
	scroll-margin-top: calc(var(--ho-header-h) + 24px);
}

/* Back to top ============================================================= */

.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ho-line);
	border-radius: 999px;
	background: var(--ho-surface);
	color: var(--ho-text);
	box-shadow: var(--ho-shadow-lg);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}

.to-top.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.to-top:hover,
.to-top:focus-visible {
	background: var(--ho-primary);
	border-color: var(--ho-primary);
	color: var(--ho-on-primary);
}

/* Keep clear of the DAP Database's own floating controls. */
.has-dap-app .to-top {
	bottom: 86px;
}

@media (min-width: 720px) {
	.to-top {
		right: 28px;
		bottom: 28px;
	}
}

/* The theme provides the button, so Powerkit's scroll-to-top stays hidden. */
.hifioasis-theme .pk-scroll-to-top {
	display: none !important;
}

@media print {
	.to-top {
		display: none;
	}
}

/* 15. Utilities, motion, print ============================================= */

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

.ho-icon {
	flex-shrink: 0;
}

.sticky-post-flag {
	color: var(--ho-primary);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.overlay,
	.share,
	.comments-wrap,
	.related,
	.prev-next,
	.newsletter,
	.sidebar {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 12pt;
	}

	.prose a::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
	}
}

/* Editor palette colours adapt to dark mode. */
[data-theme="dark"] .has-ink-color,
[data-theme="dark"] .has-navy-color {
	color: var(--ho-text) !important;
}

[data-theme="dark"] .has-slate-color {
	color: var(--ho-muted) !important;
}

[data-theme="dark"] .has-primary-color {
	color: var(--ho-primary) !important;
}

[data-theme="dark"] .has-white-background-color {
	background-color: var(--ho-surface) !important;
}

[data-theme="dark"] .has-mist-background-color {
	background-color: var(--ho-surface-2) !important;
}

[data-theme="dark"] .has-primary-background-color {
	background-color: var(--ho-primary) !important;
	color: var(--ho-on-primary);
}
