/* ---------------------------------------------------------------------------
 * صفحه‌ی نویسنده — پورت دیزاین پروژه‌ی next.
 *
 * منبع توکن‌ها و کامپوننت‌ها همان چیزی است که صفحه‌ی جستجو از آن ساخته شد
 * (themes/iranbroker-next/.../dist/css)، ولی این فایل عمداً خودبسنده است:
 * search.css فقط روی is_search() لود می‌شود و صفحه‌ی نویسنده هیچ‌وقت آن را
 * نمی‌بیند. اسکوپ `.author-page` هم لازم است چون تم بوت‌استرپِ خودش را دارد و
 * `.btn`/`.breadcrumb`/`.pagination` آنجا معنی دیگری دارند.
 *
 * دو نکته‌ی تم که این فایل دورشان می‌زند:
 *   ۱) bootstrap.css تم `img[height]{height:unset}` دارد (ویژگی 0,1,1)، پس هر
 *      قاعده‌ای برای ارتفاع تصویر باید دست‌کم دوکلاسه باشد.
 *   ۲) `body` کلاس‌های وردپرس را ندارد (فیلتر تم پاکشان می‌کند)؛ کلاس
 *      `irb-author` را inc/author-page.php برمی‌گرداند.
 * ------------------------------------------------------------------------- */

/* ---------------------------------- توکن‌ها ---------------------------------
 * تم فعال هیچ‌کدام را تعریف نکرده، پس روی خود صفحه می‌نشینند. */
.author-page {
    --static-white: #ffffff;

    --bg-primary-dark: #1a4ab3;
    --bg-primary-base: #185adb;
    --bg-primary-alpha-16: rgba(24, 90, 219, 0.16);
    --bg-primary-alpha-10: rgba(24, 90, 219, 0.1);
    --bg-soft-200: #e1e4ea;
    --bg-weak-50: #f5f7fa;
    --bg-white-0: #ffffff;

    --text-primary-dark: #1a4ab3;
    --text-primary-base: #185adb;
    --text-strong-950: #0e121b;
    --text-sub-600: #525866;
    --text-soft-400: #99a0ae;
    --text-disabled-300: #cacfd8;
    --text-white-0: #ffffff;

    --stroke-primary-base: #185adb;
    --stroke-sub-300: #cacfd8;
    --stroke-soft-200: #e1e4ea;

    --icon-sub-600: #525866;
    --icon-soft-400: #99a0ae;
    --icon-disabled-300: #cacfd8;

    --typography-title-h5-font-size: 24px;
    --typography-title-h5-line-height: 32px;
    --typography-title-s-font-size: 20px;
    --typography-title-s-line-height: 28px;
    --typography-body-l-font-size: 16px;
    --typography-body-l-line-height: 26px;
    --typography-body-m-font-size: 14px;
    --typography-body-m-line-height: 22px;
    --typography-body-s-font-size: 12px;
    --typography-body-s-line-height: 20px;
    --typography-body-xs-font-size: 11px;
    --typography-body-xs-line-height: 18px;

    --author-radius-card: 20px;
    --author-radius-inner: 12px;
    --author-shadow: 0 1px 2px 0 rgba(10, 13, 20, 0.03);
    --author-shadow-hover: 0 16px 32px -12px rgba(14, 18, 27, 0.1);
}

/* --------------------------------- زمینه ---------------------------------- */
/* توکن‌ها روی .author-page نشسته‌اند نه :root، پس اینجا هگز خام لازم است */
body.irb-author {
    background: #f5f7fa;
}

/* ------------------------------- ریست موضعی -------------------------------
 * بوت‌استرپ تم به هدینگ‌ها margin و وزن ۷۰۰ می‌دهد، به `a` رنگ ثابت، و به
 * `dl`/`dd` حاشیه. همه را داخل همین صفحه خنثی می‌کنیم. */
.author-page :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    font-weight: inherit;
    font-variation-settings: "wght" 400, "KSHD" 100;
    line-height: inherit;
    font-size: inherit;
}

.author-page p {
    margin: 0;
}

.author-page a {
    color: inherit;
    text-decoration: none;
}

.author-page ol,
.author-page ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-page dl,
.author-page dd,
.author-page dt {
    margin: 0;
    font-weight: inherit;
}

.author-page img {
    max-width: 100%;
}

/* -------------------------------- آیکن‌ها ---------------------------------
 * اندازه از CSS می‌آید نه اتریبیوت، چون تم `svg[width="0"]{display:none}` و
 * `svg[height]{height:unset}` دارد. */
