/*
Theme Name: Tech Prolonged
Theme URI: https://techprolonged.com
Author: Tech Prolonged
Description: Fast editorial news theme for Tech Prolonged: global gadget news and Pakistan telecom coverage. Dark mode, AdSense slots, key points, no jQuery.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techprolonged
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--surface: #f3f5f8;
	--ink: #11151b;
	--muted: #5a6370;
	--line: #e2e6eb;
	--brand: #1463af;
	--brand-soft: #e8f0f9;
	--pk: #0b7a43;
	--pk-soft: #e7f4ec;
	--footer: #0d1f33;
	--font-display: "Archivo", "Inter", system-ui, sans-serif;
	--font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-read: "Source Serif 4", Georgia, "Times New Roman", serif;
	--radius: 6px;
	--wrap: 1240px;
	color-scheme: light;
}
html.dark {
	--bg: #0e1217;
	--surface: #161b22;
	--ink: #eef1f5;
	--muted: #9ba5b2;
	--line: #262d36;
	--brand: #5aa2ea;
	--brand-soft: #15263a;
	--pk: #43c483;
	--pk-soft: #12271c;
	--footer: #080b0f;
	color-scheme: dark;
}
html.dark .custom-logo,
html.dark .site-logo-img { filter: brightness(0) invert(1); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	overflow-x: clip; /* safety net: one wide element must never make the whole page scroll sideways */
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
button { font-family: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--brand); color: #fff; border-radius: var(--radius);
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Kickers, meta ---------- */
.kicker {
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	color: var(--brand);
}
.kicker.is-pk { color: var(--pk); }
.meta { font-size: 13px; color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.section-title {
	margin: 0 0 4px; padding-bottom: 12px; border-bottom: 3px solid var(--ink);
	font-size: 28px; font-weight: 800; letter-spacing: -0.01em;
}
.label-title {
	margin: 0 0 4px; padding-bottom: 10px; border-bottom: 3px solid var(--ink);
	font-family: var(--font-ui); font-size: 12px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .1em; color: var(--muted);
}
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
	padding: 0 28px; border-radius: 999px; background: var(--brand); color: #fff;
	font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
}
.btn:hover, .btn:focus-visible { color: #fff; filter: brightness(1.1); }
html.dark .btn, html.dark .btn:hover, html.dark .page-numbers.current, html.dark .chip-nav .current-menu-item a { color: #0b1420; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar-date { font-weight: 600; color: var(--ink); }
.trending { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.trending-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.trending a { color: var(--muted); }
.trending a:hover { color: var(--brand); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-branding a { display: block; }
.custom-logo, .site-logo-img { height: 40px; width: auto; }
.site-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--brand); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.primary-nav a { display: block; padding: 8px 0; font-weight: 600; font-size: 15px; }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-category-ancestor > a { color: var(--brand); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute; top: 100%; left: -14px; min-width: 200px; padding: 8px 0;
	background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden;
	transform: translateY(4px); transition: opacity .15s, transform .15s; z-index: 60;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 8px 16px; font-weight: 500; font-size: 14px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--bg); color: var(--ink); display: inline-flex; align-items: center;
	justify-content: center; cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.icon-sun { display: none; }
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }

.progress { height: 3px; background: transparent; }
.progress span { display: block; height: 3px; width: 0; background: var(--brand); }

/* Search panel */
.search-panel { border-top: 1px solid var(--line); background: var(--surface); }
.search-panel[hidden] { display: none; }
.search-panel .wrap { padding-top: 16px; padding-bottom: 16px; }
.search-form { display: flex; gap: 10px; max-width: 720px; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--bg); color: var(--ink); font: inherit; font-size: 16px;
}
.search-field:focus { outline: 2px solid var(--brand); border-color: var(--brand); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.drawer-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg);
	padding: 16px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px;
}
.admin-bar .drawer-panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .drawer-panel { top: 46px; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a { display: block; padding: 12px 0; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.drawer-nav .sub-menu a { padding-left: 16px; font-weight: 500; font-size: 15px; }

/* Section chips under header on phones */
.chip-nav { display: none; }

/* ---------- Ads ---------- */
.ad-slot { margin: 40px auto; text-align: center; overflow: hidden; }
.ad-slot::before {
	content: "Advertisement"; display: block; margin-bottom: 6px; font-size: 10px;
	letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ad-header { max-width: 970px; min-height: 110px; }
.ad-home { max-width: 970px; min-height: 110px; }
.ad-sidebar { width: 300px; max-width: 100%; min-height: 270px; margin: 0 auto; }
.ad-sidebar-tall { width: 300px; max-width: 100%; min-height: 620px; margin: 0 auto; }
.ad-article { min-height: 270px; margin: 32px 0; font-family: var(--font-ui); }
.ad-mobile { display: none; }

/* ---------- Homepage: top stories ---------- */
.site-main { padding-top: 32px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 32px; }
.lead { display: flex; flex-direction: column; gap: 14px; }
.lead-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.lead-title { margin: 0; font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; }
.lead-dek { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 720px; }
.card-mini { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card-mini:last-child { border-bottom: 0; }
.card-mini-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-mini-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.card-mini-img img { width: 104px; height: 78px; object-fit: cover; border-radius: 4px; }

/* ---------- Pakistan section ---------- */
.pk-section { background: var(--pk-soft); border-radius: 10px; padding: 28px 28px 32px; }
.pk-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pk-head > nav, .archive-head nav { min-width: 0; max-width: 100%; }
.pk-title { margin: 0; font-size: 28px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.pk-title::before { content: ""; width: 10px; height: 26px; background: var(--pk); border-radius: 2px; }
.pk-title a:hover { color: var(--pk); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a {
	display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--bg);
	border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.chips a:hover { border-color: var(--pk); color: var(--pk); }
.pk-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.pk-main { display: flex; flex-direction: column; gap: 12px; }
.pk-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.pk-main-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.pk-list article { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pk-list article:first-child { padding-top: 0; }
.pk-list h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; }
.pk-more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 14px; color: var(--pk); }

/* ---------- River + sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; margin-top: 48px; }
.card-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.card-row.no-img { grid-template-columns: minmax(0, 1fr); }
.card-row-img img { width: 240px; height: 150px; object-fit: cover; border-radius: var(--radius); }
.card-row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-row-title { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.2; }
.card-row-excerpt { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.more-wrap { display: flex; justify-content: center; padding-top: 28px; }
.sidebar { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.sidebar .widget { margin: 0; }
.sidebar .widget-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); font-family: var(--font-ui); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.most-read ol { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.most-read li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: mr; }
.most-read li:last-child { border-bottom: 0; }
.most-read li::before {
	content: counter(mr); font-family: var(--font-display); font-size: 30px; font-weight: 800;
	color: var(--brand); line-height: 1; width: 26px; flex: none;
}
.most-read a { font-weight: 600; font-size: 15px; line-height: 1.35; }
.promo { background: var(--brand-soft); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.promo h2 { margin: 0; font-size: 20px; font-weight: 800; }
.promo p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Guides ---------- */
.guides { margin-top: 56px; }
.guides .section-title { margin-bottom: 20px; }
.box-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card-box { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card-box img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-box-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-box.no-img .card-box-body { padding-top: 18px; }
.card-box h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }

/* ---------- Archive header ---------- */
.archive-head { padding: 8px 0 24px; border-bottom: 3px solid var(--ink); }
.archive-head.is-pk { border-bottom-color: var(--pk); }
.archive-title { margin: 6px 0 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.archive-desc { margin: 10px 0 0; color: var(--muted); max-width: 760px; }
.archive-head .chips { margin-top: 16px; }
.archive-list .with-sidebar { margin-top: 8px; }

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

/* ---------- Single article ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.article-head { max-width: 860px; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
	padding: 5px 10px; border-radius: 4px; background: var(--brand-soft); color: var(--brand);
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.pill.is-pk { background: var(--pk-soft); color: var(--pk); }
.entry-title { margin: 0; font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.dek { margin: 0; font-size: 21px; line-height: 1.5; color: var(--muted); }
.byline-bar {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
	padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.byline { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.byline img { width: 40px; height: 40px; border-radius: 999px; }
.byline-text { display: flex; flex-direction: column; gap: 2px; }
.byline-name { font-weight: 700; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button {
	height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--bg); color: var(--ink); display: inline-flex; align-items: center;
	font-size: 13px; font-weight: 600; cursor: pointer;
}
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); }
.featured { margin: 28px 0 0; }
.featured img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); }
.featured figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.article-layout { display: flex; flex-wrap: wrap; gap: 56px; margin-top: 36px; align-items: flex-start; }
.article-main { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.article-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 96px; }
.article-aside a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.35; }
.article-aside a:last-child { border-bottom: 0; }

.key-points { background: var(--surface); border-radius: 8px; padding: 20px 24px; margin-bottom: 28px; }
.key-points h2 { margin: 0 0 10px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.key-points ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }

/* Content typography (classic editor + blocks) */
.entry-content { font-family: var(--font-read); font-size: 20px; line-height: 1.7; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 24px; }
.entry-content h2 { font-size: 30px; font-weight: 800; margin: 40px 0 16px; }
.entry-content h3 { font-size: 23px; font-weight: 800; margin: 32px 0 12px; }
.entry-content h4 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.entry-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: 4px; }
.entry-content blockquote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand);
	font-style: italic; color: var(--muted);
}
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--surface); font-weight: 700; }
.entry-content pre, .entry-content code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; background: var(--surface); border-radius: 4px; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content code { padding: 2px 5px; }
.entry-content iframe, .entry-content embed, .entry-content video { width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.wp-caption, .entry-content figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.wp-caption-text, .entry-content figcaption { font-family: var(--font-ui); font-size: 13px; color: var(--muted); margin-top: 8px; }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-item { margin: 0; }
.page-links { font-family: var(--font-ui); font-weight: 600; display: flex; gap: 10px; flex-wrap: wrap; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.post-tags-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.post-tags a { padding: 7px 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; }
.author-box { display: flex; gap: 16px; padding: 22px; border-radius: 8px; background: var(--brand-soft); }
.author-box img { width: 52px; height: 52px; border-radius: 999px; flex: none; }
.author-box > div { min-width: 0; overflow-wrap: anywhere; }
.author-box p a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.author-box-name { font-weight: 700; font-size: 16px; }
.author-box p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.related { margin-top: 56px; }
.related .section-title { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related-grid article { display: flex; flex-direction: column; gap: 10px; }
.related-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.related-grid h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; }

/* Comments (native fallback; Disqus replaces this) */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--bg); color: var(--ink); font: inherit;
}
.comment-form .submit { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; cursor: pointer; }

/* Pages & 404 */
.page-content { max-width: 760px; }
.not-found { padding: 40px 0; max-width: 720px; }
.not-found h1 { font-size: 44px; margin: 0 0 12px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; background: var(--footer); color: #c9d3df; }
.site-footer a { color: #c9d3df; }
.site-footer a:hover { color: #ffffff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.footer-about { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-about img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.6; color: #9fb0c3; }
.footer-col h2 { margin: 0 0 12px; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom { border-top: 1px solid #1f3550; padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: #8ea1b6; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.primary-nav > ul { gap: 4px 18px; }
	.primary-nav a { font-size: 14px; }
}
@media (max-width: 1023px) {
	.primary-nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.hero, .pk-grid, .with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article-aside { position: static; }
	.chip-nav { display: block; border-bottom: 1px solid var(--line); background: var(--bg); }
	.chip-nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 10px 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.chip-nav a { display: inline-block; padding: 8px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; }
	.chip-nav .current-menu-item a { background: var(--brand); color: #fff; }
}
@media (max-width: 760px) {
	body { font-size: 15px; }
	.wrap { padding: 0 16px; }
	.topbar { display: none; }
	.site-header .wrap { padding-top: 8px; padding-bottom: 8px; gap: 12px; }
	.custom-logo, .site-logo-img { height: 30px; }
	.header-actions { gap: 2px; }
	.icon-btn { border: 0; }
	.site-main { padding-top: 16px; }
	.lead-title { font-size: 28px; }
	.lead-dek { font-size: 15px; }
	.card-mini-title { font-size: 17px; }
	.card-mini-img img { width: 96px; height: 72px; }
	.pk-section { padding: 18px 16px; margin: 0 -4px; }
	.pk-title { font-size: 22px; }
	.pk-main-title { font-size: 19px; }
	.pk-list h3 { font-size: 16px; }
	.pk-head > nav { flex: 1 1 100%; }
	.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.chips li { flex: none; }
	.chips a { white-space: nowrap; }
	.section-title { font-size: 22px; }
	.card-row { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
	.card-row-img img { width: 110px; height: 78px; border-radius: 4px; }
	.card-row-title { font-size: 16px; line-height: 1.25; }
	.card-row-excerpt { display: none; }
	.box-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.entry-content { font-size: 18px; }
	.entry-content table { display: block; overflow-x: auto; }
	.dek { font-size: 17px; }
	.byline-bar { flex-direction: column; align-items: flex-start; }
	.ad-header, .ad-home { display: none; }
	.ad-mobile { display: block; width: 320px; max-width: 100%; min-height: 120px; margin: 20px auto; }
	.alignleft, .alignright { float: none; margin: 0 0 16px; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; position: relative; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .site-header, .ad-slot, .share, .article-aside, .related, .site-footer, .comments-area { display: none !important; }
}
