/**
 * HyperOS Glass — mobile-first liquid glass shell
 */

/* Legacy / cached builds: never show the old mobile “Sidebar” jump pill (or any [data-hog-sidebar-jump]). */
.hog-sidebar-access,
a.hog-sidebar-access,
[data-hog-sidebar-jump] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

:root {
	--hog-bg: #e8ecf6;
	--hog-surface: rgba(255, 255, 255, 0.58);
	--hog-surface-strong: rgba(255, 255, 255, 0.76);
	--hog-border: rgba(255, 255, 255, 0.55);
	--hog-text: #0c0f18;
	--hog-muted: rgba(12, 15, 24, 0.62);
	--hog-accent: #ff6a3d;
	/* In-content link ink (overridden in Customizer inline CSS). Must contrast with light glass. */
	--hog-link: #ff6a3d;
	--hog-accent-soft: color-mix(in srgb, var(--hog-accent) 35%, transparent);
	--hog-radius: 16px;
	--hog-blur: 14px;
	--hog-saturate: 138%;
	--hog-max: 1180px;
	--hog-shadow: 0 6px 22px rgba(12, 18, 40, 0.08);
	--hog-inset: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
	--hog-input-bg: rgba(255, 255, 255, 0.55);
	--hog-input-border: rgba(12, 15, 24, 0.12);
	--hog-input-focus: color-mix(in srgb, var(--hog-accent) 28%, transparent);
	--hog-code-bg: rgba(12, 15, 24, 0.06);
	--hog-link-subtle: color-mix(in srgb, var(--hog-text) 88%, var(--hog-accent));
	--hog-sidebar-w: 300px;
	--hog-header-logo-max: 40px;
	--hog-backdrop-scrim: rgba(8, 10, 18, 0.42);
	--hog-selection-bg: color-mix(in srgb, var(--hog-accent) 32%, transparent);
	--hog-selection-fg: var(--hog-text);
	--hog-on-accent: #0c0f18;
}

html[data-hog="dark"],
body.hog-theme--dark {
	--hog-bg: #070a12;
	--hog-surface: rgba(22, 26, 38, 0.62);
	--hog-surface-strong: rgba(30, 34, 48, 0.78);
	--hog-border: rgba(255, 255, 255, 0.12);
	--hog-text: #eef1fa;
	--hog-muted: rgba(238, 241, 250, 0.78);
	--hog-accent: #ffb59a;
	--hog-link: #ffb59a;
	--hog-accent-soft: rgba(255, 181, 154, 0.28);
	--hog-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
	--hog-inset: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
	--hog-input-bg: rgba(255, 255, 255, 0.08);
	--hog-input-border: rgba(255, 255, 255, 0.14);
	--hog-input-focus: color-mix(in srgb, var(--hog-accent) 35%, transparent);
	--hog-code-bg: rgba(255, 255, 255, 0.06);
	--hog-link-subtle: color-mix(in srgb, var(--hog-text) 82%, var(--hog-accent));
	--hog-backdrop-scrim: rgba(0, 0, 0, 0.55);
	--hog-selection-bg: color-mix(in srgb, var(--hog-accent) 38%, transparent);
	--hog-selection-fg: #0c0f18;
}

@media (prefers-color-scheme: dark) {
	html:not([data-hog="light"]) body.hog-theme--system {
		--hog-bg: #070a12;
		--hog-surface: rgba(22, 26, 38, 0.62);
		--hog-surface-strong: rgba(30, 34, 48, 0.78);
		--hog-border: rgba(255, 255, 255, 0.12);
		--hog-text: #eef1fa;
		--hog-muted: rgba(238, 241, 250, 0.78);
		--hog-accent: #ffb59a;
		--hog-link: #ffb59a;
		--hog-accent-soft: rgba(255, 181, 154, 0.28);
		--hog-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
		--hog-inset: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
		--hog-input-bg: rgba(255, 255, 255, 0.08);
		--hog-input-border: rgba(255, 255, 255, 0.14);
		--hog-input-focus: color-mix(in srgb, var(--hog-accent) 35%, transparent);
		--hog-code-bg: rgba(255, 255, 255, 0.06);
		--hog-link-subtle: color-mix(in srgb, var(--hog-text) 82%, var(--hog-accent));
		--hog-backdrop-scrim: rgba(0, 0, 0, 0.55);
		--hog-selection-bg: color-mix(in srgb, var(--hog-accent) 38%, transparent);
		--hog-selection-fg: #0c0f18;
	}
}

html[data-hog="light"],
body.hog-theme--light {
	--hog-bg: #e8ecf6;
	--hog-surface: rgba(255, 255, 255, 0.58);
	--hog-surface-strong: rgba(255, 255, 255, 0.76);
	--hog-border: rgba(255, 255, 255, 0.55);
	--hog-text: #0c0f18;
	--hog-muted: rgba(12, 15, 24, 0.62);
	/* Explicitly pin the in-content link colour so it never washes out on
	   light glass regardless of cascade order or JS toggle timing. */
	--hog-link: #ff6a3d;
	--hog-accent: #ff6a3d;
	--hog-accent-soft: color-mix(in srgb, #ff6a3d 35%, transparent);
	--hog-on-accent: #0c0f18;
	--hog-input-bg: rgba(255, 255, 255, 0.55);
	--hog-input-border: rgba(12, 15, 24, 0.12);
	--hog-input-focus: color-mix(in srgb, var(--hog-accent) 28%, transparent);
	--hog-code-bg: rgba(12, 15, 24, 0.06);
	--hog-link-subtle: color-mix(in srgb, var(--hog-accent) 90%, #0c0f18);
	--hog-shadow: 0 6px 22px rgba(12, 18, 40, 0.08);
	--hog-inset: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
	--hog-backdrop-scrim: rgba(8, 10, 18, 0.42);
	--hog-selection-bg: color-mix(in srgb, var(--hog-accent) 32%, transparent);
	--hog-selection-fg: var(--hog-text);
}

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--hog-bg);
	color: var(--hog-text);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

html[data-hog="dark"],
body.hog-theme--dark {
	color-scheme: dark;
}
html[data-hog="light"],
body.hog-theme--light {
	color-scheme: light;
}

::selection {
	background: var(--hog-selection-bg);
	color: var(--hog-selection-fg);
}

body.hog-mesh--light::before,
body.hog-mesh--light::after {
	content: "";
	position: fixed;
	inset: -20%;
	z-index: -1;
	pointer-events: none;
}
body.hog-mesh--light::before {
	opacity: 0.85;
	background:
		radial-gradient(ellipse 70% 55% at 18% 12%, rgba(255, 106, 61, 0.12), transparent 55%),
		radial-gradient(ellipse 55% 45% at 88% 8%, rgba(100, 170, 255, 0.16), transparent 50%),
		radial-gradient(ellipse 60% 50% at 70% 90%, rgba(170, 120, 255, 0.1), transparent 55%);
}
body.hog-mesh--light::after {
	mix-blend-mode: soft-light;
	opacity: 0.5;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.45), transparent 42%);
}

body.hog-mesh--dark::before {
	content: "";
	position: fixed;
	inset: -15%;
	z-index: -1;
	pointer-events: none;
	opacity: 0.7;
	background:
		radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 106, 61, 0.15), transparent 55%),
		radial-gradient(ellipse 60% 45% at 80% 10%, rgba(120, 200, 255, 0.12), transparent 50%);
}

.hog-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hog-skip {
	position: absolute;
	left: -999px;
	top: 0;
	padding: 0.75rem 1rem;
	background: var(--hog-accent);
	color: #fff;
	border-radius: 0 0 8px 0;
	z-index: 9999;
}
.hog-skip:focus {
	left: 0;
}
.hog-skip + .hog-skip {
	top: 2.85rem;
}
.hog-skip + .hog-skip:focus {
	left: 0;
}

.hog-shell {
	width: 100%;
	max-width: var(--hog-max);
	margin-inline: auto;
	padding-inline: max(16px, env(safe-area-inset-left));
	padding-right: max(16px, env(safe-area-inset-right));
}
@media (max-width: 899px) {
	/* Edge-to-edge content on small screens; keep only device safe-area insets. */
	.hog-shell {
		padding-left: env(safe-area-inset-left, 0px);
		padding-right: env(safe-area-inset-right, 0px);
	}
}

.hog-glass {
	background: var(--hog-surface);
	-webkit-backdrop-filter: blur(var(--hog-blur)) saturate(var(--hog-saturate));
	backdrop-filter: blur(var(--hog-blur)) saturate(var(--hog-saturate));
	border: 1px solid var(--hog-border);
	border-radius: var(--hog-radius);
	box-shadow: var(--hog-inset), var(--hog-shadow);
}
.hog-glass--pad {
	padding: clamp(1rem, 3vw, 1.35rem);
}
.hog-glass--pad-sm {
	padding: clamp(0.65rem, 2vw, 0.9rem);
	-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.85)) saturate(calc(var(--hog-saturate) * 0.92));
	backdrop-filter: blur(calc(var(--hog-blur) * 0.85)) saturate(calc(var(--hog-saturate) * 0.92));
}

@media (prefers-reduced-transparency: reduce) {
	.hog-glass,
	.hog-glass--pad-sm,
	.hog-appearance,
	.hog-footer-menu a,
	.hog-drawer .hog-menu--stack > li > a,
	.hog-drawer .hog-menu--stack .sub-menu a,
	.hog-header .hog-nav--desktop.hog-nav--primary .hog-menu > li > a,
	.hog-header .hog-nav--desktop.hog-nav--secondary .hog-menu > li > a {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--hog-surface-strong);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hog-drawer__backdrop,
	.hog-drawer__panel {
		transition-duration: 0.01ms !important;
	}
}

.hog-muted {
	color: var(--hog-muted);
}

