/* ============================================================
   VEBKO ONLINE HELP
   TESTER / RELAY LEGACY TOPIC SKIN

   This stylesheet intentionally mirrors the visual rules used
   inside the old Tester / Relay HTM files.
============================================================ */


/* ============================================================
   PAGE / ARTICLE
============================================================ */

.help-main:has(> .help-standard-topic) {
    padding: 0 !important;
    background: #fff !important;
}


.help-standard-topic {
    width: 100%;
    max-width: none !important;
    min-height: 100%;
    margin: 0 !important;
    padding: 18px 0 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #111;
}


/*
 * The legacy pages did not show the navigation title as a large
 * modern heading above the actual Help content.
 *
 * Keep it accessible and SEO-valid without changing the visual.
 */
.help-standard-topic-seo-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ============================================================
   STRUCTURED CONTENT
============================================================ */

.help-standard-topic
.help-structured-content {
    width: 100%;
    margin: 0;
    padding: 0;
}


.help-standard-topic
.help-content-group {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
}


.help-standard-topic
.help-content-block {
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
}


/* ============================================================
   LEGACY H3 / H4 LOOK
============================================================ */

/*
 * Old file:
 *
 * h3, h4 {
 *   margin-left: 2%;
 *   margin-right: 2%;
 *   font-size: 15px;
 *   font-weight: bolder;
 *   border: 1px solid #02312c;
 *   text-align: center;
 *   background-color: #19B5B4;
 *   border-radius: 10px;
 *   padding: 5px 10px;
 *   color: #fff;
 * }
 */
.help-standard-topic
.help-content-group-title {
    box-sizing: content-box !important;
    margin: 12px 2% 10px !important;
    padding: 5px 10px !important;
    border: 1px solid #02312c !important;
    border-radius: 10px !important;
    background-color: #19B5B4 !important;
    color: #fff !important;
    text-align: center !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: bolder !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
}


    .help-standard-topic
    .help-content-group-title * {
        color: #fff !important;
        text-decoration: none !important;
    }


/* ============================================================
   LEGACY CARD-PANEL TEXT
============================================================ */

/*
 * Old file:
 *
 * .card-panel {
 *   text-align: justify;
 *   font-size: 14px;
 *   border-radius: 13px;
 *   font-weight: 600;
 *   margin-left: 2%;
 *   margin-right: 2%;
 * }
 */
.help-standard-topic
.help-content-text {
    margin: 0 2% 8px !important;
    padding: 5px 8px !important;
    border-radius: 13px !important;
    background: transparent !important;
    color: #111 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.62 !important;
    text-align: justify !important;
    overflow-wrap: anywhere;
    box-shadow: none !important;
}


    .help-standard-topic
    .help-content-text p {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
        color: inherit !important;
        font-family: inherit !important;
        font-size: 14px !important;
        line-height: inherit !important;
        text-align: inherit !important;
    }


        .help-standard-topic
        .help-content-text p:last-child {
            margin-bottom: 0 !important;
        }


    .help-standard-topic
    .help-content-text span {
        font-family: "Segoe UI", Arial, sans-serif !important;
        font-style: normal !important;
        font-size: 14px !important;
    }


    .help-standard-topic
    .help-content-text a {
        color: #0033cc;
        text-decoration: underline;
    }


        .help-standard-topic
        .help-content-text a:hover {
            color: #ff0000;
        }


    /*
 * Preserve ordinary lists imported from Word without allowing
 * the old Word indentation to become excessively wide.
 */
    .help-standard-topic
    .help-content-text ul,
    .help-standard-topic
    .help-content-text ol {
        margin-top: 6px;
        margin-bottom: 6px;
        padding-inline-start: 28px;
    }


    .help-standard-topic
    .help-content-text li {
        margin-bottom: 3px;
        font-size: 14px !important;
        line-height: 1.62 !important;
    }


/* ============================================================
   IMAGE POSITION / THUMBNAIL
============================================================ */

/*
 * Old file:
 *
 * center > img {
 *   max-width: 200px;
 *   max-height: 250px;
 *   background: white;
 *   border: .5px solid black;
 *   padding: 1px;
 * }
 *
 * center {
 *   text-align: left;
 *   margin-left: 6%;
 * }
 */
.help-standard-topic
.help-inline-media-list {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 6% 12px !important;
    padding: 0;
}


