/*
Theme Name: Uttarakhand Doot
Theme URI: https://uttarakhanddoot.in/
Author: Uttarakhand Doot
Description: हिंदी समाचार थीम — उत्तराखंड दूत के लिए। Hindi news theme with district/city picker, breaking ticker and video section.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: udoot
*/

/* ---------------------------------------------------------------- tokens */
:root {
	--red: #c8102e;
	--red-d: #9e0b22;
	--ink: #141414;
	--ink-2: #333;
	--muted: #5f5f5f;
	--line: #e3e3e3;
	--bg: #f3f3f1;
	--card: #fff;
	--nav: #262626;
	--nav-2: #3a3a3a;
	--tint-a: #fdf1ea;
	--tint-b: #eaf5fa;
	--blue: #1f4ea3;
	--focus: #ffb81c;
	--radius: 8px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
	--font: "Noto Sans Devanagari", "Mukta", "Hind", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tabbar-h: 0px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--tabbar-h);
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
.only-d { display: none !important; }

@media (min-width: 768px) {
	body { font-size: 18px; }
	.only-m { display: none !important; }
	.only-d { display: revert !important; }
	.nav-burger.only-d, .nav-search.only-d { display: flex !important; }
}

/* --------------------------------------------------------------- buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0;
	font-weight: 600; font-size: 16px; line-height: 1.2; white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); color: #fff; }
.btn-outline { border: 1.5px solid var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-block { display: flex; width: 100%; margin-top: 14px; }
.btn-yt { background: #ff0000; color: #fff; }
.btn-yt:hover { background: #d90000; color: #fff; }
.btn-ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; }
.btn-ig:hover { color: #fff; filter: brightness(1.08); }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%;
}
.icon-btn .ic { width: 24px; height: 24px; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }

/* ---------------------------------------------------------------- header */
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a { display: inline-flex; padding: 6px; color: var(--ink-2); }
.topbar-social a:hover { color: var(--red); }
.topbar-social .ic { width: 16px; height: 16px; }

