/*
Theme Name: V8GB Neo
Theme URI: https://v8gb.cn/
Author: V8GB
Author URI: https://v8gb.cn/
Description: 为软件资源站打造的现代 WordPress 主题：横向文章列表、更新时间排序、文章访问量统计、搜索弹窗与 ⌘K 快捷键、侧边栏 Tab、正文卡片、深浅色切换，以及完整的响应式布局。适合 Mac / Windows 软件下载、效率工具与设计资源类内容。
Version: 1.1.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: v8gb-neo
Tags: blog, news, one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* -------------------------------------------------------------------------
 * 1. Design tokens
 * ---------------------------------------------------------------------- */
:root {
	--bg: #f5f6fa;
	--bg-deep: #eef0f7;
	--surface: #ffffff;
	--surface-2: #f8f9fd;
	--surface-3: #f0f2f9;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--muted-2: #94a3b8;
	--line: #e5e8f1;
	--line-strong: #d6dbe8;
	--accent: #4f46e5;
	--accent-strong: #4338ca;
	--accent-2: #06b6d4;
	--accent-soft: rgba(79, 70, 229, 0.11);
	--accent-ring: rgba(79, 70, 229, 0.28);
	--warm: #f59e0b;
	--danger: #ef4444;
	--success: #10b981;
	--header-bg: rgba(245, 246, 250, 0.82);
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 12px 30px -12px rgba(15, 23, 42, 0.18);
	--shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, 0.24);
	--top-glow-1: rgba(79, 70, 229, 0.12);
	--top-glow-2: rgba(6, 182, 212, 0.09);
	--top-glow-3: rgba(79, 70, 229, 0.04);
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--container: 1200px;
	--header-h: 72px;
	--font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
	color-scheme: dark;
	--bg: #080c17;
	--bg-deep: #0b1020;
	--surface: #0f1526;
	--surface-2: #121a2d;
	--surface-3: #172038;
	--ink: #e8ecf7;
	--ink-2: #c3cbdd;
	--muted: #8b98b2;
	--muted-2: #6b7a96;
	--line: rgba(148, 163, 184, 0.14);
	--line-strong: rgba(148, 163, 184, 0.24);
	--header-bg: rgba(8, 12, 23, 0.82);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 16px 36px -18px rgba(0, 0, 0, 0.65);
	--shadow-lg: 0 36px 70px -30px rgba(0, 0, 0, 0.8);
	--top-glow-1: rgba(99, 102, 241, 0.18);
	--top-glow-2: rgba(34, 211, 238, 0.10);
	--top-glow-3: rgba(79, 70, 229, 0.05);
}

/* -------------------------------------------------------------------------
 * 2. Reset & base
 * ---------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background-color: var(--bg);
	background-image:
		radial-gradient(ellipse 70% 100% at 15% -10%, var(--top-glow-1) 0%, transparent 65%),
		radial-gradient(ellipse 60% 100% at 85% -5%, var(--top-glow-2) 0%, transparent 60%),
		linear-gradient(180deg, var(--top-glow-3) 0%, transparent 100%);
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 100% 420px;
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--ink);
	line-height: 1.3;
	font-weight: 750;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

button {
	cursor: pointer;
}

::selection {
	background: var(--accent);
	color: #fff;
}

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

.site-main {
	min-height: 50vh;
}

.icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	flex: none;
	vertical-align: -0.15em;
}

/* -------------------------------------------------------------------------
 * 3. Layout helpers
 * ---------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.narrow {
	max-width: 820px;
}

.section {
	padding-top: 44px;
	padding-bottom: 80px;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 300;
	background: var(--accent);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 10px 0;
	font-size: 13px;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

.eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink-2);
	font-size: 12px;
	line-height: 1;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip .icon {
	width: 14px;
	height: 14px;
}

.chip:hover {
	color: var(--accent);
	border-color: var(--accent-ring);
	background: var(--accent-soft);
}

.chip--solid {
	background: var(--accent-soft);
	border-color: transparent;
	color: var(--accent);
	font-weight: 650;
}

.chip--solid:hover {
	background: var(--accent);
	color: #fff;
}

.chip--warm {
	background: rgba(245, 158, 11, 0.13);
	border-color: transparent;
	color: #b45309;
	font-weight: 650;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: 13.5px;
	font-weight: 650;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn--primary {
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	color: #fff;
	box-shadow: 0 10px 24px -12px var(--accent);
}

.btn--primary:hover {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 32px -14px var(--accent);
}

.btn--ghost {
	background: var(--surface);
	border-color: var(--line-strong);
	color: var(--ink-2);
}

.btn--ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn--sm {
	padding: 9px 15px;
	font-size: 12.5px;
}

/* -------------------------------------------------------------------------
 * 4. Header
 * ---------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	box-shadow: var(--shadow-sm);
}

.header-bar {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--header-h);
}

.site-branding {
	flex: none;
	min-width: 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--ink);
	min-width: 0;
}

.brand__mark {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	display: grid;
	place-items: center;
	flex: none;
	box-shadow: 0 8px 18px -8px var(--accent);
}

.brand__mark .icon {
	width: 21px;
	height: 21px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}

.brand__name {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .brand__name {
	background-image: linear-gradient(135deg, #818cf8, #22d3ee);
}

.brand__tagline {
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand--logo img {
	max-height: 44px;
	width: auto;
	display: block;
}

.primary-nav {
	margin-left: auto;
	min-width: 0;
}

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

.nav-menu > li {
	position: relative;
}

.nav-menu > li > a {
	display: block;
	padding: 8px 11px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 550;
	color: var(--ink-2);
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > .current-menu-item > a,
.nav-menu > .current_page_item > a,
.nav-menu > .current-menu-ancestor > a {
	color: var(--accent);
	background: var(--accent-soft);
}

.nav-menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	vertical-align: 1px;
	transition: transform 0.2s ease;
}

.nav-menu > .menu-item-has-children:hover > a::after,
.nav-menu > .menu-item-has-children:focus-within > a::after {
	transform: rotate(225deg) translateY(1px);
}

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

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--ink-2);
	white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
	background: var(--surface-3);
	color: var(--accent);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
}

.icon-btn {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: var(--ink-2);
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.icon-btn .icon {
	width: 20px;
	height: 20px;
}

.menu-toggle {
	display: none;
}

html[data-theme="light"] .theme-toggle__sun,
html:not([data-theme]) .theme-toggle__sun {
	display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
	display: none;
}

.admin-bar .site-header {
	top: 32px;
}

/* Search trigger --------------------------------------------------------- */
.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	gap: 7px;
	padding: 0 7px 0 12px;
	border-color: transparent;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	color: #fff;
	box-shadow: 0 8px 22px -12px var(--accent);
}

.search-toggle:hover {
	border-color: transparent;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	color: #fff;
	filter: brightness(1.07);
}

.search-toggle__label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

.search-toggle__hint {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 4px 8px;
	border: 0;
	border-radius: 7px;
	background: #fff;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.03em;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.12);
}

/* Search modal ----------------------------------------------------------- */
.search-modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 20px 40px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.search-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.22s ease, visibility 0s;
}

.search-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 10, 20, 0.66);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.search-modal__dialog {
	position: relative;
	width: min(640px, 100%);
	max-height: calc(100vh - 18vh);
	overflow-y: auto;
	padding: 26px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.65);
	transform: translateY(-14px) scale(0.985);
	transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.search-modal.is-open .search-modal__dialog {
	transform: none;
}

.search-modal__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.search-modal__title {
	margin-bottom: 16px;
	font-size: clamp(22px, 3vw, 28px);
	letter-spacing: -0.025em;
}

