/* Single article refinements — deliberately scoped away from the shared shell. */

.single-post .cover-figure {
    width: min(100%, 800px);
    margin-inline: auto;
    margin-top: 0;
    margin-bottom: 2rem;
}

.single-post .cover-figure__img {
    width: 100%;
    height: auto;
    max-height: 540px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.single-post #article-entry-content {
    width: min(100%, 800px);
    margin-inline: auto;
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif;
    font-size: 17px;
    line-height: 2.05;
}

.single-post main.wrap,
.single-post #reader-view {
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif;
}

.single-post .article-hero-inner {
    display: flex;
    flex-direction: column;
}

.single-post .article-hero-kickers {
    order: 2;
}

.single-post .article-hero-title {
    order: 1;
    isolation: isolate;
    position: relative;
}

.single-post .article-hero-tools {
    order: 3;
}

.single-post .article-hero-title h1 {
    position: relative;
    z-index: 1;
}

.single-post .article-hero-brand-mark {
    width: 112px;
    height: 78px;
    margin-inline-start: auto;
    flex: 0 0 112px;
    color: #d49b3a;
    background: currentColor;
    opacity: .16;
    -webkit-mask: url("../home-redesign/barayand/brand/arrow-mark.png") center / contain no-repeat;
    mask: url("../home-redesign/barayand/brand/arrow-mark.png") center / contain no-repeat;
}

.single-post .single-related-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 77, 86, .13);
    border-radius: 1.15rem;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 16px 38px -30px rgba(6, 46, 51, .55);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.single-post .single-related-card:hover {
    border-color: rgba(192, 138, 46, .52);
    box-shadow: 0 24px 48px -30px rgba(6, 46, 51, .66);
    transform: translateY(-3px);
}

.single-post .single-related-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e6f1f2;
}

.single-post .single-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.single-post .single-related-card:hover .single-related-card__media img {
    transform: scale(1.035);
}

.single-post .single-related-card__media::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(3, 25, 29, .34), transparent);
    content: "";
    pointer-events: none;
}

.single-post .single-related-card__category {
    position: absolute;
    z-index: 1;
    right: .8rem;
    bottom: .75rem;
    max-width: calc(100% - 1.6rem);
    padding: .34rem .64rem;
    overflow: hidden;
    border-radius: 999px;
    color: #fff;
    background: #0a4d56;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-post .single-related-card__body {
    min-height: 118px;
    padding: 1rem 1.05rem .9rem;
    display: flex;
    flex-direction: column;
}

.single-post .single-related-card__body h3 {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .2s ease;
}

.single-post .single-related-card:hover h3 {
    color: #9a6b1f;
}

