/* ============================================================
   The Reform Files — theme.css
   All visual styles. Loaded after style.css (which holds the
   reset, CSS variables, and WordPress theme declaration).
   Source of truth: reformcheck-v4.html
   ============================================================ */


/* ── LAYOUT UTILITIES ─────────────────────────────────────── */

main.page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 2rem;
}

.section-label {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	color: var(--blue);
	border-bottom: 2px solid var(--navy);
	padding-bottom: 0.4rem;
	margin-bottom: 1.8rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.section-label a {
	font-family: 'Poppins', sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mid);
	transition: color 0.15s;
}

.section-label a:hover { color: var(--navy); }


/* ── TOP BAR ──────────────────────────────────────────────── */

.top-bar {
	background: var(--navy);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.35rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.top-nav ul {
	display: flex;
	list-style: none;
	flex-wrap: wrap;
}

.top-nav ul li a {
	display: block;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.45);
	padding: 0.3rem 0.8rem;
	transition: color 0.15s;
}

.top-nav ul li a:hover { color: rgba(255,255,255,0.85); }

.top-nav ul li.current-menu-item > a { color: rgba(255,255,255,0.9); }

.top-social {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.top-social a {
	display: flex;
	align-items: center;
	color: rgba(255,255,255,0.35);
	transition: color 0.15s;
}

.top-social a:hover { color: var(--cyan); }

.top-social svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}


/* ── HEADER ───────────────────────────────────────────────── */

header {
}

.header-masthead {
	padding: 1.5rem 2rem 1.2rem;
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

.masthead-text {
	text-align: left;
}

/* Custom logo image (when set via Appearance → Customize → Site Identity) */
.custom-logo-link {
	display: inline-block;
	margin-bottom: 0.5rem;
}

.custom-logo {
	max-height: 64px;
	width: auto;
	display: block;
	margin: 0 auto;
}

.masthead-wordmark {
	display: block;
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(2.5rem, 6vw, 5rem);
	letter-spacing: 0.06em;
	line-height: 1;
	color: var(--navy);
	margin-bottom: 0.4rem;
}

.masthead-wordmark span { color: var(--cyan); }

.masthead-rule {
	margin-bottom: 0.6rem;
}

.masthead-strapline {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mid);
}

/* Navigation bar — file-tab style */
.header-nav {
	padding: 0 2rem;
	background: var(--white);
	border-bottom: 3px solid var(--navy);
}

.header-nav ul {
	display: flex;
	list-style: none;
	justify-content: center;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 3px;
	margin: 0;
}

.header-nav ul li a {
	display: block;
	padding: 0.5rem 1.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--navy);
	background: var(--white);
	border: 1.5px solid var(--navy);
	border-bottom: none;
	border-radius: 5px 5px 0 0;
	transform: translateY(0);
	transition: transform 0.18s ease, background 0.18s, border-color 0.18s, color 0.18s;
	position: relative;
}

.header-nav ul li a:hover {
	transform: translateY(-5px);
	background: var(--off);
	border-color: var(--navy);
}

/* WordPress current-menu-item and current-menu-ancestor active (selected) states */
.header-nav ul li.current-menu-item > a,
.header-nav ul li.current-menu-ancestor > a,
.header-nav ul li a.active {
	transform: translateY(-6px);
	background: var(--navy);
	border-color: var(--navy);
	color: var(--cyan);
}


/* ── ABOUT STRIP ──────────────────────────────────────────── */

.about-strip {
	background: var(--navy);
	padding: 0.75rem 2rem;
	text-align: center;
}

.about-strip p {
	font-size: 0.78rem;
	font-weight: 300;
	color: rgba(255,255,255,0.65);
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.6;
}

.about-strip strong {
	color: var(--white);
	font-weight: 500;
}


/* ── VERDICT TAGS ─────────────────────────────────────────── */

.tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	padding: 2px 9px;
	border-radius: 2px;
}