.search-modal .search-form {
	background: var(--surface-2);
}

.search-modal .search-field {
	height: 48px;
	font-size: 16px;
}

.search-modal .search-submit {
	width: 48px;
	height: 48px;
}

.search-modal__hint {
	margin-top: 12px;
	font-size: 12px;
	color: var(--muted-2);
}

.search-modal__meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.search-modal__quick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.search-modal__quick-label {
	width: 100%;
	margin-bottom: 2px;
	font-size: 10.5px;
	font-weight: 650;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.search-modal__quick .chip {
	padding: 5px 10px;
	font-size: 11.5px;
}

.search-modal__shortcut {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 8px;
	font-size: 11px;
	color: var(--muted-2);
	white-space: nowrap;
}

.search-modal__shortcut kbd {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 5px 8px;
	border: 0;
	border-radius: 7px;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	box-shadow: 0 4px 12px -4px var(--accent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

body.search-open {
	overflow: hidden;
}

/* Search form ----------------------------------------------------------- */
.search-form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 7px 7px 16px;
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 16px;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form:focus-within {
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-form__icon {
	display: inline-flex;
	color: var(--muted-2);
}

.search-field {
	flex: 1;
	min-width: 0;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-size: 15px;
	outline: none;
}

.search-field::placeholder {
	color: var(--muted-2);
}

.search-submit {
	width: 44px;
	height: 44px;
	flex: none;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	color: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px -10px var(--accent);
}

.search-submit .icon {
	width: 18px;
	height: 18px;
}

/* Mobile drawer --------------------------------------------------------- */
.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 140;
	width: min(370px, 88vw);
	display: flex;
	flex-direction: column;
	background: var(--surface);
	box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.5);
	transform: translateX(105%);
	transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mobile-drawer.is-open {
	transform: translateX(0);
}

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
}

.drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 20px 28px;
}

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

.drawer-menu > li {
	border-bottom: 1px solid var(--line);
}

.drawer-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 2px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

.drawer-menu > li > a:hover {
	color: var(--accent);
}

.drawer-menu .sub-menu {
	list-style: none;
	margin: 0 0 10px;
	padding: 0 0 0 12px;
	border-left: 2px solid var(--line);
}

.drawer-menu .sub-menu a {
	display: block;
	padding: 8px 2px;
	font-size: 13.5px;
	color: var(--muted);
}

.drawer-extra {
	margin-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.drawer-extra .social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.drawer-extra .social-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: 9px;
	font-size: 12px;
	color: var(--muted);
}

.drawer-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 13px;
	text-align: left;
}

.drawer-search .icon {
	width: 17px;
	height: 17px;
	color: var(--muted-2);
}

.drawer-search__label {
	flex: 1;
}

.drawer-search__kbd {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 6px;
	border: 0;
	border-radius: 5px;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	box-shadow: 0 3px 8px -3px var(--accent);
}

.drawer-overlay[hidden] {
	display: none;
}

