/* ==========================================================================
   افزوده‌های وردپرس — قالب اختصاصی اتاق اصناف تهران | آریان دیتا
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; background: var(--card); padding: 10px 16px; z-index: 999; }
.h3 { font-size: 15.5px; display: flex; gap: 8px; align-items: center; margin: 0; }
.h3 svg { color: var(--brand); }
.h4 { font-size: 14px; line-height: 1.8; margin: 0 0 4px; font-weight: 700; }

/* منوی وردپرس در نوار بالا */
.topbar__menu { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.topbar__menu a { opacity: .85; font-size: 13px; }
.topbar__menu a:hover { opacity: 1; }
@media (max-width: 900px) { .topbar__menu { display: none; } }
.footer__links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; opacity: .8; }

/* مسیر راهنمای Yoast */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }
.crumbs > span { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .breadcrumb_last { opacity: .8; }
.article .crumbs { color: var(--mute); margin-bottom: 14px; }
.page-hero__desc { opacity: .9; max-width: 760px; }
.page-hero__desc p { margin: 6px 0 0; }

/* فهرست اخبار */
.news-list { display: flex; flex-direction: column; padding: 14px !important; }
.news-list .ncard:last-child { margin-bottom: 0; }
.ncard--page { grid-template-columns: 1fr !important; }
.ncard__img .ph, .thumb .ph { display: block; width: 100%; height: 100%; min-height: 80px; background: linear-gradient(135deg, var(--bg-2), var(--line)); }
.ncard__meta time { font: inherit; }

/* صفحه‌بندی */
.navigation.pagination { margin: 22px 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); }
.nav-links .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-links a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.nav-links .dots { border: 0; background: none; }

/* محتوای نوشته */
.entry { font-size: 16.5px; line-height: 2.15; color: var(--ink); overflow-wrap: anywhere; }
.entry > *:first-child { margin-top: 0; }
.entry p { margin: 0 0 1.1em; text-align: justify; }
.entry h2, .entry h3, .entry h4 { font-family: var(--f-head); font-weight: 400; line-height: 1.7; margin: 1.4em 0 .5em; }
.entry h2 { font-size: 1.35em; } .entry h3 { font-size: 1.2em; } .entry h4 { font-size: 1.08em; }
.entry a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.entry img { max-width: 100%; height: auto; border-radius: 12px; }
.entry figure { margin: 1.2em 0; max-width: 100%; }
.entry figcaption, .wp-caption-text { font-size: 13px; color: var(--mute); text-align: center; margin-top: 6px; }
.entry blockquote { margin: 1.2em 0; padding: 14px 18px; border-right: 4px solid var(--accent); background: var(--bg-2); border-radius: 10px; }
.entry ul, .entry ol { padding-right: 1.4em; }
.entry table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; display: block; overflow-x: auto; }
.entry td, .entry th { border: 1px solid var(--line); padding: 8px 10px; }
.entry iframe, .entry video { max-width: 100%; border-radius: 12px; }
.wp-caption { max-width: 100% !important; }
.alignleft { float: left; margin: 0 18px 12px 0; } .alignright { float: right; margin: 0 0 12px 18px; } .aligncenter { display: block; margin-inline: auto; }
@media (max-width: 640px) { .alignleft, .alignright { float: none; margin: 0 0 12px; } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 1.2em 0; }
.gallery-item { margin: 0; } .gallery-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; border: 0 !important; }
.gallery br { display: none; }
.article__img video { width: 100%; display: block; background: #000; }
.article__img figcaption { padding: 8px 12px; }
.article__src { font-size: 13px; margin: 6px 0 0; }
.dl-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* اخبار مرتبط */
.related-box { margin-top: 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rel-grid .thumb img, .rel-grid .thumb .ph { width: 110px; height: 76px; object-fit: cover; border-radius: 10px; flex: none; min-height: 0; }
@media (max-width: 640px) { .rel-grid { grid-template-columns: minmax(0, 1fr); } }

/* ستون کناری */
.quick-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-svc a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 12px; background: var(--bg-2); font-size: 13px; font-weight: 700; text-align: center; transition: .2s; }
.quick-svc a:hover { background: var(--brand); color: #fff; }
.quick-svc svg { width: 22px; height: 22px; }
.widget { margin-bottom: 18px; overflow: hidden; }
.widget .side-h { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.widget .side-h h3 { margin: 0; font-size: 15px; }
.widget > *:not(.side-h) { padding: 14px 18px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.widget img { max-width: 100%; height: auto; }
.tagcloud a { display: inline-block; margin: 3px; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px !important; }

/* نظرات */
.comments-box { margin-top: 20px; }
.comment-respond { margin-bottom: 8px; }
.cm-form { display: flex; flex-wrap: wrap; gap: 0 12px; }
.cm-form > * { flex: 1 1 100%; min-width: 0; }
.cm-form > .f3 { flex: 1 1 200px; }
.cm-form .req { color: var(--err); }
.cm-foot { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.comment-reply-title:not([hidden]) { font-size: 15px; margin: 0 0 10px; }
#cancel-comment-reply-link { font-size: 13px; color: var(--err); margin-inline-start: 10px; }
.cm-list-wrap { margin-top: 22px; }
.cm-sort { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cm__t p { margin: 0 0 6px; }
.cm__badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cm .children { margin-top: 12px; padding-right: 14px; border-right: 2px solid var(--line); }
.cm__a .comment-reply-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--mute); }
.cm__a .comment-reply-link svg { width: 15px; height: 15px; }
.comment-awaiting-moderation { display: none; }
.comments-pagination { margin-top: 14px; }
#unionHits { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.uh-t { display: flex; gap: 6px; align-items: center; width: 100%; margin-bottom: 4px; }

/* دروازه ورود و ۴۰۴ */
.gate { max-width: 640px; margin: 30px auto; text-align: center; padding: 44px 26px !important; }
.gate__ic { width: 54px; height: 54px; color: var(--brand); margin-bottom: 10px; }
.gate h1 { font-family: var(--f-head); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
.gate__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.search--big { position: relative; max-width: 440px; margin: 18px auto 0; }
.search--big input { width: 100%; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); padding: 0 44px 0 14px; background: var(--card); color: var(--ink); font: inherit; }
.search--big svg { position: absolute; right: 14px; top: 14px; color: var(--mute); }

/* داشبورد: اعلان داده نمونه */
.seed-note { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--ink); }
.seed-note svg { width: 16px; height: 16px; flex: none; color: var(--warn); }

/* نوار مدیریت وردپرس */
.admin-bar .masthead.is-stuck { top: 32px; }
@media (max-width: 782px) { .admin-bar .masthead.is-stuck { top: 0; } }
