/**
 * Blog — listing (posts page) + single post
 */

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

/* ---------------------------------------------------------------------
 * Listing — hero
 * ------------------------------------------------------------------ */

.va-blog-hero {
	background: #121212;
	padding: 100px 0;
}

.va-blog-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
	gap: 43px;
	align-items: start;
}

.va-blog-hero-copy {
	max-width: 642px;
	min-width: 0;
}

/* Uses global .va-h1 (orange accent from .va-h1 span) and .va-text-body. */
.va-blog-hero-heading {
	margin: 0;
	max-width: 642px;
}

.va-blog-hero-desc {
	margin: 20px 0 0;
	max-width: 540px;
}

.va-blog-hero-media {
	min-width: 0;
	display: flex;
	justify-content: flex-end;
}

.va-blog-hero-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 702 / 432;
	object-fit: cover;
	border-radius: 20px;
}

/* ---------------------------------------------------------------------
 * Listing — featured post
 * ------------------------------------------------------------------ */

.va-blog-featured {
	background: #000000;
	padding: 100px 0;
}

.va-blog-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: #1c1c1c;
	border: 1px solid #383838;
	border-radius: 16px;
	overflow: hidden;
}

.va-blog-feature-media {
	display: block;
	min-width: 0;
	min-height: 100%;
	overflow: hidden;
}

.va-blog-feature-img,
.va-blog-feature-media .va-blog-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
}

.va-blog-feature-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	padding: 73px 24px 73px 60px;
}

/* Title uses global .va-h2 (Inter 700 / 48 / 52 / -1.2px) */
.va-blog-feature-title {
	margin: 0 0 25px;
}

.va-blog-feature-title a:hover {
	color: var(--va-orange);
}

/* Description uses global .va-text-body (Inter 400 / 18px); Figma line-height 28px */
.va-blog-feature-excerpt {
	margin: 0 0 25px;
	line-height: 28px;
}

/* ---------------------------------------------------------------------
 * Post card (listing grid + related posts)
 * ------------------------------------------------------------------ */

.va-blog-grid-section {
	background: #141414;
	padding: 84px 0 100px;
}

.va-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px 30px;
}

.va-blog-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #1c1c1c;
	border: 1px solid #383838;
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 0.3s var(--va-ease);
}

.va-blog-card:hover {
	border-color: rgba(237, 125, 49, 0.55);
}

.va-blog-card-media {
	display: block;
	aspect-ratio: 440 / 300;
	overflow: hidden;
	background: #262626;
}

.va-blog-card-img,
.va-blog-card-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--va-ease);
}

.va-blog-card-placeholder {
	background: linear-gradient(135deg, #262626, #1c1c1c);
}

.va-blog-card:hover .va-blog-card-img {
	transform: scale(1.04);
}

.va-blog-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 25px 30px;
}

/* Figma: Inter 400 / 14px / 28px lh / white 60% */
.va-blog-card-date {
	margin: 0;
	font-size: 14px;
	line-height: 28px;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.6);
}

/* Global .va-h3 (Inter 600, white); Figma card size: 26px / 32px / -1.2px */
.va-blog-card-title {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 32px;
	letter-spacing: -1.2px;
}

.va-blog-card-title a:hover {
	color: var(--va-orange);
}

/* Global .va-text-body (Inter 400 / 18px); Figma line-height 28px, white 60% */
.va-blog-card-excerpt {
	flex: 1 0 auto;
	margin: 0 0 25px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 28px;
	color: rgba(255, 255, 255, 0.6);
}

/* Featured card keeps the compact button; grid cards use the global .va-btn size */
.va-blog-feature .va-blog-btn {
	padding: 10px 22px;
	font-size: 14px;
	line-height: 20px;
}