.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: block;
	border: 0;
	background: rgba(8, 12, 23, 0.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.drawer-overlay.is-visible {
	opacity: 1;
}

body.nav-open {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * 7. Sections & content layout
 * ---------------------------------------------------------------------- */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.section-head h2 {
	font-size: clamp(22px, 2.6vw, 28px);
	letter-spacing: -0.025em;
	margin-top: 5px;
}

.section-head--small {
	margin-bottom: 18px;
}

.section-head--small h2 {
	font-size: 20px;
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	font-size: 12.5px;
	color: var(--muted);
	white-space: nowrap;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.section-link .icon {
	width: 15px;
	height: 15px;
}

.section-link:hover {
	color: var(--accent);
	border-color: var(--accent-ring);
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	align-items: start;
}

.content-layout.no-sidebar {
	grid-template-columns: minmax(0, 1fr);
}

.content-main {
	min-width: 0;
}

.home-feed {
	padding-top: 34px;
}

.feed-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.feed-header h1 {
	margin-top: 5px;
	font-size: clamp(28px, 3.6vw, 36px);
	letter-spacing: -0.03em;
}

.feed-header p {
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted);
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

/* -------------------------------------------------------------------------
 * 8. Post cards
 * ---------------------------------------------------------------------- */
.post-card {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	padding: 14px;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
	transform: translateY(-2px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-md);
}

.post-card--tile {
	flex-direction: column;
	gap: 0;
	padding: 0;
}

.post-card--tile:hover {
	transform: translateY(-4px);
}

.post-card__thumb {
	position: relative;
	display: block;
	width: 132px;
	flex: none;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 14px;
	background: var(--surface-3);
}

.post-card--tile .post-card__thumb {
	width: 100%;
	border-radius: 0;
}

.post-card__media {
	display: block;
	width: 100%;
	height: 100%;
}

.post-card__media img,
.post-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.post-card:hover .post-thumb__img {
	transform: scale(1.04);
}

.post-thumb__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(120% 120% at 18% 15%, rgba(99, 102, 241, 0.28), transparent 58%),
		linear-gradient(135deg, #eef1fb, #e2e8f7);
}

html[data-theme="dark"] .post-thumb__placeholder {
	background:
		radial-gradient(120% 120% at 18% 15%, rgba(99, 102, 241, 0.32), transparent 58%),
		linear-gradient(135deg, #17203a, #0e1527);
}

.post-thumb__letter {
	font-size: 44px;
	font-weight: 850;
	letter-spacing: -0.04em;
	color: rgba(79, 70, 229, 0.28);
	-webkit-user-select: none;
	user-select: none;
}

html[data-theme="dark"] .post-thumb__letter {
	color: rgba(165, 180, 252, 0.3);
}

.post-card__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(9, 13, 26, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.94);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	max-width: calc(100% - 24px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-card__sticky {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 9px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f59e0b, #f97316);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
}

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

.post-card--tile .post-card__body {
	padding: 14px;
}

.post-card__title {
	font-size: 16.5px;
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__title a {
	color: var(--ink);
	transition: color 0.2s ease;
}

.post-card__title a:hover {
	color: var(--accent);
}

.post-card__excerpt {
	font-size: 13px;
	line-height: 1.65;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__meta {
	margin-top: auto;
	padding-top: 2px;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 11.5px;
	color: var(--muted-2);
}

.entry-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.entry-meta .icon {
	width: 13px;
	height: 13px;
}

.entry-meta__views {
	white-space: nowrap;
	color: var(--ink-2);
}

.entry-meta__views .icon {
	color: var(--accent);
	opacity: 0.8;
}

/* -------------------------------------------------------------------------
 * 9. Sidebar
 * ---------------------------------------------------------------------- */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.widget {
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
}

.widget .textwidget {
	font-size: 13px;
	line-height: 1.8;
	color: var(--muted);
}

.widget .textwidget a {
	color: var(--ink-2);
}

.widget .textwidget a:hover {
	color: var(--accent);
}

.widget img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.widget .textwidget a img {
	transition: transform 0.25s ease;
}

.widget .textwidget a:hover img {
	transform: translateY(-1px);
}

.widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.widget-title::before {
	content: "";
	width: 3px;
	height: 14px;
	border-radius: 2px;
	background: linear-gradient(var(--accent), var(--accent-2));
}

/* Sidebar post tabs ------------------------------------------------------ */
.sidebar .widget_alx_tabs {
	display: none;
}

.v8gb-tabs__nav {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
	padding: 4px;
	background: var(--surface-3);
	border-radius: 10px;
}

.v8gb-tabs__tab {
	flex: 1;
	min-width: 0;
	padding: 7px 4px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--muted);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.v8gb-tabs__tab:hover {
	color: var(--accent);
}

.v8gb-tabs__tab.is-active {
	background: var(--surface);
	color: var(--accent);
	box-shadow: var(--shadow-sm);
}

.v8gb-tabs__panel {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.v8gb-tabs__panel[hidden] {
	display: none;
}

.v8gb-tabs__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.v8gb-tabs__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.v8gb-tabs__thumb {
	width: 52px;
	height: 52px;
	flex: none;
	overflow: hidden;
	border-radius: 9px;
	background: var(--surface-3);
}

.v8gb-tabs__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.v8gb-tabs__thumb .post-thumb__placeholder {
	width: 100%;
	height: 100%;
}

.v8gb-tabs__thumb .post-thumb__letter {
	font-size: 18px;
}

.v8gb-tabs__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.v8gb-tabs__title {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.v8gb-tabs__item:hover .v8gb-tabs__title {
	color: var(--accent);
}

.v8gb-tabs__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	font-size: 10.5px;
	line-height: 1.3;
	color: var(--muted-2);
}

.v8gb-tabs__meta time {
	color: var(--muted-2);
}

.v8gb-tabs__views {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.v8gb-tabs__views .icon {
	width: 11px;
	height: 11px;
	color: var(--accent);
	opacity: 0.8;
}

.v8gb-tabs__empty {
	padding: 8px 0;
	font-size: 12px;
	color: var(--muted-2);
}

.v8gb-tabs-slot {
	min-width: 0;
}

.v8gb-tabs.is-floating {
	position: fixed;
	z-index: 70;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lg);
}

.v8gb-tabs.is-floating .v8gb-tabs__nav {
	flex: none;
}

.v8gb-tabs.is-floating .v8gb-tabs__panel.is-active {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 2px;
	scrollbar-width: thin;
}

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

.rank-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.rank-num {
	width: 28px;
	height: 28px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 700;
}

.rank-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.rank-title {
	font-size: 13px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rank-title:hover {
	color: var(--accent);
}

.rank-meta {
	font-size: 11px;
	color: var(--muted-2);
}

.cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cat-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	font-size: 11.5px;
	color: var(--muted-2);
}

.cat-list li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--ink-2);
	transition: color 0.2s ease, background 0.2s ease;
}

.cat-list li a:hover {
	color: var(--accent);
	background: var(--surface-3);
}

.tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	line-height: 1.2;
}

.tagcloud a {
	display: inline-block;
	padding: 5px 10px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--surface-3);
	color: var(--ink-2);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tagcloud a:hover {
	background: var(--accent-soft);
	border-color: var(--accent-ring);
	color: var(--accent);
}

.widget-cta {
	position: relative;
	overflow: hidden;
	padding: 22px;
	background: linear-gradient(150deg, #1a2448, #0c1224);
	border-color: rgba(255, 255, 255, 0.09);
	color: #fff;
}

.widget-cta::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -60px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 68%);
}

.widget-cta__icon {
	display: inline-flex;
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.1);
	color: #c7d2fe;
	margin-bottom: 14px;
}

.widget-cta__title {
	font-size: 16px;
	color: #fff;
	margin-bottom: 8px;
}

.widget-cta__text {
	position: relative;
	z-index: 1;
	font-size: 12.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 16px;
}

.widget-cta .btn {
	position: relative;
	z-index: 1;
	background: #fff;
	color: #111827;
	box-shadow: none;
}

.widget-cta .btn:hover {
	background: #eef2ff;
	color: #312e81;
}

/* Compatibility with the legacy Alx Tabs widget ------------------------- */
.widget_alx_tabs .alx-tabs-nav {
	display: flex;
	gap: 4px;
	margin: 0 0 14px;
	padding: 4px;
	border-radius: 10px;
	background: var(--surface-3);
	list-style: none;
}

.widget_alx_tabs .alx-tab {
	flex: 1;
	margin: 0;
	min-width: 0;
}

.widget_alx_tabs .alx-tabs-nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 8px;
	border-radius: 7px;
	font-size: 11.5px;
	line-height: 1.3;
	color: var(--muted);
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.widget_alx_tabs .alx-tabs-nav a.is-active {
	background: var(--surface);
	color: var(--accent);
	font-weight: 650;
	box-shadow: var(--shadow-sm);
}

.widget_alx_tabs .alx-tabs-nav i,
.widget_alx_tabs .alx-tabs-nav .fas,
.widget_alx_tabs .alx-tabs-nav .far {
	display: none;
}

.widget_alx_tabs .alx-tabs-container > .alx-tab {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget_alx_tabs .alx-tabs-container > .alx-tab.is-active {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

html:not(.js) .widget_alx_tabs .alx-tabs-container > .alx-tab:first-child {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.widget_alx_tabs .alx-tab > li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.widget_alx_tabs .tab-item-thumbnail {
	width: 54px;
	height: 54px;
	flex: none;
	overflow: hidden;
	border-radius: 10px;
	background: var(--surface-3);
}

.widget_alx_tabs .tab-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.widget_alx_tabs .tab-item-inner {
	min-width: 0;
}

.widget_alx_tabs .tab-item-category {
	display: none;
}

.widget_alx_tabs .tab-item-title {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.widget_alx_tabs .tab-item-title a {
	color: var(--ink);
}

.widget_alx_tabs .tab-item-title a:hover {
	color: var(--accent);
}

.widget_alx_tabs #tab-tags-2 {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.widget_alx_tabs #tab-tags-2 li {
	display: inline-flex;
}

.widget_alx_tabs #tab-tags-2 a {
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--surface-3);
	font-size: 11.5px !important;
	line-height: 1.2;
	color: var(--ink-2);
}

.widget_alx_tabs #tab-tags-2 a:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.widget_alx_tabs .alx-tabs-container > .alx-tab > li:nth-child(n + 6) {
	display: none;
}

/* -------------------------------------------------------------------------
 * 10. Page / archive heroes
 * ---------------------------------------------------------------------- */
.page-hero {
	padding: 44px 0 38px;
	background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
	border-bottom: 1px solid var(--line);
}

.page-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.page-hero h1 {
	margin: 8px 0 10px;
	font-size: clamp(30px, 4vw, 44px);
	letter-spacing: -0.03em;
}

.page-hero p {
	font-size: 14px;
	color: var(--muted);
}

.page-hero__icon {
	width: 74px;
	height: 74px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 20px;
	background: var(--accent-soft);
	color: var(--accent);
}

.page-hero__icon .icon {
	width: 32px;
	height: 32px;
}

.page-hero__search {
	max-width: 560px;
	margin-top: 18px;
}


.archive-hero {
	padding: 46px 0 40px;
	background:
		radial-gradient(90% 150% at 12% 0%, var(--accent-soft), transparent 58%),
		var(--surface);
	border-bottom: 1px solid var(--line);
}

.archive-hero__inner {
	display: flex;
	align-items: flex-start;
	gap: 22px;
}

.archive-hero__icon {
	width: 66px;
	height: 66px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--accent);
	box-shadow: var(--shadow-sm);
}

.archive-hero__icon .icon {
	width: 28px;
	height: 28px;
}

.archive-hero h1 {
	margin: 8px 0 8px;
	font-size: clamp(28px, 4vw, 42px);
	letter-spacing: -0.03em;
}

.archive-hero__desc {
	max-width: 70ch;
	margin: 6px 0 10px;
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--muted);
}

.archive-hero__desc p {
	margin: 0 0 8px;
}


.archive-hero__stat {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex: none;
	margin-left: auto;
	padding-left: 24px;
}

.archive-hero__stat strong {
	font-size: clamp(42px, 5vw, 60px);
	line-height: 1;
	font-weight: 850;
	letter-spacing: -0.05em;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--accent);
}

