/**
 * Sybrix Insights archive (/blog/) — simple editorial grid
 *
 * Scoped to body.sybrix-insights-page.
 */

body.sybrix-insights-page {
	background: var(--sybrix-bg);
}

body.sybrix-insights-page .sybrix-insights-main {
	overflow-x: clip;
	padding-bottom: var(--sybrix-section-y);
}

/* -------------------------------------------------------------------------- */
/* Introduction                                                               */
/* -------------------------------------------------------------------------- */

body.sybrix-insights-page .sybrix-insights-masthead {
	padding-top: clamp(2rem, 5vw, 3rem);
	padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
	max-width: 40rem;
}

body.sybrix-insights-page .sybrix-insights-masthead__eyebrow {
	font-family: var(--sybrix-font-ui);
	font-size: var(--sybrix-eyebrow);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sybrix-muted);
	margin: 0 0 0.75rem;
}

body.sybrix-insights-page .sybrix-insights-masthead__title {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.02em;
	margin: 0 0 0.85rem;
	color: var(--sybrix-ink);
}

body.sybrix-insights-page .sybrix-insights-masthead__title-line {
	display: block;
}

body.sybrix-insights-page .sybrix-insights-masthead__intro {
	font-family: var(--sybrix-font-serif);
	font-size: var(--sybrix-body);
	line-height: 1.62;
	color: var(--sybrix-muted);
	margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Article grid                                                               */
/* -------------------------------------------------------------------------- */

body.sybrix-insights-page .sybrix-insights-grid-section {
	padding-bottom: 0.5rem;
}

body.sybrix-insights-page .sybrix-insights-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 640px) {
	body.sybrix-insights-page .sybrix-insights-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	body.sybrix-insights-page .sybrix-insights-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(2.25rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2rem);
	}
}

/* -------------------------------------------------------------------------- */
/* Article card                                                               */
/* -------------------------------------------------------------------------- */

body.sybrix-insights-page .sybrix-insights-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

body.sybrix-insights-page .sybrix-insights-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--sybrix-dark);
}

body.sybrix-insights-page .sybrix-insights-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms var(--sybrix-ease);
}

body.sybrix-insights-page .sybrix-insights-card:hover .sybrix-insights-card__media img,
body.sybrix-insights-page .sybrix-insights-card:focus-within .sybrix-insights-card__media img {
	transform: scale(1.015);
}

body.sybrix-insights-page .sybrix-insights-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}

body.sybrix-insights-page .sybrix-insights-cat {
	display: inline-block;
	font-family: var(--sybrix-font-ui);
	font-size: var(--sybrix-eyebrow);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sybrix-muted);
	text-decoration: none;
	margin: 0 0 0.5rem;
	transition: color var(--sybrix-duration) var(--sybrix-ease);
}

body.sybrix-insights-page .sybrix-insights-cat:hover,
body.sybrix-insights-page .sybrix-insights-cat:focus-visible {
	color: var(--sybrix-accent);
}

body.sybrix-insights-page .sybrix-insights-card__title {
	font-family: var(--sybrix-font-ui);
	font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
	font-weight: 650;
	line-height: 1.32;
	margin: 0;
}

body.sybrix-insights-page .sybrix-insights-card__title a {
	color: var(--sybrix-ink);
	text-decoration: none;
	transition: color var(--sybrix-duration) var(--sybrix-ease);
}

body.sybrix-insights-page .sybrix-insights-card:hover .sybrix-insights-card__title a,
body.sybrix-insights-page .sybrix-insights-card:focus-within .sybrix-insights-card__title a {
	color: var(--sybrix-accent);
}

