/*
Theme Name: Nsemwokrom
Theme URI: https://nsemwokrom.com
Author: King
Author URI: https://nsemwokrom.com
Description: Fast, mobile-first, ad-ready entertainment news theme for nsemwokrom.com. Bold editorial design — flat surfaces, serif headlines, rounded imagery, dark mode. Magazine-grid homepage, NewsArticle schema, AdSense slots built in.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nsemwokrom
Tags: news, blog, entertainment, magazine, custom-logo, featured-images, threaded-comments
*/

/* -------------------------------------------------------------------------
   Phase 2 — Design tokens.

   The palette, type scale and spacing scale live in theme.json so the editor
   and front end stay in sync. WordPress emits them as --wp--preset--* custom
   properties. Below we alias the ones we use most into shorter --nsem-* tokens
   so component CSS reads cleanly (BEM-ish), and so a future re-theme only
   touches theme.json.
   ------------------------------------------------------------------------- */

:root {
	color-scheme: light;

	/* Colour */
	--nsem-accent: var(--wp--preset--color--accent, #d81e5b);
	--nsem-accent-dark: var(--wp--preset--color--accent-dark, #b01548);
	--nsem-ink: var(--wp--preset--color--ink, #16161a);
	--nsem-muted: var(--wp--preset--color--ink-muted, #6b6b70);
	--nsem-surface: var(--wp--preset--color--surface, #ffffff);
	--nsem-canvas: var(--wp--preset--color--canvas, #fafafa);
	--nsem-border: var(--wp--preset--color--border, #e7e7e4);

	/* Category badge colours (match real nsemwokrom.com taxonomy; WCAG AA with white text) */
	--nsem-cat-news: var(--wp--preset--color--news, #d81e5b);
	--nsem-cat-gossip: var(--wp--preset--color--gossip, #c2410c);
	--nsem-cat-people: var(--wp--preset--color--people, #1f7d70);
	--nsem-cat-music: var(--wp--preset--color--music, #7b2cbf);
	--nsem-cat-politics: var(--wp--preset--color--politics, #1d3557);
	--nsem-cat-naija: var(--wp--preset--color--naija, #008751);
	--nsem-cat-lifestyle: var(--wp--preset--color--lifestyle, #c92a35);

	/* Type */
	--nsem-font-display: var(--wp--preset--font-family--display, system-ui, sans-serif);
	--nsem-font-headline: var(--wp--preset--font-family--headline, "Playfair Display", Georgia, "Times New Roman", serif);
	--nsem-font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);

	/* Spacing aliases */
	--nsem-space-sm: var(--wp--preset--spacing--30, 0.75rem);
	--nsem-space-md: var(--wp--preset--spacing--40, 1rem);
	--nsem-space-lg: var(--wp--preset--spacing--50, 1.5rem);
	--nsem-space-xl: var(--wp--preset--spacing--60, 2rem);

	/* Shape — flat editorial: square chrome, rounded imagery only */
	--nsem-radius: 0px;
	--nsem-radius-sm: 0px;
	--nsem-radius-img: 14px;
	--nsem-line-strong: var(--nsem-ink);
	--nsem-shadow: none;
	--nsem-container: 1100px;
}

/* Dark mode — flipped by the header toggle (persisted in localStorage) and
   seeded from the visitor's OS preference by the inline script in header.php.
   Only the tokens change; every component reads them. */
[data-theme="dark"] {
	color-scheme: dark;
	--nsem-ink: #fafafa;
	--nsem-muted: #a1a1aa;
	--nsem-surface: #141416;
	--nsem-canvas: #0a0a0b;
	--nsem-border: #26262a;
	--nsem-shadow: none;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--nsem-font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--nsem-ink);
	background: var(--nsem-canvas);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background 0.3s, color 0.3s;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--nsem-accent);
}

a:hover {
	color: var(--nsem-accent-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--nsem-font-headline);
	font-weight: 900;
	line-height: 1.18;
	letter-spacing: 0;
	color: var(--nsem-ink);
}

:focus-visible {
	outline: 3px solid var(--nsem-accent);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.5rem 1rem;
	background: var(--nsem-ink);
	color: #fff;
}

.skip-link:focus {
	left: 0;
}

.site-container {
	width: min(var(--nsem-container), 100% - 2rem);
	margin-inline: auto;
}

.site-header,
.site-footer {
	padding: var(--nsem-space-md) 0;
	background: var(--nsem-canvas);
	border-bottom: 2px solid var(--nsem-line-strong);
}

.site-footer {
	border-top: 3px solid var(--nsem-line-strong);
	border-bottom: 0;
	margin-top: var(--nsem-space-xl);
	color: var(--nsem-muted);
}

.site-branding a {
	font-family: var(--nsem-font-headline);
	font-weight: 900;
	font-size: 1.55rem;
	letter-spacing: -0.01em;
	text-decoration: none;
	color: var(--nsem-ink);
}

.entry {
	background: var(--nsem-surface);
	border: 1px solid var(--nsem-border);
	border-radius: var(--nsem-radius);
	padding: var(--nsem-space-lg);
	margin: var(--nsem-space-md) 0;
	box-shadow: var(--nsem-shadow);
}

.entry__title {
	margin: 0 0 0.25rem;
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
	line-height: 1.2;
}

.entry__title a {
	color: var(--nsem-ink);
	text-decoration: none;
}

.entry__title a:hover {
	color: var(--nsem-accent);
}

.entry__meta {
	color: var(--nsem-muted);
	font-size: 0.85rem;
	margin-bottom: var(--nsem-space-sm);
}

/* -------------------------------------------------------------------------
   Category badge — reusable label coloured per category. Used across cards,
   single header and archive headers in later phases. Default is the brand
   accent; per-category modifiers override it.
   ------------------------------------------------------------------------- */

.cat-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: max-content;
    padding: 4px 10px;
    border-radius: 0;
    border-left: 3px solid var(--nsem-cat, var(--nsem-accent));
    font-family: var(--nsem-font-display);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.4;
    color: #16161a;
    background: #fff;
}

.cat-badge:hover {
	color: #fff;
	background: #16161a;
}

.cat-badge--news      { --nsem-cat: var(--nsem-cat-news); }
.cat-badge--gossip    { --nsem-cat: var(--nsem-cat-gossip); }
.cat-badge--people    { --nsem-cat: var(--nsem-cat-people); }
.cat-badge--music     { --nsem-cat: var(--nsem-cat-music); }
.cat-badge--politics  { --nsem-cat: var(--nsem-cat-politics); }
.cat-badge--naija     { --nsem-cat: var(--nsem-cat-naija); }
.cat-badge--lifestyle { --nsem-cat: var(--nsem-cat-lifestyle); }

/* Pagination from the core posts-pagination block / the_posts_pagination */
.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nsem-space-sm);
	margin: var(--nsem-space-xl) 0;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--nsem-line-strong);
	border-radius: 0;
	background: transparent;
	font-weight: 700;
	text-decoration: none;
	color: var(--nsem-ink);
}

.nav-links .page-numbers.current {
	background: var(--nsem-accent);
	border-color: var(--nsem-accent);
	color: #fff;
}

/* "Load more" button (JS enhancement over the pagination links) —
   squared editorial button: ink block, uppercase, accent on hover. */
.load-more {
	display: block;
	margin: var(--nsem-space-lg) auto var(--nsem-space-xl);
	padding: 0.9rem 2.4rem;
	border: 1px solid var(--nsem-line-strong);
	border-radius: 0;
	background: var(--nsem-ink);
	color: var(--nsem-canvas);
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.load-more:hover {
	background: var(--nsem-accent);
	border-color: var(--nsem-accent);
	color: #fff;
}

.load-more[disabled] {
	opacity: 0.7;
	cursor: default;
}

/* =========================================================================
   Phase 3 — Header, navigation, footer.
   Mobile-first: hamburger + off-canvas-ish panel by default; primary nav
   becomes a horizontal bar at the `md` breakpoint.
   ========================================================================= */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute;
	word-wrap: normal !important;
}

/* ---- Header bar ---- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 0;
	transition: box-shadow 0.2s ease;
}

.site-header.is-stuck {
	box-shadow: 0 2px 12px rgba(22, 22, 26, 0.12);
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: var(--nsem-space-md);
	min-height: 60px;
	padding-block: 0.5rem;
}

.site-branding {
	margin-right: auto;
	display: flex;
	align-items: center;
}

.site-branding__title {
	font-family: var(--nsem-font-headline);
	font-weight: 900;
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	line-height: 1;
	text-decoration: none;
	color: var(--nsem-ink);
}

.site-branding__title .site-branding__accent {
	color: var(--nsem-accent);
}

.custom-logo {
	max-height: 44px;
	width: auto;
}

/* ---- Primary (desktop) nav ---- */
.primary-nav {
	display: none; /* shown at md */
}

.primary-nav__list,
.mobile-nav__list,
.footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: 1.4rem;
}

.primary-nav__list a {
	display: inline-block;
	position: relative;
	padding: 0.4rem 0;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nsem-muted);
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a {
	color: var(--nsem-ink);
}

.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--nsem-accent);
}

/* ---- Header action buttons (search + hamburger) ---- */
.header-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.header-actions__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--nsem-line-strong);
	border-radius: 0;
	cursor: pointer;
	color: var(--nsem-ink);
	font-size: 1.25rem;
	transition: background 0.2s, color 0.2s;
}

.header-actions__btn:hover {
	background: var(--nsem-ink);
	color: var(--nsem-canvas);
}

/* Mobile: comfortably tappable header buttons (Lighthouse wants ~48px
   effective targets — 44px buttons + 8px gaps clear it). */
@media (max-width: 767px) {
	.header-actions {
		gap: 0.5rem;
	}

	.header-actions__btn {
		width: 44px;
		height: 44px;
	}
}

/* Theme toggle: moon in light mode, sun in dark mode (icons swap via CSS). */
.theme-toggle svg {
	display: block;
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-toggle .icon-sun {
	display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
	display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
	display: block;
}

/* Hamburger icon built from a single element + pseudos */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--nsem-ink);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after  { top: 7px; }

/* Bars invert together with the button's hover state. */
.nav-toggle:hover .nav-toggle__bars,
.nav-toggle:hover .nav-toggle__bars::before,
.nav-toggle:hover .nav-toggle__bars::after {
	background: var(--nsem-canvas);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars,
.nav-toggle[aria-expanded="true"]:hover .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---- Header search drawer ---- */
.header-search {
	border-top: 1px solid var(--nsem-border);
	background: var(--nsem-surface);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.header-search.header-search--open {
	max-height: 120px;
}

.header-search .search-form {
	padding-block: 0.75rem;
}

/* ---- Live search suggestions (filled by main.js) ---- */
.search-suggest {
	list-style: none;
	margin: 0;
	padding: 0 0 0.75rem;
}

.search-suggest a {
	display: block;
	padding: 0.5rem 0;
	border-top: 1px solid var(--nsem-border);
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--nsem-ink);
	text-decoration: none;
}

.search-suggest a:hover {
	color: var(--nsem-accent);
}

.search-suggest__empty {
	padding: 0.5rem 0;
	border-top: 1px solid var(--nsem-border);
	color: var(--nsem-muted);
	font-size: 0.9rem;
}

/* Suggestions can make the drawer taller than the closed max-height. */
.header-search.header-search--open {
	max-height: 60vh;
	overflow-y: auto;
}

/* ---- Saved stories panel (header drawer, same pattern as the search) ---- */
.saved-panel {
	border-top: 1px solid var(--nsem-border);
	background: var(--nsem-surface);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.saved-panel.saved-panel--open {
	max-height: 60vh;
	overflow-y: auto;
}

.saved-panel .site-container {
	padding-block: 0.75rem;
}

.saved-panel__title {
	margin: 0 0 0.5rem;
	font-family: var(--nsem-font-display);
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nsem-muted);
}

.saved-panel__save {
	display: block;
	width: 100%;
	margin: 0 0 0.65rem;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: var(--nsem-radius-sm);
	background: var(--nsem-accent);
	color: #fff;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
}

.saved-panel__save.is-saved {
	background: var(--nsem-ink);
}

.saved-panel__save:hover {
	filter: brightness(0.94);
}

.saved-panel__empty {
	margin: 0;
	color: var(--nsem-muted);
	font-size: 0.9rem;
}

.saved-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.saved-panel__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--nsem-border);
}

.saved-panel__item:last-child {
	border-bottom: 0;
}

.saved-panel__item a {
	flex: 1;
	min-width: 0;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--nsem-ink);
	text-decoration: none;
}