.archive-hero__stat span {
	font-size: 12px;
	color: var(--muted-2);
	letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------
 * 11. Single post
 * ---------------------------------------------------------------------- */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 200;
	pointer-events: none;
}

.reading-progress span {
	display: block;
	width: 100%;
	height: 100%;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transition: transform 0.1s linear;
}

.admin-bar .reading-progress {
	top: 32px;
}

.single-header {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	max-width: none;
	padding-top: 0;
	padding-bottom: 26px;
}

.single-header-text {
	flex: 1 1 auto;
	min-width: 0;
}

.single-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
}

.single-title {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	max-width: none;
	margin-bottom: 20px;
	font-size: clamp(28px, 3.25vw, 36px);
	line-height: 1.26;
	font-weight: 850;
	letter-spacing: -0.03em;
}

.single-title__text {
	flex: 1 1 auto;
	min-width: 0;
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.single-author {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-2);
}

.single-author__avatar {
	border-radius: 50%;
	width: 34px;
	height: 34px;
}

.single-meta .entry-meta {
	gap: 14px;
}

.single-thumb {
	position: relative;
	display: block;
	width: 120px;
	height: 120px;
	flex: 0 0 120px;
	align-self: flex-start;
	margin: 0;
	text-align: center;
}

.single-thumb__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 16px;
	object-fit: cover;
}

.single-thumb__caption {
	display: none;
}

.page-header {
	padding-bottom: 22px;
}

.page-title {
	margin: 8px 0 12px;
	font-size: clamp(30px, 4vw, 42px);
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.page-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--muted-2);
}

.page-meta .icon {
	width: 14px;
	height: 14px;
}

.page-thumb {
	margin: 0 0 28px;
}

.page-thumb__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 44px;
	align-items: start;
	padding-top: 48px;
	padding-bottom: 80px;
}

.single-main {
	min-width: 0;
}

.single-content-card {
	padding: 30px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
}

.page-article .content-main {
	min-width: 0;
}

.page-content-card {
	padding: 30px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
}

.single-side {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.toc-card,
.info-card,
.side-cta {
	padding: 18px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
}

.toc-card__label {
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.toc-list {
	display: flex;
	flex-direction: column;
	gap: 1px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.toc-list li a {
	display: block;
	padding: 6px 8px;
	border-left: 2px solid transparent;
	border-radius: 0 6px 6px 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--muted);
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.toc-list li a:hover,
.toc-list li a.is-active {
	color: var(--accent);
	background: var(--accent-soft);
	border-left-color: var(--accent);
}

.toc-list .toc-h3 a {
	padding-left: 22px;
	font-size: 12px;
}

.info-card__title {
	margin-bottom: 12px;
	font-size: 13px;
}

.info-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
}

.info-list > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12.5px;
}

.info-list dt {
	color: var(--muted-2);
}

.info-list dd {
	margin: 0;
	font-weight: 600;
	color: var(--ink-2);
}

.info-list dd a {
	color: var(--accent);
}

.side-cta {
	position: relative;
	overflow: hidden;
	background: linear-gradient(150deg, #1a2448, #0c1224);
	border-color: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.side-cta__icon {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: #c7d2fe;
	margin-bottom: 12px;
}

.side-cta__title {
	margin-bottom: 6px;
	font-size: 15px;
	color: #fff;
}

.side-cta p {
	margin-bottom: 14px;
	font-size: 12px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
}

.side-cta .btn {
	background: #fff;
	color: #111827;
	box-shadow: none;
}

.entry-footer {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.single-purchase-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
	padding: 13px 15px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: 12px;
}

.single-purchase-bar__text {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ink-2);
}

.single-purchase-bar__icon {
	display: grid;
	width: 28px;
	height: 28px;
	flex: none;
	place-items: center;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
}

.single-purchase-bar__icon .icon {
	width: 15px;
	height: 15px;
}

.single-purchase-bar__actions {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 8px;
}

.single-purchase-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.single-purchase-bar__btn .icon {
	width: 13px;
	height: 13px;
}

.single-purchase-bar__btn--buy {
	background: var(--accent);
	color: #fff;
}

.single-purchase-bar__btn--buy:hover {
	background: var(--accent-2);
	color: #fff;
}

.single-purchase-bar__btn--download {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-2);
}

.single-purchase-bar__btn--download:hover {
	border-color: var(--accent);
	color: var(--accent);
}

#history-versions {
	scroll-margin-top: calc(var(--header-h) + 24px);
}

@media (max-width: 560px) {
	.single-purchase-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px;
	}

	.single-purchase-bar__actions {
		width: 100%;
	}

	.single-purchase-bar__btn {
		flex: 1 1 0;
	}
}

.history-versions {
	margin-top: 36px;
	padding: 22px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: 16px;
}

.history-versions__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.history-versions__heading {
	flex: 1 1 auto;
	min-width: 0;
}

.history-versions__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
}

.history-versions__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 9px;
	color: var(--ink-2);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.history-versions__action:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.history-versions__action--primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.history-versions__action--primary:hover {
	background: var(--accent-2);
	border-color: var(--accent-2);
	color: #fff;
}

.history-versions__action .icon {
	width: 13px;
	height: 13px;
}

.history-versions__icon {
	display: grid;
	width: 36px;
	height: 36px;
	flex: none;
	place-items: center;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
}

.history-versions__icon .icon {
	width: 18px;
	height: 18px;
}

.history-versions__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.history-versions__subtitle {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted-2);
}

.history-versions__table-wrap {
	overflow-x: auto;
	overflow-y: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	-webkit-overflow-scrolling: touch;
}

.history-versions.is-collapsed .history-versions__row--extra {
	display: none;
}

.history-versions__table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.history-versions__table th:first-child,
.history-versions__table td:first-child {
	width: auto;
}

.history-versions__table th:nth-child(2),
.history-versions__table td:nth-child(2) {
	width: 100px;
}

.history-versions__table th:last-child,
.history-versions__table td:last-child {
	width: 92px;
}

