/* ################################################# */
/* WordPress guide illustrations and workflow */
/* ################################################# */

.wordpress-docs .wp-doc-shot {
    margin: 28px 0;
}

/* Scroll the viewport instead of resizing the screenshot pixels. */
.wordpress-docs .wp-doc-shot a {
    display: block;
    max-width: 100%;
    overflow: auto;
    border: 1px solid #dedee2;
    border-radius: 10px;
    box-sizing: border-box;
}

.wordpress-docs .wp-doc-shot img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border: 0;
    transform: none;
}

.wordpress-docs .wp-doc-shot figcaption {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #707070;
}

.wordpress-docs .wp-doc-structure {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 22px;
    border: 1px solid #e4e5e7;
    border-radius: 10px;
    background: #fafafa;
}

.wordpress-docs .wp-doc-structure strong {
    font-size: 18px;
    color: #111;
}

.wordpress-docs .wp-doc-structure span {
    font-size: 13px;
    color: #707070;
}

.wordpress-docs .wp-doc-note {
    padding: 20px 24px;
    border-left: 3px solid #db3052;
    border-radius: 4px;
    background: #fff4f6;
    font-size: 16px;
    line-height: 1.65;
}

.wordpress-docs .wp-doc-alias {
    display: block;
    height: 0;
}


/* ################################################# */
/* Searchable preset settings */
/* ################################################# */

.wordpress-docs .wp-doc-search-label {
    display: block;
    font-weight: 700;
    line-height: 1.5;
}

.wordpress-docs #wp-setting-search {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    margin-top: 10px;
    border: 1px solid #c9cbd0;
    border-radius: 6px;
    color: #111;
    background: #fff;
    font: 400 16px/1.5 Roboto, sans-serif;
}

.wordpress-docs #wp-setting-search:focus-visible {
    outline: 2px solid #b82042;
    outline-offset: 3px;
}

.wordpress-docs .wp-setting-group {
    margin-top: 32px;
}

.wordpress-docs .wp-setting-group h3 {
    margin-bottom: 16px;
}

.wordpress-docs .wp-setting-group summary {
    padding: 16px 20px;
    border: 1px solid #e4e5e7;
    border-radius: 6px;
    background: #f8f8f9;
    color: #24272b;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    cursor: pointer;
}

.wordpress-docs .wp-setting-group summary:focus-visible {
    outline: 2px solid #b82042;
    outline-offset: 3px;
}

.wordpress-docs .wp-setting {
    padding: 24px 0;
    border-bottom: 1px solid #e4e5e7;
}

.wordpress-docs .wp-setting h4 {
    margin: 0 0 10px;
    font-size: 18px;
}

.wordpress-docs .wp-setting p {
    margin: 12px 0 0;
}

.wordpress-docs .wp-setting [class="docs-meta"] {
    font-size: 13px;
    color: #707070;
}

.wordpress-docs .wp-setting .docs-meta code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.wordpress-docs .docs-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.wordpress-docs [hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .wordpress-docs .main.api .demos-header h1 {
        font-size: clamp(28px, 8vw, 44px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .wordpress-docs .wp-doc-structure {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 18px;
    }

    .wordpress-docs .wp-doc-note {
        padding: 16px 18px;
        font-size: 15px;
    }
}

/* Keep default values bold even when the shared code style sets a weight. */
.wordpress-docs .wp-setting .docs-meta strong,
.wordpress-docs .wp-setting .docs-meta strong code {
    font-weight: 700;
}