.hog-app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.hog-main {
	flex: 1;
	padding-block: 1rem 1.5rem;
}
@media (max-width: 899px) {
	.hog-main {
		padding-block: 0.65rem 1rem;
	}
	.hog-header {
		margin-left: env(safe-area-inset-left, 0px);
		margin-right: env(safe-area-inset-right, 0px);
	}
	.hog-footer {
		margin-left: env(safe-area-inset-left, 0px);
		margin-right: env(safe-area-inset-right, 0px);
	}
}
body.hog--home .hog-main {
	padding-bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4rem));
}

/* Header */
.hog-header {
	position: relative;
	z-index: 100;
	margin-top: max(10px, env(safe-area-inset-top));
	margin-bottom: 0;
	margin-left: max(10px, env(safe-area-inset-left));
	margin-right: max(10px, env(safe-area-inset-right));
	border-radius: calc(var(--hog-radius) + 4px);
}
.hog-header--sticky {
	position: sticky;
	top: 0;
}
.hog-header__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.75rem;
	min-height: 52px;
}
.hog-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--hog-text);
	text-decoration: none;
}
.hog-logo img {
	max-height: var(--hog-header-logo-max, 40px);
	width: auto;
	display: block;
}
.hog-header__titles {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}
.hog-header__tagline {
	margin: 0;
	font-size: 0.72rem;
	line-height: 1.3;
	max-width: 56vw;
}
.hog-header--pad-compact .hog-header__inner {
	padding: 0.4rem 0.6rem;
}
.hog-header--pad-roomy .hog-header__inner {
	padding: 0.75rem 1rem;
}

/* Editable strips: Appearance → Widgets */
.hog-header-widgets {
	margin: 0 max(10px, env(safe-area-inset-left)) 0.5rem;
	margin-right: max(10px, env(safe-area-inset-right));
}
.hog-header-widgets__inner {
	border-radius: calc(var(--hog-radius) - 2px);
}
.hog-footer-widgets {
	margin: 0 max(10px, env(safe-area-inset-left)) 0.75rem;
	margin-right: max(10px, env(safe-area-inset-right));
}
.hog-footer-widgets__inner {
	border-radius: calc(var(--hog-radius) + 2px);
}
.hog-header-widgets .hog-widget,
.hog-footer-widgets .hog-widget {
	margin: 0;
}
.hog-widget__title--header,
.hog-widget__title--footer {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hog-muted);
	margin: 0 0 0.35rem;
}

.hog-nav--desktop {
	display: none;
	align-items: center;
}
@media (min-width: 900px) {
	.hog-nav--desktop {
		display: flex;
	}
	.hog-nav--primary {
		flex: 1;
		justify-content: flex-end;
	}
	.hog-nav-toggle {
		display: none !important;
	}
}

.hog-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}
.hog-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.85rem;
	border-radius: 999px;
	text-decoration: none;
	color: var(--hog-text);
	font-weight: 500;
	font-size: 0.95rem;
}
.hog-menu a:hover,
.hog-menu a:focus-visible {
	background: rgba(255, 255, 255, 0.35);
	outline: none;
}
html[data-hog="dark"] .hog-menu a:hover,
body.hog-theme--dark .hog-menu a:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Liquid-glass chips on header + drawer menu links */
@media (min-width: 900px) {
	.hog-header .hog-nav--desktop.hog-nav--primary .hog-menu > li > a,
	.hog-header .hog-nav--desktop.hog-nav--secondary .hog-menu > li > a {
		background: color-mix(in srgb, var(--hog-surface) 90%, transparent);
		-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.95)) saturate(var(--hog-saturate));
		backdrop-filter: blur(calc(var(--hog-blur) * 0.95)) saturate(var(--hog-saturate));
		border: 1px solid var(--hog-border);
		border-radius: 14px;
		box-shadow: var(--hog-inset), 0 2px 14px rgba(12, 18, 40, 0.07);
		min-height: 38px;
		padding: 0 0.72rem;
		font-size: 0.86rem;
	}
	.hog-header .hog-nav--desktop .hog-menu > li > a:hover,
	.hog-header .hog-nav--desktop .hog-menu > li > a:focus-visible {
		background: color-mix(in srgb, var(--hog-surface-strong) 92%, transparent);
	}
}
.hog-drawer .hog-menu--stack > li > a {
	background: color-mix(in srgb, var(--hog-surface) 88%, transparent);
	-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.9)) saturate(var(--hog-saturate));
	backdrop-filter: blur(calc(var(--hog-blur) * 0.9)) saturate(var(--hog-saturate));
	border: 1px solid var(--hog-border);
	border-radius: 14px;
	box-shadow: var(--hog-inset), 0 2px 10px rgba(12, 18, 40, 0.06);
	margin-bottom: 0.2rem;
}
.hog-drawer .hog-menu--stack > li > a:hover,
.hog-drawer .hog-menu--stack > li > a:focus-visible {
	background: color-mix(in srgb, var(--hog-surface-strong) 90%, transparent);
}
.hog-drawer .hog-menu--stack .sub-menu a {
	border-radius: 12px;
	padding: 0.45rem 0.65rem;
	margin: 0.1rem 0;
	background: color-mix(in srgb, var(--hog-surface) 82%, transparent);
	-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.75)) saturate(var(--hog-saturate));
	backdrop-filter: blur(calc(var(--hog-blur) * 0.75)) saturate(var(--hog-saturate));
	border: 1px solid color-mix(in srgb, var(--hog-border) 85%, transparent);
}

.hog-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0 0;
	display: none;
}
.hog-menu--stack .sub-menu {
	display: block;
	padding-left: 0.75rem;
	margin-top: 0.25rem;
	border-left: 2px solid var(--hog-border);
}
.hog-menu--stack .sub-menu a {
	min-height: 42px;
	font-size: 0.92rem;
}
.hog-menu--stack ul.children,
.hog-menu--stack ul.sub-menu {
	margin-top: 0.2rem;
	padding-left: 0.65rem;
	border-left: 2px solid var(--hog-border);
}
.hog-menu--stack .page_item_has_children > ul {
	margin-top: 0.25rem;
}
@media (min-width: 900px) {
	.hog-menu--primary > li {
		position: relative;
	}
	.hog-menu--primary .sub-menu {
		position: absolute;
		top: calc(100% + 0.35rem);
		left: 0;
		min-width: 220px;
		padding: 0.45rem;
		display: none;
		flex-direction: column;
		gap: 0.15rem;
		background: var(--hog-surface-strong);
		border: 1px solid var(--hog-border);
		border-radius: calc(var(--hog-radius) - 4px);
		box-shadow: var(--hog-shadow);
		-webkit-backdrop-filter: blur(var(--hog-blur)) saturate(var(--hog-saturate));
		backdrop-filter: blur(var(--hog-blur)) saturate(var(--hog-saturate));
		z-index: 120;
	}
	.hog-menu--primary li:hover > .sub-menu,
	.hog-menu--primary li:focus-within > .sub-menu {
		display: flex;
	}
	.hog-menu--primary .sub-menu a {
		border-radius: 12px;
		width: 100%;
		background: color-mix(in srgb, var(--hog-surface-strong) 94%, transparent);
		-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.85)) saturate(var(--hog-saturate));
		backdrop-filter: blur(calc(var(--hog-blur) * 0.85)) saturate(var(--hog-saturate));
		border: 1px solid color-mix(in srgb, var(--hog-border) 80%, transparent);
	}
	/* Nested dropdowns (depth 2–3): fly out to the side instead of clipping under the bar. */
	.hog-menu--primary .sub-menu li {
		position: relative;
	}
	.hog-menu--primary .sub-menu .sub-menu {
		top: 0;
		left: calc(100% + 0.35rem);
		margin-top: 0;
		z-index: 130;
	}
	html[dir="rtl"] .hog-menu--primary .sub-menu .sub-menu {
		left: auto;
		right: calc(100% + 0.35rem);
	}
}
.hog-menu--secondary a {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hog-muted);
	min-height: 40px;
}
.hog-menu--secondary a:hover,
.hog-menu--secondary a:focus-visible {
	color: var(--hog-text);
	background: rgba(255, 255, 255, 0.22);
}
html[data-hog="dark"] .hog-menu--secondary a:hover,
body.hog-theme--dark .hog-menu--secondary a:hover {
	background: rgba(255, 255, 255, 0.08);
}
.hog-header__menus {
	display: none;
	flex: 1;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem 1rem;
	flex-wrap: wrap;
}
@media (min-width: 900px) {
	.hog-header__menus {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		min-width: 0;
	}
	/* Long Primary menus: one row + horizontal scroll instead of a messy wrapped block. */
	.hog-nav--primary {
		min-width: 0;
		flex: 1 1 auto;
	}
	/* overflow must stay visible so dropdown .sub-menu is not clipped (was hidden with overflow-y). */
	.hog-nav--primary > .hog-menu--primary {
		flex-wrap: wrap;
		overflow: visible;
		max-width: 100%;
		gap: 0.35rem 0.45rem;
		row-gap: 0.35rem;
		align-content: flex-start;
		align-items: flex-start;
	}
	.hog-nav--primary > .hog-menu--primary > li > a {
		white-space: nowrap;
		font-size: 0.86rem;
		padding: 0 0.6rem;
		min-height: 40px;
	}
	.hog-nav--secondary {
		flex: 0 1 auto;
		max-width: min(420px, 38vw);
		min-width: 0;
	}
	.hog-nav--secondary > .hog-menu--secondary {
		flex-wrap: wrap;
		overflow: visible;
		max-width: 100%;
		gap: 0.35rem 0.45rem;
		align-content: flex-start;
		align-items: flex-start;
	}
	.hog-nav--secondary > .hog-menu--secondary > li > a {
		white-space: nowrap;
	}
}

