/* Complementos mínimos para a busca real e para imagens documentais.
   A composição visual usa os componentes e estilos nativos do template. */
.doc-screenshot img {
    max-width: 100%;
    height: auto;
}
.doc-screenshot figcaption {
    margin-top: 8px;
    color: #7b8794;
    font-size: 13px;
}
.doc-search-results-dropdown {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #e6edf0;
    box-shadow: 0 12px 30px rgba(4, 73, 89, .14);
}
.doc-search-item {
    display: block;
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f3;
}
.doc-search-item:last-child { border-bottom: 0; }
.doc-search-item:hover,
.doc-search-item:focus { background: #f5f7f8; text-decoration: none; }
.search-item-category {
    color: #8a94a6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.search-item-title { color: #2b354f; font-weight: 700; margin: 3px 0; }
.search-item-snippet { color: #7b8794; font-size: 13px; line-height: 1.4; }
body.body_dark .doc-search-results-dropdown { background: #202b3a; border-color: #3b4658; }
body.body_dark .doc-search-item { border-color: #344154; }
body.body_dark .doc-search-item:hover,
body.body_dark .doc-search-item:focus { background: #2b384a; }
body.body_dark .search-item-title { color: #fff; }
body.body_dark .search-item-category,
body.body_dark .search-item-snippet { color: #c5cfda; }
@media (max-width: 575px) {
    .doc-search-results-dropdown { max-height: 55vh; }
}
/* Small visual bridge for the official Docy components used by the Central. */
.documentation_body > .shortcode_info {
    margin-bottom: 28px;
    padding: 28px 30px 26px;
    background: #fff;
    border: 1px solid #e6edf0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(4, 73, 89, .04);
}
.documentation_body > .shortcode_info > h2 {
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 16px;
}
.documentation_body > .shortcode_info > p:last-child,
.documentation_body > .shortcode_info > ul:last-child,
.documentation_body > .shortcode_info > ol:last-child {
    margin-bottom: 0;
}
.documentation_body .code_item {
    margin-top: 22px;
    padding: 22px 0 0;
    border-top: 1px solid #e6edf0;
}
.documentation_body .code_item:first-child {
    margin-top: 0;
}
.documentation_body .code_item .c_head {
    padding-top: 0;
    margin-top: 0;
}
.doc .code-preview {
    margin: 22px 0 26px;
    padding: 16px;
    overflow: hidden;
    border-radius: 8px;
    background: #fbfcfd;
}
.doc .code-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.doc .code-preview figcaption {
    margin-top: 12px;
    color: #7b8794;
    font-size: 13px;
    line-height: 1.5;
}
.troubleshoot-box {
    margin: 22px 0 0;
    padding: 16px 18px;
    color: #536273;
    background: #f7f9fb;
    border: 1px solid #e2e9ee;
    border-left: 3px solid #4c4cf1;
    border-radius: 6px;
}

/* body_dark is the native Docy theme class. */
body.body_dark .documentation_body > .shortcode_info {
    background: #1d2025;
    border-color: #343a44;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
body.body_dark .documentation_body .code_item { border-top-color: #343a44; }
body.body_dark .doc .code-preview { background: #17191d; border-color: #343a44; }
body.body_dark .doc .code-preview figcaption,
body.body_dark .troubleshoot-box { color: #c5cfda; }
body.body_dark .troubleshoot-box {
    background: #24282f;
    border-color: #3b4350;
    border-left-color: #7c6cff;
}

/* Frequent shortcuts: compact Docy-style pills instead of comma-separated text. */
.search-banner-light .header_search_keyword {
    gap: 10px 14px;
    margin-top: 26px;
}
.search-banner-light .header-search-form__keywords-label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #596273;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
}
.search-banner-light .doc-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.search-banner-light .doc-quick-links li { margin: 0; }
.search-banner-light .doc-quick-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 11px !important;
    color: #4c4cf1 !important;
    background: rgba(76, 76, 241, .07) !important;
    border: 1px solid rgba(76, 76, 241, .22) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.search-banner-light .doc-quick-link i {
    font-size: 12px;
    opacity: .7;
    transition: transform .2s ease, opacity .2s ease;
}
.search-banner-light .doc-quick-link:hover,
.search-banner-light .doc-quick-link:focus-visible {
    color: #fff !important;
    background: #4c4cf1 !important;
    border-color: #4c4cf1 !important;
    box-shadow: 0 7px 16px rgba(76, 76, 241, .2);
    outline: none;
    transform: translateY(-1px);
}
.search-banner-light .doc-quick-link:hover i,
.search-banner-light .doc-quick-link:focus-visible i {
    opacity: 1;
    transform: translateX(2px);
}
body.body_dark .search-banner-light .header-search-form__keywords-label { color: #d4d9e2; }
body.body_dark .search-banner-light .doc-quick-link {
    color: #b9b5ff !important;
    background: rgba(124, 108, 255, .14) !important;
    border-color: rgba(163, 154, 255, .36) !important;
}
body.body_dark .search-banner-light .doc-quick-link:hover,
body.body_dark .search-banner-light .doc-quick-link:focus-visible {
    color: #17191d !important;
    background: #b9b5ff !important;
    border-color: #b9b5ff !important;
}

@media (max-width: 991px) {
    .documentation_body > .shortcode_info { padding: 24px 22px; }
}
@media (max-width: 575px) {
    .documentation_body > .shortcode_info { padding: 22px 18px; }
    .search-banner-light .header_search_keyword {
        display: block;
        margin-top: 20px;
    }
    .search-banner-light .header-search-form__keywords-label {
        display: block;
        margin-bottom: 9px;
    }
    .search-banner-light .doc-quick-links { gap: 7px; }
    .search-banner-light .doc-quick-link { font-size: 12px !important; }
}
