/*
Theme Name: UK Khabar Saar
Theme URI: https://uttarakhandkhabarsaar.in/
Description: Fast, professional Hindi news theme for Uttarakhand Khabar Saar. Classic newspaper layout: red menu bar with all categories, breaking news ticker, top stories grid, district links, category blocks, tabbed sidebar, dark mode, built-in SEO tags and NewsArticle schema (skipped when Yoast or Rank Math is active). No page builder, no bundled plugins.
Version: 3.0.0
Requires at least: 6.4
Requires PHP: 7.4
Author: Uttarakhand Khabar Saar
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ukkhabarsaar
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, dark-mode, translation-ready
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--brand: #c8102e;
	--brand-dark: #9d0c23;
	--ink: #111418;
	--text: #2a2e35;
	--muted: #687080;
	--line: #e3e5e9;
	--bg: #ffffff;
	--soft: #f3f4f6;
	--surface: #ffffff;
	--top: #111418;
	--top-text: #c7cbd2;
	--footer: #111418;
	--footer-2: #0a0c0f;
	--footer-text: #b8bdc6;
	--on-brand: #ffffff;
	--radius: 4px;
	--font: "Mukta", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
	--wrap: 1240px;
	--fs-article: 19px;
	color-scheme: light;
}
html[data-theme="dark"] {
	--brand: #e0263f;
	--brand-dark: #b0142c;
	--ink: #f2f3f5;
	--text: #d5d8de;
	--muted: #98a0ad;
	--line: #2b3039;
	--bg: #0f1115;
	--soft: #181b21;
	--surface: #15181d;
	--top: #07080a;
	--footer: #07080a;
	--footer-2: #000;
	color-scheme: dark;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.social svg, .share svg, .share-float svg, .follow svg, .menu-home svg { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: var(--brand); color: #fff; padding: 10px 16px; }
.site-main { padding: 24px 0 48px; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* =========================================================
   3. Top bar + masthead
   ========================================================= */
