/* =========================================================
   Blog Single - Persian / RTL
   متغیرها، کارت‌ها، دکمه‌ها و هیرو در blog.css تعریف شده‌اند.
   ========================================================= */

/* ── Reading progress ─────────────────────────────────── */
.wr-reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1200;
    height: 4px;
    background: linear-gradient(270deg, var(--wr-c-accent), var(--wr-c-alt));
    transform: scaleX(0);
    transform-origin: right center;
    pointer-events: none;
}


/* ── Hero ─────────────────────────────────────────────── */
.wr-single-hero.has-cover {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2.25rem;
    text-align: right;
}

.wr-single-hero.has-cover .wr-breadcrumb,
.wr-single-hero.has-cover .wr-single-meta {
    justify-content: flex-start;
}

.wr-single-hero.has-cover .wr-blog-hero__title,
.wr-single-hero.has-cover .wr-blog-hero__lead {
    margin-inline: 0;
}

.wr-single-hero .wr-blog-hero__lead {
    margin-bottom: 1.5rem;
}

.wr-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem 1.25rem;
}

.wr-single-meta__author {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--wr-dark);
    font-size: .85rem;
    font-weight: 700;
}

.wr-single-meta__avatar {
    width: 36px;
    height: 36px !important;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--wr-shadow-sm);
}

.wr-single-cover {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--wr-radius);
    background: var(--wr-cream-soft);
    box-shadow: var(--wr-shadow);
    overflow: hidden;
}

.wr-single-cover__img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}


/* ── Layout ───────────────────────────────────────────── */
.wr-single-body {
    padding: 3rem 0 4rem;
}

.wr-single-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 800px);
    justify-content: center;
    gap: 3rem;
}

.wr-single-aside {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wr-single-article {
    min-width: 0;
}


/* ── Sidebar cards ────────────────────────────────────── */
.wr-aside-card {
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius);
    background: var(--wr-surface);
}

.wr-aside-card__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    color: var(--wr-dark);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.6;
}

.wr-aside-card__title::before {
    content: '';
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--wr-accent);
}

/* TOC */
.wr-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: right;
    cursor: default;
}

.wr-toc__icon {
    display: none;
    color: var(--wr-accent);
    transition: transform .3s ease;
}

.wr-toc.is-open .wr-toc__icon {
    transform: rotate(180deg);
}

.wr-toc__nav {
    max-height: calc(100vh - 360px);
    min-height: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
}

#post-toc,
#post-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#post-toc ul {
    padding-right: .9rem;
}

#post-toc a {
    position: relative;
    display: block;
    padding: .4rem .9rem .4rem .5rem;
    border-radius: var(--wr-radius-sm);
    color: var(--wr-c-muted) !important;
    font-size: .82rem;
    line-height: 1.7;
    transition: color .2s ease, background .2s ease;
}

#post-toc a::before {
    content: '';
    position: absolute;
    top: 50%;
    right: .2rem;
    width: 4px;
    height: 4px;
    border-radius: 4px;
    background: var(--wr-border-strong);
    transform: translateY(-50%);
    transition: background .2s ease, height .2s ease;
}

#post-toc a:hover {
    color: var(--wr-dark) !important;
}

#post-toc a.active {
    background: var(--wr-cream-soft);
    color: var(--wr-dark) !important;
    font-weight: 700;
}

#post-toc a.active::before {
    height: 14px;
    background: var(--wr-accent);
}

/* Share */
.wr-share__list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.wr-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-width: 40px;
    height: 40px;
    padding: 0 .6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--wr-cream);
    color: var(--wr-dark) !important;
    font-size: .8rem;
    transition: background .2s ease, color .2s ease;
}

.wr-share__btn svg {
    width: 18px;
    height: 18px;
}

.wr-share__btn:hover {
    background: var(--wr-dark);
    color: #fff !important;
}

.wr-share__btn.is-copied {
    background: var(--wr-accent);
    color: #fff !important;
}

.wr-share__copy {
    flex: 1 1 100%;
}


/* ── Article typography ───────────────────────────────── */
/* خنثی کردن قواعد قدیمی style.css برای .post-content (رنگ خاکستری پاراگراف،
   زیرخط تیترها و فونت iranyekan که در قالب بارگذاری نمی‌شود) */
.wr-single-article .post-content {
    font-family: 'dana', sans-serif;
}

