/* Single article — "Feature story" (newsroom edition of the Dispatch blog) */

/* Masthead */
.ar-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vh, 72px)) 0 clamp(48px, 7vh, 80px); border-bottom: 1px solid var(--bl-rule); }
.ar-hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 20%, rgba(224, 169, 95, .12), transparent 70%), radial-gradient(50% 60% at 10% 90%, rgba(90, 167, 178, .08), transparent 70%), repeating-linear-gradient(0deg, rgba(255, 236, 214, .018) 0 1px, transparent 1px 34px); }
.ar-hero .viewfinder { opacity: .7; }
.ar-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-bottom: 14px; margin-bottom: clamp(22px, 3.4vh, 36px); border-bottom: 3px double var(--bl-rule-2); }
.ar-strip__edition { color: var(--gold-l); }
.ar-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 5vw, 72px); }
.ar-hero__grid.is-text { grid-template-columns: minmax(0, 860px); }
.ar-desk { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 14px; border-radius: 999px; border: 1px solid rgba(224, 169, 95, .35); background: rgba(224, 169, 95, .06); color: var(--gold-l); font-size: 13.5px; font-weight: 800; transition: background .3s; }
.ar-desk:hover { background: rgba(224, 169, 95, .14); }
.ar-desk .bl-code { color: var(--gold); font-size: 9.5px; }
.ar-title { margin-top: 18px; font-size: clamp(2rem, 1rem + 3vw, 3.7rem); font-weight: 900; line-height: 1.35; text-wrap: balance; }
.ar-dek { position: relative; margin-top: 18px; padding-inline-start: 18px; max-width: 60ch; color: var(--text-2); font-size: clamp(1.02rem, .96rem + .3vw, 1.18rem); line-height: 2.05; text-wrap: pretty; }
.ar-dek::before { content: ""; position: absolute; top: .5em; bottom: .5em; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--grad-brand); }
.ar-credits { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 26px; border-block: 1px solid var(--bl-rule); }
.ar-credits > * { display: grid; align-content: center; gap: 2px; padding: 12px 18px; }
.ar-credits > * + * { border-inline-start: 1px solid var(--bl-rule); }
.ar-credits small { font-size: 11.5px; color: var(--muted); }
.ar-credits strong, .ar-credits time { font-size: 14.5px; font-weight: 800; color: var(--text); }
.ar-credits__author { display: flex !important; align-items: center; gap: 12px; padding-inline-start: 0 !important; }
.ar-credits__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(224, 169, 95, .15); }
.ar-credits__author span { display: grid; gap: 2px; }
.ar-credits__author:hover strong { color: var(--gold-l); }
.ar-cover { position: relative; margin: 0; }
.ar-cover__frame { position: relative; overflow: hidden; border-radius: var(--bl-r); box-shadow: 0 60px 100px -50px rgba(0, 0, 0, .95), 0 0 0 1px var(--bl-rule-2); }
.ar-cover__frame img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ar-cover__grade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 8, 7, .45)), radial-gradient(120% 90% at 50% 30%, transparent 60%, rgba(10, 8, 7, .45)); }
.ar-cover .bl-reg { inset: 12px; opacity: .55; }
.ar-cover__cap { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }

/* Article body: fills its column (desktop) */
.ar .cinema-article__body { padding-top: clamp(40px, 6vw, 72px); }
.ar .cinema-prose { max-width: none; }
.ar-prose { counter-reset: ar-ch; }
/* Persian is a joined script: no ::first-letter drop cap (it breaks the word). The opening paragraph is set as a lede instead. */
.ar-prose > p:first-of-type { position: relative; padding-inline-start: 18px; font-size: 1.18em; font-weight: 600; color: var(--text); }
.ar-prose > p:first-of-type::before { content: ""; position: absolute; top: .55em; bottom: .55em; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--grad-fire); }
.ar-prose h2 { counter-increment: ar-ch; padding-top: 1.4em; }
.ar-prose h2::after { content: "§ " counter(ar-ch, persian); display: block; order: -1; margin-bottom: 6px; font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: 0; }
.ar-prose h2 { display: flex; flex-direction: column; }
.ar-prose blockquote { position: relative; margin: 1.8em 0; padding: 22px 26px; padding-inline-start: 56px; border: 0; border-radius: var(--bl-r); background: linear-gradient(110deg, rgba(224, 169, 95, .1), rgba(210, 106, 78, .04)); border-inline-start: 3px solid var(--gold); font-size: 1.12em; font-weight: 700; color: var(--text); }
.ar-prose blockquote::before { content: "”"; position: absolute; top: 4px; inset-inline-start: 16px; font-size: 3.2em; line-height: 1; color: var(--gold); opacity: .6; }
.ar-prose figure img, .ar-prose > p > img { border-radius: var(--bl-r); box-shadow: 0 0 0 1px var(--bl-rule-2), 0 40px 70px -40px rgba(0, 0, 0, .9); }
.ar-prose figcaption { display: flex; justify-content: center; gap: 10px; }
.ar-prose figcaption::before { content: "FIG."; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--gold); padding-top: 3px; }
.ar-prose ul > li::marker { color: var(--gold); }
.ar-prose ol > li::marker { color: var(--gold); font-weight: 800; }
.ar-prose a { color: var(--gold-l); text-decoration: underline; text-decoration-color: rgba(224, 169, 95, .35); text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-decoration-color .3s; }
.ar-prose a:hover { text-decoration-color: var(--gold-l); }
.ar .cx-table-wrap { border-radius: var(--bl-r); background: #120e0b; }
.ar .cx-table-wrap th { font-size: 13.5px; }
.ar .cx-table-wrap tr:nth-child(even) td { background: rgba(255, 236, 214, .015); }

/* Contents (chapters) */
.ar .cinema-toc__panel { border-radius: var(--bl-r); }
.ar .cinema-toc__title .mono { color: var(--gold); }

/* Share + byline */
.ar .cinema-share { border-block: 3px double var(--bl-rule-2); }
.ar-author { border-radius: var(--bl-r); background: linear-gradient(120deg, rgba(224, 169, 95, .08), rgba(255, 236, 214, .02)); }
.ar-author .cinema-author__photo { border-radius: 50%; box-shadow: 0 0 0 3px var(--gold), 0 0 0 8px rgba(224, 169, 95, .14); }

/* Read next */
.ar .cinema-related .bl-stories { margin-top: 8px; }

@media (max-width: 1100px) {
	.ar-hero__grid { grid-template-columns: 1fr; }
	.ar-cover { order: -1; }
}
@media (max-width: 640px) {
	.ar-credits > * { padding: 10px 12px; }
	.ar-credits__author { flex-basis: 100%; border-bottom: 1px solid var(--bl-rule); }
	.ar-credits > .ar-credits__author + * { border-inline-start: 0; }
	.ar-prose blockquote { padding: 18px; padding-inline-start: 44px; }
}

/* Contents: chapters with matching § numerals; collapsible on mobile */
.ar-toc summary { list-style: none; cursor: pointer; }
.ar-toc summary::-webkit-details-marker { display: none; }
.ar-toc__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ar-toc__count { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(224, 169, 95, .35); color: var(--gold-l); font-size: 11.5px; font-weight: 700; }
.ar-toc nav ol a { grid-template-columns: 38px 1fr; }
.ar-toc__no { padding-top: 2px; font-size: 12.5px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.ar-toc nav ol a[aria-current] .ar-toc__no { color: var(--gold-l); }
@media (max-width: 1100px) {
	.ar .cinema-toc { display: contents; }
	.ar .cinema-toc__panel { order: 0; }
	.ar .cinema-article__main { order: 1; }
	.ar .cinema-toc__service { order: 2; }
	.ar-toc { padding: 0; }
	.ar-toc summary { margin: 0; padding: 14px 18px; }
	.ar-toc summary::after { content: ""; position: absolute; }
	.ar-toc .ar-toc__head::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold-l); font-size: 18px; font-weight: 400; transition: transform .35s var(--ease-out); }
	.ar-toc[open] .ar-toc__head::after { transform: rotate(45deg); }
	.ar-toc nav { padding: 0 12px 14px; }
}