.topbar { background: var(--top); color: var(--top-text); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar .date { display: inline-flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.top-links { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.top-links a:hover { color: #fff; }
.social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; }
.topbar .social a:hover { background: var(--brand); color: #fff; }

/* One row: logo, main menu, tools. Sticks to the top while scrolling. */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 3px solid var(--brand); box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s ease; }
.admin-bar .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 74px; }
.logo-wrap { margin: 0; flex-shrink: 0; line-height: 0; font-size: inherit; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo .logo-img, .footer-logo-link .logo-img { width: auto; max-height: 56px; max-width: 220px; object-fit: contain; transform-origin: 0 50%; transition: transform .2s ease; }
.site-header.is-stuck .site-logo .logo-img { transform: scale(.84); }
.logo-text { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--brand); letter-spacing: -.01em; }
.logo-text:hover { color: var(--brand-dark); }
.header-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.hdr-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 18px; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.hdr-btn:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; }
.custom-logo { max-height: 80px; width: auto; }
.brand-name { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.brand-name a { color: var(--brand); }
.brand-name a:hover { color: var(--brand-dark); }
.brand-tag { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.header-ad { max-width: 728px; flex: 1; display: flex; justify-content: flex-end; }
.header-ad .widget { margin: 0; }

/* =========================================================
   4. Main menu (inside the header row, next to the logo)
   ========================================================= */
.main-nav { flex: 1; min-width: 0; align-self: stretch; display: flex; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: stretch; list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.primary-menu > li { position: relative; display: flex; }
.primary-menu > li > a {
	position: relative; display: flex; align-items: center; gap: 6px; min-height: 74px;
	padding: 0 13px; color: var(--ink); font-size: 17px; font-weight: 600; white-space: nowrap;
	transition: color .15s ease;
}
.primary-menu > li > a::before {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: -3px; height: 3px;
	background: var(--brand-dark); transform: scaleX(0); transition: transform .2s ease;
}
.primary-menu > li > a:hover,
.primary-menu > li:focus-within > a,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a,
.primary-menu > li.current-category-ancestor > a { color: var(--brand); }
.primary-menu > li > a:hover::before,
.primary-menu > li:focus-within > a::before,
.primary-menu > li.current-menu-item > a::before,
.primary-menu > li.current-menu-ancestor > a::before,
.primary-menu > li.current-category-ancestor > a::before { transform: scaleX(1); }
.primary-menu > li.menu-home > a { padding: 0 12px; font-size: 19px; }
.primary-menu > .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-left: 2px;
}
.sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; z-index: 70;
	list-style: none; margin: 0; padding: 6px 0;
	background: var(--surface); border-top: 3px solid var(--brand); box-shadow: 0 12px 28px rgba(0,0,0,.16);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.menu-more .sub-menu { left: auto; right: 0; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 9px 18px; color: var(--text); font-size: 15px; font-weight: 500; border-left: 3px solid transparent; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { color: var(--brand); background: var(--soft); border-left-color: var(--brand); }

.nav-tools { display: flex; align-items: center; margin-left: auto; }
.nav-btn { display: grid; place-items: center; width: 46px; height: 48px; border: 0; background: transparent; color: var(--on-brand); font-size: 19px; }
.nav-btn:hover { background: var(--brand-dark); }
.icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
.menu-toggle, .nav-brand { display: none; }
.read-progress { position: absolute; left: 0; bottom: -3px; height: 3px; width: 100%; background: #ffb400; transform: scaleX(0); transform-origin: 0 50%; }

/* =========================================================
   5. Breaking news ticker
   ========================================================= */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ticker-label {
	display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
	background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: var(--radius);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(200,16,46,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(200,16,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); } }
.ticker-viewport { flex: 1; overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: ticker var(--ticker-speed, 60s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-track li { padding: 0 28px 0 0; white-space: nowrap; font-size: 15px; font-weight: 500; }
.ticker-track li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--brand); margin-right: 12px; vertical-align: middle; transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-pause { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: var(--radius); width: 30px; height: 28px; font-size: 10px; letter-spacing: -1px; }
.ticker-pause:hover { color: var(--brand); border-color: var(--brand); }

/* =========================================================
   6. Shared pieces: thumbs, labels, meta, cards
   ========================================================= */
.thumb { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 16 / 10; border-radius: var(--radius); }
.thumb > a:first-child { display: block; height: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
article:hover .thumb img { transform: scale(1.04); }
.thumb-empty > a:first-child { display: grid; place-items: center; font-size: 42px; font-weight: 800; color: var(--line); }
.cat-pill {
	display: inline-block; background: var(--cat, var(--brand)); color: #fff !important;
	font-size: 12.5px; font-weight: 600; line-height: 1; padding: 5px 9px 4px; border-radius: 2px;
}
.thumb .cat-pill { position: absolute; left: 10px; top: 10px; z-index: 2; }
.cat-pill:hover { background: var(--brand-dark); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta a:hover { color: var(--brand); }
.card-title { font-size: 18px; line-height: 1.45; margin: 0 0 6px; }
.card-title a:hover, .tile-title a:hover { color: var(--brand); }
.excerpt { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.card-row .thumb { aspect-ratio: 4 / 3; }
.card-row .card-title { font-size: 15.5px; line-height: 1.45; margin-bottom: 4px; }
.card-row .meta { font-size: 12.5px; }
.rows { display: grid; gap: 0; }
.rows > .card-row { padding: 14px 0; border-top: 1px solid var(--line); }
.rows > .card-row:first-child { border-top: 0; padding-top: 0; }

/* =========================================================
   7. Homepage: top stories
   ========================================================= */
.top-stories {
	display: grid; gap: 6px; margin-bottom: 22px;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, 230px);
}
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: #222; min-width: 0; }
.tile-big { grid-row: span 2; }
.tile .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.tile .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; color: #fff; }
.tile-title { color: #fff; font-size: 17px; line-height: 1.4; margin: 8px 0 6px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tile-title a { color: #fff; }
.tile-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tile-big .tile-body { padding: 26px; }
.tile-big .tile-title { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.3; }
.tile .meta { color: rgba(255,255,255,.82); }
.tile .meta a:hover { color: #fff; }
.tile:not(.tile-big) .meta { display: none; }

/* Auto-changing slider + 2 side stories */
.top-area { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 6px; height: 470px; margin-bottom: 22px; }
.slider { position: relative; overflow: hidden; border-radius: var(--radius); background: #15181d; min-width: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.slide .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.88) 100%); pointer-events: none; }
.slide .thumb img { transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active .thumb img { transform: scale(1); }
.slide-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 30px 46px; color: #fff; }
.slide-title { color: #fff; font-size: clamp(23px, 2.5vw, 33px); line-height: 1.3; margin: 10px 0 8px; max-width: 34em; 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-underline-offset: 4px; }
.slide .meta { color: rgba(255,255,255,.85); }
.slide .meta a:hover { color: #fff; }
.slider-arrow {
	position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px;
	border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 20px;
	opacity: 0; transition: opacity .2s ease, background-color .15s ease;
}
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider:hover .slider-arrow, .slider:focus-within .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--brand); }
.slider-dots { position: absolute; left: 30px; right: 30px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.slider-dot { flex: 1; max-width: 64px; height: 18px; padding: 7px 0; border: 0; background: none; }
.slider-dot span { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.slider-dot span::after { content: ""; display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.slider-dot.is-active span::after { animation: slide-progress var(--slide-time, 6s) linear forwards; }
.slider.is-paused .slider-dot.is-active span::after { animation-play-state: paused; }
.slider.no-auto .slider-dot.is-active span::after { animation: none; transform: scaleX(1); }
.slider-dot:hover span { background: rgba(255,255,255,.6); }
@keyframes slide-progress { to { transform: scaleX(1); } }
.top-side { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.top-side .tile-title { font-size: 18px; }
.top-side .tile .meta { display: flex; }

/* District links */
.districts { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px 0 0; background: var(--surface); }
.districts-label { display: inline-flex; align-items: center; gap: 6px; align-self: stretch; background: var(--brand); color: #fff; font-weight: 700; padding: 10px 14px; flex-shrink: 0; border-radius: var(--radius) 0 0 var(--radius); }
.districts ul { display: flex; flex-wrap: nowrap; min-width: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.districts ul::-webkit-scrollbar { display: none; }
.districts li { flex-shrink: 0; }
.districts li + li::before { content: "|"; color: var(--line); padding: 0 2px; }
.districts a { display: inline-block; padding: 9px 8px; white-space: nowrap; font-weight: 500; font-size: 15px; }

/* =========================================================
   8. Layout + category blocks
   ========================================================= */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.block { margin-bottom: 38px; min-width: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--brand); margin-bottom: 18px; }
.section-title, .widget-title {
	display: inline-block; margin: 0; background: var(--brand); color: #fff;
	font-size: 18px; font-weight: 700; line-height: 1.3; padding: 7px 16px 5px; border-radius: var(--radius) var(--radius) 0 0;
}
.section-title a { color: #fff; }
.section-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.section-more { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--muted); padding-bottom: 6px; }
.section-more:hover { color: var(--brand); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-4 .card-title { font-size: 16px; }
.block-feature-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.block-feature-grid > .card .card-title { font-size: 23px; line-height: 1.4; }
.block-list-grid { display: grid; gap: 16px; }
.block-list-grid > .card .card-title { font-size: 19px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }

/* =========================================================
   9. Sidebar + widgets
   ========================================================= */
.sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: 64px; }
.widget { margin-bottom: 32px; }
.sidebar .widget-title { display: inline-block; }
.sidebar .widget > .widget-title,
.sidebar .widget > h2:first-child { box-shadow: 0 2px 0 var(--brand); margin-bottom: 16px; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }

.tabs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tab-list { display: flex; border-bottom: 2px solid var(--brand); }
.tab-list button { flex: 1; border: 0; background: var(--soft); color: var(--text); font-weight: 600; font-size: 15px; padding: 10px 6px 8px; }
.tab-list button + button { border-left: 1px solid var(--line); }
.tab-list button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tab-list button:hover:not([aria-selected="true"]) { color: var(--brand); }
.tab-panel { padding: 16px; }
.comment-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.comment-mini li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; }
.comment-mini img { border-radius: 50%; }
.comment-mini strong { color: var(--ink); }

.follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.follow a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius); color: #fff; font-weight: 600; font-size: 14px; background: #444; transition: filter .15s ease; }
.follow a:hover { color: #fff; filter: brightness(1.12); }
.follow .f-facebook { background: #1877f2; }
.follow .f-youtube { background: #e00000; }
.follow .f-x { background: #111; }
.follow .f-instagram { background: #c13584; }
.follow .f-whatsapp { background: #1fa855; }
.follow .f-telegram { background: #1b8ec2; }

.cat-list li, .footer-cats li { border-bottom: 1px solid var(--line); }
.cat-list a { display: inline-block; padding: 9px 0; font-weight: 500; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.cat-list li::before { content: ""; width: 6px; height: 6px; background: var(--brand); transform: rotate(45deg); margin-right: 10px; flex-shrink: 0; }
.cat-list li a { flex: 1; font-size: 15.5px; color: var(--text); }
.cat-list li a:hover { color: var(--brand); }

/* =========================================================
   10. Archives, search, pagination
   ========================================================= */
.archive-head { padding: 6px 0 18px; margin-bottom: 26px; border-bottom: 2px solid var(--brand); }
.archive-head h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 4px; }
.archive-head p { margin: 0; color: var(--muted); }
.archive-count { font-size: 14px; }
.archive-list { display: grid; gap: 0; }
.archive-item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.archive-item:first-child { border-top: 0; padding-top: 0; }
.archive-item .card-title { font-size: 21px; }
.load-more-wrap { text-align: center; margin: 26px 0 8px; }
.load-more, .btn, .search-form button {
	display: inline-block; border: 0; background: var(--brand); color: #fff; font-weight: 600; font-size: 16px;
	padding: 10px 26px; border-radius: var(--radius); transition: background-color .15s ease;
}
.load-more:hover, .btn:hover, .search-form button:hover { background: var(--brand-dark); color: #fff; }
.load-more.is-loading { opacity: .65; cursor: progress; }
.js .load-more-wrap ~ .pagination { display: none; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; }
.pagination .current, .pagination a.page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.not-found { text-align: center; padding: 60px 0; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--brand); }

/* =========================================================
   11. Single article
   ========================================================= */
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--brand); }
.entry-title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; margin: 12px 0 10px; }
.entry-subtitle { font-size: 20px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.entry-meta .meta { font-size: 14px; }
.entry-meta .meta a { color: var(--ink); font-weight: 600; }
.font-tools { display: flex; gap: 4px; }
.font-tools button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 2px 10px; font-weight: 600; }
.font-tools button:hover { border-color: var(--brand); color: var(--brand); }
.entry-featured { margin: 0 0 22px; }
.entry-featured img { width: 100%; border-radius: var(--radius); }
.entry-featured figcaption, .wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry-content { font-size: var(--fs-article); line-height: 1.85; color: var(--text); overflow-wrap: break-word; }
.entry-content > * { margin: 0 0 1.1em; }
.entry-content h2 { font-size: 1.35em; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.18em; margin-top: 1.3em; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--soft); border-radius: var(--radius); font-size: 1.08em; color: var(--ink); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9em; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags a { font-size: 14px; padding: 4px 12px; background: var(--soft); border-radius: var(--radius); }
.tags a:hover { background: var(--brand); color: #fff; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share strong { color: var(--ink); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 7px; color: #fff; border: 0; padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.share a:hover, .share button:hover { color: #fff; filter: brightness(1.1); }
.s-wa { background: #1fa855; }
.s-fb { background: #1877f2; }
.s-x { background: #111; }
.s-tg { background: #1b8ec2; }
.s-copy { background: #5b6370; }
.share-float { position: fixed; left: 16px; top: 50%; transform: translate(-80px, -50%); display: grid; gap: 6px; z-index: 40; transition: transform .25s ease; }
.share-float.show { transform: translate(0, -50%); }
.share-float a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 17px; }
.share-float a:hover { color: #fff; filter: brightness(1.1); }
.author-box { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--soft); border-radius: var(--radius); margin: 24px 0; }
.author-box img { border-radius: 50%; }
.author-box h3 { margin: 0 0 4px; font-size: 18px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.post-nav a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--ink); line-height: 1.45; height: 100%; }
.post-nav a:hover { border-color: var(--brand); color: var(--brand); }
.post-nav small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.related { margin-top: 32px; }

/* Comments */
.comments-area { margin-top: 36px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.comment-form .submit { border: 0; background: var(--brand); color: #fff; font-weight: 600; padding: 10px 24px; border-radius: var(--radius); }

/* =========================================================
   12. Footer
   ========================================================= */
.site-footer { background: var(--footer); color: var(--footer-text); margin-top: 20px; font-size: 15px; }
.footer-join { background: var(--brand); color: #fff; }
.footer-join .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.footer-join p { margin: 0; font-size: 16px; }
.footer-join strong { font-size: 18px; margin-right: 6px; }
.site-footer .footer-join .social { margin: 0; }
.site-footer .footer-join .social a { background: rgba(255,255,255,.16); }
.site-footer .footer-join .social a:hover { background: #fff; color: var(--brand); }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.2fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo-link { display: inline-flex; align-items: center; background: #fff; padding: 10px 14px; border-radius: var(--radius); }
.footer-logo-link .logo-img { max-height: 60px; }
.footer-logo-link.logo-text { background: none; padding: 0; color: #fff; }
.footer-about p { margin: 0 0 12px; line-height: 1.75; }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.footer-links a::before { content: ""; width: 5px; height: 5px; background: var(--brand); transform: rotate(45deg); flex-shrink: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; font-size: 14px; padding: 4px 0; }
.to-top:hover { color: #fff; }
.site-footer .brand-name { font-size: 28px; margin-bottom: 10px; color: #fff; }
.site-footer .widget-title { background: none; padding: 0 0 8px; color: #fff; border-radius: 0; box-shadow: 0 2px 0 var(--brand); margin-bottom: 16px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-cats { columns: 2; column-gap: 20px; }
.footer-cats li { border-color: rgba(255,255,255,.08); break-inside: avoid; }
.footer-cats a { display: block; padding: 7px 0; }
.site-footer .card-title { color: #e9ebee; font-size: 15px; }
.site-footer .rows > .card-row { border-color: rgba(255,255,255,.08); }
.site-footer .meta { color: #8b929d; }
.site-footer .social { margin-top: 14px; }
.site-footer .social a { width: 34px; height: 34px; background: rgba(255,255,255,.08); color: #fff; }
.site-footer .social a:hover { background: var(--brand); }
.footer-bottom { background: var(--footer-2); font-size: 14px; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 18px; }

/* =========================================================
   13. Search overlay + back to top
   ========================================================= */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,15,.92); display: grid; place-items: start center; padding: 18vh 20px 0; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay .search-form { width: min(680px, 100%); }
.search-overlay input { font-size: 20px; padding: 14px 18px; }
.search-close { position: absolute; top: 20px; right: 24px; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; }
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff; font-size: 22px; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brand-dark); }

/* =========================================================
   14. Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
	.primary-menu > li > a { padding: 0 9px; font-size: 15.5px; }
	.primary-menu > li > a::before { left: 9px; right: 9px; }
	.header-row { gap: 14px; }
	.site-logo .logo-img { max-width: 170px; max-height: 50px; }
	.top-area { height: 420px; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar-inner { position: static; }
	.top-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 340px repeat(2, 190px); }
	.tile-big { grid-column: span 2; grid-row: auto; }
	.share-float { display: none; }
	.footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	/* Slider on top, the 2 side stories below it side by side */
	.top-area { grid-template-columns: minmax(0, 1fr); grid-template-rows: 380px 200px; height: auto; }
	.top-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.top-side .tile-title { font-size: 16px; }
	.slider-arrow { opacity: 1; width: 36px; height: 36px; margin-top: -18px; }

	/* Mobile header: menu button, logo, tools. Menu opens below the header. */
	.header-row { min-height: 62px; gap: 10px; }
	.menu-toggle { display: grid; }
	.logo-wrap { flex: 1; min-width: 0; display: flex; justify-content: center; }
	.site-logo .logo-img, .site-header.is-stuck .site-logo .logo-img { max-height: 44px; max-width: 180px; transform: none; }
	.logo-text { font-size: 22px; }
	.header-tools { margin-left: 0; }
	.main-nav { flex: 0; align-self: auto; }
	.primary-menu {
		display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 3px; flex-direction: column; flex-wrap: nowrap;
		background: var(--surface); max-height: calc(100vh - 110px); overflow-y: auto; box-shadow: 0 14px 24px rgba(0,0,0,.18);
	}
	.primary-menu.open { display: flex; }
	.primary-menu > li { display: block; }
	.primary-menu > li > a { min-height: 48px; padding: 0 20px; border-top: 1px solid var(--line); }
	.primary-menu > li > a::before { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: scaleY(0); }
	.primary-menu > li > a:hover::before,
	.primary-menu > li.current-menu-item > a::before,
	.primary-menu > li.current-menu-ancestor > a::before,
	.primary-menu > li.current-category-ancestor > a::before { transform: scaleY(1); }
	.primary-menu > li.menu-home > a { padding: 0 20px; }
	.primary-menu > .menu-item-has-children > a::after { margin-left: auto; }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--soft); display: none; padding: 0; }
	.sub-menu a { padding: 11px 34px; border-left: 0; }
	.primary-menu > li:hover > .sub-menu, .primary-menu > li:focus-within > .sub-menu { display: none; }
	.primary-menu > li.open > .sub-menu { display: block; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}
@media (max-width: 720px) {
	.masthead { padding-top: 14px; padding-bottom: 14px; }
	.header-ad { display: none; }
	.top-links { display: none; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 > .card:nth-child(3) { display: none; }
	.block-feature-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
	.footer-widgets { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.archive-item { grid-template-columns: 140px minmax(0, 1fr); gap: 14px; }
	.archive-item .card-title { font-size: 17px; }
	.archive-item .excerpt, .archive-item .thumb .cat-pill { display: none; }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav .next { text-align: left; }
}
@media (max-width: 520px) {
	.wrap { padding-left: 14px; padding-right: 14px; }
	.topbar .social { display: none; }
	.top-stories { grid-template-rows: 280px repeat(2, 160px); gap: 4px; }
	.top-area { grid-template-rows: 300px 165px; gap: 4px; }
	.top-side { gap: 4px; }
	.top-side .tile .meta { display: none; }
	.slide-body { padding: 18px 16px 38px; }
	.slide-title { font-size: 20px; }
	.slider-dots { left: 16px; right: 16px; bottom: 12px; }
	.slider-arrow { display: none; }
	.footer-widgets { grid-template-columns: minmax(0, 1fr); }
	.footer-join strong { display: block; margin-bottom: 2px; }
	.hdr-btn { width: 38px; height: 38px; }
	.tile-title { font-size: 15px; }
	.tile-body { padding: 12px; }
	.tile:not(.tile-big) .cat-pill { display: none; }
	.grid-3 { grid-template-columns: minmax(0, 1fr); }
	.grid-3 > .card:nth-child(3) { display: flex; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.grid-4 .card-title { font-size: 15px; }
	.grid-4 .meta { display: none; }
	.block-feature-grid > .card .card-title { font-size: 20px; }
	.card-row { grid-template-columns: 100px minmax(0, 1fr); }
	.ticker-pause { display: none; }
	.ticker-label { font-size: 13px; padding: 4px 9px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.ticker-track { animation: none; }
	.ticker-viewport { overflow-x: auto; }
}

@media print {
	.topbar, .main-nav, .ticker, .sidebar, .share, .share-float, .site-footer, .back-top, .post-nav, .related, .comments-area { display: none !important; }
}