html[dir="rtl"]
.help-standard-topic
.help-inline-media-list {
    /*
     * Preserve the legacy visual position instead of mirroring
     * media to the opposite edge automatically.
     */
    direction: ltr;
}


.help-standard-topic
.help-inline-image-button,
.help-standard-topic
.help-inline-video-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
}


.help-standard-topic
.help-inline-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    max-height: 250px !important;
    object-fit: contain;
    padding: 1px !important;
    border: .5px solid #000 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: box-shadow .15s ease;
}


.help-standard-topic
.help-inline-image-button:hover
.help-inline-image {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, .5) !important;
}


/* ============================================================
   VIDEO PREVIEW
============================================================ */

/*
 * Legacy video preview blocks frequently used a 389×219
 * preview container. Keep that proportion while remaining
 * responsive.
 */
.help-standard-topic
.help-video-preview {
    position: relative;
    width: min(389px, 72vw);
    aspect-ratio: 389 / 219;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #111;
}


    .help-standard-topic
    .help-video-preview video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        pointer-events: none;
    }


.help-standard-topic
.help-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 19px;
    line-height: 1;
    pointer-events: none;
}


/* ============================================================
   AUDIO
============================================================ */

.help-standard-topic
.help-inline-audio {
    width: min(420px, 84vw);
    max-width: 100%;
}


/* ============================================================
   DOCUMENT
============================================================ */

.help-standard-topic
.help-inline-document {
    min-height: 36px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #bbb;
    border-radius: 7px;
    background: #fff;
    color: #0033cc;
    font-size: 13px;
    text-decoration: underline;
}


    .help-standard-topic
    .help-inline-document:hover {
        color: #ff0000;
    }


/* ============================================================
   FALLBACK CONTENT
============================================================ */

.help-standard-topic
.help-topic-content {
    margin: 0;
    padding: 0 2% 30px;
    color: #111;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.62;
    text-align: justify;
}


    .help-standard-topic
    .help-topic-content img {
        width: auto;
        height: auto;
        max-width: 200px;
        max-height: 250px;
        object-fit: contain;
        padding: 1px;
        border: .5px solid #000;
        border-radius: 0;
        background: #fff;
        cursor: zoom-in;
    }


/* ============================================================
   IMAGE / VIDEO MODALS
============================================================ */

.help-media-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(0, 0, 0, .88);
    box-sizing: border-box;
}


    .help-media-modal.is-open {
        display: flex;
    }


.help-media-modal-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #222;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}


.help-image-lightbox-content {
    max-width: 96vw;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


    .help-image-lightbox-content img {
        display: block;
        width: auto;
        height: auto;
        max-width: 96vw;
        max-height: 88vh;
        object-fit: contain;
        background: #fff;
    }


.help-image-lightbox-title,
.help-video-modal-title {
    margin-top: 10px;
    color: #fff;
    text-align: center;
    font-size: 13px;
}


.help-video-modal-content {
    width: min(1100px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}


    .help-video-modal-content video {
        display: block;
        width: 100%;
        max-height: 82vh;
        background: #000;
    }


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 750px) {

    .help-standard-topic {
        padding-top: 10px !important;
    }


        .help-standard-topic
        .help-content-group-title {
            margin-left: 2% !important;
            margin-right: 2% !important;
            font-size: 15px !important;
        }


        .help-standard-topic
        .help-content-text {
            margin-left: 2% !important;
            margin-right: 2% !important;
            padding: 5px !important;
        }


        .help-standard-topic
        .help-inline-media-list {
            margin-left: 6% !important;
            margin-right: 2% !important;
            gap: 6px;
        }


        .help-standard-topic
        .help-inline-image {
            max-width: min(200px, 88vw) !important;
            max-height: 250px !important;
        }


        .help-standard-topic
        .help-video-preview {
            width: min(389px, 88vw);
        }


    .help-media-modal {
        padding: 10px;
    }


    .help-media-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 26px;
    }
}


/* ============================================================
   PRINT
============================================================ */

@media print {

    .help-standard-topic {
        padding: 0 !important;
    }


    .help-media-modal {
        display: none !important;
    }


    .help-inline-image-button,
    .help-inline-video-button {
        break-inside: avoid;
    }
}


/* ============================================================
   LEGACY TOP TOOLBAR — PLAY VIDEO
============================================================ */