.history-versions__table th {
	padding: 10px 14px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.history-versions__table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.history-versions__table tbody tr:last-child td {
	border-bottom: 0;
}

.history-versions__table tbody tr:hover td {
	background: var(--surface-2);
}

.history-versions__version {
	font-weight: 650;
	color: var(--ink);
	white-space: normal;
	overflow-wrap: anywhere;
}

.history-versions__badge {
	display: inline-flex;
	align-items: center;
	margin-left: 7px;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	vertical-align: middle;
}

.history-versions__date {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

.history-versions__download-col {
	text-align: right;
}

.history-versions__table td:last-child {
	text-align: right;
}

.history-versions__download {
	display: inline-flex;
	white-space: nowrap;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--surface-3);
	color: var(--accent);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.history-versions__download:hover {
	background: var(--accent);
	color: #fff;
}

.history-versions__download .icon {
	width: 13px;
	height: 13px;
}

.history-versions__missing {
	font-size: 12px;
	color: var(--muted-2);
	white-space: nowrap;
}

.history-versions__more {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}

.history-versions__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--accent);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.history-versions__more-btn:hover {
	border-color: var(--accent-ring);
	background: var(--accent-soft);
}

.history-versions__more-btn .icon {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.history-versions.is-expanded .history-versions__more-btn .icon {
	transform: rotate(180deg);
}

.history-versions__note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	padding: 13px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.history-versions__note-label {
	flex: none;
	padding-top: 1px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.history-versions__note-body {
	min-width: 0;
}

@media (max-width: 560px) {
	.history-versions {
		margin-top: 30px;
		padding: 16px;
		border-radius: 14px;
	}

	.history-versions__head {
		gap: 10px;
	}

	.history-versions__heading {
		flex-basis: calc(100% - 52px);
	}

	.history-versions__actions {
		width: 100%;
		margin-left: 0;
		justify-content: stretch;
	}

	.history-versions__action {
		flex: 1 1 0;
		justify-content: center;
	}

	.history-versions__title {
		font-size: 16px;
	}

	.history-versions__table {
		font-size: 12px;
	}

	.history-versions__table th,
	.history-versions__table td {
		padding: 9px 10px;
	}

	.history-versions__download {
		padding: 5px 8px;
	}
}

.entry-footer--page {
	margin-top: 20px;
	padding-top: 16px;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.entry-tags__label,
.share-row__label {
	margin-right: 2px;
	font-size: 12px;
	color: var(--muted-2);
}

.share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink-2);
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.share-btn .icon {
	width: 14px;
	height: 14px;
}

.share-btn:hover {
	color: var(--accent);
	border-color: var(--accent-ring);
	background: var(--accent-soft);
}

.share-btn.is-copied {
	color: var(--success);
	border-color: rgba(16, 185, 129, 0.4);
	background: rgba(16, 185, 129, 0.1);
}

.share-qr-modal {
	position: fixed;
	inset: 0;
	z-index: 320;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.share-qr-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.22s ease, visibility 0s;
}

.share-qr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 10, 20, 0.66);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.share-qr-modal__dialog {
	position: relative;
	width: min(360px, 100%);
	padding: 26px 24px 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 22px;
	box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.65);
	text-align: center;
	transform: translateY(-12px) scale(0.985);
	transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.share-qr-modal.is-open .share-qr-modal__dialog {
	transform: none;
}

.share-qr-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--surface-3);
}

.share-qr-modal__title {
	margin: 5px 0 7px;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.share-qr-modal__hint {
	margin: 0 0 16px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--muted-2);
}

.share-qr-modal__code {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.share-qr-modal__code canvas {
	display: block;
	max-width: 100%;
	height: auto;
	image-rendering: pixelated;
}

.share-qr-modal__article {
	margin: 14px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--muted);
	overflow-wrap: anywhere;
}

body.qr-open {
	overflow: hidden;
}

.edit-link {
	font-size: 12px;
	color: var(--muted-2);
}

.edit-link a {
	color: var(--accent);
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 34px;
}

.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 16px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: 14px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-nav__item:hover {
	border-color: var(--accent-ring);
	transform: translateY(-2px);
}

.post-nav__item--next {
	text-align: right;
}

.post-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: var(--muted-2);
}

.post-nav__item--next .post-nav__label {
	justify-content: flex-end;
}

.post-nav__label .icon {
	width: 13px;
	height: 13px;
}

.post-nav__item strong {
	font-size: 13px;
	line-height: 1.5;
	font-weight: 650;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-nav__item--empty {
	border: 0;
	background: none;
}

.related-posts {
	margin-top: 44px;
	padding: 24px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: 18px;
}

.related-posts__title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.related-posts__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
	line-height: 1;
}

.related-posts__icon .icon {
	width: 15px;
	height: 15px;
}

.related-posts .post-grid--related {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
}

.related-posts .post-card__body {
	padding: 12px;
}

.related-posts .post-card__title {
	font-size: 13px;
}

.related-posts .entry-meta {
	gap: 8px;
	font-size: 10.5px;
}

/* Article FAQ accordion */
.faq-section {
	margin-top: 24px;
	padding: 24px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: 18px;
}

.faq-section__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.faq-section__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 9px;
	background: var(--accent-soft);
	color: var(--accent);
}

.faq-section__icon .icon {
	width: 16px;
	height: 16px;
}

.faq-section__title {
	margin: 2px 0 0;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.faq-section__count {
	margin-left: auto;
	color: var(--muted-2);
	font-size: 11px;
	white-space: nowrap;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.faq-item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
	border-color: var(--accent-ring);
	box-shadow: 0 4px 18px -14px rgba(15, 23, 42, 0.45);
}

.faq-item__question {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 15px;
	cursor: pointer;
	list-style: none;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__index {
	color: var(--accent);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.faq-item__text {
	flex: 1;
	min-width: 0;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.55;
}

.faq-item__chevron {
	display: inline-flex;
	flex: none;
	color: var(--muted-2);
	transition: transform 0.2s ease;
}

.faq-item__chevron .icon {
	width: 15px;
	height: 15px;
}

.faq-item[open] .faq-item__chevron {
	color: var(--accent);
	transform: rotate(180deg);
}

.faq-item__answer {
	padding: 0 15px 15px 39px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.8;
}

.faq-item__answer p {
	margin: 0 0 8px;
}

.faq-item__answer p:last-child {
	margin-bottom: 0;
}

@media (max-width: 560px) {
	.faq-section {
		padding: 18px;
	}

	.faq-section__count {
		display: none;
	}

	.faq-item__answer {
		padding-left: 15px;
	}
}

.related-posts .entry-meta .icon {
	width: 11px;
	height: 11px;
}

.related-posts .entry-meta__item:nth-child(2) {
	display: none;
}

.related-posts .post-card__excerpt {
	display: none;
}

/* -------------------------------------------------------------------------
 * 12. Entry content
 * ---------------------------------------------------------------------- */
.entry-content {
	font-size: 16.5px;
	line-height: 1.9;
	color: var(--ink-2);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.entry-content > * + * {
	margin-top: 1.35em;
}

.entry-content h2 {
	margin: 2.2em 0 0.8em;
	padding-left: 16px;
	border-left: 4px solid var(--accent);
	font-size: 26px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--ink);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.entry-content h3 {
	margin: 1.8em 0 0.6em;
	font-size: 20px;
	color: var(--ink);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.entry-content h4 {
	margin: 1.6em 0 0.5em;
	font-size: 17px;
	color: var(--ink);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.entry-content p {
	margin: 0 0 1.2em;
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: var(--accent-ring);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s ease;
}

.entry-content a:hover {
	text-decoration-color: var(--accent);
}

.entry-content strong {
	color: var(--ink);
	font-weight: 700;
}

.entry-content img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.4em auto;
	border-radius: 12px;
}

.entry-content a.v8gb-lightbox {
	display: block;
	text-decoration: none;
}

.v8gb-lightbox,
.v8gb-zoomable {
	cursor: zoom-in;
}

.entry-content figure {
	margin: 1.8em 0;
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--muted-2);
	text-align: center;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.45em;
}

.entry-content li {
	margin: 0.4em 0;
}

.entry-content li > ul,
.entry-content li > ol {
	margin: 0.4em 0;
}

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 16px 20px;
	background: var(--surface);
	border-left: 4px solid var(--accent);
	border-radius: 0 12px 12px 0;
	font-size: 15.5px;
	color: var(--ink-2);
}

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

.entry-content code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--surface-3);
	font-family: var(--font-mono);
	font-size: 0.88em;
	color: var(--accent);
}

.entry-content pre {
	margin: 1.8em 0;
	padding: 18px 20px;
	overflow: auto;
	border-radius: 12px;
	background: #0d1324;
	color: #dbe3f4;
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.7;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

.entry-content table {
	display: block;
	width: 100%;
	margin: 1.8em 0;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 14px;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	background: var(--surface-3);
	font-weight: 650;
	color: var(--ink);
}

.entry-content hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.entry-content .wp-block-button__link {
	padding: 10px 18px;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background: var(--accent-strong);
	color: #fff;
}

.entry-content .wp-block-quote {
	padding: 14px 20px;
	border-left: 4px solid var(--accent);
	border-radius: 0 12px 12px 0;
	background: var(--surface);
}

.entry-content .wp-block-pullquote {
	padding: 26px 0;
	border-top: 3px solid var(--accent);
	border-bottom: 3px solid var(--accent);
}

.entry-content .wp-block-separator {
	max-width: 120px;
	margin: 2em auto;
	border: 0;
	border-top: 1px solid var(--line);
}

.entry-content .wp-block-separator.is-style-wide {
	max-width: none;
}

.entry-content .alignwide {
	width: min(calc(100vw - 48px), 1080px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignleft {
	float: left;
	margin: 0 1.4em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0 0 1em 1.4em;
}

.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text {
	font-size: 12px;
	color: var(--muted);
	text-align: center;
}

.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 1.8em 0;
}

.entry-content .gallery-item {
	margin: 0;
}

.entry-content .gallery img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.page-links {
	margin-top: 24px;
	font-size: 13px;
	color: var(--muted);
}

.page-links a,
.page-links > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	margin: 0 3px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	font-size: 12.5px;
}

.page-links a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* -------------------------------------------------------------------------
 * 13. Comments
 * ---------------------------------------------------------------------- */
.comments-area {
	margin-top: 44px;
	padding: 24px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: 18px;
}

.comments-title,
.comment-reply-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 20px;
	letter-spacing: -0.02em;
}

.comments-title span {
	font-weight: 500;
	color: var(--muted-2);
}

.comments-title .comments-title__icon,
.comment-reply-title .comment-reply-title__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--accent);
	line-height: 1;
}