body.hog-header-brand--center .hog-header__inner {
	flex-wrap: wrap;
	justify-content: center;
	row-gap: 0.35rem;
}
@media (min-width: 900px) {
	body.hog-header-brand--center .hog-header__brand {
		flex: 0 0 100%;
		display: flex;
		justify-content: center;
		text-align: center;
	}
	body.hog-header-brand--center .hog-header__titles {
		align-items: center;
	}
	body.hog-header-brand--center .hog-header__menus {
		flex: 1 1 100%;
		justify-content: center;
	}
	body.hog-header-brand--center .hog-nav--primary .hog-menu {
		justify-content: center;
	}
	body.hog-header-brand--center .hog-nav--secondary .hog-menu {
		justify-content: center;
	}
}

.hog-header-search--desktop {
	display: none;
	flex: 0 1 220px;
	max-width: 260px;
	min-width: 0;
}
@media (min-width: 900px) {
	.hog-header-search--desktop {
		display: block;
	}
}
.hog-header-search--desktop .hog-search {
	flex-wrap: nowrap;
	gap: 0.35rem;
}
.hog-header-search--desktop .hog-search__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 40px;
	padding: 0 0.75rem;
	font-size: 0.9rem;
}
.hog-header-search--desktop .hog-btn--sm {
	padding: 0 0.65rem;
	min-height: 40px;
	font-size: 0.85rem;
}
.hog-drawer__search {
	margin: 0 0 0.75rem;
}
.hog-drawer__search .hog-search {
	flex-direction: column;
	align-items: stretch;
}
.hog-drawer__search .hog-btn--sm {
	width: 100%;
	justify-content: center;
}

.hog-nav--secondary .hog-menu {
	justify-content: flex-end;
}
.hog-drawer__section {
	margin: 1rem 0 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hog-muted);
}
.hog-menu--social a {
	font-weight: 600;
}
.hog-social-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.hog-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	border: 1px solid var(--hog-border);
	background: var(--hog-surface-strong);
	color: var(--hog-text);
	-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.65)) saturate(calc(var(--hog-saturate) * 0.95));
	backdrop-filter: blur(calc(var(--hog-blur) * 0.65)) saturate(calc(var(--hog-saturate) * 0.95));
	cursor: pointer;
	box-shadow: var(--hog-inset);
}
.hog-iconbtn:active {
	transform: scale(0.96);
}

/* Drawer */
.hog-drawer {
	position: fixed;
	inset: 0;
	z-index: 220;
	pointer-events: none;
	visibility: hidden;
}
.hog-nav-open .hog-drawer {
	pointer-events: auto;
	visibility: visible;
}
.hog-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: var(--hog-backdrop-scrim, rgba(8, 10, 18, 0.42));
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.28s ease;
}
.hog-nav-open .hog-drawer__backdrop {
	opacity: 1;
}
.hog-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	width: min(92vw, 360px);
	height: 100%;
	max-height: 100dvh;
	overflow-y: auto;
	padding: 0.75rem 0.75rem max(0.85rem, calc(0.5rem + env(safe-area-inset-bottom))) 0.75rem;
	transform: translateX(105%);
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
	border-radius: var(--hog-radius) 0 0 var(--hog-radius);
}
.hog-nav-open .hog-drawer__panel {
	transform: translateX(0);
}
html[dir="rtl"] .hog-drawer__panel {
	right: auto;
	left: 0;
	transform: translateX(-105%);
	border-radius: 0 var(--hog-radius) var(--hog-radius) 0;
}
html[dir="rtl"] .hog-nav-open .hog-drawer__panel {
	transform: translateX(0);
}
.hog-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}
.hog-menu--stack {
	flex-direction: column;
	gap: 0.35rem;
	align-items: stretch;
}
/* Do not set a flat background here — it overrides liquid-glass rules in the drawer. */
.hog-menu--stack a {
	width: 100%;
	border-radius: 14px;
}
.hog-drawer .hog-menu--stack {
	align-items: center;
	max-width: 100%;
}
.hog-drawer .hog-menu--stack > li {
	width: 100%;
	max-width: 320px;
	margin-inline: auto;
}
.hog-drawer .hog-menu--stack > li > a,
.hog-drawer .hog-menu--stack .sub-menu a {
	justify-content: center;
	text-align: center;
}
.hog-drawer .hog-menu--stack .sub-menu {
	width: 100%;
	max-width: 320px;
	margin-inline: auto;
	padding-left: 0;
	border-left: 0;
}
.hog-drawer .hog-menu--social > li {
	max-width: 100%;
}
.hog-drawer .hog-menu--social a {
	justify-content: center;
}