.tag-false   { background: var(--navy); color: var(--cyan); }
.tag-mislead { background: var(--navy); color: #f5a623; }
.tag-context { background: var(--off);  color: var(--navy); border: 1px solid var(--rule); }


/* ── FEATURED BLOCK ───────────────────────────────────────── */

.featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	background: var(--navy);
	margin-bottom: 2.5rem;
}

.featured-img {
	min-height: 360px;
	background: linear-gradient(160deg, #162436 0%, #0d1c2b 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

/* Diagonal stripe texture shown when there is no post thumbnail */
.featured-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		-55deg,
		transparent,
		transparent 18px,
		rgba(255,255,255,0.012) 18px,
		rgba(255,255,255,0.012) 19px
	);
	pointer-events: none;
}

/* When a real thumbnail is present, the ::after overlay still renders
   but sits on top of the image for subtle texture. */
.featured-img-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	position: absolute;
	inset: 0;
}

.featured-img-icon {
	opacity: 0.06;
	z-index: 1;
	position: relative;
}

.featured-content {
	padding: 2.2rem 2rem 1.8rem;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.featured-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.featured-topic {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.35);
}

.featured-date {
	font-size: 0.62rem;
	color: rgba(255,255,255,0.25);
	margin-left: auto;
}

.featured-headline {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(1.7rem, 2.8vw, 2.4rem);
	letter-spacing: 0.02em;
	line-height: 1.08;
	color: var(--white);
	margin-bottom: 1rem;
	flex: 1;
}

.featured-headline a {
	color: inherit;
}

.featured-headline a:hover {
	color: var(--cyan);
}

.featured-headline em {
	font-style: normal;
	color: var(--cyan);
}

.featured-standfirst {
	font-size: 0.83rem;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255,255,255,0.55);
	margin-bottom: 1.8rem;
}

.featured-standfirst strong {
	color: rgba(255,255,255,0.85);
	font-weight: 500;
}

.featured-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 1rem;
	margin-top: auto;
}

.read-link {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cyan);
	display: flex;
	align-items: center;
	gap: 6px;
	transition: gap 0.15s;
}

.read-link:hover { gap: 10px; }

.share-btn {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--navy);
	background: var(--white);
	border: 1px solid var(--navy);
	padding: 0.45rem 1rem;
	border-radius: 2px;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
	transition: all 0.15s;
}

.share-btn:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}

.share-btn.copied {
	background: var(--cyan);
	border-color: var(--cyan);
	color: var(--navy);
}


/* ── MOBILE MENU TOGGLE ───────────────────────────────────── */

/* Hidden on desktop — shown as flex item in masthead row on mobile */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-shrink: 0;
}

.menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.22s ease;
}


/* ── ARTICLE GRID ─────────────────────────────────────────── */

.article-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	margin-bottom: 2.5rem;
}

.article-card {
	background: var(--off);
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: background 0.15s;
	/* Reset anchor styles */
	color: var(--navy);
	overflow: hidden;
}

/* Featured image inside article card */
.ac-image {
	width: calc(100% + 3.2rem);
	margin: -1.6rem -1.6rem 1rem;
	height: 160px;
	overflow: hidden;
	flex-shrink: 0;
}

.ac-img-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.2s;
}

.article-card:hover .ac-img-photo { filter: grayscale(80%); }

.article-card:hover { background: #e8ecf0; }

.ac-meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.9rem;
}

.ac-topic {
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mid);
}

.ac-date {
	font-size: 0.6rem;
	color: var(--mid);
	margin-left: auto;
}

.ac-headline {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.45rem;
	letter-spacing: 0.02em;
	line-height: 1.1;
	color: var(--navy);
	margin-bottom: 0.7rem;
}

.ac-standfirst {
	font-size: 0.8rem;
	font-weight: 300;
	line-height: 1.65;
	color: #4a5568;
	flex: 1;
	margin-bottom: 1.1rem;
}

.ac-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #d4d8df;
	padding-top: 0.8rem;
}

.ac-source {
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mid);
}

.ac-read {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--blue);
	transition: opacity 0.15s;
}