.va-blog-empty {
	margin: 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------------
 * Category filter
 * ------------------------------------------------------------------ */

.va-blog-grid-section {
	scroll-margin-top: calc(var(--va-header-height) + 24px);
}

.va-blog-filter {
	margin: 0 0 40px;
}

.va-blog-filter-label {
	margin: 0 0 16px;
	font-family: var(--va-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: var(--va-orange);
}

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

.va-blog-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 20px;
	border: 2px solid #2a2a2a;
	border-radius: 999px;
	background: #1a1a1a;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	color: rgba(255, 255, 255, 0.8);
	white-space: nowrap;
	transition: background 0.25s var(--va-ease), border-color 0.25s var(--va-ease), color 0.25s var(--va-ease);
}

.va-blog-chip-count {
	min-width: 26px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	color: rgba(255, 255, 255, 0.7);
	transition: background 0.25s var(--va-ease), color 0.25s var(--va-ease);
}

.va-blog-chip:hover {
	border-color: var(--va-orange);
	color: var(--va-white);
}

.va-blog-chip.is-active {
	background: var(--va-orange);
	border-color: var(--va-orange);
	color: var(--va-white);
}

.va-blog-chip.is-active .va-blog-chip-count {
	background: rgba(255, 255, 255, 0.25);
	color: var(--va-white);
}

.va-blog-chip:focus-visible {
	outline: 2px solid var(--va-orange);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------
 * Pagination
 * ------------------------------------------------------------------ */

.va-blog-pagination {
	margin-top: 40px;
}

.va-blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.va-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 52px;
	padding: 0 12px;
	border: 2px solid #373737;
	border-radius: 10px;
	background: #1a1a1a;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	color: var(--va-white);
	transition: background 0.25s var(--va-ease), border-color 0.25s var(--va-ease);
}

.va-blog-pagination a.page-numbers:hover {
	border-color: var(--va-orange);
}

.va-blog-pagination .page-numbers.current {
	background: var(--va-orange);
	border-color: var(--va-orange);
}

.va-blog-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	min-width: 40px;
}

.va-blog-pagination .page-numbers.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ---------------------------------------------------------------------
 * Single — article
 * ------------------------------------------------------------------ */

.va-post {
	background: #121212;
	padding: 70px 0 100px;
}

/* Figma: Inter 400 / 14px / 28px lh / white 60% */
.va-post-date {
	display: block;
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 28px;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.6);
}

/* <h1> styled with global .va-h2 (Inter 700 / 48 / 52 / -1.2px, white) */
.va-post-title {
	margin: 0 0 30px;
}

.va-post-figure {
	margin: 0 0 20px;
}

.va-post-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2.05 / 1;
	object-fit: cover;
	border-radius: 16px;
}

.va-post-collapsible {
	position: relative;
	overflow: hidden;
}

.va-post-collapsible.is-collapsible {
	transition: max-height 0.7s var(--va-ease);
}

.va-post-collapsible.is-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 160px;
	background: linear-gradient(to bottom, rgba(18, 18, 18, 0), #121212);
	pointer-events: none;
}

.va-post-more {
	margin-top: 32px;
}

.va-post-more[hidden] {
	display: none;
}

.va-icon-loadmore {
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.va-post-collapsible.is-collapsible {
		transition: none;
	}
}

/* Article typography — Figma: body Inter 400 / 18 / 28 / white 60%; H2 Inter 700 / 38 / 52 / -1.2px */
.va-post-content {
	max-width: 1215px;
	font-family: var(--va-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 28px;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.6);
}

.va-post-content > :first-child {
	margin-top: 0;
}

.va-post-content p {
	margin: 0;
}

.va-post-content ul,
.va-post-content ol,
.va-post-content blockquote,
.va-post-content figure {
	margin: 8px 0 28px;
}

.va-post-content h2,
.va-post-content h3,
.va-post-content h4 {
	margin: 26px 0 16px;
	color: var(--va-white);
}

.va-post-content h2 {
	font-size: 38px;
	line-height: 52px;
	letter-spacing: -1.2px;
}

.va-post-content h3 {
	font-size: 28px;
	line-height: 36px;
	letter-spacing: -0.6px;
}

.va-post-content h4 {
	font-size: 22px;
	line-height: 30px;
}

