.ng-editorial-detail,
.ng-editorial-detail__lightbox {
    --editorial-ink: #1f2421;
    --editorial-muted: #716f69;
    --editorial-gold: #c9a961;
    --editorial-paper: #f7f5f0;
    --editorial-line: #e2ddd3;
    box-sizing: border-box;
    color: var(--editorial-ink);
    font-family: Vazirmatn, IRANSansWeb, Tahoma, sans-serif;
}

.ng-editorial-detail *,
.ng-editorial-detail *::before,
.ng-editorial-detail *::after,
.ng-editorial-detail__lightbox *,
.ng-editorial-detail__lightbox *::before,
.ng-editorial-detail__lightbox *::after {
    box-sizing: border-box;
}

.ng-editorial-detail {
    line-height: 1.9;
    margin-inline: auto;
    max-width: 1180px;
    padding-inline: clamp(1rem, 5vw, 4rem);
    width: 100%;
}

.ng-editorial-detail h1,
.ng-editorial-detail h2,
.ng-editorial-detail h3,
.ng-editorial-detail p,
.ng-editorial-detail figure {
    margin-top: 0;
}

.ng-editorial-detail img {
    display: block;
    height: auto;
    max-width: 100%;
}

.ng-editorial-detail a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--nargoon-gold);
}
.ng-editorial-detail a:hover {
    color: var(--nargoon-gold);
}
.ng-editorial-detail h3 {
    font-size: 18px;
}

.ng-editorial-detail ul li {
    line-height: 32px;
}

.ng-editorial-detail button,
.ng-editorial-detail input,
.ng-editorial-detail select,
.ng-editorial-detail textarea,
.ng-editorial-detail__lightbox button {
    font: inherit;
}

.ng-editorial-detail button:focus-visible,
.ng-editorial-detail a:focus-visible,
.ng-editorial-detail input:focus-visible,
.ng-editorial-detail select:focus-visible,
.ng-editorial-detail textarea:focus-visible,
.ng-editorial-detail__lightbox button:focus-visible {
    outline: 2px solid var(--editorial-gold);
    outline-offset: 3px;
}

.ng-editorial-detail__intro {
    padding-bottom: clamp(2rem, 5vw, 4.5rem);
    padding-top: clamp(2rem, 5vw, 4.5rem);
}

.ng-editorial-detail__eyebrow,
.ng-editorial-detail__byline,
.ng-editorial-detail__section-heading,
.ng-editorial-detail__comment-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.2rem;
}

.ng-editorial-detail__eyebrow {
    border-bottom: 1px solid var(--editorial-line);
    color: var(--editorial-muted);
    font-size: .68rem;
    justify-content: space-between;
    letter-spacing: .12em;
    padding-bottom: .8rem;
}

.ng-editorial-detail__eyebrow span:last-child,
.ng-editorial-detail__category,
.ng-editorial-detail__section-heading p {
    color: #9a7d3e;
}

.ng-editorial-detail__heading {
    align-items: end;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding-block: 2rem 1.4rem;
}

.ng-editorial-detail__category {
    font-size: .85rem;
    margin-bottom: .5rem;
}