/* Layout — content column first (left in LTR) = main; second column = right sidebar */
.hog-layout {
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 900px) {
	.hog-layout--sidebar {
		grid-template-columns: minmax(0, 1fr) minmax(260px, var(--hog-sidebar-w, 300px));
		align-items: start;
	}
	/* Single post: stretch row so inner sidebar can stay in view for the whole article scroll. */
	.hog-layout--single-post.hog-layout--sidebar {
		align-items: stretch;
	}
	.hog-layout--single-post.hog-layout--sidebar .hog-layout__sidebar {
		align-self: stretch;
		min-height: 0;
	}
	/* Same idea as reference miui-themes-id: sticky inner column, top clears header + admin bar (see --hog-sticky-sidebar-top). */
	.hog-layout--single-post.hog-layout--sidebar .hog-sidebar--pinned {
		position: -webkit-sticky;
		position: sticky;
		top: calc(env(safe-area-inset-top, 0px) + var(--hog-sticky-sidebar-top, 92px));
		z-index: 25;
	}
	.hog-layout--full {
		grid-template-columns: 1fr;
	}
	html[dir="rtl"] .hog-layout--sidebar {
		grid-template-columns: minmax(260px, var(--hog-sidebar-w, 300px)) minmax(0, 1fr);
	}
}
.hog-layout__sidebar {
	color: var(--hog-text);
}
.hog-layout__sidebar--static {
	border: 1px solid var(--hog-border);
	box-shadow: var(--hog-inset), var(--hog-shadow);
}
.hog-layout__sidebar .widget,
.hog-widget {
	color: var(--hog-text);
}
.hog-layout__sidebar .widget a,
.hog-widget a {
	color: var(--hog-link);
	text-decoration: none;
	font-weight: 600;
}
.hog-layout__sidebar .widget a:hover,
.hog-widget a:hover {
	color: var(--hog-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.hog-layout__sidebar .widget ul,
.hog-widget ul {
	margin: 0;
	padding-left: 1.1rem;
	color: var(--hog-text);
}
.hog-layout__sidebar .widget li,
.hog-widget li {
	margin: 0.25rem 0;
}
.hog-layout__sidebar .widget select,
.hog-layout__sidebar .widget input:not([type="checkbox"]):not([type="radio"]),
.hog-layout__sidebar .widget textarea,
.hog-widget select,
.hog-widget input:not([type="checkbox"]):not([type="radio"]),
.hog-widget textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.65rem;
	border-radius: 12px;
	border: 1px solid var(--hog-input-border);
	background: var(--hog-input-bg);
	color: var(--hog-text);
	font: inherit;
}
.hog-layout__sidebar .widget caption,
.hog-widget caption,
.hog-layout__sidebar .widget .wp-caption-text,
.hog-widget .wp-caption-text {
	color: var(--hog-muted);
	font-size: 0.86rem;
}

.hog-page-title {
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	margin: 0 0 1rem;
}

.hog-loop {
	display: grid;
	gap: 1rem;
}

/* Cards */
.hog-loop__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: calc(var(--hog-radius) - 6px);
}
.hog-loop__title {
	margin: 0.35rem 0 0.25rem;
	font-size: 1.15rem;
}
.hog-loop__title a {
	color: var(--hog-text);
	text-decoration: none;
	transition: color 0.15s ease;
}
.hog-loop__title a:hover,
.hog-loop__title a:focus-visible {
	color: var(--hog-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}
/* Light mode: card titles use accent ink so they read as links, not body text */
html[data-hog="light"] .hog-loop__title a,
body.hog-theme--light .hog-loop__title a {
	color: var(--hog-link);
}
.hog-loop__excerpt {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
}

.hog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.15rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hog-btn:active {
	transform: scale(0.97);
}
.hog-btn--sm {
	min-height: 40px;
	padding: 0 0.9rem;
	font-size: 0.88rem;
}
.hog-btn--primary {
	background: linear-gradient(135deg, var(--hog-accent), color-mix(in srgb, var(--hog-accent) 55%, #ffffff));
	color: var(--hog-on-accent, #0c0f18) !important;
	box-shadow: 0 10px 28px var(--hog-accent-soft);
	font-weight: 700;
	letter-spacing: 0.01em;
}
html[data-hog="dark"] .hog-btn--primary,
body.hog-theme--dark .hog-btn--primary {
	color: var(--hog-on-accent, #0c0f18) !important;
	background: linear-gradient(135deg, var(--hog-accent), color-mix(in srgb, var(--hog-accent) 40%, #1a1f2e));
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.hog-card__actions .hog-btn--primary,
.hog-card__actions .hog-btn--ghost {
	min-height: 48px;
	padding-inline: 1.25rem;
}
.hog-btn--ghost {
	background: rgba(255, 255, 255, 0.35);
	color: var(--hog-text) !important;
	border-color: var(--hog-border);
}
html[data-hog="dark"] .hog-btn--ghost,
body.hog-theme--dark .hog-btn--ghost {
	background: rgba(255, 255, 255, 0.08);
}

/* Post content: block + pasted CTA buttons — force readable labels */
.hog-entry .wp-block-button:not(.is-style-outline):not(.is-style-outline--1) .wp-block-button__link,
.hog-entry .wp-block-file .wp-block-file__button,
.hog-entry .wp-element-button {
	background-color: var(--hog-accent) !important;
	background-image: none !important;
	color: var(--hog-on-accent, #0c0f18) !important;
	font-weight: 700 !important;
	border: none !important;
	box-shadow: 0 8px 22px var(--hog-accent-soft);
	text-decoration: none !important;
}
.hog-entry .wp-block-button.is-style-outline .wp-block-button__link,
.hog-entry .wp-block-button.is-style-outline--1 .wp-block-button__link {
	color: var(--hog-text) !important;
	border: 2px solid var(--hog-accent) !important;
	background: transparent !important;
	background-image: none !important;
}
.hog-entry .wp-block-buttons.is-vertical .wp-block-button__link {
	justify-content: center;
	width: 100%;
	text-align: center;
}
.hog-entry .wp-block-buttons.is-layout-flex {
	gap: 0.65rem;
	flex-wrap: wrap;
}
.hog-sidebar__intro {
	margin: 0 0 0.75rem;
}

/* Single post sidebar: clean stack (one glass shell), editable widgets, anchor for mobile jump */
#hog-post-secondary {
	scroll-margin-top: max(5.5rem, calc(env(safe-area-inset-top) + 4rem));
}
.hog-layout__sidebar .hog-widget--clean {
	padding: 0.65rem 0;
	margin: 0;
	border-bottom: 1px solid var(--hog-border);
	box-shadow: none;
	background: transparent;
	border-radius: 0;
}
.hog-sidebar--pinned > .hog-widget--clean:first-of-type {
	padding-top: 0;
}
.hog-sidebar--pinned > .hog-widget--clean:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}
.hog-widget__title--clean {
	font-size: 0.78rem;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--hog-muted);
	font-weight: 700;
}
.hog-sidebar__empty-note {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
}
.hog-sideblock--flat {
	margin: 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--hog-border);
	box-shadow: none;
	background: transparent;
	border-radius: 0;
}
.hog-sideinner .hog-sideblock--flat:first-child {
	border-top: 0;
	padding-top: 0;
}
@media (max-width: 899px) {
	/* Default: no post sidebar column on small screens (no “sidebar” UI after the article). */
	body.hog-post-sidebar-mobile--hidden .hog-layout--single-post .hog-layout__sidebar {
		display: none !important;
	}
	.hog-layout--single-post.hog-layout--sidebar {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.hog-layout--single-post .hog-layout__sidebar {
		width: 100%;
		max-width: 100%;
	}
	.hog-layout--single-post .hog-layout__content {
		min-width: 0;
	}
	.hog-layout--single-post .hog-sidebar--pinned {
		position: static;
		max-height: none;
		overflow: visible;
	}
	/* “Hidden” mode: no Popular/Latest strip on phones. “Below” mode: show autofill when enabled. */
	body.hog-post-sidebar-mobile--hidden .hog-sidebar__autofill {
		display: none !important;
	}
	body.hog-post-sidebar-mobile--below .hog-layout--single-post .hog-layout__sidebar:not(.hog-layout__sidebar--has-widgets) {
		display: none !important;
	}
}

/* Hero */
.hog-hero {
	margin-bottom: 1.5rem;
}
.hog-hero__grid {
	display: grid;
	gap: 1rem;
}
@media (min-width: 768px) {
	.hog-hero__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.hog-hero__item {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.hog-hero__media img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}
@media (min-width: 768px) {
	.hog-hero__media img {
		height: 180px;
	}
}
.hog-hero__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}
.hog-hero__title a {
	color: var(--hog-text);
	text-decoration: none;
}

/* Single */
.hog-single__title {
	font-size: clamp(1.5rem, 4.5vw, 2rem);
	margin: 0 0 0.35rem;
	line-height: 1.2;
}
.hog-single__feat img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: calc(var(--hog-radius) - 4px);
	margin-top: 1rem;
}
.hog-entry {
	font-size: 1.05rem;
}
/* In-content headings: compact glass chips */
.hog-entry :where(h2, h3, h4, h5, h6),
.hog-entry .wp-block-heading {
	margin: 1.35rem 0 0.65rem;
	padding: 0.45rem 0.75rem;
	border-radius: calc(var(--hog-radius) - 4px);
	background: var(--hog-surface);
	border: 1px solid var(--hog-border);
	box-shadow: var(--hog-inset), 0 3px 14px rgba(12, 18, 40, 0.06);
	-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.55)) saturate(calc(var(--hog-saturate) * 0.9));
	backdrop-filter: blur(calc(var(--hog-blur) * 0.55)) saturate(calc(var(--hog-saturate) * 0.9));
	font-weight: 700;
	line-height: 1.35;
	color: var(--hog-text);
}
.hog-entry h2 {
	font-size: clamp(1.12rem, 3.2vw, 1.28rem);
}
.hog-entry h3 {
	font-size: clamp(1.02rem, 2.8vw, 1.12rem);
}
.hog-entry h4 {
	font-size: 1rem;
}
.hog-entry h5,
.hog-entry h6 {
	font-size: 0.92rem;
	padding: 0.35rem 0.6rem;
}
.hog-entry > :where(h2, h3, h4, h5, h6):first-child,
.hog-entry > .wp-block-heading:first-child {
	margin-top: 0.35rem;
}
/* In-content links: always readable (blocks / has-text-color often wash links out). */
.hog-entry a:not(.wp-block-button__link):not(.hog-btn),
.hog-page__content a:not(.wp-block-button__link):not(.hog-btn),
.hog-single .hog-entry a:not(.wp-block-button__link):not(.hog-btn),
article.hog-page .hog-entry a:not(.wp-block-button__link):not(.hog-btn),
.hog-page-links a,
.hog-archive-head a,
.hog-muted a:not(.hog-btn) {
	color: var(--hog-link, #c43414) !important;
	-webkit-text-fill-color: var(--hog-link, #c43414) !important;
	font-weight: 600;
	text-decoration: underline !important;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.18em;
	text-decoration-skip-ink: auto;
}
.hog-entry .has-text-color a:not(.wp-block-button__link):not(.hog-btn),
.hog-entry p.has-text-color a:not(.wp-block-button__link):not(.hog-btn),
.hog-entry .has-link-color a:not(.wp-block-button__link):not(.hog-btn),
.hog-page__content .has-text-color a:not(.wp-block-button__link):not(.hog-btn),
.hog-page__content p.has-text-color a:not(.wp-block-button__link):not(.hog-btn) {
	color: var(--hog-link, #c43414) !important;
	-webkit-text-fill-color: var(--hog-link, #c43414) !important;
}
.hog-entry a:not(.wp-block-button__link):not(.hog-btn):hover,
.hog-entry a:not(.wp-block-button__link):not(.hog-btn):focus-visible,
.hog-page__content a:not(.wp-block-button__link):not(.hog-btn):hover,
.hog-page__content a:not(.wp-block-button__link):not(.hog-btn):focus-visible,
.hog-single .hog-entry a:not(.wp-block-button__link):not(.hog-btn):hover,
.hog-archive-head a:hover,
.hog-muted a:not(.hog-btn):hover {
	color: color-mix(in srgb, var(--hog-link, #c43414) 65%, #0c0f18) !important;
	-webkit-text-fill-color: color-mix(in srgb, var(--hog-link, #c43414) 65%, #0c0f18) !important;
}
/* Light mode: belt-and-suspenders explicit link colour for content areas */
html[data-hog="light"] .hog-entry a:not(.wp-block-button__link):not(.hog-btn),
body.hog-theme--light .hog-entry a:not(.wp-block-button__link):not(.hog-btn),
html[data-hog="light"] .hog-page__content a:not(.wp-block-button__link):not(.hog-btn),
body.hog-theme--light .hog-page__content a:not(.wp-block-button__link):not(.hog-btn),
html[data-hog="light"] .hog-entry .has-text-color a:not(.wp-block-button__link):not(.hog-btn),
body.hog-theme--light .hog-entry .has-text-color a:not(.wp-block-button__link):not(.hog-btn),
html[data-hog="light"] .hog-muted a:not(.hog-btn),
body.hog-theme--light .hog-muted a:not(.hog-btn) {
	color: var(--hog-link, #ff6a3d) !important;
	-webkit-text-fill-color: var(--hog-link, #ff6a3d) !important;
}
html[data-hog="light"] .hog-entry a:not(.wp-block-button__link):not(.hog-btn):hover,
body.hog-theme--light .hog-entry a:not(.wp-block-button__link):not(.hog-btn):hover,
html[data-hog="light"] .hog-page__content a:not(.wp-block-button__link):not(.hog-btn):hover,
body.hog-theme--light .hog-page__content a:not(.wp-block-button__link):not(.hog-btn):hover {
	color: color-mix(in srgb, var(--hog-link, #ff6a3d) 75%, #0c0f18) !important;
	-webkit-text-fill-color: color-mix(in srgb, var(--hog-link, #ff6a3d) 75%, #0c0f18) !important;
}
/* Dark mode: hover should lighten toward white (not darken toward #0c0f18 = invisible) */
html[data-hog="dark"] .hog-entry a:not(.wp-block-button__link):not(.hog-btn),
body.hog-theme--dark .hog-entry a:not(.wp-block-button__link):not(.hog-btn),
html[data-hog="dark"] .hog-page__content a:not(.wp-block-button__link):not(.hog-btn),
body.hog-theme--dark .hog-page__content a:not(.wp-block-button__link):not(.hog-btn),
html[data-hog="dark"] .hog-entry .has-text-color a:not(.wp-block-button__link):not(.hog-btn),
body.hog-theme--dark .hog-entry .has-text-color a:not(.wp-block-button__link):not(.hog-btn) {
	color: var(--hog-link, #ffb59a) !important;
	-webkit-text-fill-color: var(--hog-link, #ffb59a) !important;
}
html[data-hog="dark"] .hog-entry a:not(.wp-block-button__link):not(.hog-btn):hover,
body.hog-theme--dark .hog-entry a:not(.wp-block-button__link):not(.hog-btn):hover,
html[data-hog="dark"] .hog-page__content a:not(.wp-block-button__link):not(.hog-btn):hover,
body.hog-theme--dark .hog-page__content a:not(.wp-block-button__link):not(.hog-btn):hover {
	color: color-mix(in srgb, var(--hog-link, #ffb59a) 70%, #ffffff) !important;
	-webkit-text-fill-color: color-mix(in srgb, var(--hog-link, #ffb59a) 70%, #ffffff) !important;
}
.hog-entry blockquote {
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--hog-accent);
	background: var(--hog-code-bg);
	border-radius: 0 var(--hog-radius) var(--hog-radius) 0;
	color: var(--hog-text);
}
.hog-entry pre,
.hog-entry code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.hog-entry pre {
	padding: 1rem;
	border-radius: calc(var(--hog-radius) - 4px);
	background: var(--hog-code-bg);
	border: 1px solid var(--hog-border);
	color: var(--hog-text);
	overflow: auto;
}
.hog-entry table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	color: var(--hog-text);
}
.hog-entry th,
.hog-entry td {
	border: 1px solid var(--hog-border);
	padding: 0.5rem 0.65rem;
}
.hog-entry th {
	background: var(--hog-surface-strong);
}
.hog-entry img,
.hog-entry iframe {
	max-width: 100%;
	height: auto;
}

/* Dark / system-dark — keep article & blocks on theme tokens (reference themes avoid “orphan” grays) */
html[data-hog="dark"] .hog-entry,
body.hog-theme--dark .hog-entry,
html[data-hog="dark"] .hog-single,
body.hog-theme--dark .hog-single {
	color: var(--hog-text);
}
@media (prefers-color-scheme: dark) {
	html:not([data-hog="light"]) body.hog-theme--system .hog-entry,
	html:not([data-hog="light"]) body.hog-theme--system .hog-single {
		color: var(--hog-text);
	}
}
html[data-hog="dark"] .hog-entry :where(h1, h2, h3, h4, h5, h6),
body.hog-theme--dark .hog-entry :where(h1, h2, h3, h4, h5, h6) {
	color: var(--hog-text);
}
html[data-hog="dark"] .hog-entry :where(li, dd, dt, td, th, figcaption),
body.hog-theme--dark .hog-entry :where(li, dd, dt, td, th, figcaption) {
	color: inherit;
}
html[data-hog="dark"] .hog-entry .wp-block-quote,
body.hog-theme--dark .hog-entry .wp-block-quote,
html[data-hog="dark"] .hog-entry .wp-block-pullquote,
body.hog-theme--dark .hog-entry .wp-block-pullquote {
	color: var(--hog-text);
	border-color: var(--hog-border);
}
html[data-hog="dark"] .hog-entry .wp-block-code,
body.hog-theme--dark .hog-entry .wp-block-code {
	background: var(--hog-code-bg);
	color: var(--hog-text);
	border-color: var(--hog-border);
}
html[data-hog="dark"] .hog-entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
body.hog-theme--dark .hog-entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: color-mix(in srgb, var(--hog-surface) 55%, transparent);
}
html[data-hog="dark"] .hog-entry .has-background:not(.wp-block-button),
body.hog-theme--dark .hog-entry .has-background:not(.wp-block-button) {
	color: var(--hog-text);
}

/* Search */
.hog-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.hog-search__input {
	flex: 1 1 200px;
	min-height: 44px;
	padding: 0 1rem;
	border-radius: 999px;
	border: 1px solid var(--hog-border);
	background: var(--hog-surface);
	color: var(--hog-text);
}

/* Pagination — row layout for both div.nav-links (core) and ul.page-numbers (paginate_links list). */
.navigation.pagination,
.hog-pagination {
	margin-top: 1.5rem;
}
.navigation.pagination .nav-links,
.hog-pagination .nav-links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.navigation.pagination ul.page-numbers,
.hog-pagination ul.page-numbers {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
.navigation.pagination ul.page-numbers li,
.hog-pagination ul.page-numbers li {
	margin: 0;
	padding: 0;
	list-style: none;
	display: inline-flex;
}
/* inline-flex keeps page number controls on one horizontal band (display:flex would stack as blocks). */
.navigation.pagination a.page-numbers,
.navigation.pagination span.page-numbers,
.hog-pagination a.page-numbers,
.hog-pagination span.page-numbers {
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.65rem;
	border-radius: 12px;
	text-decoration: none;
	background: var(--hog-surface);
	border: 1px solid var(--hog-border);
	color: var(--hog-text);
	box-sizing: border-box;
}
.navigation.pagination span.page-numbers.current,
.hog-pagination span.page-numbers.current {
	background: color-mix(in srgb, var(--hog-accent) 22%, var(--hog-surface));
	border-color: color-mix(in srgb, var(--hog-accent) 45%, var(--hog-border));
	font-weight: 700;
}

/* Comments */
.hog-comments__title {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 3.5vw, 1.35rem);
}
.hog-comments__reply-title {
	margin: 1.25rem 0 0.75rem;
	font-size: 1.05rem;
}
.hog-comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.hog-comment-list .children {
	list-style: none;
	margin: 0.75rem 0 0;
	padding-left: 0.65rem;
	border-left: 2px solid var(--hog-border);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.hog-comment {
	list-style: none;
}
.hog-comment__article {
	padding: 0;
	overflow: hidden;
}
.hog-comment__inner {
	display: flex;
	gap: 0.85rem;
	padding: clamp(0.85rem, 2.5vw, 1.1rem);
}
.hog-comment__avatar-img {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.hog-comment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.65rem;
	font-size: 0.88rem;
}
.hog-comment__author {
	font-style: normal;
	font-weight: 700;
	color: var(--hog-text);
}
.hog-comment__author a {
	color: inherit;
	text-decoration: none;
}
.hog-comment__date {
	text-decoration: none;
	font-size: 0.82rem;
}
.hog-comment__text {
	margin-top: 0.45rem;
	font-size: 0.95rem;
	color: var(--hog-text);
	line-height: 1.55;
	word-break: break-word;
}
.hog-comment__text a {
	color: var(--hog-accent);
}
.hog-comment__reply {
	margin-top: 0.65rem;
}
.hog-comment__reply a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 0.85rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
	border: 1px solid var(--hog-border);
	background: var(--hog-surface-strong);
	color: var(--hog-text);
}
.hog-comments-nav {
	margin-top: 1rem;
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.hog-comments-nav a {
	color: var(--hog-accent);
	text-decoration: none;
	font-weight: 600;
}
.hog-comment-form {
	display: grid;
	gap: 0.85rem;
	margin-top: 1rem;
}
.hog-comment-form__field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: var(--hog-muted);
}
.hog-comment-form__field input[type="text"],
.hog-comment-form__field input[type="email"],
.hog-comment-form__field input[type="url"],
.hog-comment-form__field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.85rem;
	border-radius: 14px;
	border: 1px solid var(--hog-input-border);
	background: var(--hog-input-bg);
	color: var(--hog-text);
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}
.hog-comment-form__field textarea {
	min-height: 140px;
	resize: vertical;
}
.hog-comment-form__field input:focus-visible,
.hog-comment-form__field textarea:focus-visible {
	outline: 2px solid var(--hog-input-focus);
	outline-offset: 2px;
}
.hog-comment-form__field--comment textarea::placeholder {
	color: var(--hog-muted);
}
.hog-comment-form .required,
.hog-comment-form .comment-notes,
.hog-comment-form .logged-in-as {
	color: var(--hog-muted);
	font-size: 0.88rem;
}
.hog-comment-form .form-submit {
	margin: 0;
}

/* Footer */
.hog-footer {
	margin: 2rem max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom));
	margin-right: max(10px, env(safe-area-inset-right));
	border-radius: calc(var(--hog-radius) + 4px);
}
.hog-footer__grid {
	display: grid;
	gap: 1.25rem;
	padding: 1.25rem;
	align-items: start;
}
@media (min-width: 780px) {
	.hog-footer__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
	}
	.hog-footer__grid--no-explore:not(.hog-footer__grid--no-policies) {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
	.hog-footer__grid--no-policies:not(.hog-footer__grid--no-explore) {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
	.hog-footer__grid--no-explore.hog-footer__grid--no-policies {
		grid-template-columns: minmax(0, 1fr);
	}
	/* Brand + one tall column of Explore then Policies (less duplicate “two menus” look). */
	.hog-footer__grid--stack-menus {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
	}
}
.hog-footer__col--stacked-links {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}
.hog-footer__logo img {
	max-height: 44px;
	width: auto;
	display: block;
	margin-bottom: 0.5rem;
}
.hog-footer__name {
	display: block;
	font-size: 1.05rem;
	color: var(--hog-text);
	margin-bottom: 0.25rem;
}
.hog-footer__tag {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
}
.hog-footer__col-title {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hog-muted);
	margin-bottom: 0.5rem;
	text-align: center;
	width: 100%;
}
body.hog-footer--no-menu-titles .hog-footer__col-title {
	display: none;
}
.hog-footer__col--aside {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
/* Footer menus: mobile = vertical centered stack; desktop = horizontal glass chips. */
.hog-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	width: 100%;
}
.hog-footer-menu li {
	width: 100%;
	max-width: min(100%, 320px);
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 0;
}
.hog-footer-menu--social {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
}
.hog-footer-menu a,
.hog-footer-menu a:link,
.hog-footer-menu a:visited {
	/* Hardcoded light-mode ink so labels never wash out on pale glass. */
	color: #0c0f18;
	-webkit-text-fill-color: #0c0f18;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.86rem;
	padding: 0.45rem 0.9rem;
	min-height: 44px;
	width: 100%;
	max-width: min(100%, 320px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: linear-gradient(
		165deg,
		rgba(255, 255, 255, 0.88) 0%,
		rgba(255, 255, 255, 0.55) 48%,
		rgba(248, 250, 255, 0.42) 100%
	);
	-webkit-backdrop-filter: blur(calc(var(--hog-blur) * 0.95)) saturate(var(--hog-saturate));
	backdrop-filter: blur(calc(var(--hog-blur) * 0.95)) saturate(var(--hog-saturate));
	border: 1px solid rgba(12, 15, 24, 0.14);
	border-radius: 14px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 4px 18px rgba(12, 18, 40, 0.1);
}
.hog-footer-menu a .hog-social-link {
	color: inherit;
	-webkit-text-fill-color: inherit;
}
.hog-footer-menu a:hover,
.hog-footer-menu a:focus-visible {
	color: #c43414;
	-webkit-text-fill-color: #c43414;
	background: color-mix(in srgb, var(--hog-surface-strong) 94%, transparent);
	border-color: color-mix(in srgb, var(--hog-accent) 28%, var(--hog-border));
}
.hog-footer-menu--legal a {
	font-weight: 600;
	font-size: 0.84rem;
}
/* Liquid-glass icon chip inside each footer menu link */
.hog-footer-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.15em;
	height: 1.15em;
	margin-right: 0.38em;
	vertical-align: middle;
	position: relative;
	top: -0.05em;
}
.hog-footer-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}
html[data-hog="dark"] .hog-footer-menu a,
html[data-hog="dark"] .hog-footer-menu a:link,
html[data-hog="dark"] .hog-footer-menu a:visited,
body.hog-theme--dark .hog-footer-menu a,
body.hog-theme--dark .hog-footer-menu a:link,
body.hog-theme--dark .hog-footer-menu a:visited {
	color: #eef1fa;
	-webkit-text-fill-color: #eef1fa;
	background: linear-gradient(165deg, rgba(52, 58, 78, 0.92) 0%, rgba(34, 40, 56, 0.85) 100%);
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.1) inset,
		0 6px 20px rgba(0, 0, 0, 0.35);
}
/* Footer nav: vertical ≤767px, horizontal ≥768px (explicit so optimizers / order cannot flip it). */
@media (max-width: 767px) {
	.hog-footer .hog-footer-menu,
	.hog-footer .hog-footer-menu--social {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		width: 100% !important;
	}
	.hog-footer .hog-footer-menu li {
		width: 100% !important;
		max-width: min(100%, 320px) !important;
	}
}
@media (min-width: 768px) {
	.hog-footer__col-title {
		text-align: left;
	}
	.hog-footer .hog-footer-menu,
	.hog-footer .hog-footer-menu--social {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: flex-start;
		gap: 0.45rem !important;
		width: auto !important;
		max-width: 100% !important;
	}
	.hog-footer__col--aside .hog-footer-menu,
	.hog-footer__col--aside .hog-footer-menu--social {
		justify-content: flex-end;
	}
	.hog-footer__col--stacked-links .hog-footer-menu,
	.hog-footer__col--stacked-links .hog-footer-menu--social {
		justify-content: flex-start;
	}
	.hog-footer .hog-footer-menu li {
		width: auto !important;
		max-width: none !important;
		display: flex;
		justify-content: center;
	}
	.hog-footer .hog-footer-menu a,
	.hog-footer .hog-footer-menu a:link,
	.hog-footer .hog-footer-menu a:visited {
		width: auto !important;
		max-width: none !important;
		min-width: 0;
		padding: 0.38rem 0.75rem;
		min-height: 40px;
	}
}
.hog-copy {
	padding: 0 1.25rem 1.25rem;
	font-size: 0.88rem;
}
.hog-disclaimer {
	padding: 0 1.25rem;
	font-size: 0.85rem;
}

/* Theme card (Xiaomi) */
.hog-card--theme .hog-card__title {
	margin-top: 0.35rem;
}
.hog-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.hog-badge {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.35);
	border: 1px solid var(--hog-border);
}
.hog-badge--accent {
	background: linear-gradient(120deg, rgba(255, 106, 61, 0.25), rgba(120, 190, 255, 0.2));
}
.hog-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}
.hog-card__notes,
.hog-card__legal {
	margin-top: 0.75rem;
	font-size: 0.88rem;
}

/* Appearance FAB */
.hog-appearance[hidden] {
	display: none !important;
}
.hog-appearance {
	position: fixed;
	left: max(0.85rem, env(safe-area-inset-left));
	bottom: max(0.85rem, env(safe-area-inset-bottom));
	z-index: 300;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 1px solid var(--hog-border);
	color: var(--hog-text);
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-backdrop-filter: blur(22px) saturate(var(--hog-saturate));
	backdrop-filter: blur(22px) saturate(var(--hog-saturate));
	background:
		radial-gradient(120% 90% at 28% 12%, rgba(255, 255, 255, 0.75), transparent 42%),
		var(--hog-surface);
	box-shadow: var(--hog-inset), var(--hog-shadow);
}
html[dir="rtl"] .hog-appearance {
	left: auto;
	right: max(0.85rem, env(safe-area-inset-right));
}

.hog-ad-shell {
	margin-bottom: 1rem;
}

.hog-widget__title {
	font-size: 0.95rem;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--hog-muted);
}

/* Homepage — 3×3 latest grid (no sidebar column) */
.hog-home-app {
	padding-bottom: 0.25rem;
}
.hog-home-app__main {
	min-width: 0;
}
.hog-layout__sidebar .hog-widget ~ .hog-sideinner {
	margin-top: 1rem;
}
.hog-sidehome {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.hog-sideblock__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.hog-sideblock__row {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.25rem 0;
	text-decoration: none;
	color: var(--hog-text);
	border-radius: 12px;
}
.hog-sideblock__row:hover,
.hog-sideblock__row:focus-visible {
	background: color-mix(in srgb, var(--hog-accent) 12%, transparent);
	outline: none;
}
.hog-sideblock__thumb {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--hog-code-bg);
}
.hog-sideblock__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hog-sideblock__thumb-ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, color-mix(in srgb, var(--hog-accent) 25%, transparent), transparent);
}
.hog-sideblock__text {
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hog-sideblock__empty {
	margin: 0;
	font-size: 0.86rem;
}

.hog-home-hero {
	padding-bottom: 0.25rem;
}
.hog-home-latest {
	padding-top: 0.25rem;
}
.hog-hero__label {
	margin: 0 0 0.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hog-hero__body--compact {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}
.hog-hero__placeholder {
	display: block;
	width: 100%;
	height: 200px;
	border-radius: calc(var(--hog-radius) - 6px);
	background: linear-gradient(135deg, color-mix(in srgb, var(--hog-accent) 18%, transparent), rgba(120, 190, 255, 0.12));
}
@media (min-width: 768px) {
	.hog-hero__placeholder {
		height: 180px;
	}
}
.hog-latest-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}
.hog-latest-head__title {
	margin: 0;
}

/* Latest: 3×3 from tablet up; 1–2 columns on small phones */
.hog-loop--grid-3 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
}
@media (min-width: 420px) {
	.hog-loop--grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6rem 0.65rem;
	}
}
@media (min-width: 768px) {
	.hog-loop--grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.7rem 0.8rem;
	}
}
.hog-loop--archive-grid {
	margin-top: 0.15rem;
}
.hog-card--grid {
	padding: 0;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	border-radius: calc(var(--hog-radius) - 2px);
}
.hog-card--grid:active {
	transform: scale(0.985);
}
.hog-card--grid__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	min-height: 100%;
}
.hog-card--grid__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hog-code-bg);
	border-radius: calc(var(--hog-radius) - 4px) calc(var(--hog-radius) - 4px) 0 0;
}
.hog-card--grid__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}
.hog-card--grid__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, color-mix(in srgb, var(--hog-accent) 22%, transparent), rgba(120, 190, 255, 0.1));
}
.hog-card--grid__title {
	margin: 0;
	padding: 0.4rem 0.45rem 0.5rem;
	font-size: clamp(0.72rem, 2.4vw, 0.82rem);
	line-height: 1.28;
	font-weight: 700;
	color: var(--hog-text);
	letter-spacing: -0.01em;
}
.hog-card--grid__link:hover .hog-card--grid__title,
.hog-card--grid__link:focus-visible .hog-card--grid__title {
	color: var(--hog-accent);
}

/* Fallback menus: pages & categories */
.hog-menu .page_item a,
.hog-menu .page_item_has_children > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.85rem;
	border-radius: 999px;
	text-decoration: none;
	color: var(--hog-text);
	font-weight: 500;
	font-size: 0.95rem;
}
.hog-menu--stack .page_item a,
.hog-menu--stack .page_item_has_children > a {
	width: 100%;
	border-radius: 14px;
}
.hog-menu .cat-item a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 0.85rem;
	border-radius: 999px;
	text-decoration: none;
	color: var(--hog-muted);
	font-weight: 600;
	font-size: 0.85rem;
}
.hog-menu--stack .cat-item a {
	width: 100%;
	border-radius: 14px;
}
.hog-nav--secondary:has(ul:empty) {
	display: none;
}

