/*!
 * FastNaija — Smart Feed archive layout (category.php + archive.php)
 * No shadows, no gradients. Every colour is var(--sk-*).
 * ----------------------------------------------------------------- */

.fn-sf-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.25rem;
	align-items: start;
	padding: 0 1rem 2rem;
}
.fn-sf-layout--no-cards { grid-template-columns: minmax(0, 1fr); }
.fn-sf-main { min-width: 0; }
.fn-sf-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: sticky;
	top: 1rem;
}

/* ---------- Trending Right Now ---------- */
.fn-sf-trending {
	border: 1px solid var(--sk-line);
	border-radius: 14px; /* deliberately softer than --sk-r-card here, to match the rounded card look requested */
	background: var(--sk-surface-sunken);
	padding: 1.1rem 1.2rem 1.2rem;
	margin: 0 0 1.5rem;
}
.fn-sf-trending-head {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .75rem;
}
.fn-sf-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sk-primary);
	flex: 0 0 auto;
}
.fn-sf-trending-title {
	font-size: .82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--sk-text);
}
.fn-sf-trend-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 1.5rem;
}
.fn-sf-trend-item { border-top: 1px solid var(--sk-line); }
.fn-sf-trend-item:nth-child(1),
.fn-sf-trend-item:nth-child(2) { border-top: none; }
.fn-sf-trend-link {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	padding: .55rem 0;
	text-decoration: none;
}
.fn-sf-trend-rank {
	font-size: .78rem;
	font-weight: 800;
	color: var(--sk-faint);
	flex: 0 0 auto;
}
.fn-sf-trend-title {
	font-size: .87rem;
	font-weight: 600;
	color: var(--sk-text);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fn-sf-trend-link:hover .fn-sf-trend-title { color: var(--sk-primary); }
.fn-sf-trend-empty { font-size: .85rem; color: var(--sk-muted); margin: 0; }

/* ---------- Feed ---------- */
.fn-sf-feed {
	display: flex;
	flex-direction: column;
}

/* Featured hero (page 1, first item) — image on the left, content on
   the right, matching the reference layout. Stacks back to a single
   column on narrow screens. */
.fn-sf-featured {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 1.5rem;
	margin: 0 0 1.75rem;
	padding: 0 0 1.75rem;
	border-bottom: 1px solid var(--sk-line);
}
.fn-sf-featured-thumb {
	display: block;
	flex: 0 0 42%;
	max-width: 360px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid var(--sk-line);
	margin: 0;
}
.fn-sf-featured-thumb img,
.fn-sf-row-thumb img,
.fn-sf-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fn-sf-featured-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.fn-sf-featured-title {
	display: block;
	font-family: var(--title-font);
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 .4rem;
}
.fn-sf-featured-title a,
.fn-sf-row-title a {
	color: var(--sk-text);
	text-decoration: none;
}
.fn-sf-featured:hover .fn-sf-featured-title a { color: var(--sk-primary); }

/* Stretched link — makes the whole card clickable without nesting
   an <a> inside another <a> (invalid HTML). The category kicker
   link sits at a higher z-index so it keeps its own click target. */
.fn-sf-stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.fn-sf-kicker-link {
	position: relative;
	z-index: 2;
}
.fn-sf-excerpt {
	font-size: .95rem;
	color: var(--sk-muted);
	line-height: 1.5;
	margin: 0 0 .6rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Rows */
.fn-sf-row {
	position: relative;
	display: flex;
	gap: 1rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--sk-line);
}
.fn-sf-row-thumb {
	flex: 0 0 128px;
	width: 128px;
	height: 88px;
	border-radius: 12px;
	border: 1px solid var(--sk-line);
	overflow: hidden;
}
.fn-sf-row-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fn-sf-row-title {
	display: block;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.32;
	margin: 0 0 .3rem;
}
.fn-sf-row-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fn-sf-row:hover .fn-sf-row-title a { color: var(--sk-primary); }

.fn-sf-kicker {
	display: block;
	font-size: .68rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-weight: 800;
	margin: 0 0 .3rem;
}
.fn-sf-kicker a { color: var(--sk-primary); text-decoration: none; }
.fn-sf-kicker-icon { display: inline-block; vertical-align: -1px; margin-right: .2rem; color: var(--sk-primary); }

.fn-sf-meta {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .78rem;
	color: var(--sk-faint);
	margin-top: auto;
}
.fn-sf-avatar { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; }
.fn-sf-author { color: var(--sk-muted); font-weight: 600; }
.fn-sf-meta-sep { color: var(--sk-line-strong); }
.fn-sf-stats {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	margin-left: .15rem;
}
.fn-sf-stats svg { display: block; }

/* ---------- Sidebar cards ---------- */
.fn-sf-card {
	border: 1px solid var(--sk-line);
	border-radius: 14px;
	background: var(--sk-surface-sunken);
	padding: 1.1rem 1.15rem 1.2rem;
}
.fn-sf-card-head { margin: 0 0 .85rem; }
.fn-sf-card-head-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.fn-sf-card-title {
	font-size: .82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--sk-text);
}
.fn-sf-card-link {
	font-size: .76rem;
	font-weight: 700;
	color: var(--sk-primary);
	text-decoration: none;
}
.fn-sf-card-link:hover { text-decoration: underline; }

