/*
Theme Name: ConsumersNG
Theme URI: https://consumersng.com
Author: ConsumersNG
Description: Magazine / news theme for ConsumersNG. Full-width featured slider, colour-coded category boxes, "load more" latest articles, popular / most-commented / video / social widgets, sticky menu and share buttons. Styled in the ConsumersNG brand greens.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: consumersng
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   Tokens (brand colours sampled from the ConsumersNG logo)
   ========================================================================== */
:root {
	--brand: #3a8423;
	--brand-dark: #2d6b1e;
	--brand-deep: #165811;
	--lime: #8dc63f;

	--ink: #333333;
	--text: #4a4a4a;
	--muted: #999999;
	--line: #ebebeb;
	--bg: #f0f0f0;
	--panel: #f7f7f7;
	--surface: #ffffff;

	--footer: #1c2a1a;
	--footer-panel: #152013;

	--font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

	--gap: 30px;
	--container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.3;
	color: var(--ink);
	margin: 0 0 .5em;
}
h1 a, h2 a, h3 a, h4 a { color: inherit; }
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover { color: var(--brand); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--surface);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
}

.cn-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.btn,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 26px;
	border: 0;
	border-radius: 2px;
	background: var(--brand);
	color: #fff;
	font: 500 14px/1.2 var(--font-head);
	cursor: pointer;
	transition: background .15s;
}
.btn:hover,
input[type="submit"]:hover { background: var(--brand-deep); color: #fff; }

.dot { margin: 0 6px; opacity: .7; }

/* ==========================================================================
   Header
   ========================================================================== */
.top-bar {
	background: var(--brand);
	border-top: 4px solid var(--brand-deep);
	color: #fff;
	font-size: 13px;
}
.top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	gap: 16px;
}
.top-bar__date { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.top-bar__sep { margin: 0 4px; opacity: .5; }
.top-menu { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.top-menu a { color: #fff; opacity: .92; }
.top-menu a:hover { color: #fff; opacity: 1; text-decoration: underline; }

.social-links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.social-links a {
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	color: #fff;
	transition: background .15s;
}
.social-links a:hover { background: rgba(0, 0, 0, .15); color: #fff; }

.branding { background: var(--surface); }
.branding__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 18px;
	padding-bottom: 18px;
}
.site-logo { flex-shrink: 0; }
.site-logo .custom-logo-link { display: block; }
.site-logo .custom-logo { width: auto; height: 120px; max-height: 120px; }
.header-ad { max-width: 728px; overflow: hidden; }
.header-ad img { margin-left: auto; }

/* Main navigation: light bar, items divided by thin lines */
.main-nav {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	z-index: 50;
}
/* Fixed bar that slides in once the header has scrolled away */
.main-nav.is-fixed {
	position: fixed;
	top: 0; left: 0; right: 0;
	border-top: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
	animation: cn-slide-down .25s ease-out;
}
.admin-bar .main-nav.is-fixed { top: 32px; }
@media (max-width: 782px) { .admin-bar .main-nav.is-fixed { top: 46px; } }
@media (max-width: 600px) { .admin-bar .main-nav.is-fixed { top: 0; } }
@keyframes cn-slide-down { from { transform: translateY(-100%); } to { transform: none; } }
.nav-placeholder { display: none; }
.nav-placeholder.is-active { display: block; }

.main-nav__logo { display: none; align-items: center; padding-right: 14px; }
.main-nav__logo img { width: auto; height: 40px; }
.main-nav.is-fixed .main-nav__logo { display: flex; }

.main-nav__inner { position: relative; display: flex; align-items: stretch; min-height: 50px; }

.primary-menu,
.primary-menu ul { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; flex: 0 1 auto; flex-wrap: nowrap; min-width: 0; border-left: 1px solid var(--line); }
.primary-menu > li { position: relative; border-right: 1px solid var(--line); }
.primary-menu > li > a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 13px 13px;
	color: var(--ink);
	font: 500 15px/1.2 var(--font-head);
	white-space: nowrap;
}
.primary-menu > li:hover > a,
.primary-menu > li:focus-within > a,
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-ancestor > a,
.primary-menu > .current-post-ancestor > a { color: var(--brand); }
.primary-menu .menu-item-has-children > a::after {
	content: "";
	width: 5px; height: 5px;
	margin: -3px 0 0 7px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%; left: -1px;
	min-width: 220px;
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 2px solid var(--brand);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s;
	z-index: 60;
}
.primary-menu .sub-menu .sub-menu { top: -2px; left: 100%; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.primary-menu .sub-menu li { border-bottom: 1px solid var(--line); }
.primary-menu .sub-menu li:last-child { border-bottom: 0; }
.primary-menu .sub-menu a {
	display: block;
	padding: 10px 16px;
	color: var(--ink);
	font: 400 14px/1.3 var(--font-head);
}
.primary-menu .sub-menu a:hover { color: var(--brand); background: var(--panel); }

.nav-toggle,
.search-toggle {
	display: grid;
	place-items: center;
	width: 50px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.search-toggle { margin-left: auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--brand); }
.nav-toggle { display: none; border-right: 1px solid var(--line); }

.header-search {
	position: absolute;
	top: 100%; right: 16px;
	width: 340px;
	max-width: calc(100vw - 32px);
	padding: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 2px solid var(--brand);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* Mega menu: latest posts (+ sub-categories) under a category item */
.primary-menu > li.has-mega { position: static; }
.primary-menu > li.has-mega > a::after {
	content: "";
	width: 5px; height: 5px;
	margin: -3px 0 0 7px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}
.primary-menu > li.has-mega > .sub-menu { display: none; }
.mega-menu {
	position: absolute;
	top: 100%; left: 16px; right: 16px;
	z-index: 60;
	padding: 20px 15px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 0;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s, visibility .15s;
}
.primary-menu > li.has-mega:hover > .mega-menu,
.primary-menu > li.has-mega:focus-within > .mega-menu { opacity: 1; visibility: visible; }
.mega-menu__inner { display: flex; gap: 15px; }
.mega-menu__subcats {
	flex: 0 0 190px;
	margin: 0;
	padding: 0 15px 0 0;
	list-style: none;
	border-right: 1px solid var(--line);
}
.mega-menu__subcats a {
	display: block;
	padding: 8px 10px;
	color: var(--ink);
	font: 500 14px/1.3 var(--font-head);
	border-bottom: 1px solid var(--line);
}
.mega-menu__subcats li:last-child a { border-bottom: 0; }
.mega-menu__subcats a:hover { color: var(--brand); background: var(--panel); }
.mega-menu__posts { display: flex; flex: 1; gap: 15px; min-width: 0; }
.mega-post { flex: 1 1 0; min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.mega-post .entry-thumb { aspect-ratio: 211 / 110; }
.mega-post .format-icon { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-width: 2px; }
.mega-post .format-icon svg { width: 16px; height: 16px; }
.mega-post__title { margin: 0; padding: 12px 10px; text-align: center; font: 500 14px/1.45 var(--font-head); }
.mega-post__title a { color: var(--ink); }
.mega-post__title a:hover { color: var(--brand); }

/* Search form */
.search-form { display: flex; }
.search-field {
	flex: 1;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-right: 0;
	background: #fff;
}
.search-field:focus { outline: none; border-color: var(--brand); }
.search-submit {
	display: grid;
	place-items: center;
	width: 44px;
	border: 0;
	background: var(--brand);
	color: #fff;
	cursor: pointer;
}
.search-submit:hover { background: var(--brand-deep); }

/* ==========================================================================
   Full-width featured slider
   ========================================================================== */
.hero-slider { position: relative; background: #111; }
.hero-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.hero-slider__track::-webkit-scrollbar { display: none; }

.slide {
	position: relative;
	flex: 0 0 33.3334%;
	height: 460px;
	overflow: hidden;
	scroll-snap-align: start;
	background: var(--brand-deep);
	border-right: 1px solid rgba(255, 255, 255, .12);
}
.slide__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
/* Dark overlay that deepens on hover */
.slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: .5;
	transition: opacity .2s ease-in-out;
	pointer-events: none;
}
.slide:hover::after,
.slide:focus-within::after { opacity: .8; }
.slide__link { position: absolute; inset: 0; z-index: 1; }
.slide__info {
	position: absolute;
	left: 0; right: 0; top: 50%;
	z-index: 2;
	padding: 0 40px;
	transform: translateY(-30%);
	text-align: center;
	color: #fff;
	pointer-events: none;
}
.slide__info a { pointer-events: auto; }
.slide__title {
	margin: 12px 0 6px;
	font-size: 30px;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.slide__title a { color: #fff; }
.slide__title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.slide .entry-meta { justify-content: center; color: rgba(255, 255, 255, .9); font-size: 14px; }

.hero-slider__nav {
	position: absolute;
	top: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 50px;
	height: 100%;
	padding: 0;
	border: 0;
	background: #fff;
	color: #222;
	cursor: pointer;
	opacity: 0;
	transition: opacity .25s linear;
}
.hero-slider:hover .hero-slider__nav,
.hero-slider__nav:focus-visible { opacity: .4; }
.hero-slider .hero-slider__nav:hover { opacity: .7; }
.hero-slider__nav svg { width: 30px; height: 30px; }
.hero-slider__nav svg path { stroke-width: 1.5; }
.hero-slider__nav--prev { left: 0; }
.hero-slider__nav--prev svg { transform: rotate(90deg); }
.hero-slider__nav--next { right: 0; }
.hero-slider__nav--next svg { transform: rotate(-90deg); }
@media (hover: none) {
	.hero-slider__nav { opacity: .4; width: 34px; }
}

/* Category badge (slider, single post) */
.cat-badges { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.cat-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 3px;
	background: var(--brand);
	color: #fff;
	font: 400 13px/1.5 var(--font-body);
}
.cat-badge:hover { filter: brightness(1.08); }

/* Category as coloured text (cards, widgets) */
.meta-category { margin-bottom: 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.cat-text { color: var(--brand); }
.cat-text:hover { text-decoration: underline; }

/* Meta */
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	color: var(--muted);
	font-size: 13px;
}
.entry-meta a { color: inherit; }
.entry-meta a:hover { color: var(--brand); }

/* Thumbnails */
.entry-thumb { position: relative; display: block; overflow: hidden; background: #ddd; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; }
.entry-thumb:hover img { opacity: .9; }
.entry-thumb__placeholder {
	display: block;
	width: 100%; height: 100%;
	min-height: 100%;
	background: #2a6a1c url("assets/images/logo.jpg") center / contain no-repeat;
}
.format-icon {
	position: absolute;
	left: 50%; top: 50%;
	display: grid;
	place-items: center;
	width: 64px; height: 64px;
	margin: -32px 0 0 -32px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: rgba(0, 0, 0, .3);
	color: #fff;
	transition: background .2s;
}
.entry-thumb:hover .format-icon { background: var(--brand); }

/* ==========================================================================
   Layout
   ========================================================================== */
.site-content { padding: var(--gap) 0 calc(var(--gap) * 1.5); }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 315px;
	gap: var(--gap);
	align-items: start;
}
.layout__main { min-width: 0; display: grid; gap: var(--gap); }

/* Boxes: white heading with a coloured top rule, light panel inside */
.box {
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.box-head {
	padding: 14px 20px;
	border-top: 2px solid var(--brand);
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.box-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ink);
}
.box-title a { color: inherit; }
.box-label {
	display: block;
	margin-bottom: 2px;
	color: var(--muted);
	font-size: 12px;
}
.archive-box .box-title { font-size: 20px; text-transform: none; letter-spacing: 0; }
.box-desc { max-width: 560px; margin: 8px auto 0; font-size: 14px; }
.box-desc p { margin: 0; }
.box__inner { padding: 15px; background: var(--panel); }

.cat-boxes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap) 15px;
}

/* Cards */
.card { background: var(--surface); }
.card__title { margin: 0; color: var(--ink); }
.card__excerpt { margin: 10px 0 0; font-size: 13px; line-height: 1.6; }

.card--lead .entry-thumb { aspect-ratio: 375 / 195; }
.card--lead .card__body { padding: 15px 18px 18px; text-align: center; }
.card--lead .card__title { font-size: 17px; line-height: 1.35; }
.card--lead .entry-meta { justify-content: center; margin-top: 6px; }

.card--small {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	margin-top: 15px;
}
.card--small .entry-thumb { height: 76px; }
.card--small .card__body { padding: 8px 12px; }
.card--small .card__title { font-size: 13px; line-height: 1.4; }
.card--small .format-icon { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-width: 2px; }
.card--small .format-icon svg { width: 12px; height: 12px; }

.card-list { display: grid; gap: 15px; }
.card--list {
	display: grid;
	grid-template-columns: 48% minmax(0, 1fr);
}
.card--list > * { min-width: 0; }
/* Image fills its column at whatever height the text needs, never wider */
.card--list .entry-thumb { width: 100%; height: 100%; min-height: 170px; }
.card--list .entry-thumb img,
.card--list .entry-thumb__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.card--list .card__body { padding: 14px 18px; }
.card--list .card__title { font-size: 20px; line-height: 1.3; }
.card--list .entry-meta { margin-top: 8px; }
.card--list.is-new { animation: cn-fade .4s ease both; }
@keyframes cn-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
}
.card--grid .entry-thumb { aspect-ratio: 16 / 10; }
.card--grid .card__body { padding: 12px 14px 14px; text-align: center; }
.card--grid .card__title { font-size: 15px; }
.card--grid .entry-meta { justify-content: center; margin-top: 4px; }
.card--grid .format-icon { width: 40px; height: 40px; margin: -20px 0 0 -20px; }

.load-more-wrap { margin-top: 20px; text-align: center; }
.load-more.is-loading { opacity: .7; pointer-events: none; }

/* Pagination */
.pagination { margin-top: 20px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.page-numbers {
	display: grid;
	place-items: center;
	min-width: 38px; height: 38px;
	padding: 0 12px;
	background: var(--surface);
	color: var(--ink);
	font: 500 14px/1 var(--font-head);
}
.page-numbers.current, a.page-numbers:hover { background: var(--brand); color: #fff; }

/* ==========================================================================
   Single article
   ========================================================================== */
.single-article { background: var(--surface); padding: 30px 40px 36px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.single-article > .entry-header { text-align: center; }
.single-article .entry-title { margin: 14px 0 10px; font-size: 32px; line-height: 1.25; }
.entry-standfirst { max-width: 620px; margin: 0 auto 12px; font-size: 17px; line-height: 1.55; }
.entry-byline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.entry-byline img { border-radius: 50%; }

.entry-featured { margin: 24px -40px 0; }
.entry-featured img { width: 100%; }
.entry-featured figcaption, .wp-caption-text, figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.share-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 22px 0;
}
.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 2px;
	color: #fff;
	font: 500 13px/1 var(--font-head);
}
.share-btn:hover { color: #fff; filter: brightness(1.1); }
.share-facebook { background: #3b5998; }
.share-x { background: #111; }
.share-whatsapp { background: #25d366; }
.share-linkedin { background: #0a66c2; }
.share-telegram { background: #229ed9; }

.entry-content { font-size: 16px; line-height: 1.75; color: var(--text); }
.entry-content > * { margin-top: 0; margin-bottom: 1.3em; }
.entry-content h2 { margin-top: 1.5em; font-size: 24px; }
.entry-content h3 { margin-top: 1.4em; font-size: 20px; }
.entry-content blockquote {
	margin-left: 0; margin-right: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--brand);
	font: italic 500 19px/1.55 var(--font-head);
	color: var(--ink);
}
.entry-content blockquote p { margin: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--panel); }
.entry-content iframe { width: 100%; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--panel); font-size: 14px; }

/* ConsumersNG's view: the opinion box at the end of research briefs */
.entry-content .cn-view {
	margin: 2em 0 1.5em;
	padding: 20px 24px 6px;
	background: #f0f6ec;
	border-left: 4px solid var(--brand);
}
.entry-content .cn-view > h2 { margin-top: 0; font-size: 21px; color: var(--brand-deep); }
.entry-content .cn-view .cn-view__disclaimer {
	padding-top: 12px;
	border-top: 1px solid #d6e5cd;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

/* ConsumersNG explainer infographic inside briefs */
.entry-content .cn-infographic { margin: 2em 0; }
.entry-content .cn-infographic img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.entry-content .cn-infographic figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { clear: both; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { /* required by WordPress */ }

.page-links { clear: both; display: flex; gap: 6px; margin-top: 20px; }

.entry-tags { clear: both; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.entry-tags span { margin-right: 4px; color: var(--muted); font-size: 13px; line-height: 28px; }
.entry-tags a, .tagcloud a {
	display: inline-block;
	padding: 4px 10px;
	background: var(--panel);
	color: var(--text);
	font-size: 12px !important;
}
.entry-tags a:hover, .tagcloud a:hover { background: var(--brand); color: #fff; }

.author-box {
	display: flex;
	gap: 18px;
	margin-top: 26px;
	padding: 22px;
	background: var(--panel);
}
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box__label { color: var(--muted); font-size: 12px; }
.author-box__name { margin: 2px 0 6px; font-size: 17px; }
.author-box p { margin: 0; font-size: 14px; }

.post-navigation { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-next:only-child { grid-column: 2; }
.post-navigation a { display: block; color: var(--ink); }
.nav-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.nav-title { font: 600 15px/1.35 var(--font-head); }
.post-navigation a:hover .nav-title { color: var(--brand); }

/* Comments */
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: 40px; list-style: none; }
.comment-body { position: relative; margin-bottom: 15px; padding: 16px 16px 16px 76px; background: var(--surface); }
.comment-author .avatar { position: absolute; left: 16px; top: 18px; border-radius: 50%; }
.comment-author .fn { font-family: var(--font-head); font-style: normal; font-weight: 600; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: var(--muted); }
.comment-content { font-size: 14px; }
.reply a { font-size: 13px; }
.comment-respond { padding: 20px; background: var(--surface); }
.comment-reply-title { margin-bottom: 10px; font-size: 18px; text-align: center; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--line);
	background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brand); }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* ==========================================================================
   Sidebar & widgets
   ========================================================================== */
.sidebar { display: grid; gap: var(--gap); }
.sidebar__sticky { position: sticky; top: 70px; display: grid; gap: var(--gap); }

.sidebar .widget,
.no-results { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.widget-title,
.widget_block h2,
.widget_block .wp-block-heading {
	margin: 0;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ink);
}
.widget > :not(.widget-title):not(ul):not(.wpost-list):not(.join-grid):not(.join-text):not(.video-embed):not(.video-caption) { margin: 15px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget > ul,
.widget_nav_menu .menu,
.widget_block ul { padding: 8px 20px; }
.widget > ul > li,
.widget_nav_menu li,
.widget_block li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget select { width: 100%; padding: 8px; border: 1px solid var(--line); }

/* Categories: coloured left edge + coloured count square */
.widget_categories > ul { padding: 0; }
.widget_categories li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	padding: 0 !important;
	border-left: 3px solid var(--brand);
	border-bottom: 1px solid var(--line);
	background: var(--panel);
}
.widget_categories li a {
	flex: 1;
	padding: 11px 18px;
	color: var(--text);
	font-size: 14px;
}
.widget_categories li a:hover { color: var(--brand); background: #fff; }
.widget_categories .count {
	display: grid;
	place-items: center;
	width: 44px;
	background: var(--brand);
	color: #fff;
	font-size: 13px;
}
.widget_categories .children { width: 100%; }
.widget_categories .children li { border-left: 0; padding-left: 14px !important; }

/* Posts widget */
.wpost-list { display: grid; gap: 12px; padding: 15px; background: var(--panel); }
.wpost {
	display: grid;
	grid-template-columns: 90px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 0;
	border: 0 !important;
	background: var(--surface);
}
.wpost .entry-thumb { height: 66px; }
.wpost .format-icon { display: none; }
.wpost__body { min-width: 0; padding: 6px 10px 6px 0; }
.wpost__title { margin: 0; font-size: 13px; line-height: 1.4; }
.wpost .entry-meta { margin-top: 3px; font-size: 12px; }

.wpost--big { position: relative; display: block; }
.wpost--big .entry-thumb { height: auto; aspect-ratio: 16 / 10; }
.wpost--big .entry-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .8));
}
.wpost--big .wpost__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; text-align: center; pointer-events: none; }
.wpost--big .wpost__body a { pointer-events: auto; }
.wpost--big .wpost__title { margin-top: 8px; font-size: 16px; }
.wpost--big .wpost__title a, .wpost--big .entry-meta { justify-content: center; color: #fff; }

.wpost-list--numbered .wpost { grid-template-columns: 34px minmax(0, 1fr); padding: 8px; }
.wpost__num {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	background: var(--brand);
	color: #fff;
	font: 600 15px/1 var(--font-head);
}

/* Join us */
.join-text { margin: 15px 15px 0; font-size: 14px; text-align: center; }
.join-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 15px; }
.join-btn {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	background: #333;
	color: #fff;
}
.join-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.join-btn:hover { color: #fff; filter: brightness(1.15); }
.join-btn.social-facebook { background: #3b5998; }
.join-btn.social-x { background: #111; }
.join-btn.social-instagram { background: #c13584; }
.join-btn.social-youtube { background: #e62117; }
.join-btn.social-tiktok { background: #010101; }
.join-btn.social-linkedin { background: #0a66c2; }
.join-btn.social-whatsapp { background: #25d366; }
.join-btn.social-telegram { background: #229ed9; }

/* Video */
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 15px; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-caption { margin: 0 15px 15px; font: 500 14px/1.4 var(--font-head); text-align: center; }

.widget_media_image img, .widget_custom_html img { margin: 0 auto; }

/* ==========================================================================
   Ads
   ========================================================================== */
.ad-unit { display: block; max-width: 100%; margin: 0 auto; overflow: hidden; text-align: center; }
.ad-unit img, .ad-unit iframe, .ad-unit ins { display: block; max-width: 100%; margin: 0 auto; }
.ad-unit__label {
	display: block;
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ad-unit__widget + .ad-unit__widget { margin-top: 10px; }
.ad-row { margin-bottom: var(--gap); }
.ad-unit--inline { padding: 12px; background: var(--surface); }
.ad-unit--ad-in-article,
.ad-unit--ad-after-post { clear: both; margin: 28px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.header-ad .ad-unit__label { text-align: right; }

/* Empty-slot placeholder (logged-in admins only) */
.ad-unit--placeholder a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 90px;
	padding: 12px;
	border: 2px dashed #c9d6c4;
	background: repeating-linear-gradient(45deg, #fafcf9, #fafcf9 10px, #f2f6f0 10px, #f2f6f0 20px);
	color: var(--muted);
	font-size: 12px;
}
.ad-unit--placeholder strong { color: var(--brand); font: 600 13px/1.3 var(--font-head); }
.ad-unit--placeholder em { font-size: 11px; }
.header-ad .ad-unit--placeholder a { width: 728px; max-width: 100%; }
.ad-unit--ad-in-article.ad-unit--placeholder a { min-height: 250px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-ad { margin-bottom: var(--gap); }

.site-footer { background: #393d45; color: #b8bcc4; font-size: 14px; }
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	padding-top: 40px;
	padding-bottom: 40px;
}
.footer-col { display: grid; gap: 30px; align-content: start; }
.site-footer .widget { background: #2f3238; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.site-footer .widget-title {
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 17px;
	letter-spacing: .02em;
}
.site-footer .wpost-list { gap: 18px; padding: 20px; background: none; }
.site-footer .wpost { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; background: none; }
.site-footer .wpost .entry-thumb { height: 68px; }
.site-footer .wpost__body { padding: 4px 0 0; }
.site-footer .wpost__title { font-size: 14px; line-height: 1.4; }
.site-footer .wpost__title a { color: #fff; }
.site-footer .wpost__title a:hover { color: var(--lime); }
.site-footer .meta-category { display: none; }
.site-footer .entry-meta { margin-top: 4px; color: #8e939c; font-size: 13px; }
.site-footer a { color: #dfe2e6; }
.site-footer a:hover { color: var(--lime); }
.site-footer .widget > ul > li, .site-footer .widget_block li { border-color: rgba(255, 255, 255, .06); }
.site-footer .tagcloud a { background: rgba(255, 255, 255, .06); color: #dfe2e6; }
.site-footer .tagcloud a:hover { background: var(--brand); color: #fff; }
.site-footer .widget_categories li { background: rgba(255, 255, 255, .03); border-bottom-color: rgba(255, 255, 255, .06); }
.site-footer .widget_categories li a { color: #dfe2e6; }
.site-footer .widget_categories li a:hover { background: rgba(255, 255, 255, .05); }

/* Video of the Day + Join Us in the footer */
.site-footer .video-embed { margin: 20px; }
.site-footer .video-caption { margin: -8px 20px 20px; color: #dfe2e6; }
.video-embed--empty {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px;
	border: 2px dashed rgba(255, 255, 255, .2);
	background: rgba(0, 0, 0, .2) !important;
	color: #b8bcc4 !important;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}
.site-footer .join-grid { gap: 8px; padding: 24px 20px; }
.site-footer .join-btn { width: 62px; height: 62px; }
.join-btn.social-rss { background: #f26522; }
.join-btn.social-pinterest { background: #bd081c; }
.join-btn.social-instagram { background: #111; }
.join-hint { margin: 0 20px 20px; font-size: 12px; line-height: 1.5; text-align: center; }
.join-hint a { color: #8e939c !important; }

.footer-bottom { background: #2a2d33; color: #b8bcc4; font-size: 14px; }
.footer-menu a { color: var(--lime); }
.footer-menu a:hover { color: #fff; }
.footer-bottom__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.copyright { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }

.back-to-top {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	background: var(--brand);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-deep); color: #fff; }

/* 404 / no results */
.error-404 { max-width: 640px; margin: 20px auto; padding: 40px; background: var(--surface); text-align: center; }
.error-404__code { margin: 0; color: var(--brand); font: 700 96px/1 var(--font-head); }
.error-404 .search-form { margin: 24px 0; }
.no-results { padding: 30px; text-align: center; }
.no-results .search-form { max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.slide { height: 400px; }
	.slide__title { font-size: 24px; }
	.layout { grid-template-columns: minmax(0, 1fr) 290px; }
	.primary-menu > li > a { padding: 13px 11px; font-size: 14px; }
}

@media (max-width: 900px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.sidebar__sticky { position: static; }

	.branding__inner { flex-direction: column; justify-content: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
	.header-ad { width: 100%; }
	.header-ad .ad-unit__label { text-align: center; }
	.site-logo .custom-logo { height: 90px; }

	.nav-toggle { display: grid; }
	.primary-menu {
		position: absolute;
		top: 100%; left: 0; right: 0;
		display: none;
		flex-direction: column;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
		border: 1px solid var(--line);
		background: var(--surface);
		box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
	}
	.primary-menu.is-open { display: flex; }
	.primary-menu > li { border-right: 0; border-bottom: 1px solid var(--line); }
	.primary-menu > li > a { padding: 13px 20px; }
	.primary-menu .sub-menu {
		position: static;
		min-width: 0;
		border: 0;
		border-top: 1px solid var(--line);
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		background: var(--panel);
	}
	.primary-menu .sub-menu a { padding-left: 34px; }
	.primary-menu .menu-item-has-children > a::after,
	.primary-menu > li.has-mega > a::after { display: none; }
	.mega-menu { display: none; }
	.primary-menu > li.has-mega > .sub-menu { display: block; }
	.main-nav.is-fixed .main-nav__logo { padding-left: 10px; }

	.slide { flex-basis: 50%; height: 360px; }

	.footer-widgets { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 680px) {
	:root { --gap: 20px; }

	.top-menu { display: none; }
	.top-bar__inner { justify-content: center; flex-wrap: wrap; gap: 0 12px; padding-top: 4px; padding-bottom: 4px; }
	.top-bar__date { font-size: 12px; }
	.social-links { margin: 0; }
	.site-logo .custom-logo { height: 76px; }

	.slide { flex-basis: 100%; height: 300px; }
	.slide__info { padding: 0 44px; }
	.slide__title { font-size: 21px; }

	.cat-boxes, .sidebar, .card-grid { grid-template-columns: minmax(0, 1fr); }
	.box__inner { padding: 12px; }

	.card--list { grid-template-columns: minmax(0, 1fr); }
	.card--list .entry-thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
	.card--list .card__title { font-size: 18px; }

	.single-article { padding: 20px 16px 26px; }
	.entry-featured { margin-left: -16px; margin-right: -16px; }
	.single-article .entry-title { font-size: 24px; }
	.entry-standfirst { font-size: 15px; }
	.share-btn span { display: none; }
	.share-btn { padding: 9px 12px; }
	.author-box { flex-direction: column; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; grid-column: auto; }

	.footer-widgets { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
	.footer-bottom__inner { flex-direction: column; text-align: center; }
	.alignleft, .alignright { float: none; margin: 0 0 1em; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* "Research, not advice" note under What you can do */
.entry-content .cn-advice-note{font-size:.88em;color:#5b6657;border-left:3px solid #c9dcbf;background:#f6faf3;padding:10px 14px;margin:1em 0 1.6em}