.wr-single-article .post-content p {
    color: inherit;
}

.wr-single-article .post-content :is(h1, h2, h3, h4, h5, h6) {
    text-decoration: none;
}

.post-content {
    color: color-mix(in srgb, var(--wr-c-text) 88%, #fff);
    font-size: 1rem;
    line-height: 2.1;
    text-align: right;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--wr-dark);
    font-weight: 700;
    line-height: 1.6;
    scroll-margin-top: 110px;
}

.post-content h2 {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 2.75rem 0 1rem;
    font-size: 1.45rem;
}

.post-content h2::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 22px;
    border-radius: 4px;
    background: var(--wr-accent);
}

.post-content h3 {
    margin: 2rem 0 .8rem;
    font-size: 1.2rem;
}

.post-content h4 {
    margin: 1.75rem 0 .75rem;
    font-size: 1.05rem;
}

.post-content h5,
.post-content h6 {
    margin: 1.5rem 0 .6rem;
    font-size: .95rem;
}

.post-content a:not([class]) {
    color: var(--wr-accent-text) !important;
    font-weight: 700;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .25s ease;
}

.post-content a:not([class]):hover {
    background-size: 100% 1px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.4rem;
    padding-right: 1.4rem;
    padding-left: 0;
}

.post-content li {
    margin-bottom: .45rem;
}

.post-content ul:not([class]) > li {
    list-style: disc;
}

.post-content ol:not([class]) > li {
    list-style: decimal;
}

.post-content li::marker {
    color: var(--wr-accent);
    font-weight: 700;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-right: 4px solid var(--wr-accent);
    border-radius: var(--wr-radius-sm) 0 0 var(--wr-radius-sm);
    background: var(--wr-cream);
    color: var(--wr-dark);
    font-size: 1.05rem;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    margin-top: .5rem;
    color: var(--wr-c-muted);
    font-size: .85rem;
    font-style: normal;
}

/* تصاویر داخل محتوا: ابعاد از width/height خود تگ می‌آید و فقط کوچک می‌شوند */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wr-radius);
}

.post-content figure,
.post-content .wp-caption {
    max-width: 100%;
    margin: 2rem 0;
}

.post-content .aligncenter {
    display: block;
    margin-inline: auto;
}

.post-content .alignright {
    float: right;
    margin: .4rem 0 1rem 1.5rem;
}

.post-content .alignleft {
    float: left;
    margin: .4rem 1.5rem 1rem 0;
}

.post-content figcaption,
.post-content .wp-caption-text {
    margin-top: .6rem;
    color: var(--wr-c-muted);
    font-size: .82rem;
    text-align: center;
}

.post-content iframe,
.post-content video {
    max-width: 100%;
    border-radius: var(--wr-radius);
}

.post-content hr {
    width: 90px;
    height: 4px;
    margin: 2.5rem auto;
    border: 0;
    border-radius: 4px;
    background: var(--wr-accent);
    opacity: 1;
}

.post-content code {
    padding: .1rem .4rem;
    border-radius: 6px;
    background: var(--wr-cream);
    color: var(--wr-accent);
    font-size: .88em;
    direction: ltr;
    unicode-bidi: embed;
}

.post-content pre {
    margin: 1.75rem 0;
    padding: 1.25rem;
    border-radius: var(--wr-radius);
    background: var(--wr-dark);
    color: var(--wr-cream);
    font-size: .85rem;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
}

.post-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

/* Tables */
.post-content table {
    width: 100%;
    margin: 1.75rem 0;
    border: 1px solid var(--wr-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--wr-radius);
    font-size: .9rem;
    overflow: hidden;
}

.post-content table th,
.post-content table td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--wr-border);
    text-align: right;
}

.post-content table tr:last-child td {
    border-bottom: 0;
}

.post-content table th {
    background: var(--wr-dark);
    color: #fff;
    font-weight: 700;
}

.post-content table tr:nth-child(even) td {
    background: var(--wr-cream-soft);
}

.post-content .wp-block-table {
    overflow-x: auto;
}

.wr-page-links {
    display: flex;
    gap: .4rem;
    margin: 2rem 0;
}


/* ── FAQ ──────────────────────────────────────────────── */
.wr-faq {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1rem;
}

.wr-faq__item {
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius);
    background: var(--wr-surface);
    transition: border-color .3s ease, background .3s ease;
}