.single-post .single-related-card__meta {
    margin-top: auto;
    padding-top: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

html.dark .single-post .single-related-card {
    border-color: rgba(255, 255, 255, .1);
    color: #fff;
    background: #062e33;
    box-shadow: 0 18px 44px -30px rgba(0, 0, 0, .9);
}

html.dark .single-post .single-related-card:hover {
    border-color: rgba(232, 181, 96, .48);
}

html.dark .single-post .single-related-card__body h3 {
    color: #fff;
}

html.dark .single-post .single-related-card:hover h3 {
    color: #f0ce87;
}

html.dark .single-post .single-related-card__meta {
    color: rgba(230, 241, 242, .65);
}

.single-post main.wrap :is(h1, h2, h3, h4, .side-title),
.single-post #reader-view :is(h1, h2, h3, h4),
.single-post .article-inline-recommendation strong {
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
}

.single-post .article-date-actions {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-inline-start: auto;
}

.single-post .article-date-pill {
    min-height: 2.4rem;
    white-space: nowrap;
}

.single-post .article-bookmark-top {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
}

.single-post .article-desktop-quick-tools {
    display: none;
    align-items: center;
    gap: .4rem;
}

.single-post .article-desktop-reading-time {
    min-height: 2.4rem;
    padding-inline: .75rem;
    white-space: nowrap;
}

.single-post .article-desktop-reader-top {
    min-height: 2.4rem;
    padding: .5rem .9rem;
    border-radius: .75rem;
    font-size: .75rem;
    box-shadow: 0 14px 30px -18px rgba(192, 138, 46, .72);
}

.single-post .article-bookmark-top.is-active {
    background: #0a4d56;
    border-color: #0a4d56;
    color: #fff;
}

.single-post .article-bookmark-top.is-active svg {
    fill: currentColor;
}

html.dark .single-post .article-bookmark-top.is-active {
    background: #e8b560;
    border-color: #e8b560;
    color: #03191d;
}

.single-post .article-hero-tools {
    display: block;
    padding: .75rem;
    background: #f8fafc;
    border-color: rgba(10, 77, 86, .11);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

html.dark .single-post .article-hero-tools {
    background: #08404a;
    border-color: rgba(255, 255, 255, .09);
}

.single-post .article-mobile-tools {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.38fr) minmax(0, .72fr);
    align-items: stretch;
    gap: .4rem;
    width: 100%;
}

.single-post .article-mobile-tool {
    min-width: 0;
    min-height: 44px;
    padding-inline: .45rem;
    border: 1px solid rgba(10, 77, 86, .12);
    border-radius: .78rem;
    background: #fff;
    color: #0a4d56;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .32rem;
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.single-post .article-mobile-reader {
    background: #c08a2e;
    border-color: #c08a2e;
    color: #fff;
}

.single-post .article-mobile-tool svg {
    flex: 0 0 auto;
}

html.dark .single-post .article-mobile-tool {
    background: #062e33;
    border-color: rgba(255, 255, 255, .12);
    color: #e6f1f2;
}

html.dark .single-post .article-mobile-reader {
    background: #e8b560;
    border-color: #e8b560;
    color: #03191d;
}

.single-post .cover-figure__caption {
    background: #062e33;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* فونت عمومی متن مقاله و فهرست؛ stylesheet قدیمی فونت را روی خود تگ‌ها می‌نوشت. */
.single-post #article-entry-content :where(p, li, a, span, strong, b, em, cite, blockquote, figcaption, table, thead, tbody, tr, th, td),
.single-post .toc-list,
.single-post .toc-list *,
.single-post article details > summary,
.single-post article details > summary *,
.single-post main.wrap aside .side-title {
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif !important;
}

.single-post .article-inline-recommendation strong {
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif !important;
}

/* نقل‌قول مقاله — یک کارت مستقل، خوانا و بدون افکت شیشه‌ای. */
.single-post #article-entry-content blockquote,
.single-post #reader-article-body blockquote {
    position: relative;
    isolation: isolate;
    margin: 2.25rem 0;
    padding: 4.15rem 1.45rem 1.55rem;
    overflow: hidden;
    border: 1px solid #f0ce87;
    border-inline-start: 5px solid #c08a2e;
    border-radius: 1.2rem;
    background: #fefaf0;
    color: #0f172a;
    box-shadow: 0 20px 48px -36px rgba(116, 80, 15, .72);
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 2.05;
}

.single-post #article-entry-content blockquote::before,
.single-post #reader-article-body blockquote::before {
    content: "”";
    position: absolute;
    z-index: 2;
    top: 1.15rem;
    right: 1.15rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .9rem;
    background: #0a4d56;
    color: #f0ce87;
    display: grid;
    place-items: center;
    padding-top: .28rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 24px -14px rgba(10, 77, 86, .7);
}

.single-post #article-entry-content blockquote::after,
.single-post #reader-article-body blockquote::after {
    content: none;
    position: absolute;
    z-index: 2;
    top: 1.15rem;
    left: 1.15rem;
    min-height: 1.75rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: #fbf1de;
    color: #9a6b1f;
    display: none;
    align-items: center;
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0;
}

.single-post #article-entry-content blockquote > *,
.single-post #reader-article-body blockquote > * {
    position: relative;
    z-index: 1;
    margin: 0;
    color: inherit;
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif !important;
    font-size: inherit;
    line-height: inherit;
}