.va-post-content ul,
.va-post-content ol {
	padding-left: 22px;
}

.va-post-content li {
	margin: 0;
}

.va-post-content ul li::marker {
	color: rgba(255, 255, 255, 0.6);
}

/* Links keep the text color, underlined (Figma "track" span) */
.va-post-content a {
	color: inherit;
	text-decoration: underline;
	text-decoration-style: solid;
	text-decoration-skip-ink: auto;
	text-underline-offset: 3px;
}

.va-post-content a:hover {
	color: var(--va-orange);
}

.va-post-content strong {
	color: var(--va-white);
}

.va-post-content img {
	border-radius: 12px;
}

.va-post-content blockquote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--va-orange);
	color: var(--va-white);
}

/* ---------------------------------------------------------------------
 * Single — comments
 * ------------------------------------------------------------------ */

.va-post-comments {
	background: #000000;
	padding: 100px 0;
}

/* Both use global .va-h2 (Inter 700 / 48 / 52 / -1.2px, white) */
.va-blog-comments-title,
.va-blog-reply-title {
	margin: 0 0 32px;
}

/* "Reply to …" on the left, "Cancel reply" pushed to the right */
.va-blog-reply-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.va-blog-cancel-reply {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0;
}

.va-blog-cancel-reply a {
	color: var(--va-orange);
}

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

.va-comment-list .children {
	margin: 0;
	padding: 0 0 0 40px;
	list-style: none;
}

.va-comment-body {
	margin: 0 0 16px;
	padding: 24px 28px;
	background: #141414;
	border: 1px solid var(--va-border);
	border-radius: 16px;
}

.va-comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 16px;
	margin-bottom: 8px;
}

.va-comment-author {
	font-size: 18px;
	font-weight: 600;
	color: var(--va-white);
}

.va-comment-date,
.va-comment-pending {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.va-comment-text {
	font-size: 16px;
	line-height: 26px;
	color: rgba(255, 255, 255, 0.75);
}

.va-comment-text p {
	margin: 0 0 12px;
}

.va-comment-body .comment-reply-link {
	font-size: 14px;
	font-weight: 500;
	color: var(--va-orange);
}

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

.va-comment-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

.va-comment-form > .va-comment-field--author,
.va-comment-form > .va-comment-field--email,
.va-comment-form > .va-comment-field--url {
	grid-column: auto;
	margin-bottom: 32px;
}

.va-comment-form > .va-comment-field--comment {
	margin-bottom: 20px;
}

.va-comment-form > .va-comment-notify {
	margin-bottom: 16px;
}

.va-comment-form .logged-in-as,
.va-comment-form .logged-in-as a {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
}

.va-comment-field {
	position: relative;
}

/* Visible hint for required inputs (red asterisk); stays on focus, hides once filled. */
.va-comment-ph {
	position: absolute;
	top: 50%;
	left: 26px;
	transform: translateY(-50%);
	font-family: var(--va-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: #bfbfbf;
	pointer-events: none;
}

.va-comment-ph i {
	font-style: normal;
	color: #e5383b;
}

.va-comment-field input:not(:placeholder-shown) ~ .va-comment-ph {
	opacity: 0;
}

.va-comment-field input,
.va-comment-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 11px 24px;
	font-family: var(--va-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0;
	color: var(--va-white);
	background: #121212;
	border: 2px solid #373737;
	border-radius: 40px;
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.va-comment-field input {
	height: 52px;
}

.va-comment-field textarea {
	height: 193px;
	min-height: 193px;
	padding-top: 14px;
	line-height: 30px;
	border-radius: 30px;
	resize: vertical;
}

.va-comment-field input::placeholder,
.va-comment-field textarea::placeholder {
	color: #bfbfbf;
	opacity: 1;
}

.va-comment-field input:focus,
.va-comment-field textarea:focus {
	border-color: var(--va-orange);
}

.va-comment-notify label {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	font-weight: 400;
	line-height: 30px;
	letter-spacing: 0;
	color: #bfbfbf;
	cursor: pointer;
}

.va-comment-notify input[type="checkbox"] {
	width: 28px;
	height: 28px;
	margin: 0;
	flex-shrink: 0;
	border: 2px solid #373737;
	border-radius: 4px;
	background: #121212;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.va-comment-notify input[type="checkbox"]:checked {
	background-color: var(--va-orange);
	border-color: var(--va-orange);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.5 8.5 3 3 6-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 14px;
	background-position: center;
	background-repeat: no-repeat;
}

.va-comment-notify input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--va-orange);
	outline-offset: 2px;
}

.va-comment-submit {
	min-width: 243px;
	height: 52px;
}

/* ---------------------------------------------------------------------
 * Single — related posts
 * ------------------------------------------------------------------ */

.va-post-related {
	background: #121212;
	padding: 100px 0;
}

/* Global .va-h2 (Inter 700 / 48 / 52 / -1.2px), centered */
.va-post-related-title {
	margin: 0 0 32px;
	text-align: center;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 1200px) {
	.va-blog-hero-heading {
		font-size: clamp(40px, 7vw, 56px);
		line-height: 1.08;
		letter-spacing: -0.025em;
	}
}

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

	.va-blog-feature-body {
		padding: 48px 32px 48px 40px;
	}
}