.saved-panel__item a:hover {
	color: var(--nsem-accent);
}

.saved-panel__remove {
	flex: none;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: var(--nsem-canvas);
	color: var(--nsem-muted);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.saved-panel__remove:hover {
	color: var(--nsem-ink);
}

/* ---- Mobile nav panel ----
   Lives inside the sticky header and drops down from the bar as an overlay, so
   it's always visible right under the header at any scroll position. */
.mobile-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99;
	background: var(--nsem-surface);
	border-bottom: 1px solid var(--nsem-border);
	box-shadow: 0 10px 18px rgba(22, 22, 26, 0.14);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
}

.mobile-nav.mobile-nav--open {
	max-height: 80vh;
	overflow-y: auto;
}

.mobile-nav__list a {
	display: block;
	padding: 0.9rem var(--nsem-space-md);
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nsem-ink);
	border-bottom: 1px solid var(--nsem-border);
}

.mobile-nav__list a:hover {
	background: var(--nsem-canvas);
	color: var(--nsem-accent);
}

/* ---- Search form ---- */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form__field {
	flex: 1;
	min-width: 0;
	padding: 0.6rem 0.8rem;
	border: 1px solid var(--nsem-line-strong);
	border-radius: 0;
	font: inherit;
	background: var(--nsem-surface);
	color: var(--nsem-ink);
}

.search-form__submit {
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: var(--nsem-radius-sm);
	background: var(--nsem-accent);
	color: #fff;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	cursor: pointer;
}