.help-topic-play-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    color: #1f2e2e !important;
    vertical-align: middle;
    cursor: pointer;
    margin-top:10px;
    margin-right:20px;
}

    .help-topic-play-button:hover {
        color: #0d8f8e !important;
    }

    .help-topic-play-button .bi {
        font-size: 16px;
        line-height: 1;
    }


/* ============================================================
   LEGACY TOOLBAR VIDEO / DOWNLOAD MODAL
   Mirrors the final styling of the old VEBKO topic pages.
============================================================ */

.help-toolbar-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
    box-sizing: border-box;
    background: rgba(5, 18, 18, .58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

    .help-toolbar-video-modal.is-open {
        display: flex;
    }

.help-toolbar-video-content {
    position: relative !important;
    width: min(86vw, 540px) !important;
    max-width: min(86vw, 540px) !important;
    max-height: calc(100vh - 24px) !important;
    margin: auto !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 24px 60px rgba(2,49,44,.28) !important;
}

.help-toolbar-video-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border: 1px solid rgba(16,24,40,.08) !important;
    border-radius: 10px !important;
    background: rgba(244,247,247,.96) !important;
    color: #173636 !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.08) !important;
    font-size: 19px !important;
    line-height: 1 !important;
    cursor: pointer;
}

.help-toolbar-video-title {
    width: 100%;
    min-height: 30px;
    padding: 5px 38px 3px 8px;
    box-sizing: border-box;
    color: #163535;
    font-size: clamp(14px, 1.7vw, 17px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.help-toolbar-video-player-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: none;
    margin: 0 auto !important;
    text-align: center !important;
    align-self: center !important;
    box-sizing: border-box !important;
}

    .help-toolbar-video-player-wrap.is-visible {
        display: block;
    }

.help-toolbar-video-player-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.help-toolbar-video-player {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto !important;
    border-radius: 14px !important;
    background: #000 !important;
    object-fit: contain !important;
}

.help-toolbar-video-note {
    margin-top: 4px !important;
    color: #5e7373 !important;
    font-size: 8px !important;
    line-height: 1.08 !important;
    text-align: center !important;
}

.help-toolbar-video-unavailable {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #f7fafa;
    color: #6b7777;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.help-toolbar-resource-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

#TableDefultDownloadFilesVideo {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 300px;
    margin: 0 auto !important;
    border-collapse: separate !important;
    border-spacing: 3px !important;
    table-layout: fixed !important;
    background: transparent !important;
}

    #TableDefultDownloadFilesVideo th,
    #TableDefultDownloadFilesVideo td {
        padding: 5px 4px !important;
        border: none !important;
        border-radius: 8px !important;
        background: linear-gradient(180deg, #ffffff, #f5fbfb) !important;
        color: #143232 !important;
        text-align: center !important;
        vertical-align: middle !important;
        box-shadow: 0 5px 12px rgba(2,49,44,.08) !important;
        font-size: 8px !important;
        font-weight: 700 !important;
        line-height: 1.02 !important;
        overflow-wrap: anywhere !important;
    }

    #TableDefultDownloadFilesVideo th {
        background: linear-gradient( 135deg, rgba(25,181,180,.16), rgba(13,143,142,.20) ) !important;
        color: #0d4e4d !important;
    }

    #TableDefultDownloadFilesVideo a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 7px !important;
        background: linear-gradient( 135deg, rgba(25,181,180,.14), rgba(13,143,142,.18) ) !important;
        color: #0f7f7e !important;
        box-shadow: 0 5px 12px rgba(25,181,180,.12) !important;
        font-size: 7px !important;
        text-decoration: none !important;
    }

    #TableDefultDownloadFilesVideo .help-toolbar-resource-missing {
        color: #b68f8f !important;
        font-size: 9px !important;
    }

html.help-modal-open,
body.help-modal-open {
    overflow: hidden !important;
}


/* ---------------------------
   SMALL DESKTOP / TABLET
--------------------------- */

@media (max-width: 1100px) {
    .help-toolbar-video-modal {
        padding: 8px !important;
    }

    .help-toolbar-video-content {
        width: min(88vw, 510px) !important;
        max-width: min(88vw, 510px) !important;
    }
}


/* ---------------------------
   MOBILE
--------------------------- */

