/*
Theme Name: Trends Pakistan News
Theme URI: https://trendspakistan.com/
Author: Trends Pakistan
Description: Fast bilingual (Urdu + English) news portal theme for Pakistan & USA news. Breaking ticker, category blocks, AdSense-ready ad slots, automatic Urdu right-to-left layout, WhatsApp sharing, and self-updating tools: prayer times for 100+ Pakistani cities (Shia & Sunni), Islamic (Hijri) calendar, Ramadan timings, Qibla direction and city weather.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: trendspakistan
*/

:root {
	--ink: #14161a;
	--ink-2: #3d4148;
	--muted: #6b7079;
	--paper: #f6f4ef;
	--card: #ffffff;
	--line: #e3dfd6;
	--green: #0b4d2c;
	--green-2: #136b3e;
	--green-soft: #e8f1ec;
	--red: #c8102e;
	--gold: #c9a227;
	--gold-soft: #f8f1dc;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 6px 18px rgba(20, 22, 26, .06);
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--urdu-head: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
	--urdu-body: "Noto Naskh Arabic", "Noto Nastaliq Urdu", serif;
	--arabic: "Noto Naskh Arabic", "Amiri", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; clip: auto; clip-path: none; inset-inline-start: 16px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Urdu edition ---------- */
.ed-ur { font-family: var(--urdu-body); font-size: 18px; line-height: 2; }
.ed-ur h1, .ed-ur h2, .ed-ur h3, .ed-ur h4, .ed-ur .brand-tag { font-family: var(--urdu-head); font-weight: 600; line-height: 2; }
.ed-ur .lead-title { line-height: 1.9; }
.ed-ur .meta, .ed-ur .badge { font-family: var(--urdu-body); }
.ed-ur .brand-name, .ed-ur .ed-switch a[lang="en"] { font-family: var(--sans); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d6d8dc; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.hijri-top { color: var(--gold); }
.ed-switch { display: flex; gap: 4px; flex: none; }
.ed-switch a { padding: 3px 12px; border-radius: 99px; border: 1px solid #3b3f46; color: #d6d8dc; line-height: 1.6; }
.ed-switch a[lang="ur"] { font-family: var(--urdu-body); }
.ed-switch a.on { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }

/* ---------- Masthead ---------- */
.masthead { background: var(--card); border-bottom: 1px solid var(--line); }
.mast-in { display: flex; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green); color: #fff; font: 800 20px/1 var(--serif); letter-spacing: -.5px; box-shadow: inset 0 -4px 0 var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 800 30px/1 var(--serif); letter-spacing: -.8px; color: var(--ink); }
.brand-name b { color: var(--green); }
.brand-tag { font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: .2px; }
.logo-img { max-height: 64px; width: auto; }
.search { margin-inline-start: auto; display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--paper); }
.search input { border: 0; background: transparent; padding: 9px 14px; width: 220px; font: inherit; font-size: 14px; }
.search input:focus { outline: none; }
.search button { border: 0; background: transparent; padding: 0 14px; cursor: pointer; color: var(--ink-2); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

.catbar { background: var(--green); }
.catbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.catbar a { display: block; padding: 11px 15px; color: #fff; font-weight: 600; font-size: 14.5px; letter-spacing: .2px; border-bottom: 3px solid transparent; }
.catbar a:hover, .catbar .current-menu-item a, .catbar .current-cat a { background: rgba(255,255,255,.08); border-bottom-color: var(--gold); color: #fff; }
.catbar .menu-tool a { color: #f3e3a6; }

/* ---------- Ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; gap: 14px; height: 44px; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 4px 12px; border-radius: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.ed-ur .ticker-label { text-transform: none; letter-spacing: 0; font-size: 15px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; white-space: nowrap; animation: tick 60s linear infinite; }
.ticker-move a { padding: 0 22px; font-weight: 500; font-size: 14.5px; position: relative; }
.ticker-move a::after { content: ""; position: absolute; inset-inline-end: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--gold); border-radius: 50%; }
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }
[dir="rtl"] .ticker-move { animation-name: tick-rtl; }
@keyframes tick-rtl { from { transform: translateX(0) } to { transform: translateX(50%) } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } .pulse { animation: none; } }

/* ---------- Ads ---------- */
.ad { margin: 20px auto; text-align: center; }
.ad-label { display: block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-placeholder { display: grid; place-items: center; gap: 4px; min-height: 90px; padding: 14px; border: 2px dashed #cfc9bc; border-radius: var(--radius); color: var(--muted); font: 600 13px/1.4 var(--sans); background: repeating-linear-gradient(45deg, #faf8f3, #faf8f3 10px, #f3f0e8 10px, #f3f0e8 20px); }
.ad-placeholder small { font-weight: 400; }
.ad-box.ad-placeholder { min-height: 250px; }
.ad-wide { max-width: 970px; }

/* ---------- Section titles ---------- */
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; font: 800 20px/1.2 var(--serif); border-bottom: 2px solid var(--ink); }
.sec-title span { display: inline-block; padding: 0 0 8px; border-bottom: 4px solid var(--red); margin-bottom: -3px; }
.sec-title .more { font: 600 13px var(--sans); color: var(--green); }
.ed-ur .sec-title { font-size: 22px; }
.ed-ur .sec-title .more { font-family: var(--urdu-body); }

/* ---------- Badges & meta ---------- */
.badge { display: inline-block; font: 700 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .7px; color: var(--red); margin-bottom: 6px; }
.ed-ur .badge { font-size: 13px; text-transform: none; letter-spacing: 0; }
.badge-usa { color: #1d4ed8; }
.badge-pakistan { color: var(--green-2); }
.badge-sports { color: #b45309; }
.badge-business { color: #7c3aed; }
.meta { font-size: 12.5px; color: var(--muted); }

/* ---------- Thumbnails ---------- */
.thumb-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.thumb-fallback { --c1: #0b4d2c; --c2: #136b3e; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; background:
	radial-gradient(circle at 85% 15%, rgba(255,255,255,.14) 0 18%, transparent 19%),
	repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px),
	linear-gradient(135deg, var(--c1), var(--c2)); }
.thumb-fallback.tf-usa { --c1: #13254a; --c2: #23407a; }
.thumb-fallback.tf-business { --c1: #3b1d5c; --c2: #5b2d8a; }
.thumb-fallback.tf-sports { --c1: #7a3b06; --c2: #b45309; }
.thumb-fallback.tf-world { --c1: #0f3b47; --c2: #17606f; }
.thumb-fallback.tf-weather { --c1: #0c3d66; --c2: #1d6fa5; }
.thumb-fallback.tf-other { --c1: #2c2f36; --c2: #4a4f59; }
.thumb-fallback span { font: 800 clamp(16px, 3vw, 28px)/1 var(--serif); letter-spacing: -.3px; opacity: .92; border-top: 2px solid rgba(255,255,255,.5); border-bottom: 2px solid rgba(255,255,255,.5); padding: 8px 4px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; margin: 24px 0 24px; }
.lead { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lead-media { display: block; }
.lead-body { padding: 20px 22px 22px; }
.lead-title { font: 800 clamp(24px, 3.2vw, 36px)/1.15 var(--serif); margin: 2px 0 10px; letter-spacing: -.6px; }
.ed-ur .lead-title { font-size: clamp(24px, 3vw, 34px); letter-spacing: 0; }
.lead-ex { color: var(--ink-2); margin: 0 0 10px; font-size: 16.5px; }
.hero-side { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 16px; }

/* ---------- Rows ---------- */
.row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row:last-child { border-bottom: 0; }
.row-media { border-radius: 8px; overflow: hidden; }
.row-media .thumb-fallback span { font-size: 12px; padding: 4px 2px; }
.row-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.row-title { margin: 0 0 4px; font: 700 16px/1.3 var(--serif); }
.ed-ur .row-title { font-size: 16px; line-height: 1.9; }
.row .badge { margin: 0 6px 0 0; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; margin-bottom: 40px; }
.content { min-width: 0; }
.block { margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card-media { display: block; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { margin: 0 0 8px; font: 700 18px/1.3 var(--serif); }
.ed-ur .card-title { font-size: 18px; line-height: 1.95; }
.card-ex { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; }
.card .meta { margin-top: auto; }
.list { background: var(--card); border-radius: var(--radius); padding: 4px 18px; box-shadow: var(--shadow); }

/* ---------- Sidebar ---------- */
.sidebar { position: relative; min-width: 0; }
.widget { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 24px; }
.most-read ol { list-style: none; counter-reset: mr; margin: 0; padding: 0; }
.most-read li { counter-increment: mr; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 600 15px/1.35 var(--serif); }
.ed-ur .most-read li { font-family: var(--urdu-body); line-height: 1.8; }
.most-read li:last-child { border-bottom: 0; }
.most-read li::before { content: counter(mr); font: 800 28px/1 var(--serif); color: var(--gold); }
.sticky-ad { position: sticky; top: 16px; }

/* ---------- Single story ---------- */
.story { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px clamp(18px, 4vw, 44px) 36px; margin-top: 24px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--green); font-weight: 600; }
.story-title { font: 800 clamp(26px, 4vw, 42px)/1.15 var(--serif); letter-spacing: -.8px; margin: 0 0 12px; }
.ed-ur .story-title { line-height: 1.85; letter-spacing: 0; }
.story-dek { font-size: 19px; color: var(--ink-2); margin: 0 0 14px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-img { margin: 20px 0 6px; }
.story-img img { border-radius: 8px; width: 100%; }
.story-img figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; font-size: 13px; }
.share > span { color: var(--muted); font-weight: 600; }
.share a { padding: 6px 14px; border-radius: 99px; color: #fff; font-weight: 600; }
.sh-wa { background: #128c48; } .sh-fb { background: #1f4fbf; } .sh-x { background: #111; }
.share a:hover { color: #fff; opacity: .88; }
.entry { font-size: 18.5px; line-height: 1.75; }
.ed-ur .entry { font-size: 20px; line-height: 2.2; }
.entry p { margin: 0 0 1.15em; }
.entry h2 { font: 800 25px/1.25 var(--serif); margin: 1.6em 0 .5em; }
.entry h3 { font: 700 21px/1.3 var(--serif); margin: 1.4em 0 .4em; }
.ed-ur .entry h2, .ed-ur .entry h3 { font-family: var(--urdu-head); line-height: 2; }
.entry a { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; }
.entry blockquote { margin: 1.4em 0; padding: 4px 20px; border-inline-start: 4px solid var(--gold); font-style: italic; color: var(--ink-2); }
.entry ul, .entry ol { padding-inline-start: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry .ad { margin: 28px auto; }
.tags { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; }
.story-note { font-size: 13.5px; color: var(--muted); background: var(--paper); border-radius: 8px; padding: 12px 14px; margin: 24px 0; }
.related { margin-top: 32px; }

/* ---------- Pages ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font: 800 clamp(26px, 4vw, 38px)/1.2 var(--serif); margin: 0 0 6px; }
.ed-ur .page-head h1 { line-height: 1.9; }
.page-article { max-width: 820px; margin: 24px auto 48px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px clamp(18px, 4vw, 44px) 36px; }
.page-article .entry { font-size: 17px; }
.page-article .entry [dir="rtl"], .page-article .entry .urdu { font-family: var(--urdu-body); font-size: 19px; line-height: 2.1; }
.archive-desc { color: var(--ink-2); }
.grid-arch { margin-bottom: 24px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.pager .page-numbers { padding: 8px 14px; background: var(--card); border-radius: 8px; box-shadow: var(--shadow); font-weight: 600; }
.pager .current { background: var(--green); color: #fff; }
.empty { padding: 40px 0; color: var(--muted); }
.page-404 { text-align: center; padding: 60px 16px; }
.page-404 h1 { font: 800 96px/1 var(--serif); color: var(--green); margin: 0; }
.btn { display: inline-block; background: var(--green); color: #fff; padding: 10px 20px; border-radius: 99px; font-weight: 600; }
.btn:hover { color: #fff; background: var(--green-2); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1a14; color: #c9d1cc; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.site-footer h3 { color: #fff; font: 700 15px/1.3 var(--sans); text-transform: uppercase; letter-spacing: 1px; margin: 6px 0 14px; }
.ed-ur .site-footer h3 { font-family: var(--urdu-head); text-transform: none; letter-spacing: 0; font-size: 17px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); }
.brand-foot .brand-name { color: #fff; font-size: 24px; }
.brand-foot .brand-name b { color: var(--gold); }
.foot-about p { font-size: 14.5px; max-width: 420px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-block; padding: 5px 12px; border: 1px solid #2f4238; border-radius: 99px; font-size: 13px; }
.foot-bottom { border-top: 1px solid #22332a; font-size: 12.5px; color: #8fa097; }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; }

/* ---------- Comments (basic) ---------- */
.comment-list { list-style: none; padding: 0; }
.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }


/* ---------- Tools strip (homepage) ---------- */
.tstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
.tcard { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-top: 4px solid var(--green); min-width: 0; }
.tcard:hover { color: inherit; transform: translateY(-2px); transition: transform .15s; }
.tc-hijri { border-top-color: var(--gold); }
.tc-wx { border-top-color: #1d6fa5; }
.tc-qibla { border-top-color: var(--ink); }
.tc-k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ed-ur .tc-k { text-transform: none; letter-spacing: 0; font-size: 14px; }
.tc-v { font: 800 20px/1.25 var(--serif); display: flex; align-items: center; gap: 6px; }
.ed-ur .tc-v { font-family: var(--urdu-body); font-size: 19px; line-height: 1.7; }
.tc-s { font-size: 13px; color: var(--ink-2); }

/* ---------- Tool pages ---------- */
.tool { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px clamp(16px, 3.5vw, 36px) 32px; margin-top: 24px; min-width: 0; }
.tool-title { font: 800 clamp(25px, 3.6vw, 38px)/1.2 var(--serif); letter-spacing: -.6px; margin: 4px 0 6px; }
.ed-ur .tool-title { line-height: 1.9; letter-spacing: 0; }
.tool-date { color: var(--ink-2); margin: 0 0 16px; font-size: 15px; }
.tool-date b { color: var(--green); }
.tool-lead { font-size: 17px; color: var(--ink-2); max-width: 720px; }
.tool-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 18px 0; padding: 12px 14px; background: var(--paper); border-radius: var(--radius); }
.city-select { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.city-select label { font-weight: 600; font-size: 14px; }
.city-select select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 220px; }
.btn-sm { padding: 7px 14px; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); padding: 7px 14px; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.ftabs { display: inline-flex; background: var(--paper); border-radius: 99px; padding: 4px; margin: 0 0 18px; gap: 4px; flex-wrap: wrap; }
.ftabs a { padding: 7px 16px; border-radius: 99px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.ftabs a.on { background: var(--green); color: #fff; }

.ptiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.ptile { background: var(--green-soft); border-radius: 10px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; border: 2px solid transparent; }
.ptile .pt-name { font-size: 13.5px; color: var(--green); font-weight: 700; }
.ptile .pt-time { font: 800 19px/1.3 var(--serif); }
.ed-ur .ptile .pt-time { font-family: var(--urdu-body); font-size: 17px; line-height: 1.7; }
.ptile[data-k="sunrise"] { background: var(--gold-soft); }
.ptile[data-k="sunrise"] .pt-name { color: #8a6d12; }
.ptile.is-next { background: var(--green); border-color: var(--gold); }
.ptile.is-next .pt-name, .ptile.is-next .pt-time { color: #fff; }
.pnext { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.pnext .cd { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.ptiles-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ptiles-compact .ptile { padding: 8px 4px; }
.ptiles-compact .pt-time { font-size: 15px; }
.ed-ur .ptiles-compact .pt-time { font-size: 14px; }
.pw-date { font-size: 13.5px; color: var(--ink-2); margin: -6px 0 10px; line-height: 1.6; }
.pw-date b { color: var(--green); }
.pw-links { font-size: 13.5px; margin: 6px 0 0; }
.pw-links a { color: var(--green); font-weight: 600; }

.pfacts, .qfacts, .wx-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.pfacts > div, .qfacts > div, .wx-facts > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pfacts span, .qfacts span, .wx-facts span { font-size: 12.5px; color: var(--muted); }
.pfacts b, .qfacts b, .wx-facts b { font-size: 16px; }
.pfacts a { color: var(--green); }

.ptable-wrap { margin: 28px 0; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; font-variant-numeric: tabular-nums; }
.ptable th { background: var(--green); color: #fff; padding: 10px 8px; font-weight: 600; text-align: center; white-space: nowrap; }
.ptable td { padding: 9px 8px; text-align: center; border-top: 1px solid var(--line); white-space: nowrap; }
.ptable td:first-child { text-align: start; }
.ptable small { color: var(--muted); }
.ptable tbody tr:nth-child(even) { background: #faf9f6; }
.ptable tr.is-today td { background: var(--gold-soft); font-weight: 700; }
.ptable tr.is-fri td:first-child b { color: var(--green); }
.rtable tr.is-odd-night td:first-child b { color: var(--red); }
.ed-ur .ptable { font-size: 15px; }
.tnote { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.tool-text { margin: 28px 0; font-size: 17px; }
.ed-ur .tool-text { font-size: 18.5px; }
.tool-text h2 { margin-top: 0; }
.arabic { font-family: var(--arabic); font-size: 26px; line-height: 2; text-align: center; color: var(--green); margin: 10px 0 4px; }

.faq { margin: 28px 0; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }

.cgroup { margin: 24px 0; }
.cgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cgrid li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; font-size: 14.5px; }
.cgrid li a:first-child { flex: 1; font-weight: 600; }
.cgrid a.on { color: var(--red); }
.cg-shia { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-weight: 700; }
.nearby { margin: 28px 0; }
.featured-city .sec-title { font-size: 17px; margin-top: 18px; }

.rbanner { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #fff; border-radius: var(--radius); padding: 14px 18px; margin: 6px 0 14px; }
.rbanner b { font-size: 20px; color: #f3e3a6; }
.rb-note { font-size: 12.5px; opacity: .85; width: 100%; }

.hijri-today { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--gold-soft); border: 1px solid #ecdcae; border-radius: var(--radius); padding: 16px; margin: 8px 0 18px; }
.hijri-today span { font-size: 13px; color: #8a6d12; font-weight: 600; }
.hijri-today b { font: 800 26px/1.4 var(--serif); color: var(--green); }
.ed-ur .hijri-today b { font-family: var(--urdu-head); font-size: 24px; line-height: 2; }
.calnav { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; font-weight: 600; }
.calnav a { color: var(--green); }
.hcal { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; }
.hcal th { background: var(--green); color: #fff; padding: 8px 4px; font-size: 13px; font-weight: 600; }
.hcal td { vertical-align: top; height: 84px; border: 1px solid var(--line); padding: 6px; }
.hcal td.pad { background: #faf9f6; }
.hcal .hd { display: block; font: 800 22px/1 var(--serif); color: var(--ink); }
.hcal .gd { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.hcal .ev { display: block; font-size: 11.5px; line-height: 1.3; color: var(--red); font-weight: 600; margin-top: 4px; }
.ed-ur .hcal .ev { font-size: 12.5px; line-height: 1.6; }
.hcal td.is-fri .hd { color: var(--green); }
.hcal td.is-today { background: var(--gold-soft); outline: 2px solid var(--gold); outline-offset: -2px; }
.evlist ul { padding-inline-start: 1.2em; }
.evlist li { margin-bottom: 6px; }
.ymonths { margin: 24px 0; }

.qibla { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 24px; align-items: center; margin: 12px 0 20px; }
.compass { text-align: center; }
.compass svg { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }
.compass .dial { transition: transform .2s linear; }
.compass-msg { font-weight: 700; color: var(--green); min-height: 1.5em; }
.qfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qfacts b { font-size: 20px; }

.wxnow { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 20px; align-items: center; background: linear-gradient(160deg, #eaf3fb, #fff); border: 1px solid #d6e6f4; border-radius: var(--radius); padding: 18px; margin-bottom: 24px; }
.wx-main { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wx-main b { font: 800 56px/1 var(--serif); }
.wx-main sup { font-size: 22px; }
.wx-main span { color: var(--ink-2); font-weight: 600; }
.wx-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wx-facts > div { background: #fff; }
.wxhours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
.wxh { flex: none; width: 74px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wxh small { font-size: 11.5px; color: var(--muted); }
.wxh .wr, .wxd .wr { color: #1d6fa5; }
.wxdays { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.wxd { display: grid; grid-template-columns: 1.4fr 44px 1.4fr .9fr .7fr; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); }
.wxd:first-child { border-top: 0; background: #f4f9fd; }
.wxd .wd small { color: var(--muted); display: block; font-size: 12px; }
.wxd .wt b { font-size: 17px; }
.wxd .wt small { color: var(--muted); }
.wxgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.wxmini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 8px; }
.wxmini span { font-weight: 700; }
.wxmini b { font-size: 22px; }
.wxmini small { color: var(--muted); font-size: 12.5px; }

@media (max-width: 1024px) {
	.tstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qibla, .wxnow { grid-template-columns: 1fr; }
	.wx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wxgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wxd { grid-template-columns: 1.3fr 40px .9fr .6fr; }
	.wxd .wl { display: none; }
	.tool { padding: 18px 14px 26px; }
}
@media (max-width: 480px) {
	.tstrip { grid-template-columns: 1fr 1fr; gap: 10px; }
	.tcard { padding: 10px 12px; }
	.tc-v { font-size: 16px; }
	.city-select select { max-width: 160px; }
}

/* ---------- Print: only the timetable ---------- */
@media print {
	.topbar, .masthead, .ticker, .sidebar, .site-footer, .ad, .tool-bar, .share, .faq, .nearby, .ftabs, .crumbs, .pnext, .tstrip { display: none !important; }
	body { background: #fff; }
	.layout { display: block; }
	.tool { box-shadow: none; padding: 0; }
	.tscroll { overflow: visible; border: 0; }
	.ptable { min-width: 0; font-size: 11px; }
	.ptable th { background: #eee !important; color: #000; }
}


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
	.sticky-ad { position: static; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
	.menu-toggle { display: block; }
	.search { display: none; }
	.mast-in { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
	.brand-name { font-size: 24px; }
	.brand-mark { width: 40px; height: 40px; font-size: 17px; }
	.catbar { display: none; }
	.catbar.open { display: block; }
	.catbar ul { flex-direction: column; }
	.catbar a { border-bottom: 1px solid rgba(255,255,255,.1); }
	.grid, .grid-3 { grid-template-columns: 1fr; }
	.sidebar { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
	.today { font-size: 12px; }
	.hijri-top { display: none; }
	.row { grid-template-columns: 92px 1fr; }
	.entry { font-size: 17.5px; }
}
