/* KyrgyzSat — press release / article template. Extends style.css (+ mobile.css ≤767px). Logical properties → RTL. */

.page-article .site-header { background: rgba(10, 12, 15, .82); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); border-bottom-color: var(--edge); }

.article img { height: auto; }
.article figure { margin-inline: 0; }

/* ---------- Reading progress ---------- */
.a-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 60; pointer-events: none; }
.a-progress i { display: block; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left center; will-change: transform; }
[dir="rtl"] .a-progress i { transform-origin: right center; }

/* ---------- Hero ---------- */
.a-hero-inner { max-width: calc(1120px + var(--gutter) * 2); padding-block: calc(var(--header-h) + 56px) 52px; }
.a-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-block-end: 36px; font-size: 14px; font-weight: 600; color: var(--t2); transition: color .2s; }
.a-back:hover { color: var(--t0); }
.a-back .i { width: 18px; height: 18px; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--t2); }
html[lang="ar"] .a-meta { font-size: 14px; letter-spacing: 0; text-transform: none; }
.a-type { padding: 6px 12px; border-radius: 100px; border: 1px solid rgba(41, 230, 255, .45); color: var(--cyan); }
.a-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t3); }
.a-title { margin-block: 26px 22px; max-width: 22ch; font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 4.4vw, 66px); line-height: 1.08; letter-spacing: var(--track-display); color: var(--t0); text-wrap: balance; }
html[lang="ar"] .a-title { line-height: 1.4; font-weight: 600; }
.a-standfirst { max-width: 62ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--t1); }
.a-sample { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 28px; padding: 8px 14px; border: 1px dashed var(--edge-2); border-radius: 100px; font-size: 13px; color: var(--t3); }
.a-sample .i { width: 16px; height: 16px; }

.a-cover { margin: 0; }
.a-cover img { width: 100%; aspect-ratio: 21 / 9; max-height: 80vh; object-fit: cover; border-block: 1px solid var(--edge); }
.a-cover figcaption, .a-bleed figcaption { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-block: 12px; font-size: 13px; color: var(--t3); }
.a-credit { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .06em; color: var(--t3); opacity: .8; }

/* ---------- Layout: sticky rail + 68ch column, full-bleed breaks ---------- */
.a-layout {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [rail-start] 200px [rail-end] minmax(32px, 80px)
    [content-start] minmax(0, 720px) [content-end]
    minmax(var(--gutter), 1fr) [full-end];
  padding-block-start: 72px;
}
.a-layout > .a-body { grid-column: content; }
.a-layout > .a-body:first-of-type { grid-row: 1; }
.a-layout > .a-bleed { grid-column: full; grid-row: 2; }
.a-layout > .a-body:last-of-type { grid-row: 3; }
.a-rail { grid-column: rail; grid-row: 1 / 4; position: relative; z-index: 2; transition: opacity .3s; }
.a-rail.is-hidden { opacity: 0; pointer-events: none; }
.a-rail-inner { position: sticky; top: calc(var(--header-h) + 36px); }
.a-rail-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--t3); margin-block-end: 12px; }
html[lang="ar"] .a-rail-label { font-size: 13px; text-transform: none; }
.a-share { display: flex; flex-wrap: wrap; gap: 8px; }
.a-sh { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; border: 1px solid var(--edge); background: var(--surface); color: var(--t1); cursor: pointer; transition: color .2s, border-color .2s; }
.a-sh .i { width: 18px; height: 18px; }
.a-sh:hover { color: var(--t0); border-color: var(--edge-2); }
.a-sh.is-done { color: var(--cyan); border-color: rgba(41, 230, 255, .5); }
.a-copied { min-height: 20px; margin-block: 8px 0; font-size: 12px; color: var(--cyan); }
.a-toc { margin-block-start: 28px; }
.a-toc ol, .a-mtoc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--edge); }
.a-toc a, .a-mtoc a { display: block; margin-inline-start: -1px; padding: 7px 0; padding-inline-start: 14px; border-inline-start: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--t3); transition: color .2s, border-color .2s; }
.a-toc a:hover { color: var(--t1); }
.a-toc a.is-active, .a-mtoc a.is-active { color: var(--t0); border-inline-start-color: var(--cyan); }
.a-mtoc, .a-share-m { display: none; }

