/*
 * ioann-karpovka: page_tabs block (task 23) — tab row above the page header of tabbed text pages
 * (design Site.dc.html lines 411-418: padding 24px gutter 20px, Button sm pills). The pills themselves
 * are the shared pill row (ui.css); here only the block spacing (the mobile bleed is ui.css `.ik-pills--bleed`).
 * Breakpoints: only `not all and (min-width: 768px)` / `(min-width: 768px)`.
 */
.ik-page-tabs { padding-block: 24px 20px; }

/*
 * Anchor mode (task 24, the temples page; design Site.dc.html lines 478-486): every pill is an in-page #anchor link.
 * The bar sticks to the top of the viewport (the site header is not sticky), under the header dropdowns (z-index 60);
 * 16 + 40 + 16 + 1 = 73px high at every width. Smooth scrolling to the anchors; reduced motion is reset by base.css.
 */
.ik-page-tabs--anchors {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-block: 16px;
    background: var(--iskm-cream-50);
    border-bottom: 1px solid var(--line);
}
html:has(.ik-page-tabs--anchors) { scroll-behavior: smooth; }

/*
 * Section rows on desktop (2026-11-06): a row that does not fit wraps onto a second line instead of clipping the last
 * pills («О монастыре»: 8 items); mobile keeps the horizontal scroll. The sticky anchor bar stays one scrolling line.
 */
@media (min-width: 768px) {
    .ik-page-tabs:not(.ik-page-tabs--anchors) .ik-pills { overflow-x: visible; }
    .ik-page-tabs:not(.ik-page-tabs--anchors) .ik-pills__list { flex-wrap: wrap; }
}
