/**
 * VibSpectrum blog layout.
 * Everything is scoped under .vs-blog so it cannot leak into the rest of
 * the Autrics theme.
 */

.vs-blog {
	--vs-red: #e32920;
	--vs-navy: #2f3967;
	--vs-ink: #1a1f36;
	--vs-body: #414a63;
	--vs-muted: #6b7489;
	--vs-line: #e4e7ee;
	--vs-bg-soft: #f6f7fa;
	--vs-radius: 10px;
	--vs-shadow: 0 1px 2px rgba(26, 31, 54, .05), 0 12px 28px -12px rgba(26, 31, 54, .16);
	--vs-measure: 760px;

	color: var(--vs-body);
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.75;
	background: #fff;
}

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

.vs-wrap {
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 20px;
}

.vs-blog h1, .vs-blog h2, .vs-blog h3, .vs-blog h4 {
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--vs-ink);
	font-weight: 700;
	line-height: 1.22;
	margin: 0;
	letter-spacing: -.01em;
}

.vs-blog a { color: var(--vs-red); text-decoration: none; }
.vs-blog a:hover { text-decoration: underline; }
.vs-blog img { max-width: 100%; height: auto; display: block; }

/* ---------------------------------------------------------------- pills */

.vs-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }

.vs-cat {
	display: inline-block;
	font-family: Roboto, system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(227, 41, 32, .09);
	color: var(--vs-red);
	line-height: 1.5;
}
.vs-cat:hover { background: var(--vs-red); color: #fff; text-decoration: none; }

.vs-dot {
	display: inline-block;
	width: 3px; height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: .5;
	margin: 0 9px;
	vertical-align: middle;
}

/* ------------------------------------------------- blog listing heading */

.vs-archive-head {
	background: var(--vs-bg-soft);
	border-bottom: 1px solid var(--vs-line);
	padding: 64px 0 56px;
	text-align: center;
}

.vs-eyebrow {
	font-family: Roboto, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--vs-red);
	margin: 0 0 12px;
}

.vs-archive-title { font-size: clamp(32px, 4.4vw, 46px); }

.vs-archive-sub {
	max-width: 620px;
	margin: 16px auto 0;
	color: var(--vs-muted);
	font-size: 17px;
}

.vs-archive-body { padding: 56px 20px 80px; }

/* ------------------------------------------------------ two-column grid */

.vs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px;
	align-items: stretch;
}

.vs-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vs-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--vs-shadow);
	border-color: transparent;
}

.vs-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--vs-bg-soft);
}

/* !important is deliberate: the Autrics theme sets height:auto on images,
   which defeats object-fit and crops cards from the top edge. */
.vs-blog .vs-card-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform .5s ease;
}
.vs-card:hover .vs-card-img { transform: scale(1.04); }

.vs-card-img--empty {
	display: block;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--vs-navy), #1b2143);
}

/* Body grows so every card in a row ends level. */
.vs-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 26px 26px 24px;
}

.vs-card-title { font-size: 21px; margin: 0 0 12px; }
.vs-card-title a { color: var(--vs-ink); }
.vs-card-title a:hover { color: var(--vs-red); text-decoration: none; }

.vs-card-excerpt {
	margin: 0 0 18px;
	color: var(--vs-muted);
	font-size: 15.5px;
	line-height: 1.68;
}

/* Pushes the meta + link to the bottom regardless of excerpt length. */
.vs-card-meta {
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--vs-line);
	font-size: 13.5px;
	color: var(--vs-muted);
}

.vs-readmore {
	display: inline-block;
	margin-top: 12px;
	font-family: Roboto, system-ui, sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	color: var(--vs-red);
}

/* --------------------------------------------------------- single: hero */

.vs-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 46vw, 520px);
	padding: 72px 0 56px;
	background-color: var(--vs-navy);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Dark scrim so the title stays readable on any photograph. */
.vs-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 18, 38, .30) 0%, rgba(14, 18, 38, .62) 55%, rgba(14, 18, 38, .84) 100%);
}