.author-page .irb-i {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ------------------------------- ظرف صفحه -------------------------------- */
.author-page {
    padding-top: 24px;
    padding-bottom: 48px;
    color: var(--text-strong-950);
    font-family: var(--Typography-Font-family, "EstedadVF", sans-serif);
}

/* ------------------------------- breadcrumb ------------------------------ */
.author-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    font-size: var(--typography-body-m-font-size);
    color: var(--text-sub-600);
}

.author-page .breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: inherit;
    line-height: 20px;
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
}

.author-page .breadcrumb .breadcrumb-item a {
    color: inherit;
    transition: color 0.2s ease;
}

.author-page .breadcrumb .breadcrumb-item a:hover {
    color: var(--text-primary-dark);
}

.author-page .breadcrumb .breadcrumb-item.active {
    color: var(--text-strong-950);
}

.author-page .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    float: none;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-inline: 6px;
    padding: 0;
    background-color: var(--icon-disabled-300);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.20498 9.99956L12.9175 13.7121L11.857 14.7726L7.08398 9.99956L11.857 5.22656L12.9175 6.28706L9.20498 9.99956Z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M9.20498 9.99956L12.9175 13.7121L11.857 14.7726L7.08398 9.99956L11.857 5.22656L12.9175 6.28706L9.20498 9.99956Z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ------------------------------ کارت پروفایل ------------------------------
 * دو ستون: هویت (راست) و کاشی‌های آمار (چپ). تزئین دو لایه است — یک هاله‌ی
 * برند و یک شبکه‌ی نقطه — هر دو gradient خالص، بدون تصویر و بدون blur. */
.author-page .author-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 40px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--stroke-soft-200);
    border-radius: var(--author-radius-card);
    background: var(--bg-white-0);
    box-shadow: var(--author-shadow);
}

.author-page .author-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block-start: -160px;
    inset-inline-start: -120px;
    width: 460px;
    height: 320px;
    background: radial-gradient(closest-side, rgba(24, 90, 219, 0.14), rgba(24, 90, 219, 0));
    pointer-events: none;
}

.author-page .author-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 320px;
    height: 100%;
    background-image: radial-gradient(circle, rgba(24, 90, 219, 0.16) 1px, transparent 1px);
    background-size: 16px 16px;
    mask-image: linear-gradient(to left, transparent, #000);
    -webkit-mask-image: linear-gradient(to left, transparent, #000);
    pointer-events: none;
}

.author-page .author-hero__identity {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
}

/* ---------------------------------- آواتار -------------------------------- */
.author-page .author-hero__avatar {
    position: relative;
    flex-shrink: 0;
    width: 112px;
    height: 112px;
    border-radius: 50%;
}

/* دوکلاسه چون `img[height]{height:unset}` تم وگرنه برنده می‌شود */
.author-page .author-hero__avatar .author-hero__avatar-img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* تصویر پیش‌فرض خودش زمینه‌ی دایره‌ای روشن دارد؛ cover لبه‌هایش را می‌بُرد */
.author-page .author-hero__avatar .author-hero__avatar-img--default {
    object-fit: contain;
}

/* --------------------------------- هویت ---------------------------------- */
.author-page .author-hero__headings {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-block-start: 6px;
}

.author-page .author-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-primary-alpha-10);
    color: var(--text-primary-base);
    font-size: var(--typography-body-xs-font-size);
    line-height: var(--typography-body-xs-line-height);
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
}

.author-page .author-hero__name {
    color: var(--text-strong-950);
    font-size: var(--typography-title-h5-font-size);
    line-height: var(--typography-title-h5-line-height);
    font-weight: 600;
    font-variation-settings: "wght" 600, "KSHD" 100;
}

.author-page .author-hero__bio {
    max-width: 68ch;
    color: var(--text-sub-600);
    font-size: var(--typography-body-m-font-size);
    line-height: 24px;
}

.author-page .author-hero__socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 4px;
}

.author-page .author-hero__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--stroke-soft-200);
    border-radius: 10px;
    background: var(--bg-white-0);
    color: var(--icon-sub-600);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.author-page .author-hero__social .irb-i {
    width: 16px;
    height: 16px;
}

.author-page .author-hero__social:hover {
    transform: translateY(-2px);
    border-color: var(--stroke-primary-base);
    color: var(--text-primary-base);
}

/* -------------------------------- کاشی آمار ------------------------------- */
.author-page .author-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-page .author-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 124px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--author-radius-inner);
    background: var(--bg-weak-50);
}

.author-page .author-stat__label {
    color: var(--text-soft-400);
    font-size: var(--typography-body-s-font-size);
    line-height: var(--typography-body-s-line-height);
}

