/*
Theme Name: Venture
Theme URI: https://example.com/venture
Author: Venture
Author URI: https://example.com
Description: A clean, fast classic WordPress theme for startup and fintech media. Three-column dtf.ru/vc.ru style layout: sticky topics rail on the left, a full-width card feed (author, date, title, excerpt, image) in the middle, and a functional popular-posts sidebar on the right.
Version: 1.6.2
Requires at least: 6.0
Tested up to: 6.7
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: venture
Tags: news, blog, three-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* --------------------------------------------
   1. Design tokens
-------------------------------------------- */
:root {
	--color-bg: #f5f6f8;
	--color-surface: #ffffff;
	--color-border: #e5e7eb;
	--color-text: #0f1728;
	--color-text-soft: #475569;
	--color-muted: #7c8394;
	--color-accent: #2f5cff;
	--color-accent-soft: #eef2ff;
	--color-accent-ink: #1d3fb0;
	--color-warning: #d97706;

	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;

	--header-h: 60px;
	--container: 1200px;
	--gutter: 24px;
	--space: clamp(1rem, 2vw, 1.5rem);
}

/* --------------------------------------------
   2. Base / reset
-------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color .15s ease;
}

a:hover {
	color: var(--color-accent-ink);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p {
	margin: 0 0 1.1em;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip-link {
	position: absolute;
	left: -999em;
	background: var(--color-accent);
	color: #fff;
	padding: .6rem 1rem;
	border-radius: var(--radius-sm);
	z-index: 999;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* Accessible focus outlines */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* --------------------------------------------
   3. Header
-------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--gutter);
	height: var(--header-h);
}

.site-branding {
	display: flex;
	align-items: center;
	gap: .6rem;
	flex-shrink: 0;
}

.site-branding img {
	max-height: 34px;
	width: auto;
}

.site-branding__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 900;
	letter-spacing: -.02em;
}

.site-title a {
	color: var(--color-text);
}

.site-title a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.site-description {
	margin: 0;
	font-size: .78rem;
	color: var(--color-muted);
}

/* Primary menu */
.main-navigation {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	justify-content: center;
}

.main-navigation a {
	display: block;
	padding: .45rem .7rem;
	border-radius: var(--radius-sm);
	font-size: .92rem;
	font-weight: 600;
	color: var(--color-text-soft);
}

.main-navigation a:hover {
	background: var(--color-bg);
	color: var(--color-text);
	text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: var(--color-accent-soft);
	color: var(--color-accent-ink);
}

/* header search */
.header-search {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: auto;
}

.header-search form {
	display: flex;
	align-items: center;
	gap: .35rem;
}

.header-search__input {
	font-family: inherit;
	font-size: .88rem;
	color: var(--color-text);
	width: 0;
	min-width: 0;
	flex-shrink: 1;
	opacity: 0;
	padding: 0;
	border: 1px solid var(--color-border);
	border-width: 0;
	border-radius: 999px;
	background: var(--color-surface);
	transition: width .2s ease, opacity .2s ease, padding .2s ease, border-width .2s ease;
}

.header-search__input:focus,
.header-search__input.is-open {
	width: 210px;
	padding: .4rem .9rem;
	border-width: 1px;
	opacity: 1;
	outline: none;
	border-color: var(--color-accent);
}

html.no-js .header-search__input {
	width: 160px;
	padding: .4rem .9rem;
	border-width: 1px;
	opacity: 1;
}

.header-search__btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: var(--color-text-soft);
}

.header-search__btn svg {
	display: block;
}

.header-search__btn:hover {
	color: var(--color-accent);
}

/* Hamburger + mobile menu */
.menu-toggle {
	display: none;
	place-items: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	color: var(--color-text-soft);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.menu-toggle:hover {
	background: var(--color-accent-soft);
	color: var(--color-accent);
}

.mobile-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 55;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	box-shadow: 0 18px 30px rgba(15, 23, 40, .12);
	max-height: calc(100vh - var(--header-h));
	overflow-y: auto;
}

.mobile-menu__section {
	padding: 1rem 0 .5rem;
}

.mobile-menu__title {
	margin: 0 0 .5rem;
	font-size: .8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--color-muted);
}