.ng-editorial-detail__heading h1 {
    font-size: clamp(1.85rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 850px;
}

.ng-editorial-detail__back {
    color: var(--editorial-muted) !important;
    flex: 0 0 auto;
    font-size: .8rem;
    text-decoration: none;
}

.ng-editorial-detail__back span {
    color: var(--editorial-gold);
    padding-inline-start: .3rem;
}

.ng-editorial-detail__byline {
    border-bottom: 1px solid var(--editorial-line);
    color: var(--editorial-muted);
    font-size: .8rem;
    padding-bottom: 1rem;
}

.ng-editorial-detail__byline span + span::before {
    color: var(--editorial-gold);
    content: "·";
    margin-inline-end: 1rem;
}

.ng-editorial-detail__hero {
    margin: 1.7rem 0 1.3rem;
}

.ng-editorial-detail__hero > video {
    aspect-ratio: 16 / 9;
    background: #000;
    display: block;
    width: 100%;
}

.ng-editorial-detail__image-button {
    background: var(--editorial-paper);
    border: 0;
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.ng-editorial-detail__image-button img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.ng-editorial-detail__image-button > span {
    background: rgba(31, 36, 33, .78);
    bottom: 1rem;
    color: #fff;
    font-size: .75rem;
    inset-inline-start: 1rem;
    padding: .45rem .7rem;
    position: absolute;
}

.ng-editorial-detail__image-button b {
    color: var(--editorial-gold);
    padding-inline-start: .4rem;
}

.ng-editorial-detail__hero figcaption {
    color: var(--editorial-muted);
    font-size: .75rem;
    padding-top: .6rem;
}

.ng-editorial-detail__summary {
    border-inline-start: 3px solid var(--editorial-gold);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 2.1;
    margin: 2.4rem 0;
    padding-inline-start: 1.2rem;
}

.ng-editorial-detail__body {
    font-size: .98rem;
    line-height: 2.25;
}

.ng-editorial-detail__body h2 {
    font-size: 1.45rem;
    font-weight: 500;
    margin: 2rem 0 .7rem;
}

.ng-editorial-detail__body p {
    color: #484a46;
    margin-bottom: 1.2rem;
}

.ng-editorial-detail__body blockquote {
    border-inline-start: 2px solid var(--editorial-gold);
    color: #5a5346;
    font-size: 1.15rem;
    margin: 2rem 0;
    padding: .3rem 1.2rem;
}

.ng-editorial-detail__body .wp-block-image {
    margin: 1.5rem 0;
    max-width: 100%;
}

.ng-editorial-detail__body .wp-block-image img {
    cursor: zoom-in;
    height: auto;
    max-width: 100%;
    margin: auto;
}

.ng-editorial-detail__body .wp-block-image img:focus-visible,
.ng-editorial-detail__body .wp-block-gallery img:focus-visible {
    outline: 2px solid var(--editorial-gold);
    outline-offset: 3px;
}

.ng-editorial-detail__body .wp-block-gallery {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1.8rem 0;
}

.ng-editorial-detail__body .wp-block-gallery .wp-block-image {
    margin: 0;
    min-width: 0;
    width: 100%;
}

.ng-editorial-detail__body .wp-block-gallery.is-cropped .wp-block-image img {
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ng-editorial-detail__body .wp-block-gallery figcaption {
    color: var(--editorial-muted);
    font-size: .75rem;
    grid-column: 1 / -1;
}

.ng-editorial-detail__gallery,
.ng-editorial-detail__related,
.ng-editorial-detail__comments {
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
    padding-top: clamp(1.8rem, 4vw, 3.5rem);
}

.ng-editorial-detail__gallery[hidden] {
    display: none !important;
}

.ng-editorial-detail__section-heading {
    align-items: end;
    border-bottom: 1px solid var(--editorial-line);
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: .8rem;
}

.ng-editorial-detail__section-heading p {
    font-size: .66rem;
    letter-spacing: .12em;
    margin-bottom: .2rem;
}

.ng-editorial-detail__section-heading h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0;
}

.ng-editorial-detail__gallery-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-editorial-detail__gallery-grid button {
    background: var(--editorial-paper);
    border: 0;
    cursor: zoom-in;
    overflow: hidden;
    padding: 0;
}

.ng-editorial-detail__gallery-grid button:first-child {
    grid-column: 1 / -1;
}

.ng-editorial-detail__gallery-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.ng-editorial-detail__gallery-grid button:hover img {
    transform: scale(1.035);
}

.ng-editorial-detail__tags {
    align-items: center;
    border-bottom: 1px solid var(--editorial-line);
    border-top: 1px solid var(--editorial-line);
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.ng-editorial-detail__tags > span {
    color: var(--editorial-muted);
    font-size: .8rem;
    margin-inline-end: .3rem;
}

.ng-editorial-detail__tags a {
    border: 1px solid var(--editorial-line);
    color: #625b4b;
    font-size: .75rem;
    padding: .25rem .65rem;
    text-decoration: none;
}

.ng-editorial-detail__related-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-editorial-detail__related-grid article {
    min-width: 0;
}

.ng-editorial-detail__related-grid a {
    display: grid;
    gap: .75rem;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 88px;
    text-decoration: none;
}

.ng-editorial-detail__related-grid img {
    aspect-ratio: 1;
    height: 92px;
    object-fit: cover;
    width: 92px;
}

.ng-editorial-detail__related-grid a > span {
    align-content: center;
    display: grid;
    gap: .25rem;
}

.ng-editorial-detail__related-grid time {
    color: var(--editorial-muted);
    font-size: .7rem;
}

.ng-editorial-detail__related-grid strong {
    font-size: .86rem;
    font-weight: 500;
    line-height: 1.7;
}

.ng-editorial-detail__related-grid a:hover strong {
    color: #947633;
}

.ng-editorial-detail__comments {
    background: var(--editorial-paper);
    margin-bottom: 3rem;
    padding-inline: clamp(1rem, 5vw, 2rem);
}

.ng-editorial-detail__comments-list {
    display: grid;
    gap: 1rem;
}

.ng-editorial-detail__comment {
    background: #fff;
    border: 1px solid var(--editorial-line);
    padding: 1rem;
}

.ng-editorial-detail__comment-meta {
    color: var(--editorial-muted);
    font-size: .75rem;
    justify-content: space-between;
}

.ng-editorial-detail__comment-meta strong {
    color: var(--editorial-ink);
    font-size: .86rem;
}

.ng-editorial-detail__comment h3 {
    font-size: .95rem;
    font-weight: 500;
    margin: .65rem 0 .25rem;
}

.ng-editorial-detail__comment p {
    color: #565750;
    font-size: .84rem;
    margin-bottom: .55rem;
}

.ng-editorial-detail__comment > button {
    background: none;
    border: 0;
    color: #8b7139;
    cursor: pointer;
    font-size: .76rem;
    padding: .2rem 0;
}

.ng-editorial-detail__comment_reply {
    background: var(--editorial-paper);
    border: 0;
    border-inline-start: 2px solid var(--editorial-gold);
    margin-block: 1rem 0;
    margin-inline-start: 0;
    padding: .85rem;
}

.ng-editorial-detail__comment-form {
    background: #fff;
    border: 1px solid var(--editorial-line);
    display: grid;
    gap: .55rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.ng-editorial-detail__comment-form h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: .3rem;
}

.ng-editorial-detail__comment-form label {
    font-size: .8rem;
    font-weight: 500;
    margin-top: .35rem;
}

.ng-editorial-detail__comment-form input,
.ng-editorial-detail__comment-form select,
.ng-editorial-detail__comment-form textarea {
    background: #fff;
    border: 1px solid #d8d3c9;
    border-radius: 0;
    color: var(--editorial-ink);
    min-height: 46px;
    padding: .65rem .75rem;
    width: 100%;
}

.ng-editorial-detail__comment-form textarea {
    resize: vertical;
}

.ng-editorial-detail__comment-form input[type="image"] {
    width: 50px;
}

.ng-editorial-detail__comment-form .full-row {
    grid-column: 1 / -1;
}

.ng-editorial-detail__reply-context {
    align-items: center;
    background: var(--editorial-paper);
    display: flex;
    font-size: .8rem;
    justify-content: space-between;
    padding: .55rem .7rem;
}

.ng-editorial-detail__reply-context[hidden],
.ng-editorial-detail__form-status[hidden] {
    display: none;
}

.ng-editorial-detail__reply-context button {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.ng-editorial-detail__captcha {
    display: grid;
    gap: .4rem;
    grid-template-columns: minmax(0, 1fr) 90px;
    margin-top: .5rem;
}

.ng-editorial-detail__captcha label,
.ng-editorial-detail__captcha small {
    grid-column: 1 / -1;
}

.ng-editorial-detail__captcha small {
    color: var(--editorial-muted);
    font-size: .72rem;
}

.ng-editorial-detail__submit {
    align-items: center;
    background: var(--editorial-ink);
    border: 1px solid var(--editorial-ink);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    gap: .8rem;
    justify-content: center;
    margin-top: .7rem;
    min-height: 48px;
    padding: .6rem 1rem;
    width: 100%;
}

.ng-editorial-detail__submit span {
    color: var(--editorial-gold);
}

.ng-editorial-detail__form-status {
    color: #8b7139;
    font-size: .8rem;
    margin: .4rem 0 0;
}

.ng-editorial-detail__lightbox {
    background: #171917;
    border: 0;
    color: #fff;
    height: min(92dvh, 900px);
    inset: 0;
    margin: auto;
    max-height: 92dvh;
    max-width: min(1120px, 96vw);
    padding: 3.5rem 3rem 2.5rem;
    position: fixed;
    width: 96vw;
}

.ng-editorial-detail__lightbox::backdrop {
    background: rgba(14, 16, 15, .92);
}

.ng-editorial-detail__lightbox img {
    height: 100%;
    max-height: calc(92dvh - 7rem);
    object-fit: contain;
    width: 100%;
}

.ng-editorial-detail__lightbox button {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    cursor: pointer;
    height: 42px;
    position: absolute;
    width: 42px;
}

.ng-editorial-detail__lightbox [data-gallery-close] {
    inset-inline-end: .75rem;
    top: .75rem;
}

.ng-editorial-detail__lightbox [data-gallery-prev] {
    inset-inline-start: .75rem;
    top: 50%;
    transform: translateY(-50%);
}

.ng-editorial-detail__lightbox [data-gallery-next] {
    inset-inline-end: .75rem;
    top: 50%;
    transform: translateY(-50%);
}

.ng-editorial-detail__lightbox p {
    bottom: .45rem;
    color: #e8e3d8;
    font-size: .8rem;
    inset-inline: 3rem;
    position: absolute;
    text-align: center;
}

@media (min-width: 700px) {
    .ng-editorial-detail__body .wp-block-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ng-editorial-detail__gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ng-editorial-detail__gallery-grid button:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .ng-editorial-detail__gallery-grid button:first-child img {
        height: 100%;
    }

    .ng-editorial-detail__related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ng-editorial-detail__comments {
        padding-inline: 2.5rem;
    }

    .ng-editorial-detail__comment-form {
        grid-template-columns: 1fr 1fr;
        padding: 1.5rem;
    }

    .ng-editorial-detail__comment-form h3,
    .ng-editorial-detail__reply-context,
    .ng-editorial-detail__comment-form label,
    .ng-editorial-detail__comment-form select,
    .ng-editorial-detail__comment-form input,
    .ng-editorial-detail__comment-form textarea,
    .ng-editorial-detail__captcha,
    .ng-editorial-detail__submit,
    .ng-editorial-detail__form-status {
        grid-column: 1 / -1;
    }

    .ng-editorial-detail__captcha {
        grid-template-columns: minmax(0, 1fr) 120px;
    }

    .ng-editorial-detail__submit {
        justify-self: start;
        width: min(220px, 100%);
    }
}

@media (min-width: 1000px) {
    .ng-editorial-detail__related-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .ng-editorial-detail__related-grid a {
        display: block;
    }

    .ng-editorial-detail__related-grid img {
        aspect-ratio: 4 / 3;
        height: auto;
        margin-bottom: .65rem;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .ng-editorial-detail__heading {
        align-items: start;
        flex-direction: column;
        gap: .8rem;
    }

    .ng-editorial-detail__byline {
        gap: .4rem .8rem;
    }

    .ng-editorial-detail__summary {
        font-size: 1rem;
    }

    .ng-editorial-detail__related-grid {
        grid-template-columns: 1fr;
    }

    .ng-editorial-detail__lightbox {
        height: 88dvh;
        max-height: 88dvh;
        padding: 3.25rem 2.5rem 2.5rem;
        width: 100vw;
    }

    .ng-editorial-detail__lightbox img {
        max-height: calc(88dvh - 6rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ng-editorial-detail__gallery-grid img {
        transition: none;
    }
}

/* Article body typography only — other editorial sections remain unchanged. */
.ng-editorial-detail__body {
    font-size: 1.0625rem;
    line-height: 1.95;
    overflow-wrap: break-word;
}

.ng-editorial-detail__body :is(h2, h3, h4) {
    color: var(--editorial-ink);
    font-weight: 600;
    line-height: 1.65;
    text-wrap: pretty;
}

.ng-editorial-detail__body h2 {
    font-size: clamp(1.4rem, 2.3vw, 1.65rem);
    margin: 2.5rem 0 1rem;
}

.ng-editorial-detail__body h3 {
    font-size: clamp(1.18rem, 1.9vw, 1.35rem);
    margin: 2rem 0 .8rem;
}

.ng-editorial-detail__body h4 {
    font-size: 1.1rem;
    margin: 1.6rem 0 .7rem;
}

.ng-editorial-detail__body p,
.ng-editorial-detail__body :is(ul, ol) {
    font-size: inherit;
    line-height: inherit;
    margin-block: 0 1.25rem;
}

.ng-editorial-detail__body :is(ul, ol) {
    padding-inline-start: 1.5rem;
}

.ng-editorial-detail__body :is(ul, ol) li {
    line-height: inherit;
    margin-bottom: .5rem;
}

.ng-editorial-detail__body :is(ul, ol) li::marker {
    color: var(--editorial-gold);
}

.ng-editorial-detail__body :is(.wp-block-image, .wp-block-gallery) {
    margin-block: 1.75rem;
}

@media (max-width: 560px) {
    .ng-editorial-detail__body {
        font-size: 1rem;
        line-height: 2;
    }
}

/* Match the in-article repeated title to article section H2 headings. */
.ng-editorial-detail__body .ng-article > h1.ng-article__title {
    color: var(--editorial-ink);
    font-size: clamp(1.4rem, 2.3vw, 1.65rem);
    font-weight: 600;
    line-height: 1.65;
    margin: 2.5rem 0 1rem;
    text-wrap: pretty;
}

/* Article table of contents: compact, two-column navigation. */
.ng-editorial-detail__body .ng-article__toc > ul {
    display: grid;
    gap: .55rem .7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.ng-editorial-detail__body .ng-article__toc > ul > li {
    line-height: inherit;
    margin: 0;
    min-width: 0;
}

.ng-editorial-detail__body .ng-article__toc > ul > li > a {
    align-items: center;
    background: #f1ede4;
    color: var(--editorial-ink);
    display: flex;
    gap: .42rem;
    line-height: 1.7;
    min-height: 2.85rem;
    padding: .55rem .85rem;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.ng-editorial-detail__body .ng-article__toc > ul > li > a::before {
    color: var(--editorial-gold);
    content: '↖';
    flex: 0 0 auto;
    font-size: 1.05rem;
    transition: transform .2s ease;
}

.ng-editorial-detail__body .ng-article__toc > ul > li > a:hover,
.ng-editorial-detail__body .ng-article__toc > ul > li > a:focus-visible {
    background: #e9e3d6;
    color: #947633;
}

.ng-editorial-detail__body .ng-article__toc > ul > li > a:hover::after,
.ng-editorial-detail__body .ng-article__toc > ul > li > a:focus-visible::after {
    transform: translate(-2px, -2px);
}

@media (max-width: 699px) {
    .ng-editorial-detail__body .ng-article__toc > ul {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ng-editorial-detail__body .ng-article__toc > ul > li > a,
    .ng-editorial-detail__body .ng-article__toc > ul > li > a::before {
        transition: none;
    }
}


/* Article FAQ: numbered editorial rows without cards or backgrounds. */
.ng-editorial-detail__body .ng-article__faq {
    background: #eae1d1;
    counter-reset: ng-faq;
    margin-block: 3rem 2.5rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.ng-editorial-detail__body .ng-article__faq > .ng-article__section-title {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    position: relative;
}

.ng-editorial-detail__body .ng-article__faq > .ng-article__section-title::after {
    background: var(--editorial-gold);
    bottom: 0;
    content: '';
    height: 2px;
    inset-inline-start: 0;
    position: absolute;
    width: 44px;
}

.ng-editorial-detail__body .ng-article__faq-item {
    border-bottom: 1px solid #967d58;
    counter-increment: ng-faq;
    padding-block: 1.4rem;
    padding-inline-start: 2.6rem;
    position: relative;
}

.ng-editorial-detail__body .ng-article__faq-item:last-child {
    border-bottom: 0;
}

.ng-editorial-detail__body .ng-article__faq-item::before {
    color: var(--editorial-gold);
    content: counter(ng-faq, decimal-leading-zero);
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    inset-inline-start: 0;
    line-height: 1.8;
    position: absolute;
    top: 1.4rem;
}

.ng-editorial-detail__body .ng-article__faq-question {
    color: var(--editorial-ink);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    font-weight: 600;
    line-height: 1.8;
    margin: 0 0 .55rem;
}

.ng-editorial-detail__body .ng-article__faq-answer {
    color: #565750;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
}

@media (max-width: 560px) {
    .ng-editorial-detail__body .ng-article__faq-item {
        padding-inline-start: 2.15rem;
    }
}