body.sybrix-insights-page .sybrix-insights-card__excerpt {
	font-family: var(--sybrix-font-serif);
	font-size: var(--sybrix-small);
	line-height: 1.62;
	color: var(--sybrix-muted);
	margin: 0.65rem 0 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

body.sybrix-insights-page .sybrix-insights-meta {
	font-family: var(--sybrix-font-ui);
	font-size: var(--sybrix-meta);
	font-weight: 500;
	color: var(--sybrix-muted);
	margin: 0.75rem 0 0;
}

body.sybrix-insights-page .sybrix-insights-card__cta {
	margin: 0.85rem 0 0;
}

body.sybrix-insights-page .sybrix-link-arrow {
	font-family: var(--sybrix-font-ui);
	font-size: var(--sybrix-small);
	font-weight: 600;
	color: var(--sybrix-accent);
	text-decoration: none;
	display: inline-block;
	transition: color var(--sybrix-duration) var(--sybrix-ease),
		transform var(--sybrix-duration) var(--sybrix-ease);
}

body.sybrix-insights-page .sybrix-insights-card:hover .sybrix-link-arrow,
body.sybrix-insights-page .sybrix-insights-card:focus-within .sybrix-link-arrow {
	color: var(--sybrix-ink);
	transform: translateX(2px);
}

/* Image fallback */
body.sybrix-insights-page .sybrix-insights-thumb-fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: var(--sybrix-dark);
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
	padding: 1.25rem;
}

body.sybrix-insights-page .sybrix-insights-thumb-fallback__mark {
	font-family: var(--sybrix-font-serif);
	font-size: clamp(2rem, 5vw, 2.75rem);
	font-weight: 600;
	line-height: 1;
	color: rgba(255, 255, 255, 0.22);
	letter-spacing: -0.04em;
}

body.sybrix-insights-page .sybrix-insights-thumb-fallback__cat {
	margin-top: 0.65rem;
	font-family: var(--sybrix-font-ui);
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

body.sybrix-insights-page .sybrix-insights-empty {
	font-family: var(--sybrix-font-serif);
	color: var(--sybrix-muted);
	margin: 2rem 0;
}

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

body.sybrix-insights-page .sybrix-insights-pagination {
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
	border-top: 1px solid var(--sybrix-line);
	margin-top: clamp(2rem, 4vw, 3rem);
}

body.sybrix-insights-page .sybrix-insights-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.sybrix-insights-page .sybrix-insights-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.35rem;
	height: 2.35rem;
	padding: 0 0.55rem;
	border: 0;
	border-bottom: 1px solid transparent;
	font-family: var(--sybrix-font-ui);
	font-size: var(--sybrix-small);
	font-weight: 500;
	color: var(--sybrix-muted);
	text-decoration: none;
	background: transparent;
	list-style: none;
	transition: color var(--sybrix-duration) var(--sybrix-ease),
		border-color var(--sybrix-duration) var(--sybrix-ease);
}

body.sybrix-insights-page .sybrix-insights-pagination .page-numbers.current {
	color: var(--sybrix-ink);
	border-bottom-color: var(--sybrix-ink);
	font-weight: 650;
}

body.sybrix-insights-page .sybrix-insights-pagination .page-numbers:hover,
body.sybrix-insights-page .sybrix-insights-pagination .page-numbers:focus-visible {
	color: var(--sybrix-ink);
	border-bottom-color: var(--sybrix-accent);
}

body.sybrix-insights-page .sybrix-insights-pagination .prev,
body.sybrix-insights-page .sybrix-insights-pagination .next {
	min-width: auto;
	padding-inline: 0.5rem;
}

/* Header active state */
body.sybrix-insights-page .sybrix-nav__item.current-menu-item > .sybrix-nav__link,
body.sybrix-insights-page .sybrix-nav__item.current_page_item > .sybrix-nav__link,
body.sybrix-insights-page .sybrix-nav__link[aria-current="page"] {
	color: var(--sybrix-ink);
	box-shadow: inset 0 -2px 0 var(--sybrix-accent);
}

@media (prefers-reduced-motion: reduce) {
	body.sybrix-insights-page .sybrix-insights-card__media img,
	body.sybrix-insights-page .sybrix-link-arrow,
	body.sybrix-insights-page .sybrix-insights-pagination .page-numbers {
		transition: none;
	}

	body.sybrix-insights-page .sybrix-insights-card:hover .sybrix-insights-card__media img,
	body.sybrix-insights-page .sybrix-insights-card:focus-within .sybrix-insights-card__media img {
		transform: none;
	}

	body.sybrix-insights-page .sybrix-insights-card:hover .sybrix-link-arrow,
	body.sybrix-insights-page .sybrix-insights-card:focus-within .sybrix-link-arrow {
		transform: none;
	}
}