@media (max-width: 900px) {
	.va-blog-hero {
		padding: 72px 0;
	}

	.va-blog-featured,
	.va-post-comments,
	.va-post-related {
		padding: 64px 0;
	}

	.va-blog-grid-section {
		padding: 56px 0 72px;
	}

	.va-post {
		padding: 48px 0 72px;
	}

	.va-blog-hero-inner,
	.va-blog-feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.va-blog-hero-inner {
		gap: 28px;
	}

	.va-blog-hero-copy,
	.va-blog-hero-heading,
	.va-blog-hero-desc {
		max-width: none;
	}

	.va-blog-hero-heading {
		font-size: 40px;
		line-height: 1.1;
	}

	.va-blog-hero-media {
		justify-content: stretch;
	}

	.va-blog-feature-img,
	.va-blog-feature-media .va-blog-card-placeholder {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	.va-post-content h2 {
		font-size: 28px;
		line-height: 36px;
		letter-spacing: -0.6px;
	}

	.va-post-content h3 {
		font-size: 24px;
		line-height: 32px;
	}

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

	.va-comment-form > .va-comment-field--author,
	.va-comment-form > .va-comment-field--email {
		margin-bottom: 16px;
	}

	.va-comment-form > .va-comment-field--author,
	.va-comment-form > .va-comment-field--email,
	.va-comment-form > .va-comment-field--url {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.va-post-content {
		font-size: 16px;
		line-height: 26px;
	}

	.va-post-content h2 {
		font-size: 24px;
		line-height: 32px;
	}

	.va-blog-hero {
		padding: 56px 0;
	}

	.va-blog-hero-heading {
		font-size: 32px;
	}

	.va-blog-hero-image {
		border-radius: 16px;
	}
}

@media (max-width: 700px) {
	/* Chips become a single swipeable row on phones */
	.va-blog-chips {
		flex-wrap: nowrap;
		margin-right: calc(var(--va-gutter) * -1);
		padding-right: var(--va-gutter);
		padding-bottom: 6px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.va-blog-chips::-webkit-scrollbar {
		display: none;
	}

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

	.va-blog-feature-body {
		padding: 28px 24px;
	}

	.va-blog-card-title {
		font-size: 22px;
		line-height: 28px;
		letter-spacing: -0.6px;
	}

	/* Mobile button height: 44px */
	.va-blog-card .va-blog-btn,
	.va-post-more {
		padding: 10px 20px;
	}

	.va-blog-pagination .page-numbers {
		min-width: 44px;
		height: 44px;
		font-size: 16px;
	}

	.va-comment-field textarea {
		height: 140px;
		min-height: 140px;
	}

	.va-comment-submit {
		width: 100%;
		min-width: 0;
		height: 44px;
		padding: 10px 20px;
	}

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