.author-page .author-stat__value {
    color: var(--text-strong-950);
    font-size: var(--typography-body-l-font-size);
    line-height: 24px;
    font-weight: 600;
    font-variation-settings: "wght" 600, "KSHD" 100;
    white-space: nowrap;
}

/* اولین کاشی، عددِ اصلی صفحه است؛ فقط عدد رنگ می‌گیرد نه قاب */
.author-page .author-stat:first-child {
    background: var(--bg-primary-alpha-10);
}

.author-page .author-stat:first-child .author-stat__value {
    color: var(--text-primary-dark);
}

/* -------------------------------- نوار ابزار ------------------------------ */
.author-page__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.author-page__toolbar-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--text-strong-950);
    font-size: var(--typography-title-s-font-size);
    line-height: var(--typography-title-s-line-height);
    font-weight: 600;
    font-variation-settings: "wght" 600, "KSHD" 100;
}

.author-page__toolbar-count {
    color: var(--text-soft-400);
    font-size: var(--typography-body-s-font-size);
    line-height: var(--typography-body-s-line-height);
    font-weight: 400;
    font-variation-settings: "wght" 400, "KSHD" 100;
}

/* ------------------------------ تب نوع محتوا ------------------------------
 * روی موبایل به‌جای شکستن، افقی اسکرول می‌شود؛ نویسنده‌ای با شش نوع محتوا
 * وگرنه سه ردیف دکمه می‌شد. */
.author-page .btn-group {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border-radius: 10px;
    background: var(--bg-white-0);
    overflow: auto hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.author-page .btn-group::-webkit-scrollbar {
    display: none;
}

.author-page .btn-group > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* flex-shrink صفر لازم است نه سلیقه‌ای: با پیش‌فرض ۱، شش تب روی موبایل
     * به‌جای اسکرول‌کردن، توی هم می‌روند و برچسب‌ها روی هم می‌افتند. */
    flex: 0 0 auto;
    height: 38px;
    min-width: 0;
    padding: 6px 14px;
    border: 1px solid var(--stroke-soft-200);
    border-radius: 0;
    background: var(--bg-white-0);
    color: var(--text-sub-600);
    font-size: var(--typography-body-m-font-size);
    line-height: var(--typography-body-m-line-height);
    font-weight: 400;
    font-variation-settings: "wght" 400, "KSHD" 100;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.author-page .btn-group > .btn + .btn {
    margin-inline-start: -1px;
}

.author-page .btn-group > .btn:first-child {
    border-start-end-radius: 10px;
    border-end-end-radius: 10px;
}

.author-page .btn-group > .btn:last-child {
    border-start-start-radius: 10px;
    border-end-start-radius: 10px;
}

.author-page .btn-group > .btn:hover {
    position: relative;
    z-index: 1;
    background: var(--bg-weak-50);
    color: var(--text-strong-950);
}

.author-page .btn-group > .btn.active {
    position: relative;
    z-index: 2;
    border-color: var(--bg-primary-alpha-16);
    background: var(--bg-primary-alpha-10);
    color: var(--text-primary-base);
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
}

.author-page__tab-count {
    color: var(--text-soft-400);
    font-size: var(--typography-body-s-font-size);
}

.author-page .btn-group > .btn.active .author-page__tab-count {
    color: inherit;
    opacity: 0.75;
}

/* ---------------------------------- دکمه --------------------------------- */
.author-page .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--bg-primary-base);
    color: var(--text-white-0);
    font-size: var(--typography-body-m-font-size);
    line-height: var(--typography-body-m-line-height);
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
    transition: background-color 0.2s ease;
}

.author-page .btn-primary:hover {
    background: var(--bg-primary-dark);
    color: var(--text-white-0);
}

/* --------------------------------- شبکه‌ی کارت‌ها -------------------------- */
.author-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* --------------------------------- card-post -----------------------------
 * تفاوت اصلی با نسخه‌ی قبلی صفحه: قاب تصویر نسبت ثابت دارد. قبلاً ارتفاع
 * تصویر آزاد بود و هر کارت به‌اندازه‌ی نسبتِ عکسِ خودش بلند می‌شد، پس هیچ دو
 * کارتی در یک ردیف هم‌تراز نبودند. */
.author-page .card-post {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--stroke-soft-200);
    border-radius: var(--author-radius-card);
    background: var(--bg-white-0);
    box-shadow: var(--author-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.author-page .card-post:hover {
    transform: translateY(-2px);
    border-color: var(--bg-primary-alpha-16);
    box-shadow: var(--author-shadow-hover);
}

.author-page .card-post:hover .card-post__title {
    color: var(--text-primary-dark);
}

.author-page .card-post__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--author-radius-inner);
    background: var(--bg-weak-50);
}