.wr-faq__item[open] {
    border-color: transparent;
    background: var(--wr-cream-soft);
}

.wr-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--wr-dark);
    font-weight: 700;
    line-height: 1.7;
    cursor: pointer;
    list-style: none;
}

.wr-faq__question::-webkit-details-marker {
    display: none;
}

.wr-faq__icon {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wr-cream);
    transition: background .3s ease;
}

.wr-faq__icon::before,
.wr-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--wr-dark);
    transform: translate(-50%, -50%);
    transition: transform .3s ease, background .3s ease;
}

.wr-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.wr-faq__item[open] .wr-faq__icon {
    background: var(--wr-accent);
}

.wr-faq__item[open] .wr-faq__icon::before,
.wr-faq__item[open] .wr-faq__icon::after {
    background: #fff;
}

.wr-faq__item[open] .wr-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.wr-faq__answer {
    padding: 0 1.25rem 1.1rem;
    color: var(--wr-c-muted);
    font-size: .95rem;
}

.wr-faq__answer > *:last-child {
    margin-bottom: 0;
}


/* ── Tags ─────────────────────────────────────────────── */
.wr-single-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--wr-border-strong);
}

.wr-single-tags__label {
    color: var(--wr-dark);
    font-size: .9rem;
    font-weight: 700;
}

.wr-single-tags a {
    padding: .25rem .85rem;
    border-radius: 999px;
    background: var(--wr-cream);
    color: var(--wr-dark) !important;
    font-size: .8rem;
    transition: background .2s ease, color .2s ease;
}

.wr-single-tags a:hover {
    background: var(--wr-accent);
    color: #fff !important;
}


/* ── Author box ───────────────────────────────────────── */
.wr-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--wr-radius);
    background: var(--wr-cream);
}

.wr-author-box__avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px !important;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.wr-author-box__label {
    display: block;
    color: var(--wr-accent);
    font-size: .75rem;
    font-weight: 700;
}

.wr-author-box__name {
    display: block;
    color: var(--wr-dark);
    font-size: 1.05rem;
}

.wr-author-box__bio {
    margin: .4rem 0 0;
    color: var(--wr-c-muted);
    font-size: .88rem;
    line-height: 1.9;
}


/* ── Prev / Next ──────────────────────────────────────── */
.wr-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.wr-post-nav__item {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius);
    background: var(--wr-surface);
    color: var(--wr-c-text) !important;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.wr-post-nav__item:hover {
    color: var(--wr-c-text) !important;
    border-color: transparent;
    box-shadow: var(--wr-shadow);
    transform: translateY(-3px);
}

.wr-post-nav__item--next {
    text-align: left;
}

.wr-post-nav__label {
    display: flex;
    align-items: center;
    gap: .3rem;
    color: var(--wr-accent);
    font-size: .78rem;
    font-weight: 700;
}

.wr-post-nav__item--next .wr-post-nav__label {
    justify-content: flex-end;
}

.wr-post-nav__label svg {
    width: 14px;
    height: 14px;
}

.wr-post-nav__title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--wr-dark);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ── Contact CTA ──────────────────────────────────────── */
.wr-single-cta-section {
    padding-bottom: 4rem;
}

.wr-single-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    border-radius: var(--wr-radius-lg);
    background: var(--wr-dark);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.wr-single-cta::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -80px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--wr-accent) 30%, transparent);
    filter: blur(10px);
}

.wr-single-cta__title {
    margin-bottom: .4rem;
    color: #fff;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.7;
}

.wr-single-cta__desc {
    max-width: 620px;
    margin: 0;
    color: color-mix(in srgb, #fff 72%, transparent);
    font-size: .92rem;
    line-height: 1.9;
}

.wr-single-cta .wr-blog-btn {
    flex-shrink: 0;
}


/* ── Related ──────────────────────────────────────────── */
.wr-related {
    padding: 1rem 0 5rem;
}


/* ── Product callout & download banner (shortcodes) ───── */
.product-callout,
.download-banner {
    position: relative;
    display: grid;
    align-items: center;
    margin: 2.25rem 0;
    padding: 1.75rem;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-lg);
    background: linear-gradient(135deg, var(--wr-surface) 0%, var(--wr-cream-soft) 100%);
    box-shadow: var(--wr-shadow-sm);
    direction: rtl;
    text-align: right;
    overflow: hidden;
}

