/* ============================================================
   Archive — Editorial Layout
   White bg, split header (content + subscribe), 3-col grid
   Used for: News, News categories, Guides, Case Studies,
             Interviews, Updates, search, tags, author archives
   ============================================================ */

.gc-archive {
	padding: 32px 0 80px;
	background: var(--gc-bg);
}

.gc-archive__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ============================================================
   HEADER (split: content left, subscribe right)
   ============================================================ */

.gc-archive__header {
	background: var(--gc-bg);
	border-radius: 12px;
	border: 0.5px solid var(--gc-border, #e5e7eb);
	padding: 32px;
	margin-bottom: 32px;
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 36px;
	align-items: center;
}

.gc-archive__header-content {
	min-width: 0;
}

.gc-archive__title {
	font-family: var(--gc-font-display, 'Sora', sans-serif);
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 500;
	margin: 0 0 12px;
	color: var(--gc-navy, #0D1B3E);
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.gc-archive__description {
	font-size: 14px;
	line-height: 1.6;
	color: var(--gc-muted, #6b7280);
	margin: 0 0 14px;
	max-width: 520px;
}

.gc-archive__meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--gc-muted, #6b7280);
	flex-wrap: wrap;
}

.gc-archive__meta-count {
	color: var(--gc-navy, #0D1B3E);
	font-weight: 500;
}

.gc-archive__meta-sep {
	color: var(--gc-primary-dark, #00A894);
	font-weight: 500;
}

/* ===== SMART LIVE STATE BADGE ===== */

.gc-archive__live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 14px;
	line-height: 1.4;
}

.gc-archive__live--hot {
	background: #FEE2E2;
	color: #991B1B;
}

.gc-archive__live--fresh {
	background: rgba(0, 198, 174, 0.12);
	color: #04342C;
}

/* ===== LIVE / JUST IN PULSE DOT ===== */

.gc-archive__live-dot {
	width: 6px !important;
	height: 6px !important;
	min-width: 6px !important;
	min-height: 6px !important;
	max-width: 6px !important;
	max-height: 6px !important;
	border-radius: 50% !important;
	display: inline-block !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	box-sizing: border-box !important;
	-webkit-animation: gc-live-dot-pulse 2s ease-in-out infinite !important;
	animation: gc-live-dot-pulse 2s ease-in-out infinite !important;
}

.gc-archive__live--hot .gc-archive__live-dot {
	background: #DC2626 !important;
}

.gc-archive__live--fresh .gc-archive__live-dot {
	background: #00A894 !important;
}

@-webkit-keyframes gc-live-dot-pulse {
	0%, 100% {
		opacity: 1;
		-webkit-transform: scale(1);
	}
	50% {
		opacity: 0.6;
		-webkit-transform: scale(1.15);
	}
}

@keyframes gc-live-dot-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.6;
		transform: scale(1.15);
	}
}

/* ===== COMPACT SUBSCRIBE WIDGET ===== */

.gc-archive__subscribe {
	background: #F8FAFC;
	border-radius: 10px;
	padding: 18px;
	border: 0.5px solid var(--gc-border, #e5e7eb);
}

.gc-archive__subscribe-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.gc-archive__subscribe-icon {
	width: 14px;
	height: 14px;
	color: var(--gc-primary-dark, #00A894);
	flex-shrink: 0;
}

.gc-archive__subscribe-title {
	font-size: 13px;
	font-weight: 500;
	color: var(--gc-navy, #0D1B3E);
}

.gc-archive__subscribe-desc {
	font-size: 11px;
	color: var(--gc-muted, #6b7280);
	margin: 0 0 12px;
	line-height: 1.4;
}

.gc-archive__subscribe-form {
	margin: 0;
}

.gc-archive__subscribe-input {
	width: 100%;
	padding: 8px 10px;
	font-size: 12px;
	border: 0.5px solid var(--gc-border, #e5e7eb);
	border-radius: 6px;
	box-sizing: border-box;
	margin-bottom: 6px;
	background: var(--gc-bg-soft);
	color: var(--gc-navy, #0D1B3E);
	font-family: inherit;
}

.gc-archive__subscribe-input:focus {
	outline: none;
	border-color: var(--gc-primary, #00C6AE);
	box-shadow: 0 0 0 2px rgba(0, 198, 174, 0.12);
}

.gc-archive__subscribe-btn {
	width: 100%;
	padding: 8px;
	font-size: 12px;
	background: var(--gc-primary, #00C6AE);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: background 150ms ease;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.gc-archive__subscribe-btn:hover:not(:disabled) {
	background: var(--gc-primary-dark, #00A894);
}

.gc-archive__subscribe-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.gc-archive__subscribe-msg {
	font-size: 11px;
	margin-top: 8px;
	line-height: 1.4;
}

.gc-archive__subscribe-msg--success {
	color: #04342C;
}

.gc-archive__subscribe-msg--error {
	color: #991B1B;
}

/* ============================================================
   BADGES
   ============================================================ */

.gc-archive__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.gc-archive__badge {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 150ms ease;
	line-height: 1.4;
}

.gc-archive__badge--latest {
	background: #0D1B3E;
	color: #ffffff;
}

.gc-archive__badge--cat {
	background: rgba(0, 198, 174, 0.12);
	color: var(--gc-primary-dark, #00A894);
}

.gc-archive__badge--cat:hover {
	background: rgba(0, 198, 174, 0.2);
	color: var(--gc-primary-dark, #00A894);
}

/* ============================================================
   LEAD CARD (horizontal)
   Image fills grid cell vertically via position: absolute trick.
   ============================================================ */

.gc-archive__lead {
	background: var(--gc-bg-soft);
	border-radius: 12px;
	border: 0.5px solid var(--gc-border, #e5e7eb);
	overflow: hidden;
	margin-bottom: 24px;
	display: grid;
	grid-template-columns: minmax(300px, 420px) 1fr;
	align-items: stretch;
	transition: box-shadow 200ms ease;
}

.gc-archive__lead:hover {
	box-shadow: 0 4px 16px rgba(13, 27, 62, 0.08);
}

.gc-archive__lead-image {
	display: block;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #0D1B3E 0%, #1a2b5e 100%);
	min-height: 240px;
	font-size: 0;
	line-height: 0;
}

.gc-archive__lead-image img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.gc-archive__lead:hover .gc-archive__lead-image img {
	transform: scale(1.04);
}

.gc-archive__lead-content {
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.gc-archive__lead-title {
	font-family: var(--gc-font-display, 'Sora', sans-serif);
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}

.gc-archive__lead-title a {
	color: var(--gc-navy, #0D1B3E);
	text-decoration: none;
	transition: color 150ms ease;
}

.gc-archive__lead-title a:hover {
	color: var(--gc-primary, #00C6AE);
}

.gc-archive__lead-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--gc-muted, #6b7280);
	margin: 0 0 18px;
}

/* ============================================================
   GRID
   ============================================================ */

.gc-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

.gc-archive__card {
	background: var(--gc-bg-soft);
	border-radius: 12px;
	border: 0.5px solid var(--gc-border, #e5e7eb);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 200ms ease, transform 200ms ease;
}

.gc-archive__card:hover {
	box-shadow: 0 4px 16px rgba(13, 27, 62, 0.08);
	transform: translateY(-2px);
}

.gc-archive__card-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #0D1B3E 0%, #1a2b5e 100%);
	font-size: 0;
	line-height: 0;
}

.gc-archive__card-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.gc-archive__card:hover .gc-archive__card-link img {
	transform: scale(1.04);
}

.gc-archive__card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gc-archive__card-body .gc-archive__badges {
	margin-bottom: 8px;
}

.gc-archive__card-title {
	font-family: var(--gc-font-display, 'Sora', sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 12px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gc-archive__card-title a {
	color: var(--gc-navy, #0D1B3E);
	text-decoration: none;
	transition: color 150ms ease;
}

.gc-archive__card-title a:hover {
	color: var(--gc-primary, #00C6AE);
}

/* ============================================================
   CARD META
   ============================================================ */

.gc-archive__card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	color: var(--gc-muted, #6b7280);
	margin-top: auto;
}

.gc-archive__card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.gc-archive__card-meta-sep {
	color: var(--gc-border, #d1d5db);
}

.gc-archive__lead .gc-archive__card-meta {
	font-size: 13px;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.gc-archive__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: 40px;
}

.gc-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gc-muted, #6b7280);
	background: var(--gc-bg-soft);
	border: 1px solid var(--gc-border, #e5e7eb);
	text-decoration: none;
	transition: all 150ms ease;
}

.gc-archive__pagination .page-numbers:hover {
	border-color: var(--gc-primary, #00C6AE);
	color: var(--gc-primary, #00C6AE);
}

.gc-archive__pagination .page-numbers.current {
	background: #0D1B3E;
	color: #ffffff;
	border-color: var(--gc-navy, #0D1B3E);
}

.gc-archive__pagination .page-numbers.dots {
	background: transparent;
	border: none;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.gc-archive__empty {
	background: #F8FAFC;
	border-radius: 12px;
	border: 0.5px solid var(--gc-border, #e5e7eb);
	padding: 60px 24px;
	text-align: center;
	color: var(--gc-muted, #6b7280);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
	.gc-archive__header {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.gc-archive__subscribe {
		max-width: 400px;
	}
}

@media (max-width: 900px) {
	.gc-archive__lead {
		grid-template-columns: 1fr;
	}
	.gc-archive__lead-image {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
	.gc-archive__lead-image img {
		position: static;
	}
	.gc-archive__lead-content {
		padding: 22px 24px 26px;
	}
	.gc-archive__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 600px) {
	.gc-archive {
		padding: 20px 0 60px;
	}
	.gc-archive__container {
		padding: 0 16px;
	}
	.gc-archive__header {
		padding: 24px 20px;
	}
	.gc-archive__grid {
		grid-template-columns: 1fr;
	}
	.gc-archive__lead-content {
		padding: 18px 20px 22px;
	}
	.gc-archive__pagination .page-numbers {
		min-width: 34px;
		height: 34px;
		padding: 0 10px;
		font-size: 13px;
	}
}

/* ============================================================
   DARK MODE
   Subtle layered darks. Teal subscribe button pops on dark bg.
   Maintains brand consistency with single page dark sidebar.
   ============================================================ */

[data-theme="dark"] .gc-archive {
	background: transparent;
}
[data-theme="dark"] .gc-archive__meta-volume {
	color: #7DD3C8;
}

/* ===== HEADER ===== */

[data-theme="dark"] .gc-archive__header {
	background: var(--gc-bg-soft);
	border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gc-archive__title {
	color: #ffffff;
}

[data-theme="dark"] .gc-archive__description {
	color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .gc-archive__meta {
	color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .gc-archive__meta-count {
	color: #ffffff;
}

[data-theme="dark"] .gc-archive__meta-sep {
	color: rgba(255, 255, 255, 0.2);
}

/* ===== LIVE BADGES (dark adjustments) ===== */

[data-theme="dark"] .gc-archive__live--hot {
	background: rgba(220, 38, 38, 0.18);
	color: #FCA5A5;
}

[data-theme="dark"] .gc-archive__live--fresh {
	background: rgba(0, 198, 174, 0.15);
	color: #7DD3C8;
}

/* ===== SUBSCRIBE WIDGET ===== */

[data-theme="dark"] .gc-archive__subscribe {
	background: var(--gc-bg-soft);
	border-color: var(--gc-border);
}

[data-theme="dark"] .gc-archive__subscribe-icon {
	color: #00C6AE;
}

[data-theme="dark"] .gc-archive__subscribe-title {
	color: #ffffff;
}

[data-theme="dark"] .gc-archive__subscribe-desc {
	color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .gc-archive__subscribe-btn {
	background: #00C6AE;
	color: #ffffff;
}

[data-theme="dark"] .gc-archive__subscribe-btn:hover:not(:disabled) {
	background: #5DCAA5;
}

/* ===== BADGES ===== */

[data-theme="dark"] .gc-archive__badge--latest {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .gc-archive__badge--cat {
	background: rgba(0, 198, 174, 0.15);
	color: #7DD3C8;
}

[data-theme="dark"] .gc-archive__badge--cat:hover {
	background: rgba(0, 198, 174, 0.25);
	color: #7DD3C8;
}

/* ===== LEAD CARD ===== */

[data-theme="dark"] .gc-archive__lead {
	background: var(--gc-bg-soft);
	border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gc-archive__lead:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .gc-archive__lead-title a {
	color: #ffffff;
}

[data-theme="dark"] .gc-archive__lead-title a:hover {
	color: #00C6AE;
}

[data-theme="dark"] .gc-archive__lead-excerpt {
	color: rgba(255, 255, 255, 0.65);
}

/* ===== GRID CARDS ===== */

[data-theme="dark"] .gc-archive__card {
	background: var(--gc-bg-soft);
	border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .gc-archive__card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .gc-archive__card-title a {
	color: #ffffff;
}

[data-theme="dark"] .gc-archive__card-title a:hover {
	color: #00C6AE;
}

/* ===== CARD META ===== */

[data-theme="dark"] .gc-archive__card-meta {
	color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .gc-archive__card-meta-sep {
	color: rgba(255, 255, 255, 0.15);
}

/* ===== PAGINATION ===== */

[data-theme="dark"] .gc-archive__pagination .page-numbers {
	background: var(--gc-bg-soft);
	border-color: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .gc-archive__pagination .page-numbers:hover {
	border-color: #00C6AE;
	color: #00C6AE;
}

[data-theme="dark"] .gc-archive__pagination .page-numbers.current {
	background: #00C6AE;
	color: #04342C;
	border-color: #00C6AE;
}

[data-theme="dark"] .gc-archive__pagination .page-numbers.dots {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.4);
}

/* ===== EMPTY STATE ===== */

[data-theme="dark"] .gc-archive__empty {
	background: var(--gc-bg-soft);
	border-color: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.6);
}

/* ── Dark mode: teal badge + success text readability ── */
[data-theme="dark"] .gc-archive__live--fresh {
	background: rgba(0, 198, 174, 0.08);
	color: #7DD3C8;
}
[data-theme="dark"] .gc-archive__subscribe-msg--success {
	color: #7DD3C8;
}