html.dark .single-post #article-entry-content blockquote,
html.dark .single-post #reader-article-body blockquote {
    border-color: rgba(240, 206, 135, .42);
    border-inline-start-color: #e8b560;
    background: #08404a;
    color: #f1f5f9;
    box-shadow: 0 22px 48px -34px rgba(0, 0, 0, .9);
}

html.dark .single-post #article-entry-content blockquote::before,
html.dark .single-post #reader-article-body blockquote::before {
    background: #e8b560;
    color: #03191d;
}

html.dark .single-post #article-entry-content blockquote::after,
html.dark .single-post #reader-article-body blockquote::after {
    background: #062e33;
    color: #f0ce87;
}

.single-post #article-entry-content h2,
.single-post #reader-article-body h2 {
    scroll-margin-top: calc(var(--br-webinar-bar-height, 56px) + 76px);
    font-size: 30px;
    line-height: 1.65;
    margin-top: 3.25rem;
    margin-bottom: .85rem;
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
}

.single-post #article-entry-content h3,
.single-post #reader-article-body h3 {
    scroll-margin-top: calc(var(--br-webinar-bar-height, 56px) + 76px);
    font-size: 21px;
    line-height: 1.8;
    margin-top: 2.15rem;
    margin-bottom: .45rem;
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
}

.single-post .article-inline-recommendation {
    position: relative;
    width: 100%;
    margin: 3rem 0 1.1rem;
    border: 1px solid rgba(10, 77, 86, .14);
    border-radius: 1.15rem;
    overflow: hidden;
    background: #f3f8f9;
    box-shadow: 0 18px 38px -30px rgba(6, 46, 51, .7);
}

.single-post .article-inline-recommendation::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    background: #c08a2e;
    z-index: 2;
}

.single-post .article-inline-recommendation > a {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    min-height: 118px;
    color: inherit;
    text-decoration: none;
}

.single-post .article-inline-recommendation figure {
    width: 100%;
    min-height: 118px;
    overflow: hidden;
    background: #0a4d56;
}

.single-post .article-inline-recommendation__image,
.single-post .article-inline-recommendation__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 118px;
    object-fit: cover;
    transition: transform .3s ease;
}

.single-post .article-inline-recommendation__placeholder {
    color: #fff;
    display: grid;
    place-items: center;
    padding: 1rem;
    text-align: center;
    font-family: "Peyda", "Yekan Bakh", Tahoma, sans-serif;
    font-weight: 800;
}

.single-post .article-inline-recommendation__body {
    min-width: 0;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.single-post .article-inline-recommendation__eyebrow {
    color: #9a6b1f;
    font-size: 11px;
    font-weight: 850;
}

.single-post .article-inline-recommendation strong {
    margin-top: .28rem;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.7;
}

.single-post .article-inline-recommendation__meta {
    width: 100%;
    margin-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.single-post .article-inline-recommendation__link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #0a4d56;
    font-weight: 900;
}

.single-post .article-inline-recommendation:hover {
    border-color: rgba(192, 138, 46, .42);
    box-shadow: 0 22px 44px -28px rgba(6, 46, 51, .58);
}

.single-post .article-inline-recommendation:hover .article-inline-recommendation__image {
    transform: scale(1.035);
}

.single-post .article-inline-recommendation + h2,
.single-post #reader-article-body .article-inline-recommendation + h2 {
    margin-top: 1.25rem;
}

html.dark .single-post .article-inline-recommendation {
    background: #08404a;
    border-color: rgba(255, 255, 255, .11);
    box-shadow: 0 20px 42px -28px rgba(0, 0, 0, .85);
}

html.dark .single-post .article-inline-recommendation strong {
    color: #fff;
}

html.dark .single-post .article-inline-recommendation__eyebrow,
html.dark .single-post .article-inline-recommendation__link {
    color: #f0ce87;
}

html.dark .single-post .article-inline-recommendation__meta {
    color: rgba(230, 241, 242, .7);
}

.single-post .article-end-credit {
    width: min(100%, 800px);
    min-height: 64px;
    margin: 2.5rem auto 0;
    padding: .85rem 1rem;
    border: 1px solid rgba(10, 77, 86, .13);
    border-radius: 1rem;
    background: #f3f8f9;
    color: #0a4d56;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    font-family: "Yekan Bakh", "IRANSansX", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 850;
}

