/* Hallmark · waive 77 · the route and the discussion sit in the reading column (.ar-main) next to the contents (.ar-rail) · отчёт TrailTrack читается одной колонкой .ar-main, справа оглавление .ar-rail, поэтому маршрут и обсуждение такой же ширины */
        /* Hallmark · dismissed 77 · отчёт TrailTrack это одно длинное чтение в .ar-main, главы отчёта не разделы лендинга */
        /* Hallmark · waive 49b · the wrapped links are chapter and report titles (.ar-tocbar, .jcard__title) · названия глав отчёта и других публикаций TrailTrack длинные, перенос в .ar-toc и .jcard__title на телефоне нормален */
        /* the photo viewer stays dark in both themes */
        :root { --viewer: rgba(8, 10, 12, 0.94); --viewer-ink: rgba(255, 251, 247, 0.78); --viewer-btn: rgba(255, 251, 247, 0.12); --viewer-btn-hover: rgba(255, 251, 247, 0.22); }

        /* ---------- reading progress ---------- */
        .ar-progress { position: fixed; top: 0; left: 0; z-index: 70; width: 100%; height: 3px; pointer-events: none; }
        .ar-progress i { display: block; width: 100%; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }

        /* ---------- head ---------- */
        .ar-head > .ar-title, .ar-head > .ar-byline { max-width: 920px; }
        .ar-title { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-display); }
        .ar-dek { max-width: var(--article-width); margin-top: 20px; color: var(--copy); font-size: var(--fs-body-lg); line-height: var(--lh-body); }
        .ar-dek a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
        .ar-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
        .ar-author { display: flex; align-items: center; gap: 12px; }
        .ar-author b { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-body); }
        .ar-author b a:hover { text-decoration: underline; }
        .ar-author small { display: block; color: var(--quiet); font-size: var(--fs-small); }
        .ar-ava { position: relative; flex: none; justify-self: start; width: max-content; }
        .ar-ava .lvl { position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 999px; background: var(--ink); color: var(--bg); font-size: var(--fs-caption-tight); font-weight: var(--fw-heading); font-variant-numeric: tabular-nums; }
        .ar-ava .avatar--xl + .lvl { right: 2px; bottom: 2px; min-width: 30px; height: 30px; font-size: var(--fs-caption); border-width: 3px; }
        .ar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
        .ar-act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-text); white-space: nowrap; font-variant-numeric: tabular-nums; list-style: none; cursor: pointer; }
        .ar-act::-webkit-details-marker { display: none; }
        .ar-act:hover { border-color: var(--ink); color: var(--ink); }
        .ar-act .icon { width: 18px; height: 18px; }
        .ar-act[aria-pressed="true"] { border-color: var(--cta); color: var(--cta); }
        .ar-act[aria-pressed="true"] .icon { fill: currentColor; }
        .ar-views { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--quiet); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .ar-views .icon { width: 17px; height: 17px; }
        .ar-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
        .ar-tags .tag { padding: 4px 12px; font-size: var(--fs-caption); }
        .ar-tags .icon { width: 14px; height: 14px; }

        /* ---------- cover and route spec ---------- */
        .ar-cover { position: relative; margin-top: 32px; aspect-ratio: 3 / 1; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-soft); }
        .ar-cover > a { display: block; height: 100%; cursor: zoom-in; }
        .ar-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
        .ar-cover__btn { position: absolute; right: 16px; bottom: 16px; }
        html[data-theme="dark"] .ar-cover__btn.btn--white { background: #242424 !important; border-color: rgba(255, 255, 255, .2) !important; color: #f2f2ef !important; }
        .ar-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
        .ar-facts > div { display: grid; align-content: start; gap: 2px; padding: 16px 20px; border-left: 1px solid var(--line); }
        .ar-facts > div:first-child { border-left: 0; }
        .ar-facts b { font: var(--fw-heading) var(--fs-h3)/var(--lh-h3) var(--font-display); letter-spacing: var(--ls-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
        .ar-facts span { color: var(--quiet); font-size: var(--fs-caption); }
        .ar-facts > .ar-fact { display:flex; align-items:flex-start; gap:12px; min-width:0; }
        .ar-facts .ar-fact__icon { flex:0 0 auto; width:23px; height:23px; margin-top:3px; color:var(--ink); }
        .ar-fact__content { display:grid; gap:3px; min-width:0; width:100%; }
        .ar-facts .ar-fact__content b { white-space:normal; overflow-wrap:anywhere; }
        .ar-facts .ar-fact__content b .ar-fact__value-part { display:inline-block; max-width:100%; color:inherit; font:inherit; letter-spacing:inherit; }
        .ar-facts .ar-fact__content b .ar-fact__value-atom { display:inline-block; color:inherit; font:inherit; letter-spacing:inherit; white-space:nowrap; }
        .ar-fact__meter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; min-width:0; width:100%; max-width:100px; margin-top:4px; }
        .ar-fact__meter i { display:block; height:6px; border-radius:999px; background:var(--line-2,var(--line)); }
        .ar-fact__meter--easy i:nth-child(1), .ar-fact__meter--medium i:nth-child(-n+2), .ar-fact__meter--hard i, .ar-fact__meter--hardcore i { background:var(--link,#c94600); }

        /* ---------- body ---------- */
        .ar-layout { display: grid; grid-template-columns: minmax(0, 780px) 290px; justify-content: space-between; gap: 48px; align-items: start; margin-top: clamp(40px, 5vw, 64px); }
        .prose { color: var(--ink-2); font-size: var(--fs-body-lg); line-height: var(--lh-article); }
        .prose p { max-width: var(--article-width); }
        .prose p + p { margin-top: 1.05em; }
        .ar-sec { padding-top: clamp(44px, 5vw, 68px); }
        .ar-head .btn-follow { min-height: 44px; }
        .ar-sec:first-child { padding-top: 0; }
        .ar-sec > h2 { max-width: var(--article-width); margin-bottom: 0.65em; color: var(--ink); font-size: var(--fs-h2); line-height: var(--lh-h2); }
        .prose figure { margin: 1.7em 0; }
        .prose figure:last-child { margin-bottom: 0; }
        .prose figcaption { margin-top: 12px; color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-small); }
        .ar-ph { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--bg-soft); cursor: zoom-in; }
        .ar-ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity 200ms; }
        .ar-ph:hover img { opacity: 0.9; }
        .ar-fig .ar-ph { aspect-ratio: 16 / 9; }
        .ar-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(110px, 11.5vw, 176px)); gap: 8px; }
        .ar-mosaic .ar-ph { border-radius: 10px; }
        .ar-mosaic .ar-ph:first-child { grid-column: span 2; grid-row: span 2; }
        .ar-mosaic--3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
        .ar-mosaic--3 .ar-ph:first-child { grid-column: auto; }
        .ar-more { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; background: var(--scrim-50); color: var(--on-accent); line-height: var(--lh-display); }
        .ar-more b { font: var(--fw-heading) var(--fs-h3) var(--font-display); }
        .ar-more span { font-size: var(--fs-caption); opacity: 0.9; }
        .ar-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .ar-pair .ar-ph { aspect-ratio: 4 / 3; border-radius: 10px; }
        .ar-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
        .ar-trio .ar-ph { aspect-ratio: 3 / 4; border-radius: 10px; }
        .ar-note { display: flex; gap: 12px; margin-top: 1.4em; padding: 16px 16px; border-left: 3px solid var(--orange); border-radius: 0 12px 12px 0; background: var(--orange-soft); color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); }
        .ar-note .icon { flex: none; margin-top: 4px; color: var(--cta); }

        /* the AI summary the author attached */
        .ar-summary { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--bg-soft); }
        .ar-summary__by { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--quiet); font-size: var(--fs-small); }
        .ar-summary__by .icon { width: 17px; height: 17px; color: var(--cta); }
        .ar-summary ul { display: grid; gap: 16px; }
        .ar-summary li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: var(--fs-body); line-height: var(--lh-body); }
        .ar-summary li .icon { margin-top: 4px; color: var(--ok); }
        .ar-summary li b { color: var(--ink); }
        .ar-summary [data-more-tips] { margin-top: 16px; }
        .ar-summary--generated { margin-top: 32px; border: 1px solid var(--line); }
        html[data-theme="dark"] .ar-summary--generated { background: #202020; border-color: #383838; }
        .ar-summary__title { margin: 0 0 18px; color: var(--ink); font: var(--fw-title) var(--fs-h4)/var(--lh-h4) var(--font-display); }
        .ar-summary--generated li span { color: var(--ink-2); overflow-wrap: anywhere; }
        .ar-summary__caption { margin: 18px 0 0; color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-body); }

        /* ---------- the route from this story ---------- */



        /* ---------- reactions, comments, author ---------- */
        .ar-react { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px 0; border-block: 1px solid var(--line); }
        .ar-ctitle { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
        .ar-comments { display: grid; gap: 16px; }
        .ar-comments .empty { padding: 28px 20px; }
        .ar-comments .empty b { color: var(--ink); }
        .ar-reply { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
        .ar-reply textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--field-edge); border-radius: 16px; background: var(--surface); color: var(--ink); font: var(--fw-text) var(--fs-body)/var(--lh-body) var(--font-text); resize: vertical; }
        .ar-reply textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-a-18); }
        .ar-reply .row { grid-column: 2; justify-content: space-between; }
        .ar-reply .btn:disabled { border-color: var(--line-2); background: var(--bg-soft); color: var(--quiet); cursor: not-allowed; }
        .comment__bubble p { color: var(--ink-2); }

        .ar-followsyou { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: var(--fs-small); font-weight: var(--fw-title); }
        .ar-followsyou .icon { width: 16px; height: 16px; }

        /* ---------- rail ---------- */

        /* ---------- cards below: reports and routes ---------- */
        .ar-more-sec { margin-top: clamp(56px, 9vw, 128px); }
        .ar-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
        .jcard { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
        .jcard__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--bg-soft); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 200ms, transform 300ms var(--ease-out); }
        .jcard__media img { width: 100%; height: 100%; object-fit: cover; }
        .jcard:hover .jcard__media { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
        .jcard__body { display: grid; grid-template-rows: auto auto 1fr auto; align-content: start; gap: 8px; }
        .jcard__title { font: var(--fw-heading) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
        .jcard__title a::after, .route__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
        .jcard__title a:focus-visible, .route__title a:focus-visible { outline: none; }
        .jcard__title a:focus-visible::after, .route__title a:focus-visible::after { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: var(--r); }
        .jcard:hover .jcard__title a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
        .jcard__desc { display: -webkit-box; overflow: hidden; color: var(--copy); font-size: var(--fs-small); line-height: var(--lh-small); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
        .jr-by { display: inline-flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-small); }
        .jr-by .avatar { width: 28px; height: 28px; font-size: var(--fs-caption-tight); }
        .jr-by b { overflow: hidden; color: var(--ink-2); font-weight: var(--fw-ui); white-space: nowrap; text-overflow: ellipsis; }
        .jr-by span, .jr-by time { white-space: nowrap; }
        .jcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: var(--fs-small); }
        .jr-specs { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .jr-specs li { display: inline-flex; align-items: center; gap: 8px; }
        .jr-specs .icon { width: 16px; height: 16px; color: var(--quiet); }
        .jr-diff { padding: 2px 8px; border-radius: 999px; background: var(--info-soft); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-title); }
        .jr-diff--hard { background: var(--warn-soft); color: var(--warn); }
        .jstats { position: relative; z-index: 2; display: flex; align-items: center; gap: 2px; }
        .jstat { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; font-weight: var(--fw-ui); font-variant-numeric: tabular-nums; }
        .jstat .icon { width: 17px; height: 17px; }
        button.jstat:hover { background: var(--bg-soft); color: var(--ink); }
        button.jstat[aria-pressed="true"] { color: var(--cta); }
        button.jstat[aria-pressed="true"] .icon { fill: currentColor; }

        /* ---------- dialogs: photos and download ---------- */
        .lbx { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--viewer); color: var(--on-accent); overscroll-behavior: contain; }
        .lbx::backdrop { background: var(--viewer); }
        .lbx[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
        .lbx__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0 24px; color: var(--viewer-ink); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .lbx__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 12px 76px; }
        .lbx__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
        .lbx__cap { padding: 12px 24px 20px; color: var(--glass-90); font-size: var(--fs-body); text-align: center; text-wrap: balance; }
        .lbx__cap:empty { display: none; }
        .lbx__btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--viewer-btn); color: var(--on-accent); }
        .lbx__btn:hover { background: var(--viewer-btn-hover); }
        .lbx__btn:focus-visible { outline-color: var(--focus); }
        .lbx__nav { position: absolute; top: 50%; translate: 0 -50%; }
        .lbx__prev { left: 16px; }
        .lbx__next { right: 16px; }
        .ar-dl { width: min(100% - 32px, 420px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
        .ar-dl::backdrop { background: var(--scrim-50); }
        .ar-dl__in { display: grid; gap: 16px; padding: 24px; }
        .ar-dl__head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
        .ar-dl__head h2 { font-size: var(--fs-h3); }
        .ar-dl__head p { margin-top: 4px; color: var(--copy); font-size: var(--fs-small); }
        .ar-dl__opt { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; }
        .ar-dl__opt:hover:not(:disabled) { border-color: var(--ink); }
        .ar-dl__opt:disabled { background: var(--bg-soft); color: var(--quiet); cursor: not-allowed; }
        .ar-dl__opt i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft); color: var(--link); font: var(--fw-heading) var(--fs-caption) var(--font-text); font-style: normal; }
        .ar-dl__opt b { display: block; font-size: var(--fs-body); }
        .ar-dl__opt span { color: var(--quiet); font-size: var(--fs-small); }
        .ar-dl__x { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink-2); }

        @media (max-width: 1180px) {
            .ar-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; }
        }
        @media (max-width: 1023px) {
            .ar-layout { grid-template-columns: minmax(0, 1fr); }
            .ar-layout > .ar-main { max-width: 780px; }
            .ar-actions { margin-left: 0; }
        }
        @media (max-width: 767px) {
            .ar-byline { gap: 16px; }
            .ar-actions { width: 100%; }
            .ar-cover { aspect-ratio: 4 / 3; margin-top: 24px; border-radius: var(--r); }
            .ar-cover__btn { right: 10px; bottom: 10px; }
            .ar-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .ar-facts > div { padding: 12px 16px; }
            .ar-facts > .ar-fact { gap:8px; }
            .ar-facts .ar-fact__icon { width:20px; height:20px; margin-top:2px; }
            .ar-facts > div:nth-child(odd) { border-left: 0; }
            .ar-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
            .ar-facts b { font-size: var(--fs-h4); }
            .ar-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
            .ar-mosaic .ar-ph { aspect-ratio: 1; }
            .ar-mosaic .ar-ph:first-child { grid-row: auto; aspect-ratio: 16 / 10; }
            .ar-mosaic--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .ar-mosaic--3 .ar-ph:first-child { grid-column: span 2; }
            .ar-trio { gap: 4px; }
            .ar-cards { grid-template-columns: minmax(0, 1fr); }
            .jcard__desc, .ar-panel__specs { font-size: var(--fs-body); }
            .lbx__stage { padding: 8px 8px 64px; }
            .lbx__nav { top: auto; bottom: 8px; translate: none; }
            .lbx__prev { left: calc(50% - 56px); }
            .lbx__next { right: calc(50% - 56px); }
        }
        /* phones: the cover first, a byline of fixed height, nothing above the fold moves when fonts and photos arrive */
        @media (max-width: 767px) {
            /* phones: cover, title, author and the route numbers first; the subtitle follows them, so when Inter arrives
               and the subtitle rewraps, nothing on the first screen moves */
            .ar-story { display: flex; flex-direction: column; }
            .ar-head { display: contents; }
            .ar-head > .ar-cover { order: 1; width: 100%; height: auto; margin: 0 0 24px; }
            .ar-head > .ar-title { order: 2; min-height: calc(3 * var(--lh-h1) * 1em); }
            .ar-head > .ar-byline { order: 3; margin-top: 16px; }
            .ar-story > .ar-facts { order: 4; margin-top: 16px; }
            .ar-head > .ar-dek { order: 5; margin-top: 20px; }
            .ar-byline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 64px; margin-top: 20px; }
            .ar-author { min-width: 0; }
            .ar-author > span:last-child { min-width: 0; }
            .ar-author b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
            .ftr__brand p { font-size: var(--fs-body); }
        }
        /* touch: every control at least 44 x 44; text links grow their box, not the layout */
        @media (pointer: coarse) {
            .ar-act { min-height: 44px; }
            .ar-views[href] { justify-content: center; min-width: 44px; min-height: 44px; }
            .ar-dek a, .ar-author b a, .jcard__title a { display: inline-block; padding-block: 12px; margin-block: -12px; }
            .ftr a { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
        }
        /* ---------- the story: text, a sticky contents bar and a sticky route panel ---------- */
        .page .wrap { max-width: calc(1520px + var(--edge) * 2); }
        :root { --ar-hdr: 68px; --ar-bar: 60px; --ar-strip: 96px; }
        .ar-tocbar { position: sticky; top: var(--ar-hdr); z-index: 45; height: var(--ar-bar); margin-top: 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
        .ar-tocbar__in { display: flex; gap: 8px; height: 100%; align-items: center; overflow-x: auto; scrollbar-width: none; }
        .ar-tocbar__in::-webkit-scrollbar { display: none; }
        .ar-tocbar a { display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font: var(--fw-ui) var(--fs-small)/var(--lh-small) var(--font-text); white-space: nowrap; }
        .ar-tocbar a:hover { border-color: var(--ink); color: var(--ink); }
        .ar-tocbar a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
        .ar-layout { display: grid; grid-template-columns: minmax(0, var(--article-width)) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 40px; }
        .ar-panel { position: sticky; top: calc(var(--ar-hdr) + var(--ar-bar) + 16px); align-self: start; height: calc(100svh - var(--ar-hdr) - var(--ar-bar) - 40px); min-height: 480px; max-height: 760px; }
        .ar-panel__in { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
        .ar-panel__head { display: grid; gap: 8px; }
        .ar-panel__head b { font: var(--fw-heading) var(--fs-h4)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
        .ar-panel__specs { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
        .ar-pwrap { position: relative; flex: 1; min-height: 200px; }
        .ar-pmap { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r); background: var(--map-paper); }
        #ar-pmap .ar-pmap__base-map { position: absolute; inset: 0; z-index: 0; width: auto; height: auto; border-radius: inherit; overflow: hidden; }
        .ar-pmap__base-map .maplibregl-canvas { outline: none; }
        .ar-pmap__base-map .maplibregl-ctrl-attrib { border-radius: 10px 0 0 0; background: var(--glass-85); color: var(--ink-2); font-size: 10px; }
        .ar-pmap svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
        .ar-pmap__base, .ar-pmap__live { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
        .ar-pmap__base { stroke: var(--quiet); stroke-opacity: 0.5; stroke-width: 3; }
        .ar-pmap__live { stroke: var(--cta); stroke-width: 5; }
        .ar-pmap__marks { position: absolute; inset: 0; pointer-events: none; }
        .ar-mk { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; background: none; pointer-events: auto; }
        .ar-mk span { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); color: var(--ink); font: var(--fw-heading) var(--fs-caption)/1 var(--font-text); }
        .ar-mk.is-on span, .ar-mk:hover span { border-color: var(--cta); background: var(--cta); color: var(--on-accent); }
        .ar-pmap__dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 3px solid var(--surface); border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 2px var(--cta); }
        .ar-pside { position: absolute; inset: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
        .ar-pside > * { pointer-events: auto; }
        .ar-pmap__day { display: flex; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font: var(--fw-button) var(--fs-small)/var(--lh-small) var(--font-text); font-variant-numeric: tabular-nums; }
        .ar-pmap__day span:last-child { color: var(--copy); font-weight: var(--fw-ui); }
        .ar-pmap__open { display: none; }
        .ar-elev { flex: none; }
        .ar-elev__plot { position: relative; }
        .ar-elev svg { display: block; width: 100%; height: 96px; overflow: visible; touch-action: pan-y; }
        .ar-elev__band { fill: var(--orange-a-18); }
        .ar-elev__area { fill: var(--orange-soft); }
        .ar-elev__line { fill: none; stroke: var(--cta); stroke-width: 2; vector-effect: non-scaling-stroke; }
        .ar-elev__split { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
        .ar-elev__pos { stroke: var(--cta); stroke-width: 2; vector-effect: non-scaling-stroke; }
        .ar-elev__cur { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
        .ar-elev__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; font-size: var(--fs-small); }
        .ar-elev__head b { font-weight: var(--fw-heading); }
        .ar-elev__head span { color: var(--quiet); font-variant-numeric: tabular-nums; }
        .ar-elev__axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--quiet); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
        .ar-elev__y { position: absolute; top: 0; left: 4px; color: var(--quiet); font-size: var(--fs-caption); pointer-events: none; }
        .ar-elev__night { position: absolute; top: 0; left: 43.6%; padding-left: 8px; color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-title); pointer-events: none; }
        .ar-elev__tip { position: absolute; top: -8px; padding: 4px 8px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: var(--fs-caption); font-weight: var(--fw-title); white-space: nowrap; pointer-events: none; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
        .ar-panel__acts { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }
        .ar-panel__acts .btn { min-height: 44px; padding: 0 12px; }
        @media (min-width: 1181px) { .ar-panel__acts { flex-wrap: nowrap; } .ar-panel__acts .btn { flex: 1 1 auto; } }
        @media (max-width: 1180px) {
            .ar-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
        }
        @media (max-width: 1023px) {
            .ar-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px; }
            .ar-layout > .ar-main { max-width: var(--article-width); }
            /* the route is a strip under the bars that follows the text; «Развернуть» opens the full panel over the text */
            .ar-panel { order: -1; top: calc(var(--ar-hdr) + var(--ar-bar)); z-index: 44; height: var(--ar-strip); min-height: 0; max-height: none; margin-bottom: 16px; background: var(--bg); }
            .ar-panel__in { position: relative; gap: 12px; height: var(--ar-strip); padding: 8px 0; border: 0; border-radius: 0; background: var(--bg); }
            .ar-panel__head, .ar-elev, .ar-panel__acts { display: none; }
            /* the strip is 96px: the map on the left, the day and «Развернуть» beside it, so nothing covers the route */
            .ar-pwrap { display: grid; flex: none; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; height: 80px; min-height: 0; }
            .ar-pmap { position: relative; inset: auto; min-height: 0; }
            .ar-pside { position: static; flex-direction: column; justify-content: space-between; align-items: stretch; }
            .ar-pmap__day { flex-direction: column; gap: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r); }
            .ar-pmap__open { display: inline-flex; min-height: 44px; padding: 0 8px; }
            .ar-panel.is-open .ar-panel__in { position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: auto; max-height: calc(100svh - var(--ar-hdr) - var(--ar-bar) - 72px); overflow: auto; padding: 8px 0 16px; box-shadow: var(--shadow-lg); }
            .ar-panel.is-open .ar-pwrap { height: min(36svh, 300px); }
            .ar-panel.is-open .ar-panel__head, .ar-panel.is-open .ar-elev, .ar-panel.is-open .ar-panel__acts { display: grid; }
            .ar-panel.is-open .ar-panel__acts { display: flex; }
            .ar-panel.is-open .ar-elev { display: block; }
        }
        @media (max-width: 767px) {
            :root { --ar-hdr: 60px; }
            .ar-story > .ar-tocbar { order: 6; margin-top: 16px; }
            .ar-story > .ar-layout { order: 7; }
        }

        /* the smart photo tile: every photo is shown in full, the rows are of
           equal height and the whole block is capped by rows (expandable) */
        .smart-tile { position: relative; display: block; width: 100%; }
        .smart-tile__item { position: absolute; top: 0; left: 0; display: block; overflow: hidden; border-radius: 0; background: var(--bg-soft, #f3f4f6); }
        .smart-tile__img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity 200ms; }
        .ar-page .post-content .smart-tile img, .smart-tile img { border-radius: 0; }
        .smart-tile__item > a { display: block; width: 100%; height: 100%; }
        .smart-tile__item:hover .smart-tile__img { opacity: 0.92; }
        .smart-tile__item > video, .smart-tile__item > iframe { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b1220; border: 0; }
        .smart-tile__count { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(15, 23, 42, 0.48); color: #fff; font: 800 22px/1 var(--font-text); pointer-events: none; }
        .smart-tile__count small { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; opacity: 0.85; }
        .smart-tile__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; background: var(--card, #fff); color: var(--text, #111827); font: 700 13px/1 var(--font-text); cursor: pointer; transition: border-color 150ms, color 150ms; }
        html[data-theme="dark"] .smart-tile__more { background: #242424; border-color: rgba(255, 255, 255, .2); color: #f2f2ef; }
        .smart-tile__more:hover { border-color: var(--accent, #f97316); color: var(--accent, #f97316); }
        .smart-tile__more .icon { width: 16px; height: 16px; }