.product-callout {
    grid-template-columns: 220px 1fr;
    gap: 1.75rem;
}

.download-banner {
    grid-template-columns: 1fr 260px;
    gap: 1.9rem;
}

.product-callout::before,
.download-banner::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    inset-inline-start: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--wr-accent);
}

.product-callout__media,
.download-banner__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    border-radius: var(--wr-radius);
    background: var(--wr-surface);
    box-shadow: inset 0 0 0 1px var(--wr-border);
    overflow: hidden;
}

.product-callout__media {
    padding: 1.4rem;
}

.download-banner__media {
    padding: .75rem;
}

.product-callout__image,
.download-banner__image {
    max-width: 100%;
    height: auto;
    transition: transform .25s ease;
}

.product-callout__image {
    object-fit: contain;
}

.download-banner__image {
    width: 100%;
    max-width: 240px;
    border-radius: var(--wr-radius-sm);
    object-fit: cover;
}

.product-callout:hover .product-callout__image,
.download-banner:hover .download-banner__image {
    transform: scale(1.04);
}

.product-callout__content,
.download-banner__content {
    min-width: 0;
}

.product-callout__badge,
.download-banner__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: .75rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: var(--wr-accent-soft);
    color: var(--wr-accent);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1;
}

.product-callout__title,
.download-banner__title {
    margin: 0 0 .75rem;
    color: var(--wr-dark);
    font-weight: 700;
    line-height: 1.65;
}

.product-callout__title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.download-banner__title {
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
}

.download-banner__title strong,
.download-banner__title span {
    color: var(--wr-accent);
}

.download-banner__desc {
    max-width: 560px;
    margin: 0 0 1.4rem;
    color: var(--wr-c-muted);
    font-size: .95rem;
    line-height: 2;
}

.product-callout__price {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.1rem;
    color: var(--wr-accent);
    font-size: 1.25rem;
    font-weight: 700;
}

.product-callout__price del {
    margin-inline-end: .5rem;
    color: var(--wr-c-muted);
    font-size: .875rem;
    font-weight: 400;
}

.product-callout__price ins {
    text-decoration: none;
}

.post-content .product-callout__features {
    display: grid;
    gap: .6rem;
    margin: 0 0 1.4rem;
    padding: 0;
}

.post-content .product-callout__features li {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-sm);
    background: var(--wr-surface);
    color: var(--wr-c-muted);
    font-size: .875rem;
    list-style: none;
}

.product-callout__features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--wr-accent-soft);
    color: var(--wr-accent);
    font-size: .8rem;
    font-weight: 700;
}

.product-callout__features span {
    color: var(--wr-c-muted);
    font-weight: 700;
}

.product-callout__features strong {
    margin-inline-start: auto;
    color: var(--wr-dark);
    text-align: left;
}

.product-callout__button,
.download-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: var(--wr-dark);
    color: #fff !important;
    font-size: .95rem;
    font-weight: 700;
    background-image: none !important;
    transition: background .2s ease, transform .2s ease;
}

.product-callout__button:hover,
.download-banner__button:hover {
    background: var(--wr-accent);
    transform: translateY(-2px);
}

.product-callout__button svg,
.download-banner__button svg {
    transform: scaleX(-1);
    transition: transform .2s ease;
}

.product-callout__button:hover svg,
.download-banner__button:hover svg {
    transform: scaleX(-1) translateX(3px);
}


/* ── Responsive ───────────────────────────────────────── */
/* ── Comments ─────────────────────────────────────────── */
.wr-comments {
    margin-top: 2.5rem;
    padding: 1.75rem;
    border: 1px solid var(--wr-border);
    border-radius: var(--wr-radius-lg);
    background: var(--wr-surface);
}

.wr-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wr-comments__title,
.wr-comments__form-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    color: var(--wr-dark);
    font-size: 1.15rem;
    font-weight: 700;
}

.wr-comments__title::before,
.wr-comments__form-title::before {
    content: '';
    width: 5px;
    height: 20px;
    border-radius: 4px;
    background: var(--wr-accent);
}

.wr-comments__count {
    padding: .15rem .8rem;
    border-radius: 999px;
    background: var(--wr-accent-soft);
    color: var(--wr-accent-text);
    font-size: .8rem;
    font-weight: 700;
}

