/*
 * ioann-karpovka long_read block (task 80, D16): the full life text under «Дни памяти» — a heading and sections
 * (h3 + rich text) in the 760px text column. The TOC and the «Читать» button live in arch-text.css (arch_text block).
 * Without JS the body is visible; js/long-read.js sets [hidden] on it. Markup: blocks/long_read.blade.php.
 * Breakpoints: desktop = (min-width: 768px); mobile = `not all and (min-width: 768px)`; never max-width (task 36).
 * The clamp() heading size scales on mobile, so no breakpoint rules are needed.
 */
/* base.css has no [hidden] reset: guard the elements the script hides. */
.ik-long-read__body[hidden],
.ik-long-read__collapse[hidden] { display: none; }

/* The «Читать» link scrolls the block under the sticky header. */
.ik-long-read { scroll-margin-top: var(--ik-anchor-offset, 73px); }
.ik-long-read__body { padding: 8px 0 56px; }
/* Nothing below the block: the usual 120px gap above the footer. */
.ik-long-read--last .ik-long-read__body { padding-bottom: 120px; }
/* A text block follows: it brings its own 56px top padding. */
.ik-long-read--before-text .ik-long-read__body { padding-bottom: 0; }
/* The collapsed body leaves the section empty: keep the page rhythm of the neighbours only. */
.ik-long-read.is-collapsed .ik-long-read__body { padding: 0; }
.ik-long-read--before-text.is-collapsed { padding-bottom: 0; }

.ik-long-read__col {
    max-width: var(--ik-text-measure, 760px);
    margin-inline: auto;
    min-width: 0;
}
.ik-long-read__title { margin-bottom: 32px; }

.ik-long-read__section { scroll-margin-top: calc(var(--ik-anchor-offset, 73px) + 24px); }
.ik-long-read__section + .ik-long-read__section { margin-top: 44px; }
/* The text_heading style. */
.ik-long-read__heading {
    margin: 0 0 20px;
    font: 600 clamp(28px, 3vw, 34px)/1.1 var(--font-title);
    color: var(--iskm-navy);
    text-wrap: balance;
}
.ik-long-read__collapse {
    margin-top: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
/* «Свернуть»: the chevron points up. */
.ik-long-read__chev { display: inline-flex; transform: rotate(180deg); }