.article-card:hover .ac-read { opacity: 0.7; }


/* ── TOPIC FILTER ─────────────────────────────────────────── */

.topic-filter {
	border-top: 2px solid var(--navy);
	border-bottom: 1px solid var(--rule);
	padding: 0.9rem 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	overflow-x: auto;
}

.topic-filter-label {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	color: var(--navy);
	white-space: nowrap;
	flex-shrink: 0;
	padding-right: 1rem;
	border-right: 1px solid var(--rule);
}

.topic-list {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	flex-wrap: wrap;
}

.topic-pill {
	display: inline-block;
	background: none;
	border: 1px solid var(--rule);
	color: var(--navy);
	font-family: 'Poppins', sans-serif;
	font-size: 0.7rem;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.15s;
	white-space: nowrap;
	text-decoration: none;
}

.topic-pill:hover,
.topic-pill.active {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}


/* ── SINGLE POST ──────────────────────────────────────────── */

/* Hero image — full-width, sits between about strip and navy header */
.single-hero-image {
	width: 100%;
	max-height: 480px;
	overflow: hidden;
	display: block;
}

.single-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
}

.single-header {
	background: var(--navy);
	padding: 3rem 2rem;
}

.single-header-inner,
.single-body-inner,
.share-row-inner {
	max-width: 800px;
	margin: 0 auto;
}

.single-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0.75rem 0 1rem;
}

.single-topic {
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.35);
}

.single-date {
	font-size: 0.62rem;
	color: rgba(255,255,255,0.25);
}

.single-headline {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: 0.02em;
	line-height: 1.06;
	color: var(--white);
	margin-bottom: 1rem;
}

.single-standfirst {
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255,255,255,0.6);
}

.single-standfirst strong {
	color: rgba(255,255,255,0.85);
	font-weight: 500;
}

/* Post body typography */
.single-body {
	padding: 2.5rem 2rem;
}

.single-body-inner {
	font-size: 0.9rem;
	line-height: 1.8;
	color: var(--navy);
}

.single-body-inner p { margin-bottom: 1.2rem; }
.single-body-inner p:last-child { margin-bottom: 0; }

.single-body-inner strong {
	color: var(--navy);
	font-weight: 600;
}

.single-body-inner a {
	color: var(--blue);
	text-decoration: underline;
}

.single-body-inner a:hover { opacity: 0.75; }

.single-body-inner h2,
.single-body-inner h3 {
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 0.04em;
	margin: 1.8rem 0 0.6rem;
	line-height: 1.1;
}

.single-body-inner h2 { font-size: 1.6rem; }
.single-body-inner h3 { font-size: 1.2rem; }

.single-body-inner ul,
.single-body-inner ol {
	margin: 0 0 1.2rem 1.5rem;
}

.single-body-inner li { margin-bottom: 0.35rem; }

.single-body-inner blockquote {
	border-left: 3px solid var(--cyan);
	padding: 0.5rem 1rem;
	margin: 1.2rem 0;
	color: var(--mid);
	font-style: italic;
}

/* Share row */
.share-row {
	padding: 1.5rem 2rem 2rem;
	border-top: 1px solid var(--rule);
}

.share-label {
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mid);
	display: block;
	margin-bottom: 0.75rem;
}

.share-links {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.share-link {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 2px;
	border: 1px solid var(--rule);
	color: var(--navy);
	transition: all 0.15s;
}

.share-link:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}