/* ==========================================================================
   Comments — "letters to the editor" (restyles the native comment markup;
   field names, captcha and data-public-form contracts are untouched)
   ========================================================================== */
.ar .cinema-comments { border-top: 3px double var(--bl-rule-2); }
.ar .cinema-comments .cx-head { display: none; }
.ar .id-single-comments__section { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: clamp(28px, 4vw, 56px); }
.ar .id-single-comments__header { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--bl-rule); }
.ar .id-single-comments__heading { display: block; }
.ar .id-single-comments__heading small { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-l); font-size: 14px; font-weight: 800; }
.ar .id-single-comments__heading small::before { content: "LETTERS"; padding: 2px 7px; border: 1px solid rgba(224, 169, 95, .35); border-radius: 3px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--gold-l); background: rgba(224, 169, 95, .06); }
.ar .id-single-comments__heading h2 { margin-top: 8px; font-size: clamp(1.8rem, 1.1rem + 2vw, 2.8rem) !important; font-weight: 900; line-height: 1.3; }
.ar .id-single-comments__heading p { margin-top: 6px; color: var(--text-2); line-height: 1.95; }
.ar .id-single-comments__count { display: grid; justify-items: center; padding: 10px 18px; border-radius: var(--bl-r); border: 1px solid rgba(224, 169, 95, .35); background: rgba(224, 169, 95, .06); }
.ar .id-single-comments__count strong { font-size: 30px; font-weight: 900; line-height: 1; color: var(--gold-l); }
.ar .id-single-comments__count small { font-size: 12px; color: var(--muted); }

