/* The guide article in the relaunch's language (Igor 29 Nov: variant C, «С конечно, но его доработать надо»).
   Canon: docs/product/pages/LANDING-CANON.md. This layer sits after guide-v3-system.css and
   guide-v3-visual-language.css and owns the article's composition, type roles and the product moments.
   Type scale only 12/14/16/20/24/32/44; spacing 4/8/12/16/24/32/48/64; Inter 500 for every heading;
   one card on the first screen (the answer); hairlines elsewhere; product = a real app window on a soft stage.
   Scoped under html:root body.guide-v3.guide-v3.guide-v3.guide-v3 so it wins over the v3 sheets without !important. */

html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
    --g-ink: #121322;
    --g-copy: #34363f;
    --g-muted: #6b6b75;
    --g-line: #e8e8ee;
    --g-soft: #f6f7fb;
    --g-stage: #f4f4f7;
    --g-accent: var(--lr-accent, #443ab8);
    --g-accent-line: color-mix(in srgb, var(--g-accent) 32%, white);
    --v3-rail: 232px;
    --v3-side: 320px;
    --v3-gap: 64px;
    --v3-text: var(--g-ink);
    --v3-muted: var(--g-muted);
    --v3-copy: var(--g-copy);
    --v3-rule: var(--g-line);
    --v3-rule-strong: var(--g-line);
    --v3-mint: var(--g-accent);
    background: #fff;
    color: var(--g-ink);

    .bg-glow, .progress-bar-wrap { display: none; }
    .container { padding-top: 64px; }

    /* ---------- the head: title, lead, the answer card ---------- */
    .article-header { padding: 0; }
    .article-header h1 {
        max-width: 720px;
        margin: 0;
        color: var(--g-ink);
        font-size: 44px;
        line-height: 52px;
        font-weight: 500;
        letter-spacing: -0.022em;
        text-wrap: pretty;
    }
    .article-intro {
        max-width: 720px;
        margin: 16px 0 0;
        color: var(--g-muted);
        font-size: 20px;
        line-height: 32px;
        letter-spacing: -0.005em;
    }
    .tldr-box {
        position: static;
        inset: auto;
        width: auto;
        max-width: 720px;
        margin: 32px 0 0;
        padding: 24px 32px 32px;
        border: 1px solid var(--g-line);
        border-radius: 16px;
        background: #fff;
        box-shadow: none;
    }
    .tldr-box .tldr-label {
        display: block;
        margin: 0 0 8px;
        padding: 0;
        border: 0;
        color: var(--g-ink);
        font-size: 20px;
        line-height: 28px;
        font-weight: 500;
        letter-spacing: -0.01em;
    }
    .tldr-box .tldr-label :is(svg, i) { display: none; }
    .tldr-box .tldr-text { margin: 0; color: var(--g-copy); font-size: 16px; line-height: 28px; }

    /* ---------- the contents rail ---------- */
    .back-link {
        margin: 0 0 24px;
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: 0;
    }
    .back-link:hover { color: var(--g-accent); }
    .back-link svg { width: 16px; height: 16px; }
    .article-meta { gap: 4px 12px; margin: 0 0 24px; padding: 0 0 24px; border-bottom: 1px solid var(--g-line); }
    .category-badge { color: var(--g-ink); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
    .meta-item { color: var(--g-muted); font-size: 14px; line-height: 20px; letter-spacing: 0; }
    .toc-title svg { display: none; }
    .meta-item { display: inline-flex; align-items: center; gap: 8px; }
    .meta-item svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; color: var(--g-muted); stroke-width: 1.5; }
    .toc-title { margin: 0 0 8px; color: var(--g-ink); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
    .guide-v3-toc-chapter { border-color: var(--g-line); }
    .guide-v3-toc-chapter:last-child, .guide-v3-toc-chapters { border-bottom: 0; }
    .guide-v3-toc-chapter:last-child .guide-v3-toc-chapter-list { border-bottom: 0; }
    .guide-v3-toc-chapter-toggle { padding-block: 12px; color: var(--g-ink); font-size: 14px; line-height: 20px; font-weight: 500; }
    .guide-v3-toc-chapter-number, .guide-v3-toc-chapter-range { color: var(--g-muted); font-size: 12px; line-height: 20px; font-weight: 400; }
    .guide-v3-toc-chapter-list a { padding-block: 8px; color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .guide-v3-toc-chapter-list a > span:first-child { font-size: 12px; }
    .guide-v3-toc-mobile-label { font-size: 14px; line-height: 20px; }
    .guide-v3-toc-mobile-count { color: var(--g-muted); font-size: 12px; line-height: 16px; }
    .guide-v3-toc-chapter-list a:hover { color: var(--g-ink); }
    .guide-v3-toc-chapter-list a:is(.active, .is-active, [aria-current]) { color: var(--g-accent); }

    /* ---------- the read ---------- */
    .article-content { color: var(--g-copy); }
    .article-content :is(p, li) { color: var(--g-copy); font-size: 16px; line-height: 28px; }
    .article-content :is(strong, b) { color: var(--g-ink); font-weight: 600; }
    .article-content h2 {
        max-width: 720px;
        margin: 48px 0 16px; /* Igor 30 Nov «под секцию смотри дыры»: 48 before a heading, not 64 */
        color: var(--g-ink);
        font-size: 32px;
        line-height: 40px;
        font-weight: 500;
        letter-spacing: -0.018em;
        text-wrap: pretty;
    }
    .article-content > :first-child, .article-content > :first-child > h2:first-child { margin-top: 0; }
    .article-content h3 { margin: 32px 0 8px; color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
    .article-content h4 { margin: 24px 0 8px; color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 600; }
    .article-content a:not([class]) {
        color: var(--g-accent);
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 4px;
        text-decoration-color: var(--g-accent-line);
    }
    .article-content a:not([class]):hover { text-decoration-color: currentColor; }
    .article-content :is(ul, ol) { margin-block: 16px 24px; }
    .article-content li + li { margin-top: 8px; }

    /* A section's small label (CMS: "Direct answer", "What Apex sells") sits right on its heading, in grey. */
    .article-content :is(.section-label, .answer-label, .eyebrow) {
        display: block;
        margin: 64px 0 8px;
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: 0;
    }
    .article-content > section > :is(.section-label, .answer-label, .eyebrow):first-child { margin-top: 64px; }
    .article-content :is(.section-label, .answer-label, .eyebrow) + :is(h2, h3) { margin-top: 0; }

    /* Tables: hairlines, sentence-case heads, the first column names the row; up to four columns wrap inside the
       read, wider ones scroll in their own frame. */
    .article-content table { font-variant-numeric: tabular-nums; }

    .article-content table th {
        padding: 12px 16px 12px 0;
        color: var(--g-muted);
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        letter-spacing: 0;
        border-color: var(--g-line);
        background: transparent;
    }
    .article-content table td {
        padding: 12px 16px 12px 0;
        color: var(--g-copy);
        font-size: 14px;
        line-height: 20px;
        border-color: var(--g-line);
    }
    .article-content table :is(td:first-child, tbody th) { color: var(--g-ink); font-size: 14px; line-height: 20px; font-weight: 500; }
    .article-content table :is(th, td):last-child { padding-right: 0; }

    /* Callouts and boxes: one soft surface, no coloured bar, no frame. */
    .article-content :is(.info-box, .guide-v3-callout, .highlight-box, .callout, .warning-box, .tip, .note-box, .formula-box, .verdict-box, .checklist-box, .cta-box) {
        margin: 24px 0;
        padding: 24px;
        border: 0;
        border-radius: 12px;
        background: var(--g-soft);
        box-shadow: none;
    }
    .article-content :is(.info-box, .guide-v3-callout, .highlight-box, .callout, .warning-box, .tip, .note-box)::before { display: none; }
    .article-content :is(.info-box, .guide-v3-callout, .highlight-box, .callout) > :last-child { margin-bottom: 0; }
    .article-content :is(.info-box, .guide-v3-callout, .highlight-box, .callout) > :first-child { margin-top: 0; }

    /* The reading map: three checkpoints as one hairline row. */
    .article-content .guide-v3-editorial-snapshot { margin: 0 0 48px; padding: 0; border: 0; background: none; }
    .article-content .guide-v3-editorial-snapshot > header { display: block; padding: 0 0 16px; border: 0; }
    .article-content .guide-v3-editorial-snapshot-eyebrow { display: none; }
    .article-content .guide-v3-editorial-snapshot > header h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
    .article-content .guide-v3-editorial-snapshot > header p { margin: 4px 0 0; color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .article-content .guide-v3-editorial-snapshot-steps { margin: 0; border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); }
    .article-content .guide-v3-editorial-snapshot-steps li { margin: 0; border-color: var(--g-line); }
    .article-content .guide-v3-editorial-snapshot-steps a { display: block; padding: 16px 24px 24px 0; text-decoration: none; color: inherit; }
    .article-content .guide-v3-editorial-snapshot-steps li + li a { padding-left: 24px; }
    .article-content :is(.guide-v3-editorial-snapshot-step, .guide-v3-editorial-snapshot-label) {
        color: var(--g-muted);
        font-size: 12px;
        line-height: 16px;
        font-weight: 400;
        letter-spacing: 0;
    }
    .article-content .guide-v3-editorial-snapshot-label { margin-left: 8px; }
    .article-content .guide-v3-editorial-snapshot-steps strong { display: block; margin-top: 8px; color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
    .article-content .guide-v3-editorial-snapshot-steps a:hover strong { color: var(--g-accent); }

    /* Every heading in the article family is Inter 500 (canon §2: nothing heavy below the landing hero). */
    .guide-v3-reading-stage :is(h2, h3, h4, h5) { font-weight: 500; }
    .guide-v3-reading-stage .article-content h4 { font-weight: 600; }
    .guide-catalog-header h2 { margin: 0 0 8px; font-size: 32px; line-height: 40px; letter-spacing: -0.018em; }
    .guide-catalog-header p { color: var(--g-muted); font-size: 16px; line-height: 24px; }

    /* Catalogue cards (prop, provider, exchange): the site's pill buttons. */
    :is(.guide-catalog, .guide-provider-catalog, .guide-exchange-catalog) :is(.guide-catalog-cta, .guide-provider-workflow-primary, .guide-exchange-partner-cta, a[class*="primary"]) {
        min-height: 48px;
        border-radius: 999px;
        font-size: 16px;
        font-weight: 500;
    }

    /* ---------- the side column: the product card, then quiet links ---------- */
    .sidebar { border: 0; }
    .sidebar-card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
    .sidebar-card { margin-top: 0; }
    .sidebar .sidebar-tsb ~ .sidebar-card { margin-top: 32px; }
    @media (min-width: 1180px) { html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb ~ .sidebar-card { margin-top: 0; } }
    .sidebar :is(.sidebar-title, .sidebar-tsb-label, .sidebar-tsb-type) {
        margin: 0;
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: 0;
    }
    /* The card speaks with its title and window; the module names above it go (Igor 29 Nov, «текст там крутой?» → «делай лучше»). */
    .sidebar .sidebar-tsb :is(.sidebar-tsb-label, .sidebar-tsb-type) { display: none; }
    /* Whose card it is: the product's own mark and name, as the header signs it (Igor 29 Nov «не понятно… что это продукт»). */
    .sidebar .sidebar-tsb-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
    /* Our lettermark itself, in the accent (Igor 29 Nov «просто наше лого и фиолетовым и крупнее»). */
    .sidebar .sidebar-tsb-mark {
        flex: 0 0 44px;
        width: 44px;
        height: 13px;
        background: var(--g-accent);
        -webkit-mask: url('/assets/tsb_logo.svg') no-repeat left center / contain;
        mask: url('/assets/tsb_logo.svg') no-repeat left center / contain;
    }
    /* Igor 30 Nov: the mark and "Free trading journal" only, smaller but readable. */
    .sidebar .sidebar-tsb-brand small { padding-left: 10px; border-left: 1px solid color-mix(in srgb, var(--g-accent) 20%, white); color: var(--g-muted); font-size: 12px; line-height: 16px; font-weight: 500; }
    /* The window leads the card, the words and the button close it (Igor 29 Nov «почему эти штуки не перенести над
       текстом?»); markup order unchanged. */
    .sidebar .sidebar-tsb {
        display: flex;
        flex-direction: column;
        padding: 0 24px 24px;
        overflow: hidden;
        border: 1px solid var(--g-line);
        border-radius: 16px;
        background: #fff;
    }
    .sidebar .sidebar-tsb h4 { margin: 8px 0 8px; color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
    .sidebar .sidebar-tsb p { margin: 0; color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .sidebar .sidebar-tsb > a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        margin: 24px 0 0;
        padding: 0 24px;
        border: 0;
        border-radius: 999px;
        background: var(--g-accent);
        color: #fff;
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
        text-decoration: none;
        box-shadow: none;
    }
    .sidebar .sidebar-tsb > a:hover { background: var(--lr-accent-hover, #3a31a0); }
    .sidebar .sidebar-tsb-media {
        width: auto;
        aspect-ratio: auto;
        height: auto;
        order: -1;
        margin: 0 -24px 24px;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-bottom: 1px solid var(--g-line);
        border-radius: 0;
        background: var(--g-stage);
    }
    .sidebar .sidebar-tsb-media > img { display: block; width: 100%; height: auto; }
    .sidebar .sidebar-context h4 { margin: 8px 0 4px; color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
    .sidebar .sidebar-context p { margin: 0 0 16px; color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .sidebar .sidebar-context-links { border-top: 1px solid var(--g-line); }
    .sidebar .sidebar-context-links a {
        padding: 12px 0;
        border-color: var(--g-line);
        color: var(--g-ink);
        font-size: 14px;
        line-height: 20px;
    }
    .sidebar .sidebar-context-links a:hover { color: var(--g-accent); }

    /* The stage: the chapter block's soft tint holding one real window (guides/_product_window.php). */
    .g-stage { display: block; }
    .g-stage .lr-bstage { margin: 0; border-radius: 0; }
    .sidebar .g-stage .lr-bstage { padding: 12px 12px 0; }
    .sidebar .sidebar-tsb-media { margin-bottom: 24px !important; }

    /* ---------- the editorial box ---------- */
    .author-box { margin: 64px 0 0; padding: 32px 0; border-color: var(--g-line); }
    .author-avatar { width: 48px; height: 48px; flex-basis: 48px; border: 0; border-radius: 12px; background: #f4f5f6; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); object-fit: contain; padding: 14px 8px; }
    /* The editorial team's mark: TSB's lettermark in ink on a neutral tile, as in the header (not white on black). */
    .author-avatar[src*="icon-192"] { display: none; }
    /* The editorial mark: TSB's lettermark in the accent, as on the side card; the role line under the name repeats the
       name and goes (Igor 29 Nov «а нафиг тут повторять одно и тоже?»). */
    .author-identity::before {
        content: "";
        flex: 0 0 64px;
        width: 64px;
        height: 19px;
        background: var(--g-accent);
        -webkit-mask: url('/assets/tsb_logo.svg') no-repeat left center / contain;
        mask: url('/assets/tsb_logo.svg') no-repeat left center / contain;
    }
    .author-role { display: none; }
    .author-label, .author-editorial-note > span {
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: 0;
    }
    .author-editorial-note > span svg { width: 16px; height: 16px; }
    .author-name { margin-top: 4px; color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
    .author-role { color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .author-editorial-note p { margin: 8px 0 0; color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .author-actions { gap: 24px; margin-top: 12px; }
    .author-actions a { color: var(--g-accent); font-size: 14px; line-height: 20px; font-weight: 500; }

    /* ---------- the final invitation: one chapter block ---------- */
    .final-cta { margin: 48px 0 0; }
    .final-cta .product-cta {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--g-line);
        border-radius: 16px;
        background: #fff;
        box-shadow: none;
    }
    .final-cta .product-cta::before, .final-cta .product-cta::after { display: none; }
    .final-cta .product-cta-copy { align-self: center; padding: 48px; }
    .product-cta-kicker, .product-cta-identity {
        display: block;
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: 0;
    }
    .product-cta-kicker { margin: 0; }
    .product-cta-identity { margin: 4px 0 0; font-weight: 400; }
    .product-cta-kicker :is(svg, i) { display: none; }
    .final-cta .product-cta-title {
        max-width: none;
        margin: 16px 0 0;
        color: var(--g-ink);
        font-size: 32px;
        line-height: 40px;
        font-weight: 500;
        letter-spacing: -0.018em;
        text-wrap: balance;
    }
    .final-cta .product-cta-text { max-width: none; margin: 12px 0 0; color: var(--g-muted); font-size: 16px; line-height: 24px; }
    .product-cta-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        margin-top: 32px;
        padding: 0 24px;
        border: 0;
        border-radius: 999px;
        background: var(--g-accent);
        color: #fff;
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
        box-shadow: none;
    }
    .product-cta-button:hover { background: var(--lr-accent-hover, #3a31a0); }
    .final-cta .product-cta-media {
        display: block;
        align-self: stretch;
        aspect-ratio: auto;
        height: auto;
        min-height: 0;
        max-height: none;
        margin: 0;
        overflow: hidden;
        border: 0;
        border-left: 1px solid var(--g-line);
        border-radius: 0;
        background: var(--g-stage);
        box-shadow: none;
    }
    .final-cta .product-cta-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .final-cta .g-stage, .final-cta .g-stage .lr-bstage { height: 100%; }
    .final-cta .g-stage .lr-bstage { display: flex; align-items: center; justify-content: center; padding: 48px; }
    .final-cta .g-stage .lr-bpanel { width: 100%; max-width: 480px; }

    /* The side card on one light indigo field, as the landing's stages hold their windows (Igor 29 Nov «почему на один
       фиолетовый фон не поставить?», then «может легкий фон тут лучше?»): window on top, ink words, the indigo pill. */
    .sidebar .sidebar-tsb { border: 0; background: color-mix(in srgb, var(--g-accent) 8%, white); color: var(--g-ink); }
    .sidebar .sidebar-tsb :is(.sidebar-tsb-label, .sidebar-tsb-type) { color: var(--g-muted); }
    .sidebar .sidebar-tsb h4 { color: var(--g-ink); }
    .sidebar .sidebar-tsb p { color: var(--g-copy); }
    .sidebar .sidebar-tsb > a { background: var(--g-accent); color: #fff; }
    .sidebar .sidebar-tsb > a:hover { background: var(--lr-accent-hover, #3a31a0); color: #fff; }
    .sidebar .sidebar-tsb-media, .sidebar .sidebar-tsb-media .g-stage { border-bottom: 0; background: transparent; }
    .sidebar .sidebar-tsb-media .lr-bstage { background: transparent; }
    .sidebar .sidebar-tsb-media .lr-bstage::before, .sidebar .sidebar-tsb-media .lr-bstage::after { display: none; }
    .sidebar .sidebar-tsb-media .lr-vn { box-shadow: 0 16px 32px rgb(68 58 184 / .18); }
    /* The pill's glow is not cut at the window's edge (no visible band on the light field). */
    .sidebar .sidebar-tsb-media, .sidebar .sidebar-tsb-media .g-stage, .sidebar .sidebar-tsb-media .lr-bstage { overflow: visible; }

    /* ---------- FAQ and related, on the article's columns ---------- */
    .faq-section, .related-section { margin: 64px 0 0; padding: 0; border: 0; row-gap: 0; }
    .related-section { padding-bottom: 64px; }
    .faq-header h2, .related-header h2 {
        max-width: none;
        margin: 0;
        color: var(--g-ink);
        font-size: 32px;
        line-height: 40px;
        font-weight: 500;
        letter-spacing: -0.018em;
    }
    .faq-header p, .related-header p { max-width: 760px; margin: 8px 0 0; color: var(--g-muted); font-size: 16px; line-height: 24px; }
    /* No lone last words anywhere in the template's short texts (Igor 29 Nov «некрасиво перенесено», «тоже»). */
    :is(.guide-v3-reading-stage, .faq-section, .related-section) :is(p, h2, h3, h4, li, .author-name, .tldr-text) { text-wrap: pretty; }
    .faq-list { margin-top: 24px; }
    .faq-item { border-color: var(--g-line); }
    .faq-question { padding-block: 20px; color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
    .faq-answer, .faq-answer p { color: var(--g-copy); font-size: 16px; line-height: 28px; }
    .related-kicker, .related-card-category {
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: 0;
    }
    .related-header { margin: 0 0 24px; }
    .related-topic-link { color: var(--g-accent); font-size: 16px; line-height: 24px; font-weight: 500; }
    .related-grid { gap: 16px; border: 0; }
    .related-card {
        padding: 24px;
        border: 1px solid var(--g-line);
        border-radius: 16px;
        background: #fff;
        transition: border-color .15s ease;
    }
    .related-card:hover { border-color: var(--g-accent-line); }
    .related-card h3 { margin: 12px 0 0; color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
    .related-card p { margin: 8px 0 0; color: var(--g-muted); font-size: 14px; line-height: 20px; }
}

/* ---------- desktop: three columns from the answer down (rail · read · side); the side starts beside the answer ---------- */
@media (min-width: 1180px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
        .guide-v3-reading-stage {
            grid-template-columns: var(--v3-rail) minmax(0, 1fr) var(--v3-side);
            column-gap: var(--v3-gap);
        }
        /* Rows by role, so every template variant (editorial, catalog comparison, review, prop bridge) lands on the
           same lines: 1 title · 2 answer · 3 catalogue · 4 v2 section · 5 the read · 6 editorial box · 7 prop bridge · 8 final. */
        .article-header { grid-column: 2; grid-row: 1; }
        .tldr-box { grid-column: 2; grid-row: 2; align-self: start; }
        .guide-v3-catalog-stack { grid-column: 2 / -1; grid-row: 3; margin-top: 48px; margin-bottom: 16px; } /* 64 to the read (Igor 30 Nov «под ним дырка») */
        .guide-v3-reading-stage > .guide-v2-section { grid-column: 2 / -1; grid-row: 4; margin-bottom: 0; }
        .guide-v3-reading-stage > .guide-v2-section > :last-child { margin-bottom: 0; }
        .toc { grid-column: 1; grid-row: 1 / span 8; top: 96px; margin-top: 0; }
        .page-layout { display: contents; }
        .article-body { grid-column: 2; grid-row: 5; margin-top: 48px; }
        /* The side column starts on the title's line (Igor 29 Nov «так и надо что там справа пусто?»). */
        /* The side column fills its rows; inside it the quiet links come first and the product card sticks while the
           read goes on, then stops with the read's end (Igor 29 Nov «пусть липнет, просто умеет вовремя остановиться»). */
        .sidebar {
            grid-column: 3;
            grid-row: 1 / span 5;
            position: static;
            align-self: stretch;
            display: flex;
            flex-direction: column;
            gap: 32px;
            margin: 0;
        }
        .sidebar > * { order: 0; margin: 0; }
        .sidebar > .sidebar-tsb { order: 1; position: sticky; top: 96px; }
        .author-box { grid-column: 2 / -1; grid-row: 6; }
        .prop-comparison-bridge { grid-column: 2 / -1; grid-row: 7; }
        .final-cta { grid-column: 2 / -1; grid-row: 8; }
        /* With a catalogue under the answer the side column starts beside the read, and the answer takes the full
           width (its label on the left) so no hole opens beside it. */
        /* With a full-width catalogue under the answer, the side column holds the first screen only (title and answer),
           then the catalogue and the read take the page. */
        .guide-v3-reading-stage:has(> .guide-v3-catalog-stack, > .guide-v2-section) {
            .sidebar { grid-row: 5; margin-top: 48px; }
            .sidebar > .sidebar-tsb { order: 1; }
            /* A long answer reads across the page under the title, its label on the left (a tall one beside the title
               opened a hole under the intro, Igor 30 Nov «дыры»). */
            .article-header { grid-column: 2 / -1; }
            .article-header :is(h1, .article-intro) { max-width: 720px; }
            .tldr-box { grid-column: 2 / -1; display: grid; grid-template-columns: 232px minmax(0, 1fr); column-gap: 32px; max-width: none; }
            .tldr-box .tldr-label { margin: 0; }
            .tldr-box .tldr-text { max-width: 720px; }
        }
        /* A short answer stands beside the title on a wide screen, where the side card stands on other guides (Igor 30 Nov
           «пусто справа и quick блок не странные?»). */
        @media (min-width: 1400px) {
            .guide-v3-reading-stage:has(> .guide-v3-catalog-stack, > .guide-v2-section):has(> .tldr-box--short) {
                .article-header { grid-column: 2; }
                .tldr-box { grid-column: 3; grid-row: 1; align-self: start; display: block; margin-top: 0; padding: 24px; }
                .tldr-box .tldr-label { margin: 0 0 8px; }
                .tldr-box .tldr-text { max-width: none; font-size: 14px; line-height: 20px; }
            }
        }
        .faq-section {
            display: grid;
            grid-template-columns: var(--v3-rail) minmax(0, 1fr) var(--v3-side);
            column-gap: var(--v3-gap);
        }
        /* FAQ: the heading on the left, the questions on the read's line (Igor «тоже пустот много»). */
        .faq-section { grid-template-columns: var(--v3-rail) 360px minmax(0, 1fr); }
        .faq-section > .faq-header { grid-column: 2; }
        .faq-section > .faq-list { grid-column: 3; margin-top: 0; }
        .related-section {
            display: grid;
            grid-template-columns: var(--v3-rail) minmax(0, 1fr);
            column-gap: var(--v3-gap);
        }
        .related-section > * { grid-column: 2; }
        .related-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 24px; }
        .related-header > * { grid-column: 1; }
        .related-header > .related-topic-link { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
    }
}
@media (min-width: 761px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
        .article-content :is(.guide-v3-data-table, .guide-v3-data-table--wide, .guide-v3-data-table--prose-heavy, .guide-v3-data-table[data-v3-columns="4"]) { min-width: 0; width: 100%; }
        .article-content .guide-v3-data-table:is([data-v3-columns="5"], [data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) { min-width: 880px; }
    }
}
@media (min-width: 1180px) and (max-width: 1439px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 { --v3-rail: 200px; --v3-side: 288px; --v3-gap: 48px; }
}

/* ---------- narrow and phone: one column in the v3 order ---------- */
@media (max-width: 1179px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
        .container { padding-top: 32px; }
        .tldr-box { margin: 24px 0 32px; }
        .toc { margin: 0 0 32px; }
        .sidebar { padding: 32px 0; border-top: 1px solid var(--g-line); }
        .final-cta .product-cta { grid-template-columns: 1fr; }
        .final-cta .product-cta-media { border-left: 0; border-top: 1px solid var(--g-line); }
        .faq-section, .related-section { margin-top: 64px; }
    }
}
@media (max-width: 760px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
        .article-header h1 { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; }
        .article-intro { font-size: 16px; line-height: 28px; }
        .tldr-box { padding: 20px 20px 24px; }
        .article-content h2 { margin-top: 48px; font-size: 24px; line-height: 32px; }
        .article-content .guide-v3-editorial-snapshot-steps li + li a { padding-left: 0; }
        .guide-catalog-header h2 { font-size: 24px; line-height: 32px; }
        .author-box { margin-top: 32px; }
        .sidebar { grid-template-columns: 1fr; }
        .final-cta .product-cta-copy { padding: 24px; }
        .final-cta .product-cta-title { font-size: 24px; line-height: 32px; }
        .final-cta .g-stage .lr-bstage { padding: 16px; }
        .faq-header h2, .related-header h2 { font-size: 24px; line-height: 32px; }
    }
}

/* ---------- Comparison tables (guides/_comparison_table.php; Igor 29 Nov, cards variant C) ----------
   Programs are columns: logo, name, one outline action, sources under it. Facts are rows with one label.
   Money facts (first row group) read at 20/28, details at 14/20. A sponsored or first-party column keeps a
   soft tint and its label; TSB's own action is the block's only indigo button. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
    .guide-catalog:has(.g-cmp) { margin: 0; padding: 0; border: 0; background: none; }
    .guide-catalog-header > small {
        display: inline-flex;
        margin-top: 12px;
        padding: 4px 12px;
        border-radius: 999px;
        background: var(--g-soft);
        color: var(--g-copy);
        font-size: 12px;
        line-height: 16px;
        font-weight: 500;
        letter-spacing: 0;
    }
    .g-cmp {
        margin: 24px 0 0;
        overflow: hidden;
        border: 1px solid var(--g-line);
        border-radius: 16px;
        background: #fff;
    }
    .g-cmp-table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
    .g-cmp-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .g-cmp-table col.g-cmp-col-label { width: 168px; }
    .g-cmp--n4 .g-cmp-table col.g-cmp-col-label, .g-cmp--n5 .g-cmp-table col.g-cmp-col-label { width: 136px; }
    .g-cmp-table col:is(.is-sponsored, .is-ours) { background: var(--g-soft); }
    .g-cmp-table :is(th, td) { padding: 0; border: 0; background: transparent; text-align: left; vertical-align: top; }

    /* Column heads */
    .g-cmp-table .g-cmp-corner { padding: 24px 16px 24px 24px; vertical-align: top; border-bottom: 1px solid var(--g-line); }
    .g-cmp-corner span { color: var(--g-muted); font-size: 14px; line-height: 20px; font-weight: 500; }
    .g-cmp-table thead th { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--g-line); font-weight: 400; }
    .g-cmp-table thead th:is(.is-sponsored, .is-ours) { padding-left: 24px; }
    .g-cmp-table thead th:is(.is-sponsored, .is-ours) + th { padding-left: 24px; }
    .g-cmp-head { display: flex; flex-direction: column; height: 100%; min-width: 0; }
    .g-cmp-tag {
        align-self: flex-start;
        height: 20px;
        margin: 0 0 12px;
        padding: 0 8px;
        border: 1px solid var(--g-line);
        border-radius: 999px;
        background: #fff;
        color: var(--g-muted);
        font-size: 12px;
        line-height: 18px;
        font-style: normal;
        font-weight: 500;
        white-space: nowrap;
    }
    .is-ours .g-cmp-tag { border-color: var(--g-accent-line); color: var(--g-accent); }
    .g-cmp-tag--space { border-color: transparent; background: none; }
    .g-cmp-id, .g-cmp-id .guide-catalog-profile-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--g-ink); text-decoration: none; }
    /* Logos: the header's tile language (tsbSiteChromeLogo, assets/site-chrome.css), TSB in ink on a neutral tile. */
    .g-cmp .lr-nav-tile { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 12px; background: #fff; }
    .g-cmp .lr-nav-tile img { width: 32px; height: 32px; max-width: none; object-fit: contain; }
    .g-cmp .lr-nav-tile[data-size="30"] img { width: 30px; height: 30px; }
    .g-cmp .lr-nav-tile[data-size="28"] img { width: 28px; height: 28px; }
    .g-cmp .lr-nav-tile[data-size="26"] img { width: 26px; height: 26px; }
    .g-cmp .lr-nav-tile[data-size="24"] img { width: 24px; height: 24px; }
    .g-cmp .lr-nav-tile[data-size="22"] img { width: 22px; height: 22px; }
    .g-cmp .lr-nav-tile[data-surface="tile"] img { width: 100%; height: 100%; object-fit: cover; }
    .g-cmp .lr-nav-tile[data-surface="dark"] { background: #0b0d10; }
    .g-cmp .lr-nav-tile[data-surface="brand-yellow"] { background: #f3ba2f; }
    .g-cmp .lr-nav-tile[data-surface="brand-purple"] { background: #5741d9; }
    .g-cmp .lr-nav-tile[data-surface="brand-yellow"] img { filter: brightness(0); }
    .g-cmp .lr-nav-tile[data-surface="brand-purple"] img { filter: brightness(0) invert(1); }
    .g-cmp .lr-nav-tile:is([data-surface="adaptive"], [data-surface="neutral"], [data-surface="light"]) { background: #f4f5f6; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08); }
    .g-cmp .lr-nav-tile[data-surface="light"] { background: #fff; }
    .g-cmp .lr-nav-tile[data-surface="transparent"] { background: transparent; }
    .g-cmp .g-cmp-tsb-tile img { width: 30px; height: auto; filter: brightness(0); }
    .g-cmp-id > span:not(.guide-catalog-logo), .g-cmp-id .guide-catalog-profile-link > span:not(.guide-catalog-logo) { display: grid; min-width: 0; }
    .g-cmp-id strong { color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
    .g-cmp-id small { color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .g-cmp-id .guide-catalog-profile-link:hover strong { color: var(--g-accent); }
    .g-cmp-lead { margin-top: 12px; color: var(--g-copy); font-size: 14px; line-height: 20px; }
    .g-cmp-lead .guide-exchange-sponsored-fit { margin: 0; padding: 0; border: 0; background: none; }
    .g-cmp-lead .guide-exchange-sponsored-lead { display: block; color: var(--g-ink); font-size: 14px; line-height: 20px; font-weight: 500; }
    .g-cmp-lead ul { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; padding: 0; list-style: none; }
    .g-cmp-lead li { margin: 0; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--g-copy); font-size: 12px; line-height: 16px; }

    /* One action per program: an outline pill, its sources as quiet links under it. */
    .g-cmp-actions { margin-top: auto; padding-top: 16px; }
    .g-cmp-actions .guide-catalog-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
    }
    .g-cmp-actions .guide-catalog-actions > a {
        order: 2;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 0;
        padding: 0;
        border: 0;
        background: none;
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
        text-decoration: none;
        box-shadow: none;
    }
    .g-cmp-actions .guide-catalog-actions > a:hover { color: var(--g-accent); }
    .g-cmp-actions .guide-catalog-actions > a svg { width: 12px; height: 12px; }
    .g-cmp-actions .guide-catalog-actions > a.guide-catalog-cta {
        order: 1;
        flex: 1 0 100%;
        justify-content: center;
        min-height: 40px;
        margin-bottom: 8px;
        padding: 0 16px;
        border: 1px solid var(--g-line);
        border-radius: 999px;
        background: #fff;
        color: var(--g-ink);
        font-weight: 500;
        text-align: center;
        white-space: normal;
        padding-block: 8px;
        line-height: 20px;
    }
    .g-cmp-actions .guide-catalog-actions > a.guide-catalog-cta:hover { border-color: var(--g-accent-line); color: var(--g-accent); }
    .g-cmp:is(.g-cmp--n2, .g-cmp--n3, .g-cmp--n4) .g-cmp-actions .guide-catalog-actions > a.guide-catalog-cta { padding-inline: 12px; white-space: nowrap; }
    .is-ours .g-cmp-actions .guide-catalog-actions > a.guide-catalog-cta {
        min-height: 48px;
        border-color: var(--g-accent);
        background: var(--g-accent);
        color: #fff;
        font-size: 16px;
    }
    .g-cmp-actions .guide-catalog-conversion { order: 0; flex: 1 0 100%; margin: 0 0 12px; color: var(--g-copy); font-size: 14px; line-height: 20px; }
    .g-cmp-actions .guide-catalog-conversion strong { display: block; color: var(--g-ink); font-weight: 500; }

    /* Rows */
    .g-cmp-table tbody th {
        padding: 16px 16px 16px 24px;
        border-top: 1px solid var(--g-line);
        color: var(--g-muted);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        vertical-align: baseline;
    }
    .g-cmp-table tbody td {
        padding: 16px 24px 16px 0;
        border-top: 1px solid var(--g-line);
        color: var(--g-copy);
        font-size: 14px;
        line-height: 20px;
        vertical-align: baseline;
        overflow-wrap: break-word;
    }
    .g-cmp-table tbody:first-of-type tr:first-child :is(th, td) { border-top: 0; }
    .g-cmp-table .g-cmp-key td { color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
    .g-cmp--n4 .g-cmp-table .g-cmp-key td, .g-cmp--n5 .g-cmp-table .g-cmp-key td { font-size: 16px; line-height: 24px; }
    .g-cmp-empty { color: var(--g-muted); }
    .g-cmp-sources { display: flex; flex-wrap: wrap; gap: 4px 16px; }
    .g-cmp .g-cmp-sources > a { display: inline-flex; margin: 0; min-height: 0; box-shadow: none; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--g-muted); font-size: 14px; line-height: 20px; font-weight: 400; text-decoration: none; }
    .g-cmp .g-cmp-sources > a:hover { color: var(--g-accent); }
    .g-cmp-sources a svg { width: 12px; height: 12px; }
    .g-cmp[data-cmp-family="exchange"] .g-cmp-table .g-cmp-key td { font-size: 16px; line-height: 24px; }
    .g-cmp-lead li::before, .g-cmp-lead li::marker { content: none; display: none; }
    /* Journals: the offerings list reads as lines, the scope as a quiet note, the details stay a closed disclosure. */
    .g-cmp[data-cmp-family="provider"] .g-cmp-table .g-cmp-key td { font-size: 16px; line-height: 24px; }
    .g-cmp .guide-provider-offering { display: block; color: var(--g-copy); font-size: 14px; line-height: 20px; font-weight: 400; }
    .g-cmp .guide-provider-offering strong { color: var(--g-ink); font-weight: 500; }
    .g-cmp .guide-provider-offering + .guide-provider-offering { margin-top: 4px; }
    .g-cmp .guide-journal-price-primary { color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; }
    .g-cmp-lead :is(.guide-provider-scope, .guide-provider-workflow-fit) { margin: 0; color: var(--g-copy); font-size: 14px; line-height: 20px; }
    .g-cmp-lead .guide-provider-scope strong { color: var(--g-muted); font-weight: 500; }
    .g-cmp-lead .guide-provider-advantages { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; padding: 0; border: 0; list-style: none; }
    .g-cmp-lead .guide-provider-advantages li::before { content: none; display: none; }
    .g-cmp-lead .guide-provider-advantages li { margin: 0; border: 0; box-shadow: none; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--g-accent); font-size: 12px; line-height: 16px; font-weight: 500; }
    .g-cmp .guide-provider-workflow-details { margin: 0; border: 0; background: none; }
    .g-cmp .guide-provider-workflow-details > summary { display: inline-flex; gap: 8px; align-items: center; padding: 0; border: 0; color: var(--g-accent); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; list-style: none; }
    .g-cmp .guide-provider-workflow-details > summary::-webkit-details-marker { display: none; }
    .g-cmp .guide-provider-workflow-details > div { margin-top: 12px; }
    .g-cmp .guide-provider-workflow-details dl { display: grid; gap: 8px; margin: 0; }
    .g-cmp .guide-provider-workflow-details dl > div { display: grid; gap: 2px; }
    .g-cmp .guide-provider-workflow-details dt { color: var(--g-muted); font-size: 12px; line-height: 16px; font-weight: 500; }
    .g-cmp .guide-provider-workflow-details dd { margin: 0; color: var(--g-copy); font-size: 14px; line-height: 20px; }

    /* Five programs and more: the table scrolls inside its frame, the labels stay put. */
    .g-cmp:is(.g-cmp--n5, .g-cmp--n6, .g-cmp--n7, .g-cmp--n8) { overflow-x: auto; overscroll-behavior-x: contain; }
    .g-cmp--n5 .g-cmp-table { min-width: 1336px; }
    .g-cmp--n6 .g-cmp-table { min-width: 1576px; }
    .g-cmp--n7 .g-cmp-table { min-width: 1816px; }
    .g-cmp--n8 .g-cmp-table { min-width: 2056px; }
    .g-cmp:is(.g-cmp--n5, .g-cmp--n6, .g-cmp--n7, .g-cmp--n8) :is(.g-cmp-corner, tbody th) { position: sticky; left: 0; z-index: 1; background: #fff; }
    .guide-catalog + .guide-catalog, .guide-catalog + * + .guide-catalog { margin-top: 64px; }

    .guide-catalog:has(.g-cmp) + .guide-catalog-note, .guide-catalog:has(.g-cmp) > .guide-catalog-note { margin-top: 12px; color: var(--g-muted); font-size: 14px; line-height: 20px; }
}

@media (min-width: 1100px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
    /* A tinted column gets its own inner padding so its values don't touch the tint's edge. */
        .g-cmp-table tr > :is(td, th):last-child { padding-right: 24px; }
        .g-cmp:has(thead th:nth-child(2):is(.is-sponsored, .is-ours)) tbody td:nth-child(2),
        .g-cmp:has(thead th:nth-child(2):is(.is-sponsored, .is-ours)) tbody td:nth-child(3),
        .g-cmp:has(thead th:nth-child(3):is(.is-sponsored, .is-ours)) tbody td:nth-child(3),
        .g-cmp:has(thead th:nth-child(3):is(.is-sponsored, .is-ours)) tbody td:nth-child(4),
        .g-cmp:has(thead th:nth-child(4):is(.is-sponsored, .is-ours)) tbody td:nth-child(4),
        .g-cmp:has(thead th:nth-child(4):is(.is-sponsored, .is-ours)) tbody td:nth-child(5),
        .g-cmp:has(thead th:nth-child(5):is(.is-sponsored, .is-ours)) tbody td:nth-child(5) { padding-left: 24px; }
    }
}

/* Phone: two programs keep their two columns (the label rides above each row); three or more read fact by fact,
   each value under its program's name. */
@media (max-width: 1099px) { /* phones and tablets: the 702 px tablet column cannot hold the head buttons side by side */
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
        .g-cmp { border: 0; border-radius: 0; overflow: visible; }
        .g-cmp .g-cmp-table { min-width: 0; }
        .g-cmp .g-cmp-table, .g-cmp .g-cmp-table thead, .g-cmp .g-cmp-table tbody, .g-cmp .g-cmp-table tr { display: block; }
        .g-cmp .g-cmp-table colgroup, .g-cmp .g-cmp-table .g-cmp-corner { display: none; }
        .g-cmp .g-cmp-table thead tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
        .g-cmp.g-cmp--n2 .g-cmp-table thead tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
        .g-cmp .g-cmp-table thead th {
            position: static;
            min-width: 0;
            padding: 16px;
            border: 1px solid var(--g-line);
            border-radius: 16px;
            background: #fff;
        }
        .g-cmp .g-cmp-table thead th:is(.is-sponsored, .is-ours) { background: var(--g-soft); }
        .g-cmp.g-cmp--n2 .g-cmp-id, .g-cmp.g-cmp--n2 .g-cmp-id .guide-catalog-profile-link { flex-direction: column; align-items: flex-start; gap: 8px; }
        .g-cmp.g-cmp .g-cmp-actions .guide-catalog-actions > a.guide-catalog-cta { white-space: normal; }
        .g-cmp.g-cmp--n2 .g-cmp-actions .guide-catalog-actions > a.guide-catalog-cta { min-height: 40px; padding: 8px; font-size: 12px; line-height: 16px; }
        .g-cmp .g-cmp-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--g-line); }
        .g-cmp .g-cmp-table tbody:first-of-type tr:first-child { border-top: 0; }
        .g-cmp:not(.g-cmp--n2) .g-cmp-table tbody tr { grid-template-columns: minmax(0, 1fr); }
        .g-cmp .g-cmp-table tbody :is(th, td) { position: static; padding: 0; border: 0; background: none; }
        .g-cmp .g-cmp-table tbody th { grid-column: 1 / -1; }
        .g-cmp:not(.g-cmp--n2) .g-cmp-table tbody td::before { content: attr(data-label) " · "; color: var(--g-muted); font-size: 12px; font-weight: 500; }
        .g-cmp .g-cmp-table .g-cmp-key td { font-size: 16px; line-height: 24px; }
    }
}

/* The voice-note window plays once (guides/guide-windows.js): the wave fills left to right, the trader's words come in,
   then the price of the habit rises. Calm, draw-once; reduced motion never arms it. */
html:root body.guide-v3 .g-stage.lr-bcard-words.is-armed .lr-vn-wave i { transform: scaleY(.25); opacity: .35; }
html:root body.guide-v3 .g-stage.lr-bcard-words.is-armed .lr-vn-words { opacity: 0; }
html:root body.guide-v3 .g-stage.lr-bcard-words.is-armed .lr-vn-out { opacity: 0; transform: translateY(8px); }
html:root body.guide-v3 .g-stage.lr-bcard-words.is-armed.is-in .lr-vn-wave i { transform: none; opacity: 1; transition: transform .24s var(--lr-ease, ease-out) calc(var(--i, 0) * 14ms), opacity .24s linear calc(var(--i, 0) * 14ms); }
html:root body.guide-v3 .g-stage.lr-bcard-words.is-armed.is-in .lr-vn-words { opacity: 1; transition: opacity .4s linear .7s; }
html:root body.guide-v3 .g-stage.lr-bcard-words.is-armed.is-in .lr-vn-out { opacity: 1; transform: none; transition: opacity .35s linear 1.25s, transform .45s cubic-bezier(.3, 1.4, .6, 1) 1.25s; }

/* The calculators' block at the end of the read (tools/assets/calc-sell.css): its lines break in balanced halves here. */
html:root body.guide-v3 .cf-sell-host { margin-top: 64px; }
html:root body.guide-v3 .cf-sell-host .cf-sell { margin-top: 0; padding-top: 0; border-top: 0; } /* the editorial box's line is right above (Igor «рамка вверху явно не нужна») */
html:root body.guide-v3 .cf-sell-host .cf-sell-lines > span { text-wrap: balance; }

/* Side card windows (Igor 30 Nov «цифры не влезают… засветом в фон», then «не аккуратно… свечение закрывает слишком
   много»): the window keeps a comfortable width, starts on the text's left edge and runs off the card's right edge;
   only its last 40 px melt into the card. Each window is cut where its answer ends. The voice note fits whole. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb-media:has(.g-stage:not([data-guide-window="words"])) {
    height: 232px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent 100%);
}
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage:not([data-guide-window="words"]) .lr-bstage { display: block; padding: 12px 12px 0; overflow: hidden; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage:not([data-guide-window="words"]) .lr-bpanel { width: auto; max-width: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="replay"] :is([data-rp-tail], .lr-rp-head > em) { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb-media:has(.g-stage[data-guide-window="replay"]) { height: 232px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="notion"] :is(.lr-nw-side, .lr-nw-db) { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="notion"] .lr-nw-page { padding: 0 16px 16px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="notion"] .lr-nw-row { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb-media:has(.g-stage[data-guide-window="notion"]) { height: 260px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] :is(.lr-shelf-folders, .lr-home-chart, .lr-home-sheet) { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-home-body { display: block; margin-top: 16px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-home-list { margin: 0 -10px; padding: 0; overflow: visible; flex-direction: column; gap: 4px; border: 0; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-home-list .is-on { background: rgb(243, 242, 253); box-shadow: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-home-list i { display: block; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-shelf-answer { font-size: 20px; line-height: 28px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb-media { container-type: inline-size; }
@container (max-width: 300px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-shelf-answer { font-size: 18px; line-height: 26px; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-home-list > span :is(b, em) { font-size: 14px; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-win-body { padding-inline: 16px; }
}
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-home-list > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; border-radius: 6px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="replay"] .lr-rp-axis > span:last-child { visibility: hidden; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="replay"] .lr-rp-scale i { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="setups"] .lr-win-bar .lr-setups-btn { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb-media:has(.g-stage[data-guide-window="setups"]) { height: 300px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb-media:has(.g-stage[data-guide-window="well"]) { height: auto; margin-bottom: 12px !important; -webkit-mask-image: none; mask-image: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="well"] .lr-bstage.lr-ideas { display: block; padding: 12px; background: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="well"] .lr-idea:nth-child(n+2) { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="well"] .lr-idea-curve { flex: 0 0 56px; min-height: 56px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .sidebar-tsb-media:has(.g-stage[data-guide-window="conn"]) { height: 252px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="notion"] .lr-nw-title { font-size: 20px; line-height: 28px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="notion"] .lr-nw-w + .lr-nw-w { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="notion"] .lr-nw-col { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="notion"] .lr-nw-col .lr-nw-w { flex: 0 0 auto; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="conn"] .lr-win-bar > span { display: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .sidebar .g-stage[data-guide-window="conn"] .lr-conn-tabs > span:last-child { display: none; }

/* The one-off tools and choosers inside the read (guides/_v3_editorial.php: template choosers, Sheets migration, lot
   size, cash model, cost ledger), 30 Nov: the canon's type and pills. The small label sits above the heading in
   sentence case (no label column beside it, no uppercase), steps read title 16/500 then copy 14, actions are pills. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .article-content {
    :is(.guide-template-start-head, .guide-sheets-migration-head) { display: block; padding: 32px 28px 24px; }
    :is(.guide-template-start-head, .guide-sheets-migration-head) h2 { margin: 0; }
    :is(.guide-template-start-head, .guide-sheets-migration-head) p { margin: 12px 0 0; }
    :is(.guide-template-start-head, .guide-sheets-migration-head, .guide-lot-size-checker-head, .guide-cost-calculator-head, .guide-earnings-model-head) > span,
    :is(.guide-lot-size-checker-result, .guide-cost-calculator-result) > span,
    .guide-earnings-result-kicker, .guide-journal-free-cta-kicker, .guide-template-start-grid article > span,
    .guide-sheets-migration-route li > span {
        display: block;
        margin: 0 0 8px;
        padding: 0;
        color: var(--g-accent);
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
    }
    .guide-earnings-model-head { display: block; padding: 32px 0 24px; }
    .guide-earnings-model-head > span, .guide-earnings-model-head h2, .guide-earnings-model-head p { padding: 0 30px; }
    .guide-earnings-model-head h2 { margin: 0; line-height: 40px; letter-spacing: -0.02em; }
    .guide-earnings-model-head p { max-width: 560px; margin: 12px 0 0; font-size: 16px; line-height: 24px; }
    :is(.guide-lot-size-checker-head, .guide-cost-calculator-head) h2 { margin-top: 0; line-height: 40px; letter-spacing: -0.02em; }
    .guide-sheets-migration-route li { padding-top: 24px; }
    .guide-template-start-grid article h3 { margin-top: 0; }
    .guide-template-start-grid article p { font-size: 16px; line-height: 24px; }
    .guide-sheets-migration-route li strong { display: block; color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
    .guide-sheets-migration-route li p { margin: 8px 0 0; font-size: 14px; line-height: 20px; }
    :is(.guide-template-start-action, .guide-sheets-migration-primary, .guide-sheets-migration-secondary, .guide-lot-size-checker-cta, .guide-earnings-result-cta) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 0 24px;
        border-radius: 999px;
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
        text-decoration: none;
    }
}

/* The journal decision block (best-trading-journals, edgewonk-alternative; guides/_provider_components.php), 30 Nov:
   TSB's mark is its ink lettermark on a neutral tile, as in the comparison tables (the legacy white letters vanished
   on the light card); on a wide screen the whole matrix fits the 1104 px block, nothing runs off the right edge. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
    /* TSB's own tile: our lettermark in the accent on a light accent tile, as on the side card (Igor 30 Nov «лого
       хуйня» about the inked legacy letters). */
    :is(.guide-provider-logo-legacy, .g-cmp-tsb-tile) { position: relative; display: block; padding: 0; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--g-accent) 8%, white); }
    :is(.guide-provider-logo-legacy, .g-cmp-tsb-tile) img { visibility: hidden; }
    :is(.guide-provider-logo-legacy, .g-cmp-tsb-tile)::before {
        content: "";
        position: absolute;
        inset: 0 18%;
        background: var(--g-accent);
        -webkit-mask: url('/assets/tsb_logo.svg') no-repeat center / contain;
        mask: url('/assets/tsb_logo.svg') no-repeat center / contain;
    }
    @media (min-width: 1100px) {
        .guide-journal-decision .guide-journal-matrix table { min-width: 0; }
        .guide-journal-decision .guide-journal-matrix :is(thead th:first-child, tbody th) { width: 136px; white-space: normal; }
        .guide-journal-decision .guide-journal-matrix :is(th, td) { padding: 16px 12px; }
    }
}

/* The journal decision table (guidesProviderDecisionTableHtml): no per-column action, so the seven journals fit the
   1104 px block on a wide screen instead of scrolling. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
    .g-cmp .g-cmp-actions:empty { display: none; }
    .g-cmp[data-cmp-family="journal"] .g-cmp-id small { display: block; color: var(--g-accent); font-size: 12px; line-height: 16px; font-weight: 500; }
    @media (min-width: 1100px) {
        .g-cmp[data-cmp-family="journal"] { overflow: hidden; }
        .g-cmp[data-cmp-family="journal"] .g-cmp-table col.g-cmp-col-label { width: 136px; }
        .g-cmp[data-cmp-family="journal"] .g-cmp-table tr > :is(td, th):nth-child(2) { padding-left: 16px; }
        .g-cmp[data-cmp-family="journal"] .g-cmp-table { min-width: 0; }
        .g-cmp[data-cmp-family="journal"] .g-cmp-id { flex-direction: column; align-items: flex-start; gap: 8px; }
        .g-cmp[data-cmp-family="journal"] .g-cmp-table :is(th, td) { padding-right: 12px; }
        .g-cmp[data-cmp-family="journal"] .g-cmp-table :is(.g-cmp-corner, tbody th) { position: static; }
    }
}

/* "Our pick" in the comparison guides (guidesRenderProviderDecisionComparison), Igor 30 Nov picked variant B of
   docs/product/design/guides-pick-2026-11-30 (ported 1:1): no frame, a hairline on top; the disclosure and our mark;
   the trader's word in grey over the promise at 44/48; the real voice note on the light indigo field; one pill and its
   link; the narrow alternatives in three columns under a hairline. Container queries, so the phone reads the same. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 {
    .guide-catalog:has(.guide-pick) { container: guide-pick / inline-size; }
    /* The one coloured place at the top of the guide: the side cards' light indigo field (Igor 30 Nov «на белом все
       слилось… куча блоков»); the voice note sits straight on it, as on the side card. */
    .guide-journal-decision-stage.guide-pick { display: block; margin: 0; padding: 40px; overflow: hidden; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--g-accent) 7%, white); }
    .guide-pick .guide-pick-brand { padding-top: 0; }
    .guide-pick .guide-pick-story { padding-bottom: 0; }
    .guide-pick .guide-pick-proof .g-stage, .guide-pick .guide-pick-proof .g-stage.lr-bcard-words > .lr-bstage.lr-vn-stage { background: transparent; }
    .guide-pick .guide-pick-proof .g-stage.lr-bcard-words > .lr-bstage.lr-vn-stage { padding: 0 0 16px; }
    /* Rhythm: 64 between the pick, the table and the read; the sources are a quiet line right under the table. */
    .guide-journal-decision { gap: 64px; }
    .guide-catalog:has(.guide-pick) > .guide-catalog-header { margin-bottom: 32px; }
    .guide-journal-decision > .guide-journal-evidence { margin-top: -48px; border: 0; border-radius: 0; background: none; }
    .guide-journal-evidence > summary { justify-content: flex-start; gap: 16px; padding: 0; }
    .guide-journal-evidence > summary > span:first-child { color: var(--g-muted); font-size: 14px; line-height: 20px; font-weight: 400; }
    .guide-journal-evidence > summary { flex-wrap: wrap; }
    .guide-journal-evidence-action { justify-content: flex-start; gap: 4px; width: auto; min-height: 0; padding: 0; border: 0; background: none; color: var(--g-accent); font-size: 14px; line-height: 20px; font-weight: 500; }
    .guide-journal-evidence-action :is(i, svg) { width: 16px; height: 16px; flex-basis: 16px; }
    .guide-journal-evidence[open] > .guide-journal-evidence-grid { margin-top: 16px; }
    .guide-pick :is(p, figure, ul, h3) { margin: 0; }
    .guide-pick-main { min-width: 0; padding: 0; border: 0; background: none; }
    .guide-pick-brand { display: flex; align-items: center; gap: 16px; padding: 24px 0; }
    .guide-pick-mark { flex: 0 0 44px; width: 44px; height: 16px; background: var(--g-accent); -webkit-mask: url('/assets/tsb_logo.svg') center / contain no-repeat; mask: url('/assets/tsb_logo.svg') center / contain no-repeat; }
    .guide-pick-brand > div { display: grid; min-width: 0; }
    .guide-pick-disclosure { color: var(--g-muted); font-size: 12px; line-height: 20px; font-weight: 400; letter-spacing: 0; text-transform: none; }
    .guide-pick-name { color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
    .guide-pick-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'message proof' 'start proof'; column-gap: 48px; row-gap: 32px; padding: 16px 0 40px; }
    .guide-pick-message { grid-area: message; min-width: 0; }
    .guide-pick-title { color: var(--g-ink); font-size: 44px; line-height: 48px; font-weight: 500; letter-spacing: -0.035em; }
    .guide-pick-title > span { display: block; margin-bottom: 8px; color: var(--g-muted); font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
    .guide-pick-description { margin-top: 20px !important; color: var(--g-ink); font-size: 16px; line-height: 24px; }
    .guide-pick-proof { grid-area: proof; min-width: 0; align-self: center; }
    .guide-pick-proof figcaption { margin-bottom: 12px; color: var(--g-muted); font-size: 12px; line-height: 20px; }
    .guide-pick-proof .g-stage { --pad: 0px; padding: 0; overflow: hidden; border-radius: 16px; background: color-mix(in srgb, var(--g-accent) 10%, white); }
    .guide-pick-proof .g-stage.lr-bcard-words > .lr-bstage.lr-vn-stage { margin: 0; padding: 32px 24px 40px; border: 0; background: color-mix(in srgb, var(--g-accent) 10%, white); }
    .guide-pick-start { grid-area: start; min-width: 0; }
    .guide-pick-prompt { margin-bottom: 16px !important; color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
    .guide-pick-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin: 0; }
    .guide-pick-actions a { text-decoration: none; font-size: 14px; font-weight: 500; }
    .guide-pick-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--g-accent); color: #fff; line-height: 24px; box-shadow: none; }
    .guide-pick-primary:hover { background: var(--lr-accent-hover, #3a31a0); color: #fff; }
    .guide-pick-secondary { display: inline-flex; align-items: center; min-height: 48px; color: var(--g-accent); line-height: 20px; }
    @container guide-pick (max-width: 700px) {
        .guide-journal-decision-stage.guide-pick { padding: 24px 16px; }
        .guide-pick .guide-pick-brand { padding: 0 0 20px; }
        .guide-pick-story { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'message' 'proof' 'start'; row-gap: 24px; padding: 8px 0 28px; }
        .guide-pick-title { font-size: 32px; line-height: 40px; }
        .guide-pick-title > span { margin-bottom: 4px; font-size: 20px; line-height: 28px; }
        .guide-pick-description { margin-top: 16px !important; }
        .guide-pick-proof .g-stage.lr-bcard-words > .lr-bstage.lr-vn-stage { padding: 20px 12px 32px; }
        .guide-pick-actions { flex-direction: column; align-items: stretch; gap: 16px; }
        .guide-pick-primary { font-size: 16px !important; }
        .guide-pick-secondary { justify-content: center; }
    }
}

/* best-trading-journals and its siblings, checked whole against the canon (Igor 30 Nov «сам его полностью проверил…
   по матрице дизайна нашего»): the quick verdict's label is a quiet 14 and its sentence 20/500, not bold; the review
   cards keep one name (the section's heading already says it), the price stays on one line beside the name; the
   wide tables keep their first column while the rest scrolls, with a visible scrollbar as the cue and the pick's row
   on the soft tint, not an indigo bar; the free start is one framed card with a pill. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .article-content {
    .verdict-box-review .verdict-label { color: var(--g-accent); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; }
    .verdict-box-review .verdict-heading { margin-top: 8px; color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; hyphens: manual; }
    .journal-card-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: end; }
    .journal-card .journal-rank-badge { margin-bottom: 8px; color: var(--g-accent); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; }
    .journal-card .journal-price-block { flex: none; max-width: 280px; text-align: right; }
    .journal-card .journal-price { color: var(--g-ink); font-size: 20px; line-height: 28px; font-weight: 500; }
    .journal-card .journal-price-label { margin: 4px 0 0; color: var(--g-muted); font-size: 14px; line-height: 20px; }
    .journal-card .journal-tagline { color: var(--g-muted); font-size: 16px; line-height: 24px; }
    .journal-card-header :is(h2, .journal-name-heading) { margin: 0; }
    .journal-card-header .journal-tagline { margin-top: 8px; }
    .section > h2 + .journal-card .journal-name-heading:not(h2, h3) { display: none; }
    .section > h2 + .journal-card { margin-top: 16px; padding-top: 0; border-top: 0; }
    .guide-v3-table-scroll { scrollbar-width: thin; scrollbar-color: #d9d9e0 transparent; }
    .guide-v3-table-scroll::-webkit-scrollbar { height: 8px; }
    .guide-v3-table-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #d9d9e0; }
    @media (min-width: 761px) {
        .guide-v3-table-scroll .guide-v3-data-table:is([data-v3-columns="5"], [data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) :is(thead th, tbody td, tbody th):first-child {
            position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--g-line);
        }
    }
    /* Phone: each value under its label as one block, so a value made of several pieces (a price with its period)
       never splits across the label's column. */
    @media (max-width: 760px) {
        .guide-v3-data-table[data-v3-columns]:not([data-v3-columns="2"]) tbody > tr > td { display: block; }
        .guide-v3-data-table[data-v3-columns]:not([data-v3-columns="2"]) tbody > tr > td::before { display: block; margin: 0 0 4px; }
    }
    .journal-comparison tbody > tr.row-highlight > :is(th, td) { background: var(--g-soft); box-shadow: none; border-left: 0; }
    @media (min-width: 761px) { .guide-v3-table-scroll .guide-v3-data-table.journal-comparison[data-v3-columns] tbody > tr.row-highlight > :is(th, td):first-child { background: var(--g-soft); box-shadow: 1px 0 0 var(--g-line); } }
    .journal-comparison tbody > tr.row-highlight::before, .journal-comparison tbody > tr.row-highlight > :first-child::before { display: none; }
}
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center;
    margin-top: 24px; padding: 32px; border: 1px solid var(--g-line); border-radius: 16px; background: #fff;
}
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta-kicker { color: var(--g-accent); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta h3 { margin: 8px 0 0; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta p { margin: 8px 0 0; color: var(--g-muted); font-size: 16px; line-height: 24px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta small { display: block; margin-top: 8px; color: var(--g-muted); font-size: 12px; line-height: 16px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta-actions .cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; line-height: 20px; font-weight: 500; }
html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta-actions > a:not(.cta-btn) { font-size: 14px; line-height: 20px; font-weight: 500; }
@media (max-width: 760px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta { grid-template-columns: 1fr; padding: 24px 16px; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 #free-start .guide-journal-free-cta-actions .cta-btn { width: 100%; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .article-content .journal-card-header { grid-template-columns: 1fr; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3 .article-content .journal-card .journal-price-block { max-width: none; margin-top: 12px; text-align: left; }
}

/* The guides' read in the accepted template's language (draft D of docs/product/design/guides-compare-page-2026-11-30,
   Igor 30 Nov «мешанина», then «надо все сетки гайдов привести к адекватному состоянию»).
   Two objects only: our pick (the light indigo field, once, at the top) and the accepted comparison table (once).
   Everything else reads as the article: headings, paragraphs, hairlines; no cards, no tinted boxes, no icons in the
   read. Loaded after the guide's own CSS. */
html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 {
    /* The top: title, Quick Answer beside it, our pick, the table, one quiet sources line. */
    .guide-v3-catalog-stack { margin-bottom: 0; }
    .guide-journal-decision { gap: 48px; }

    .article-content {
        /* Section labels: quiet words above a heading, not accents competing with the pick. */
        .section-label { margin: 0 0 8px; color: var(--g-muted); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
        > :is(.section, section):not(:first-child) { margin-top: 48px; }

        /* Quick verdict: a paragraph with its label, no box. */
        .verdict-box-review { margin: 0; padding: 0; border: 0; background: none; }
        .verdict-box-review::before, .verdict-icon { display: none; }
        .verdict-box-review .verdict-label { color: var(--g-muted); }
        .verdict-box-review .verdict-heading { font-size: 20px; line-height: 28px; }

        /* The ranked list: rank and name, the price line under it, the reason beside — one row per journal. */
        .mention-grid.guide-v3-content-grid > .mention-card { padding: 16px 0; border: 0; border-top: 1px solid var(--g-line); background: none; box-shadow: none; }
        .mention-grid.guide-v3-content-grid > .mention-card:first-child { border-top-color: var(--g-line); }

        /* Reviews: a chapter of the article. Name, one line, the price as a line; no frame, no right column. */
        .journal-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
        .journal-card-header { display: block; }
        .journal-card .journal-rank-badge { color: var(--g-muted); }
        .journal-card .journal-price-block { max-width: none; margin: 12px 0 0; text-align: left; }
        .journal-card .journal-price { display: inline; font-size: 16px; line-height: 24px; font-weight: 500; }
        .journal-card .journal-price-label { display: inline; margin: 0 0 0 8px; }
        .feature-pills { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; }
        .feature-pill { padding: 0; border: 0; background: none; color: var(--g-muted); font-size: 14px; line-height: 20px; font-weight: 400; }
        .feature-pill.highlight { color: var(--g-ink); font-weight: 500; }
        .feature-pill :is(i, svg) { display: none; }

        /* Strengths and trade-offs: two plain lists, one neutral mark, the colour only in the two titles. */
        .pros-cons { gap: 32px; margin-top: 24px; }
        .pros-cons .guide-v3-content-item { padding: 0; border: 0; background: none; }
        .pros-cons-title { color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
        .pros-cons-list li { padding-left: 16px; font-size: 16px; line-height: 24px; }
        .pros-cons-list li::before { content: "–"; color: var(--g-muted); }

        /* Bottom lines read as text, not as notes. */
        .journal-card ~ p:has(> strong:first-child), .bottom-line { font-size: 16px; line-height: 24px; }

        /* Decision by profile: label and advice as rows, no icons, no tiles. */
        .decision-grid:has(.decision-icon) { display: block; margin-top: 16px; }
        .decision-grid:has(.decision-icon) .decision-item { display: block; padding: 16px 0; border: 0; border-top: 1px solid var(--g-line); background: none; box-shadow: none; }
        .decision-icon { display: none; }
        .decision-label { color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; }
        .decision-rec { margin-top: 4px; color: var(--g-copy, #34363f); font-size: 16px; line-height: 24px; }

        /* Tables in the read: flat, the pick's row on the soft tint only. */
        .guide-v3-data-table :is(th, td) { background: none; }

        /* Spacing inside a review: name, line, price, features, then the text after a real gap. */
        .journal-card .feature-pills + * , .journal-card .journal-card-header + p { margin-top: 24px; }
        .journal-card ~ p, .journal-card p:has(> strong:first-child) { font-size: 16px; line-height: 24px; }
        p:has(> strong:first-child:is(:only-child, :first-child)) { font-size: 16px; line-height: 24px; }

        /* Wide tables never run off the read: five columns fit the 720 column; six and more read as one record per
           row (each value under its column's name), as on the phone. */
        .guide-v3-table-scroll { overflow: visible; }
        .guide-v3-data-table[data-v3-columns="5"] { min-width: 0 !important; width: 100%; table-layout: auto; }
        .guide-v3-data-table:is([data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) { min-width: 0 !important; width: 100%; }
        .guide-v3-data-table:is([data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
        .guide-v3-data-table:is([data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) :is(tbody, tr) { display: block; }
        .guide-v3-data-table:is([data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) tbody > tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; padding: 20px 0; border-top: 1px solid var(--g-line); }
        .guide-v3-data-table:is([data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) tbody > tr > :first-child { grid-column: 1 / -1; position: static; padding: 0; border: 0; color: var(--g-ink); font-size: 16px; line-height: 24px; font-weight: 500; box-shadow: none; }
        .guide-v3-data-table:is([data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) tbody > tr > td { display: block; position: static; padding: 0; border: 0; box-shadow: none; font-size: 14px; line-height: 20px; }
        .guide-v3-data-table:is([data-v3-columns="6"], [data-v3-columns="7"], [data-v3-columns="8"], [data-v3-columns="9"], [data-v3-columns="10"], [data-v3-columns="11"], [data-v3-columns="12"]) tbody > tr > td::before { content: attr(data-label); display: block; margin: 0 0 4px; color: var(--g-muted); font-size: 12px; line-height: 16px; font-weight: 500; }
        .guide-v3-data-table tbody > tr.row-highlight { background: var(--g-soft); padding-inline: 16px; border-radius: 12px; }
        .guide-v3-data-table tbody > tr.row-highlight > :is(th, td) { background: none !important; }
        .guide-v3-data-table tbody > tr > :is(th, td) { border-right: 0 !important; }
        .journal-verdict { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--g-line); color: var(--g-ink); font-size: 16px !important; line-height: 24px !important; }
    }

    /* The free start at the end: text and one pill, the same as everywhere; not a second framed object. */
    #free-start .guide-journal-free-cta { display: block; margin-top: 24px; padding: 0; border: 0; border-radius: 0; background: none; }
    #free-start .guide-journal-free-cta-actions { flex-direction: row; justify-content: flex-start; margin-top: 24px; }
}

/* Comparison tables never scroll on a desktop (sweep 30 Nov): five and six programs fit the 1104 px block with the logo
   over the name. On a tablet the wider tables scroll inside their frame with the labels pinned, as accepted. */
@media (min-width: 1100px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 {
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) { overflow: hidden; }
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) .g-cmp-table { min-width: 0; }
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) .g-cmp-table col.g-cmp-col-label { width: 128px; }
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) .g-cmp-id { flex-direction: column; align-items: flex-start; gap: 8px; }
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) .g-cmp-table :is(th, td) { padding-right: 12px; overflow-wrap: anywhere; }
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) .g-cmp-table :is(.g-cmp-corner, tbody th) { position: static; }
        .g-cmp--n6 .g-cmp-table .g-cmp-key td { font-size: 16px; line-height: 24px; }
        /* Narrow columns: the head's actions are text links, never pills that wrap into circles. */
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) .g-cmp-actions :is(a, button) { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--g-accent); font-size: 14px; line-height: 20px; font-weight: 500; text-align: left; white-space: normal; }
        .g-cmp:is(.g-cmp--n5, .g-cmp--n6) .g-cmp-actions :is(a, button):hover { text-decoration: underline; text-underline-offset: 3px; }
    }
}
@media (min-width: 761px) and (max-width: 1099px) {
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 .guide-edgewonk-finder-source :is(select, label) { max-width: 100%; min-width: 0; }
}
@media (max-width: 760px) {
    /* Two-program formula tables on a phone: the rule's name across, the two programs' values side by side under
       their names (ftmo-vs-fundednext ran off the 390 screen). */
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 .article-content .guide-v2-formula-table { grid-template-columns: minmax(0, 1fr); overflow-x: visible; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 .article-content .guide-v2-formula-table > div { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 .article-content .guide-v2-formula-table > div > :first-child { grid-column: 1 / -1; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 .article-content .guide-v2-formula-table > .guide-v2-formula-head > :first-child { display: none; }
    html:root body.guide-v3.guide-v3.guide-v3.guide-v3.guide-v3 .article-content .guide-v2-formula-table > div > * { min-width: 0; overflow-wrap: anywhere; }
}