.search-form__submit:hover {
	background: var(--nsem-accent-dark);
}

/* =========================================================================
   Ad slots — reserved, CLS-safe placeholders (live AdSense swapped in Phase 8).
   ========================================================================= */
.ad-zone {
	margin-block: var(--nsem-space-md);
}

.ad-slot {
	display: block;
	margin-inline: auto;
}

.ad-slot__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		45deg,
		var(--nsem-surface),
		var(--nsem-surface) 10px,
		var(--nsem-canvas) 10px,
		var(--nsem-canvas) 20px
	);
	border: 1px dashed var(--nsem-border);
	border-radius: var(--nsem-radius-sm);
}

.ad-slot__label {
	font-family: var(--nsem-font-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nsem-muted);
}

/* Reserved sizes (min-height prevents layout shift) */
.ad-slot--leaderboard { width: 100%; max-width: 728px; }
.ad-slot--leaderboard .ad-slot__inner { min-height: 90px; }

.ad-slot--billboard { width: 100%; max-width: 970px; }
.ad-slot--billboard .ad-slot__inner { min-height: 90px; }

.ad-slot--rectangle { width: 100%; max-width: 336px; }
.ad-slot--rectangle .ad-slot__inner { min-height: 280px; }

/* Collapse UNFILLED AdSense units entirely. Google marks slots it can't fill
   with data-ad-status="unfilled" (common on newer sites); without this they
   render as large blank gaps. */
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

@media (max-width: 480px) {
	.ad-slot--leaderboard .ad-slot__inner,
	.ad-slot--billboard .ad-slot__inner { min-height: 100px; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer__widgets {
	display: grid;
	gap: var(--nsem-space-lg);
	padding-block: var(--nsem-space-xl);
	grid-template-columns: 1fr;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--nsem-space-sm);
	padding-block: var(--nsem-space-md);
	border-top: 1px solid var(--nsem-border);
}

.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nsem-space-md);
}

.footer-nav__list a {
	text-decoration: none;
	color: var(--nsem-muted);
	font-size: 0.9rem;
}

.footer-nav__list a:hover {
	color: var(--nsem-accent);
}

.site-footer__copy {
	margin: 0;
	font-size: 0.85rem;
	color: var(--nsem-muted);
}

/* =========================================================================
   Breakpoints
   ========================================================================= */
@media (min-width: 768px) {
	.primary-nav {
		display: block;
	}

	.nav-toggle {
		display: none;
	}

	.mobile-nav {
		display: none;
	}

	.site-footer__widgets {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* =========================================================================
   Phase 4 — Homepage magazine grid.
   ========================================================================= */

.front-page > * {
	margin-block: var(--nsem-space-xl);
}

/* Category blocks: horizontally swipeable card rows on mobile (discovery
   without vertical weight — same scroll-snap pattern as the trending strip),
   regular grid from the md breakpoint. */
@media (max-width: 767px) {
	.category-block .card-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72%;
		overflow-x: auto;
		padding-bottom: 0.5rem;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.category-block .card {
		scroll-snap-align: start;
	}
}

/* ---- Section header — editorial: accent kicker + big serif title + rule ---- */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--nsem-space-sm);
	margin-bottom: var(--nsem-space-lg);
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--nsem-line-strong);
}

.section-head__title {
	margin: 0;
	font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.1rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.section-head__kicker {
	display: block;
	margin-bottom: 0.45rem;
	font-family: var(--nsem-font-display);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--nsem-accent);
}

/* "Trending" flag now reads as part of the serif title. */
.section-head__flag {
	display: inline;
	padding: 0;
	background: transparent;
	color: inherit;
	border-radius: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
}

/* Category-block titles: the coloured badge becomes a serif title with a
   coloured bar at its left edge (the badge modifier supplies --nsem-cat). */
.section-head__title .cat-badge {
	max-width: none;
	padding: 0 0 0 14px;
	border-left: 4px solid var(--nsem-cat, var(--nsem-accent));
	background: transparent;
	color: var(--nsem-ink);
	font-family: var(--nsem-font-headline);
	font-size: inherit;
	font-weight: 900;
	letter-spacing: inherit;
	text-transform: none;
	line-height: inherit;
}

.section-head__title .cat-badge:hover {
	background: transparent;
	color: var(--nsem-accent);
}

.section-head__more {
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nsem-ink);
	border-bottom: 2px solid var(--nsem-accent);
	padding-bottom: 2px;
	white-space: nowrap;
}

.section-head__more:hover {
	color: var(--nsem-accent);
}

/* ---- Generic card — flat editorial: no box, rounded image, hairline air ---- */
.card {
	display: flex;
	flex-direction: column;
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
}

.card__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--nsem-surface);
	border-radius: var(--nsem-radius-img);
}

.card__image,
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.card:hover .card__image {
	transform: scale(1.04);
}

.card__image--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--nsem-surface), var(--nsem-border));
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.9rem 2px 0;
}

.card__title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.card__title a {
	color: var(--nsem-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--nsem-accent), var(--nsem-accent));
	background-size: 0 2px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size 0.25s;
}

.card__title a:hover {
	color: var(--nsem-ink);
	background-size: 100% 2px;
}

.card__excerpt {
	margin: 0;
	color: var(--nsem-muted);
	font-size: 0.9rem;
}

.card__meta {
	margin: 0;
	color: var(--nsem-muted);
	font-family: var(--nsem-font-display);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.cat-badge + .card__title,
.cat-badge + .trending__title {
	margin-top: 0.15rem;
}

/* ---- Featured / hero card (overlaid title) ---- */
.card--featured .card__media {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.card--featured {
	position: relative;
	overflow: hidden;
	border-radius: var(--nsem-radius-img);
}

.card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(8, 8, 12, 0.92) 0%, rgba(8, 8, 12, 0.55) 35%, rgba(8, 8, 12, 0.12) 68%, rgba(8, 8, 12, 0) 100%);
}