/* ---------- Body typography ---------- */
.a-body { font-size: 18px; line-height: 1.75; color: var(--t1); }
.a-body > * + * { margin-block-start: 1.15em; }
.a-body p { max-width: 68ch; }
.a-lead { font-size: 21px; line-height: 1.6; font-weight: 500; color: var(--t0); }
.a-dateline { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
html[lang="ar"] .a-dateline { font-size: 16px; letter-spacing: 0; }
.a-body h2 { margin-block: 2.4em .5em; font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.2; letter-spacing: var(--track-display); color: var(--t0); scroll-margin-top: calc(var(--header-h) + 28px); }
html[lang="ar"] .a-body h2 { line-height: 1.5; }
.a-body h2 + * { margin-block-start: 0; }
.a-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.a-list li { position: relative; padding-inline-start: 24px; }
.a-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 7px; background: var(--t3); }
.a-list b { color: var(--t0); font-weight: 600; }

.a-facts { margin-block: 44px; padding: 28px 30px; border-radius: 6px; border: 1px solid var(--edge); background: var(--surface); }
.a-facts-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--t3); margin-block-end: 18px; }
html[lang="ar"] .a-facts-title { font-size: 13px; text-transform: none; }
.a-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin: 0; }
.a-facts dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--t3); margin-block-end: 4px; }
html[lang="ar"] .a-facts dt { font-size: 13px; text-transform: none; }
.a-facts dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--t0); }

.a-quote { margin-block: 60px; padding: 0; }
.a-quote blockquote { margin: 0; position: relative; }
.a-quote blockquote::before { content: "“"; display: block; height: .55em; font-family: var(--f-display); font-size: 88px; line-height: 1; color: var(--cyan); }
html[lang="ar"] .a-quote blockquote::before { content: "”"; }
.a-quote blockquote p { max-width: 26ch; font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; letter-spacing: var(--track-display); color: var(--t0); text-wrap: balance; }
html[lang="ar"] .a-quote blockquote p { line-height: 1.6; }
.a-quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 22px; font-size: 15px; color: var(--t2); }
.a-ph { padding: 3px 9px; border: 1px dashed var(--edge-2); border-radius: 100px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }

.a-steps { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block-start: 28px; }
.a-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px; border-radius: 6px; border: 1px solid var(--edge); background: var(--surface); }
.a-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge-2); font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--t0); }
.a-steps li:first-child .a-step-n { border-color: var(--cyan); color: var(--cyan); }
.a-steps h3 { font-family: var(--f-display); font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--t0); margin: 8px 0 6px; }
.a-steps p { font-size: 15px; line-height: 1.55; color: var(--t2); }

.a-figure { margin-block: 40px; }
.a-figure img { width: 100%; border-radius: 6px; border: 1px solid var(--edge); }
.a-figure figcaption { margin-block-start: 10px; font-size: 13px; line-height: 1.5; color: var(--t3); }

.a-bleed { margin-block: 80px; }
.a-bleed img { width: 100%; height: clamp(360px, 52vw, 720px); object-fit: cover; border-block: 1px solid var(--edge); }
.a-bleed figcaption { padding-inline: var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; }

.a-end { margin-block: 56px 36px; text-align: center; letter-spacing: .5em; color: var(--t3); }
.a-about { padding: 28px 30px; border-radius: 6px; border: 1px solid var(--edge); background: var(--surface); }
.a-body .a-about-title { margin: 0 0 10px; font-size: 19px; }
.a-about p { font-size: 16px; line-height: 1.65; }