/* Letters */
.ar .id-comment-list { display: grid; gap: 16px; counter-reset: none; }
.ar .id-comment-thread { display: grid; gap: 10px; }
.ar .id-comment-card { position: relative; padding: 18px 20px 20px; border-radius: var(--bl-r); border: 1px solid var(--bl-rule-2); background: linear-gradient(180deg, #17120e, #110d0b); box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .9); }
.ar .id-comment-card::before { content: ""; position: absolute; top: 0; inset-inline-start: 20px; width: 46px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-fire); }
.ar .id-comment-card__header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--bl-rule); }
.ar .id-comment-number { padding: 2px 8px; border-radius: 4px; background: rgba(224, 169, 95, .1); color: var(--gold-l); font-size: 11.5px; font-weight: 800; }
.ar .id-comment-number--reply { background: rgba(90, 167, 178, .12); color: #9ad7de; }
.ar .id-comment-author-dot { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--comment-avatar-bg, #fbf0d9), var(--comment-avatar-ring, #ead3a1)); box-shadow: 0 0 0 2px #110d0b, 0 0 0 3px rgba(224, 169, 95, .35); }
.ar .id-comment-card__author { font-size: 15.5px !important; font-weight: 900; color: var(--text); }
.ar .id-comment-card__date { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.ar .id-comment-card__content { color: var(--text-2); font-size: 15px; line-height: 2.05; }
.ar .id-comment-children { position: relative; display: grid; gap: 10px; padding-inline-start: clamp(18px, 3vw, 34px); border-inline-start: 0; }
.ar .id-comment-children::before { content: ""; position: absolute; top: -10px; bottom: 18px; inset-inline-start: clamp(6px, 1.2vw, 12px); width: 2px; border-radius: 2px; background: linear-gradient(rgba(90, 167, 178, .5), rgba(90, 167, 178, .08)); }
.ar .id-comment-card--reply { background: linear-gradient(180deg, #121616, #0e1111); border-color: rgba(90, 167, 178, .25); }
.ar .id-comment-card--reply::before { background: linear-gradient(90deg, var(--teal), #9ad7de); }

/* Form — write to the editor */
.ar .id-single-comment-form { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--bl-r); border: 1px solid rgba(224, 169, 95, .35); background: radial-gradient(90% 60% at 100% 0%, rgba(224, 169, 95, .1), transparent 60%), linear-gradient(180deg, #1a1511, #110d0b); box-shadow: 0 50px 80px -50px rgba(0, 0, 0, .95); }
.ar .id-single-comment-form__heading { display: block; padding-bottom: 12px; border-bottom: 3px double var(--bl-rule-2); }
.ar .id-single-comment-form__heading > span { display: none; }
.ar .id-single-comment-form__heading small { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 13px; font-weight: 800; letter-spacing: 0; color: var(--gold-l); }
.ar .id-single-comment-form__heading small::before { content: "TO THE EDITOR"; padding: 2px 7px; border: 1px solid rgba(224, 169, 95, .35); border-radius: 3px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--gold); }
.ar .id-single-comment-form__heading h3 { margin-top: 4px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem) !important; font-weight: 900; }
.ar .id-single-comment-form__privacy { color: var(--muted); font-size: 13px; line-height: 1.9; }
.ar .id-comment-fields-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
.ar .id-comment-field { display: grid; gap: 6px; }
.ar .id-comment-field__label { font-size: 13.5px; font-weight: 800; color: var(--text-2); }
.ar .id-comment-field__label b { color: var(--terra-l); }
.ar .id-comment-field__control { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bl-rule-2); background: rgba(10, 8, 7, .7); color: var(--text); font: inherit; font-size: 15px; outline: 0; transition: border-color .3s, box-shadow .3s, background .3s; }
.ar textarea.id-comment-field__control { height: auto; min-height: 150px; padding: 12px 14px; line-height: 2; resize: vertical; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(255, 236, 214, .06) 31px 32px); background-attachment: local; }
.ar .id-comment-field__control::placeholder { color: rgba(205, 191, 178, .45); }
.ar .id-comment-field__control:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 169, 95, .15); background-color: rgba(10, 8, 7, .9); }
.ar .id-comment-field__control:disabled { opacity: .55; }
.ar .id-comment-field__hint, .ar .id-comment-field__meta { font-size: 12px; color: var(--muted); }
.ar .id-comment-field__error { font-size: 12.5px; font-weight: 700; color: #ff8a7a; }
.ar .id-comment-field__error:empty { display: none; }
.ar .id-comment-captcha { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 12px; margin: 0 !important; padding: 14px; border-radius: 12px; border: 1px dashed rgba(90, 167, 178, .4); background: rgba(90, 167, 178, .05); }
.ar .id-comment-captcha__question { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
.ar .id-comment-captcha__question small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--teal); }
.ar .id-comment-captcha__question p { font-size: 16px; font-weight: 900; color: var(--text); }
.ar .id-comment-captcha__refresh { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bl-rule-2); background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .3s, color .3s; }
.ar .id-comment-captcha__refresh:hover { border-color: var(--teal); color: var(--text); }
.ar .id-comment-captcha__load-error { grid-column: 1 / -1; color: #ff8a7a; font-size: 12.5px; }
.ar .id-single-comment-form button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--grad-fire); color: #1a0d08; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; box-shadow: 0 16px 34px -14px rgba(210, 106, 78, .8); transition: transform .3s var(--ease-out), filter .3s; }
.ar .id-single-comment-form button[type="submit"]:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.ar .id-single-comment-form button[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
.ar .id-single-comment-form [data-form-status], .ar .id-single-comment-form .public-form-status { font-size: 13.5px; line-height: 1.9; }

@media (max-width: 1100px) {
	.ar .id-single-comments__section { grid-template-columns: minmax(0, 1fr); }
	.ar .id-single-comment-form { position: relative; top: auto; }
}
@media (max-width: 640px) {
	.ar .id-comment-fields-grid { grid-template-columns: 1fr; }
	.ar .id-comment-captcha { grid-template-columns: 1fr; }
}

/* No letters yet: the form takes the whole row instead of leaving an empty column */
.ar .id-single-comments__section:not(:has(.id-comment-list)) .id-single-comment-form { grid-column: 1 / -1; position: relative; top: auto; width: min(100%, 860px); margin-inline: auto; }
.ar .id-single-comments__section:not(:has(.id-comment-list)) .id-comment-captcha { grid-template-columns: 1fr auto; }
