/* =====================================================
   سوارنیوز — استایل بخش عمومی
   پالت: سبز شکارگاه #1F3D2B | برنجی زین #C29A4B | مرکب #171D18
          کاغذ #FBFAF6 | خاک میدان #8A6D3B | قرمز فوری #A32638
   ===================================================== */
:root {
  --green: #163E2B;
  --green-deep: #0E2A1C;
  --green-soft: #F0F4F0;
  --brass: #C29A4B;
  --brass-deep: #A67C33;
  --brass-soft: #E7D6AE;
  --ink: #17191A;
  --muted: #6B7169;
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --line: #E9E6DD;
  --line-strong: #D9D5C8;
  --red: #B02334;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(20,30,22,.04), 0 4px 16px rgba(20,30,22,.06);
  --shadow-lg: 0 8px 32px rgba(20,30,22,.12);
  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button, summary, [role="button"], .clickable, label input { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 3px; }
.ic { display: inline-block; vertical-align: -.18em; flex-shrink: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- سربرگ ---------- */
.site-header { background: var(--green); color: #F3EFE2; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { font-size: 2.2rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.logo-text { font-size: 1.55rem; font-weight: 800; letter-spacing: -.5px; }
.logo-text small { display: block; font-size: .72rem; font-weight: 400; color: var(--brass-soft); letter-spacing: 1px; }
.search-form { display: flex; background: var(--green-deep); border: 1px solid rgba(228,211,172,.35); border-radius: 999px; overflow: hidden; }
.search-form input { background: transparent; border: 0; color: #F3EFE2; padding: 9px 18px; width: 240px; font-family: inherit; }
.search-form input::placeholder { color: rgba(243,239,226,.55); }
.search-form button { background: var(--brass); border: 0; padding: 0 16px; cursor: pointer; font-size: 1rem; }

/* منوی سرویس‌ها — با خط برنجی زیر آیتم فعال، مثل نوار افسار */
.main-nav { background: var(--green-deep); border-top: 1px solid rgba(194,154,75,.35); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  padding: 11px 15px; font-size: .92rem; color: #E8E4D5; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: border-color .2s, color .2s;
}
.nav-inner a:hover, .nav-inner a:focus-visible { color: #fff; border-bottom-color: var(--cat, var(--brass)); outline: none; }
.nav-home { font-weight: 700; }

/* نوار خبر فوری — ریل میدان */
.breaking-bar { display: flex; align-items: stretch; background: #fff; border-bottom: 2px solid var(--red); color: var(--ink); }
.breaking-label {
  background: var(--red); color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; padding: 8px 18px; flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.breaking-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.breaking-items { display: flex; gap: 48px; padding-inline-start: 100%; animation: ticker 30s linear infinite; white-space: nowrap; }
.breaking-items a { font-size: .9rem; font-weight: 600; }
.breaking-items a::before { content: "◈ "; color: var(--red); }
.breaking-items a:hover { color: var(--red); }
@keyframes ticker { to { transform: translateX(100%); } } /* RTL: حرکت به راست→چپ */

/* ---------- تبلیغات ---------- */
.ad-slot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 14px auto; }
.ad-item { position: relative; max-width: 100%; }
.ad-item img { border-radius: var(--radius); max-height: 140px; width: auto; }
.ad-tag {
  position: absolute; top: 6px; inset-inline-start: 6px; background: rgba(23,29,24,.65);
  color: #fff; font-size: .62rem; padding: 1px 7px; border-radius: 4px;
}
.ad-inline { grid-column: 1 / -1; }

/* ---------- هیرو ---------- */
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin: 20px 0 30px; }
.hero-main a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--green-deep); }
.hero-main img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; position: absolute; inset: 0; }
.hero-overlay {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 380px; padding: 26px;
  background: linear-gradient(to top, rgba(15,25,18,.92) 0%, rgba(15,25,18,.35) 55%, transparent 100%);
  color: #fff;
}
.hero-overlay h1 { font-size: 1.7rem; line-height: 1.5; margin: 10px 0 6px; }
.hero-overlay p { color: #DCD7C8; font-size: .95rem; }
.hero-overlay time { color: var(--brass-soft); font-size: .8rem; margin-top: 8px; }
.hero-side { display: grid; gap: 14px; }
.hero-mini a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 84px; background: var(--green-deep); }
.hero-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mini h2 {
  position: relative; z-index: 1; font-size: .92rem; line-height: 1.6; color: #fff; padding: 14px;
  background: linear-gradient(to top, rgba(15,25,18,.9), rgba(15,25,18,.25));
  display: flex; align-items: flex-end; height: 100%;
}

/* ---------- چیدمان دو ستونه ---------- */
.layout-two-col { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin: 24px 0 48px; }
.col-main { min-width: 0; }

/* عنوان بخش‌ها — با ریل دوخط برنجی */
.section-title {
  display: flex; align-items: center; gap: 14px; margin: 34px 0 18px;
  font-size: 1.25rem; color: var(--green);
}
.section-title span { flex-shrink: 0; }
.section-title::after {
  content: ""; flex: 1; height: 5px;
  border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass);
}
.section-title .more { font-size: .82rem; font-weight: 400; color: var(--brass); flex-shrink: 0; }
.section-title .more:hover { text-decoration: underline; }

/* ---------- کارت خبر ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16/10; background: var(--brass-soft); overflow: hidden; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.6rem; opacity: .5; }
.type-badge {
  position: absolute; bottom: 8px; inset-inline-start: 8px;
  background: rgba(20,41,29,.85); color: #fff; font-size: .7rem; padding: 3px 10px; border-radius: 999px;
}
.type-badge.inline { position: static; display: inline-block; background: var(--green); margin-bottom: 10px; }
.card-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: .98rem; line-height: 1.65; font-weight: 700; }
.card h3 a:hover { color: var(--green); }
.card-lead { font-size: .82rem; color: #5A5F58; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: .74rem; color: #8B8F87; }

/* نشان دسته — به سبک روبان رنگی سوارکاران */
.cat-chip {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--cat, var(--green));
  border: 1px solid var(--cat, var(--green)); border-radius: 4px; padding: 1px 9px;
  background: color-mix(in srgb, var(--cat, var(--green)) 8%, transparent);
  width: fit-content;
}

/* ---------- سایدبار ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.widget-title { font-size: 1rem; color: var(--green); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--brass); }
.popular-list { list-style: none; }
.popular-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.popular-list li:last-child { border: 0; }
.popular-list .rank {
  font-weight: 800; color: var(--brass); font-size: 1.2rem; min-width: 22px; text-align: center;
}
.popular-list a { font-size: .87rem; line-height: 1.7; }
.popular-list a:hover { color: var(--green); }

/* ---------- صفحه خبر ---------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.post-header.center { text-align: center; }
.post-subtitle { color: var(--brass); font-size: .9rem; font-weight: 600; margin: 8px 0 4px; }
.post h1 { font-size: 1.65rem; line-height: 1.6; color: var(--ink); margin: 8px 0; }
.post-lead { font-size: 1.02rem; color: #444A43; font-weight: 500; border-inline-start: 4px solid var(--brass); padding-inline-start: 14px; margin: 12px 0; }
.post-header.center .post-lead { border: 0; padding: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .8rem; color: #8B8F87; margin: 12px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-meta.center { justify-content: center; }
.post-cover { margin: 18px -28px; }
.post-cover img { width: 100%; }
.post-body { font-size: 1.02rem; }
.post-body p { margin: 14px 0; }
.post-body h2, .post-body h3 { color: var(--green); margin: 22px 0 10px; }
.post-body blockquote { border-inline-start: 4px solid var(--brass); background: #FAF6EC; padding: 12px 18px; margin: 16px 0; border-radius: 6px; }
.post-body img { border-radius: var(--radius); margin: 12px auto; }
.post-body iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.post-tags a { background: #F0EDE2; border-radius: 999px; padding: 4px 14px; font-size: .8rem; color: var(--green); }
.post-tags a:hover { background: var(--brass-soft); }

/* گزارش تصویری */
.photo-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.gallery-item { background: #F5F2E9; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .25s; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption { padding: 10px 14px; font-size: .82rem; color: #5A5F58; }
.gallery-item figcaption small { display: block; color: var(--brass); margin-top: 2px; }
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; background: rgba(10,15,11,.94); z-index: 99;
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; }
.lb-close { position: absolute; top: 18px; inset-inline-end: 22px; background: transparent; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* گزارش ویدئویی */
.video-frame { margin: 20px 0; }
.video-frame video, .video-frame iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); background: #000; border: 0; }