.card__body--overlay {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: var(--nsem-space-lg);
	color: #fff;
	z-index: 1;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.card__title--featured {
	font-size: clamp(1.4rem, 1.1rem + 2.2vw, 2.4rem);
	line-height: 1.1;
}

.card__body--overlay .card__title a {
	color: #fff;
}

.card__body--overlay .card__title a:hover {
	color: #fff;
	text-decoration: underline;
}

.card__body--overlay .card__meta {
	color: rgba(255, 255, 255, 0.85);
}

/* ---- Hero layout ---- */
.hero__grid {
	display: grid;
	gap: var(--nsem-space-md);
	grid-template-columns: 1fr;
}

.hero__secondary {
	display: grid;
	gap: var(--nsem-space-md);
	grid-template-columns: 1fr; /* full-width mini cards so image + title have room */
}

/* Compact horizontal card — used for the hero's secondary stories so the right
   column balances the height of the lead, like the magazine mockup. */
.card--mini {
	flex-direction: row;
	align-items: stretch;
}

.card--mini .card__media {
	width: 40%;
	flex: 0 0 40%;
	aspect-ratio: 1 / 1;
}

.card--mini .card__body {
	flex: 1;
	justify-content: center;
	padding: 0 0 0 0.9rem;
	gap: 0.35rem;
}

.card--mini .card__title {
	font-size: 0.98rem;
	line-height: 1.2;
}

.card--mini .card__excerpt {
	display: none;
}

/* Flat minis in the hero column read as a list — hairlines between them. */
.hero__secondary .card--mini:not(:last-child) {
	border-bottom: 1px solid var(--nsem-border);
	padding-bottom: var(--nsem-space-md);
}

/* ---- Card grid (category blocks, archives) ----
   Flat cards need more air between columns and rows. */
.card-grid {
	display: grid;
	gap: 1.8rem 1.25rem;
	grid-template-columns: 1fr 1fr;
}

/* ---- Trending strip ---- */
.trending__list {
	list-style: none;
	margin: 0;
	padding: 0 0 0.5rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 78%;
	gap: var(--nsem-space-md);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.trending__item {
	scroll-snap-align: start;
	display: grid;
	grid-template-columns: auto 64px 1fr;
	align-items: center;
	gap: 0.6rem;
	background: var(--nsem-surface);
	border: 1px solid var(--nsem-border);
	border-radius: var(--nsem-radius-img);
	padding: 0.6rem;
}

.trending__rank {
	font-family: var(--nsem-font-headline);
	font-weight: 900;
	font-size: 1.4rem;
	color: var(--nsem-accent);
	width: 1.4em;
	text-align: center;
}

.trending__thumb {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--nsem-canvas);
}

.trending__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.trending__title {
	margin: 0.15rem 0 0;
	font-size: 0.92rem;
	line-height: 1.2;
}

.trending__title a {
	color: var(--nsem-ink);
	text-decoration: none;
}

.trending__title a:hover {
	color: var(--nsem-accent);
}

/* ---- Homepage breakpoints ---- */
@media (min-width: 768px) {
	.hero__grid {
		grid-template-columns: 1.6fr 1fr;
		align-items: stretch;
	}

	.hero__secondary {
		grid-template-columns: 1fr;
		align-content: stretch;
	}

	/* Lead fills the row height so it balances the stacked secondary cards. */
	.hero__lead,
	.hero__lead .card--featured {
		height: 100%;
	}

	.hero__lead .card--featured .card__media {
		height: 100%;
		aspect-ratio: auto;
	}

	.card-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.trending__list {
		grid-auto-columns: minmax(260px, 1fr);
	}

	.section-head__title {
		font-size: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.trending__list {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-flow: row;
		overflow: visible;
	}
}

/* =========================================================================
   Phase 5 — Single article.
   ========================================================================= */

.single {
	padding-block: var(--nsem-space-lg) var(--nsem-space-xl);
}

.single-header {
	margin-bottom: var(--nsem-space-md);
}

.single-header__title {
	margin: 0.5rem 0 0.75rem;
	font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.25rem);
	line-height: 1.2;
}

.single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	color: var(--nsem-muted);
	font-size: 0.9rem;
}

.single-meta__avatar {
	border-radius: 50%;
	border: 2px solid var(--nsem-border);
	margin-right: 0.25rem;
}

.single-meta a {
	color: var(--nsem-ink);
	font-weight: 600;
	text-decoration: none;
}

.single-meta__updated {
	color: var(--nsem-accent-dark);
	font-weight: 600;
}

.single-meta__updated time {
	font-weight: 600;
}

.single-meta a:hover {
	color: var(--nsem-accent);
}

/* Hero image — fits the article column (no longer full-bleed) */
.single-hero {
	margin: 0 0 var(--nsem-space-md);
}

.single-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--nsem-radius-img);
	background: var(--nsem-canvas);
}

.single-hero__caption {
	margin: 0.5rem 0 0;
	color: var(--nsem-muted);
	font-size: 0.82rem;
}

/* Body */
.single-body {
	margin-top: var(--nsem-space-md);
}

.entry-content {
	font-size: 1.08rem;
	line-height: 1.75;
}

.entry-content > p {
	margin: 0 0 1.25rem;
}

.entry-content h2 {
	margin: 2rem 0 0.75rem;
	font-size: 1.5rem;
}

.entry-content h3 {
	margin: 1.75rem 0 0.5rem;
	font-size: 1.25rem;
}

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

.entry-content img,
.entry-content iframe {
	height: auto;
	border-radius: var(--nsem-radius-sm);
}

.entry-content figure {
	margin: 1.5rem 0;
}

.entry-content figcaption {
	color: var(--nsem-muted);
	font-size: 0.85rem;
	margin-top: 0.4rem;
}

/* Editorial pull quote — no box: an accent quote mark, big serif italic
   text and a slim accent rule. Matches the flat magazine look. */
.entry-content blockquote {
	position: relative;
	margin: 2.4rem 0;
	padding: 0.2rem 0 0.2rem 1.7rem;
	border: 0;
	border-left: 3px solid var(--nsem-accent);
	border-radius: 0;
	background: transparent;
	font-family: var(--nsem-font-headline);
	font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
	font-style: italic;
	font-weight: 500;
	line-height: 1.55;
	color: var(--nsem-ink);
}

.entry-content blockquote::before {
	content: "\201C";
	display: block;
	font-family: var(--nsem-font-headline);
	font-weight: 900;
	font-style: normal;
	font-size: 3rem;
	line-height: 0.55;
	margin: 0.4rem 0 0.6rem;
	color: var(--nsem-accent);
}

.entry-content blockquote p {
	margin: 0 0 0.5rem;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite,
.entry-content blockquote footer {
	display: block;
	margin-top: 0.9rem;
	font-family: var(--nsem-font-display);
	font-style: normal;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nsem-muted);
}

.entry-content blockquote cite::before,
.entry-content blockquote footer::before {
	content: "— ";
}

/* Pullquote block: centred between two strong rules. */
.entry-content .wp-block-pullquote {
	margin: 2.6rem 0;
	padding: 1.6rem 0.5rem;
	border: 0;
	border-block: 2px solid var(--nsem-line-strong);
	text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.4rem;
}

.entry-content li {
	margin-bottom: 0.4rem;
}

/* In-content ad slot spacing */
.entry-content .ad-slot {
	margin: var(--nsem-space-lg) auto;
}

/* -------------------------------------------------------------------------
   Overflow safety — wide media must never widen the page on mobile.
   ------------------------------------------------------------------------- */

/* Last line of defence: nothing can stretch the viewport sideways. `clip`
   (unlike `hidden`) doesn't create a scroll container, so the sticky header
   keeps working. */
html,
body {
	overflow-x: clip;
}

/* Anything media-like stays within the article column, including figures
   Gutenberg gives an explicit pixel width when an image is resized. */
.entry-content figure,
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

/* Wide / Full alignments: the article column has no full-bleed layout, so
   pull them back to the column instead of overflowing the phone screen. */
.entry-content .alignwide,
.entry-content .alignfull {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Wide tables scroll sideways inside the article instead of stretching it. */
.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-collapse: collapse;
}

.single-tags {
	margin: var(--nsem-space-lg) 0 0;
	font-size: 0.85rem;
	color: var(--nsem-muted);
}