/* Platform brand colours */
.share-link.share-x  { background: #000; border-color: #000; color: #fff; }
.share-link.share-x:hover  { background: #222; border-color: #222; color: #fff; }

.share-link.share-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-link.share-fb:hover { background: #1464cc; border-color: #1464cc; color: #fff; }

.share-link.share-wa { background: #25D366; border-color: #25D366; color: #fff; }
.share-link.share-wa:hover { background: #1da851; border-color: #1da851; color: #fff; }


/* ── ARCHIVE PAGES ────────────────────────────────────────── */

.archive-header {
	background: var(--navy);
	padding: 2.5rem 2rem;
}

.archive-header-inner {
	max-width: 1100px;
	margin: 0 auto;
}

.archive-title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(2rem, 5vw, 3.5rem);
	letter-spacing: 0.04em;
	line-height: 1.05;
	color: var(--white);
	margin-bottom: 0.5rem;
}

.archive-desc {
	font-size: 0.83rem;
	font-weight: 300;
	color: rgba(255,255,255,0.55);
	max-width: 600px;
	line-height: 1.65;
}

/* Pagination */
.pagination {
	margin-top: 2rem;
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 5px 12px;
	border: 1px solid var(--rule);
	border-radius: 2px;
	color: var(--navy);
	transition: all 0.15s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}

.no-posts {
	font-size: 0.9rem;
	color: var(--mid);
	padding: 2rem 0;
}


/* ── FOOTER ───────────────────────────────────────────────── */

footer {
	background: var(--navy);
	border-top: 3px solid var(--blue);
	padding: 2.5rem 2rem 2rem;
	margin-top: 2rem;
}

.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 3rem;
	margin-bottom: 2rem;
}

.footer-wordmark {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 1.3rem;
	letter-spacing: 0.08em;
	color: var(--white);
	margin-bottom: 0.75rem;
}

.footer-wordmark span { color: var(--cyan); }

.footer-about {
	font-size: 0.76rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(255,255,255,0.38);
}

/* Suppress any <strong> tags in the footer about text — keep it muted */
.footer-about strong {
	font-weight: 400;
	color: rgba(255,255,255,0.38);
}

.footer-col h4 {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	color: rgba(255,255,255,0.45);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	padding-bottom: 0.4rem;
	margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.35rem; }

.footer-col a {
	font-size: 0.76rem;
	font-weight: 300;
	color: rgba(255,255,255,0.38);
	transition: color 0.15s;
}

.footer-col a:hover { color: rgba(255,255,255,0.8); }

/* WordPress auto-wraps wp_nav_menu in a <div class="menu-*"> and <ul>  */
.footer-col .menu { list-style: none; }
.footer-col .menu li { margin-bottom: 0.35rem; }

.footer-base {
	max-width: 1100px;
	margin: 0 auto;
	border-top: 1px solid rgba(255,255,255,0.08);
	padding-top: 1rem;
	display: flex;
	justify-content: space-between;
	font-size: 0.65rem;
	color: rgba(255,255,255,0.2);
}


/* ── PAGE TEMPLATE ────────────────────────────────────────── */

/* Used by page.php for static WordPress pages */
.page-header {
	background: var(--navy);
	padding: 2.5rem 2rem;
}

.page-header-inner {
	max-width: 800px;
	margin: 0 auto;
}

.page-title {
	font-family: 'Bebas Neue', sans-serif;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: 0.02em;
	line-height: 1.06;
	color: var(--white);
}

.page-body {
	padding: 2.5rem 2rem;
}

.page-body-inner {
	max-width: 800px;
	margin: 0 auto;
	font-size: 0.9rem;
	line-height: 1.8;
	color: var(--navy);
}

.page-body-inner p { margin-bottom: 1.2rem; }
.page-body-inner p:last-child { margin-bottom: 0; }

.page-body-inner strong { color: var(--navy); font-weight: 600; }

.page-body-inner a { color: var(--blue); text-decoration: underline; }
.page-body-inner a:hover { opacity: 0.75; }

.page-body-inner h2,
.page-body-inner h3 {
	font-family: 'Bebas Neue', sans-serif;
	letter-spacing: 0.04em;
	margin: 1.8rem 0 0.6rem;
	line-height: 1.1;
}

.page-body-inner h2 { font-size: 1.6rem; }
.page-body-inner h3 { font-size: 1.2rem; }

.page-body-inner ul,
.page-body-inner ol { margin: 0 0 1.2rem 1.5rem; }

.page-body-inner li { margin-bottom: 0.35rem; }

.page-body-inner blockquote {
	border-left: 3px solid var(--cyan);
	padding: 0.5rem 1rem;
	margin: 1.2rem 0;
	color: var(--mid);
	font-style: italic;
}


/* ── GLOBAL IMAGE TREATMENT ───────────────────────────────── */

/* All WordPress post thumbnails render in greyscale — brand requirement */
.wp-post-image {
	filter: grayscale(100%);
}


/* ── RESPONSIVE — 800px BREAKPOINT ───────────────────────── */

@media (max-width: 800px) {

	main.page { padding: 1.5rem 1.25rem; }

	/* Top bar */
	.top-bar-inner { padding: 0.35rem 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
	.top-nav ul    { flex-wrap: wrap; }

	/* Header — spread wordmark and burger side by side */
	.header-masthead {
		padding: 0.9rem 1.25rem;
		justify-content: space-between;
		align-items: center;
	}
	.masthead-text { text-align: left; }
	.masthead-wordmark { font-size: clamp(1.6rem, 7vw, 2.5rem); margin-bottom: 0.2rem; }
	.masthead-strapline { font-size: 0.6rem; letter-spacing: 0.1em; }
	.header-nav { padding: 0 1.25rem; }
	.header-nav ul { justify-content: flex-start; gap: 2px; }

	/* Featured block */
	.featured { grid-template-columns: 1fr; }
	.featured-img { min-height: 180px; }

	/* Article grid */
	.article-grid { grid-template-columns: 1fr; }

	/* Article card image */
	.ac-image { height: 140px; }

	/* Topic filter */
	.topic-filter { padding: 0.9rem 1.25rem; }

	/* Single post */
	.single-hero-image { max-height: 240px; }
	.single-header { padding: 2rem 1.25rem; }
	.single-body   { padding: 1.5rem 1.25rem; }
	.share-row     { padding: 1.25rem 1.25rem 1.5rem; }

	/* Share links — allow wrapping on small screens */
	.share-links { gap: 0.5rem; }

	/* Archive header */
	.archive-header { padding: 1.5rem 1.25rem; }

	/* Footer */
	.footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.footer-base  { flex-direction: column; gap: 0.35rem; }

	/* Page template */
	.page-header { padding: 2rem 1.25rem; }
	.page-body   { padding: 1.5rem 1.25rem; }

	/* Video grid — single column on mobile */
	.video-grid { grid-template-columns: 1fr; }

	/* Video row scroll cards — slightly narrower on small screens */
	.video-row .video-card { flex: 0 0 240px; width: 240px; min-width: 240px; }

	/* ── VIDEO ROW ALIGNMENT — match main.page padding on mobile ── */
	.video-row-header { padding: 0 1.25rem; }
	.video-row { padding-left: 1.25rem; scroll-padding-left: 1.25rem; }
	.page-lower { padding: 0 1.25rem 1.5rem; }

	/* ── MOBILE BURGER MENU ── */

	/* Show burger (flex item inside masthead), hide desktop tab nav */
	.menu-toggle { display: flex; }
	.header-nav { display: none; }

	/* Full-screen overlay nav when open */
	body.nav-open .header-nav {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--white);
		z-index: 9000;
		padding: 5rem 1.5rem 2rem;
		overflow-y: auto;
		border-bottom: none;
	}

	body.nav-open .header-nav ul {
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		gap: 4px;
	}

	body.nav-open .header-nav ul li a {
		padding: 1rem 1.5rem;
		font-size: 0.85rem;
		border-radius: 4px 4px 0 0;
		border-width: 2px;
		border-bottom: none;
		width: 100%;
		display: block;
		transform: none;
	}

	body.nav-open .header-nav ul li a:hover {
		transform: none;
	}

	/* When overlay is open, fix burger above it so it becomes the close (X) button */
	body.nav-open .menu-toggle {
		position: fixed;
		z-index: 9001;
		top: 0.75rem;
		right: 1.25rem;
	}

	/* Burger → X animation */
	body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
	body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	/* ── TOPIC PILLS — single scrollable row ── */
	.topic-filter {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		overflow: visible;
	}

	.topic-filter-label {
		border-right: none;
		padding-right: 0;
	}

	.topic-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		width: 100%;
		padding-right: 2.5rem;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, black 0%, black 80%, transparent 100%);
		mask-image: linear-gradient(to right, black 0%, black 80%, transparent 100%);
		-webkit-overflow-scrolling: touch;
	}

	.topic-list::-webkit-scrollbar { display: none; }
}


/* YouTube direct-link share button on video pages */
.share-yt { background: var(--navy) !important; color: var(--white) !important; }
.share-yt:hover { background: var(--blue) !important; color: var(--white) !important; }

/* ── VIDEO EMBED (responsive 16:9) ───────────────────────────────────────────
   Used inside single-trf_video.php via trf_video_embed().
   WordPress oEmbed returns an <iframe>; this wrapper makes it fluid.        */

.video-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	background: #000;
}
.video-embed iframe,
.video-embed object,
.video-embed embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}


