/*
Theme Name: Kanyi Daily
Theme URI: https://kanyidaily.com
Author: Kanyi Daily News
Description: The Kanyi Daily News theme for kanyidaily.com. Bright light-mode news layout in black and red with an optional dark mode, homepage category sections with "More stories" buttons that link to category archives, indexed tag pages for people, institutions and states, thumbnails in every Latest News list, related stories inside and under every article, and a complete built-in SEO toolkit (meta tags, canonicals, Open Graph, NewsArticle JSON-LD, Google News sitemap, IndexNow).
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
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: kanyi-daily
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ---------- Design tokens: black and red. Light by default; dark only when the visitor switches ---------- */
:root {
	--paper: #f4f4f5;
	--surface: #ffffff;
	--ink: #111214;
	--ink-soft: #595d64;
	--rule: #dedfe2;
	--brand: #111214;
	--brand-ink: #ffffff;
	--bar: #111214;
	--mark: #f30c22;
	--accent-text: #d00a1e;
	--alert: #d00a1e;
	--tile-0: #e6e6e8;
	--tile-1: #f6dcdf;
	--tile-2: #e4e4e0;
	--tile-3: #dde1e8;
	--head: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 6px;
	--wrap: 1180px;
	--read: 720px;
}
:root[data-theme="dark"] {
	--paper: #0e0f12; --surface: #17191d; --ink: #f0f1f3; --ink-soft: #a0a5ad; --rule: #2a2d33;
	--brand: #ff4d5e; --brand-ink: #1a0609; --bar: #000000; --mark: #f30c22; --accent-text: #ff5a69; --alert: #d00a1e;
	--tile-0: #262a30; --tile-1: #3b2226; --tile-2: #2f2d2a; --tile-3: #262c38;
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.55;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.22; letter-spacing: -0.015em; margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; padding: 12px 18px;
	background: var(--mark); color: #fff; font-weight: 700; z-index: 100; left: 8px; top: 8px;
}
.meta, time.meta { font-size: 13px; color: var(--ink-soft); }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.kicker--label { color: var(--ink-soft); }
.empty { color: var(--ink-soft); padding: 12px 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--bar); color: #fff; font-size: 13px; padding-top: env(safe-area-inset-top, 0px); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar .actions { display: flex; gap: 12px; align-items: center; }
.social-links { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.social-links a { font-weight: 600; }
.pill-btn { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.pill-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Masthead ---------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.logo { display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.brand img { display: block; height: 44px; width: auto; max-width: 100%; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (max-width: 600px) { .brand img { height: 36px; } }
.main-nav { flex: 1 1 auto; min-width: 0; }
.nav-list, .nav-list .sub-menu { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; flex-wrap: wrap; gap: 2px; align-items: stretch; }
.nav-list li { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.nav-list a { display: block; padding: 8px 12px; font-weight: 600; font-size: 15px; border-radius: var(--radius); white-space: nowrap; }
.nav-list a:hover { background: var(--paper); text-decoration: none; }
.nav-list .current-menu-item > a, .nav-list .current-menu-ancestor > a, .nav-list .current-cat > a { box-shadow: inset 0 -3px 0 var(--mark); border-radius: 0; }
.submenu-toggle { background: none; border: 0; padding: 8px 8px 8px 0; margin-left: -8px; cursor: pointer; display: grid; place-items: center; color: inherit; }
.submenu-toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.nav-list li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.nav-list .sub-menu { display: none; }
.search-toggle { background: none; border: 1px solid var(--rule); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; display: grid; place-items: center; flex: none; order: 2; margin-left: auto; }
.search-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-toggle { order: 3; display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: none; border: 1px solid var(--rule); border-radius: 8px; font-weight: 700; cursor: pointer; flex: none; }
.nav-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
@media (min-width: 900px) {
	.main-nav { order: 1; }
	.search-toggle { margin-left: 0; }
	.nav-list .sub-menu { position: absolute; left: 0; top: 100%; z-index: 50; min-width: 230px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); padding: 6px; }
	.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu, .nav-list li.is-open > .sub-menu { display: block; }
	.nav-list .sub-menu li { display: flex; }
	.nav-list .sub-menu a { flex: 1 1 auto; padding: 9px 12px; white-space: normal; }
	.nav-list .sub-menu .sub-menu { left: 100%; top: -7px; }
}
@media (max-width: 899px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { order: 4; flex-basis: 100%; display: none; margin: 0 -16px 0; padding: 0 16px 10px; border-top: 1px solid var(--rule); }
	.main-nav.is-open { display: block; }
	.nav-list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
	.nav-list li { border-bottom: 1px solid var(--rule); }
	.nav-list li > a { flex: 1 1 0; padding: 13px 4px; }
	.submenu-toggle { padding: 13px 14px; margin: 0; }
	.nav-list .sub-menu { flex-basis: 100%; background: var(--paper); border-radius: 6px; margin-bottom: 8px; }
	.nav-list li.is-open > .sub-menu { display: block; }
	.nav-list .sub-menu li:last-child { border-bottom: 0; }
	.nav-list .sub-menu a { padding-left: 16px; }
}
.search-panel { background: var(--surface); border-bottom: 1px solid var(--rule); padding: 12px 0; }
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.search-submit, .comment-form .submit { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: 12px 20px; font-weight: 700; cursor: pointer; }

/* ---------- Breaking bar and ads ---------- */
.breaking { background: var(--surface); border-bottom: 1px solid var(--rule); }
.breaking .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; overflow: hidden; }
.breaking .flag { background: var(--alert); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 4px; flex: none; }
.breaking a { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-wrap { padding-top: 16px; }
.ad-live { margin: 20px 0; display: flex; justify-content: center; overflow: hidden; min-height: 90px; }

/* ---------- Layout ---------- */
.site-main { padding: 24px 0 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; } .no-sidebar .layout { grid-template-columns: minmax(0, 1fr); } }
.section { margin-top: 44px; content-visibility: auto; contain-intrinsic-size: auto 640px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); margin: 0 0 18px; padding-bottom: 8px; }
.section-head h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.section-head h2 a:hover { color: var(--accent-text); text-decoration: none; }
.section-head a.more { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.section-head--soft { border-color: var(--rule); }
.section-head--light { border-color: rgba(255, 255, 255, 0.35); }
.section-head--light h2, .section-head--light a { color: #fff; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--tile-0); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 8px 12px; font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink); background: var(--tile-0); }
.tile-ph span { opacity: 0.22; }
.tile-ph.tone-1 { background: var(--tile-1); } .tile-ph.tone-2 { background: var(--tile-2); } .tile-ph.tone-3 { background: var(--tile-3); }
.card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card-title a:hover { color: var(--accent-text); text-decoration: none; }
.card-excerpt { margin: 2px 0 4px; color: var(--ink-soft); font-size: 15px; }
.card--lead .card-title { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }
.card--lead .card-body { gap: 8px; }
.card--lead .card-excerpt { font-size: 17px; max-width: 62ch; }
.card--row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: start; }
.card--row .card-media { order: 2; aspect-ratio: 4 / 3; }
.card--row .card-title { font-size: 16px; font-weight: 600; }
.card--row .tile-ph { font-size: 26px; padding: 4px 8px; }
.card--video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.card--video .play svg { width: 46px; height: 46px; padding: 14px 12px 14px 16px; border-radius: 50%; background: var(--mark); fill: #fff; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 20px; }
.card-grid--row { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid--archive .card--lead { grid-column: 1 / -1; }
.card-grid--archive { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- Homepage ---------- */
.top-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .top-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; } }
.sub-leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
@media (max-width: 560px) { .sub-leads { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.widget-title { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; padding-left: 10px; border-left: 4px solid var(--mark); }
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.latest-thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--tile-0); }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.latest-thumb .tile-ph { font-size: 24px; padding: 4px 8px; }
.latest-text { display: grid; gap: 3px; min-width: 0; }
.latest-text .kicker { font-size: 11px; }
.latest-text .latest-title { font-weight: 600; line-height: 1.35; font-size: 15px; }
.latest-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.latest-list .latest-title:hover { color: var(--accent-text); }
.sponsored { background: var(--surface); border: 1px dashed var(--rule); border-radius: 8px; padding: 16px; }
.cat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; } }
.cat-grid > .card--card .card-title { font-size: 22px; font-weight: 800; }
.cat-list { display: grid; }
.cat-list .card--row { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cat-list .card--row:first-child { padding-top: 0; }
.cat-list .card--row:last-child { border-bottom: 0; }
.more-wrap { display: flex; justify-content: center; margin-top: 22px; }
.more-btn { display: inline-block; background: var(--surface); color: var(--brand); border: 2px solid var(--brand); border-radius: 999px; padding: 10px 28px; font-weight: 700; font-size: 15px; min-width: 190px; text-align: center; transition: background 0.15s, color 0.15s; }
.more-btn:hover { background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.more-btn--light { background: transparent; color: #fff; border-color: #fff; }
.more-btn--light:hover { background: #fff; color: #0b0c0e; }
.tv { background: #0b0c0e; color: #fff; border-radius: 10px; padding: 20px 16px 26px; }
.tv .card-title a, .tv .kicker { color: #fff; }
.tv .meta, .tv time.meta { color: rgba(255, 255, 255, 0.7); }

/* ---------- Breadcrumbs, archive headers ---------- */
.breadcrumbs { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.breadcrumbs a:hover { color: var(--accent-text); }
.archive-header { border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 24px; }
.archive-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.archive-desc { margin: 10px 0 0; color: var(--ink-soft); max-width: 70ch; font-size: 17px; }
.archive-desc p { margin: 0 0 8px; }
.archive-header .search-form { margin-top: 16px; max-width: 520px; }
.author-head { display: flex; gap: 16px; align-items: center; }
.avatar { border-radius: 50%; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.chips a { display: inline-block; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.chips a:hover { border-color: var(--brand); color: var(--accent-text); text-decoration: none; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; padding: 8px 14px; text-align: center; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pagination a.page-numbers:hover { border-color: var(--brand); text-decoration: none; }

/* ---------- Article ---------- */
.entry-header { margin-bottom: 18px; }
.entry-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; margin: 8px 0 12px; }
.entry-dek { font-size: 19px; color: var(--ink-soft); margin: 0 0 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; }
.byline a { font-weight: 700; color: var(--ink); }
.byline a:hover { color: var(--accent-text); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.share-label { font-weight: 700; font-size: 14px; margin-right: 4px; }
.share-btn { background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.share-btn:hover { border-color: var(--brand); color: var(--accent-text); text-decoration: none; }
.entry-figure { margin: 0 0 24px; }
.entry-figure img { width: 100%; border-radius: var(--radius); display: block; }
.entry-figure figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.entry-content { font-size: 18px; line-height: 1.75; max-width: var(--read); }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 26px; margin: 1.6em 0 0.5em; }
.entry-content h3 { font-size: 21px; margin: 1.4em 0 0.5em; }
.entry-content a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--mark); font-family: var(--head); font-size: 21px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.alignleft { float: left; margin: 0.3em 1.2em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.related-inline { margin: 32px 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--mark); border-radius: var(--radius); font-size: 16px; line-height: 1.4; }
.related-inline h2 { font-size: 18px; margin: 0 0 8px; }
.related-inline ul { list-style: none; margin: 0; padding: 0; }
.related-inline li { padding: 8px 0; border-top: 1px solid var(--rule); display: grid; gap: 2px; }
.related-inline li:first-child { border-top: 0; }
.related-inline a { font-weight: 600; text-decoration: none; color: var(--ink); }
.related-inline a:hover { color: var(--accent-text); text-decoration: underline; }
.entry-footer { max-width: var(--read); margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tags-label { font-weight: 700; font-size: 14px; }
.tags .chips { margin: 0; }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.author-name { margin: 0; font-family: var(--head); font-weight: 700; font-size: 18px; }
.author-bio { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }
.page-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.page-links a { display: block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font-weight: 600; }
.page-links a:hover { border-color: var(--brand); color: var(--accent-text); text-decoration: none; }
.page-numbers-nav { display: flex; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.entry-header + .entry-content { margin-top: 8px; }
.page .entry-title { margin-top: 0; }

/* ---------- Comments and forms ---------- */
.comments { max-width: var(--read); margin-top: 40px; }
.comments h2, .comment-reply-title { font-size: 22px; margin-bottom: 12px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.comment-author .avatar { float: left; margin-right: 12px; }
.comment-metadata { font-size: 13px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }

/* ---------- Footer: four columns ---------- */
:root { --on-mark: #ffffff; }
.site-footer { background: #0b0c0e; color: #c4c8ce; padding: 52px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.footer-col h2 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin: 0 0 16px; }
.footer-links { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.footer-links a { color: #c4c8ce; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-logo { display: inline-flex; }
.footer-logo img { display: block; height: 48px; width: auto; max-width: 100%; }
.footer-logo--plate { background: #fff; padding: 8px 12px; border-radius: 6px; }
.footer-logo--plate img { height: 40px; }
.footer-logo--text { color: #fff; }
.site-footer .logo-accent { color: var(--mark); }
.footer-desc { margin: 16px 0 20px; max-width: 46ch; line-height: 1.65; font-size: 14.5px; color: #aeb3ba; }
.social-icons, .social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.social-icons a:hover { background: var(--mark); border-color: var(--mark); color: var(--on-mark); text-decoration: none; }
.social-icons svg { width: 18px; height: 18px; display: block; }
.social-icons--bar { gap: 4px; }
.social-icons--bar a { width: 30px; height: 30px; border: 0; }
.social-icons--bar a:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
@media (max-width: 600px) { .topbar .social-icons { display: none; } }
.footer-base { margin-top: 44px; padding-top: 20px; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; font-size: 14px; color: #aeb3ba; }
.footer-base p { margin: 0; }
.to-top { color: #fff; font-weight: 600; }
.to-top:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Explore more (category tiles) ---------- */
.explore-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.explore-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--mark); border-radius: 8px; }
.explore-tile:hover { border-color: var(--mark); text-decoration: none; }
.explore-name { font-family: var(--head); font-weight: 800; font-size: 16px; }
.explore-count { font-size: 13px; color: var(--ink-soft); }

/* ---------- Contact form ---------- */
.hn-form { max-width: 620px; display: grid; gap: 4px; margin: 20px 0 28px; }
.hn-form p { margin: 0 0 12px; }
.hn-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.hn-form input[type="text"], .hn-form input[type="email"], .hn-form select, .hn-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); font-size: 16px; }
.hn-hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.hn-submit { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: 12px 26px; font-weight: 700; cursor: pointer; }
.hn-submit:hover { opacity: 0.88; }
.hn-notice { max-width: 620px; padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-weight: 600; }
.hn-notice--ok { background: #e5f5ea; color: #14532d; border: 1px solid #b7e1c4; }
.hn-notice--error { background: #fdecea; color: #7f1d1d; border: 1px solid #f3b9b4; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
	.topbar, .masthead, .search-panel, .breaking, .sidebar, .share, .related-inline, .site-footer, .ad-live, .comments, .more-wrap { display: none !important; }
	body { background: #fff; color: #000; }
	.entry-content { font-size: 12pt; max-width: none; }
}

/* ---------- Fact-check boxes and sponsored notes ---------- */
.fact-box { border: 1px solid var(--rule); border-left: 6px solid var(--ink-soft); background: var(--surface); border-radius: 8px; padding: 14px 18px; margin: 0 0 1.4em; font-size: 17px; line-height: 1.6; }
.fact-box p { margin: 0 0 0.6em; }
.fact-box p:last-child { margin-bottom: 0; }
.fact-label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.fact-verdict { font-family: var(--head); font-weight: 800; font-size: 19px; }
.fact-box--false { border-left-color: #d00a1e; }
.fact-box--misleading { border-left-color: #e08a00; }
.fact-box--true { border-left-color: #1a8f4a; }
.fact-box--unproven { border-left-color: #6b7280; }
.sponsored-note { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--rule); border-radius: 8px; background: var(--surface); font-size: 14px; color: var(--ink-soft); }
.sponsored--hint { text-align: center; color: var(--ink-soft); }
.sponsored--hint p { margin: 6px 0; }

/* ---------- Article image modes and desktop-only explore tiles ---------- */
.entry-figure--natural img { width: 100%; height: auto; }
.explore-desktop-only { display: none; }
@media (min-width: 900px) { .explore-desktop-only { display: list-item; } }