.single-post .article-end-credit > span {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .72rem;
    background: #0a4d56;
    color: #f0ce87;
    display: grid;
    place-items: center;
}

html.dark .single-post .article-end-credit {
    background: #08404a;
    border-color: rgba(255, 255, 255, .1);
    color: #e6f1f2;
}

html.dark .single-post .article-end-credit > span {
    background: #03191d;
}

.single-post #article-entry-content ul,
.single-post #reader-article-body ul {
    list-style: disc outside;
}

.single-post #article-entry-content ol,
.single-post #reader-article-body ol {
    list-style: decimal outside;
}

.single-post #article-entry-content ul,
.single-post #article-entry-content ol,
.single-post #reader-article-body ul,
.single-post #reader-article-body ol {
    padding-inline-start: 1.65rem;
    padding-inline-end: 0;
    margin-block: 1.4rem;
}

.single-post #article-entry-content ul ul,
.single-post #reader-article-body ul ul {
    list-style-type: circle;
}

.single-post #article-entry-content li,
.single-post #reader-article-body li {
    padding-inline-start: .25rem;
    padding-inline-end: 0;
    margin-block: .55rem;
}

.single-post #article-entry-content ul > li,
.single-post #reader-article-body ul > li {
    font-weight: 700;
}

.single-post #article-entry-content ul > li::marker,
.single-post #reader-article-body ul > li::marker {
    color: #c08a2e;
    font-size: 1.08em;
}

.single-post #article-entry-content ol > li::marker,
.single-post #reader-article-body ol > li::marker {
    color: #0a4d56;
    font-weight: 900;
}

html.dark .single-post #article-entry-content ol > li::marker,
html.dark .single-post #reader-article-body ol > li::marker {
    color: #a7ced3;
}

.single-post #toc {
    max-height: min(54vh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #a7ced3 transparent;
}

.single-post #toc a:focus-visible,
.single-post article details .toc-list a:focus-visible {
    outline: 2px solid #c08a2e;
    outline-offset: 2px;
}

.single-post .article-editorial-credit {
    max-width: 18rem;
}

.single-post .js-native-share,
.single-post .js-copy-share,
.single-post #like-btn {
    min-height: 44px;
}

.single-post #like-btn {
    min-width: 44px;
}