/* ── SINGLE VIDEO HERO ───────────────────────────────────────────────────────
   Full-width black background above the navy article header.                */

.single-video-hero {
	width: 100%;
	background: #000;
}
.single-video-inner {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}


/* ── VIDEO GRID ──────────────────────────────────────────────────────────────
   archive-trf_video.php: 3-column responsive grid.                          */

.video-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

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


/* ── VIDEO CARD ──────────────────────────────────────────────────────────────
   Used in both the grid archive and the category scroll row.                */

.video-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--off);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.15s;
}
.video-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Thumbnail */
.vc-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--navy);
}
.vc-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	display: block;
	transition: filter 0.2s;
}
.video-card:hover .vc-img {
	filter: grayscale(80%);
}
.vc-placeholder {
	width: 100%;
	height: 100%;
	background: var(--navy);
}

/* Play button */
.vc-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background: rgba(0, 177, 218, 0.9);
	border-radius: 50%;
	pointer-events: none;
	transition: background 0.15s, transform 0.15s;
}
.vc-play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 8px 0 8px 15px;
	border-color: transparent transparent transparent #fff;
}
.video-card:hover .vc-play {
	background: var(--cyan);
	transform: translate(-50%, -50%) scale(1.08);
}

/* Card body */
.vc-body {
	padding: 0.75rem 1rem 1rem;
}
.vc-topic {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: var(--blue);
	text-transform: uppercase;
	display: block;
	margin-bottom: 0.25rem;
}
.vc-title {
	font-family: 'Poppins', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--navy);
	line-height: 1.35;
	margin: 0 0 0.4rem;
}
.vc-date {
	font-size: 0.75rem;
	color: var(--mid);
}


