/*
Theme Name: نبض خبر
Theme URI: https://example.com/nabz-khabar
Author: OpenAI
Author URI: https://openai.com/
Description: پوسته خبری فارسی، سریع و کاملاً واکنش‌گرا با صفحه نخست حرفه‌ای، خبر فوری، تیترهای مهم، آخرین اخبار و صفحات کامل نوشته و آرشیو.
Version: 1.1.0
Requires at least: 6.4
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: nabz-khabar
Tags: news, blog, rtl-language-support, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

:root {
  --primary: #a20f22;
  --primary-700: #7c0917;
  --primary-50: #fff3f5;
  --ink: #10151b;
  --text: #252c34;
  --muted: #717983;
  --line: #e5e8eb;
  --line-strong: #d9dde1;
  --surface: #ffffff;
  --surface-soft: #f7f8f9;
  --paper: #f3f5f7;
  --dark-surface: #171d24;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 8px 25px rgba(15, 23, 42, .06);
  --shadow: 0 20px 55px rgba(15, 23, 42, .12);
  --container: 1220px;
  --header-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  direction: rtl;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: Vazirmatn, IRANSansX, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.container--article { width: min(920px, calc(100% - 40px)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; top: 12px; right: 12px; z-index: 99999; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: var(--shadow); }

.top-strip { background: var(--ink); color: #d4d8dd; }
.top-strip__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .72rem; }
.top-strip p { margin: 0; }
.top-strip time { color: #fff; white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(217,221,225,.9);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .03);
  backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 32px; }
.header-main { min-height: var(--header-height); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand-wrap { min-width: max-content; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; gap: 12px; }
.custom-logo { max-height: 58px; width: auto; }
.brand__mark { position: relative; width: 38px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--primary); box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 26%, transparent); transform: skew(-5deg); }
.brand__mark::before, .brand__mark::after, .brand__mark > span { content: ""; position: absolute; width: 4px; border-radius: 4px; background: #fff; transform: skew(5deg); }
.brand__mark::before { height: 15px; right: 9px; bottom: 10px; }
.brand__mark::after { height: 24px; right: 17px; bottom: 10px; }
.brand__mark > span { height: 31px; right: 25px; bottom: 10px; }
.brand__text { display: grid; line-height: 1.35; }
.brand__text strong { color: var(--ink); font-size: 1.38rem; font-weight: 900; letter-spacing: -.045em; }
.brand__text small { max-width: 210px; color: var(--muted); font-size: .67rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.desktop-nav .menu, .mobile-nav .menu, .footer-grid .menu, .footer-categories { list-style: none; margin: 0; padding: 0; }
.desktop-nav > .menu { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.desktop-nav li { position: relative; }
.desktop-nav a { position: relative; display: block; padding: 29px 0; color: #404750; font-size: .83rem; font-weight: 800; white-space: nowrap; }
.desktop-nav > .menu > li > a::after { content: ""; position: absolute; right: 0; bottom: 19px; width: 0; height: 2px; border-radius: 2px; background: var(--primary); transition: width .2s ease; }
.desktop-nav .current-menu-item > a, .desktop-nav .current_page_item > a, .desktop-nav a:hover { color: var(--primary); }
.desktop-nav > .menu > li:hover > a::after, .desktop-nav > .menu > .current-menu-item > a::after, .desktop-nav > .menu > .current_page_item > a::after { width: 100%; }
.desktop-nav .sub-menu { position: absolute; top: calc(100% - 8px); right: -12px; display: none; min-width: 220px; list-style: none; margin: 0; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.desktop-nav li:hover > .sub-menu, .desktop-nav li:focus-within > .sub-menu { display: block; }
.desktop-nav .sub-menu a { padding: 9px 12px; border-radius: 9px; }
.desktop-nav .sub-menu a:hover { background: var(--primary-50); }
.header-actions { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.icon-btn:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 34%, var(--line)); background: var(--primary-50); transform: translateY(-1px); }
.icon-btn svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.mobile-menu-btn { display: none; }

.search-panel { border-top: 1px solid var(--line); background: rgba(255,255,255,.98); padding: 24px 0; box-shadow: 0 22px 35px rgba(15, 23, 42, .07); }
.search-panel__inner { display: grid; grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); align-items: center; gap: 30px; }
.search-panel__heading { display: grid; gap: 2px; }
.search-panel__heading strong { color: var(--ink); font-size: 1rem; }
.search-panel__heading span { color: var(--muted); font-size: .76rem; }
.search-form { display: flex; gap: 8px; width: 100%; }
.search-form input { min-width: 0; flex: 1; height: 48px; padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--ink); }
.search-form input::placeholder { color: #9299a1; }
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent); outline: 0; }
.search-form button, .button-link, input[type="submit"] { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--primary); color: #fff; padding: 10px 22px; font-weight: 900; transition: background .2s ease, transform .2s ease; }
.search-form button:hover, .button-link:hover, input[type="submit"]:hover { background: var(--primary-700); color: #fff; transform: translateY(-1px); }

.nav-overlay { position: fixed; inset: 0; z-index: 89; background: rgba(12,17,23,.54); backdrop-filter: blur(3px); }
.mobile-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(390px, 88vw); overflow-y: auto; overscroll-behavior: contain; padding: max(18px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom)); background: #fff; box-shadow: -28px 0 70px rgba(15, 23, 42, .24); }
.admin-bar .mobile-nav { top: 32px; }
.mobile-nav__head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mobile-nav__head strong { color: var(--ink); font-size: 1.15rem; font-weight: 900; }
.mobile-nav__close { flex: 0 0 44px; }
.mobile-nav__search { margin: 18px 0; }
.mobile-nav__search .search-form { display: grid; grid-template-columns: 1fr auto; }
.mobile-nav__search .search-form button { padding-inline: 15px; }
.mobile-nav__menu .menu { display: grid; }
.mobile-nav__menu li { list-style: none; }
.mobile-nav__menu a { display: flex; align-items: center; min-height: 50px; padding: 11px 4px; border-bottom: 1px solid var(--line); color: #303740; font-weight: 800; }
.mobile-nav__menu .current-menu-item > a, .mobile-nav__menu .current_page_item > a { color: var(--primary); }
.mobile-nav__menu .sub-menu { list-style: none; margin: 0; padding: 0 16px 4px 0; }
.mobile-nav__menu .sub-menu a { min-height: 43px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.mobile-nav__footer { margin-top: 22px; padding: 16px; border-radius: 13px; background: var(--surface-soft); color: var(--muted); font-size: .76rem; }

.breaking-news { background: #fff; border-bottom: 1px solid var(--line); }
.breaking-news__inner { min-height: 56px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.breaking-news strong { padding: 6px 11px; border-radius: 8px; background: var(--primary); color: #fff; font-size: .72rem; line-height: 1.4; }
.breaking-news__track { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #303740; font-size: .84rem; font-weight: 800; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 12%, transparent); }

.topic-rail { background: #fff; border-bottom: 1px solid var(--line); }
.topic-rail__inner { min-height: 58px; display: flex; align-items: center; gap: 16px; overflow: hidden; }
.topic-rail__label { flex: 0 0 auto; color: var(--ink); font-size: .75rem; font-weight: 900; }
.topic-rail__scroll { display: flex; align-items: center; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; padding-block: 9px; }
.topic-rail__scroll::-webkit-scrollbar { display: none; }
.topic-rail__scroll a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: #4a525c; font-size: .73rem; font-weight: 800; white-space: nowrap; }
.topic-rail__scroll a:hover { border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); background: var(--primary-50); color: var(--primary); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .78fr); gap: 20px; padding-block: 28px 38px; }
.hero-story { min-height: 570px; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); background: #111; box-shadow: var(--shadow); }
.hero-story__image { position: absolute; inset: 0; }
.hero-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.hero-story:hover img { transform: scale(1.025); }
.hero-story__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,9,12,.03) 15%, rgba(7,9,12,.25) 45%, rgba(7,9,12,.96) 100%); }
.hero-story__content { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: clamp(24px, 3.2vw, 42px); color: #fff; }
.hero-story h1 { margin: 12px 0 10px; max-width: 850px; font-size: clamp(1.8rem, 3vw, 2.9rem); line-height: 1.48; letter-spacing: -.05em; text-wrap: balance; }
.hero-story h1 a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.hero-story p { max-width: 760px; margin: 0 0 16px; color: #e4e8eb; font-size: .92rem; }
.category { display: inline-flex; align-items: center; color: var(--primary); font-size: .74rem; font-weight: 900; }
.category--light { color: #fff; background: var(--primary); border-radius: 8px; padding: 4px 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .72rem; }
.meta span + span { position: relative; }
.meta span + span::before { content: ""; position: absolute; top: 50%; right: -10px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; transform: translateY(-50%); }
.meta--light { color: #dce0e4; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.side-story { display: grid; grid-template-rows: 190px 1fr; overflow: hidden; border: 1px solid rgba(229,232,235,.8); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.side-story:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.10); }
.side-story__image { display: block; overflow: hidden; }
.side-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.side-story:hover img { transform: scale(1.035); }
.side-story__content { padding: 17px 20px 19px; }
.side-story h2 { margin: 6px 0 10px; font-size: 1.07rem; line-height: 1.72; letter-spacing: -.02em; }

.content-layout, .archive-layout, .single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; }
.content-layout { padding-bottom: 74px; }
.archive-layout { padding-block: 46px 78px; }
.main-column { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.eyebrow { color: var(--primary); font-size: .72rem; font-weight: 900; }
.eyebrow--light { color: #ffbec8; }
.section-heading h2, .sidebar-title h2 { margin: 2px 0 0; color: var(--ink); font-size: 1.55rem; line-height: 1.5; letter-spacing: -.04em; }
.text-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--primary); font-size: .79rem; font-weight: 900; white-space: nowrap; }
.text-link::after { content: "←"; margin-right: 7px; font-size: 1rem; }
.news-list { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.news-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; padding: 20px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.news-row:last-child { border-bottom: 0; }
.news-row:hover { background: #fcfcfd; }
.news-row__image { display: block; min-height: 170px; overflow: hidden; border-radius: 14px; background: #e9ecef; }
.news-row__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-row:hover img { transform: scale(1.03); }
.news-row__body { align-self: center; min-width: 0; }
.news-row h3 { margin: 6px 0 8px; color: var(--ink); font-size: 1.18rem; line-height: 1.72; letter-spacing: -.025em; }
.news-row p { margin: 0 0 13px; color: var(--muted); font-size: .85rem; line-height: 1.9; }

.sidebar { display: grid; align-content: start; gap: 20px; }
.sidebar-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.sidebar-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sidebar-title h2 { font-size: 1.18rem; }
.sidebar-news-list { display: grid; }
.sidebar-news-item { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sidebar-news-item:first-child { padding-top: 0; }
.sidebar-news-item:last-child { padding-bottom: 0; border-bottom: 0; }
.sidebar-news-item__image { height: 70px; overflow: hidden; border-radius: 10px; background: #eceff1; }
.sidebar-news-item__image img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-news-item h3 { margin: 0 0 4px; color: var(--ink); font-size: .83rem; line-height: 1.65; }
.sidebar-news-item time { color: var(--muted); font-size: .68rem; }
.newsletter { background: linear-gradient(145deg, #fff 0%, var(--primary-50) 100%); }
.newsletter h2 { margin: 4px 0 8px; color: var(--ink); font-size: 1.2rem; line-height: 1.6; }
.newsletter p { margin: 0 0 16px; color: var(--muted); font-size: .8rem; }
.newsletter .search-form { display: grid; }
.newsletter .search-form button { width: 100%; }
.category-links { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.category-links li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; border-bottom: 1px solid var(--line); color: #414953; font-size: .82rem; }
.category-links li:last-child { border-bottom: 0; }
.category-links a { flex: 1; font-weight: 800; }
.category-links .count { color: var(--muted); }
.widget ul { margin: 0; padding-right: 18px; }

.feature-band { margin-top: 4px; padding-block: 58px; background: var(--dark-surface); color: #fff; }
.feature-band__inner { display: grid; grid-template-columns: minmax(240px,.72fr) minmax(0,1.28fr); gap: 42px; align-items: center; }
.feature-band__intro h2 { margin: 6px 0 10px; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.55; letter-spacing: -.045em; }
.feature-band__intro p { max-width: 460px; margin: 0; color: #b9c0c7; font-size: .88rem; }
.feature-band__intro a { display: inline-flex; align-items: center; min-height: 42px; margin-top: 18px; border-bottom: 1px solid #fff; font-weight: 900; }
.feature-band__story { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: center; background: #222a33; border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 17px; }
.feature-band__story > a { height: 225px; overflow: hidden; border-radius: 14px; }
.feature-band__story img { width: 100%; height: 100%; object-fit: cover; }
.feature-band__story h3 { margin: 0 0 8px; font-size: 1.36rem; line-height: 1.72; }
.feature-band__story p { margin: 0 0 13px; color: #b9c0c7; font-size: .84rem; }

.archive-header { margin-bottom: 24px; padding: 24px 0 3px; }
.archive-header h1 { margin: 4px 0 6px; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.45; letter-spacing: -.045em; }
.archive-description { max-width: 760px; color: var(--muted); }
.archive-description p { margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.news-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,23,42,.10); }
.news-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9ecef; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover img { transform: scale(1.035); }
.news-card__body { padding: 19px; }
.news-card h2 { margin: 6px 0 8px; color: var(--ink); font-size: 1.08rem; line-height: 1.78; letter-spacing: -.025em; }
.news-card p { margin: 0 0 14px; color: var(--muted); font-size: .83rem; }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 13px; background: #fff; border: 1px solid var(--line); border-radius: 11px; color: #414953; font-size: .79rem; font-weight: 900; }
.page-numbers.current, .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.single-shell { padding-top: 48px; }
.single-header { text-align: center; }
.single-header h1 { max-width: 960px; margin: 12px auto; color: var(--ink); font-size: clamp(2rem, 4.4vw, 3.7rem); line-height: 1.48; letter-spacing: -.055em; text-wrap: balance; }
.single-lead { max-width: 800px; margin: 0 auto 22px; color: var(--muted); font-size: 1.05rem; }
.single-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--muted); font-size: .77rem; }
.single-meta > * + * { position: relative; }
.single-meta > * + *::before { content: ""; position: absolute; top: 50%; right: -12px; width: 3px; height: 3px; border-radius: 50%; background: var(--muted); transform: translateY(-50%); }
.single-featured { margin-top: 34px; }
.single-featured img { width: 100%; max-height: 700px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.single-layout { padding-block: 44px 80px; align-items: start; }
.article-content, .page-article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 50px); box-shadow: var(--shadow-sm); }
.entry-content { color: #252c34; font-size: 1rem; line-height: 2.15; }
.entry-content > * { max-width: 100%; }
.entry-content > p:first-child { font-size: 1.04rem; }
.entry-content h2 { margin-top: 1.8em; color: var(--ink); font-size: 1.68rem; line-height: 1.6; }
.entry-content h3 { margin-top: 1.6em; color: var(--ink); font-size: 1.32rem; line-height: 1.65; }
.entry-content blockquote { margin: 30px 0; padding: 18px 24px; border-right: 4px solid var(--primary); border-radius: 12px 0 0 12px; background: var(--surface-soft); color: #3d454e; }
.entry-content figure { margin-inline: 0; }
.entry-content img { border-radius: 13px; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; white-space: nowrap; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: right; }
.article-footer { margin-top: 36px; padding-top: 23px; border-top: 1px solid var(--line); }
.post-tags a { display: inline-block; margin: 4px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-navigation > div { min-width: 0; padding: 17px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 13px; }
.post-navigation > div:last-child { text-align: left; }
.post-navigation span { display: block; color: var(--muted); font-size: .69rem; }
.post-navigation a { color: var(--ink); text-decoration: none; font-weight: 900; }

.comments-area { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { color: var(--ink); font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { margin-bottom: 18px; padding: 19px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 13px; }
.comment-meta { font-size: .75rem; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-form { display: grid; gap: 12px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; }

.page-shell { padding-block: 52px 80px; }
.page-article { max-width: 940px; margin-inline: auto; }
.page-header h1 { margin-top: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.5; }
.page-featured { margin-bottom: 30px; }
.page-featured img { border-radius: 19px; }
.empty-state, .error-page { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 54px 30px; box-shadow: var(--shadow-sm); }
.empty-state { grid-column: 1 / -1; }
.empty-state .search-form, .error-page .search-form { max-width: 620px; margin: 22px auto; }
.error-page { margin-block: 74px; max-width: 800px; }
.error-code { margin: 0; color: var(--primary); font-size: 5.2rem; font-weight: 900; line-height: 1; }

.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1fr; gap: 42px; padding-block: 56px 38px; }
.brand--footer { margin-bottom: 18px; }
.footer-grid p { color: var(--muted); font-size: .82rem; }
.footer-grid h2 { margin: 0 0 14px; color: var(--ink); font-size: 1rem; }
.footer-grid li { list-style: none; }
.footer-grid > div:not(:first-child) a { display: block; color: #4e5660; font-size: .81rem; padding-block: 4px; }
.footer-grid > div:not(:first-child) a:hover { color: var(--primary); }
.footer-bottom { min-height: 68px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .74rem; }
.footer-bottom p { margin: 0; }

.alignwide { max-width: var(--container); margin-right: 50%; transform: translateX(50%); width: calc(100vw - 40px); }
.alignfull { max-width: none; margin-right: 50%; transform: translateX(50%); width: 100vw; }
.wp-caption-text, .wp-element-caption { color: var(--muted); font-size: .77rem; }
.sticky { position: relative; }
.bypostauthor { outline: 0; }
.gallery-caption { color: var(--muted); }

@media (max-width: 1100px) {
  :root { --container: 1040px; }
  .header-main { gap: 24px; }
  .desktop-nav > .menu { gap: 14px; }
  .desktop-nav a { font-size: .78rem; }
  .content-layout, .archive-layout, .single-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .news-row { grid-template-columns: 225px minmax(0, 1fr); }
  .feature-band__inner { gap: 30px; }
}

@media (max-width: 920px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: grid; }
  .header-main { min-height: 74px; grid-template-columns: 1fr auto; }
  .brand__text small { max-width: 170px; }
  .search-panel__inner { grid-template-columns: 1fr; gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-story { min-height: 520px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .side-story { grid-template-rows: 180px 1fr; }
  .content-layout, .archive-layout, .single-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sidebar > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature-band__inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .mobile-nav { top: 46px; }
}

@media (max-width: 680px) {
  :root { --radius: 15px; --radius-lg: 19px; }
  .container, .container--article { width: min(100% - 24px, var(--container)); }
  .top-strip__inner { min-height: 34px; justify-content: center; font-size: .68rem; }
  .top-strip p { display: none; }
  .site-header { box-shadow: 0 5px 16px rgba(15,23,42,.05); }
  .header-main { min-height: 68px; gap: 12px; }
  .custom-logo { max-height: 46px; max-width: 180px; }
  .brand { gap: 9px; }
  .brand__mark { width: 33px; height: 38px; border-radius: 10px; }
  .brand__mark::before { height: 13px; right: 8px; bottom: 8px; }
  .brand__mark::after { height: 20px; right: 15px; bottom: 8px; }
  .brand__mark > span { height: 26px; right: 22px; bottom: 8px; }
  .brand__text strong { font-size: 1.15rem; }
  .brand__text small { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .search-panel { padding: 16px 0 18px; }
  .search-panel__heading { display: none; }
  .search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .search-form input, .search-form button { min-height: 46px; height: 46px; }
  .search-form button { padding-inline: 16px; }
  .breaking-news__inner { min-height: 52px; grid-template-columns: auto minmax(0,1fr); gap: 10px; }
  .breaking-news strong { font-size: .66rem; }
  .breaking-news__track { font-size: .76rem; }
  .live-dot { display: none; }
  .topic-rail__inner { width: 100%; padding-right: 12px; }
  .topic-rail__label { display: none; }
  .topic-rail__scroll { width: 100%; padding-left: 12px; }
  .hero-grid { width: 100%; gap: 13px; padding: 14px 12px 28px; }
  .hero-story { min-height: 440px; border-radius: 18px; }
  .hero-story__content { padding: 20px; }
  .hero-story h1 { margin-top: 9px; font-size: clamp(1.45rem, 7vw, 1.9rem); line-height: 1.55; }
  .hero-story p { display: none; }
  .hero-story .meta span:first-child { display: none; }
  .hero-side { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .hero-side::-webkit-scrollbar { display: none; }
  .side-story { flex: 0 0 min(84vw, 360px); grid-template-columns: 132px minmax(0,1fr); grid-template-rows: none; min-height: 146px; scroll-snap-align: start; }
  .side-story__image { height: 100%; min-height: 146px; }
  .side-story__content { align-self: center; padding: 14px; }
  .side-story h2 { margin: 4px 0 8px; font-size: .91rem; line-height: 1.7; }
  .section-heading { align-items: center; margin-bottom: 13px; }
  .section-heading h2 { font-size: 1.33rem; }
  .section-heading .eyebrow { display: none; }
  .text-link { min-height: 38px; font-size: .72rem; }
  .content-layout { padding-bottom: 50px; }
  .news-list { border-radius: 14px; }
  .news-row { grid-template-columns: 112px minmax(0, 1fr); gap: 13px; padding: 13px; }
  .news-row__image { min-height: 112px; border-radius: 11px; }
  .news-row h3 { margin: 3px 0 8px; font-size: .92rem; line-height: 1.72; }
  .news-row p { display: none; }
  .news-row .category { font-size: .65rem; }
  .news-row .meta { font-size: .65rem; }
  .news-row .meta span:nth-child(2) { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar > *:last-child:nth-child(odd) { grid-column: auto; }
  .sidebar-card { padding: 18px; }
  .feature-band { padding-block: 42px; }
  .feature-band__inner { gap: 24px; }
  .feature-band__intro h2 { font-size: 1.55rem; }
  .feature-band__story { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .feature-band__story > a { height: 205px; }
  .feature-band__story h3 { font-size: 1.12rem; }
  .archive-layout { padding-block: 30px 60px; }
  .archive-header { padding-top: 4px; }
  .archive-header h1 { font-size: 1.75rem; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-card { display: grid; grid-template-columns: 120px minmax(0,1fr); min-height: 130px; }
  .news-card__image { aspect-ratio: auto; height: 100%; min-height: 130px; }
  .news-card__body { align-self: center; padding: 14px; }
  .news-card h2 { margin: 4px 0 8px; font-size: .92rem; }
  .news-card p { display: none; }
  .news-card .meta span:nth-child(2) { display: none; }
  .navigation.pagination { margin-top: 22px; }
  .page-numbers { min-width: 42px; min-height: 42px; }
  .single-shell { padding-top: 28px; }
  .single-header { padding-inline: 6px; text-align: right; }
  .single-header h1 { margin: 10px 0 12px; font-size: clamp(1.75rem, 8vw, 2.35rem); line-height: 1.55; }
  .single-lead { margin-bottom: 16px; font-size: .92rem; }
  .single-meta { justify-content: flex-start; gap: 7px 17px; font-size: .7rem; }
  .single-featured { width: 100%; margin-top: 24px; }
  .single-featured img { max-height: 440px; border-radius: 0; box-shadow: none; }
  .single-layout { padding-block: 0 56px; }
  .article-content { border-inline: 0; border-top: 0; border-radius: 0 0 15px 15px; padding: 24px 16px; }
  .page-article { padding: 23px 17px; }
  .entry-content { font-size: .98rem; line-height: 2.08; }
  .entry-content h2 { font-size: 1.42rem; }
  .entry-content h3 { font-size: 1.2rem; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation > div:last-child { text-align: right; }
  .empty-state, .error-page { padding: 40px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; padding-block: 42px 30px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 16px; }
}

@media (max-width: 390px) {
  .container, .container--article { width: min(100% - 18px, var(--container)); }
  .header-actions { gap: 5px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero-grid { padding-inline: 9px; }
  .hero-story { min-height: 410px; }
  .hero-story__content { padding: 17px; }
  .news-row { grid-template-columns: 104px minmax(0, 1fr); gap: 11px; padding: 11px; }
  .news-row__image { min-height: 105px; }
  .news-card { grid-template-columns: 108px minmax(0,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: auto; }
}

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