@media (max-width: 767px) {
    .single-post .crumb {
        display: none;
    }

    .single-post main.wrap > section.mt-10 {
        margin-top: 1.5rem;
    }

    .single-post .article-hero-title {
        order: 1;
        margin-top: 0 !important;
        gap: .65rem;
    }

    .single-post .article-hero-title h1 {
        font-size: 25px !important;
        line-height: 1.55 !important;
        letter-spacing: -.012em;
    }

    .single-post .article-hero-title .title-deco__bar {
        width: 4px;
    }

    .single-post .article-hero-brand-mark {
        width: 62px;
        height: 46px;
        flex-basis: 62px;
        opacity: .12;
    }

    .single-post .article-hero-kickers {
        order: 2;
        width: 100%;
        margin-top: 1rem;
        flex-wrap: nowrap;
        gap: .32rem;
    }

    .single-post .article-hero-kickers .cat-stamp {
        min-width: 0;
        max-width: 36%;
        min-height: 34px;
        padding: .28rem .28rem .28rem .58rem;
        gap: .35rem;
        white-space: nowrap;
        font-size: 10.5px;
    }

    .single-post .article-hero-kickers .cat-stamp__dot {
        width: 1.4rem;
        height: 1.4rem;
        flex: 0 0 1.4rem;
    }

    .single-post .article-hero-kickers > .pill-soft:not(.pill-soft--ed) {
        min-width: 0;
        max-width: 21%;
        min-height: 34px;
        padding: .35rem .52rem;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 10px;
    }

    .single-post .article-hero-kickers > .pill-soft--ed {
        display: none;
    }

    .single-post .article-date-actions {
        display: contents;
    }

    .single-post .article-date-pill {
        flex: 1 1 auto;
        max-width: none !important;
        min-height: 34px;
        padding: .35rem .48rem;
        justify-content: center;
        font-size: 10px;
    }

    .single-post .article-bookmark-top {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: .72rem;
    }

    .single-post .article-hero-tools {
        order: 3;
        margin-top: 1rem !important;
        padding: .42rem;
        border-radius: .95rem;
    }

    .single-post #article-entry-content blockquote,
    .single-post #reader-article-body blockquote {
        margin: 2rem 0;
        padding: 4.15rem 1.05rem 1.2rem;
        border-inline-start-width: 4px;
        border-radius: 1rem;
        font-size: 16px;
        line-height: 2.08;
    }

    .single-post #article-entry-content blockquote::before,
    .single-post #reader-article-body blockquote::before {
        top: .85rem;
        right: .85rem;
        width: 2.35rem;
        height: 2.35rem;
        border-radius: .75rem;
        font-size: 2.25rem;
    }

    .single-post #article-entry-content blockquote::after,
    .single-post #reader-article-body blockquote::after {
        top: 1rem;
        left: .85rem;
    }

    .single-post .cover-figure {
        margin-bottom: 1.35rem;
        border-width: 4px;
        border-radius: 1.15rem;
    }

    .single-post .cover-figure__img {
        max-height: none;
        aspect-ratio: 16 / 9;
    }

    .single-post #article-entry-content {
        font-size: 16px;
        line-height: 2.05;
    }

    .single-post #article-entry-content h2,
    .single-post #reader-article-body h2 {
        font-size: 23px;
        line-height: 1.7;
        margin-top: 2.8rem;
        margin-bottom: .75rem;
    }

    .single-post #article-entry-content h3,
    .single-post #reader-article-body h3 {
        font-size: 18px;
        line-height: 1.8;
        margin-top: 1.9rem;
        margin-bottom: .35rem;
    }

    .single-post article details .toc-list a {
        min-height: 44px;
        padding-block: .65rem;
    }

    .single-post .article-editorial-credit {
        max-width: none;
        font-size: 13px;
    }

    .single-post .article-inline-recommendation {
        margin-top: 2.5rem;
        border-radius: 1rem;
    }

    .single-post .article-inline-recommendation > a {
        grid-template-columns: 106px minmax(0, 1fr);
        min-height: 108px;
    }

    .single-post .article-inline-recommendation figure,
    .single-post .article-inline-recommendation__image,
    .single-post .article-inline-recommendation__placeholder {
        min-height: 108px;
    }

    .single-post .article-inline-recommendation__body {
        padding: .72rem .75rem;
    }

    .single-post .article-inline-recommendation__eyebrow {
        font-size: 9.5px;
    }

    .single-post .article-inline-recommendation strong {
        font-size: 14px;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .single-post .article-inline-recommendation__meta {
        margin-top: .32rem;
        font-size: 9.5px;
    }

    .single-post .article-inline-recommendation__link {
        display: none;
    }

    .single-post .article-end-credit {
        min-height: 58px;
        margin-top: 2rem;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .single-post .article-hero-kickers .cat-stamp {
        max-width: 34%;
        padding-inline: .55rem;
    }

    .single-post .article-hero-kickers .cat-stamp__dot {
        display: none;
    }

    .single-post .article-hero-kickers > .pill-soft:not(.pill-soft--ed) {
        max-width: 19%;
        padding-inline: .4rem;
    }

    .single-post .article-date-pill {
        font-size: 9.5px !important;
    }
}

@media (min-width: 768px) {
    .single-post .article-hero-title {
        margin-top: 0 !important;
    }

    .single-post .article-hero-kickers {
        margin-top: 1.25rem;
    }

    .single-post .article-desktop-quick-tools {
        display: flex;
    }

    .single-post .article-hero-tools {
        display: none;
    }

    .single-post .article-mobile-tools {
        display: none;
    }
}

@media (min-width: 1180px) {
    .single-post #article-entry-content h2,
    .single-post #article-entry-content h3 {
        scroll-margin-top: calc(var(--br-webinar-bar-height, 48px) + 88px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-post .toc-list a {
        transition: none;
    }
}