.comments-title .comments-title__icon .icon,
.comment-reply-title .comment-reply-title__icon .icon {
	width: 15px;
	height: 15px;
}

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

.comment-list .children {
	list-style: none;
	margin: 14px 0 0;
	padding-left: 24px;
	border-left: 1px solid var(--line);
}

.comment-body {
	display: flex;
	gap: 12px;
	margin-bottom: 14px;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}

.comment-avatar img {
	border-radius: 50%;
	display: block;
}

.comment-content {
	min-width: 0;
	flex: 1;
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.comment-author {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
}

.comment-date {
	font-size: 11px;
	color: var(--muted-2);
}

.comment-awaiting {
	font-size: 10px;
	color: var(--warm);
}

.comment-text {
	font-size: 13.5px;
	line-height: 1.75;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

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

.comment-actions {
	display: flex;
	gap: 12px;
	margin-top: 8px;
	font-size: 12px;
}

.comment-reply a,
.comment-edit a {
	color: var(--accent);
}

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

.comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.comment-form p {
	margin: 0;
}

.comment-form > .comment-notes,
.comment-form > .logged-in-as,
.comment-form > .comment-form-comment,
.comment-form > .comment-form-cookies-consent,
.comment-form > .form-submit {
	grid-column: 1 / -1;
}

.comment-form-turnstile {
	grid-column: 1 / -1;
	margin: 0;
}

.comment-form-turnstile .cf-turnstile {
	min-height: 65px;
}

.comment-form-turnstile__hint {
	margin: 6px 0 0;
	font-size: 11px;
	line-height: 1.5;
	color: var(--muted-2);
}

.comment-form-math-captcha {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	grid-column: 1 / -1;
}

.comment-form-math-captcha label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
}

.comment-form-math-captcha input[type="text"] {
	width: 110px;
}

.comment-form-math-captcha__hint {
	flex-basis: 100%;
	color: var(--muted-2);
	font-size: 11px;
	line-height: 1.5;
}

.comment-form-recaptcha {
	grid-column: 1 / -1;
	margin: 0;
}

.comment-form-recaptcha .g-recaptcha {
	min-height: 78px;
}

.comment-form-recaptcha__hint {
	margin: 6px 0 0;
	color: var(--muted-2);
	font-size: 11px;
	line-height: 1.5;
}

.comment-form-recaptcha-v3 {
	grid-column: 1 / -1;
	margin: 0;
}

.comment-form-recaptcha-v3__hint {
	margin: 6px 0 0;
	color: var(--muted-2);
	font-size: 11px;
	line-height: 1.5;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.comment-form .required {
	color: var(--danger);
}

.comment-notes {
	font-size: 12px;
	color: var(--muted-2);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: var(--muted);
}

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

.no-comments {
	margin-top: 20px;
	padding: 14px 18px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	font-size: 13px;
	color: var(--muted);
}

/* -------------------------------------------------------------------------
 * 14. Pagination
 * ---------------------------------------------------------------------- */
.pagination {
	margin-top: 36px;
}

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

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	font-size: 13px;
	color: var(--ink-2);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links .page-numbers:hover {
	border-color: var(--accent-ring);
	color: var(--accent);
}

.nav-links .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.nav-links .page-numbers.dots {
	min-width: auto;
	border-color: transparent;
	background: none;
}

.nav-links .prev,
.nav-links .next {
	gap: 6px;
}

.nav-links .prev .icon,
.nav-links .next .icon {
	width: 15px;
	height: 15px;
}

.pagination-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
}

@media (max-width: 560px) {
	.nav-links {
		flex-wrap: nowrap;
		gap: 2px;
	}

	.nav-links .page-numbers {
		min-width: 28px;
		height: 28px;
		padding: 0 4px;
		border-radius: 8px;
		font-size: 11px;
	}

	.nav-links .page-numbers.dots {
		min-width: 16px;
		padding: 0 1px;
	}

	.nav-links .prev .icon,
	.nav-links .next .icon {
		width: 14px;
		height: 14px;
	}

	.pagination-arrow {
		font-size: 15px;
	}
}

.wp-pagenavi {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 36px;
	font-size: 13px;
}

.wp-pagenavi a,
.wp-pagenavi span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink-2);
}

.wp-pagenavi .current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * 15. 404 & empty states
 * ---------------------------------------------------------------------- */
.error-page {
	padding: 64px 0 90px;
}

.error-page__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.error-page__code {
	font-size: clamp(96px, 16vw, 156px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.06em;
	background: linear-gradient(120deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--accent);
}

.error-page h1 {
	margin: 10px 0;
	font-size: clamp(26px, 4vw, 38px);
	letter-spacing: -0.03em;
}

.error-page__text {
	max-width: 48ch;
	margin-bottom: 26px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--muted);
}

.error-page__search {
	width: 100%;
	max-width: 560px;
}

.error-page__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
}

.error-page__latest {
	margin-top: 70px;
}


.no-results {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 54px 24px;
	text-align: center;
	background: var(--surface);
	border: 1px dashed var(--line-strong);
	border-radius: 20px;
}

.no-results__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 16px;
	border-radius: 16px;
	background: var(--accent-soft);
	color: var(--accent);
}

.no-results__icon .icon {
	width: 24px;
	height: 24px;
}

.no-results__title {
	font-size: 20px;
	margin-bottom: 8px;
}

.no-results__text {
	max-width: 40ch;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.8;
	color: var(--muted);
}

.no-results__search {
	width: 100%;
	max-width: 460px;
}

.no-results__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

/* -------------------------------------------------------------------------
 * 16. Footer
 * ---------------------------------------------------------------------- */
.site-footer {
	position: relative;
	margin-top: 40px;
	overflow: hidden;
	background: #0a0f1e;
	color: rgba(255, 255, 255, 0.7);
}

.site-footer::before {
	content: "";
	position: absolute;
	top: -140px;
	left: 18%;
	width: 460px;
	height: 340px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
	filter: blur(42px);
	pointer-events: none;
}

.footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	gap: 0;
	padding-top: 62px;
	padding-bottom: 46px;
	text-align: center;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.footer-brand .brand,
.footer-brand .brand--logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	text-align: center;
}

.footer-brand .brand--footer .brand__mark {
	align-self: center;
}

.footer-brand .brand--footer .brand__text {
	align-items: center;
	justify-content: center;
	text-align: center;
}

.footer-brand .social-links {
	justify-content: center;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
	font-size: 12px;
}

.footer-nav .footer-menu {
	justify-content: center;
}

.footer-sitemap {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.52);
}

.footer-sitemap:hover {
	color: #fff;
}

.footer-brand .brand__name {
	background-image: linear-gradient(135deg, #818cf8, #22d3ee);
}

.footer-brand .brand__tagline {
	color: rgba(255, 255, 255, 0.45);
}

.footer-desc {
	/* max-width: 34ch; */
	margin: 18px auto;
	font-size: 13px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.52);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.social-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 9px;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.64);
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link .icon {
	width: 14px;
	height: 14px;
}

.social-link:hover {
	color: #fff;
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.06);
}

.footer-widget__title {
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}

.footer-list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-list a {
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.56);
	transition: color 0.2s ease;
}

.footer-list a:hover {
	color: #fff;
}

.footer-list--categories li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	white-space: nowrap;
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.34);
}

.footer-list--categories a {
	display: inline;
	font-size: 12.5px;
}

.footer-widget .tagcloud a {
	background: rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.6);
}

.footer-widget .tagcloud a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.site-footer .widget {
	background: transparent;
	border: 0;
	padding: 0;
}

.site-footer .widget-title {
	color: #fff;
}

.site-footer .widget a {
	color: rgba(255, 255, 255, 0.58);
}

.site-footer .widget a:hover {
	color: #fff;
}

.footer-widget .textwidget a {
	display: block;
	margin-bottom: 8px;
}

.footer-bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	text-align: center;
	padding-top: 22px;
	padding-bottom: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
}

.footer-copy {
	margin: 0;
}

.footer-copy a {
	color: rgba(255, 255, 255, 0.62);
}

.footer-copy a:hover {
	color: #fff;
}

.footer-copy__sep {
	margin: 0 6px;
	color: rgba(255, 255, 255, 0.28);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.52);
}

.footer-menu a:hover {
	color: #fff;
}

/* Back to top ----------------------------------------------------------- */
.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 80;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: var(--surface);
	color: var(--ink-2);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	color: var(--accent);
	border-color: var(--accent-ring);
}

/* -------------------------------------------------------------------------
 * 17. WordPress core & plugin compatibility
 * ---------------------------------------------------------------------- */
.alignleft {
	float: left;
	margin: 0 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.4em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 12px;
	color: var(--muted);
	text-align: center;
}