@media (max-width: 559px) {
	.hog-header__inner {
		padding-block: 0.45rem;
	}
	.hog-hero__grid {
		gap: 0.85rem;
	}
	.hog-hero__media img,
	.hog-hero__placeholder {
		height: min(52vw, 220px);
	}
}

/* Footer extra + ad regions */
.hog-footer__extra {
	margin-top: 0.65rem;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--hog-muted);
}
.hog-footer__extra a {
	color: var(--hog-accent);
}
.hog-ad {
	color: var(--hog-text);
	/* Reserve space for async ad loads (AdSense / auto ads); tweak height to match your unit. */
	min-height: 90px;
}
.hog-ad .adsbygoogle,
.hog-ad iframe {
	max-width: 100%;
}
.hog-ad a {
	color: var(--hog-accent);
}

/* Pagination dots + disabled */
.navigation.pagination .page-numbers.dots,
.hog-pagination .page-numbers.dots,
.navigation.pagination span.page-numbers.current,
.hog-pagination span.page-numbers.current {
	color: var(--hog-text);
}

/* Prose / blocks — consistent text in light & dark */
.hog-single__title,
.hog-entry h1,
.hog-entry h2,
.hog-entry h3,
.hog-entry h4,
.hog-entry h5,
.hog-entry h6 {
	color: var(--hog-text);
}
.hog-entry p,
.hog-entry li,
.hog-entry dd,
.hog-entry dt {
	color: var(--hog-text);
}
.hog-entry hr {
	border: 0;
	border-top: 1px solid var(--hog-border);
	margin: 1.5rem 0;
}
.hog-entry figcaption,
.hog-entry .wp-element-caption,
.hog-entry .wp-caption-text {
	color: var(--hog-muted);
	font-size: 0.88rem;
}
.hog-entry mark {
	background: color-mix(in srgb, var(--hog-accent) 35%, transparent);
	color: var(--hog-text);
}
.hog-entry ins {
	text-decoration: none;
	border-bottom: 1px dashed var(--hog-accent);
	color: var(--hog-text);
}
.hog-entry del {
	color: var(--hog-muted);
}
.hog-entry kbd {
	padding: 0.1rem 0.35rem;
	border-radius: 6px;
	border: 1px solid var(--hog-border);
	background: var(--hog-surface-strong);
	color: var(--hog-text);
	font-size: 0.85em;
}
.hog-entry .wp-block-quote,
.hog-entry .wp-block-pullquote {
	color: var(--hog-text);
	border-color: var(--hog-border);
}
.hog-entry .wp-block-quote cite,
.hog-entry .wp-block-pullquote cite {
	color: var(--hog-muted);
}
.hog-entry .wp-block-separator {
	border-color: var(--hog-border);
	opacity: 1;
}
.hog-entry .wp-block-table thead,
.hog-entry .wp-block-table tfoot {
	background: var(--hog-surface-strong);
	color: var(--hog-text);
}
.hog-entry .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: color-mix(in srgb, var(--hog-surface-strong) 55%, transparent);
}