.mobile-menu .topics-list {
	display: flex;
	flex-direction: column;
	gap: .1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-menu .topic-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .55rem .6rem;
	border-radius: var(--radius-sm);
	font-size: .95rem;
	font-weight: 600;
	color: var(--color-text-soft);
}

.mobile-menu .topic-link:hover {
	background: var(--color-bg);
	color: var(--color-text);
	text-decoration: none;
}

.mobile-menu .topic-item--active .topic-link {
	background: var(--color-accent-soft);
	color: var(--color-accent-ink);
}

.mobile-menu .topic-count {
	font-size: .72rem;
	font-weight: 700;
	color: var(--color-muted);
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	padding: 0 .4rem;
	border-radius: 999px;
}

.mobile-menu__widgets {
	margin-top: .25rem;
	padding: .75rem 0 1.25rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mobile-menu .widget {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
}

.mobile-menu .widget-title {
	font-size: .78rem;
}

.mobile-menu .widget a {
	font-size: .9rem;
}

/* --------------------------------------------
   4. Layout grid
-------------------------------------------- */
.site-content {
	max-width: var(--container);
	margin: 0 auto;
	padding: var(--space) var(--gutter) calc(var(--space) * 2);
}

.content-area {
	margin: 0 auto;
}

.has-sidebar .site-content {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 320px;
	gap: var(--gutter);
	align-items: start;
}

/* --------------------------------------------
   5. Feed / cards (dtf.ru / vc.ru style)
-------------------------------------------- */
.feed {
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
}

.feed__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.feed__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
}

.feed__toggle {
	font-size: .82rem;
	font-weight: 600;
	color: var(--color-muted);
}

.feed__toggle:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.post-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: clamp(1rem, 2.2vw, 1.5rem);
	display: flex;
	flex-direction: column;
	gap: .6rem;
	transition: box-shadow .2s ease, transform .2s ease;
}

.post-card:hover {
	box-shadow: 0 12px 30px rgba(15, 23, 40, .08);
	transform: translateY(-2px);
}

/* Top row: avatar + author · date · reading time · category chip */
.post-card__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: .75rem 1rem;
	font-size: .84rem;
	color: var(--color-muted);
}

.post-card__meta-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	min-width: 0;
}

.post-card__top .avatar {
	border-radius: 50%;
}

.post-card__author {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	color: var(--color-text-soft);
}

.post-card__author a {
	color: inherit;
}

.post-card__author a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.post-card__sep {
	opacity: .55;
}

.post-card__category {
	justify-self: end;
}

.post-card__category a {
	display: inline-block;
	padding: .22rem .6rem;
	border-radius: 999px;
	background: var(--color-accent-soft);
	font-size: .74rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--color-accent-ink);
}

.post-card__category a:hover {
	background: var(--color-accent);
	color: #fff;
	text-decoration: none;
}

.post-card__category a.has-avatar {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .18rem .55rem .18rem .18rem;
}

.post-card__category a.has-avatar img {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: cover;
}

.post-card__title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.01em;
}

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

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

.post-card__excerpt {
	margin: 0;
	font-size: .98rem;
	line-height: 1.65;
	color: var(--color-text-soft);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__media {
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-border);
}

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

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.02);
}

/* --------------------------------------------
   6. Single post
-------------------------------------------- */
.page .site-content {
	background: var(--color-surface);
}

.page .site-main {
	max-width: 780px;
	margin: 0 auto;
	padding: calc(var(--space) * 1.5) var(--gutter) calc(var(--space) * 2);
}

/* Single post card in the three-column layout */
.single .site-main,
.page .site-main {
	min-width: 0;
}

.single-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: clamp(1.2rem, 2.5vw, 2rem);
}

.single .post-card__top {
	margin-bottom: 1.25rem;
}

/* Horizontal author profile block under the post */
.author-bio {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-bg);
}

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