.single-tags a {
	display: inline-block;
	padding: 0.15em 0.6em;
	margin: 0 0.2rem 0.2rem 0;
	background: var(--nsem-canvas);
	border: 1px solid var(--nsem-border);
	border-radius: 999px;
	text-decoration: none;
	color: var(--nsem-ink);
}

/* ---- Share buttons ---- */
.share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: var(--nsem-space-lg) 0;
	padding: var(--nsem-space-md) 0;
	border-block: 1px solid var(--nsem-border);
}

.share__label {
	font-family: var(--nsem-font-display);
	font-weight: 700;
	margin-right: 0.25rem;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.9rem;
	border: 0;
	border-radius: 999px;
	font-family: var(--nsem-font-body);
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.share__btn--whatsapp { background: #0f7a3f; }
.share__btn--facebook { background: #1466d8; }
.share__btn--x        { background: #16161a; }
.share__btn--copy     { background: var(--nsem-canvas); color: var(--nsem-ink); border: 1px solid var(--nsem-border); }
.share__btn--copy.is-copied { background: var(--nsem-accent); color: #fff; border-color: var(--nsem-accent); }
.share__btn--save     { background: var(--nsem-canvas); color: var(--nsem-ink); border: 1px solid var(--nsem-border); }
.share__btn--save.is-saved { background: var(--nsem-ink); color: var(--nsem-surface); border-color: var(--nsem-ink); }

.share__btn:hover { filter: brightness(0.94); }

/* ---- Author box ---- */
.author-box {
	display: flex;
	gap: var(--nsem-space-lg);
	align-items: center;
	margin: var(--nsem-space-xl) 0;
	padding: var(--nsem-space-lg);
	background: var(--nsem-surface);
	border: 1px solid var(--nsem-border);
	border-radius: var(--nsem-radius);
	box-shadow: var(--nsem-shadow);
	position: relative;
	overflow: hidden;
}

.author-box::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--nsem-accent);
}

.author-box__avatar {
	flex: none;
}

.author-box__img {
	display: block;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--nsem-surface);
	box-shadow: 0 0 0 3px var(--nsem-accent);
}

.author-box__eyebrow {
	margin: 0;
	font-family: var(--nsem-font-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nsem-accent);
}

.author-box__name {
	margin: 0.15rem 0 0.5rem;
	font-family: var(--nsem-font-display);
	font-size: 1.3rem;
	line-height: 1.1;
}

.author-box__name a {
	color: var(--nsem-ink);
	text-decoration: none;
}

.author-box__name a:hover {
	color: var(--nsem-accent);
}

.author-box__bio {
	margin: 0 0 0.75rem;
	color: var(--nsem-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.author-box__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 1rem;
	border: 1px solid var(--nsem-border);
	border-radius: 999px;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--nsem-ink);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.author-box__more:hover {
	background: var(--nsem-accent);
	border-color: var(--nsem-accent);
	color: #fff;
}

.author-box__foot {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--nsem-space-md);
}

.author-header__social {
	margin-top: 0.6rem;
}

@media (max-width: 560px) {
	.author-box {
		flex-direction: column;
		text-align: center;
		gap: var(--nsem-space-md);
	}

	.author-box::before {
		inset: 0 0 auto 0;
		width: auto;
		height: 5px;
	}

	.author-box__foot {
		justify-content: center;
	}
}

/* ---- Previous / next story navigation ---- */
.post-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--nsem-space-md);
	margin-top: var(--nsem-space-lg);
}

.post-nav__link {
	display: block;
	padding: var(--nsem-space-md);
	background: var(--nsem-surface);
	border: 1px solid var(--nsem-border);
	border-radius: var(--nsem-radius);
	text-decoration: none;
}

.post-nav__eyebrow {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nsem-muted);
}

.post-nav__title {
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.3;
	color: var(--nsem-ink);
}

.post-nav__link:hover .post-nav__title {
	color: var(--nsem-accent);
}

@media (min-width: 560px) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}

	.post-nav__link--next {
		text-align: right;
	}

	/* A lone "next" card sits in the right column. */
	.post-nav__link--next:first-child {
		grid-column: 2;
	}
}

/* ---- Related + comments spacing ---- */
.related {
	margin-top: var(--nsem-space-xl);
}

.comments-area {
	margin-top: var(--nsem-space-xl);
}

/* =========================================================================
   Phase 6 — Archives & search.
   ========================================================================= */

.archive {
	padding-bottom: var(--nsem-space-xl);
}

.archive-header {
	padding-block: var(--nsem-space-lg);
	margin-bottom: var(--nsem-space-lg);
	border-bottom: 1px solid var(--nsem-border);
	background: var(--nsem-surface);
}

.archive-header__eyebrow {
	margin: 0 0 0.25rem;
	font-family: var(--nsem-font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nsem-muted);
}

.archive-header__title {
	margin: 0;
	font-size: clamp(1.6rem, 1.2rem + 2.4vw, 2.6rem);
}

.archive-header__desc {
	margin-top: 0.5rem;
	max-width: 60ch;
	color: var(--nsem-muted);
}

/* Coloured category banner */
.archive-header--category {
	background: var(--cat-color, var(--nsem-accent));
	border-bottom: 0;
	color: #fff;
}

.archive-header--category .archive-header__eyebrow {
	color: #fff;
}

.archive-header--category .archive-header__desc {
	color: rgba(255, 255, 255, 0.92);
}

.archive-header--category .archive-header__title {
	color: #fff;
}

/* Author profile header */
.author-header {
	background: var(--nsem-surface);
}

.author-header__inner {
	display: flex;
	align-items: center;
	gap: var(--nsem-space-lg);
}

.author-header__img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--nsem-surface);
	box-shadow: 0 0 0 3px var(--nsem-accent);
}

.author-header__bio {
	margin: 0.4rem 0 0.5rem;
	max-width: 60ch;
	color: var(--nsem-muted);
}

.author-header__count {
	margin: 0;
	font-size: 0.9rem;
	color: var(--nsem-muted);
}

.author-header__count strong {
	color: var(--nsem-ink);
}

@media (max-width: 560px) {
	.author-header__inner {
		flex-direction: column;
		text-align: center;
		gap: var(--nsem-space-md);
	}

	.author-header__bio {
		margin-inline: auto;
	}
}

/* Archive grid: 1 col mobile → up to 3 on desktop (slightly larger cards than homepage) */
.card-grid--archive {
	grid-template-columns: 1fr;
}

/* In-grid ad spans the full row and centres its unit */
.ad-zone--ingrid {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	margin-block: var(--nsem-space-sm);
}