/* Calendar & misc widgets */
.widget_calendar table,
#wp-calendar {
	width: 100%;
	border-collapse: collapse;
	color: var(--hog-text);
	font-size: 0.88rem;
}
.widget_calendar th,
.widget_calendar td,
#wp-calendar th,
#wp-calendar td {
	border: 1px solid var(--hog-border);
	padding: 0.35rem;
	text-align: center;
}
.widget_calendar caption,
#wp-calendar caption {
	caption-side: top;
	padding-bottom: 0.5rem;
	font-weight: 700;
	color: var(--hog-text);
}
.widget_rss .rsswidget {
	color: var(--hog-text) !important;
}
.widget_rss .rss-date,
.widget_rss cite {
	color: var(--hog-muted);
	font-size: 0.82rem;
}
.widget_recent_comments .recentcomments,
.widget_recent_entries a {
	color: var(--hog-text);
}
.widget_tag_cloud a {
	color: var(--hog-link-subtle) !important;
	border: 1px solid var(--hog-border);
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	display: inline-block;
	margin: 0.15rem;
	font-size: 0.75rem !important;
}
.widget_tag_cloud a:hover {
	color: var(--hog-link, #c43414) !important;
}

/*
 * HyperOS Glass 1.5.8 — end-of-cascade delivery (cache optimizers, plugin CSS order).
 */

/* Mobile: inner “gutter” was mostly .hog-glass--pad clamp(), not only .hog-shell. */
@media (max-width: 899px) {
	.hog-glass--pad {
		padding: 0.85rem 0.55rem 1rem;
	}
	.hog-archive-head.hog-glass--pad {
		padding: 0.72rem 0.45rem;
	}
	.hog-header__inner.hog-shell {
		padding-left: max(0.25rem, env(safe-area-inset-left, 0px));
		padding-right: max(0.25rem, env(safe-area-inset-right, 0px));
	}
	.hog-drawer__panel {
		padding-left: max(0.45rem, env(safe-area-inset-left, 0px));
		padding-right: max(0.45rem, env(safe-area-inset-right, 0px));
	}
}

/* Pagination: force a single horizontal band (full-width flex children were stacking). */
nav.navigation.pagination,
nav.navigation.pagination.navigation {
	display: block;
	text-align: center;
	width: 100%;
	clear: both;
}
nav.navigation.pagination .nav-links,
.hog-pagination .nav-links {
	display: inline-flex !important;
	flex-flow: row wrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.35rem !important;
	max-width: 100%;
	vertical-align: top;
}
nav.navigation.pagination .nav-links > a,
nav.navigation.pagination .nav-links > span,
.hog-pagination .nav-links > a,
.hog-pagination .nav-links > span {
	display: inline-flex !important;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 0.65rem;
	border-radius: 12px;
	text-decoration: none;
	background: var(--hog-surface);
	border: 1px solid var(--hog-border);
	color: var(--hog-text);
	box-sizing: border-box;
}
nav.navigation.pagination .nav-links > span.page-numbers.current,
.hog-pagination .nav-links > span.page-numbers.current {
	background: color-mix(in srgb, var(--hog-accent) 22%, var(--hog-surface));
	border-color: color-mix(in srgb, var(--hog-accent) 45%, var(--hog-border));
	font-weight: 700;
}
.hog-pagination ul.page-numbers,
.navigation.pagination ul.page-numbers {
	display: inline-flex !important;
	flex-flow: row wrap !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 0.35rem !important;
	width: auto;
	max-width: 100%;
	margin: 0.5rem auto 0;
	padding: 0;
	list-style: none;
}
.hog-pagination ul.page-numbers > li,
.navigation.pagination ul.page-numbers > li {
	display: inline-flex !important;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hog-pagination ul.page-numbers a,
.hog-pagination ul.page-numbers span,
.navigation.pagination ul.page-numbers a,
.navigation.pagination ul.page-numbers span {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 0.65rem;
	border-radius: 12px;
	border: 1px solid var(--hog-border);
	background: var(--hog-surface);
	color: var(--hog-text);
	text-decoration: none;
	box-sizing: border-box;
}

/* Query Loop block pagination. */
.wp-block-query-pagination,
.wp-block-query-pagination-numbers {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	margin-top: 1.25rem;
}
.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 0.65rem;
	border-radius: 12px;
	border: 1px solid var(--hog-border);
	background: var(--hog-surface);
	color: var(--hog-text);
	text-decoration: none;
}

/* Mobile drawer: high-contrast chips (gradient + rim) so they read on the blurred panel. */
@media (max-width: 899px) {
	.hog-drawer__panel .hog-menu--stack > li > a {
		background: linear-gradient(
			165deg,
			rgba(255, 255, 255, 0.68) 0%,
			rgba(255, 255, 255, 0.32) 42%,
			rgba(255, 255, 255, 0.18) 100%
		);
		border: 1px solid rgba(255, 255, 255, 0.82);
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.92) inset,
			0 6px 22px rgba(12, 18, 40, 0.14);
		-webkit-backdrop-filter: saturate(190%) blur(18px);
		backdrop-filter: saturate(190%) blur(18px);
		font-weight: 600;
	}
	html[data-hog="dark"] .hog-drawer__panel .hog-menu--stack > li > a,
	body.hog-theme--dark .hog-drawer__panel .hog-menu--stack > li > a {
		background: linear-gradient(165deg, rgba(52, 58, 78, 0.92) 0%, rgba(34, 38, 54, 0.82) 50%, rgba(28, 32, 48, 0.78) 100%);
		border: 1px solid rgba(255, 255, 255, 0.2);
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.14) inset,
			0 8px 26px rgba(0, 0, 0, 0.5);
	}
	.hog-drawer__panel .hog-menu--stack .sub-menu a {
		background: linear-gradient(165deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16));
		border: 1px solid rgba(255, 255, 255, 0.58);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
		-webkit-backdrop-filter: saturate(160%) blur(12px);
		backdrop-filter: saturate(160%) blur(12px);
	}
	html[data-hog="dark"] .hog-drawer__panel .hog-menu--stack .sub-menu a,
	body.hog-theme--dark .hog-drawer__panel .hog-menu--stack .sub-menu a {
		background: linear-gradient(165deg, rgba(44, 50, 68, 0.9), rgba(30, 34, 50, 0.78));
		border: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
	}
}
@media (max-width: 899px) and (prefers-reduced-transparency: reduce) {
	.hog-drawer__panel .hog-menu--stack > li > a,
	.hog-drawer__panel .hog-menu--stack .sub-menu a {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

/*
 * HyperOS Glass 1.5.10 — landscape pagination + mobile footer glass chips.
 * Block “Query Pagination” uses is-vertical / is-layout-flex which stacks numbers in a column.
 */

/* Query Loop / block pagination: never stack vertically on phones. */
.hog-main .wp-block-query-pagination,
.hog-main .wp-block-query-pagination-numbers,
.wp-block-query-pagination,
.wp-block-query-pagination-numbers {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.4rem !important;
	width: 100%;
}
.wp-block-query-pagination.is-vertical,
.wp-block-query-pagination.is-layout-flex.is-vertical,
.wp-block-query-pagination-numbers.is-vertical,
.wp-block-query-pagination-numbers.is-layout-flex.is-vertical {
	flex-direction: row !important;
}
.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination a,
.wp-block-query-pagination span:not(.screen-reader-text),
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
	display: inline-flex !important;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 0.65rem;
	border-radius: 12px;
	border: 1px solid var(--hog-border);
	background: var(--hog-surface);
	color: var(--hog-text);
	text-decoration: none;
	box-sizing: border-box;
	font-weight: 600;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers.current,
.wp-block-query-pagination-numbers .page-numbers.current {
	background: color-mix(in srgb, var(--hog-accent) 22%, var(--hog-surface));
	border-color: color-mix(in srgb, var(--hog-accent) 45%, var(--hog-border));
}

/* Core nav: keep “Posts navigation” off the layout row. */
nav.navigation.pagination .screen-reader-text,
.wp-block-query-pagination .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 899px) {
	nav.navigation.pagination .nav-links,
	.navigation.pagination .nav-links,
	.hog-pagination .nav-links {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		align-items: center !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 0.4rem !important;
	}
	nav.navigation.pagination .nav-links > a,
	nav.navigation.pagination .nav-links > span,
	.hog-pagination .nav-links > a,
	.hog-pagination .nav-links > span {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: auto !important;
		max-width: 100% !important;
	}
}

/* Custom logo: improve legibility on dark / glass headers (e.g. low-contrast “THEME” wordmark). */
.hog-header .custom-logo-link img {
	filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.45));
}
html[data-hog="dark"] .hog-header .custom-logo-link img,
body.hog-theme--dark .hog-header .custom-logo-link img {
	filter: brightness(1.14) contrast(1.06) drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

/* Last-resort: in-flow links (blocks / gradient-text utilities can clip or wash ink). */
body.hog .hog-layout__content .hog-entry :where(p, li, div, span, td, th, figcaption, cite, h1, h2, h3, h4, h5, h6) a[href]:not(.wp-block-button__link):not(.hog-btn),
body.hog article.hog-page .hog-entry :where(p, li, div, span, td, th, figcaption, cite, h1, h2, h3, h4, h5, h6) a[href]:not(.wp-block-button__link):not(.hog-btn),
body.hog article.hog-single .hog-entry :where(p, li, div, span, td, th, figcaption, cite, h1, h2, h3, h4, h5, h6) a[href]:not(.wp-block-button__link):not(.hog-btn),
body.hog .hog-page__content.hog-entry :where(p, li, div, span, td, th, figcaption, cite, h1, h2, h3, h4, h5, h6) a[href]:not(.wp-block-button__link):not(.hog-btn),
body.hog .hog-layout__content .wp-block-post-content a[href]:not(.wp-block-button__link):not(.hog-btn) {
	color: var(--hog-link, #c43414) !important;
	-webkit-text-fill-color: var(--hog-link, #c43414) !important;
	background: none !important;
	background-image: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
	mix-blend-mode: normal !important;
	opacity: 1 !important;
	visibility: visible !important;
	filter: none !important;
	text-decoration: underline !important;
	font-weight: 600 !important;
}

/*
 * Mobile footer: iOS-style liquid glass chips + guaranteed contrast (wins over cache / reduced transparency order).
 */
@media (max-width: 767px) {
	.hog-footer .hog-footer-menu a,
	.hog-footer .hog-footer-menu a:link,
	.hog-footer .hog-footer-menu a:visited {
		color: #0c0f18 !important;
		-webkit-text-fill-color: #0c0f18 !important;
		background: linear-gradient(
			168deg,
			rgba(255, 255, 255, 0.94) 0%,
			rgba(255, 255, 255, 0.62) 40%,
			rgba(244, 247, 255, 0.48) 100%
		) !important;
		border: 1px solid rgba(12, 15, 24, 0.16) !important;
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 1) inset,
			0 2px 3px rgba(255, 255, 255, 0.65) inset,
			0 10px 32px rgba(12, 18, 40, 0.14) !important;
		-webkit-backdrop-filter: blur(22px) saturate(200%) !important;
		backdrop-filter: blur(22px) saturate(200%) !important;
	}
	.hog-footer .hog-footer-menu a .hog-social-link {
		color: inherit !important;
		-webkit-text-fill-color: inherit !important;
	}
	.hog-footer .hog-footer-menu a:hover,
	.hog-footer .hog-footer-menu a:focus-visible {
		color: #c43414 !important;
		-webkit-text-fill-color: #c43414 !important;
		border-color: rgba(255, 106, 61, 0.5) !important;
	}
	html[data-hog="dark"] .hog-footer .hog-footer-menu a,
	html[data-hog="dark"] .hog-footer .hog-footer-menu a:link,
	html[data-hog="dark"] .hog-footer .hog-footer-menu a:visited,
	body.hog-theme--dark .hog-footer .hog-footer-menu a,
	body.hog-theme--dark .hog-footer .hog-footer-menu a:link,
	body.hog-theme--dark .hog-footer .hog-footer-menu a:visited {
		color: #f2f4ff !important;
		-webkit-text-fill-color: #f2f4ff !important;
		background: linear-gradient(168deg, rgba(56, 62, 86, 0.96) 0%, rgba(32, 36, 52, 0.9) 100%) !important;
		border: 1px solid rgba(255, 255, 255, 0.22) !important;
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.14) inset,
			0 10px 36px rgba(0, 0, 0, 0.55) !important;
		-webkit-backdrop-filter: blur(22px) saturate(190%) !important;
		backdrop-filter: blur(22px) saturate(190%) !important;
	}
	html[data-hog="dark"] .hog-footer .hog-footer-menu a:hover,
	body.hog-theme--dark .hog-footer .hog-footer-menu a:hover {
		color: #ffb59a !important;
		-webkit-text-fill-color: #ffb59a !important;
	}
}
@media (max-width: 767px) and (prefers-color-scheme: dark) {
	html:not([data-hog="light"]) body.hog-theme--system .hog-footer .hog-footer-menu a,
	html:not([data-hog="light"]) body.hog-theme--system .hog-footer .hog-footer-menu a:link,
	html:not([data-hog="light"]) body.hog-theme--system .hog-footer .hog-footer-menu a:visited {
		color: #f2f4ff !important;
		-webkit-text-fill-color: #f2f4ff !important;
		background: linear-gradient(168deg, rgba(56, 62, 86, 0.96) 0%, rgba(32, 36, 52, 0.9) 100%) !important;
		border: 1px solid rgba(255, 255, 255, 0.22) !important;
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.14) inset,
			0 10px 36px rgba(0, 0, 0, 0.55) !important;
		-webkit-backdrop-filter: blur(22px) saturate(190%) !important;
		backdrop-filter: blur(22px) saturate(190%) !important;
	}
}
@media (max-width: 767px) and (prefers-reduced-transparency: reduce) {
	.hog-footer .hog-footer-menu a,
	.hog-footer .hog-footer-menu a:link,
	.hog-footer .hog-footer-menu a:visited {
		-webkit-backdrop-filter: none !important;
		backdrop-filter: none !important;
		background: rgba(255, 255, 255, 0.96) !important;
		color: #0c0f18 !important;
		-webkit-text-fill-color: #0c0f18 !important;
	}
	html[data-hog="dark"] .hog-footer .hog-footer-menu a,
	body.hog-theme--dark .hog-footer .hog-footer-menu a {
		background: rgba(40, 44, 62, 0.98) !important;
		color: #f2f4ff !important;
		-webkit-text-fill-color: #f2f4ff !important;
	}
}