.masthead { background: #fff; }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: block; flex: 0 1 auto; }
.logo img { width: auto; height: 46px; max-width: 220px; object-fit: contain; }
.logo-text { font-size: 28px; font-weight: 800; color: var(--blue); }
.tagline { margin: 0; font-size: 16px; color: var(--muted); font-weight: 500; border-left: 3px solid var(--red); padding-left: 12px; }
@media (min-width: 768px) {
	.masthead-in { padding-top: 14px; padding-bottom: 14px; }
	.logo img { height: 72px; max-width: 340px; }
}

.navbar { background: var(--nav); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.admin-bar .navbar { top: 46px; }
@media (min-width: 783px) { .admin-bar .navbar { top: 32px; } }
@media (max-width: 600px) { .admin-bar .navbar { top: 0; } }
.navbar-in { display: flex; align-items: stretch; min-height: 48px; padding: 0; }
@media (min-width: 768px) { .navbar-in { padding: 0 16px; } }
.nav-burger, .nav-search, .nav-city {
	display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; background: transparent; color: #fff; flex: none;
}
.nav-burger:hover, .nav-search:hover, .nav-city:hover { background: var(--nav-2); }
.nav-city { border-left: 1px solid #444; font-size: 16px; font-weight: 600; white-space: nowrap; }
.nav-city .ic { width: 18px; height: 18px; color: #ff6b6b; }
.nav-search { border-left: 1px solid #444; }
.nav-scroll { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-list { display: flex; height: 100%; }
.nav-list li { flex: none; }
.nav-list a { display: flex; align-items: center; height: 100%; padding: 0 13px; font-size: 16.5px; font-weight: 600; white-space: nowrap; color: #fff; }
.nav-list a:hover { background: var(--nav-2); color: #fff; }
.nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { background: var(--red); }

.search-panel { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0; }
.search-form { display: flex; gap: 0; max-width: 720px; margin: 0 auto; }
.search-form input {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: inherit; font-size: 17px;
	border: 2px solid var(--ink-2); border-right: 0; border-radius: 999px 0 0 999px; background: #fff;
}
.search-form button { width: 58px; height: 48px; border: 0; background: var(--red); color: #fff; border-radius: 0 999px 999px 0; display: flex; align-items: center; justify-content: center; }
.search-inline { margin: 16px 0 0; }

.trend { background: #fff; border-bottom: 1px solid var(--line); }
.trend-in { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.trend-hash { font-weight: 800; font-size: 20px; color: var(--red); }
.trend ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
.trend ul::-webkit-scrollbar { display: none; }
.trend a { display: block; white-space: nowrap; font-size: 15px; font-weight: 500; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.trend a:hover { border-color: var(--red); color: var(--red); }

/* ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; gap: 12px; min-height: 44px; overflow: hidden; }
.ticker-label { flex: none; background: var(--red); color: #fff; font-size: 15px; padding: 4px 12px; border-radius: 4px; position: relative; }
.ticker-label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 7px; vertical-align: middle; animation: blink 1.2s infinite; }
.ticker-track { overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-move { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker-track:hover .ticker-move, .ticker-track:focus-within .ticker-move { animation-play-state: paused; }
.ticker-item { white-space: nowrap; padding-right: 40px; font-weight: 600; font-size: 16.5px; }
.ticker-item::before { content: "●"; color: var(--red); font-size: 10px; margin-right: 10px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
	.ticker-move { animation: none; }
	.ticker-track { overflow-x: auto; }
	html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------- drawers */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 90; animation: fade .2s; }
.drawer {
	position: fixed; top: 0; bottom: 0; z-index: 100; width: min(400px, 90vw); margin: 0;
	background: #fff; display: flex; flex-direction: column; box-shadow: 0 0 30px rgba(0, 0, 0, .25);
}
.drawer-r { right: 0; animation: slideR .25s ease-out; }
.drawer-l { left: 0; animation: slideL .25s ease-out; }
@keyframes slideR { from { transform: translateX(100%); } }
@keyframes slideL { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 21px; }
.drawer-head .logo img { height: 40px; }
.drawer-body { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding-bottom: 24px; }
.drawer-sub { background: #f2f2f2; font-size: 17px; padding: 12px 20px; margin-top: 4px; }
.city-search { position: relative; padding: 12px 16px; background: #fafafa; border-bottom: 1px solid var(--line); }
.city-search input { width: 100%; height: 46px; padding: 0 44px 0 14px; font: inherit; font-size: 16px; border: 1.5px solid #cfcfcf; border-radius: 6px; }
.city-search input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
.city-search .ic { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.city-list li, .acc-item > ul li { border-bottom: 1px solid #eee; }
.city-list a, .acc-item > ul a, .menu-list a, .menu-list button {
	display: flex; align-items: center; min-height: 50px; padding: 0 20px; font-size: 17.5px; font-weight: 500; width: 100%;
	background: none; border: 0; text-align: left;
}
.city-list a:hover, .acc-item > ul a:hover, .menu-list a:hover, .menu-list button:hover { background: #fff5f5; color: var(--red); }
.acc-item { border-bottom: 1px solid #eee; }
.acc-item > summary {
	display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 20px;
	font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.acc-item > summary::-webkit-details-marker { display: none; }
.acc-item > summary i { position: relative; width: 16px; height: 16px; flex: none; }
.acc-item > summary i::before, .acc-item > summary i::after { content: ""; position: absolute; background: currentColor; left: 0; top: 7px; width: 16px; height: 2px; transition: transform .2s; }
.acc-item > summary i::after { transform: rotate(90deg); }
.acc-item[open] > summary { color: var(--red); background: #fff8f8; }
.acc-item[open] > summary i::after { transform: rotate(0); }
.acc-item > ul { background: #fcfcfc; padding-left: 14px; border-left: 3px solid var(--red); margin-left: 20px; }
.acc-item > ul a { min-height: 46px; font-size: 16.5px; padding-left: 12px; }
.acc-all { font-weight: 700 !important; color: var(--red); }
.city-empty { padding: 20px; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; }
.menu-grid a { display: flex; align-items: center; min-height: 48px; padding: 0 20px; font-size: 16.5px; border-bottom: 1px solid #eee; }
.menu-grid li:nth-child(odd) a { border-right: 1px solid #eee; }
.drawer-social { display: flex; gap: 10px; padding: 20px; }

/* ------------------------------------------------------------ cards/boxes */
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.sec-title {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
	font-size: 22px; font-weight: 800; margin: 0 0 14px; border-bottom: 2px solid var(--line);
}
.sec-title > span { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--red); margin-bottom: -2px; }
.sec-more { font-size: 15px; font-weight: 600; color: var(--red); padding-bottom: 6px; white-space: nowrap; }
.sec-title-dark { color: #fff; border-color: #333; }

.kicker { display: inline-block; color: var(--red); font-size: 14.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.kicker:hover { text-decoration: underline; }
.card { position: relative; }
.card-title { font-weight: 700; font-size: 18px; line-height: 1.45; }
.card-title a:hover { color: var(--red); }
.card-time { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.card-excerpt { color: var(--ink-2); font-size: 17px; line-height: 1.65; margin: 8px 0 0; }
.card-img { display: block; position: relative; overflow: hidden; border-radius: 6px; background: #ddd; aspect-ratio: 16 / 9; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-img img { transform: none; } }

/* placeholder when a story has no image */
.ph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%;
	background: linear-gradient(135deg, #1f4ea3 0%, #173a7a 55%, #c8102e 140%); color: #fff; text-align: center; padding: 8px;
}
.ph-brand { font-weight: 800; font-size: clamp(14px, 3.4vw, 26px); letter-spacing: .3px; }
.ph-cat { font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .18); padding: 1px 10px; border-radius: 999px; }
.card-row .ph-brand, .card-tile .ph-brand { font-size: 15px; }
.card-row .ph-cat { display: none; }

.card-tile .card-body { padding-top: 10px; }
.card-row { display: grid; grid-template-columns: 1fr 118px; gap: 12px; align-items: start; }
.card-row .card-img { order: 2; }
.card-row .card-title { font-size: 17px; }
.card-lead .card-img { border-radius: var(--radius); }
.card-lead .card-body { padding-top: 12px; }
.card-lead .card-title { font-size: clamp(22px, 5.4vw, 32px); line-height: 1.35; font-weight: 800; }
.card-text .card-title { font-size: 17px; font-weight: 600; }
.stack > .card { padding: 12px 0; border-top: 1px solid var(--line); }
.stack > .card:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 768px) {
	.card-row { grid-template-columns: 1fr 150px; gap: 14px; }
	.card-row .card-title { font-size: 18px; }
}

/* ------------------------------------------------------------------ home */
.hp { padding-top: 16px; padding-bottom: 20px; }
.hp > * + * { margin-top: 18px; }
.pill { display: table; margin: 0 auto 12px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; padding: 4px 16px; border-radius: 3px; }
.top-grid { display: grid; gap: 16px; }
.top-lead, .top-side { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.top-lead .card-title { text-align: left; }
.top-side > .card { padding: 12px 0; border-top: 1px solid var(--line); }
.top-side > .card:first-child { border-top: 0; padding-top: 0; }
.top-side > .card:last-child { padding-bottom: 0; }
@media (min-width: 900px) {
	.top-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
	.top-grid.solo { grid-template-columns: minmax(0, 860px); justify-content: center; }
	.top-lead { padding: 18px; }
	.top-lead .card-title { font-size: 34px; }
}

.tint-grid { display: grid; gap: 12px; }
.tint { border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.tint-a { background: var(--tint-a); }
.tint-b { background: var(--tint-b); }
.tint .card-row { grid-template-columns: 112px 1fr; }
.tint .card-row .card-img { order: 0; }
@media (min-width: 768px) {
	.tint-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
	.tint .card-row { grid-template-columns: 170px 1fr; }
}

.three { display: grid; gap: 18px; align-items: start; }
.col-center { order: -1; display: grid; gap: 18px; align-content: start; }
.col-center > .card-lead { background: var(--card); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.col-center > .stack { background: var(--card); padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.col-side { display: grid; gap: 18px; }
@media (min-width: 768px) {
	.three { grid-template-columns: 1fr 1fr; }
	.col-center { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
	.three { grid-template-columns: 290px minmax(0, 1fr) 330px; }
	.col-center { order: 0; grid-column: auto; }
	.col-latest, .col-side { position: sticky; top: 64px; }
}

.latest-list { counter-reset: n; }
.latest-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.latest-list li:first-child { border-top: 0; padding-top: 0; }
.latest-list a { display: block; font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.kicker-inline { color: var(--red); font-weight: 700; }
.latest-list time { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.follow p { font-size: 16px; color: var(--ink-2); }
.follow-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbtn { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 15.5px; }
.fbtn:hover { color: #fff; filter: brightness(1.1); }
.fbtn-youtube { background: #ff0000; }
.fbtn-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.fbtn-facebook { background: #1877f2; }
.fbtn-x { background: #111; }
.fbtn-whatsapp { background: #25d366; }

.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick-grid a {
	display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 12px; border: 1px solid var(--line);
	border-radius: 6px; font-weight: 600; font-size: 16.5px; background: #fafafa;
}
.pick-grid a:hover { border-color: var(--red); background: #fff5f5; }
.pick-grid .ic { color: var(--red); width: 18px; height: 18px; }
@media (min-width: 600px) { .pick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .pick-grid { grid-template-columns: repeat(5, 1fr); } }

.district-blocks { display: grid; gap: 18px; }
.district-blocks:empty { display: none; }
.dblock .card-tile + .stack { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (min-width: 700px) { .district-blocks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .district-blocks { grid-template-columns: repeat(3, 1fr); } }

.empty-state { text-align: center; padding: 40px 20px; }
.empty-state p { font-size: 18px; color: var(--ink-2); }

/* ---------------------------------------------------------------- videos */
.videos { background: #121212; color: #fff; padding: 26px 0 30px; margin: 22px 0; }
.videos-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.videos-head .sec-title { flex: 1 1 200px; margin: 0; }
.videos-follow { display: flex; gap: 8px; flex-wrap: wrap; }
.vid-grid { display: grid; gap: 14px; }
.vid-grid.n-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
	.vid-grid.n-2 { grid-template-columns: 1fr 1fr; }
	.vid-grid.n-3, .vid-grid.n-4, .vid-grid.n-5 { grid-template-columns: 2fr 1fr 1fr; }
	.vid-grid .vid-main { grid-row: span 2; }
	.vid-grid.n-1 { max-width: 860px; }
}
.vid-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.vid-play:hover img { opacity: 1; }
.vid-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(200, 16, 46, .92); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.vid-btn .ic { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.vid-play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-title { font-size: 16.5px; font-weight: 600; line-height: 1.45; margin-top: 8px; color: #f2f2f2; }
.vid-title a:hover { color: #ff8a8a; }
.vid-main .vid-title { font-size: 20px; }
.reels-title { font-size: 19px; margin: 26px 0 12px; color: #fff; }
.reels { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-color: #555 transparent; }
.reel { flex: 0 0 168px; scroll-snap-align: start; }
.reel .vid-play { aspect-ratio: 4 / 5; }
.reel .vid-title { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel .vid-btn { width: 46px; height: 46px; }
.reel-ig { flex-basis: 328px; background: #fff; border-radius: 8px; overflow: hidden; }
.reel-ig .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
@media (min-width: 768px) { .reel { flex-basis: 200px; } }

/* ------------------------------------------------------ article / listing */
.with-side { display: grid; gap: 22px; padding-top: 16px; padding-bottom: 28px; align-items: start; }
@media (min-width: 1000px) {
	.with-side { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
	.sidebar { position: sticky; top: 64px; }
}
.sidebar { display: grid; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { color: var(--red); }

.story { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
@media (min-width: 768px) { .story { padding: 28px 32px; } }
.story-title { font-size: clamp(27px, 6.2vw, 42px); font-weight: 800; line-height: 1.32; margin: 2px 0 12px; letter-spacing: -.2px; }
.story-dek { font-size: clamp(18px, 4.4vw, 21px); color: var(--ink-2); font-weight: 500; line-height: 1.6; border-left: 4px solid var(--red); padding-left: 14px; margin: 0 0 16px; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.by { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.by .avatar { border-radius: 50%; width: 40px; height: 40px; }
.by a { font-weight: 700; }
.by small { display: block; color: var(--muted); font-size: 14px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.sh { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 0; color: #fff; font-size: 14.5px; font-weight: 600; }
.sh:hover { color: #fff; filter: brightness(1.1); }
.sh .ic { width: 18px; height: 18px; }
.sh span { display: none; }
.sh-wa { background: #25d366; }
.sh-fb { background: #1877f2; }
.sh-x { background: #111; }
.sh-copy { background: #555; }
.sh-copy.done { background: #1a7f37; }
@media (min-width: 600px) { .sh-wa span, .sh-copy span { display: inline; } .sh-wa, .sh-copy { padding: 0 14px; } }

.story-img { margin: 18px -16px; }
.story-img img { width: 100%; }
.story-img figcaption { font-size: 14.5px; color: var(--muted); padding: 8px 16px 0; text-align: center; }
@media (min-width: 768px) { .story-img { margin: 22px 0; } .story-img img { border-radius: 6px; } }

/* readable body text */
.entry { font-size: 19px; line-height: 1.85; color: #1d1d1d; overflow-wrap: break-word; }
@media (min-width: 768px) { .entry { font-size: 20px; } }
.story-body { margin-top: 18px; }
.entry p { margin: 0 0 1.15em; }
.entry h2 { font-size: 1.3em; margin: 1.4em 0 .6em; }
.entry h3 { font-size: 1.15em; margin: 1.3em 0 .5em; }
.entry a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { margin: 0 0 1.15em 1.3em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li { margin-bottom: .4em; }
.entry blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--red); background: #fafafa; font-weight: 500; }
.entry img { border-radius: 6px; }
.entry figure { margin: 1.2em 0; }
.entry figcaption, .wp-caption-text { font-size: 14.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .85em; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 10px; }
.entry iframe { width: 100%; }
.alignleft { float: left; margin: .3em 1em .6em 0; }
.alignright { float: right; margin: .3em 0 .6em 1em; }
.aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em 0; } }

.story-tags { margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.story-tags a { padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; margin: 22px 0; background: #fff6f6; border-radius: var(--radius); }
.story-foot p { margin: 0; font-weight: 700; }
.related { margin-top: 26px; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.tile-grid .card-title { font-size: 16.5px; }
@media (min-width: 768px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }

.listing { min-width: 0; }
.list-head { margin-bottom: 16px; }
.list-title { font-size: clamp(26px, 6vw, 36px); font-weight: 800; border-left: 5px solid var(--red); padding-left: 12px; line-height: 1.3; }
.list-desc { color: var(--muted); margin: 6px 0 0; font-size: 16.5px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; padding-bottom: 6px; scrollbar-width: thin; }
.chips a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; font-weight: 600; }
.chips a:hover { border-color: var(--red); color: var(--red); }
.chips a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }
.list-body { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.list-body > .card { padding: 14px 0; border-top: 1px solid var(--line); }
.list-body > .card:first-child { border-top: 0; padding-top: 0; }
.list-body > .card-lead { padding-bottom: 18px; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }

.page-art { padding-top: 20px; padding-bottom: 30px; }
.page-art .list-title { margin-bottom: 18px; }

.comments { margin-top: 28px; }
.comment-list { margin-bottom: 20px; }
.comment-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.comment-form label { display: block; font-weight: 600; font-size: 15px; 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; font: inherit; border: 1.5px solid #cfcfcf; border-radius: 6px; }
.comment-form .submit { background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------------------------------------------------------------- footer */
.footer { background: #1b1b1b; color: #cfcfcf; margin-top: 10px; }
.footer-grid { display: grid; gap: 28px; padding-top: 34px; padding-bottom: 26px; }
.footer h2 { color: #fff; font-size: 18px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.footer a:hover { color: #fff; }
.f-about p { font-size: 16px; line-height: 1.75; margin: 14px 0; }
.logo-foot { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 8px; }
.logo-foot img { height: 50px; }
.f-social, .drawer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.soc:hover { color: #fff; filter: brightness(1.15); }
.soc-youtube { background: #ff0000; }
.soc-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.soc-facebook { background: #1877f2; }
.soc-x { background: #000; border: 1px solid #444; }
.soc-whatsapp { background: #25d366; }
.f-col ul { font-size: 16px; }
.f-col li a { display: inline-block; padding: 5px 0; }
.f-districts ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.f-contact { font-style: normal; font-size: 15px; margin-top: 16px; display: grid; gap: 4px; }
.footer-bottom { border-top: 1px solid #333; padding: 14px 0; font-size: 14.5px; color: #a8a8a8; text-align: center; }
@media (min-width: 800px) {
	.footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr; gap: 40px; }
	.f-districts ul { grid-template-columns: 1fr 1fr 1fr; }
}

/* ------------------------------------------------------- mobile tab bar */
.tabbar { display: none; }
@media (max-width: 767px) {
	:root { --tabbar-h: calc(60px + env(safe-area-inset-bottom)); }
	.tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
		height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line);
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
	}
	.tabbar a, .tabbar button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		border: 0; background: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0;
	}
	.tabbar .ic { width: 22px; height: 22px; }
	.tabbar [aria-current="page"] { color: var(--red); }
	.topbar { display: none; }
	.nav-city span { display: none; }
	.nav-city { padding: 0 14px; }
}
