/* Final layout refinements for FAQ and Player Manual */

/* FAQ: keep the eyebrow above the title and reduce nested frames. */
body.page-faq .faq-section > .container {
    width: min(calc(100% - 48px), 1400px) !important;
    max-width: none !important;
    margin-inline: auto !important;
}

.page-faq .faq-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}





.page-faq .faq-hero-copy h1 {
    display: block;
    margin: 0;
}

.page-faq .faq-explorer-heading > p {
    display: none !important;
}

.page-faq .faq-explorer-controls {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.page-faq .faq-explorer-controls {
    padding: 0 !important;
}

body.page-faq .faq-explorer-controls .faq-search {
    display: flex !important;
    align-items: center;
    min-height: 48px;
    padding: 0 14px !important;
    background: transparent !important;
    border: 1px solid rgba(68, 104, 159, 0.14) !important;
    border-radius: 14px;
    box-shadow: none !important;
}

body.page-faq .faq-explorer-controls .faq-search:focus-within {
    border-color: rgba(68, 104, 159, 0.32) !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page-faq .faq-explorer-controls .faq-search input#faq-search-input,
body.page-faq .faq-explorer-controls .faq-search input#faq-search-input:focus {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 !important;
    color: #172a46;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.page-faq .faq-explorer-controls :is(a, button) {
    box-shadow: none !important;
}

body.page-faq .highlight-box .highlight-link,
body.page-faq .highlight-box .highlight-link:visited,
body.page-faq .highlight-box .highlight-link:hover,
body.page-faq .highlight-box .highlight-link:focus-visible {
    color: #ffffff !important;
}

/* Manual: remove the duplicated hero navigation and use the available width. */
body.page-manual main.page > .container {
    width: min(calc(100% - 48px), 1400px) !important;
    max-width: none !important;
    margin-inline: auto !important;
}

.page-manual .manual-hero-nav {
    display: none !important;
}

.page-manual .manual-hero-layout {
    grid-template-columns: minmax(0, 1fr) !important;
}

.page-manual .manual-hero-copy {
    max-width: 920px;
}

body.page-manual .manual-hero .hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: transparent !important;
}

body.page-manual .manual-hero .hero-grid > div {
    display: grid !important;
    grid-template-columns: minmax(112px, max-content) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
    min-width: 0;
}

body.page-manual .manual-hero .hero-grid > div > small {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0 0 6px;
}

body.page-manual .manual-hero .hero-grid > div > strong {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    white-space: nowrap;
}

body.page-manual .manual-hero .hero-grid > div > span {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
}

body.page-manual .layout {
    grid-template-columns: minmax(190px, 205px) minmax(0, 1fr) !important;
    gap: 20px !important;
}

@media (max-width: 960px) {
    body.page-faq .faq-section > .container {
        width: min(calc(100% - 32px), 920px) !important;
    }

    body.page-manual main.page > .container {
        width: min(calc(100% - 32px), 920px) !important;
    }

    body.page-manual .manual-hero .hero-grid {
        grid-template-columns: 1fr;
    }

    body.page-manual .layout {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.page-manual .side {
        position: static !important;
    }
}

@media (max-width: 700px) {
    body.page-faq .faq-section > .container,
    body.page-manual main.page > .container {
        width: calc(100% - 24px) !important;
    }
}

@media (max-width: 620px) {
    body.page-manual .manual-hero .hero-grid > div {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: 4px;
    }

    body.page-manual .manual-hero .hero-grid > div > small,
    body.page-manual .manual-hero .hero-grid > div > strong,
    body.page-manual .manual-hero .hero-grid > div > span {
        grid-column: 1;
        grid-row: auto;
    }
}