@media (min-width: 560px) {
	.card-grid--archive {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 900px) {
	.card-grid--archive {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---- No results ---- */
.no-results {
	padding-block: var(--nsem-space-lg);
}

.no-results__title {
	font-size: 1.4rem;
	margin: 0 0 0.4rem;
}

.no-results__text {
	color: var(--nsem-muted);
	margin: 0 0 var(--nsem-space-md);
}

.no-results__search {
	max-width: 480px;
	margin-bottom: var(--nsem-space-xl);
}

.no-results__latest {
	margin-top: var(--nsem-space-lg);
}

/* =========================================================================
   Phase 7 — Sidebar & widgets.
   ========================================================================= */

.content-wrap {
	display: block;
}

/* Mobile: no sidebar — readers go straight from the article to related
   stories. (Its lazy ad never enters the viewport, so it never loads.) */
.sidebar {
	display: none;
}

@media (min-width: 768px) {
	.content-wrap {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: var(--nsem-space-lg);
		align-items: start;
	}

	.sidebar {
		display: block;
		margin-top: 0;
	}

	/* Sticky sidebar ad — stays in view as the article scrolls (more impressions). */
	.sidebar .widget-ad {
		position: sticky;
		top: 80px;
	}

	/* With a sidebar present, keep the archive grid at two columns. */
	.content-main .card-grid--archive {
		grid-template-columns: 1fr 1fr;
	}
}

/* Roomier sidebar on larger screens. */
@media (min-width: 1024px) {
	.content-wrap {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: var(--nsem-space-xl);
	}
}

/* ---- Widgets ---- */
.widget {
	margin-bottom: var(--nsem-space-lg);
	padding: var(--nsem-space-md);
	background: var(--nsem-surface);
	border: 1px solid var(--nsem-border);
	border-radius: var(--nsem-radius);
}

.widget__title {
	margin: 0 0 var(--nsem-space-sm);
	padding-bottom: 0.5rem;
	font-size: 1rem;
	letter-spacing: 0.02em;
	border-bottom: 2px solid var(--nsem-ink);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Trending widget */
.widget-trending__list {
	counter-reset: trend;
}

.widget-trending__item {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 0.6rem;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--nsem-border);
}

.widget-trending__item:last-child {
	border-bottom: 0;
}

.widget-trending__thumb {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: var(--nsem-radius-sm);
	overflow: hidden;
	background: var(--nsem-canvas);
}

.widget-trending__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.widget-trending__title {
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.9rem;
	line-height: 1.25;
	color: var(--nsem-ink);
	text-decoration: none;
}

.widget-trending__title:hover {
	color: var(--nsem-accent);
}

/* Categories widget */
.widget-categories__list li {
	display: flex;
	justify-content: space-between;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--nsem-border);
}

.widget-categories__list li:last-child {
	border-bottom: 0;
}

.widget-categories__list a {
	text-decoration: none;
	color: var(--nsem-ink);
	font-weight: 600;
}

.widget-categories__list a:hover {
	color: var(--nsem-accent);
}

/* Generic core-widget lists (when admin adds widgets) */
.widget li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--nsem-border);
}

.widget li:last-child {
	border-bottom: 0;
}

/* Ad widget area resets the card chrome */
.widget-ad {
	padding: 0;
	background: transparent;
	border: 0;
	display: flex;
	justify-content: center;
}

/* Footer widgets reuse the footer column layout from Phase 3 */
.site-footer__widgets .widget {
	background: transparent;
	border: 0;
	padding: 0;
}

.site-footer__widgets .widget__title {
	color: var(--nsem-ink);
}

/* =========================================================================
   Phase 11 — Polish: 404 + comments.
   ========================================================================= */

/* ---- 404 ---- */
.error-404 {
	padding-bottom: var(--nsem-space-xl);
}

.error-404__hero {
	padding-block: var(--nsem-space-xl);
	text-align: center;
	background: var(--nsem-surface);
	border-bottom: 1px solid var(--nsem-border);
	margin-bottom: var(--nsem-space-xl);
}

.error-404__code {
	margin: 0;
	font-family: var(--nsem-font-display);
	font-weight: 800;
	font-size: clamp(4rem, 2rem + 14vw, 9rem);
	line-height: 1;
	color: var(--nsem-accent);
	letter-spacing: -0.04em;
}

.error-404__title {
	margin: 0.25rem 0 0.5rem;
	font-size: clamp(1.5rem, 1.2rem + 2vw, 2.2rem);
}

.error-404__text {
	max-width: 48ch;
	margin: 0 auto var(--nsem-space-md);
	color: var(--nsem-muted);
}

.error-404__search {
	max-width: 460px;
	margin: 0 auto;
}

/* ---- Comments ---- */
.comments-area {
	max-width: 760px;
}

.comments-title {
	font-size: 1.3rem;
	margin: 0 0 var(--nsem-space-md);
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--nsem-ink);
}

.comment-list {
	list-style: none;
	margin: 0 0 var(--nsem-space-lg);
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	margin: 0;
	padding-left: var(--nsem-space-lg);
}

.comment-body {
	padding: var(--nsem-space-md) 0;
	border-bottom: 1px solid var(--nsem-border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.4rem;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .fn {
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-style: normal;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--nsem-muted);
	margin-bottom: 0.5rem;
}

.comment-metadata a {
	color: var(--nsem-muted);
	text-decoration: none;
}

.comment-content {
	margin-bottom: 0.5rem;
}

.comment-content p {
	margin: 0 0 0.75rem;
}

.reply a {
	display: inline-block;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--nsem-accent);
	text-decoration: none;
}

.comment-respond {
	margin-top: var(--nsem-space-lg);
	padding: var(--nsem-space-lg);
	background: var(--nsem-surface);
	border: 1px solid var(--nsem-border);
	border-radius: var(--nsem-radius);
}

.comment-reply-title {
	margin: 0 0 var(--nsem-space-sm);
	font-size: 1.2rem;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: var(--nsem-space-sm);
}

.comment-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--nsem-border);
	border-radius: var(--nsem-radius-sm);
	font: inherit;
	background: var(--nsem-surface);
	color: var(--nsem-ink);
}

.comment-form textarea {
	min-height: 120px;
	resize: vertical;
}

.comment-form .form-submit {
	margin: 0;
}

.comment-form input[type="submit"],
.comment-form .submit {
	padding: 0.7rem 1.4rem;
	border: 0;
	border-radius: var(--nsem-radius-sm);
	background: var(--nsem-accent);
	color: #fff;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover {
	background: var(--nsem-accent-dark);
}

.comments-closed {
	color: var(--nsem-muted);
	font-style: italic;
}

.bypostauthor > .comment-body {
	border-left: 3px solid var(--nsem-accent);
	padding-left: var(--nsem-space-md);
}

/* =========================================================================
   Block styles & patterns (author experience).
   ========================================================================= */

/* Lead paragraph */
.is-style-nsem-lead {
	font-size: 1.25rem;
	line-height: 1.6;
	font-weight: 500;
	color: var(--nsem-ink);
}

/* Accent pull quote */
.wp-block-quote.is-style-nsem-accent {
	border-left: 4px solid var(--nsem-accent);
	padding: 0.25rem 0 0.25rem 1.25rem;
	font-style: italic;
	font-size: 1.2rem;
}

.wp-block-quote.is-style-nsem-accent cite {
	display: block;
	margin-top: 0.5rem;
	font-style: normal;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--nsem-muted);
}

/* Follow CTA group */
.nsem-cta {
	background: var(--nsem-canvas);
	border: 1px solid var(--nsem-border);
	border-left: 4px solid var(--nsem-accent);
	border-radius: var(--nsem-radius);
	padding: var(--nsem-space-lg);
}

