/* پرشین پت — متن نوشته‌ها و صفحه‌های محتوایی (افتخارات، شرایط، راهنمای خرید و ...) */

.pp-main > .row,
.pp-blog > .row,
.pp-main > .container > .row {
    --bs-gutter-x: 56px;
}

.pp-main > .container {
    max-width: none;
    padding: 0;
}

/*#region article */
article.content-details {
    padding-top: 8px;
}

/* صفحه‌های محتوایی عنوان را بی h1 مستقیم در header می‌گذارند */
article.content-details > header {
    margin: 0 0 20px;
    font-family: var(--pp-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
}

article.content-details > header h1 {
    margin: 0 0 12px;
    font-family: var(--pp-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
}

article.content-details div[data-type='meta'] {
    color: var(--pp-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

article.content-details div[data-type='meta']:not(:has(span:not(:empty))) {
    display: none;
}

article.content-details div[data-type='image'] img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    background: var(--pp-canvas);
    border-radius: var(--pp-radius);
    margin-bottom: 28px;
}

article.content-details div[data-type='content'] {
    font-size: 16px;
    line-height: 2.1;
    color: var(--pp-ink);
    max-width: 760px;
}

article.content-details div[data-type='content'] p {
    margin: 0 0 14px;
}

article.content-details div[data-type='content'] h2,
article.content-details div[data-type='content'] h3 {
    font-family: var(--pp-display);
    font-weight: 700;
    margin: 32px 0 12px;
}

article.content-details div[data-type='content'] h2 {
    font-size: 25px;
}

article.content-details div[data-type='content'] h3 {
    font-size: 21px;
}

article.content-details div[data-type='content'] a {
    color: var(--pp-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

article.content-details div[data-type='content'] img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pp-radius);
}

article.content-details div[data-type='content'] iframe,
article.content-details div[data-type='content'] video {
    max-width: 100%;
    border-radius: var(--pp-radius);
}

article.content-details div[data-type='content'] table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

article.content-details div[data-type='content'] td,
article.content-details div[data-type='content'] th {
    border: 1px solid var(--pp-line);
    padding: 8px 12px;
}

article.content-details div[data-type='tags'] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

article.content-details div[data-type='tags'] > a {
    padding: 3px 12px;
    border: 1px solid var(--pp-line);
    border-radius: 999px;
    font-size: 13px;
    color: var(--pp-muted);
}

article.content-details div[data-type='tags'] > a:hover {
    border-color: var(--pp-accent);
    color: var(--pp-accent);
}

article.content-details ul.socials {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 24px 0 0;
    padding: 0;
}

article.content-details ul.socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pp-line);
    border-radius: 999px;
    color: var(--pp-ink);
}

article.content-details ul.socials a:hover {
    border-color: var(--pp-accent);
    color: var(--pp-accent);
}
/*#endregion */

/*#region sidebar & similars */
.row > article.col-md-4 > header,
.pp-blog > article > header,
.pp-main > article:not(.content-details):not(.comments) > header {
    font-family: var(--pp-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 8px 0 16px;
}

.pp-main > article:not(.content-details) > header > br,
.pp-main > article:not(.content-details) > br,
.pp-blog > article > header > br,
.pp-blog > article > br {
    display: none;
}

ul.side {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

ul.side > li {
    padding: 14px 0;
    border-bottom: 1px solid var(--pp-line);
}

ul.side > li > a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--pp-ink);
    font-weight: 500;
}

ul.side > li > a > img {
    flex: none;
    width: 72px;
    height: 72px;
    object-fit: cover;
    background: var(--pp-canvas);
    border-radius: var(--pp-radius);
}

ul.side > li > i {
    display: block;
    margin-top: 6px;
    margin-right: 86px;
    font-style: normal;
    font-size: 12px;
    color: var(--pp-muted);
}

ul.similars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

ul.similars > li > a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--pp-ink);
    font-weight: 500;
}

ul.similars > li > a > img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--pp-canvas);
    border-radius: var(--pp-radius);
}

.pp-main > article:has(ul.similars),
.pp-blog > article:has(ul.similars) {
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--pp-line);
}

/* پیوند «بازگشت» در مسیر */
ul.path > li > a.fx-return {
    display: none;
}

ul.path > li:has(> a.fx-return)::before {
    display: none;
}
/*#endregion */

@media (max-width: 767.98px) {
    article.content-details > header,
    article.content-details > header h1 {
        font-size: 28px;
    }

    article.content-details div[data-type='content'] {
        font-size: 15px;
    }

    .row > article.col-md-4 {
        margin-top: 40px;
    }
}
