/*
 * ioann-karpovka arch_text block (task 28): arch photo on the left, eyebrow + rich text on the right (john page «Житие»).
 * Design: docs/design/Site.dc.html?page=john (lines 749-757). The auto-fit grid is two columns from ~824px, one column below.
 * Breakpoints: desktop = (min-width: 768px); mobile = `not all and (min-width: 768px)`; never max-width (task 36).
 */
.ik-arch-text { padding: 64px 0 48px; }
/* Nothing below the block: the usual 120px gap above the footer. */
.ik-arch-text--last { padding-bottom: 120px; }
.ik-arch-text__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 48px 80px;
    align-items: start;
}
.ik-arch-text__arch.ik-arch { --ik-arch-h: 600px; min-width: 0; }
.ik-arch-text__body { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.ik-arch-text__text { max-width: 680px; }
@media not all and (min-width: 768px) {
    .ik-arch-text__arch.ik-arch { --ik-arch-h: 460px; }
}
/* Lead: the first paragraph in the large italic of the text_intro block (text-blocks.css .ik-text-block__intro). */
.ik-arch-text__lead {
    margin: 0;
    max-width: 680px;
    font: italic 400 clamp(22px, 2.4vw, 28px)/1.35 var(--font-title);
    color: var(--iskm-navy);
    text-wrap: pretty;
}
/* The collapsed rest of the text («Читать далее», ui.css .ik-more). */
.ik-arch-text__more-text { margin-top: 24px; }

/* Task 80 (D16): table of contents of the following long_read + the «Читать» button under the text. */
.ik-arch-text__toc { align-self: stretch; }
.ik-arch-text__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* 14px flower bullet + 12px gap, like the .ik-prose bullets (prose.css). */
.ik-arch-text__toc-list > li {
    position: relative;
    padding-left: 26px;
}
.ik-arch-text__toc-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.75em - 7px);
    width: 14px;
    height: 14px;
    background: url(../img/ornament/flower-ochre.png) center / contain no-repeat;
}
.ik-arch-text__toc-link {
    font: 400 17px/1.5 var(--font-body);
    color: var(--iskm-navy);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color var(--dur) var(--ease);
}
.ik-arch-text__toc-link:active { color: var(--iskm-mauve-700); }
@media (hover: hover) {
    .ik-arch-text__toc-link:hover { color: var(--iskm-mauve-700); text-decoration-thickness: 2.5px; }
}