.author-bio__name {
	margin: 0 0 .2rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.author-bio__name a {
	color: var(--color-text);
}

.author-bio__name a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.author-bio__desc {
	margin: 0;
	font-size: .92rem;
	color: var(--color-text-soft);
}

.entry-title {
	margin-bottom: 1rem;
	font-size: clamp(1.7rem, 4vw, 2.5rem);
	line-height: 1.15;
}

.entry-thumbnail {
	margin-bottom: 1.5rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.6em;
}

.entry-content img,
.entry-content figure {
	margin-bottom: 1.2em;
}

.entry-content ul,
.entry-content ol {
	margin-bottom: 1.1em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: .75rem 1.25rem;
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	color: var(--color-text-soft);
	font-style: italic;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.2em;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--color-border);
	padding: .5rem .75rem;
}

.entry-content pre {
	background: #0f1728;
	color: #e2e8f0;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	overflow-x: auto;
	font-size: .9rem;
}

.entry-content code {
	background: var(--color-bg);
	padding: .1em .35em;
	border-radius: 4px;
	font-size: .9em;
}

.entry-content pre code {
	background: none;
	padding: 0;
}

.entry-tags {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
}

.entry-tags__label {
	font-size: .83rem;
	font-weight: 700;
	color: var(--color-muted);
	margin-right: .25rem;
}

.entry-tags a {
	display: inline-block;
	padding: .22rem .6rem;
	border-radius: 999px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	font-size: .8rem;
	font-weight: 600;
	color: var(--color-text-soft);
}

.entry-tags a:hover {
	background: var(--color-accent-soft);
	border-color: var(--color-accent);
	color: var(--color-accent-ink);
	text-decoration: none;
}

/* Post navigation + pagination */
.post-navigation,
.pagination,
.comments-pagination {
	margin-top: 2rem;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gutter);
	border-top: 1px solid var(--color-border);
	padding-top: 1.25rem;
}

.post-navigation .nav-next {
	text-align: right;
}

.post-navigation a {
	display: block;
	color: var(--color-text);
	font-size: .95rem;
	font-weight: 600;
}

.post-navigation a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

.post-navigation .nav-previous::before,
.post-navigation .nav-next::after {
	font-weight: 400;
	color: var(--color-muted);
	font-size: .8rem;
	display: block;
	margin-bottom: .15rem;
}

.post-navigation .nav-previous::before { content: "← Newer"; }
.post-navigation .nav-next::after { content: "Older →"; }

.nav-links .nav-previous a[rel="prev"],
.nav-links .nav-next a[rel="next"] {
	display: inline-block;
}

.pagination .nav-links,
.comments-pagination .nav-links {
	display: flex;
	gap: .4rem;
	justify-content: center;
}

.pagination .page-numbers,
.comments-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 .5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text-soft);
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.comments-pagination .page-numbers.current,
.comments-pagination .page-numbers:hover {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
	text-decoration: none;
}

/* --------------------------------------------
   7. Sidebar / widgets
-------------------------------------------- */
.widget-area {
	position: sticky;
	top: calc(var(--header-h) + var(--space));
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
}

.widget {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.1rem 1.2rem;
}

.widget-title {
	margin: 0 0 .75rem;
	font-size: .85rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--color-muted);
}

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

.widget li + li {
	margin-top: .5rem;
}

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

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

/* Popular posts list */
.widget-venture-popular li {
	display: flex;
	gap: .8rem;
	align-items: flex-start;
}

.widget-venture-popular .popular-rank {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	font-size: .75rem;
	font-weight: 800;
	color: var(--color-muted);
}