/* دوکلاسه لازم است: `img[height]{height:unset}` تم هم‌ویژگیِ تک‌کلاس است.
 * position:absolute هم لازم است نه سلیقه‌ای: در کارت شاخص، ارتفاع قاب از
 * stretchِ فلکس می‌آید و درصدِ ارتفاع روی چنین والدی حل نمی‌شود؛ تصویر آنجا
 * به‌اندازه‌ی خودش می‌ماند و بقیه‌ی قاب خالی می‌ماند. */
.author-page .card-post .card-post__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease-in-out;
}

.author-page .card-post:hover .card-post__cover img {
    transform: scale(1.06);
}

/* لوگوی نهاد مالی شفاف است و کراپ‌شدنش بی‌معنی */
.author-page .card-post .card-post__cover--logo img {
    object-fit: contain;
    padding: 18px;
}

.author-page .card-post__cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-weak-50);
    background-image: radial-gradient(circle, rgba(24, 90, 219, 0.14) 1px, transparent 1px);
    background-size: 14px 14px;
    color: var(--text-soft-400);
    font-size: var(--typography-body-m-font-size);
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
}

.author-page .card-post__chip {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(14, 18, 27, 0.66);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--static-white);
    font-size: var(--typography-body-xs-font-size);
    line-height: var(--typography-body-xs-line-height);
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
}

.author-page .card-post__meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
    width: 100%;
    padding: 6px 8px 8px;
}

.author-page .card-post__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

.author-page .card-post__title {
    color: var(--text-strong-950);
    font-size: var(--typography-body-l-font-size);
    line-height: var(--typography-body-l-line-height);
    font-weight: 600;
    font-variation-settings: "wght" 600, "KSHD" 100;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.2s ease;
}

.author-page .card-post__description {
    color: var(--text-sub-600);
    font-size: var(--typography-body-s-font-size);
    line-height: var(--typography-body-s-line-height);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.author-page .card-post__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-block-start: auto;
    padding-block-start: 10px;
    border-block-start: 1px solid var(--stroke-soft-200);
}

.author-page .card-post__info {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    color: var(--text-sub-600);
    font-size: var(--typography-body-s-font-size);
    line-height: var(--typography-body-s-line-height);
    white-space: nowrap;
}

.author-page .card-post__read-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    color: var(--text-primary-base);
    font-size: var(--typography-body-s-font-size);
    line-height: var(--typography-body-s-line-height);
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
    white-space: nowrap;
}

.author-page .card-post__read-more .irb-i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.author-page .card-post:hover .card-post__read-more .irb-i {
    transform: translateX(-2px);
}

/* ------------------------------- کارت شاخص --------------------------------
 * تازه‌ترین مطلب، صدر صفحه‌ی اول: همان کامپوننت، افقی و بزرگ‌تر. */
.author-page__featured .card-post--featured {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    padding: 10px;
}

.author-page__featured .card-post--featured .card-post__cover {
    width: 45%;
    max-width: 520px;
    aspect-ratio: 16 / 10;
}

.author-page__featured .card-post--featured .card-post__meta {
    justify-content: center;
    gap: 14px;
    padding: 12px 10px 12px 6px;
}

.author-page__featured .card-post--featured .card-post__content {
    flex-grow: 0;
    gap: 10px;
}

.author-page__featured .card-post--featured .card-post__title {
    font-size: var(--typography-title-s-font-size);
    line-height: var(--typography-title-s-line-height);
    -webkit-line-clamp: 3;
}

.author-page__featured .card-post--featured .card-post__description {
    font-size: var(--typography-body-m-font-size);
    line-height: var(--typography-body-m-line-height);
    -webkit-line-clamp: 3;
}

.author-page__featured .card-post--featured .card-post__footer {
    margin-block-start: 0;
}

/* ------------------------------- صفحه‌بندی --------------------------------
 * components/common/pagination.css روی صفحه‌ی نویسنده enqueue نمی‌شود (فقط
 * باندل archive.css آن را دارد)، پس شماره‌ها بدون این بلوک متنِ خالی بودند. */
