/* Launch articles (scripts/launch.mjs): one template for stories, reports, columns, selections, analyses and interviews. */
.launch { padding-block: clamp(40px, 5vw, 72px) 0; }
.launch-progress { position: fixed; left: 0; top: 0; z-index: 40; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--reading-progress, 0)); background: var(--accent); pointer-events: none; }
.launch-head { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.launch-head h1 { max-width: 1240px; font-size: clamp(38px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.launch-standfirst { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 24px 32px; align-items: start; padding-top: clamp(12px, 2vw, 28px); }
.launch-byline { display: grid; gap: 6px; justify-items: start; font-size: 14px; line-height: 20px; color: var(--secondary); }
.launch-byline > span:first-child { color: var(--text); }
.launch-role { max-width: 240px; }
/* Author names in the byline of a story are links. */
.launch-byline a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line); }
.launch-byline a:hover { color: var(--accent-text, var(--accent)); text-decoration-color: currentColor; }
.launch-save, .launch-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--text); }
.launch-save svg, .launch-ask svg { width: 18px; height: 18px; }
.launch-save[aria-pressed=true] svg { fill: currentColor; }
.launch-save:hover, .launch-ask:hover { color: var(--accent-text, var(--accent)); text-decoration: none; }
/* The standfirst: credits and the actions (listen, save, ask) at the left, the lead beside them (2026-11-17: the actions
   became a block of their own so the first screens of the client's layouts can lay them out as one row). */
.launch-standfirst > .launch-byline { grid-column: 1; grid-row: 1; }
.launch-actions { grid-column: 1; grid-row: 2; display: grid; gap: 6px; justify-items: start; align-content: start; }
.launch-standfirst > .launch-lead { grid-column: 2; grid-row: 1 / 3; }
.launch-lead { display: grid; gap: 14px; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.36; letter-spacing: -.01em; }
.launch-lead a, .launch-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.launch-lead a:hover, .launch-body a:hover { color: var(--accent-text, var(--accent)); text-decoration-color: currentColor; }
.launch-cover { margin: clamp(32px, 4.4vw, 64px) 0 0; }
.launch-cover :is(img, video) { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); border-radius: var(--r-s, 0); }
:is(.launch-cover, .launch-figure, .launch-gallery) figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 10px; font-size: 13px; line-height: 19px; color: var(--secondary); }
.launch-credit { white-space: nowrap; }

/* Text column in the middle, contents on the left, notes on the right. */
.launch-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 0 32px; align-items: start; padding-block: clamp(40px, 5vw, 80px) clamp(56px, 7vw, 112px); }
/* Contents (2026-11-13, Max): sans, with a ruler beside it. Every part has a tick; the part being read gets the long tick
   and full colour; the ruler fills down to the place being read and a short marker rides along it. */