@media (max-width: 767.98px) {
    .help-toolbar-video-modal {
        padding: 6px !important;
    }

    .help-toolbar-video-content {
        width: min(94vw, 370px) !important;
        max-width: min(94vw, 370px) !important;
        max-height: calc(100vh - 12px) !important;
        padding: 7px !important;
        border-radius: 14px !important;
        gap: 4px !important;
    }

    .help-toolbar-video-close {
        width: 26px !important;
        height: 26px !important;
        top: 6px !important;
        right: 6px !important;
        font-size: 17px !important;
    }

    .help-toolbar-video-title {
        min-height: 27px;
        padding-right: 34px;
        font-size: 11px;
    }

    #TableDefultDownloadFilesVideo {
        border-spacing: 2px !important;
    }

        #TableDefultDownloadFilesVideo th,
        #TableDefultDownloadFilesVideo td {
            padding: 3px 2px !important;
            font-size: 6.5px !important;
            line-height: 1 !important;
        }

        #TableDefultDownloadFilesVideo a {
            width: 15px !important;
            height: 15px !important;
            font-size: 7px !important;
        }
}


@media (max-width: 480px) {
    .help-toolbar-video-modal {
        padding: 4px !important;
    }

    .help-toolbar-video-content {
        width: min(96vw, 320px) !important;
        max-width: min(96vw, 320px) !important;
        max-height: calc(100vh - 8px) !important;
        padding: 6px !important;
        border-radius: 12px !important;
    }

    .help-toolbar-video-title {
        font-size: 10px;
    }

    #TableDefultDownloadFilesVideo th,
    #TableDefultDownloadFilesVideo td {
        padding: 2px 1px !important;
        font-size: 5.7px !important;
    }

    #TableDefultDownloadFilesVideo a {
        width: 13px !important;
        height: 13px !important;
        font-size: 6px !important;
    }
}


/* ============================================================
   TB-3.1 — SELF-CONTAINED TOOLBAR ICONS
   No Bootstrap Icons / Font Awesome dependency is required.
============================================================ */

.help-topic-play-button .help-toolbar-icon-play {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    color: currentColor !important;
    overflow: visible !important;
}

#TableDefultDownloadFilesVideo .help-toolbar-resource-icon {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    pointer-events: none !important;
}

#TableDefultDownloadFilesVideo .help-toolbar-resource-icon-download {
    color: #0f7f7e !important;
}

#TableDefultDownloadFilesVideo .help-toolbar-resource-missing {
    color: #b45f5f !important;
}

#TableDefultDownloadFilesVideo a:hover
.help-toolbar-resource-icon-download {
    color: #075f5e !important;
}


/* ============================================================
   TB-5 / TB-6 — SEARCH + PRINT
============================================================ */

.help-topic-search-button,
.help-topic-print-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    color: #1f2e2e !important;
    vertical-align: middle;
    cursor: pointer;
    margin-top:10px;
    margin-right:10px;
}

    .help-topic-search-button:hover,
    .help-topic-print-button:hover,
    .help-topic-search-button[aria-expanded="true"] {
        color: #0d8f8e !important;
    }

    .help-topic-search-button .help-toolbar-icon,
    .help-topic-print-button .help-toolbar-icon {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
        overflow: visible !important;
    }


/* ============================================================
   TB-7 — DOWNLOAD PDF

   Unlike the other toolbar actions this one is a labelled pill:
   a white tile holding the red PDF glyph plus a text label. The
   fixed 39x39 sizing that .help-topic-action-bar .badge applies
   therefore has to be overridden here.
============================================================ */

body.help-ui-2026 .help-topic-action-bar .badge.help-topic-pdf-button,
.help-topic-pdf-button {
    position: relative;
    appearance: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: auto !important;
    height: 39px !important;
    padding: 0 14px 0 5px !important;

    border: 1px solid #8fc3d4 !important;
    border-radius: 11px !important;
    background: #a9d5e2 !important;
    color: #1f4c59 !important;
    box-shadow: 0 1px 2px rgba(16, 58, 70, .10) !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

    body.help-ui-2026 .help-topic-action-bar .badge.help-topic-pdf-button:hover,
    body.help-ui-2026 .help-topic-action-bar .badge.help-topic-pdf-button:focus-visible,
    .help-topic-pdf-button:hover {
        transform: translateY(-1px);
        border-color: #6fb2c8 !important;
        background: #9bcddd !important;
        color: #17414d !important;
        box-shadow: 0 3px 10px rgba(16, 58, 70, .16) !important;
    }

/* White tile carrying the PDF glyph. */
.help-topic-pdf-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 58, 70, .12);
}

    .help-topic-pdf-icon svg {
        display: block;
        transition: opacity .15s ease;
    }