.wr-comments__list,
.wr-comments__list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wr-comments__list .children {
    margin-top: 1rem;
    padding-right: 1.5rem;
    border-right: 2px solid var(--wr-border);
}

.wr-comments__list .comment-body {
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--wr-radius);
    background: var(--wr-cream-soft);
}

.wr-comments__list .comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}

.wr-comments__list .comment-author {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--wr-dark);
    font-weight: 700;
}

.wr-comments__list .comment-author .avatar {
    border-radius: 50%;
}

.wr-comments__list .comment-author .says {
    display: none;
}

.wr-comments__list .comment-metadata,
.wr-comments__list .comment-metadata a {
    color: var(--wr-c-muted) !important;
    font-size: .78rem;
}

.wr-comments__list .comment-content p {
    margin: 0 0 .5rem;
    line-height: 2;
}

.wr-comments__list .reply a {
    color: var(--wr-accent-text) !important;
    font-size: .8rem;
    font-weight: 700;
}

.wr-comments__closed,
.wr-comments__note {
    color: var(--wr-c-muted);
    font-size: .85rem;
}

.wr-comments .comment-respond {
    margin-top: 1.5rem;
}

.wr-comments .comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem 1rem;
}

.wr-comments .comment-form > p {
    grid-column: 1 / -1;
    margin: 0 0 .75rem;
}

.wr-comments .comment-form-author,
.wr-comments .comment-form-email {
    grid-column: auto !important;
}

.wr-comments .comment-form label {
    display: block;
    margin-bottom: .35rem;
    color: var(--wr-dark);
    font-size: .85rem;
    font-weight: 700;
}

.wr-comments .comment-form input[type="text"],
.wr-comments .comment-form input[type="email"],
.wr-comments .comment-form input[type="url"],
.wr-comments .comment-form textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 1px solid var(--wr-border-strong);
    border-radius: var(--wr-radius-sm);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wr-comments .comment-form input:focus,
.wr-comments .comment-form textarea:focus {
    border-color: var(--wr-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wr-accent) 18%, transparent);
    outline: none;
}

.wr-comments .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.wr-comments .comment-form-cookies-consent label {
    margin: 0;
    font-weight: 400;
}

/* style.css برای input#submit پس‌زمینه و فاصله‌ی ثابت با !important دارد */
.wr-comments input#submit {
    min-height: 44px;
    padding: .45rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.wr-comments input#submit:hover {
    background: var(--wr-dark) !important;
}


@media (max-width: 991.98px) {
    .wr-single-hero.has-cover {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .wr-single-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .wr-single-aside {
        position: static;
    }

    .wr-share {
        order: 2;
    }

    .wr-toc__toggle {
        cursor: pointer;
    }

    .wr-toc__toggle .wr-aside-card__title {
        margin-bottom: 0;
    }

    .wr-toc__icon {
        display: inline-flex;
    }

    .wr-toc__nav {
        display: none;
        max-height: 60vh;
        min-height: 0;
        margin-top: .75rem;
    }

    .wr-toc.is-open .wr-toc__nav {
        display: block;
    }

    .wr-share__copy {
        flex: 1 1 auto;
    }

    .wr-single-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .wr-comments {
        padding: 1.25rem 1rem;
    }

    .wr-comments .comment-form {
        grid-template-columns: 1fr;
    }

    .wr-single-hero.has-cover {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .wr-single-cover {
        order: -1;
        aspect-ratio: 16 / 10;
    }

    .wr-single-body {
        padding: 2rem 0 3rem;
    }

    .post-content {
        font-size: .95rem;
    }

    .post-content h2 {
        font-size: 1.25rem;
    }

    .post-content .alignright,
    .post-content .alignleft {
        float: none;
        margin: 1rem auto;
    }

    .wr-post-nav {
        grid-template-columns: 1fr;
    }

    .wr-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-callout,
    .download-banner {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding: 1.4rem;
    }

    .product-callout::before,
    .download-banner::before {
        top: 0;
        bottom: auto;
        inset-inline: 1.4rem;
        width: auto;
        height: 4px;
    }

    .download-banner__media {
        order: -1;
    }

    .download-banner__image {
        max-width: 100%;
    }

    .product-callout__button,
    .download-banner__button {
        width: 100%;
    }
}