.launch-contents { position: sticky; top: 112px; display: grid; gap: 12px; max-width: 260px; font-family: 'ONY One', Arial, sans-serif; font-size: 14px; line-height: 19px; }
.launch-contents p { color: var(--secondary); }
.launch-contents-list { --y: 0px; --fill: 0px; position: relative; display: grid; gap: 12px; padding-left: 30px; }
.launch-contents-list::before, .launch-contents-list::after {
  content: ''; position: absolute; left: 0; top: 0; width: 6px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 5px);
}
.launch-contents-list::before { bottom: 0; color: var(--line); }
.launch-contents-list::after { height: var(--fill); color: var(--secondary); transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.launch-contents-mark { position: absolute; left: 0; top: 0; width: 20px; height: 1px; translate: 0 var(--y); background: var(--accent); border-radius: 1px; transition: translate .35s cubic-bezier(.2, .8, .2, 1), opacity .3s; z-index: 1; }
.launch-contents-list:not([data-active]) .launch-contents-mark { opacity: 0; }
.launch-contents a { position: relative; color: var(--secondary); transition: color .25s; }
.launch-contents a::before { content: ''; position: absolute; left: -30px; top: var(--tick, 9px); width: 12px; height: 1px; background: var(--secondary); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.launch-contents a:hover, .launch-contents a[aria-current=true] { color: var(--text); text-decoration: none; }
/* the long tick of the part being read keeps the colour of the ruler (2026-11-13, Max) */
.launch-contents a[aria-current=true]::before { width: 22px; }
@media (prefers-reduced-motion: reduce) { .launch-contents-list::after, .launch-contents-mark, .launch-contents a, .launch-contents a::before { transition: none; } }
.launch-body { grid-column: 2; min-width: 0; font-size: var(--body, 19px); line-height: 1.58; }
.launch-body > * + * { margin-top: 1.05em; }
.launch-body > h2 { margin-top: clamp(48px, 5vw, 76px); font-size: clamp(28px, 2.7vw, 42px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; scroll-margin-top: 120px; }
.launch-body > h2:first-child { margin-top: 0; }
.launch-body > h2 + * { margin-top: clamp(18px, 1.8vw, 26px); }
.launch-body strong { font-weight: 500; }
.launch-subtitle { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.34; color: var(--secondary); }
.launch-list { padding-left: 1.2em; display: grid; gap: .6em; }
.launch-list li { padding-left: .2em; }
.launch-list li::marker { color: var(--secondary); }

/* Interview: the question is set as a line of display type, the answer follows as text. */
/* Interviews as in the editors' documents (2026-11-16): «— Вопрос» in bold in the type of the text, «— Ответ» in regular. */
.launch-question { margin-top: clamp(26px, 2.6vw, 38px) !important; font-weight: 700; }
.launch-question::before { content: '— '; }
html[data-font]:not([data-font=ony]) .launch-pull p { font-family: inherit; }
.launch-body > h2 + .launch-question { margin-top: clamp(18px, 1.8vw, 26px) !important; }

/* Pull quote, facts, matrix, expert opinion. */
.launch-pull { margin: clamp(36px, 4vw, 60px) 0 !important; padding-top: 22px; border-top: 1px solid var(--text); }
.launch-pull p { font-family: 'ONY Lavr', Arial, sans-serif; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.launch-facts { display: grid; margin-top: clamp(16px, 1.6vw, 22px) !important; border-top: 1px solid var(--text); font-size: 15px; line-height: 21px; }
.launch-facts > div { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr); gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.launch-facts dt { color: var(--secondary); }
.launch-matrix { margin-block: clamp(28px, 3vw, 44px) !important; display: grid; border-top: 1px solid var(--text); font-size: 16px; line-height: 1.34; }
.launch-matrix-row { display: grid; grid-template-columns: minmax(96px, .7fr) repeat(var(--columns, 2), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.launch-matrix-row > div { padding: 16px 16px 18px 0; color: var(--secondary); }
.launch-matrix-row > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.launch-matrix-row strong { display: block; margin-bottom: 4px; font-family: 'ONY Lavr', Arial, sans-serif; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.12; font-weight: 400; letter-spacing: -.02em; color: var(--text); }
.launch-matrix-row.is-head strong { font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0; }
.launch-matrix-axis { font-size: 13px; line-height: 18px; }
.launch-matrix br { display: none; }
.launch-expert { margin-block: clamp(32px, 3.4vw, 52px) !important; padding: clamp(20px, 2.2vw, 32px); background: var(--surface); border-radius: var(--r-s, 0); font-size: 17px; line-height: 1.5; }
.launch-expert > * + * { margin-top: .9em; }
.launch-expert-name { font-family: 'ONY Lavr', Arial, sans-serif; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.launch-expert-name + .launch-expert-role { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--secondary); }

/* An editorial insert stands apart from the story; a quotation from a source keeps its reference. */
.launch-inset { margin-block: clamp(32px, 3.4vw, 52px) !important; padding: clamp(20px, 2.2vw, 32px); background: var(--surface); border-radius: var(--r-s, 0); font-size: 17px; line-height: 1.5; }
.launch-inset > * + * { margin-top: .9em; }
.launch-citation { margin-block: clamp(28px, 3vw, 44px) !important; padding-left: clamp(18px, 2vw, 28px); border-left: 1px solid var(--text); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.42; }
.launch-citation > * + * { margin-top: .8em; }
.launch-citation footer { font-size: 13px; line-height: 19px; color: var(--secondary); }
/* Notes stand in the right margin beside the paragraph they explain. */
.launch-ref { font-size: .68em; line-height: 0; }
.launch-ref a { padding: 0 2px; text-decoration: none !important; color: var(--accent-text, var(--accent)); }
.launch-note { float: right; clear: right; width: calc(50% - 16px); margin: -3.2em calc(-50% - 16px) 1em 0 !important; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 19px; color: var(--secondary); }
.launch-note a { color: var(--accent-text, var(--accent)); text-decoration: none !important; font-variant-numeric: tabular-nums; }
.launch-note:target { color: var(--text); }

/* Pictures in the text are wider than the column; a gallery sets covers in one row. */
.launch-figure { margin: clamp(32px, 3.6vw, 56px) calc(-50% - 16px) clamp(32px, 3.6vw, 56px) 0 !important; clear: both; }
.launch-figure.is-column { margin-right: 0 !important; }
.launch-figure.is-full { margin-left: calc(-50% - 16px) !important; }
.launch-figure :is(img, video) { display: block; width: 100%; height: auto; background: var(--surface); border-radius: var(--r-s, 0); }
/* An upright picture stays within the text column; two of them share the wide measure. */
.launch-figure.is-portrait { margin-right: 0 !important; max-width: 560px; }
.launch-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin: clamp(32px, 3.6vw, 56px) calc(-50% - 16px) clamp(32px, 3.6vw, 56px) 0 !important; clear: both; }
.launch-pair .launch-figure { margin: 0 !important; max-width: none; }
.launch-gallery { margin: clamp(32px, 3.6vw, 56px) calc(-50% - 16px) clamp(32px, 3.6vw, 56px) 0 !important; clear: both; }
.launch-gallery-row { display: grid; grid-template-columns: repeat(var(--count, 6), minmax(0, 1fr)); gap: 12px; align-items: end; }
.launch-gallery-row img { display: block; width: 100%; height: auto; box-shadow: 0 6px 22px #0000001c; }
.launch-caption { font-size: 13px; line-height: 19px; color: var(--secondary); }
.related { padding-bottom: clamp(48px, 6vw, 96px); }

@media (max-width: 1100px) {
  .launch-standfirst { grid-template-columns: minmax(0, 1fr); }
  .launch-byline { grid-auto-flow: column; justify-content: start; align-items: center; gap: 6px 20px; grid-auto-columns: max-content; overflow-x: auto; }
  .launch-save, .launch-ask { margin-top: 0; }
  .launch-standfirst > :is(.launch-byline, .launch-actions, .launch-lead) { grid-column: 1; grid-row: auto; }
  .launch-actions { grid-auto-flow: column; justify-content: start; align-items: center; gap: 6px 20px; grid-auto-columns: max-content; }
  .launch-layout { grid-template-columns: minmax(0, 1fr); }
  .launch-contents { display: none; }
  .launch-body { grid-column: 1; max-width: 760px; }
  .launch-note { float: none; width: auto; margin: .8em 0 0 !important; padding-left: 14px; border-left: 1px solid var(--line); }
  .launch-figure, .launch-figure.is-full, .launch-gallery, .launch-pair { margin-inline: 0 !important; }
}
@media (max-width: 760px) {
  .launch-byline { grid-auto-flow: row; }
  .launch-cover { margin-inline: calc(var(--margin) * -1); }
  .launch-cover :is(img, video) { aspect-ratio: 4 / 3; border-radius: 0; }
  .launch-cover figcaption { padding-inline: var(--margin); }
  .launch-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .launch-matrix-row { grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr)); }
  .launch-matrix-axis { grid-column: 1 / -1; padding-bottom: 0 !important; border: 0 !important; }
  .launch-matrix-row > .launch-matrix-axis + div { padding-left: 0; border-left: 0; }
  .launch-matrix-row.is-head .launch-matrix-axis { display: none; }
  .launch-gallery-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print { .launch-progress, .launch-contents, .launch-save { display: none; } }
/* Films in place of a picture (scripts/launch.mjs `film`). */
.launch-film { display: block; width: 100%; height: auto; object-fit: cover; background: var(--surface); }

/* After the client's article layout (TE-RND «site design tune», 2026-11-17): notes in the accent colour, captions in the
   right margin (beside an upright picture, under a wide one), «Читать дальше» as a stair like the home grid. */
.launch-note { color: var(--accent-text, var(--accent)); }
@media (min-width: 1101px) {
  .launch-figure.is-portrait:not(.is-full), .launch-figure.is-column { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: 32px; max-width: none; margin-right: calc(-50% - 16px) !important; }
  .launch-figure.is-portrait:not(.is-full) > figcaption, .launch-figure.is-column > figcaption { grid-column: 2; grid-row: 1; align-self: start; margin-top: 0; flex-direction: column; justify-content: flex-start; max-width: 240px; }
  .launch-body > .launch-figure:not(.is-portrait):not(.is-column):not(.is-full) > figcaption { margin-left: calc((100% - 16px) * 2 / 3 + 32px); flex-direction: column; justify-content: flex-start; max-width: 240px; }
  .launch-pair .launch-figure > figcaption { flex-direction: column; justify-content: flex-start; }
}
/* «Читать дальше» (2026-11-17, Max: «по две крупные сплит-блоком с раскрытием чуть на соседний при наведении»): two
   stories side by side; the one under the pointer widens a little into its neighbour. */
.related .story-split { display: flex !important; gap: clamp(12px, 1.4vw, 24px); align-items: start; }
/* the reader's tile layout («Вид и вёрстка») must not reach these two cards: two upright stories, left and right */
html body .related .story-split > .story-card { flex: 1 1 0; min-width: 0; width: auto; max-width: none; margin: 0; grid-column: auto; transform: none; transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1); }
html body .related .story-split > .story-card .image-link { display: block; position: relative; aspect-ratio: 4 / 5; height: auto; width: 100%; overflow: hidden; }
html body .related .story-split > .story-card .image-link :is(img, video) { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.related .story-split > .story-card h2 { font-size: clamp(24px, 2.4vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
@media (hover: hover) and (min-width: 761px) { .related .story-split:hover > .story-card:hover { flex-grow: 1.3; } }
@media (max-width: 560px) { .related .story-split { gap: 10px; } .related .story-split > .story-card h2 { font-size: 18px; } }

/* Pictures of an article fit the height of the window (2026-11-17, Max: «по высоте чтобы в экран влезали»). */
.launch-body .launch-figure :is(img, video) { width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain; object-position: left center; background: none; }
.story-card[data-film] .image-link { position: relative; }
.card-film { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* The lead of the first screen is set in ONY Lavr in every type setting (2026-11-17, Max: «первый короткий текст тоже
   ONY Lavr»); the byline and actions stay in ONY One, the body keeps the reader's choice. */
html body .launch .launch-lead, html body .launch .launch-lead p { font-family: 'ONY Lavr', 'ONY One', Arial, sans-serif; font-weight: 400; letter-spacing: -.012em; }
html body .launch .launch-standfirst { font-family: 'ONY One', Arial, sans-serif; }

/* Two pictures side by side (2026-11-17, the editors: «картинки слипаются или наезжают на описание», Delo): in a pair the
   caption stands under its picture, not in the margin, so each figure keeps to its own column. */
html body .launch-pair > .launch-figure.launch-figure:not(.is-none) { display: block !important; min-width: 0; width: auto; max-width: none !important; margin: 0 !important; }
html body .launch-pair .launch-figure :is(img, video) { display: block; width: 100%; height: auto; max-height: none; object-fit: cover; }
html body .launch-pair .launch-figure > figcaption { position: static !important; display: flex; flex-direction: column; gap: 2px; margin: 10px 0 0 !important; width: auto !important; max-width: none !important; transform: none !important; }

/* The gallery of an article's pictures (public/lightbox.js, 2026-11-17). */
html:not(.is-site-editing) article.launch :is(.launch-cover, .launch-figure, .launch-gallery) img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: minmax(0, 1fr) auto; align-items: center; background: rgb(8 9 10 / .96); color: #f5f5f5; opacity: 0; transition: opacity .2s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
html.has-lightbox { overflow: hidden; }
.lightbox-stage { grid-column: 2; grid-row: 1 / 3; margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: 56px 0 24px; box-sizing: border-box; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox-stage figcaption { max-width: 760px; justify-self: center; text-align: center; font: 400 14px/1.4 'ONY One', Arial, sans-serif; color: rgb(245 245 245 / .78); display: flex; flex-direction: column; gap: 2px; }
.lightbox-stage figcaption .launch-credit { color: rgb(245 245 245 / .5); }
.lightbox button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; }
.lightbox-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; font-size: 30px; line-height: 1; border-radius: 50%; }
.lightbox-prev, .lightbox-next { grid-row: 1; width: 56px; height: 56px; border-radius: 50%; justify-self: center; }
.lightbox-prev { grid-column: 1; } .lightbox-next { grid-column: 3; }
.lightbox button svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox button:hover { background: rgb(255 255 255 / .08); }
.lightbox-count { position: absolute; top: 22px; left: 22px; margin: 0; font: 400 13px/1 'ONY One', Arial, sans-serif; color: rgb(245 245 245 / .6); font-variant-numeric: tabular-nums; }
.lightbox.is-single :is(.lightbox-prev, .lightbox-next) { visibility: hidden; }
@media (max-width: 760px) {
  .lightbox { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lightbox-prev, .lightbox-next { display: none !important; }
  .lightbox-stage { padding: 64px 12px 20px; }
}

/* Pictures line up (2026-11-17, Max: «выравнивание разных размеров картинок по ширине и высоте, чтобы ступенькой не
   прыгали»). One after another, landscape pictures take the whole width of their column, so their edges meet; only an
   upright picture is held to the height of the window. Side by side, the two pictures share one height: each takes a
   share of the row by its proportion (--ratio from scripts/launch.mjs), so tops, bottoms and captions stand level. */
html body .launch-body .launch-figure:not(.is-portrait) > :is(img, video) { width: 100%; height: auto; max-height: none; object-fit: cover; }
html body .launch-pair { display: flex !important; align-items: flex-start; gap: 16px; }
html body .launch-pair > .launch-figure.launch-figure:not(.is-none) { flex: var(--ratio, 1) 1 0; min-width: 0; }
html body .launch-pair > .launch-figure.launch-figure:not(.is-none) > :is(img, video) { width: 100%; height: auto; max-height: none; aspect-ratio: var(--ratio, auto); object-fit: cover; }
@media (max-width: 640px) { html body .launch-pair { flex-direction: column; } html body .launch-pair > .launch-figure.launch-figure:not(.is-none) { flex: none; width: 100%; } }