.help-topic-pdf-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.01em;
    white-space: nowrap;
}

/* Spinner replaces the glyph inside the tile while generating. */
.help-topic-pdf-spinner {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    display: none;
    border: 2px solid rgba(224, 54, 44, .25);
    border-top-color: #e0362c;
    border-radius: 50%;
}

.help-topic-pdf-button.is-busy {
    pointer-events: none;
    cursor: progress;
}

    .help-topic-pdf-button.is-busy .help-topic-pdf-icon svg {
        opacity: 0;
    }

    .help-topic-pdf-button.is-busy .help-topic-pdf-spinner {
        display: block;
        animation: help-topic-pdf-spin .7s linear infinite;
    }

@keyframes help-topic-pdf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* RTL: the tile sits on the right of the label. */
html[dir="rtl"] .help-topic-pdf-button {
    padding: 0 5px 0 14px !important;
}

/* Narrow screens: keep only the icon so the bar still fits. */
@media (max-width: 560px) {

    .help-topic-pdf-label {
        display: none;
    }

    body.help-ui-2026 .help-topic-action-bar .badge.help-topic-pdf-button,
    .help-topic-pdf-button {
        padding: 0 5px !important;
    }
}


/* Finder */

.help-topic-finder {
    position: fixed;
    top: 10px;
    left: 50%;
    z-index: 1000002;
    width: min(620px, calc(100vw - 28px));
    transform: translate(-50%, calc(-100% - 24px));
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
}

    .help-topic-finder.is-open {
        transform: translate(-50%, 0);
        opacity: 1;
        pointer-events: auto;
    }

.help-topic-finder-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 5px 6px 5px 10px;
    border: 1px solid rgba(13, 143, 142, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 32px rgba(2, 49, 44, .18);
    color: #213535;
}

.help-topic-finder-search-icon {
    flex: 0 0 16px;
    color: #0d8f8e;
}

.help-topic-finder-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 5px 7px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #172f2f !important;
    font: inherit;
    font-size: 13px;
}

    .help-topic-finder-input::placeholder {
        color: #809292;
    }

    .help-topic-finder-input.help-topic-finder-not-found {
        color: #b42318 !important;
    }

.help-topic-finder-count {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 0 7px;
    border-left: 1px solid rgba(16, 24, 40, .09);
    color: #657777;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.help-topic-finder-control {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #425858;
    cursor: pointer;
}

    .help-topic-finder-control:hover:not(:disabled) {
        background: rgba(13, 143, 142, .09);
        color: #0d8f8e;
    }

    .help-topic-finder-control:disabled {
        opacity: .35;
        cursor: default;
    }

.help-topic-finder-close {
    margin-left: 1px;
}

.help-topic-search-highlight {
    padding: 0 !important;
    border-radius: 2px;
    background: rgba(238, 185, 0, .58) !important;
    color: inherit !important;
    box-shadow: none !important;
}

    .help-topic-search-highlight.is-active {
        background: #f09206 !important;
        color: #111 !important;
        outline: 1px solid rgba(172, 94, 0, .28);
    }

@media (max-width: 640px) {
    .help-topic-finder {
        top: 7px;
        width: calc(100vw - 14px);
    }

    .help-topic-finder-inner {
        gap: 3px;
        padding-left: 7px;
    }

    .help-topic-finder-count {
        min-width: 44px;
        padding-inline: 4px;
    }

    .help-topic-finder-control {
        flex-basis: 29px;
        width: 29px;
    }
}


/* Print only the Help topic, not the surrounding Help shell/sidebar. */