/* ── CATEGORY PAGE: VIDEO SCROLL ROW ─────────────────────────────────────────
   Appears above the article grid on category archive pages when there are
   trf_video posts tagged to that category.                                  */

/* Wraps topic filter on homepage, below the full-width video row */
.page-lower {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 2rem 2.5rem;
}

.video-row-section {
	margin-bottom: 1rem;
}

/* Reduce top gap when article grid immediately follows a video row */
.video-row-section + main.page {
	padding-top: 0.75rem;
}
/* The section-label inside .video-row-header should not have a bottom border
   (the header row already uses flex for "Videos / All videos →")            */
.video-row-header .section-label {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.video-row-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1100px;
	margin: 0 auto 0.75rem;
	padding: 0 2rem;
}
.video-row-all {
	font-family: 'Poppins', sans-serif;
	font-size: 0.8rem;
	color: var(--blue);
	text-decoration: none;
}
.video-row-all:hover {
	text-decoration: underline;
}

.video-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	/* left padding aligns first card with page content; right stays open for scroll */
	padding: 0 1rem 0.75rem 2rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--rule) transparent;
	scroll-padding-left: 2rem;
}
.video-row .video-card {
	flex: 0 0 280px;
	width: 280px;
	min-width: 280px;
	scroll-snap-align: start;
}