.widget-venture-popular li:nth-child(1) .popular-rank { background: var(--color-accent); color: #fff; }

.widget-venture-popular a {
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.35;
}

.widget-venture-popular time {
	display: block;
	font-size: .75rem;
	font-weight: 400;
	color: var(--color-muted);
	margin-top: .15rem;
}

/* Left rail (topics menu) */
.left-rail {
	position: sticky;
	top: calc(var(--header-h) + var(--space));
	display: flex;
	flex-direction: column;
}

.left-rail a {
	color: var(--color-text-soft);
}

.left-rail .topics-list {
	display: flex;
	flex-direction: column;
	gap: .1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.left-rail .topic-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .4rem .6rem;
	border-radius: var(--radius-sm);
	font-size: .9rem;
	font-weight: 600;
}

.left-rail .topic-link:hover {
	background: var(--color-surface);
	color: var(--color-text);
	text-decoration: none;
}

.left-rail .topic-item--active .topic-link {
	background: var(--color-accent-soft);
	color: var(--color-accent-ink);
}

.topic-label {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-width: 0;
}

.topic-label > span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topic-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.left-rail .topic-count {
	font-size: .7rem;
	font-weight: 700;
	color: var(--color-muted);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	padding: 0 .38rem;
	border-radius: 999px;
}

/* Left rail bottom widget area (links menu, "About us", etc.) */
.left-rail__widgets {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.left-rail__widgets .widget {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
}

.left-rail__widgets .widget-title {
	font-size: .78rem;
}

.left-rail__widgets .widget a {
	font-size: .88rem;
}

.left-rail__widgets .widget li + li {
	margin-top: .4rem;
}

/* --------------------------------------------
   8. Comments
-------------------------------------------- */
.comments-area {
	margin-top: 2.5rem;
	border-top: 1px solid var(--color-border);
	padding-top: 1.5rem;
}

.comments-title,
.comment-reply-title {
	font-size: 1.25rem;
}

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

.comment-list .children {
	list-style: none;
	margin: 1rem 0 0 1.5rem;
	padding: 0;
}

.comment-body {
	margin-bottom: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--color-border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata {
	font-size: .8rem;
	color: var(--color-muted);
	margin: .15rem 0 .6rem;
}

.comment-metadata a {
	color: var(--color-muted);
}

.comment-content {
	font-size: .97rem;
}

.reply a {
	font-size: .82rem;
	font-weight: 700;
}

/* comment form */
.comment-form label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	margin-bottom: .25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: .95rem;
	margin-bottom: .9rem;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--color-accent);
	outline: none;
}

.comment-form .submit,
button[type="submit"],
.wp-block-button__link {
	background: var(--color-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: .6rem 1.4rem;
	font-family: inherit;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease;
}

.comment-form .submit:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--color-accent-ink);
}

/* --------------------------------------------
   9. Archive / search headers
-------------------------------------------- */
.page-header {
	margin-bottom: 1.5rem;
}

.page-title {
	margin: 0 0 .25rem;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.page-description {
	margin: 0;
	color: var(--color-text-soft);
}

.breadcrumbs {
	font-size: .82rem;
	color: var(--color-muted);
	margin-bottom: .5rem;
}

.breadcrumbs a {
	color: var(--color-muted);
}

.breadcrumbs a::after {
	content: " /";
	color: var(--color-border);
	margin-right: 3px;
}

/* Community profile card on category archives */
.community-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: var(--gutter);
}

.community-card__cover {
	height: 140px;
	background:
		linear-gradient(135deg, var(--color-accent), rgba(124, 58, 237, .85));
}

.community-card__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.community-card__body {
	display: flex;
	align-items: flex-start;
	gap: 1.1rem;
	padding: 0 clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem);
}

.community-card.has-cover .community-card__avatar {
	margin-top: -40px;
}

.community-card__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 4px solid var(--color-surface);
	background: var(--color-surface);
}

.community-card__avatar--fallback {
	display: grid;
	place-items: center;
	font-size: 1.8rem;
	font-weight: 800;
	color: #fff;
	border: 4px solid var(--color-surface);
	background: linear-gradient(135deg, var(--color-accent), rgba(124, 58, 237, .85));
}

.community-card__name {
	margin: .7rem 0 .1rem;
	font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.community-card__stats {
	margin: 0 0 .35rem;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--color-muted);
}

.community-card__desc {
	margin: 0;
	color: var(--color-text-soft);
}

/* --------------------------------------------
   10. Search form
-------------------------------------------- */
.search-form {
	display: flex;
	gap: .5rem;
	max-width: 480px;
}

.search-form .search-field {
	flex: 1;
	padding: .6rem .9rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: .95rem;
}

.search-form .search-submit {
	background: var(--color-accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-md);
	padding: .6rem 1.1rem;
	font-weight: 700;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--color-accent-ink);
}

/* --------------------------------------------
   11. 404 + no results
-------------------------------------------- */
.error-404,
.no-results,
.search-no-results {
	padding: 3rem 0;
	text-align: center;
}