.nsem-cta h3 {
	margin-top: 0;
}

/* =========================================================================
   Enhancements — ticker, reading progress, sticky share bar, footer socials.
   ========================================================================= */

/* ---- Breaking-news ticker — slim editorial top bar above the masthead ---- */
.ticker {
	background: var(--nsem-canvas);
	color: var(--nsem-ink);
	font-size: 0.78rem;
	overflow: hidden;
	border-bottom: 1px solid var(--nsem-border);
}

.ticker__inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 36px;
}

.ticker__label {
	flex: none;
	display: inline-flex;
	align-items: center;
	padding: 0.3em 0.9em;
	border-radius: 0;
	background: var(--nsem-ink);
	color: var(--nsem-canvas);
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.62rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ticker__viewport {
	flex: 1;
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 92%, transparent);
}

.ticker__track {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	width: max-content;
	animation: nsem-ticker 40s linear infinite;
}

.ticker__viewport:hover .ticker__track,
.ticker__viewport:focus-within .ticker__track {
	animation-play-state: paused;
}

.ticker__item {
	white-space: nowrap;
	position: relative;
}

.ticker__item::before {
	content: "";
	position: absolute;
	left: -1.35rem;
	top: 50%;
	width: 4px;
	height: 4px;
	background: var(--nsem-accent);
	transform: translateY(-50%);
}

.ticker__item a {
	color: var(--nsem-muted);
	text-decoration: none;
	font-weight: 500;
}

.ticker__item a:hover {
	color: var(--nsem-accent);
}

@keyframes nsem-ticker {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---- Reading progress bar ---- */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: transparent;
	z-index: 101;
	pointer-events: none;
}

.reading-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--nsem-accent);
}

/* ---- Sticky mobile share bar (single articles) ---- */
.share-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 95;
	display: flex;
	gap: 1px;
	background: var(--nsem-border);
	box-shadow: 0 -2px 10px rgba(22, 22, 26, 0.12);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.share-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	height: 52px;
	background: var(--nsem-surface);
	color: var(--nsem-ink);
	text-decoration: none;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.95rem;
	border: 0;
	cursor: pointer;
	flex: 0 0 auto;
	width: 52px;
}

.share-bar__btn--whatsapp {
	flex: 1;
	background: #0f7a3f;
	color: #fff;
}

.share-bar__btn--facebook { color: #1466d8; }

.share-bar__icon {
	display: inline-flex;
}

/* The sticky bar is no longer output (template removed from single.php);
   keep it hidden should any cached markup still render it. */
.share-bar {
	display: none;
}

/* ---- Social links (footer) ---- */
.site-footer__social {
	display: flex;
	align-items: center;
	gap: var(--nsem-space-md);
	padding-block: var(--nsem-space-md);
	border-top: 1px solid var(--nsem-border);
}

.site-footer__follow {
	font-family: var(--nsem-font-display);
	font-weight: 700;
}

.social-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--nsem-canvas);
	color: var(--nsem-ink);
	transition: background 0.15s ease, color 0.15s ease;
}

.social-link:hover {
	background: var(--nsem-accent);
	color: #fff;
}

/* Smaller social icons (author box / profile) */
.social-links--sm {
	gap: 0.4rem;
}

.social-links--sm .social-link {
	width: 32px;
	height: 32px;
}

.social-links--sm .social-link svg {
	width: 16px;
	height: 16px;
}

/* ---- Back-to-top button ---- */
.to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 96;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--nsem-accent);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(22, 22, 26, 0.25);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.to-top.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.to-top:hover {
	background: var(--nsem-accent-dark);
}

/* Respect the phone's home-bar inset. */
@media (max-width: 767px) {
	body.single .to-top {
		bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	}
}

/* ---- Respect reduced-motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.ticker__track {
		animation: none;
		transform: none;
	}
}

/* =========================================================================
   Header search icon.
   ========================================================================= */

.header-actions__btn .icon-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.icon-search svg {
	display: block;
}

/* =========================================================================
   Breadcrumbs, WhatsApp CTAs, sponsored label.
   ========================================================================= */

/* ---- Breadcrumbs ---- */
.breadcrumbs {
	font-size: 0.82rem;
	color: var(--nsem-muted);
	padding-block: 0.7rem;
}

.breadcrumbs a {
	color: var(--nsem-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--nsem-accent);
}

.breadcrumbs__sep {
	margin: 0 0.4rem;
	color: var(--nsem-border);
}

.breadcrumbs [aria-current="page"] {
	color: var(--nsem-ink);
	font-weight: 600;
}

/* Anchored headings land below the sticky header */
.entry-content h2,
.entry-content h3 {
	scroll-margin-top: 80px;
}

/* ---- Inline WhatsApp CTA ---- */
.wa-cta {
	display: flex;
	align-items: center;
	gap: var(--nsem-space-md);
	margin: var(--nsem-space-lg) 0;
	padding: var(--nsem-space-md) var(--nsem-space-lg);
	background: linear-gradient( 135deg, rgba(37, 211, 102, 0.14), rgba(37, 211, 102, 0.04) );
	border: 1px solid rgba(37, 211, 102, 0.35);
	border-radius: var(--nsem-radius);
}

.wa-cta__icon {
	flex: none;
	color: #25d366;
	display: inline-flex;
}

.wa-cta__body {
	flex: 1;
	min-width: 0;
}

.wa-cta__title {
	margin: 0;
	font-family: var(--nsem-font-display);
	font-weight: 800;
	font-size: 1.05rem;
}

.wa-cta__text {
	margin: 0.1rem 0 0;
	color: var(--nsem-muted);
	font-size: 0.9rem;
}

.wa-cta__btn {
	flex: none;
	padding: 0.55rem 1.3rem;
	border-radius: 999px;
	background: #0f7a3f;
	color: #fff;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	text-decoration: none;
}

.wa-cta__btn:hover {
	background: #0c6634;
	color: #fff;
}

@media (max-width: 480px) {
	.wa-cta {
		flex-wrap: wrap;
	}

	.wa-cta__btn {
		width: 100%;
		text-align: center;
	}
}

/* ---- Dismissible WhatsApp float (desktop) ---- */
.wa-float {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 96;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 320px;
	padding: 0.4rem 0.55rem 0.4rem 0.85rem;
	background: var(--nsem-surface);
	border: 1px solid var(--nsem-border);
	border-radius: 999px;
	box-shadow: var(--nsem-shadow);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.wa-float.is-visible {
	opacity: 1;
	transform: none;
}

.wa-float__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--nsem-ink);
	text-decoration: none;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.9rem;
}

.wa-float__icon {
	color: #25d366;
	display: inline-flex;
}