/* ---------- End matter ---------- */
.a-end-matter { padding-block: 72px 104px; }
.a-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.a-card { padding: 32px; border-radius: 6px; border: 1px solid var(--edge); background: var(--surface); }
.a-card .label { margin-block-end: 10px; }
.a-card-mail { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); color: var(--t0); direction: ltr; transition: color .2s; overflow-wrap: anywhere; }
.a-card-mail:hover { color: var(--cyan); }
.a-card .muted { margin-block-start: 8px; font-size: 14px; }
.a-card--kit { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 20px; }
.a-card--kit h3 { font-family: var(--f-display); font-weight: 500; font-size: 20px; color: var(--t0); }
.a-related { margin-block-start: 72px; }
.a-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-block-end: 24px; }
.a-related-head h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); color: var(--t0); }
.a-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .a-layout { grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [content-start] minmax(0, 720px) [content-end] minmax(var(--gutter), 1fr) [full-end]; }
  .a-rail { display: none; }
  .a-mtoc { display: block; grid-column: content; grid-row: 1; margin-block-end: 32px; }
  .a-layout > .a-body:first-of-type { grid-row: 2; }
  .a-layout > .a-bleed { grid-row: 3; }
  .a-layout > .a-body:last-of-type { grid-row: 4; }
  .a-share-m { display: block; margin-block-start: 40px; }
  .a-mtoc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-inline: 16px; border: 1px solid var(--edge); border-radius: 10px; background: var(--surface); color: var(--t0); font-weight: 600; cursor: pointer; list-style: none; }
  .a-mtoc summary::-webkit-details-marker { display: none; }
  .a-mtoc summary .i { width: 18px; height: 18px; transition: transform .25s; }
  .a-mtoc[open] summary .i { transform: rotate(180deg); }
  .a-mtoc ol { margin-block-start: 12px; }
  .a-mtoc a { min-height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--t2); }
  .a-card--kit { grid-template-columns: 52px 1fr; }
  .a-card--kit .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Mobile (≤767): same canons as the landing ---------- */
@media (max-width: 767px) {
  .a-hero-inner { padding-block: calc(var(--header-h) + 20px) 28px; }
  .a-back { margin-block-end: 18px; }
  .a-meta { font-size: 11px; gap: 8px 10px; }
  .a-type { padding: 5px 10px; }
  .a-title { margin-block: 18px 14px; font-size: clamp(26px, 7.6vw, 32px); line-height: 1.14; max-width: none; }
  .a-standfirst { font-size: 17px; }
  .a-sample { margin-block-start: 18px; font-size: 12px; border-radius: 12px; }
  .a-cover img { aspect-ratio: 4 / 3; max-height: none; }
  .a-cover figcaption { padding-inline: var(--gutter); }
  .a-layout { padding-block-start: 28px; }
  .a-mtoc { margin-block-end: 24px; }
  .a-body { font-size: 17px; line-height: 1.7; }
  .a-lead { font-size: 18px; }
  .a-body h2 { font-size: 23px; margin-block-start: 2em; }
  .a-facts { margin-block: 32px; padding: 20px; border-radius: 14px; }
  .a-facts dl { grid-template-columns: 1fr; gap: 14px; }
  .a-quote { margin-block: 40px; }
  .a-quote blockquote::before { font-size: 64px; }
  .a-quote blockquote p { font-size: 22px; }
  .a-steps { grid-template-columns: 1fr; }
  .a-steps li { padding: 18px; border-radius: 14px; }
  .a-figure { margin-block: 28px; }
  .a-figure img { border-radius: 14px; }
  .a-bleed { margin-block: 48px; }
  .a-bleed img { height: 300px; }
  .a-about { padding: 20px; border-radius: 14px; }
  .a-share-m .a-sh { width: 48px; height: 48px; border-radius: 12px; }
  .a-end-matter { padding-block: 40px 56px; }
  .a-cards { grid-template-columns: 1fr; gap: 12px; }
  .a-card { padding: 20px; border-radius: 14px; }
  .a-card-mail { font-size: 21px; }
  .a-card--kit { grid-template-columns: 44px 1fr; gap: 14px; }
  .a-card--kit .p-ico { width: 44px; height: 44px; border-radius: 12px; }
  .a-card--kit h3 { font-size: 17px; }
  .a-card--kit .btn { width: 100%; justify-self: stretch; }
  .a-related { margin-block-start: 44px; display: flex; flex-direction: column; }
  .a-related-head { display: contents; }
  .a-related-head h2 { font-size: 24px; margin-block-end: 18px; }
  .a-related-grid { display: flex; }
  .a-related .link-arrow { order: 10; }
}