.error404 .site-content,
.search-no-results .site-content {
	background: var(--color-surface);
}

.error404 .site-main,
.search-no-results .site-main {
	max-width: 780px;
	margin: 0 auto;
	padding: calc(var(--space) * 1.5) var(--gutter) calc(var(--space) * 2);
}

.search-no-results .search-form {
	margin: 0 auto;
}

.error404 .page-title {
	font-size: 3rem;
}

.recents-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem 1.2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* --------------------------------------------
   12. Editor styles alignment
-------------------------------------------- */
.alignleft {
	float: left;
	margin: .3em 1.2em 1em 0;
}

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

.aligncenter {
	clear: both;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.2em;
}

.wp-caption-text {
	font-size: .82rem;
	color: var(--color-muted);
	margin-top: .4rem;
}

.sticky {
	display: block;
}

.bypostauthor {
	display: block;
}

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

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--color-text);
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* --------------------------------------------
   13. Responsive
------------------------------------------- */
/* Desktop: topics live in the left rail, hide the hamburger and its panel. */
@media (min-width: 1081px) {
	.menu-toggle,
	.mobile-menu {
		display: none !important;
	}
}

@media (max-width: 1200px) {
	.has-sidebar .site-content {
		grid-template-columns: 180px minmax(0, 1fr) 300px;
		gap: 18px;
	}

	:root {
		--container: 1080px;
	}
}

@media (max-width: 1080px) {
	.has-sidebar .site-content {
		grid-template-columns: minmax(0, 1fr);
	}

	.left-rail {
		display: none;
	}

	.menu-toggle {
		display: grid;
	}

	.mobile-menu.is-open {
		display: block;
	}

	html.no-js .mobile-menu {
		display: block;
	}

	.widget-area {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--gutter);
	}

	.widget-venture-popular {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.site-header__inner {
		flex-wrap: wrap;
		height: auto;
		padding: .55rem 0;
		gap: .45rem .75rem;
	}

	.site-branding {
		flex: 1 1 auto;
		min-width: 0;
		gap: .45rem;
	}

	.site-branding img {
		max-height: 26px;
	}

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

	.site-title {
		font-size: 1.05rem;
		min-width: 0;
		white-space: nowrap;
	}

	.site-title a {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.site-description {
		display: none;
	}

	.header-search {
		margin-left: 0;
		flex-shrink: 0;
	}

	.main-navigation {
		order: 3;
		width: 100%;
		flex: none;
	}

	.main-navigation ul {
		padding-bottom: .15rem;
		justify-content: flex-start;
	}

	.post-card {
		padding: 1rem;
	}

	.single-card {
		padding: 1.1rem;
	}

	.widget-area {
		grid-template-columns: 1fr;
	}

	.widget-venture-popular {
		grid-column: auto;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
		gap: .75rem;
	}

	.post-navigation .nav-next {
		text-align: left;
	}

	.post-navigation .nav-previous::before {
		content: "← Newer";
	}

	.post-navigation .nav-next::after {
		content: "Older →";
	}
}

@media (max-width: 600px) {
	.site-content {
		padding-left: 0;
		padding-right: 0;
	}

	.post-card,
	.single-card,
	.community-card,
	.widget {
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.feed {
		gap: 1rem;
	}
}

/* --------------------------------------------
   14. Dark mode (automatic)
------------------------------------------- */
@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;

		--color-bg: #000000;
		--color-surface: #16161a;
		--color-border: #2a2a31;
		--color-text: #e8e8ec;
		--color-text-soft: #b0b0b8;
		--color-muted: #76767f;
		--color-accent-soft: rgba(99, 110, 250, .2);
		--color-accent-ink: #b6c2ff;
	}

	body {
		background: var(--color-bg);
	}

	input[type="text"],
	input[type="search"],
	input[type="email"],
	input[type="url"],
	input[type="password"],
	textarea,
	select {
		color: var(--color-text);
		background: var(--color-surface);
		border-color: var(--color-border);
	}

	img {
		filter: brightness(.92);
	}

	.post-card:hover {
		box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
	}
}