.vs-hero--plain { background-image: linear-gradient(135deg, #2f3967 0%, #1b2143 100%); }
.vs-hero--plain::after { background: none; }

.vs-hero-inner { position: relative; z-index: 1; max-width: 900px; }

.vs-hero .vs-cat {
	background: rgba(255, 255, 255, .16);
	color: #fff;
	backdrop-filter: blur(2px);
}
.vs-hero .vs-cat:hover { background: var(--vs-red); }

.vs-blog .vs-hero-title {
	color: #fff;
	font-size: clamp(30px, 4.6vw, 52px);
	line-height: 1.14;
	margin: 0;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}

.vs-blog .vs-hero-meta {
	margin: 18px 0 0;
	color: rgba(255, 255, 255, .88);
	font-size: 14.5px;
}

/* ------------------------------------------------------ single: content */

.vs-article {
	max-width: var(--vs-measure);
	margin: 0 auto;
	padding: 56px 0 8px;
}

.vs-content > *:first-child { margin-top: 0; }
.vs-content > *:last-child { margin-bottom: 0; }

.vs-content p { margin: 0 0 1.5em; }

.vs-content h2 {
	font-size: 29px;
	margin: 2.1em 0 .7em;
	padding-top: .2em;
}

.vs-content h3 { font-size: 22px; margin: 1.8em 0 .6em; }
.vs-content h4 { font-size: 18.5px; margin: 1.6em 0 .5em; }

.vs-content ul,
.vs-content ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.vs-content li { margin-bottom: .55em; }
.vs-content li::marker { color: var(--vs-red); }

.vs-content strong { color: var(--vs-ink); font-weight: 600; }

.vs-content a { text-decoration: underline; text-underline-offset: 2px; }

/* Images and captions sit flush with the text column. */
.vs-content img,
.vs-content figure {
	margin-block: 2em;
	border-radius: var(--vs-radius);
}
.vs-content figure { margin-inline: 0; }
.vs-content figure img { margin-block: 0; }

.vs-content figcaption {
	margin-top: .7em;
	font-size: 14px;
	color: var(--vs-muted);
	text-align: center;
}

.vs-content .alignleft {
	float: left;
	margin: .4em 2em 1.4em 0;
	max-width: 46%;
}
.vs-content .alignright {
	float: right;
	margin: .4em 0 1.4em 2em;
	max-width: 46%;
}
.vs-content .aligncenter { margin-inline: auto; }

.vs-content blockquote {
	margin: 2em 0;
	padding: 4px 0 4px 26px;
	border-left: 3px solid var(--vs-red);
	font-size: 19px;
	line-height: 1.6;
	color: var(--vs-ink);
	font-style: italic;
}
.vs-content blockquote p:last-child { margin-bottom: 0; }

/* Wide tables scroll instead of breaking the layout. */
.vs-content table {
	width: 100%;
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
	margin: 2em 0;
	font-size: 15.5px;
}
.vs-content th,
.vs-content td {
	border: 1px solid var(--vs-line);
	padding: 11px 14px;
	text-align: left;
}
.vs-content th { background: var(--vs-bg-soft); color: var(--vs-ink); font-weight: 600; }

.vs-content pre {
	background: var(--vs-bg-soft);
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius);
	padding: 18px;
	overflow-x: auto;
	margin: 2em 0;
}

.vs-content iframe,
.vs-content video {
	max-width: 100%;
	margin-block: 2em;
	border-radius: var(--vs-radius);
}

/* ------------------------------------------------------- tags / postnav */

.vs-tags {
	max-width: var(--vs-measure);
	margin: 36px auto 0;
	padding-top: 22px;
	border-top: 1px solid var(--vs-line);
	font-size: 14px;
}

.vs-tags-label {
	font-family: Roboto, system-ui, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	font-size: 11.5px;
	color: var(--vs-muted);
	margin-right: 10px;
}

.vs-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 11px;
	border: 1px solid var(--vs-line);
	border-radius: 999px;
	color: var(--vs-body);
	font-size: 13px;
}
.vs-tags a:hover { border-color: var(--vs-red); color: var(--vs-red); text-decoration: none; }

.vs-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	max-width: var(--vs-measure);
	margin: 44px auto 0;
}

.vs-postnav-link {
	display: block;
	padding: 20px 22px;
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius);
	transition: border-color .2s ease, background .2s ease;
}
.vs-postnav-link:hover { border-color: var(--vs-red); background: var(--vs-bg-soft); text-decoration: none; }

/* A lone "next" link stays in the right-hand column. */
.vs-postnav-next { text-align: right; }
.vs-postnav-next:only-child { grid-column: 2; }

.vs-postnav-label {
	display: block;
	font-family: Roboto, system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--vs-red);
	margin-bottom: 6px;
}

.vs-postnav-title {
	display: block;
	color: var(--vs-ink);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
}

/* ------------------------------------------------------------- related */

.vs-related {
	margin: 72px auto 0;
	padding: 48px 0 80px;
	border-top: 1px solid var(--vs-line);
}

.vs-related-title { font-size: 26px; margin: 0 0 30px; }

.vs-comments { max-width: var(--vs-measure); margin: 0 auto; padding-bottom: 60px; }

/* ---------------------------------------------------------- pagination */

.vs-blog .pagination,
.vs-blog .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 52px;
	list-style: none;
	padding: 0;
}

.vs-blog .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--vs-line);
	border-radius: 8px;
	color: var(--vs-body);
	font-weight: 600;
	font-size: 15px;
}

.vs-blog .page-numbers:hover { border-color: var(--vs-red); color: var(--vs-red); text-decoration: none; }
.vs-blog .page-numbers.current { background: var(--vs-red); border-color: var(--vs-red); color: #fff; }
.vs-blog .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.vs-empty { text-align: center; color: var(--vs-muted); padding: 60px 0; }

/* -------------------------------------------------------------- mobile */

@media (max-width: 860px) {
	.vs-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.vs-archive-head { padding: 48px 0 42px; }
	.vs-archive-body { padding: 40px 20px 60px; }
	.vs-article { padding-top: 40px; }
	.vs-hero { min-height: 300px; padding: 56px 0 40px; }
	.vs-content h2 { font-size: 25px; }
	.vs-content h3 { font-size: 20px; }
	.vs-postnav { grid-template-columns: minmax(0, 1fr); }
	.vs-postnav-next { text-align: left; }
	.vs-postnav-next:only-child { grid-column: 1; }
	.vs-content .alignleft,
	.vs-content .alignright { float: none; margin-inline: auto; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.vs-card,
	.vs-card-img { transition: none; }
	.vs-card:hover { transform: none; }
	.vs-card:hover .vs-card-img { transform: none; }
}