.author-page .pagination {
    display: flex;
    /* صریح، چون قاعده‌ی .pagination بوت‌استرپ/تم جهت و ترتیب را دستکاری می‌کند */
    direction: rtl;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: none;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.author-page .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--stroke-soft-200);
    border-radius: 10px;
    background: var(--bg-white-0);
    color: var(--text-sub-600);
    font-size: var(--typography-body-m-font-size);
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.author-page .pagination a.page-numbers:hover {
    border-color: var(--stroke-primary-base);
    color: var(--text-primary-base);
}

.author-page .pagination .page-numbers.current {
    border-color: var(--bg-primary-base);
    background: var(--bg-primary-base);
    color: var(--text-white-0);
    font-weight: 500;
    font-variation-settings: "wght" 500, "KSHD" 100;
}

.author-page .pagination .page-numbers.dots {
    min-width: 24px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: var(--text-disabled-300);
    pointer-events: none;
}

/* assets/js/pagination.js زیر ۷۶۸px متن قبلی/بعدی را با این SVG جایگزین می‌کند */
.author-page .pagination .page-numbers svg {
    width: 7px;
    height: 13px;
    stroke: currentColor;
}

/* ------------------------------- حالت خالی -------------------------------- */
.author-page .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 360px;
    padding: 32px 16px;
    border: 1px solid var(--stroke-soft-200);
    border-radius: var(--author-radius-card);
    background: var(--bg-white-0);
    text-align: center;
}

.author-page .empty-state__icon {
    width: 104px;
    height: 104px;
    margin-bottom: 8px;
}

.author-page .empty-state .empty-state__icon-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.author-page .empty-state__title {
    max-width: 452px;
    color: var(--text-sub-600);
    font-size: var(--typography-body-m-font-size);
    line-height: var(--typography-body-m-line-height);
}

/* --------------------------------- ریسپانسیو ----------------------------- */
@media (max-width: 1199px) {
    .author-page .author-hero {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 20px;
    }

    /* تک‌ستونی که شد، شبکه‌ی نقطه پشت متن بیو می‌افتد نه پشت فضای خالی */
    .author-page .author-hero::after {
        display: none;
    }

    .author-page .author-hero__stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .author-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .author-page__featured .card-post--featured .card-post__cover {
        width: 42%;
    }
}

@media (max-width: 991px) {
    .author-page__featured .card-post--featured {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .author-page__featured .card-post--featured .card-post__cover {
        width: 100%;
        max-width: none;
        aspect-ratio: 16 / 9;
    }

    .author-page__featured .card-post--featured .card-post__meta {
        padding: 6px 8px 8px;
    }

    .author-page__featured .card-post--featured .card-post__title {
        font-size: var(--typography-body-l-font-size);
        line-height: var(--typography-body-l-line-height);
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 767px) {
    body.irb-author {
        background: #ffffff;
    }

    .author-page {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .author-page .author-hero {
        gap: 16px;
        padding: 16px;
        border-radius: 16px;
    }

    .author-page .author-hero::after {
        display: none;
    }

    /* در ردیف، ستون متن کمتر از ۲۵۰px می‌ماند و نام و بیو هر دو می‌شکنند */
    .author-page .author-hero__identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .author-page .author-hero__avatar {
        width: 76px;
        height: 76px;
    }

    .author-page .author-hero__headings {
        padding-block-start: 0;
    }

    .author-page .author-hero__name {
        font-size: var(--typography-title-s-font-size);
        line-height: var(--typography-title-s-line-height);
    }

    .author-page .author-hero__bio {
        font-size: var(--typography-body-s-font-size);
        line-height: 22px;
    }

    .author-page .author-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .author-page .author-stat {
        min-width: 0;
        padding: 10px 12px;
    }

    .author-page .author-stat__value {
        font-size: var(--typography-body-m-font-size);
    }

    .author-page__toolbar {
        gap: 10px;
    }

    .author-page__toolbar-title {
        font-size: var(--typography-body-l-font-size);
        line-height: var(--typography-body-l-line-height);
    }

    .author-page .btn-group {
        width: 100%;
    }

    .author-page__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .author-page .card-post {
        border-radius: 16px;
    }

    .author-page .empty-state {
        min-height: 280px;
    }
}

/* تصویر روی هاور بزرگ می‌شود و کارت بالا می‌پرد؛ هر دو حرکت‌اند */
@media (prefers-reduced-motion: reduce) {
    .author-page .card-post,
    .author-page .card-post__cover img,
    .author-page .card-post__read-more .irb-i,
    .author-page .author-hero__social {
        transition: none;
    }

    .author-page .card-post:hover {
        transform: none;
    }

    .author-page .card-post:hover .card-post__cover img {
        transform: none;
    }

    .author-page .author-hero__social:hover {
        transform: none;
    }
}
