/* ==========================================================================
   EAST EUROPE NEWS — archives (category; later tag/author/search)
   'list' style: chronological rows + sticky sidebar · 'cards' style: visual grid.
   ========================================================================== */

/* Hero ------------------------------------------------------------------------- */
.cat-hero {
	padding: clamp(16px, 2.5vw, 28px) 0 clamp(24px, 3.5vw, 40px);
	border-bottom: var(--rule);
	background:
		linear-gradient(var(--cat, var(--color-primary)), var(--cat, var(--color-primary))) left top / 100% 4px no-repeat,
		var(--color-bg);
}
.cat-hero__kicker { display: inline-block; margin-bottom: 6px; color: var(--cat, var(--color-secondary)); text-decoration: none; }
a.cat-hero__kicker:hover { text-decoration: underline; }
.cat-hero__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin: 0 0 12px;
	font-size: clamp(2.1rem, 1.4rem + 3vw, 3.75rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
}
.cat-hero__page { color: var(--color-muted); font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 600; letter-spacing: 0; }
.cat-hero__desc { max-width: 68ch; color: var(--color-body); font-size: var(--fs-md); line-height: 1.55; }
.cat-hero__desc p { margin: 0; }
.cat-hero__stats { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 12px 0 0; }
.cat-hero__stats > span + span::before { content: "\00B7"; margin: 0 10px; }
.cat-hero__topics { margin: 20px 0 0; }
.cat-hero--compact { padding-bottom: 20px; }
.cat-hero--compact .cat-hero__title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); margin-bottom: 0; }

/* Lead story. */
.cat-lead { margin-top: clamp(24px, 3vw, 36px); }
.cat-lead .card__title { font-size: var(--fs-2xl); }
.cat-lead .card__excerpt { max-width: 64ch; font-size: var(--fs-md); }
@media (min-width: 768px) {
	.cat-page--list .card--cat-lead { flex-direction: row; align-items: center; gap: var(--gap-lg); }
	.cat-page--list .card--cat-lead .card__media { flex: 0 0 58%; }
}
.cat-page--cards .card--cat-lead { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) { .cat-page--cards .card--cat-lead { aspect-ratio: 21 / 9; } }
.cat-page--cards .card--cat-lead .card__body { padding: 80px clamp(20px, 3vw, 36px) clamp(20px, 3vw, 32px); }
.cat-page--cards .card--cat-lead .card__excerpt { color: rgb(255 255 255 / 0.88); }

/* Dark special-coverage hero (Ukraine & Russia). */
.cat-hero.is-dark {
	background:
		repeating-linear-gradient(90deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 80px),
		var(--color-dark-panel);
	border-bottom: 0;
	color: var(--color-on-dark-muted);
}
.cat-hero.is-dark .cat-hero__title,
.cat-hero.is-dark .card__link,
.cat-hero.is-dark .breadcrumbs [aria-current] { color: #fff; }
.cat-hero.is-dark .cat-hero__kicker { color: #93C5FD; }
.cat-hero.is-dark .cat-hero__desc, .cat-hero.is-dark .card__excerpt { color: var(--color-on-dark-muted); }
.cat-hero.is-dark .meta, .cat-hero.is-dark .breadcrumbs, .cat-hero.is-dark .breadcrumbs a { color: #8DA2B8; }
.cat-hero.is-dark .chip { border-color: rgb(255 255 255 / 0.25); color: #fff; }
.cat-hero.is-dark .chip:hover { border-color: #93C5FD; color: #93C5FD; }
.cat-hero.is-dark :focus-visible, .cat-hero.is-dark .card:has(.card__link:focus-visible) { outline-color: #93C5FD; }

/* Body ----------------------------------------------------------------------------- */
.cat-body { padding-block: clamp(28px, 4vw, 48px); }
.cat-main { container-type: inline-size; min-width: 0; }
.cat-layout.has-aside { display: grid; gap: var(--gap-lg); }
@media (min-width: 1024px) {
	.cat-layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
	.cat-aside { align-self: stretch; }
	.cat-aside__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (min-width: 1280px) { .cat-layout.has-aside { grid-template-columns: minmax(0, 1fr) 320px; } }

/* Cards style grid: 1 → 2 → 3 → 4 columns (16 = 4 × 4 on desktop). */
.cat-grid { display: grid; gap: clamp(20px, 2.5vw, 32px) var(--gap); }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-grid .card__title { font-size: var(--fs-md); }

/* Sidebar ------------------------------------------------------------------------- */
.side-box + .side-box { margin-top: 32px; }
.side-box__title {
	margin: 0 0 10px;
	padding-top: 12px;
	border-top: 3px solid var(--color-text);
	font-size: var(--fs-lg);
}
.side-list { margin: 0; padding: 0; list-style: none; }
.side-list a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: var(--rule);
	color: var(--color-text);
	font-weight: 500;
	text-decoration: none;
}
.side-list a:hover { color: var(--cat, var(--color-primary)); }
.side-list a[aria-current] { color: var(--cat, var(--color-primary)); font-weight: 700; }
.side-list__count { color: var(--color-muted); font-family: var(--font-mono); font-size: 13px; }
.side-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.cat-body .pagination { margin-top: 40px; }

/* Search filters --------------------------------------------------------------------------------- */
.search-filters { display: grid; gap: 12px; margin-top: 20px; max-width: 980px; }
.search-filters__q input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	background: var(--color-surface);
	border: 2px solid transparent;
	border-radius: 10px;
	font-size: var(--fs-md);
}
.search-filters__q input:focus { outline: none; background: var(--color-bg); border-color: var(--color-secondary); }
.search-filters__field { margin: 0; }
.search-filters__field label { display: block; margin-bottom: 4px; color: var(--color-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.search-filters__field select { width: 100%; height: 44px; padding: 0 10px; background: var(--color-bg); border: 1px solid #CBD2DA; border-radius: 8px; }
.search-filters__submit { margin: 0; align-self: end; }
.search-filters__submit .btn { width: 100%; min-height: 44px; }
@media (min-width: 768px) {
	.search-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
	.search-filters__q { grid-column: 1 / -1; }
}
.empty-state--big { padding: 28px; }
.empty-state--big p { margin: 0 0 12px; }
.archive-main { max-width: 880px; }

/* 404 ------------------------------------------------------------------------------------------- */
.not-found__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.not-found__title { margin: 6px 0 12px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.not-found__text { color: var(--color-body); font-size: var(--fs-md); }
.not-found__search { margin: 20px 0; }
.not-found__search .search-form { margin: 0; }