/* دیدگاه‌ها */
.comments { margin-top: 30px; }
.comment { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; background: #FCFBF7; }
.comment-head { display: flex; gap: 14px; align-items: baseline; font-size: .82rem; color: #8B8F87; margin-bottom: 6px; }
.comment-head b { color: var(--green); font-size: .92rem; }
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-form input, .comment-form textarea {
  font-family: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--brass); border-color: transparent; }
.comment-form .hp { position: absolute; inset-inline-start: -9999px; } /* هانی‌پات */
.comment-form small { color: #8B8F87; }

/* ---------- دسته / آرشیو ---------- */
.cat-header {
  background: linear-gradient(135deg, var(--cat, var(--green)), color-mix(in srgb, var(--cat, var(--green)) 70%, black));
  color: #fff; border-radius: var(--radius); padding: 30px; margin: 22px 0;
}
.cat-header h1 { font-size: 1.6rem; }
.cat-header p { color: rgba(255,255,255,.85); margin-top: 6px; }
.cat-header .count { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 2px 14px; font-size: .8rem; }
.page-title { font-size: 1.5rem; color: var(--green); margin: 26px 0 20px; }
.band { margin-top: 10px; }

/* صفحه‌بندی */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination .current {
  min-width: 38px; text-align: center; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-size: .9rem;
}
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination a:hover { border-color: var(--brass); }

/* ---------- عمومی ---------- */
.btn {
  display: inline-block; background: var(--green); color: #fff; border: 0;
  border-radius: 8px; padding: 10px 24px; font-family: inherit; font-size: .92rem;
  font-weight: 600; cursor: pointer; transition: background .2s;
  width: fit-content;
}
.btn:hover { background: var(--green-deep); }
.flash { border-radius: 8px; padding: 12px 18px; margin: 14px 0; font-size: .9rem; }
.flash.ok { background: #E8F3EA; color: #1F5B31; border: 1px solid #BBDCC3; }
.flash.err { background: #FBEBED; color: var(--red); border: 1px solid #EFC4CA; }
.empty { color: #8B8F87; padding: 30px; text-align: center; grid-column: 1 / -1; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.notfound { text-align: center; padding: 80px 20px; }
.nf-emoji { font-size: 4.5rem; margin-bottom: 14px; }
.notfound h1 { font-size: 1.4rem; color: var(--green); margin-bottom: 8px; }
.notfound p { color: #8B8F87; margin-bottom: 22px; }

/* ---------- پاصفحه ---------- */
.site-footer { background: var(--green-deep); color: #CFCBBB; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 38px 16px 28px; }
.site-footer h3 { color: var(--brass-soft); margin-bottom: 8px; }
.site-footer h4 { color: #F3EFE2; margin-bottom: 12px; font-size: .95rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 7px 0; font-size: .87rem; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-bar { border-top: 1px solid rgba(194,154,75,.3); padding: 14px 0; font-size: .78rem; text-align: center; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(2, 1fr); }
  .layout-two-col { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-top { flex-direction: column; }
  .search-form input { width: 180px; }
  .cards-grid, .cards-3, .cards-4, .hero-side, .photo-gallery, .comment-form .row { grid-template-columns: 1fr; }
  .post { padding: 18px; }
  .post-cover { margin: 14px -18px; }
  .hero-overlay h1 { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- لوگوی تصویری ---------- */
.logo-img { max-height: 56px; width: auto; display: block; }

/* ---------- جعبه اشتراک‌گذاری و لینک کوتاه ---------- */
.share-box { margin: 24px 0; padding: 16px 18px; background: #FAF6EC; border: 1px solid var(--brass-soft); border-radius: var(--radius); }
.share-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.share-label { font-weight: 700; font-size: .88rem; color: var(--green); margin-inline-end: 4px; }
.share-ico {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid transparent; background: #fff; color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  padding: 0;
}
.share-ico:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.18); filter: brightness(1.05); }
.share-ico:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.share-ico .ic { display: block; }
.share-ico.tg      { background: #2CA5E0; }
.share-ico.eitaa   { background: #22B573; }
.share-ico.bale    { background: #1B7A46; }
.share-ico.wa      { background: #25D366; }
.share-ico.rubika  { background: #7C4DFF; }
.share-ico.soroush { background: #E8452B; }
.share-ico.virasty { background: #0F62FE; }
.share-ico.tw      { background: #111; }
.share-ico.copy-link { background: var(--brass); }
.share-ico.print-btn { background: #6A6E66; }
.share-ico.copied { filter: brightness(1.15); }
.copy-tip {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%);
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 600; white-space: nowrap;
  padding: 4px 9px; border-radius: 6px; pointer-events: none; z-index: 5;
}
.copy-tip::after { content: ''; position: absolute; top: 100%; inset-inline-start: 50%; transform: translateX(50%); border: 5px solid transparent; border-top-color: var(--green); }
.share-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: .82rem; color: #6A6E66; }
.share-meta b { color: var(--green); }
.share-meta .shortlink a { color: var(--brass); direction: ltr; }
.share-meta .shortlink a:hover { text-decoration: underline; }

/* ---------- نظرات: رأی و پاسخ درختی ---------- */
.comment-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.comment-stats .cstat { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; border-radius: 999px; padding: 4px 12px; border: 1px solid var(--line); }
.comment-stats .cstat b { font-weight: 800; }
.comment-stats .approved { background: #E8F3EA; color: #1F5B31; border-color: #BBDCC3; }
.comment-stats .pending  { background: #FCF4E4; color: #8A6413; border-color: #EBD9AE; }
.comment-stats .spam     { background: #FBEBED; color: #A32638; border-color: #EBC3C9; }
.captcha-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.captcha-row .captcha-img { border: 1px solid var(--line); border-radius: 8px; background: #F7F4EC; height: 52px; width: auto; }
.captcha-row .captcha-reload {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--green);
  transition: all .15s;
}
.captcha-row .captcha-reload:hover { border-color: var(--brass); transform: rotate(-45deg); }
.captcha-row input { flex: 1; min-width: 160px; }
.comment-actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.vote-btn, .reply-btn {
  font-family: inherit; font-size: .78rem; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: #5A5F58;
  border-radius: 999px; padding: 3px 12px; transition: all .15s;
}
.vote-btn:hover, .reply-btn:hover { border-color: var(--brass); color: var(--green); }
.vote-btn.voted { transform: scale(1.12); border-color: var(--green); }
.reply-btn { color: var(--green); font-weight: 600; }
.comment-children { margin-inline-start: 26px; margin-top: 12px; border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }
.comment-reply { background: #F7F4EC; }
.reply-notice[hidden] { display: none !important; }
.reply-notice {
  background: #E8F3EA; border: 1px solid #BBDCC3; border-radius: 8px; padding: 8px 14px;
  margin-bottom: 12px; font-size: .85rem; display: flex; justify-content: space-between; align-items: center;
}
.reply-notice button { background: none; border: 0; color: var(--red); cursor: pointer; font-family: inherit; font-size: .82rem; }
#comment-form-title { font-size: 1rem; color: var(--green); margin-bottom: 12px; }

/* ---------- نسخه چاپی ---------- */
@media print {
  .site-header, .site-footer, .sidebar, .breaking-bar, .main-nav,
  .comments, .share-box, .related, .ad-slot, .ad-item, .post-tags,
  .comment-form, .pagination { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .layout-two-col { grid-template-columns: 1fr !important; }
  .post { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .post h1 { font-size: 20pt; }
  .post-body { font-size: 12pt; }
  .post-cover { margin: 10px 0 !important; }
  a { color: #000 !important; text-decoration: none !important; }
  .post-body iframe, .video-frame { display: none !important; }
  @page { margin: 1.5cm; }
}

/* ═══════════════════════════════════════════
   صفحه اصلی — چیدمان مجله‌ای مدرن و شیک
   ═══════════════════════════════════════════ */
.home-grid { display: grid; grid-template-columns: 1fr 330px; gap: 36px; margin: 26px 0 54px; align-items: start; }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 46px; }

/* ---- تیتر یک ---- */
.hero { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; }
.hero-lead { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--green-deep); min-height: 430px; }
.hero-lead a { display: block; height: 100%; }
.hero-lead-media { position: absolute; inset: 0; }
.hero-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-lead:hover .hero-lead-media img { transform: scale(1.05); }
.hero-lead .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; opacity: .3; }
.hero-lead-overlay { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 30px 26px 24px; background: linear-gradient(to top, rgba(10,20,13,.95) 12%, rgba(10,20,13,.55) 55%, transparent); }
.hero-lead-overlay h1 { color: #fff; font-size: 1.95rem; line-height: 1.5; margin: 12px 0 8px; font-weight: 800; letter-spacing: -.4px; }
.hero-lead-overlay p { color: #E4E0D2; font-size: 1rem; max-width: 92%; line-height: 1.9; }
.hero-time { color: var(--brass-soft); font-size: .82rem; margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; }

.play-badge { position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--green-deep); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; z-index: 3; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.play-badge.sm { width: 40px; height: 40px; font-size: .85rem; }

.hero-aside { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; }
.hero-item { border-radius: 13px; overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.hero-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-item a { display: grid; grid-template-columns: 112px 1fr; height: 100%; }
.hero-item-media { position: relative; background: var(--brass-soft); overflow: hidden; }
.hero-item-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-item-media .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; opacity: .4; }
.hero-item-body { padding: 11px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.hero-item-body h3 { font-size: .9rem; line-height: 1.65; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-item:hover h3 { color: var(--green); }
.mini-time { font-size: .72rem; color: #9A9E96; }

/* ---- عنوان بلوک‌ها ---- */
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.block-head h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.block-head .bar { display: inline-block; width: 5px; height: 24px; border-radius: 3px; background: var(--brass); }
.see-all { font-size: .85rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.see-all::after { content: "←"; }
.see-all:hover { color: var(--brass); }

/* ---- رودخانه اخبار ---- */
.news-river { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---- بلوک دسته ---- */
.cat-block { border-top: 3px solid var(--cat, var(--green)); padding-top: 20px; }
.cat-head h2 { color: var(--cat, var(--green)); }
.cat-head .cat-ic { height: 30px; width: auto; max-width: 44px; object-fit: contain; }
.cat-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; }
.cat-lead { display: block; }
.cat-lead-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; background: var(--brass-soft); margin-bottom: 13px; }
.cat-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-lead:hover .cat-lead-media img { transform: scale(1.05); }
.cat-lead h3 { font-size: 1.22rem; line-height: 1.6; font-weight: 700; margin-bottom: 7px; }
.cat-lead:hover h3 { color: var(--cat, var(--green)); }
.cat-lead p { font-size: .88rem; color: #5A5F58; line-height: 1.9; }
.cat-lead .mini-time { margin-top: 8px; display: inline-block; }
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.cat-list li { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.cat-list li:last-child { border: 0; padding-bottom: 0; }
.cat-list a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.cat-list .cl-thumb { border-radius: 9px; overflow: hidden; aspect-ratio: 3/2; background: var(--brass-soft); }
.cat-list .cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-list .cl-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cat-list .cl-body b { font-size: .9rem; line-height: 1.6; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-list li:hover .cl-body b { color: var(--cat, var(--green)); }
.cat-list .cl-body em { font-size: .72rem; color: #9A9E96; font-style: normal; }

/* ---- گزارش تصویری ---- */
.photo-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.photo-lead { position: relative; border-radius: 15px; overflow: hidden; min-height: 350px; background: var(--green-deep); display: block; }
.photo-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-lead:hover img { transform: scale(1.05); }
.photo-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 20px; color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.6; background: linear-gradient(to top, rgba(12,22,15,.92), transparent); }
.photo-cap.sm { font-size: .85rem; padding: 12px; }
.photo-rest { display: grid; grid-template-rows: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr); gap: 12px; }
.photo-mini { position: relative; border-radius: 11px; overflow: hidden; background: var(--brass-soft); min-height: 110px; }
.photo-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- ویدئو ---- */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-card { display: block; }
.video-thumb { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; background: var(--green-deep); margin-bottom: 10px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-badge { width: 46px; height: 46px; font-size: 1rem; }
.video-card h3 { font-size: .9rem; line-height: 1.6; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-card:hover h3 { color: var(--green); }

/* ---- ستون کناری ---- */
.home-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 16px; }
.rank-list { list-style: none; counter-reset: r; }
.rank-list li { counter-increment: r; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border: 0; }
.rank-list a { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 12px 0; }
.rank-list a::before { content: counter(r); font-size: 1.35rem; font-weight: 800; color: var(--brass); line-height: 1.2; opacity: .85; }
.rank-list li:nth-child(-n+3) a::before { color: var(--green); opacity: 1; }
.rank-title { font-size: .88rem; line-height: 1.65; font-weight: 600; display: block; }
.rank-list a:hover .rank-title { color: var(--green); }
.rank-meta { font-size: .72rem; color: #9A9E96; margin-top: 3px; display: block; }
.mini-list { list-style: none; }
.mini-list li { border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border: 0; }
.mini-list a { display: block; padding: 11px 0; }
.mini-list a span { font-size: .88rem; line-height: 1.6; font-weight: 600; display: block; }
.mini-list a:hover span { color: var(--green); }
.mini-list a em { font-size: .72rem; color: var(--brass); font-weight: 600; font-style: normal; }

.widget-news { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; border: 0; }
.widget-news .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.25); }
.nl-text { font-size: .85rem; color: #DCD7C8; margin: 4px 0 14px; }
.nl-form { display: flex; flex-direction: column; gap: 9px; }
.nl-form input:not(.hp) { border: 0; border-radius: 8px; padding: 11px 14px; font-family: inherit; font-size: .9rem; }
.nl-form button { background: var(--brass); color: var(--green-deep); border: 0; border-radius: 8px; padding: 11px; font-family: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .15s; }
.nl-form button:hover { background: #D4AC5C; }

/* ---- واکنش‌گرا ---- */
@media (max-width: 1000px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .home-side > * { flex: 1; min-width: 260px; }
  .hero { grid-template-columns: 1fr; }
  .hero-aside { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); }
  .news-river { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-lead { min-height: 340px; }
  .hero-lead-overlay h1 { font-size: 1.45rem; }
  .hero-aside { grid-template-columns: 1fr; }
  .news-river { grid-template-columns: 1fr; }
  .photo-grid, .cat-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .photo-lead { min-height: 240px; }
  .block-head h2 { font-size: 1.18rem; }
  .home-side { flex-direction: column; }
}


/* ---- تصویر شاخه در صفحه اصلی و صفحه دسته ---- */
.cat-block-head h2 { display: flex; align-items: center; gap: 10px; }
.cat-icon { height: 34px; width: auto; max-width: 60px; object-fit: contain; }
.cat-header-img { display: flex; align-items: center; gap: 20px; }
.cat-header-icon { height: 66px; width: auto; max-width: 90px; object-fit: contain; background: rgba(255,255,255,.15); border-radius: 10px; padding: 8px; flex-shrink: 0; }
.cat-header-text { min-width: 0; }

/* ---- ویجت پر بحث‌ترین‌ها ---- */
.widget-discussed .rank { font-size: 1.1rem; opacity: .9; }
.widget-discussed .pop-meta { color: var(--brass); font-weight: 600; }

/* ---- انواع تبلیغ ---- */
.ad-text { background: #FAF6EC; border: 1px solid var(--brass-soft); border-radius: 10px; }
.ad-text-inner { display: block; padding: 14px 16px; }
.ad-text-inner strong { display: block; color: var(--green); font-size: .98rem; margin-bottom: 4px; }
.ad-text-inner span { font-size: .84rem; color: #5A5F58; }
.ad-in-article { margin: 26px 0; }
.ad-below-title { margin: 14px 0 4px; }

/* ---- جعبه هایلایت در متن خبر ---- */
.post-body .highlight-box {
  background: linear-gradient(135deg, #FAF6EC, #F3ECD8);
  border-inline-start: 5px solid var(--brass);
  border-radius: 12px; padding: 18px 20px; margin: 22px 0;
  display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow);
}
.post-body .highlight-box img { width: 130px; height: 130px; object-fit: cover; border-radius: 10px; flex-shrink: 0; margin: 0; }
.post-body .highlight-box p { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--green-deep); line-height: 1.9; }
@media (max-width: 560px) {
  .post-body .highlight-box { flex-direction: column; text-align: center; }
  .post-body .highlight-box img { width: 100%; height: 180px; }
}

/* ---- پیام خبرنامه ---- */
.nl-msg { border-radius: 8px; padding: 9px 13px; margin-bottom: 10px; font-size: .82rem; }
.nl-msg.ok { background: rgba(255,255,255,.9); color: #1F5B31; }
.nl-msg.err { background: #FBEBED; color: var(--red); }
.nl-form .hp { position: absolute; inset-inline-start: -9999px; }
/* ═══════════════════════════════════════════════════
   پالایش مجله‌ای (Editorial Refresh) — UI/UX Pro Max
   ═══════════════════════════════════════════════════ */

/* ---------- سربرگ ---------- */
.site-header { background: var(--green); color: #EFEDE3; box-shadow: var(--shadow); position: relative; z-index: 30; }
.header-top { padding: 16px 20px; gap: 20px; }
.logo { gap: 12px; align-items: center; }
.logo-mark {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-deep); color: var(--brass); border: 1.5px solid rgba(194,154,75,.5);
  border-radius: 12px; filter: none;
}
.logo-mark .ic { vertical-align: 0; }
.logo-text { font-size: 1.5rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.logo-text small { display: block; font-size: .68rem; font-weight: 500; color: var(--brass-soft); letter-spacing: .5px; margin-top: 2px; }
.logo-img { max-height: 52px; width: auto; }

.search-form { background: rgba(255,255,255,.08); border: 1px solid rgba(228,211,172,.28); border-radius: 999px; transition: border-color var(--transition), background var(--transition); }
.search-form:focus-within { border-color: var(--brass); background: rgba(255,255,255,.12); }
.search-form input { color: #F3EFE2; padding: 10px 18px; width: 240px; }
.search-form input::placeholder { color: rgba(243,239,226,.5); }
.search-form button { background: var(--brass); color: var(--green-deep); padding: 0 15px; display: inline-flex; align-items: center; transition: background var(--transition); }
.search-form button:hover { background: var(--brass-soft); }

/* ---------- منو ---------- */
.main-nav { background: var(--green-deep); border-top: 1px solid rgba(194,154,75,.28); }
.nav-inner { gap: 0; }
.nav-inner a {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; font-size: .92rem; font-weight: 500;
  color: #DCE0D6; white-space: nowrap; border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.nav-inner a .ic { opacity: .8; }
.nav-inner a:hover, .nav-inner a:focus-visible { color: #fff; background: rgba(255,255,255,.05); border-bottom-color: var(--cat, var(--brass)); outline: none; }
.nav-home { font-weight: 700; color: #fff; }

/* ---------- خبر فوری ---------- */
.breaking-bar { background: var(--surface); border-bottom: 1px solid var(--line); border-top: 0; }
.breaking-label { background: var(--red); color: #fff; font-weight: 700; font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; }

/* ---------- سربرگ بخش‌ها ---------- */
.block-head { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.block-head h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; gap: 11px; }
.block-head .bar { width: 4px; height: 22px; border-radius: 4px; background: var(--brass); }
.see-all { color: var(--muted); font-weight: 600; font-size: .84rem; padding: 4px 10px; border-radius: 999px; transition: color var(--transition), background var(--transition); }
.see-all::after { content: ""; }
.see-all:hover { color: var(--green); background: var(--green-soft); }

/* ---------- ویجت‌های ستون کناری ---------- */
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.widget-title { font-size: 1.02rem; font-weight: 800; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.widget-title .ic { color: var(--brass); }

/* ---------- دکمه‌ها ---------- */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--green); color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: 11px 20px; font-family: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-full { width: 100%; }

/* ---------- اشتراک‌گذاری ---------- */
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.share-btn.tg:hover { background: #2AABEE; color: #fff; border-color: #2AABEE; }
.share-btn.wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn.tw:hover { background: #111; color: #fff; border-color: #111; }
.share-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }

/* ---------- فوتر ---------- */
.site-footer { background: var(--green-deep); color: #C9CFC2; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 48px 20px 36px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo .ic { color: var(--brass); }
.footer-brand p { font-size: .88rem; line-height: 1.9; color: #A8B0A2; max-width: 90%; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: #B4BBAD; transition: color var(--transition); }
.site-footer li a .ic { color: var(--brass); opacity: .7; }
.site-footer li a:hover { color: var(--brass-soft); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #8A9284; padding: 16px 0; text-align: center; }

/* ---------- تصویر جایگزین (placeholder) ---------- */
.ph { color: var(--brass); opacity: .35; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .search-form { order: 3; width: 100%; }
  .search-form input { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
}
@media (max-width: 375px) {
  .logo-text { font-size: 1.25rem; }
  .block-head h2 { font-size: 1.15rem; }
}

/* ---------- پالایش کارت خبر ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card-media img { transition: transform 400ms cubic-bezier(.4,0,.2,1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.card h3 { font-size: 1rem; line-height: 1.6; font-weight: 700; letter-spacing: -.2px; }
.card h3 a { transition: color var(--transition); }
.card-lead { font-size: .84rem; color: var(--muted); line-height: 1.8; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); padding-top: 4px; }
.card-meta time, .card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta .ic { opacity: .7; }
.type-badge { position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(14,42,28,.9); color: #fff; font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.cat-chip { align-self: flex-start; display: inline-block; font-size: .72rem; font-weight: 700; color: #fff; background: var(--cat, var(--green)); padding: 3px 11px; border-radius: 999px; transition: opacity var(--transition); }
.cat-chip:hover { opacity: .85; }

/* ---------- ترازبندی آیکون در متادیتا و دکمه‌ها ---------- */
.post-meta span, .post-meta time { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .ic { opacity: .7; color: var(--brass-deep); }
.vote-btn { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: color var(--transition), background var(--transition); }
.vote-btn:hover { color: var(--green); }
.type-badge.inline { position: static; display: inline-flex; }
.hero-time, .mini-time { display: inline-flex; align-items: center; gap: 5px; }
.breaking-label .ic { vertical-align: -.15em; }

/* ═══════════════════════════════════════════════════
   صفحه خبر و دسته — پالایش مجله‌ای (Editorial)
   ═══════════════════════════════════════════════════ */
.layout-two-col { grid-template-columns: minmax(0,1fr) 320px; gap: 34px; margin: 28px 0 56px; }

/* ---- کارت مقاله ---- */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 34px 34px; box-shadow: var(--shadow); overflow: hidden; }
.post-header .cat-chip { margin-bottom: 14px; }
.post-header h1 { font-size: 2rem; line-height: 1.55; font-weight: 800; letter-spacing: -.5px; margin: 4px 0; color: var(--ink); }
.post-subtitle { color: var(--brass-deep); font-size: .95rem; font-weight: 700; margin: 0 0 4px; }
.post-lead { font-size: 1.1rem; color: #383E38; font-weight: 500; line-height: 2; border-inline-start: 3px solid var(--brass); padding-inline-start: 16px; margin: 16px 0; }
.post-meta { gap: 16px; font-size: .82rem; color: var(--muted); margin: 18px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-meta span, .post-meta time { display: inline-flex; align-items: center; gap: 6px; }
.post-meta .ic { color: var(--brass-deep); opacity: .85; }

/* ---- کاور ---- */
.post-cover { margin: 22px 0; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; border-radius: var(--radius); }

/* ---- بدنه‌ی خبر (خوانایی مجله‌ای) ---- */
.post-body { font-size: 1.06rem; line-height: 2.1; color: #26302A; }
.post-body p { margin: 16px 0; }
.post-body > p:first-of-type { font-size: 1.12rem; color: var(--ink); }
.post-body h2, .post-body h3 { color: var(--green); margin: 30px 0 12px; font-weight: 800; letter-spacing: -.3px; }
.post-body h2 { font-size: 1.4rem; }
.post-body h3 { font-size: 1.18rem; }
.post-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass-soft); transition: text-decoration-color var(--transition); }
.post-body a:hover { text-decoration-color: var(--brass); }
.post-body blockquote { border-inline-start: 4px solid var(--brass); background: var(--green-soft); padding: 14px 20px; margin: 22px 0; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 500; color: var(--green-deep); }
.post-body figure { margin: 22px 0; }
.post-body figure img { border-radius: var(--radius); width: 100%; }
.post-body figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.post-body ul, .post-body ol { margin: 14px 0; padding-inline-start: 24px; }
.post-body li { margin: 6px 0; }

/* ---- برچسب‌ها ---- */
.post-tags { margin: 26px 0 6px; gap: 8px; }
.post-tags a { background: var(--green-soft); color: var(--green); font-weight: 600; font-size: .82rem; padding: 5px 14px; border-radius: 999px; transition: background var(--transition), color var(--transition); }
.post-tags a:hover { background: var(--green); color: #fff; }

/* ---- عنوان بخش (مرتبط) ---- */
.section-title { display: flex; align-items: center; gap: 11px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px; margin: 34px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-title::after { content: none; }
.section-title::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: var(--brass); flex-shrink: 0; }
.section-title span { flex-shrink: 0; }
.section-title .more { margin-inline-start: auto; font-size: .82rem; font-weight: 600; color: var(--muted); }
.section-title .more:hover { color: var(--green); text-decoration: none; }

/* ---- ستون کناری ---- */
.sidebar { gap: 22px; position: sticky; top: 16px; align-self: start; }
.popular-list li { border-bottom: 1px solid var(--line); padding: 11px 0; align-items: flex-start; }
.popular-list li:last-child { border: 0; }
.popular-list .rank { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .82rem; border-radius: 8px; flex-shrink: 0; }
.popular-list li:nth-child(-n+3) .rank { background: var(--green); color: #fff; }
.popular-list a { font-size: .88rem; line-height: 1.7; font-weight: 500; transition: color var(--transition); }
.popular-list a:hover { color: var(--green); }

/* ---- سربرگ دسته (Hero) ---- */
.cat-header { background: var(--cat, var(--green)); color: #fff; border-radius: var(--radius-lg); padding: 34px 32px; margin: 28px 0 22px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cat-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.1), transparent 55%); pointer-events: none; }
.cat-header::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: var(--brass); }
.cat-header > * { position: relative; z-index: 1; }
.cat-header h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.4px; }
.cat-header p { color: rgba(255,255,255,.9); margin-top: 8px; max-width: 60ch; line-height: 1.9; }
.cat-header .count { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 5px 15px; font-size: .82rem; font-weight: 600; }
.cat-header-img { display: flex; align-items: center; gap: 22px; }
.cat-header-icon { height: 68px; width: auto; max-width: 92px; object-fit: contain; background: rgba(255,255,255,.16); border-radius: 12px; padding: 9px; flex-shrink: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---- دیدگاه‌ها ---- */
.comments { margin-top: 36px; }
.comment { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; background: var(--surface); transition: border-color var(--transition); }
.comment:hover { border-color: var(--line-strong); }
.comment-head b { color: var(--green); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(194,154,75,.15); }
.vote-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .78rem; color: var(--muted); }
.vote-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* ---- واکنش‌گرا ---- */
@media (max-width: 1000px) { .sidebar { position: static; } }
@media (max-width: 768px) {
  .post { padding: 22px 20px 26px; border-radius: var(--radius); }
  .post-header h1 { font-size: 1.55rem; }
  .post-body { font-size: 1.01rem; line-height: 2; }
  .cat-header { padding: 26px 22px; }
  .cat-header h1 { font-size: 1.5rem; }
  .cat-header-img { flex-direction: column; text-align: center; gap: 14px; }
}

/* ---------- ویدئو و گالری در صفحه خبر ---------- */
div.post-video{margin:22px 0;border-radius:var(--radius);overflow:hidden;background:#000}
div.post-video video{width:100%;display:block;max-height:520px;background:#000}
.video-embed{position:relative}
.video-embed iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:var(--radius)}
.post-gallery{margin-top:32px}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.gallery-cell{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;background:var(--brass-soft);display:block}
.gallery-cell img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gallery-cell:hover img{transform:scale(1.05)}
.gallery-cell.video{aspect-ratio:16/9;background:#000}
.gallery-cell.video video{width:100%;height:100%;object-fit:contain;background:#000}
.gallery-cap{position:absolute;inset-inline:0;bottom:0;background:linear-gradient(to top,rgba(12,22,15,.9),transparent);color:#fff;font-size:.8rem;padding:16px 12px 8px;line-height:1.6}
@media (max-width:768px){.gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.gallery-grid{grid-template-columns:1fr}}

/* =====================================================
   واکنش‌گرایی جامع — بازطراحی برای هر اندازه صفحه
   (این بخش عمداً در انتهای فایل است تا بر قواعد پیشین اولویت داشته باشد)
   ===================================================== */

/* پایه: جلوگیری از سرریز افقی و کشسانی رسانه‌ها در همه‌ی اندازه‌ها */
html, body { overflow-x: hidden; }
img, video, iframe, embed, object, table { max-width: 100%; }
.post-body img, .post-body video, .post-body iframe { height: auto; }
.post-body { overflow-wrap: anywhere; word-break: break-word; }
.post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; }
.post-body pre { overflow-x: auto; white-space: pre; }
.post-body iframe, .video-embed iframe, .post-video iframe { width: 100% !important; max-width: 100%; }
.video-embed { position: relative; }
.container { width: 100%; }

/* ── تبلت بزرگ و پایین‌تر: ستون کناری زیر متن اصلی می‌رود ──
   رفع مشکل «متن باریک، باکس کناری بزرگ» در بازه‌ی ۷۶۸ تا ۱۰۲۴ */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  .layout-two-col { grid-template-columns: 1fr; gap: 24px; }
  .layout-two-col .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .layout-two-col .sidebar > * { margin: 0; }
  .home-grid { grid-template-columns: 1fr; }
  .home-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .home-side > * { flex: 1 1 260px; min-width: 0; }
  .hero { grid-template-columns: 1.6fr 1fr; }
  .news-river { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(3, 1fr); }
}

/* ── تبلت کوچک ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-aside { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); }
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post { padding: 22px; }
  .post-cover { margin-inline: -22px; }
  .post h1 { font-size: 1.5rem; }
}

/* ── موبایل ── */
@media (max-width: 640px) {
  .container { padding: 0 14px; }

  /* سربرگ */
  .header-top { flex-wrap: wrap; gap: 12px; padding: 12px 14px; }
  .logo { flex: 1 1 auto; }
  .logo-text { font-size: 1.3rem; }
  .search-form { order: 3; width: 100%; }
  .search-form input { width: 100%; }
  .nav-inner { gap: 0; }
  .nav-inner a { padding: 10px 13px; font-size: .88rem; }

  /* چیدمان‌ها → تک‌ستونه */
  .layout-two-col .sidebar { grid-template-columns: 1fr; }
  .hero-aside { grid-template-columns: 1fr; }
  .cards-grid, .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .news-river { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .photo-gallery, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  /* صفحه‌ی خبر */
  .post { padding: 18px 16px; }
  .post-cover { margin: 16px -16px; }
  .post h1 { font-size: 1.35rem; line-height: 1.55; }
  .post-lead { font-size: .96rem; }
  .post-body { font-size: 1rem; }
  .post-meta { gap: 12px; }

  /* هیرو */
  .hero-lead { min-height: 300px; }
  .hero-lead-overlay h1 { font-size: 1.4rem; }
  .hero-item a { grid-template-columns: 96px 1fr; }
  .block-head h2 { font-size: 1.2rem; }

  /* گزارش تصویری اصلی صفحه‌ی خبر تصویری */
  .photo-rest { grid-template-columns: repeat(2, 1fr); }

  /* اشتراک‌گذاری و دیدگاه */
  .share-box { padding: 14px; }
  .share-label { width: 100%; margin-bottom: 4px; }
  .comment-form .row { grid-template-columns: 1fr; }
  .captcha-row { gap: 8px; }
  .captcha-row input { min-width: 0; width: 100%; }
  .comment-children { margin-inline-start: 14px; }
}

/* ── موبایل کوچک ── */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  .logo-mark { font-size: 1.8rem; }
  .logo-text { font-size: 1.15rem; }
  .logo-text small { font-size: .64rem; }
  .post { padding: 16px 13px; }
  .post-cover { margin: 14px -13px; }
  .post h1 { font-size: 1.22rem; }
  .section-title { font-size: 1.1rem; }
  .hero-item a { grid-template-columns: 84px 1fr; }
  .share-ico { width: 36px; height: 36px; }
  .photo-rest { grid-template-columns: 1fr; }
}

/* صفحه‌های خیلی پهن: جلوگیری از کش‌آمدن بیش از حد متن */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

/* =====================================================
   راهنما — نیازمندی‌ها (سبک دیوار)
   ===================================================== */
.rah-wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.rah-narrow { max-width: 760px; }
.rah-topbar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.rah-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.rah-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--green); text-decoration: none; }
.rah-brand small { font-weight: 400; font-size: .72rem; color: #8B8F87; }
.rah-topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.rah-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: .88rem; font-weight: 700; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.rah-btn.primary { background: #E02F2F; color: #fff; }
.rah-btn.primary:hover { background: #C42525; transform: translateY(-1px); }
.rah-btn.ghost { background: #fff; color: var(--green); border-color: var(--line-strong); }
.rah-btn.ghost:hover { border-color: var(--brass); }
.rah-btn.danger { background: #A32638; color: #fff; }
.rah-btn.block { display: flex; width: 100%; justify-content: center; }
.rah-btn.lg { padding: 13px; font-size: 1rem; }

.rah-flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.rah-flash.ok { background: #E8F3EA; color: #1F5B31; border: 1px solid #BBDCC3; }
.rah-flash.err { background: #FBEBED; color: #A32638; border: 1px solid #EBC3C9; }

.rah-hero-search { display: flex; gap: 8px; margin-bottom: 24px; }
.rah-hero-search input { flex: 1; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 12px; font-family: inherit; font-size: 1rem; }
.rah-hero-search input:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.rah-hero-search button { display: inline-flex; align-items: center; gap: 6px; padding: 0 22px; background: var(--green); color: #fff; border: none; border-radius: 12px; font-family: inherit; font-weight: 700; cursor: pointer; }

.rah-h2 { font-size: 1.15rem; color: var(--green); margin: 8px 0 14px; }
.rah-section-head { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }

.rah-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.rah-cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: all .18s ease; }
.rah-cat-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); border-color: var(--c, var(--brass)); }
.rah-cat-ic { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--c, var(--green)); color: #fff; }
.rah-cat-name { font-weight: 800; font-size: .98rem; }
.rah-cat-count { font-size: .78rem; color: #8B8F87; }
.rah-cat-subs { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: center; margin-top: 4px; }
.rah-cat-subs i { font-style: normal; font-size: .72rem; color: #6A6E66; background: var(--green-soft); padding: 1px 8px; border-radius: 999px; }

.rah-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rah-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: all .16s ease; }
.rah-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.09); }
.rah-card-img { position: relative; aspect-ratio: 4/3; background: var(--green-soft); display: grid; place-items: center; overflow: hidden; }
.rah-card-img img { width: 100%; height: 100%; object-fit: cover; }
.rah-noimg { color: var(--brass); opacity: .6; }
.rah-badge-feat { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--brass); color: #fff; font-size: .68rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.rah-card-body { padding: 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.rah-card-body h3 { font-size: .92rem; line-height: 1.6; margin: 0; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rah-price { font-weight: 800; color: var(--green); font-size: .92rem; }
.rah-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; font-size: .74rem; color: #8B8F87; }
.rah-card-meta .rah-loc { display: inline-flex; align-items: center; gap: 3px; }
.rah-empty { grid-column: 1 / -1; text-align: center; color: #8B8F87; padding: 30px; }

.rah-breadcrumb { font-size: .85rem; color: #6A6E66; margin-bottom: 16px; }
.rah-breadcrumb a { color: var(--green); text-decoration: none; }
.rah-breadcrumb span { margin: 0 6px; color: #C9C4B6; }

.rah-listing { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.rah-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 16px; }
.rah-filter-block { margin-bottom: 14px; }
.rah-filter-block label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 5px; color: var(--green); }
.rah-filters input, .rah-filters select { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-family: inherit; font-size: .88rem; }
.rah-price-range { display: flex; gap: 6px; }
.rah-subcats { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.rah-subcats label { font-size: .82rem; font-weight: 700; color: var(--green); display: block; margin-bottom: 6px; }
.rah-subcats a { display: block; padding: 5px 0; font-size: .85rem; color: var(--ink); text-decoration: none; }
.rah-subcats a:hover { color: var(--brass); }
.rah-results-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.rah-results-head h1 { font-size: 1.3rem; color: var(--green); margin: 0; }
.rah-count { font-size: .85rem; color: #8B8F87; }
.rah-results .rah-grid { grid-template-columns: repeat(3, 1fr); }
.rah-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 22px; }
.rah-pagination a { min-width: 38px; text-align: center; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.rah-pagination a.active { background: var(--green); color: #fff; border-color: var(--green); }

/* جزئیات آگهی */
.rah-detail { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.rah-detail-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rah-gallery-main { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: var(--green-soft); }
.rah-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.rah-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rah-thumbs img { width: 74px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.rah-thumbs img:hover { border-color: var(--brass); }
.rah-detail-title { font-size: 1.5rem; color: var(--green); margin: 16px 0 8px; }
.rah-detail-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: #8B8F87; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rah-detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rah-detail-price { font-size: 1.4rem; font-weight: 800; color: #E02F2F; margin: 16px 0; }
.rah-specs h2, .rah-desc h2 { font-size: 1.05rem; color: var(--green); margin: 20px 0 10px; }
.rah-specs table { width: 100%; border-collapse: collapse; }
.rah-specs th, .rah-specs td { text-align: start; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rah-specs th { width: 40%; color: #6A6E66; font-weight: 600; background: #FAFAF7; }
.rah-desc-body { line-height: 2; color: #333; }
.rah-detail-side { position: sticky; top: 16px; }
.rah-contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rah-seller { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; color: var(--green); }
.rah-seller b { display: block; }
.rah-seller small { color: #8B8F87; font-weight: 400; }
.rah-phone { display: block; text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--green); padding: 10px; letter-spacing: 1px; margin-top: 8px; }
.rah-nophone { color: #8B8F87; font-size: .85rem; text-align: center; }
.rah-safety { margin-top: 14px; font-size: .76rem; color: #A67C33; background: #FCF6E8; padding: 9px 11px; border-radius: 8px; line-height: 1.7; }

/* فرم ثبت آگهی */
.rah-form-title { font-size: 1.4rem; color: var(--green); margin-bottom: 8px; }
.rah-lead { color: #6A6E66; margin-bottom: 18px; }
.rah-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.rah-form-cat { background: var(--green-soft); padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; }
.rah-change-cat { color: var(--brass); margin-inline-start: 10px; text-decoration: none; }
.rah-fieldset { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.rah-fieldset h3 { font-size: 1rem; color: var(--green); margin-bottom: 12px; }
.rah-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rah-field { margin-bottom: 14px; }
.rah-field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.rah-field .req { color: #E02F2F; }
.rah-field .unit { font-weight: 400; color: #8B8F87; }
.rah-field input, .rah-field select, .rah-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; font-family: inherit; font-size: .92rem; }
.rah-field input:focus, .rah-field select:focus, .rah-field textarea:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.rah-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; cursor: pointer; }
.chk.single { margin-top: 8px; }
.rah-note { text-align: center; color: #8B8F87; font-size: .82rem; margin-top: 10px; }
.rah-sub-links { margin: 8px 0; font-size: .85rem; }
.rah-sub-links b { color: var(--green); }
.rah-sub-links a { color: var(--ink); text-decoration: none; margin: 0 6px; padding: 2px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; display: inline-block; margin-bottom: 4px; }
.rah-sub-links a:hover { border-color: var(--brass); }

/* صفحات موفقیت/مدیریت/احراز */
.rah-success, .rah-auth-card, .rah-manage-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.rah-auth-card { max-width: 420px; margin: 0 auto; text-align: start; }
.rah-success-ic { color: #2E7D46; }
.rah-success h1 { color: var(--green); }
.rah-token-box { background: var(--green-soft); border-radius: 10px; padding: 14px; margin: 16px 0; text-align: start; }
.rah-token-link { word-break: break-all; color: var(--brass); font-size: .82rem; }
.rah-actions-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.rah-auth-card h1 { color: var(--green); margin-bottom: 16px; }
.rah-auth-alt { margin-top: 12px; font-size: .86rem; color: #6A6E66; }
.rah-auth-alt a { color: var(--brass); }
.rah-status { padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.rah-status.pending { background: #FCF4E4; color: #8A6413; }
.rah-status.published { background: #E8F3EA; color: #1F5B31; }
.rah-status.rejected, .rah-status.expired { background: #FBEBED; color: #A32638; }
.rah-review-note { color: #A32638; font-size: .86rem; }

/* باکس آگهی مرتبط در صفحه‌ی خبر */
.rah-news-box { margin: 26px 0; padding: 18px; background: #FAFAF7; border: 1px solid var(--line); border-radius: var(--radius); }
.rah-news-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rah-news-box-head h2 { display: inline-flex; align-items: center; gap: 7px; font-size: 1.08rem; color: var(--green); margin: 0; }
.rah-news-more { display: inline-flex; align-items: center; gap: 3px; font-size: .84rem; color: var(--brass); text-decoration: none; }
.rah-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* وضعیت آگهی در پنل */
.rah-adm-status { padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.rah-adm-status.pending { background: #FCF4E4; color: #8A6413; }
.rah-adm-status.published { background: #E8F3EA; color: #1F5B31; }
.rah-adm-status.rejected, .rah-adm-status.expired { background: #FBEBED; color: #A32638; }
.rah-adm-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rah-adm-imgs img { width: 110px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* واکنش‌گرایی راهنما */
@media (max-width: 1024px) {
  .rah-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .rah-grid, .rah-results .rah-grid, .rah-news-grid { grid-template-columns: repeat(3, 1fr); }
  .rah-listing { grid-template-columns: 1fr; }
  .rah-filters { position: static; }
  .rah-detail { grid-template-columns: 1fr; }
  .rah-detail-side { position: static; }
}
@media (max-width: 720px) {
  .rah-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rah-grid, .rah-results .rah-grid, .rah-news-grid { grid-template-columns: repeat(2, 1fr); }
  .rah-fields-grid { grid-template-columns: 1fr; }
  .rah-hero-search { flex-direction: column; }
  .rah-hero-search button { padding: 12px; justify-content: center; }
}
@media (max-width: 420px) {
  .rah-cat-grid { grid-template-columns: 1fr 1fr; }
  .rah-grid, .rah-results .rah-grid, .rah-news-grid { grid-template-columns: 1fr 1fr; }
  .rah-topbar-inner { justify-content: center; }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -64px; z-index: 300; background: var(--brass); color: var(--green-deep); font-weight: 700; padding: 9px 16px; border-radius: var(--radius-sm); transition: top var(--transition); }
.skip-link:focus { top: 12px; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
main:focus { outline: none; }

.hd-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-shrink: 0; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #F3EFE2; cursor: pointer; transition: background var(--transition), color var(--transition); }
.hd-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.hd-btn[aria-expanded="true"] { background: var(--brass); color: var(--green-deep); }
.mobile-search[hidden] { display: none; }

.nav-inner { overflow: hidden; position: static; }
.main-nav { position: relative; }
.nav-more { position: static; display: flex; margin-inline-start: auto; flex-shrink: 0; }
.nav-more[hidden] { display: none; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 4px; padding: 12px 16px; border: 0; background: transparent; color: #fff; font-family: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; transition: background var(--transition), border-color var(--transition); }
.nav-more-btn:hover, .nav-more-btn[aria-expanded="true"] { background: rgba(255,255,255,.07); border-bottom-color: var(--brass); }
.nav-more-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-more-btn .ic { transition: transform var(--transition); }
.nav-more-menu { position: absolute; top: 100%; left: 0; min-width: 220px; max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: flex; flex-direction: column; }
.nav-more-menu[hidden] { display: none; }
.nav-inner .nav-more-menu a { color: var(--ink); padding: 9px 12px; border-radius: var(--radius-sm); border-bottom: 0; border-inline-start: 3px solid var(--cat, transparent); white-space: nowrap; }
.nav-inner .nav-more-menu a:hover, .nav-inner .nav-more-menu a:focus-visible { background: var(--green-soft); color: var(--green); }

.drawer-scrim { position: fixed; inset: 0; background: rgba(8,18,12,.55); z-index: 190; opacity: 0; transition: opacity 260ms ease; }
.drawer-scrim.open { opacity: 1; }
.drawer-scrim[hidden], .site-drawer[hidden] { display: none; }
.site-drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 200; width: min(340px, 88vw); height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--surface); box-shadow: -12px 0 40px rgba(0,0,0,.25); transform: translateX(100%); transition: transform 260ms cubic-bezier(.4,0,.2,1); overscroll-behavior: contain; }
.site-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 12px 12px; background: var(--green); color: #F3EFE2; }
.drawer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; min-width: 0; }
.drawer-brand img { max-height: 38px; width: auto; }
.drawer-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-brand .logo-mark { width: 38px; height: 38px; border-radius: 10px; }
.drawer-close { display: inline-flex; }
.drawer-search { display: flex; margin: 14px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--paper); transition: border-color var(--transition), box-shadow var(--transition); }
.drawer-search:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(194,154,75,.18); }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 16px; font-family: inherit; font-size: 1rem; color: var(--ink); outline: none; }
.drawer-search button { width: 48px; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 0 8px 12px; display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .98rem; font-weight: 600; color: var(--ink); transition: background var(--transition), color var(--transition); }
.drawer-nav a:hover, .drawer-nav a:focus-visible { background: var(--green-soft); color: var(--green); }
.dn-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.dn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--green)); margin: 0 11px; flex-shrink: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--green)) 18%, transparent); }
.drawer-group { font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .3px; padding: 16px 12px 6px; border-top: 1px solid var(--line); margin-top: 8px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); font-size: .86rem; }
.drawer-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.drawer-foot a:hover { color: var(--green); }

.widget.widget-news { background: linear-gradient(135deg, var(--green), var(--green-deep)); color: #fff; border: 0; }
.widget.widget-news .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.2); }
.widget.widget-news .nl-text { color: #DCD7C8; }
.widget.widget-news .nl-form input:not(.hp) { background: #fff; color: var(--ink); border: 1px solid transparent; }
.widget.widget-news .nl-form input:focus { outline: 2px solid var(--brass); }

.rank-list a::before { content: counter(r, persian); }
.rank-list .rank-title { grid-column: 2; }
.rank-list .rank-meta { grid-column: 2; }

.preview-banner { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius); background: #E6EEF8; color: #1C4E87; border: 1px solid #C2D6EE; font-weight: 600; font-size: .9rem; }

@media (max-width: 900px) {
  .hd-btn { display: inline-flex; }
  .header-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px; padding: 10px 14px; flex-direction: row; }
  .header-top .logo { justify-self: center; justify-content: center; min-width: 0; flex: none; }
  .header-top > .search-form { display: none; }
  .logo-img { max-height: 42px; max-width: 58vw; object-fit: contain; }
  .logo-text { font-size: 1.2rem; }
  .logo-text small { display: none; }
  .logo-mark { width: 38px; height: 38px; }
  .main-nav { display: none; }
  .mobile-search { background: var(--green-deep); padding: 10px 0 12px; border-top: 1px solid rgba(194,154,75,.25); }
  .mobile-search .search-form { display: flex; width: auto; margin: 0 14px; padding: 0; }
  .mobile-search .search-form input { width: 100%; flex: 1; font-size: 1rem; padding: 11px 16px; }
  .mobile-search .search-form button { padding: 0 18px; }
  .breaking-label { padding: 7px 12px; font-size: .78rem; }
  .breaking-items a { font-size: .85rem; }
}

@media (max-width: 640px) {
  .news-river > .card:not(:first-child),
  .related .cards-grid > .card:not(:first-child),
  .band .cards-grid > .card:not(:first-child),
  .archive-grid > .card:not(:first-child) {
    flex-direction: row; align-items: stretch; min-height: 112px;
  }
  .news-river > .card:not(:first-child) .card-media,
  .related .cards-grid > .card:not(:first-child) .card-media,
  .band .cards-grid > .card:not(:first-child) .card-media,
  .archive-grid > .card:not(:first-child) .card-media {
    width: 118px; flex-shrink: 0; aspect-ratio: auto;
  }
  .news-river > .card:not(:first-child) .card-media img,
  .related .cards-grid > .card:not(:first-child) .card-media img,
  .band .cards-grid > .card:not(:first-child) .card-media img,
  .archive-grid > .card:not(:first-child) .card-media img { width: 100%; height: 100%; object-fit: cover; }
  .news-river > .card:not(:first-child) .card-body,
  .related .cards-grid > .card:not(:first-child) .card-body,
  .band .cards-grid > .card:not(:first-child) .card-body,
  .archive-grid > .card:not(:first-child) .card-body { padding: 10px 12px; gap: 5px; min-width: 0; }
  .news-river > .card:not(:first-child) .card-lead,
  .related .cards-grid > .card:not(:first-child) .card-lead,
  .band .cards-grid > .card:not(:first-child) .card-lead,
  .archive-grid > .card:not(:first-child) .card-lead,
  .news-river > .card:not(:first-child) .type-badge,
  .related .cards-grid > .card:not(:first-child) .type-badge,
  .band .cards-grid > .card:not(:first-child) .type-badge,
  .archive-grid > .card:not(:first-child) .type-badge { display: none; }
  .news-river > .card:not(:first-child) h3,
  .related .cards-grid > .card:not(:first-child) h3,
  .band .cards-grid > .card:not(:first-child) h3,
  .archive-grid > .card:not(:first-child) h3 { font-size: .93rem; line-height: 1.65; }
  .news-river > .card:not(:first-child) .cat-chip,
  .related .cards-grid > .card:not(:first-child) .cat-chip,
  .band .cards-grid > .card:not(:first-child) .cat-chip,
  .archive-grid > .card:not(:first-child) .cat-chip { font-size: .66rem; padding: 1px 9px; }
  .news-river, .related .cards-grid, .band .cards-grid, .archive-grid { gap: 12px; }
  .card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-drawer, .drawer-scrim, .nav-more-btn .ic { transition: none; }
}

.lb-zoomable, [data-lightbox], .post-body img[data-lb-index] { cursor: zoom-in; }
.post-cover a { display: block; }
.lbx { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; background: rgba(9,14,11,.985); color: #F3EFE2; opacity: 0; transition: opacity 200ms ease; }
.lbx.open { opacity: 1; }
.lbx[hidden] { display: none; }
.lbx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
.lbx-count { font-size: .92rem; font-weight: 700; color: #DCD7C8; font-variant-numeric: tabular-nums; }
.lbx-tools { display: flex; gap: 8px; }
.lbx-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background 180ms ease; }
.lbx-btn:hover { background: rgba(255,255,255,.18); }
.lbx-btn:focus-visible, .lbx-nav:focus-visible, .lbx-thumb:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.lbx-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; touch-action: pan-y pinch-zoom; }
.lbx-figure { flex: 1; min-width: 0; align-self: stretch; margin: 8px 0; display: grid; place-items: center; position: relative; }
.lbx-figure img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; opacity: 0; transform: scale(.985); transition: opacity 220ms ease, transform 220ms ease; user-select: none; -webkit-user-drag: none; }
.lbx-figure img.ready { opacity: 1; transform: none; }
.lbx-loader { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--brass); animation: lbx-spin .8s linear infinite; }
.lbx-loader[hidden] { display: none; }
@keyframes lbx-spin { to { transform: rotate(360deg); } }
.lbx-nav { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.lbx-nav:hover { background: var(--brass); border-color: var(--brass); color: var(--green-deep); }
.lbx-bottom { padding: 10px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.lbx-cap { max-width: 860px; text-align: center; font-size: .92rem; line-height: 1.9; color: #EDEAE0; }
.lbx-cap[hidden] { display: none; }
.lbx-cap small { display: block; color: var(--brass-soft); font-size: .8rem; margin-top: 2px; }
.lbx-strip { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.lbx-thumb { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border-radius: 8px; border: 2px solid transparent; overflow: hidden; background: #222; cursor: pointer; opacity: .55; transition: opacity 180ms ease, border-color 180ms ease; }
.lbx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lbx-thumb:hover { opacity: .85; }
.lbx-thumb.active { opacity: 1; border-color: var(--brass); }
.lbx.single .lbx-nav, .lbx.single .lbx-strip, .lbx.single .lbx-count { display: none; }
@media (max-width: 640px) {
  .lbx-stage { padding: 0; }
  .lbx-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; z-index: 2; background: rgba(0,0,0,.45); }
  .lbx-prev { inset-inline-start: 8px; }
  .lbx-next { inset-inline-end: 8px; }
  .lbx-figure img { border-radius: 0; }
  .lbx-thumb { width: 52px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lbx, .lbx-figure img, .lbx-nav, .lbx-thumb { transition: none; }
  .lbx-loader { animation: none; }
}

.otp-card { text-align: center; }
.otp-card .rah-field label { text-align: start; }
.otp-ic { width: 60px; height: 60px; border-radius: 18px; display: inline-grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 10px; }
.otp-phone { font-size: 1.25rem; font-weight: 800; letter-spacing: 2px; color: var(--green); margin: 4px 0 16px; }
.otp-input { text-align: center; font-size: 1.6rem !important; letter-spacing: 12px; font-weight: 800; padding: 12px !important; font-variant-numeric: tabular-nums; }
.otp-resend { margin-top: 12px; }
.otp-resend .rah-btn[disabled] { opacity: .55; cursor: not-allowed; }
.login-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.login-switch { display: flex; background: var(--green-soft); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.login-switch label { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; transition: background var(--transition), color var(--transition); }
#lm-pass:checked ~ .login-switch label[for="lm-pass"], #lm-otp:checked ~ .login-switch label[for="lm-otp"] { background: #fff; color: var(--green); box-shadow: var(--shadow); }
#lm-pass:focus-visible ~ .login-switch label[for="lm-pass"], #lm-otp:focus-visible ~ .login-switch label[for="lm-otp"] { outline: 2px solid var(--brass); }
.lm-otp-form, #lm-otp:checked ~ .lm-pass-form { display: none; }
#lm-otp:checked ~ .lm-otp-form { display: block; }
.link-like { color: var(--brass-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline; font-weight: 600; }

.unsub-card { max-width: 520px; margin: 48px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 28px; text-align: center; box-shadow: var(--shadow); }
.unsub-ic { width: 64px; height: 64px; border-radius: 18px; display: inline-grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 12px; }
.unsub-card h1 { font-size: 1.35rem; color: var(--green); margin-bottom: 10px; }
.unsub-card p { color: var(--muted); margin-bottom: 18px; line-height: 2; }

.pop-ad { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px; }
.pop-scrim { position: absolute; inset: 0; background: rgba(8,18,12,.6); opacity: 0; transition: opacity 220ms ease; }
.pop-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.35); transform: translateY(14px) scale(.98); opacity: 0; transition: transform 220ms ease, opacity 220ms ease; }
.pop-ad.open .pop-scrim { opacity: 1; }
.pop-ad.open .pop-card { transform: none; opacity: 1; }
.pop-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px; padding-inline-start: 14px; background: var(--surface); z-index: 1; }
.pop-label { font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.pop-close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background var(--transition), color var(--transition); }
.pop-close:hover { background: var(--green); color: #fff; }
.pop-close:focus-visible, .pop-cta:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.pop-body img { display: block; width: 100%; height: auto; max-height: min(72vh, 680px); object-fit: contain; background: var(--paper); }
.pop-text { padding: 6px 22px 24px; text-align: center; }
.pop-text h2 { font-size: 1.25rem; color: var(--green); margin-bottom: 10px; }
.pop-text p { color: var(--muted); line-height: 2; margin-bottom: 16px; }
.pop-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; transition: background var(--transition); }
.pop-cta:hover { background: var(--green-deep); color: #fff; }
.pop-code { padding: 0 12px 12px; }
@media (max-width: 640px) {
  .pop-ad { place-items: end center; padding: 0; }
  .pop-body img { max-height: 62vh; }
  .pop-card { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 86vh; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) { .pop-scrim, .pop-card { transition: none; } }

.rah-btn.sm { padding: 6px 12px; font-size: .8rem; border-radius: 8px; }
.rah-btn:disabled { opacity: .55; cursor: not-allowed; }
.rah-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.rah-status.unverified, .rah-status.awaiting_payment { background: #FFF1DC; color: #8A5300; }
.rac-inline { display: inline; }
.rac-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.rac-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--transition), border-color var(--transition); }
.rac-tabs a:hover { color: var(--green); }
.rac-tabs a.active { color: var(--green); border-bottom-color: var(--brass); }
.rac-hello { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rac-hello h1 { font-size: 1.35rem; color: var(--green); }
.rac-phone { color: var(--muted); font-size: .85rem; }
.rac-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rac-stats div, .rac-kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-align: center; }
.rac-stats b, .rac-kpis b { display: block; font-size: 1.45rem; color: var(--green); font-variant-numeric: tabular-nums; }
.rac-stats span, .rac-kpis span { font-size: .78rem; color: var(--muted); }
.rac-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.rac-card h2 { font-size: 1.05rem; color: var(--green); margin-bottom: 12px; }
.rac-h1 { font-size: 1.25rem; color: var(--green); margin-bottom: 14px; }
.rac-h2 { font-size: 1rem; color: var(--green); margin: 18px 0 10px; }
.rac-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.rac-head h2 { margin: 0; }
.rac-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 6px; }
.rac-chart.tall { height: 170px; }
.rac-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.rac-bar i { display: block; width: 100%; max-width: 26px; background: linear-gradient(180deg, var(--green), #2C6A4B); border-radius: 4px 4px 0 0; transition: opacity var(--transition); }
.rac-bar em { position: absolute; bottom: 0; width: 40%; max-width: 10px; background: var(--brass); border-radius: 3px 3px 0 0; }
.rac-bar:hover i { opacity: .8; }
.rac-bar small { font-size: .62rem; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.rac-legend { display: flex; gap: 6px 14px; align-items: center; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.rac-legend i, .rac-legend em { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--green); margin-inline-start: 8px; vertical-align: -2px; }
.rac-legend em { background: var(--brass); }
.rac-list { list-style: none; display: grid; gap: 10px; }
.rac-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; transition: border-color var(--transition), box-shadow var(--transition); }
.rac-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.rac-thumb { width: 84px; aspect-ratio: 4/3; border-radius: 8px; background: var(--green-soft); display: grid; place-items: center; overflow: hidden; color: var(--green); }
.rac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rac-info { min-width: 0; }
.rac-info h3 { font-size: .98rem; line-height: 1.8; margin-bottom: 4px; }
.rac-info h3 a:hover { color: var(--green); text-decoration: underline; }
.rac-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .78rem; color: var(--muted); }
.rac-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rac-feat { background: var(--brass); color: #fff; border-radius: 999px; padding: 1px 9px; font-weight: 700; }
.rac-note { background: #EEF2FF; color: #3A4A8A; border-radius: 999px; padding: 1px 9px; }
.rac-warn { color: var(--red) !important; font-weight: 700; }
.rac-reason { font-size: .82rem; color: var(--red); margin-top: 6px; line-height: 1.9; }
.rac-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.rac-actions form { display: contents; }
.rac-empty { text-align: center; padding: 30px; color: var(--muted); }
.rac-empty svg { opacity: .4; margin-bottom: 8px; }
.rac-empty .rah-btn { margin-top: 10px; }
.rac-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.rac-back:hover { color: var(--green); }
.rac-adhead { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 16px; }
.rac-adimg { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--green-soft); display: grid; place-items: center; overflow: hidden; color: var(--green); }
.rac-adimg img { width: 100%; height: 100%; object-fit: cover; }
.rac-adhead h1 { font-size: 1.3rem; line-height: 1.8; color: var(--ink); margin-bottom: 6px; }
.rac-info-line { font-size: .84rem; color: #8A6413; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.rac-pay-now { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #FFF1DC; border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .86rem; color: #8A5300; }
.rac-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.rac-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.rac-kpis div { padding: 10px 6px; }
.rac-kpis b { font-size: 1.15rem; }
.rac-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: .88rem; margin-bottom: 14px; }
.rac-dl dt { color: var(--muted); }
.rac-dl dd { font-weight: 600; overflow-wrap: anywhere; }
.rac-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rac-btns form { display: contents; }
.rac-hint { font-size: .78rem; color: var(--muted); margin-top: 10px; line-height: 1.9; }
.rac-center { text-align: center; }
.rac-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.rac-plan { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.rac-plan.hot { border-color: var(--brass-soft); background: linear-gradient(180deg, #FFFBF2, #fff); }
.rac-plan h3, .rac-plan h4 { font-size: .98rem; color: var(--green); margin: 0; }
.rac-plan p { font-size: .82rem; color: var(--ink); margin: 0; }
.rac-plan small { font-size: .76rem; color: var(--muted); line-height: 1.8; }
.rac-plan .rah-btn { margin-top: auto; justify-content: center; }
.rac-price { font-size: 1.1rem; color: var(--brass-deep); }
.rac-plans.pick .rac-plan { cursor: pointer; padding-inline-start: 40px; }
.rac-plans.pick .rac-plan input { position: absolute; inset-inline-start: 14px; top: 17px; width: 18px; height: 18px; accent-color: var(--green); }
.rac-plans.pick .rac-plan:hover { border-color: var(--line-strong); }
.rac-plans.pick .rac-plan:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 62, 43, .1); }
.rac-plans.pick .rac-plan:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.rac-plans.pick .rac-plan:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }
.rac-table-wrap { overflow-x: auto; }
.rac-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.rac-table th, .rac-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.rac-table th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.rac-table a { color: var(--green); text-decoration: underline; }
.rac-table .nowrap { white-space: nowrap; }
.rac-pay { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .76rem; font-weight: 700; }
.rac-pay.paid { background: #E8F3EA; color: #1F5B31; }
.rac-pay.pending { background: #FFF1DC; color: #8A5300; }
.rac-pay.failed { background: #FBEBED; color: #A32638; }
.rac-delete { text-align: left; margin-top: 4px; }
.rac-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.rac-img { width: 110px; display: flex; flex-direction: column; gap: 4px; font-size: .78rem; cursor: pointer; }
.rac-img img { width: 110px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.rac-img:has(input:checked) img { opacity: .35; outline: 2px solid var(--red); }
.rac-invoice { max-width: 560px; margin-inline: auto; }
.rac-inv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rac-inv-head .rac-h1 { margin: 0; }
.rac-total { display: flex; justify-content: space-between; align-items: center; background: var(--green-soft); border-radius: 10px; padding: 14px 16px; margin: 6px 0 16px; }
.rac-total b { font-size: 1.3rem; color: var(--green); }
.rac-ref { font-family: monospace; font-size: 1rem; letter-spacing: .5px; }
.rac-done { display: flex; align-items: center; gap: 8px; color: #1F5B31; font-weight: 700; margin-bottom: 12px; }
.rac-testgw { border: 2px dashed var(--brass); }
.rac-testbadge { background: #FFF1DC; color: #8A5300; border-radius: 8px; padding: 6px 10px; font-size: .82rem; margin-bottom: 12px; text-align: center; }
@media (max-width: 900px) { .rac-grid { grid-template-columns: minmax(0, 1fr); } .rac-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .rac-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rac-item { grid-template-columns: 64px minmax(0, 1fr); }
  .rac-thumb { width: 64px; }
  .rac-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .rac-actions .rah-btn { flex: 1 1 auto; justify-content: center; }
  .rac-adhead { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .rac-adhead h1 { font-size: 1.05rem; }
  .rac-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rac-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rac-item, .rac-plan, .rac-bar i, .rac-tabs a { transition: none; } }

.npp { padding: 8px 0 40px; }
.npp-head { text-align: center; padding: 30px 16px 26px; margin: 18px 0 26px; background: var(--green-deep); color: #F3EFE2; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.npp-head::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(194,154,75,.35); border-radius: calc(var(--radius-lg) - 6px); pointer-events: none; }
.npp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--brass); letter-spacing: .5px; }
.npp-head h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; margin: 6px 0 6px; color: #fff; line-height: 1.3; }
.npp-head p { color: rgba(243,239,226,.82); max-width: 560px; margin: 0 auto; font-size: .95rem; line-height: 1.9; }
.npp-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.npp-latest { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.npp-latest-cover { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 18px 40px rgba(14,42,28,.22); transition: transform var(--transition), box-shadow var(--transition); }
.npp-latest-cover:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 24px 50px rgba(14,42,28,.26); }
.npp-latest-cover img { display: block; width: 100%; height: auto; }
.npp-tag { display: inline-block; background: var(--brass); color: #1b1407; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 3px 12px; }
.npp-latest-body h2 { font-size: 2rem; font-weight: 900; color: var(--green); margin: 10px 0 4px; }
.npp-date { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.npp-lead { margin: 18px 0 10px; font-size: 1.2rem; font-weight: 800; line-height: 1.8; color: var(--ink); border-inline-start: 4px solid var(--brass); padding-inline-start: 14px; }
.npp-lead small { display: block; font-size: .75rem; font-weight: 700; color: var(--brass-deep); }
.npp-meta { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.npp-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.npp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--green); font-family: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.npp-btn:hover { background: var(--green-soft); border-color: var(--green); }
.npp-btn.primary { background: var(--green); color: #fff; border-color: var(--green); padding: 0 20px; }
.npp-btn.primary:hover { background: var(--green-deep); }
.npp-btn:focus-visible, .npp-card:focus-visible, .npp-latest-cover:focus-visible, .npp-thumbs a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.npp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.npp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.npp-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.npp-card-img { display: block; aspect-ratio: 620 / 700; overflow: hidden; background: #ECE8DD; border-bottom: 1px solid var(--line); }
.npp-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.npp-card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.npp-card-body b { color: var(--green); font-size: .95rem; }
.npp-card-body small { color: var(--muted); font-size: .8rem; }
.npp-card-body em { font-style: normal; font-size: .82rem; font-weight: 600; line-height: 1.7; margin-top: 4px; color: var(--ink); }
.npp-crumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 18px 0 10px; }
.npp-crumb a:hover { color: var(--green); text-decoration: underline; }
.npp-issue-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 3px double var(--line-strong); margin-bottom: 22px; }
.npp-issue-head h1 { font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 900; color: var(--green); line-height: 1.4; }
.npp-issue-head h1 span { color: var(--brass-deep); font-size: .7em; font-weight: 800; }
.npp-reader { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.npp-thumbs { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px; scrollbar-width: thin; }
.npp-thumbs a { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition); }
.npp-thumbs a:hover { border-color: var(--brass); box-shadow: var(--shadow); }
.npp-thumbs img { display: block; width: 100%; aspect-ratio: 1240 / 1754; object-fit: cover; object-position: top; }
.npp-thumbs span { display: block; text-align: center; font-size: .75rem; color: var(--muted); padding: 2px 0 4px; }
.npp-pages { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.npp-page { margin: 0; scroll-margin-top: 90px; }
.npp-page > a { display: block; background: #ECE8DD; box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 36px rgba(14,42,28,.16); border-radius: 4px; overflow: hidden; cursor: zoom-in; }
.npp-page img { display: block; width: 100%; height: auto; }
.npp-page figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); padding: 8px 2px 0; }
.npp-page figcaption a { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 700; min-height: 32px; }
.npp-page figcaption a:hover { text-decoration: underline; }
.npp-items ol { list-style: none; counter-reset: npi; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.npp-items li { counter-increment: npi; border-bottom: 1px dashed var(--line); }
.npp-items li a { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; font-weight: 600; line-height: 1.8; transition: color var(--transition); }
.npp-items li a::before { content: counter(npi, persian); color: var(--brass-deep); font-weight: 800; min-width: 22px; }
.npp-items li a:hover { color: var(--green); }
.npp-items b { background: var(--red); color: #fff; font-size: .7rem; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
@media (max-width: 900px) {
  .npp-reader { grid-template-columns: minmax(0, 1fr); }
  .npp-thumbs { position: static; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .npp-thumbs a { flex: 0 0 84px; }
  .npp-items ol { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .npp-latest { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 18px; }
  .npp-latest-cover { max-width: 300px; margin: 0 auto; width: 100%; }
  .npp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .npp-issue-head { align-items: flex-start; }
}