@media print {
    html,
    body {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: #fff !important;
    }

        body * {
            visibility: hidden !important;
            overflow: visible !important;
        }

    .help-standard-topic,
    .help-standard-topic * {
        visibility: visible !important;
    }

    .help-standard-topic {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .help-topic-action-bar,
    .help-topic-finder,
    .help-toolbar-video-modal,
    .help-media-modal,
    .help-inline-video-button {
        display: none !important;
    }

    .help-content-group,
    .help-content-block,
    .help-inline-image-button,
    .help-inline-image {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .help-topic-search-highlight,
    .help-topic-search-highlight.is-active {
        background: transparent !important;
        color: inherit !important;
        outline: 0 !important;
    }
}




/* ============================================================
   TB-8 — RELATED TOPICS

   Sits at the end of the article. Same-section neighbours and
   text-similar topics look identical on purpose: the difference
   is how they were chosen, not how useful they are.

   Uses the shared design tokens so the block belongs to the
   redesign rather than looking bolted on.
============================================================ */

.help-related {
    margin: 40px 2% 12px;
    padding-top: 24px;
    border-top: 1px solid var(--vh-line, #d9e4e6);
}

/* Heading with a small brand marker. */
.help-related-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--vh-teal-800, #0b6670);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

    .help-related-heading::before {
        content: "";
        width: 4px;
        height: 17px;
        flex: 0 0 4px;
        border-radius: 2px;
        background: linear-gradient(180deg,
            var(--vh-teal-600, #0e969a),
            var(--vh-teal-800, #0b6670));
    }

.help-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-related-item a {
    position: relative;
    display: block;
    height: 100%;
    padding: 13px 34px 13px 15px;
    overflow: hidden;
    border: 1px solid var(--vh-line, #d9e4e6);
    border-radius: 12px;
    background: var(--vh-surface, #fff);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease,
                box-shadow .18s ease, background .18s ease;
}

    /* Brand rail, revealed on hover. */
    .help-related-item a::before {
        content: "";
        position: absolute;
        inset-block: 0;
        inset-inline-start: 0;
        width: 3px;
        background: linear-gradient(180deg,
            var(--vh-teal-600, #0e969a),
            var(--vh-teal-800, #0b6670));
        transform: scaleY(0);
        transform-origin: top;
        transition: transform .18s ease;
    }

    /* Chevron, drawn in CSS so the markup stays clean. */
    .help-related-item a::after {
        content: "";
        position: absolute;
        top: 50%;
        inset-inline-end: 14px;
        width: 7px;
        height: 7px;
        margin-top: -4px;
        border-top: 2px solid var(--vh-muted-2, #91a1a5);
        border-inline-end: 2px solid var(--vh-muted-2, #91a1a5);
        transform: rotate(45deg);
        transition: border-color .18s ease, transform .18s ease;
    }

    html[dir="rtl"] .help-related-item a::after {
        transform: rotate(-135deg);
    }

    .help-related-item a:hover,
    .help-related-item a:focus-visible {
        transform: translateY(-2px);
        border-color: rgba(14, 150, 154, .38);
        background: var(--vh-surface-tint, #f1f8f8);
        box-shadow: var(--vh-shadow-sm, 0 6px 18px rgba(16, 49, 57, .07));
    }

        .help-related-item a:hover::before,
        .help-related-item a:focus-visible::before {
            transform: scaleY(1);
        }

        .help-related-item a:hover::after,
        .help-related-item a:focus-visible::after {
            border-color: var(--vh-teal-600, #0e969a);
            transform: rotate(45deg) translate(2px, -2px);
        }

        html[dir="rtl"] .help-related-item a:hover::after,
        html[dir="rtl"] .help-related-item a:focus-visible::after {
            transform: rotate(-135deg) translate(2px, -2px);
        }

.help-related-title {
    display: block;
    color: var(--vh-ink, #123038);
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.45;
}

/* Section name as a soft chip rather than loose grey text. */
.help-related-meta {
    display: inline-block;
    max-width: 100%;
    margin-top: 7px;
    padding: 2px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--vh-surface-soft, #f8fbfb);
    color: var(--vh-muted, #6d8389);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .03em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.help-related-item a:hover .help-related-meta {
    background: #ffffff;
    color: var(--vh-teal-700, #0c7f86);
}

/* The block is navigation, not content: keep it out of print and PDF. */
@media print {
    .help-related {
        display: none !important;
    }
}


/* ------------------------------------------------------------
   RELATED TOPICS — HOW MANY ARE SHOWN

   The server renders eight. Desktop shows all eight; on a phone
   the list would dominate the page, so the last four are hidden.

   Done in CSS rather than by asking the server how wide the
   screen is: the count then follows the actual viewport, and a
   phone rotated to landscape gets the desktop list with no
   request and no layout shift.
------------------------------------------------------------ */

@media (max-width: 768px) {

    .help-related-item:nth-child(n + 5) {
        display: none;
    }
}