.sticky {
	position: relative;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.gallery-item {
	margin: 0;
}

.gallery img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bypostauthor > .comment-body {
	border-color: var(--accent-ring);
}

/* -------------------------------------------------------------------------
 * 18. Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 1120px) {
	.header-bar {
		gap: 18px;
	}

	.nav-menu > li > a {
		padding: 8px 8px;
		font-size: 12.5px;
	}

	.brand__tagline {
		display: none;
	}
}

@media (max-width: 1200px) {
	.nav-menu > li > a {
		padding-left: 9px;
		padding-right: 9px;
	}
}

@media (max-width: 1180px) {
	.search-toggle {
		width: 40px;
		gap: 0;
		padding: 0;
	}

	.search-toggle__label,
	.search-toggle__hint {
		display: none;
	}
}

@media (max-width: 1024px) {
	.content-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	.sidebar .widget-cta {
		grid-column: 1 / -1;
	}

	.single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.single-side {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.single-side .side-cta {
		grid-column: 1 / -1;
	}

	.archive-hero__desc {
		max-width: 100%;
	}
}

@media (max-width: 900px) {
	.primary-nav {
		display: none;
	}

	.menu-toggle {
		display: grid;
	}

	.header-actions {
		margin-left: auto;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.footer-brand {
		grid-column: auto;
	}

	.admin-bar .site-header {
		top: 46px;
	}

	.admin-bar .reading-progress {
		top: 46px;
	}
}

@media (max-width: 760px) {
	.container {
		padding-left: 18px;
		padding-right: 18px;
	}

	.related-posts .post-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.feed-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.post-card {
		gap: 12px;
		padding: 12px;
	}

	.post-card__thumb {
		width: 112px;
	}

	.post-card__title {
		font-size: 15.5px;
	}

	.post-card__excerpt {
		font-size: 12.5px;
	}

	.sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-side {
		grid-template-columns: minmax(0, 1fr);
	}

	.single-side .side-cta {
		grid-column: auto;
	}

	.single-layout {
		padding-top: 32px;
	}

	.single-header {
		gap: 18px;
	}

	.single-content-card,
	.page-content-card {
		padding: 22px;
		border-radius: 16px;
	}

	.related-posts,
	.comments-area {
		padding: 18px;
		border-radius: 14px;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav__item--next {
		text-align: left;
	}

	.post-nav__item--next .post-nav__label {
		justify-content: flex-start;
	}

	.page-hero__icon,
	.archive-hero__icon,
	.archive-hero__stat {
		display: none;
	}

	.entry-content .alignwide,
	.entry-content .alignfull {
		width: 100%;
		margin-left: 0;
		transform: none;
	}

	.entry-content .gallery,
	.gallery-columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.comment-list .children {
		padding-left: 12px;
	}

	.comment-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.comment-form > p {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.header-bar {
		gap: 10px;
	}

	.header-actions {
		gap: 0;
	}

	.header-actions .icon-btn {
		width: 38px;
		height: 38px;
	}

	.related-posts .post-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gallery,
	.gallery-columns-2,
	.gallery-columns-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.feed-header h1 {
		font-size: 27px;
	}

	.post-card {
		gap: 11px;
		padding: 11px;
	}

	.post-card__thumb {
		width: 92px;
	}

	.post-card__body {
		gap: 6px;
	}

	.post-card--row .post-card__excerpt {
		display: none;
	}

	.post-card__title {
		font-size: 15px;
	}

	.post-card__badge {
		left: 8px;
		bottom: 8px;
		padding: 3px 7px;
		font-size: 10px;
		max-width: calc(100% - 16px);
	}

	.single-content-card,
	.page-content-card {
		padding: 16px;
	}

	.single-header {
		flex-direction: column;
		gap: 18px;
	}

	.single-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.single-title__text {
		order: 1;
	}

	.single-thumb {
		position: relative;
		/* order: 2; */
		width: 120px;
		height: 120px;
		flex-basis: 120px;
		align-self: flex-start;
	}

	.section {
		padding-top: 32px;
		padding-bottom: 56px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.page-hero {
		padding: 30px 0 26px;
	}

	.archive-hero {
		padding: 30px 0 26px;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 44px;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.comments-title,
	.comment-reply-title {
		font-size: 18px;
	}

	.to-top {
		right: 14px;
		bottom: 14px;
	}

	.search-modal {
		padding: 8vh 14px 24px;
	}

	.search-modal__dialog {
		padding: 20px;
		border-radius: 18px;
		max-height: calc(100vh - 14vh);
	}

	.search-modal__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.search-modal__quick {
		max-width: 100%;
	}

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

	.entry-content h2 {
		font-size: 22px;
	}

	.entry-content h3 {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* -------------------------------------------------------------------------
 * Software directory
 * ---------------------------------------------------------------------- */
.software-page {
	padding-bottom: 80px;
}

.software-hero {
	padding: 54px 0 26px;
}

.software-hero h1 {
	margin: 10px 0 12px;
	font-size: clamp(34px, 4.2vw, 50px);
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.software-hero p {
	max-width: 680px;
	font-size: 14px;
	line-height: 1.8;
	color: var(--muted);
}

.software-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 18px;
	font-size: 12px;
	color: var(--muted-2);
}

.software-hero__meta strong {
	color: var(--accent);
	font-size: 16px;
	font-weight: 800;
}

.software-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	padding: 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-sm);
}

.software-search {
	position: relative;
	flex: 1 1 260px;
	min-width: 200px;
}

.software-search__icon {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	color: var(--muted-2);
	line-height: 1;
	pointer-events: none;
}

.software-search__icon .icon {
	display: block;
	width: 16px;
	height: 16px;
}

.software-search input {
	width: 100%;
	height: 40px;
	padding: 0 12px 0 38px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	font-size: 13px;
}

.software-search input:focus {
	border-color: var(--accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.software-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.software-filter {
	padding: 7px 11px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.software-filter:hover {
	border-color: var(--accent-ring);
	color: var(--accent);
}

.software-filter.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.software-results {
	margin: 0 0 0 auto;
	font-size: 12px;
	color: var(--muted-2);
	white-space: nowrap;
}

.software-results strong {
	color: var(--ink);
}

.software-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.software-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.software-card:hover {
	border-color: var(--accent-ring);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.software-card[hidden] {
	display: none;
}

.software-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 22px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
}

.software-card__media a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.software-card__media img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.software-card__fallback {
	color: var(--accent);
	font-size: 48px;
	font-weight: 800;
}

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

.software-card__platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.software-card__platforms span {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.5;
}

.software-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

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

.software-card__title a:hover {
	color: var(--accent);
}

.software-card__desc {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.software-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

.software-card__price {
	color: var(--accent);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.software-card__price span {
	margin-left: 2px;
	color: var(--muted-2);
	font-size: 11px;
	font-weight: 500;
}

.software-card__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 9px;
	background: var(--surface-3);
	border-radius: 8px;
	color: var(--ink-2);
	font-size: 11px;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.software-card__link:hover {
	background: var(--accent);
	color: #fff;
}

.software-card__link .icon {
	width: 12px;
	height: 12px;
}

.software-empty {
	padding: 40px 20px;
	background: var(--surface);
	border: 1px dashed var(--line);
	border-radius: 14px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}

.software-empty[hidden] {
	display: none;
}

.software-empty--error p {
	margin: 0;
}

.software-note {
	margin-top: 24px;
	text-align: center;
	color: var(--muted-2);
	font-size: 11px;
}

@media (max-width: 1100px) {
	.software-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.software-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.software-hero {
		padding-top: 38px;
	}

	.software-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.software-results {
		margin-left: 0;
	}

	.software-card__media {
		padding: 16px;
	}
}

@media (max-width: 560px) {
	.software-card__media {
		padding: 12px;
	}

	.software-card__body {
		gap: 6px;
		padding: 11px;
	}

	.software-card__title {
		font-size: 13px;
	}

	.software-card__desc {
		font-size: 11px;
	}

	.software-card__price {
		font-size: 16px;
		white-space: nowrap;
	}

	.software-card__foot {
		flex-wrap: nowrap;
		gap: 4px;
	}

	.software-card__link {
		gap: 3px;
		padding: 5px 6px;
		font-size: 10px;
	}

	.software-card__link .icon {
		width: 10px;
		height: 10px;
	}
}

/* -------------------------------------------------------------------------
 * Topic directory
 * ---------------------------------------------------------------------- */
.topics-page {
	padding-bottom: 80px;
}

.topics-hero {
	padding: 54px 0 26px;
}

.topics-hero h1 {
	margin: 10px 0 12px;
	font-size: clamp(34px, 4.2vw, 50px);
	line-height: 1.1;
	letter-spacing: -0.04em;
}

.topics-hero p {
	max-width: 680px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.8;
}

.topics-hero__meta {
	margin-top: 16px;
	color: var(--muted-2);
	font-size: 12px;
}

.topics-hero__meta strong {
	color: var(--accent);
	font-size: 16px;
	font-weight: 800;
}

.topics-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.topic-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 18px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
	border-color: var(--accent-ring);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.topic-card__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 20px;
	background:
		radial-gradient(circle at 100% 0, var(--accent-soft), transparent 58%),
		var(--surface-2);
	border-bottom: 1px solid var(--line);
}

.topic-card__icon {
	display: grid;
	width: 38px;
	height: 38px;
	flex: none;
	place-items: center;
	border-radius: 10px;
	background: var(--surface);
	color: var(--accent);
	box-shadow: var(--shadow-sm);
}

.topic-card__icon .icon {
	width: 19px;
	height: 19px;
}

.topic-card__heading {
	min-width: 0;
}

.topic-card__name {
	margin: 0;
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.topic-card__name a {
	color: var(--ink);
	text-decoration: none;
}

.topic-card__name a:hover {
	color: var(--accent);
}

.topic-card__count {
	margin: 5px 0 0;
	color: var(--muted-2);
	font-size: 11px;
}

.topic-card__desc {
	padding: 15px 20px 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.7;
}

.topic-card__posts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 20px 14px;
}

.topic-post {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 6px;
	border-radius: 10px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.topic-post:hover {
	background: var(--surface-2);
}

.topic-post__thumb {
	width: 48px;
	height: 48px;
	flex: none;
	overflow: hidden;
	border-radius: 8px;
	background: var(--surface-3);
}

.topic-post__thumb .post-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.topic-post__thumb .post-thumb__placeholder {
	width: 100%;
	height: 100%;
}

.topic-post__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.topic-post__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ink-2);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.topic-post:hover .topic-post__title {
	color: var(--accent);
}

.topic-post__meta {
	color: var(--muted-2);
	font-size: 10.5px;
	line-height: 1.4;
}

.topic-card__empty {
	margin: 7px 0;
	color: var(--muted-2);
	font-size: 12px;
}

.topic-card__foot {
	margin-top: auto;
	padding: 0 20px 18px;
}

.topic-card__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 650;
	text-decoration: none;
}

.topic-card__more .icon {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

.topic-card__more:hover .icon {
	transform: translateX(3px);
}

.topics-empty {
	padding: 40px 20px;
	text-align: center;
	background: var(--surface);
	border: 1px dashed var(--line);
	border-radius: 14px;
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 1024px) {
	.topics-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.topics-hero {
		padding-top: 38px;
	}

	.topics-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------------------
 * Topic archive
 * ---------------------------------------------------------------------- */
.topic-archive-hero {
	padding: 38px 0 24px;
}

.topic-archive__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 26px;
}

.topic-archive__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.topic-archive__back .icon {
	width: 14px;
	height: 14px;
}

.topic-archive__back:hover {
	color: var(--accent);
}

.topic-archive__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.topic-archive__chip {
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-size: 11px;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.topic-archive__chip:hover {
	border-color: var(--accent-ring);
	color: var(--accent);
}

.topic-archive__chip.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.topic-archive-hero h1 {
	margin: 8px 0 10px;
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.topic-archive__desc {
	max-width: 720px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.8;
}

.topic-archive-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
	color: var(--muted-2);
	font-size: 12px;
}

.topic-archive-bar span:first-child {
	color: var(--ink-2);
	font-weight: 650;
}

@media (max-width: 760px) {
	.topic-archive__top {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.topic-archive__chips {
		width: 100%;
	}
}