/* -------------------------------------------------------------
 * Content links — final cascade (gradient / clip / inherit traps).
 * ------------------------------------------------------------- */
.hog-layout__content .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn):not(.custom-logo-link)),
.hog-layout__content .hog-page__content a[href]:where(:not(.wp-block-button__link):not(.hog-btn):not(.custom-logo-link)),
article.hog-page .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn)),
article.hog-single .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn)) {
	color: var(--hog-link, #c43414) !important;
	-webkit-text-fill-color: var(--hog-link, #c43414) !important;
	background: none !important;
	background-image: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
	mix-blend-mode: normal !important;
	opacity: 1 !important;
	visibility: visible !important;
	filter: none !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
	text-decoration-thickness: 0.12em !important;
	text-underline-offset: 0.18em !important;
}

.hog-loop__excerpt a[href],
.hog-layout__sidebar .hog-widget a[href]:where(:not(.wp-block-button__link):not(.hog-btn)) {
	color: var(--hog-link, #c43414) !important;
	-webkit-text-fill-color: var(--hog-link, #c43414) !important;
	text-decoration: underline !important;
	font-weight: 600 !important;
	opacity: 1 !important;
}

html[data-hog="dark"] .hog-layout__content .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn):not(.custom-logo-link)),
html[data-hog="dark"] .hog-layout__content .hog-page__content a[href]:where(:not(.wp-block-button__link):not(.hog-btn):not(.custom-logo-link)),
body.hog-theme--dark .hog-layout__content .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn):not(.custom-logo-link)),
body.hog-theme--dark .hog-layout__content .hog-page__content a[href]:where(:not(.wp-block-button__link):not(.hog-btn):not(.custom-logo-link)),
html[data-hog="dark"] article.hog-page .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn)),
body.hog-theme--dark article.hog-page .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn)),
html[data-hog="dark"] article.hog-single .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn)),
body.hog-theme--dark article.hog-single .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn)) {
	color: var(--hog-link, #ffb59a) !important;
	-webkit-text-fill-color: var(--hog-link, #ffb59a) !important;
	background: none !important;
	background-image: none !important;
	-webkit-background-clip: border-box !important;
	background-clip: border-box !important;
}

@media (prefers-color-scheme: dark) {
	html:not([data-hog="light"]) body.hog-theme--system .hog-layout__content .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn):not(.custom-logo-link)),
	html:not([data-hog="light"]) body.hog-theme--system article.hog-single .hog-entry a[href]:where(:not(.wp-block-button__link):not(.hog-btn)) {
		color: var(--hog-link, #ffb59a) !important;
		-webkit-text-fill-color: var(--hog-link, #ffb59a) !important;
		background: none !important;
		-webkit-background-clip: border-box !important;
		background-clip: border-box !important;
	}
}