.wa-float__close {
	order: 2;
	flex: none;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: var(--nsem-canvas);
	color: var(--nsem-muted);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.wa-float__close:hover {
	color: var(--nsem-ink);
}

@media (max-width: 767px) {
	.wa-float {
		display: none; /* mobile already has the sticky share bar */
	}
}

/* ---- Sponsored ---- */
.cat-badge--sponsored {
	--nsem-cat: #6b6b70;
}

.sponsored-note {
	margin: 0.6rem 0 0;
	font-size: 0.8rem;
	font-style: italic;
	color: var(--nsem-muted);
}

/* Colour scheme: declared with the design tokens at the top of this file —
   light by default, flipped by [data-theme="dark"] so form controls and
   scrollbars follow the toggle. */

/* =========================================================================
   Google News follow CTA (after article body).
   ========================================================================= */
.gn-cta {
	display: flex;
	align-items: center;
	gap: var(--nsem-space-md);
	margin: var(--nsem-space-lg) 0;
	padding: var(--nsem-space-md) var(--nsem-space-lg);
	background: linear-gradient( 135deg, rgba(26, 115, 232, 0.12), rgba(26, 115, 232, 0.03) );
	border: 1px solid rgba(26, 115, 232, 0.35);
	border-radius: var(--nsem-radius);
}

.gn-cta__icon {
	flex: none;
	color: #1a73e8;
	display: inline-flex;
}

.gn-cta__body {
	flex: 1;
	min-width: 0;
}

.gn-cta__title {
	margin: 0;
	font-family: var(--nsem-font-display);
	font-weight: 800;
	font-size: 1.05rem;
}

.gn-cta__text {
	margin: 0.1rem 0 0;
	color: var(--nsem-muted);
	font-size: 0.9rem;
}

.gn-cta__btn {
	flex: none;
	padding: 0.55rem 1.3rem;
	border-radius: 999px;
	background: #1a73e8;
	color: #fff;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	text-decoration: none;
}

.gn-cta__btn:hover {
	background: #155cb8;
	color: #fff;
}

@media (max-width: 480px) {
	.gn-cta {
		flex-wrap: wrap;
	}

	.gn-cta__btn {
		width: 100%;
		text-align: center;
	}
}

/* =========================================================================
   v2.2.0 — dark-mode logo, editorial footer, category tiles, join band.
   ========================================================================= */

/* ---- Dark-mode logo swap (markup emitted only when a dark logo is set) ---- */
.custom-logo-link--dark {
	display: none;
}

[data-theme="dark"] .has-dark-logo .custom-logo-link--dark {
	display: flex;
	align-items: center;
}

[data-theme="dark"] .has-dark-logo .custom-logo-link:not(.custom-logo-link--dark) {
	display: none;
}

/* ---- Footer — full dark editorial band (same in both modes) ---- */
.site-footer {
	background: #0a0a0b;
	border-top: 3px solid var(--nsem-accent);
	color: #a1a1aa;
}

[data-theme="dark"] .site-footer {
	background: #000;
}

.site-footer__widgets--editorial {
	gap: var(--nsem-space-xl);
}

@media (min-width: 768px) {
	.site-footer__widgets--editorial {
		grid-template-columns: 1.3fr 0.9fr 1.3fr;
	}
}

.footer-brand {
	font-family: var(--nsem-font-headline);
	font-weight: 900;
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	color: #fafafa;
	text-decoration: none;
}

.footer-brand:hover {
	color: var(--nsem-accent);
}

.footer-about {
	margin: 0.75rem 0 1rem;
	color: #71717a;
	font-size: 0.92rem;
	max-width: 36ch;
}

.footer-col__title {
	margin: 0 0 1rem;
	font-family: var(--nsem-font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #fafafa;
}

.footer-cats,
.footer-recent {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-cats a {
	display: block;
	padding: 0.3rem 0;
	color: #a1a1aa;
	text-decoration: none;
	font-size: 0.92rem;
}

.footer-cats a:hover {
	color: #fff;
}

.footer-recent__item {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.45rem 0;
	text-decoration: none;
}

.footer-recent__thumb {
	position: relative;
	display: block;
	width: 64px;
	height: 48px;
	flex: none;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
}

.footer-recent__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.footer-recent__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.footer-recent__title {
	font-family: var(--nsem-font-display);
	font-weight: 500;
	font-size: 0.88rem;
	line-height: 1.3;
	color: #e4e4e7;
}

.footer-recent__item:hover .footer-recent__title {
	color: var(--nsem-accent);
}

.footer-recent__date {
	margin-top: 2px;
	color: #71717a;
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Dark footer adaptations for the bottom row, nav, socials and any widgets. */
.site-footer__bottom,
.site-footer__social {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__copy {
	color: #71717a;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-nav__list a {
	color: #a1a1aa;
}

.footer-nav__list a:hover {
	color: #fff;
}

.site-footer .social-link {
	background: rgba(255, 255, 255, 0.08);
	color: #e4e4e7;
}

.site-footer .social-link:hover {
	background: var(--nsem-accent);
	color: #fff;
}

.site-footer__follow {
	color: #fafafa;
}

.site-footer__widgets .widget__title {
	color: #fafafa;
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

.site-footer__widgets a {
	color: #a1a1aa;
}

.site-footer__widgets a:hover {
	color: #fff;
}

.site-footer__widgets .widget li {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ---- "Explore by category" tiles ---- */
.cat-tiles {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

.cat-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 150px;
	padding: 14px;
	overflow: hidden;
	border-radius: var(--nsem-radius-img);
	color: #fff;
	text-decoration: none;
	background-color: var(--tile-c, var(--nsem-accent));
	background-size: cover;
	background-position: center;
	border-bottom: 4px solid var(--tile-c, var(--nsem-accent));
	transition: transform 0.25s ease;
}

.cat-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(5, 4, 4, 0.88), rgba(5, 4, 4, 0.28) 55%, rgba(5, 4, 4, 0.1));
	transition: opacity 0.25s;
}

.cat-tile > * {
	position: relative;
	z-index: 1;
}

.cat-tile:hover {
	transform: translateY(-4px);
}

.cat-tile:hover::before {
	opacity: 0.75;
}

.cat-tile__name {
	font-family: var(--nsem-font-headline);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.15;
}

.cat-tile__count {
	margin-top: 4px;
	font-family: var(--nsem-font-display);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
	.cat-tiles {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.cat-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.cat-tile {
		min-height: 120px;
	}
}

/* ---- WhatsApp join band ---- */
.join-band {
	background: #0a0a0b;
	border-top: 3px solid var(--nsem-accent);
}

[data-theme="dark"] .join-band {
	background: #000;
}

.join-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nsem-space-lg);
	flex-wrap: wrap;
	padding-block: 3rem;
}

.join-band__title {
	margin: 0 0 0.4rem;
	color: #fafafa;
	font-size: clamp(1.5rem, 1.2rem + 2vw, 2.3rem);
	letter-spacing: -0.02em;
	line-height: 1.05;
}

.join-band__sub {
	margin: 0;
	color: #a1a1aa;
	max-width: 48ch;
}

.join-band__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.8rem;
	background: #0f7a3f;
	color: #fff;
	text-decoration: none;
	font-family: var(--nsem-font-display);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: background 0.2s;
}

.join-band__btn:hover {
	background: #0c6634;
	color: #fff;
}

.join-band__icon {
	display: inline-flex;
}