/* Newsletter */
.fn-sf-nl-note {
	font-size: .84rem;
	color: var(--sk-muted);
	line-height: 1.45;
	margin: 0 0 .9rem;
}
.fn-sf-nl-form { display: flex; flex-direction: column; gap: .6rem; }
.fn-sf-nl-input {
	border: 1px solid var(--sk-line-strong);
	border-radius: 10px;
	background: var(--sk-body-bg);
	color: var(--sk-text);
	padding: .7rem .85rem;
	font-size: .9rem;
	outline: none;
}
.fn-sf-nl-input:focus { border-color: var(--sk-primary); }
.fn-sf-nl-btn {
	border: none;
	border-radius: 10px;
	background: var(--sk-primary);
	color: var(--sk-body-bg);
	padding: .7rem .85rem;
	font-size: .88rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--sk-fast);
}
.fn-sf-nl-btn:hover { background: var(--sk-primary-strong); }
.fn-sf-nl-btn:disabled { opacity: .6; cursor: default; }
.fn-sf-nl-msg { font-size: .8rem; color: var(--sk-muted); margin: .6rem 0 0; min-height: 1em; }
.fn-sf-nl-msg.is-error { color: var(--sk-primary); }

/* Recent Posts list */
.fn-sf-list { list-style: none; margin: 0; padding: 0; }
.fn-sf-list-item {
	display: flex;
	gap: .75rem;
	padding: .75rem 0;
	border-top: 1px solid var(--sk-line);
}
.fn-sf-list-item:first-child { padding-top: 0; border-top: none; }
.fn-sf-list-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	border: 1px solid var(--sk-line);
	overflow: hidden;
}
.fn-sf-list-body { flex: 1 1 auto; min-width: 0; }
.fn-sf-list-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .87rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sk-text);
	text-decoration: none;
}
.fn-sf-list-title:hover { color: var(--sk-primary); }
.fn-sf-list-meta { font-size: .74rem; color: var(--sk-faint); margin-top: .25rem; }

/* Explore chips */
.fn-sf-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fn-sf-chip {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .45rem .9rem;
	border: 1px solid var(--sk-line);
	border-radius: 999px;
	background: var(--sk-body-bg);
	font-size: .8rem;
	font-weight: 700;
	color: var(--sk-muted);
	text-decoration: none;
	transition: border-color var(--sk-fast), color var(--sk-fast);
}
.fn-sf-chip:hover { border-color: var(--sk-primary-line); color: var(--sk-text); }
.fn-sf-chip-count { color: var(--sk-faint); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.fn-sf-layout { grid-template-columns: 1fr; padding: 0 .75rem 1.5rem; }
	.fn-sf-sidebar { position: static; }
	.fn-sf-trend-list { grid-template-columns: 1fr; }
	.fn-sf-trend-item:nth-child(2) { border-top: 1px solid var(--sk-line); }
}
@media (max-width: 640px) {
	.fn-sf-featured { flex-direction: column; }
	.fn-sf-featured-thumb { max-width: none; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.fn-sf-row-thumb { flex-basis: 92px; width: 92px; height: 68px; }
}
