/*
Theme Name: Compass Pakistan
Theme URI: https://compasspakistan.com
Author: Compass Pakistan
Author URI: https://compasspakistan.com
Description: A fast, lightweight news and magazine theme built for Compass Pakistan. Automatic home page (lead story, latest news, The Compass Brief, category sections, most read, explainers), story labels, key takeaways, expert review, update and correction notes, author pages and NewsArticle schema. No page builder, no jQuery, no web fonts.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compass
*/

/* ---------- Tokens ---------- */
:root {
	--green: #0b5d3b;
	--green-d: #08442b;
	--green-l: #e9f3ed;
	--ink: #16201c;
	--ink-2: #2c3833;
	--muted: #5d6863;
	--line: #e2e8e4;
	--soft: #f5f7f6;
	--bg: #fff;
	--red: #c8102e;
	--amber: #a5670f;
	--amber-l: #fff6e6;
	--serif: "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, "Noto Serif", "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--r: 6px;
	--gap: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 60px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }
.wrap { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.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: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; color: #fff; }
.center { text-align: center; }
.empty, .empty-state { padding: 48px 0; color: var(--muted); }
.empty-state h1 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin-bottom: 8px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--green-d); color: #cfe4d7; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.top-social { display: flex; gap: 14px; flex-wrap: wrap; }
.top-social a:hover { color: #fff; }

/* ---------- Masthead ---------- */
.masthead { background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--green); }
.wordmark:hover { color: var(--green); }
.wm-text { font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; color: var(--ink); line-height: 1; }
.custom-logo { max-height: 56px; width: auto; }
.tagline { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.hsearch { position: relative; }
.hsearch summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hsearch summary::-webkit-details-marker { display: none; }
.hsearch summary:hover, .hsearch[open] summary { border-color: var(--green); color: var(--green); }
.hsearch-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(420px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }

.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cdd6d1; border-radius: var(--r); background: #fff; color: var(--ink); }
.search-form input:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
.search-form button, .btn, .nl-form button { background: var(--green); color: #fff; border: 0; border-radius: var(--r); padding: 10px 18px; font-weight: 700; cursor: pointer; display: inline-block; }
.search-form button:hover, .btn:hover, .nl-form button:hover { background: var(--green-d); color: #fff; }

/* ---------- Main nav (scrolls sideways on small screens) ---------- */
.mainnav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-top: 3px solid var(--green); box-shadow: 0 1px 0 var(--line); }
.admin-bar .mainnav { top: 32px; }
.mainnav .wrap { overflow-x: auto; scrollbar-width: none; }
.mainnav .wrap::-webkit-scrollbar { display: none; }
.nav-list { display: flex; gap: 2px; white-space: nowrap; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 12px 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nav-list > li > a:hover { color: var(--green); }
.nav-list > .current-menu-item > a, .nav-list > .current-menu-ancestor > a, .nav-list > .current-category-ancestor > a { color: var(--green); border-bottom-color: var(--green); }
.nav-list .sub-menu { display: none; }

/* ---------- Market strip ---------- */
.market { background: var(--soft); border-top: 1px solid var(--line); font-size: 13.5px; }
.market-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; overflow-x: auto; scrollbar-width: none; }
.market-in::-webkit-scrollbar { display: none; }
.mk-list { display: flex; gap: 22px; white-space: nowrap; }
.mk-list li { display: flex; gap: 6px; align-items: baseline; }
.mk-label { color: var(--muted); }
.mk-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-up { color: #0f7a3d; }
.mk-down { color: var(--red); }
.mk-flat { color: var(--muted); }
.mk-asof { color: var(--muted); white-space: nowrap; font-size: 12.5px; }
.mk-asof a { color: var(--green); font-weight: 700; margin-left: 8px; }

/* ---------- Ads (reserved height avoids layout shift) ---------- */
.ad { margin: 20px auto; text-align: center; background: var(--soft); border-radius: var(--r); overflow: hidden; }
.ad-tag { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.ad-header { min-height: 120px; }
.ad-home { min-height: 280px; }
.ad-article { min-height: 280px; margin: 28px 0; }

/* ---------- Shared story pieces ---------- */
.story-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.kicker:hover { text-decoration: underline; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--ink); color: #fff; line-height: 1.5; }
.badge-analysis { background: #1d4e89; }
.badge-opinion { background: #6b3fa0; }
.badge-explainer, .badge-guide { background: var(--green); }
.badge-review { background: #8a4b14; }
.badge-interview { background: #36454f; }
.badge-sponsored { background: var(--amber-l); color: var(--amber); box-shadow: inset 0 0 0 1px #f0d29b; }
.story-title { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -0.005em; }
.story-title a:hover { color: var(--green); }
.story-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.story-meta .by { font-weight: 600; color: var(--ink-2); }
.story-sum { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.story-img { display: block; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.story-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.story:hover .story-img img { transform: scale(1.03); }
.ph { display: block; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--green-l), #d6e7dd); }

.story-lead .story-title { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin-top: 2px; }
.story-lead .story-img { margin-bottom: 14px; }
.story-lead .story-sum { font-size: 17px; }
.story-card .story-img { margin-bottom: 12px; }
.story-card .story-title { font-size: 19px; line-height: 1.25; }
.story-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; align-items: start; }
.story-row .story-img { order: 2; }
.story-row .story-img img, .story-row .ph { aspect-ratio: 3 / 2; }
.story-row .story-title { font-size: 17px; line-height: 1.3; }
.story-row .story-sum { font-size: 14.5px; }
.story-headline { padding: 12px 0; border-top: 1px solid var(--line); }
.story-headline:first-child { border-top: 0; padding-top: 0; }
.story-headline .story-title { font-size: 17px; line-height: 1.3; }
.story-headline .story-meta { margin-top: 4px; }
.is-sponsored .story-title { font-style: normal; }

/* ---------- Section heads ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 16px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 20px; font-weight: 800; letter-spacing: -0.01em; text-transform: none; }
.sec-title a:hover { color: var(--green); }
.sec-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green); }
.sec-more:hover { text-decoration: underline; }
.sec-intro { color: var(--muted); margin: -6px 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.chips a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chips a:hover, .chips a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--green); }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--green-l); color: var(--green-d); }

/* ---------- Home: top stories ---------- */
.top { display: grid; gap: var(--gap); padding-top: 24px; padding-bottom: 8px; }
.top-second { display: grid; gap: 18px; align-content: start; }
.top-second .story-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.top-second .story-row:last-child { border-bottom: 0; padding-bottom: 0; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.18); }
.latest-list { counter-reset: none; }
.latest-list li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.latest-list li:first-child { padding-top: 0; }
.latest-list time { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .03em; }
.latest-list a { font-weight: 600; line-height: 1.35; font-size: 15px; }

/* ---------- Home: The Compass Brief ---------- */
.brief { background: var(--green); color: #fff; margin: 28px 0 8px; padding: 28px 0 30px; }
.brief-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.brief-head h2 { font-family: var(--serif); font-size: 28px; }
.brief-head p { color: #cfe4d7; font-size: 15px; }
.brief-list { display: grid; gap: 20px; counter-reset: brief; }
.brief-list li { counter-increment: brief; position: relative; padding-left: 48px; }
.brief-list li::before { content: counter(brief); position: absolute; left: 0; top: -4px; font-family: var(--serif); font-size: 38px; font-weight: 700; color: #8fc6a6; line-height: 1; }
.brief-list h3 { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.brief-list h3 a:hover { color: #d6f0e0; text-decoration: underline; }
.brief-list p { color: #d9ebe0; margin-top: 6px; font-size: 15px; line-height: 1.5; }

/* ---------- Home: category sections ---------- */
.cat-sec { padding-top: 34px; }
.sec-body { display: grid; gap: var(--gap); }
.lay-feature .col-side, .lay-split .col-list { display: grid; gap: 16px; align-content: start; }
.lay-feature .col-side .story-row { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lay-feature .col-side .story-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lay-feature .col-main .story-title { font-size: clamp(21px, 2.2vw, 26px); }
.lay-split .col-cards { display: grid; gap: var(--gap); }
.lay-split .col-list { gap: 0; }
.card-grid, .lay-grid .sec-body { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- Home: most read + newsletter ---------- */
.duo { display: grid; gap: var(--gap); padding-top: 38px; }
.mr-list { counter-reset: mr; }
.mr-list li { counter-increment: mr; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mr-list li:first-child { padding-top: 0; }
.mr-list li::before { content: counter(mr); font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--green); line-height: 1; }
.mr-list h3 { font-family: var(--serif); font-size: 17px; line-height: 1.3; margin-top: 2px; }
.newsletter { background: var(--green-l); border-radius: 10px; padding: 26px; align-self: start; }
.newsletter h2 { font-family: var(--serif); font-size: 26px; }
.newsletter > p { color: var(--ink-2); margin: 8px 0 16px; }
.nl-form { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-form input { flex: 1 1 200px; min-width: 0; padding: 11px 12px; border: 1px solid #b9cdc1; border-radius: var(--r); }
.nl-small { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.nl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nl-cats a { display: inline-block; padding: 7px 14px; background: #fff; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--green); }
.nl-cats a:hover { background: var(--green); color: #fff; }

/* ---------- Home: explains + more ---------- */
.explains { background: var(--soft); margin-top: 40px; padding: 32px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.explains .sec-head { border-top-color: var(--green); }
.more-latest { padding-top: 36px; padding-bottom: 40px; }
.row-grid { display: grid; gap: 18px var(--gap); }
.row-grid .story-row { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.more-latest .center { margin-top: 26px; }

/* ---------- Archives ---------- */
.arch-wrap { padding-top: 22px; padding-bottom: 40px; }
.arch-head { padding-bottom: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.arch-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin: 6px 0 8px; }
.arch-desc { color: var(--muted); max-width: 720px; margin-bottom: 16px; }
.arch-desc p { margin: 0; }
.arch-head .search-form { max-width: 560px; margin-bottom: 18px; }
.arch-lead { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.arch-lead .story-lead { display: grid; gap: 20px; }
.arch-list { display: grid; gap: 0; max-width: 880px; }
.arch-list .story-row { padding: 20px 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) 150px; }
.arch-list .story-row:first-child { padding-top: 0; }
.author-head { border-bottom: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #a3aea8; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }

.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 700; font-size: 14px; }
.page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.page-numbers.dots { border: 0; }

/* ---------- Single article ---------- */
.article { padding-top: 20px; }
.art-head { max-width: 820px; }
.art-head .crumbs { margin-bottom: 14px; }
.art-title { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -0.012em; margin-top: 4px; }
.art-dek { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); margin-top: 14px; }
.sponsor-note { background: var(--amber-l); color: #6e4509; border-radius: var(--r); padding: 8px 12px; font-size: 14px; margin: 6px 0 4px; }
.byline { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.by-avatar { border-radius: 50%; flex: none; width: 44px; height: 44px; object-fit: cover; background: var(--soft); }
.by-names { font-weight: 600; }
.by-names a { color: var(--green); }
.by-names a:hover { text-decoration: underline; }
.by-role { font-weight: 400; color: var(--muted); }
.by-sep { display: inline-block; font-weight: 400; color: var(--muted); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.by-dates { color: var(--muted); margin-top: 2px; }
.by-read::before { content: "·"; margin: 0 8px; }
.by-updated { color: var(--ink-2); margin-top: 2px; }
.reviewed { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; padding: 6px 12px; background: var(--green-l); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--green-d); }
.reviewed span { font-weight: 400; color: var(--ink-2); }
.reviewed::before { content: "✓"; font-weight: 800; color: var(--green); }
.art-figure { margin: 22px 0 0; max-width: 1040px; }
.art-figure img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; }
.art-figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.credit { color: #8a958f; }
.art-layout { display: grid; gap: 40px; margin-top: 26px; }
.art-main { min-width: 0; max-width: 720px; }

.takeaways { background: var(--green-l); border-left: 4px solid var(--green); border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; margin-bottom: 26px; }
.takeaways h2 { font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green-d); margin-bottom: 10px; }
.takeaways ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }
.takeaways li { line-height: 1.5; }
.takeaways li::marker { color: var(--green); }

.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: #1d2723; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--sans); font-size: 24px; font-weight: 800; line-height: 1.3; margin-top: 1.6em; color: var(--ink); }
.prose h3 { font-family: var(--sans); font-size: 20px; font-weight: 800; margin-top: 1.4em; color: var(--ink); }
.prose a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--green-d); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); font-size: 1.08em; color: var(--ink-2); }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-element-caption { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose img { border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.prose th { background: var(--soft); font-weight: 700; }
.prose .wp-block-table table { display: table; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.disclaimer { margin-top: 28px; font-size: 14px; color: var(--muted); font-style: italic; }
.sources { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.sources h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.sources ul { list-style: disc; padding-left: 20px; display: grid; gap: 4px; }
.sources a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.correction { margin-top: 22px; padding: 12px 16px; background: var(--amber-l); border-left: 4px solid var(--amber); font-size: 15px; color: #5b3a08; }
.tags { margin-top: 26px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-weight: 800; font-size: 14px; margin-right: 4px; }
.share-btn { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.share-btn:hover { border-color: var(--green); color: var(--green); }
.share-whatsapp { background: #e7f7ee; border-color: #c4ebd3; color: #0c6b3a; }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 26px; padding: 22px; background: var(--soft); border-radius: 10px; }
.ab-avatar { border-radius: 50%; flex: none; width: 80px; height: 80px; object-fit: cover; background: #e3e9e6; }
.ab-name { font-family: var(--serif); font-size: 22px; }
.ab-name a:hover { color: var(--green); }
.ab-role { color: var(--green); font-weight: 700; font-size: 14px; margin-top: 2px; }
.ab-bio { margin-top: 8px; color: var(--ink-2); }
.ab-exp { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.ab-links { display: flex; gap: 14px; margin-top: 10px; font-size: 14px; font-weight: 700; }
.ab-links a { color: var(--green); }
.author-head .author-box { margin-top: 6px; }
.author-head .ab-name { font-size: 32px; }
.trust-line { margin-top: 18px; font-size: 14px; color: var(--muted); }
.trust-line a { color: var(--green); font-weight: 600; }

.art-side .side-box { position: sticky; top: 72px; }
.related { padding-top: 40px; padding-bottom: 44px; }
.page-links { margin-top: 20px; font-weight: 700; }

/* Pages */
.page-art { max-width: 780px; padding-top: 30px; padding-bottom: 50px; }
.page-art .prose { margin-top: 22px; }
.notfound .nf-code { font-family: var(--serif); font-size: 80px; font-weight: 700; color: var(--green); line-height: 1; }
.notfound > p { margin: 14px 0 20px; color: var(--ink-2); }
.notfound .nav-list { flex-wrap: wrap; margin-top: 24px; white-space: normal; }
.notfound .nav-list a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }

/* Comments */
.comments { margin-top: 34px; }
.comment-list { display: grid; gap: 18px; margin: 16px 0 26px; }
.comment-list .children { margin: 14px 0 0 24px; display: grid; gap: 14px; }
.comment-body { font-size: 15px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-author { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-form { display: grid; gap: 12px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; 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; border: 1px solid #cdd6d1; border-radius: var(--r); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .submit { background: var(--green); color: #fff; border: 0; border-radius: var(--r); padding: 10px 18px; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-foot { background: #0f1915; color: #b9c6bf; margin-top: 30px; font-size: 15px; }
.foot-grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.foot-name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; }
.foot-brand p { margin-top: 10px; max-width: 420px; line-height: 1.6; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-weight: 700; font-size: 14px; }
.foot-social a, .foot-list a { color: #dde6e1; }
.foot-social a:hover, .foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-h { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8fc6a6; margin-bottom: 12px; }
.foot-list { display: grid; gap: 8px; }
.foot-list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-base { border-top: 1px solid #22302a; padding-top: 16px; padding-bottom: 22px; font-size: 13.5px; color: #8a9891; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
	.wrap { padding-left: 20px; padding-right: 20px; }
	.top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.top-lead { grid-column: 1 / -1; }
	.brief-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
	.lay-feature .sec-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
	.lay-split .col-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.duo { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
	.row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.arch-lead .story-lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
	.arch-lead .story-lead .story-img { margin-bottom: 0; }
	.foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
	:root { --gap: 28px; }
	.top { grid-template-columns: minmax(0, 5fr) minmax(0, 3.6fr) minmax(0, 2.8fr); }
	.top-lead { grid-column: auto; }
	.top-latest { border-left: 1px solid var(--line); padding-left: 24px; }
	.lay-split .sec-body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.lay-split .col-list { border-left: 1px solid var(--line); padding-left: 24px; }
	.art-layout { grid-template-columns: minmax(0, 720px) minmax(0, 300px); justify-content: space-between; }
	.nav-list .menu-item-has-children:hover > .sub-menu, .nav-list .menu-item-has-children:focus-within > .sub-menu { display: block; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 6px 0; }
	.mainnav .wrap { overflow: visible; }
	.sub-menu a { display: block; padding: 8px 16px; font-size: 14px; font-weight: 600; }
}

@media (max-width: 1023px) {
	.art-side { display: none; }
}

@media (max-width: 699px) {
	.masthead-in { padding-top: 12px; padding-bottom: 10px; }
	.wm-text { font-size: 24px; }
	.tagline { display: none; }
	.hsearch summary span { display: none; }
	.hsearch summary { padding: 9px; }
	.top-today, .top-social { display: none; }
	.story-row, .arch-list .story-row { grid-template-columns: minmax(0, 1fr) 104px; }
	.story-row .story-sum { display: none; }
	.byline { align-items: flex-start; }
	.by-sep { display: block; margin: 2px 0 0; padding: 0; border: 0; }
	.author-box { flex-direction: column; }
	.prose { font-size: 18px; }
	.mk-asof { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .mainnav, .market, .hsearch, .ad, .share, .art-side, .related, .site-foot, .comments { display: none !important; }
	.prose { font-size: 12pt; }
}
