/* The native editorial shortcut stays ahead of the original section links. */
#page #poi-page-shortcuts > .poi-description-shortcut {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    margin: 5px 0 3px;
    padding: 10px 13px;
    border: 1px solid #d5e2e9;
    border-radius: 9px;
    background: #f1f6f9;
    color: #103e59;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-align: start;
    text-decoration: none;
    overflow-wrap: anywhere;
}
#page #poi-page-shortcuts .poi-description-shortcut .fa { flex: none; }
#page #poi-page-shortcuts .poi-description-shortcut .fa-arrow-down { margin-inline-start: auto; }
/* The shared index may hide an empty row of legacy shortcuts. The description
   is rendered separately because its primary position is independent of document order. */
#page #poi-page-shortcuts[hidden]:has(> .poi-description-shortcut) { display: block !important; }
#page #poi-page-shortcuts .poi-description-shortcut:hover { background: #e6eff4; text-decoration: underline; }
#page #poi-page-shortcuts .poi-description-shortcut:focus-visible,
#page .poi-description-return:focus-visible { outline: 3px solid #1479b8; outline-offset: 2px; }

/* Keep the return control beside the article, clear of its text and of the
   site's fixed back-to-top button. In older browsers it follows the article. */
#page .poi-description-actions {
    display: flex;
    justify-content: flex-end;
}
@media screen {
    #page div:has(> .poi-description-actions) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        column-gap: 6px;
        max-width: 1100px;
        margin-inline: auto;
    }
    #page .portal-editorial:has(+ .poi-description-actions) {
        width: 100%;
        min-width: 0;
    }
    #page div:has(> .portal-editorial) > .poi-description-actions {
        position: sticky;
        align-self: end;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}
@media screen and (max-width: 480px) {
    /* Reclaim the template's inline 15px gutters for reading on narrow screens. */
    #page div:has(> .poi-description-actions) {
        padding-left: max(5px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(5px, env(safe-area-inset-right, 0px)) !important;
    }
    #page .portal-editorial:has(+ .poi-description-actions) .portal-editorial-panel {
        padding-inline: 11px;
    }
}
#page .poi-description-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #b8cbd6;
    border-radius: 50%;
    background: #fff;
    color: #10496d;
    box-shadow: 0 3px 12px rgba(13, 49, 70, .15);
    text-decoration: none;
}
#page .poi-description-return:hover { background: #edf4f8; }
@media print {
    #page #poi-page-shortcuts, #page .poi-description-actions { display: none !important; }
}
