/* Shared FAQ. Each column owns its vertical flow. */

.cb-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.cb-faq-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.cb-faq-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8ded4;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgb(56 37 22 / 3%);
}

.cb-faq-item:hover {
    border-color: #d9c4aa;
}

.cb-faq-item[open] {
    border-color: #e7bd84;
}

.cb-faq-item > summary {
    position: relative;
    display: block;
    padding: 20px 58px 20px 21px;
    color: #30251c;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
}

.cb-faq-item > summary::-webkit-details-marker {
    display: none;
}

.cb-faq-item > summary::before,
.cb-faq-item > summary::after {
    position: absolute;
    top: 50%;
    right: 23px;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #c47517;
    content: "";
}

.cb-faq-item > summary::before {
    transform: translateY(-50%);
}

.cb-faq-item > summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.cb-faq-item[open] > summary::after {
    transform: translateY(-50%);
}

.cb-faq-item > summary:focus-visible {
    outline: 2px solid #ed921e;
    outline-offset: -5px;
    border-radius: 12px;
}

.cb-faq-answer {
    padding: 0 21px 21px;
}

.cb-faq-answer > p {
    margin: 0;
    color: #746457;
    font-size: 13px;
    line-height: 1.85;
}

.cb-faq-answer > p + p {
    margin-top: 10px;
}

.cb-knowledge-link {
    display: inline-flex;
    align-items: center;
    margin-top: 17px;
    color: #a54e0a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cb-knowledge-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Requirements and WooCommerce integration. */

.cb-compatibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.cb-compatibility-card {
    min-width: 0;
    padding: 25px;
    border: 1px solid #e8ddd0;
    border-radius: 16px;
    background: #ffffff;
}

.cb-compatibility-card > h3 {
    margin: 0 0 18px;
    color: #30251c;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.cb-compatibility-card > p,
.cb-compatibility-card > ul {
    color: #746457;
    font-size: 13px;
    line-height: 1.8;
}

.cb-compatibility-card > p {
    margin-top: 16px;
}

.cb-compatibility-card > ul {
    margin: 0;
    padding-left: 19px;
}

.cb-compatibility-card li + li {
    margin-top: 7px;
}

.cb-compatibility-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.cb-compatibility-table {
    width: 100%;
    border-collapse: collapse;
    color: #624d38;
    font-size: 13px;
    text-align: left;
}

.cb-compatibility-table th,
.cb-compatibility-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee4d8;
    white-space: nowrap;
}

.cb-compatibility-table thead th {
    background: #fffaf3;
    font-size: 11px;
    font-weight: 700;
}

.cb-compatibility-table tbody th {
    font-weight: 600;
}

.cb-translation-note {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8ddd0;
}

.cb-translation-note > h3 {
    margin: 0;
    color: #30251c;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.cb-translation-note > p {
    margin: 12px 0 0;
    color: #655747;
    font-size: 14px;
    line-height: 1.8;
}

.cb-docs-article > .cb-translation-note + p {
    margin-top: 20px;
}

/* Documentation uses the existing shared site header. */

.page-documentation .page-home .dark-intro {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.cb-docs {
    padding-top: 46px;
    padding-bottom: 64px;
}
.cb-docs-intro {
    margin: 0 auto 34px;
    text-align: center;
}
.cb-docs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #8c745e;
    font-size: 12px;
}

.cb-docs-breadcrumb a {
    text-decoration: none;
}

.cb-docs-breadcrumb a:hover {
    text-decoration: underline;
}

.cb-docs-intro > h1 {
    color: #282119;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.cb-docs-intro > p {
    max-width: 72ch;
    margin: 17px auto 0;
    color: #746457;
    font-size: 14px;
    line-height: 1.8;
}

.cb-docs-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 18px 32px;
}

.cb-docs-sidebar {
    position: sticky;
    top: 20px;
    grid-column: 1;
    grid-row: 1 / span 2;
    max-height: calc(100vh - 40px);
    min-width: 0;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #e8ddd0;
    border-radius: 16px;
    background: #fffdf9;
    scrollbar-width: thin;
    scrollbar-color: #cfbda7 transparent;
    scrollbar-gutter: stable;
}

.cb-docs-sidebar:hover,
.cb-docs-sidebar:focus-within {
    scrollbar-color: #b58c5d transparent;
}

@supports not (scrollbar-width: thin) {
    .cb-docs-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .cb-docs-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .cb-docs-sidebar::-webkit-scrollbar-thumb {
        border: 2px solid transparent;
        border-radius: 20px;
        background: #cfbda7;
        background-clip: padding-box;
    }

    .cb-docs-sidebar:hover::-webkit-scrollbar-thumb,
    .cb-docs-sidebar:focus-within::-webkit-scrollbar-thumb {
        background-color: #b58c5d;
    }

    .cb-docs-sidebar::-webkit-scrollbar-button {
        display: none;
    }
}

.cb-docs-sidebar .cb-docs-topic-group:first-child {
    margin-top: 0;
}

.cb-docs-search-panel {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding: 18px 22px;
    border: 1px solid #e8ddd0;
    border-radius: 16px;
    background: #ffffff;
    scroll-margin-top: 24px;
}

.cb-docs-search-label {
    display: block;
    margin-bottom: 9px;
    color: #79634d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.cb-docs-search-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cb-docs-search {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 14px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid #e8dfd4;
    border-radius: 9px;
    background: #f8f3eb;
    color: #62482e;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.cb-docs-search::placeholder {
    color: #988776;
    opacity: 1;
}

.cb-docs-search:focus,
.cb-docs-search:focus-visible {
    border-color: #c4873c;
    outline: 1px solid #b97025;
    outline-offset: 1px;
    box-shadow: none;
}

.cb-docs-search:disabled {
    opacity: 0.6;
}

.cb-docs-clear {
    flex: 0 0 auto;
    min-height: 46px;
    margin: 0;
    padding: 11px 15px;
    appearance: none;
    border: 1px solid #e0d2bf;
    border-radius: 9px;
    background: transparent;
    color: #8a561f;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

.cb-docs-clear:hover {
    border-color: #d4b48d;
    background: #fff4e4;
    color: #854b12;
}

.cb-docs-clear:focus-visible {
    outline: 1px solid #b97025;
    outline-offset: 2px;
}

.cb-docs-search-status {
    margin: 10px 0 0;
    color: #8c745e;
    font-size: 12px;
    line-height: 1.6;
}

.cb-docs-topic-group {
    margin-top: 23px;
}

.cb-docs-topic-group > h2 {
    margin: 0 0 8px;
    color: #987044;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.cb-docs-topic-group ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cb-docs-topic-group a {
    display: block;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #6d5946;
    font-size: 12px;
    line-height: 1.55;
    text-decoration: none;
}

.cb-docs-topic-group a:hover {
    background: #fff3e1;
    color: #854b12;
}

.cb-docs-topic-group a[aria-current="location"] {
    border-color: #ebc897;
    background: #fff1dc;
    color: #854b12;
    font-weight: 700;
}

.cb-docs-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
}

.cb-docs-article {
    min-width: 0;
    padding: 32px;
    border: 1px solid #e8ddd0;
    border-radius: 18px;
    background: #ffffff;
    scroll-margin-top: 24px;
}

.cb-docs-article + .cb-docs-article {
    margin-top: 24px;
}

.cb-docs-article > h2 {
    margin: 0 0 18px;
    color: #30251c;
    font-size: clamp(24px, 2.5vw, 32px);
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.cb-docs-article > p,
.cb-docs-article > ol {
    color: #746457;
    font-size: 14px;
    line-height: 1.85;
}

.cb-docs-article > ol {
    margin: 24px 0 0;
    padding-left: 23px;
}

.cb-docs-article > ol > li {
    padding-left: 5px;
}

.cb-docs-article > ol > li + li {
    margin-top: 14px;
}

.cb-docs-example {
    margin-top: 26px;
    padding: 20px;
    border: 1px solid #ebd4b3;
    border-radius: 12px;
    background: #fffaf2;
}

.cb-docs-example > h3 {
    margin: 0 0 9px;
    color: #8a561f;
    font-size: 13px;
}

.cb-docs-example > p {
    color: #746457;
    font-size: 13px;
    line-height: 1.85;
}

.cb-docs-article > .cb-faq-grid,
.cb-docs-article > .cb-compatibility-grid {
    margin-top: 26px;
}

.cb-docs-article > .cb-faq-grid,
.cb-docs-article > .cb-compatibility-grid {
    grid-template-columns: minmax(0, 1fr);
}

.cb-docs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 26px;
}

.cb-docs-links a {
    color: #a54e0a;
    font-size: 13px;
    font-weight: 600;
    text-underline-offset: 4px;
}

@media (max-width: 1000px) {
    .cb-docs-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 18px 22px;
    }

    .cb-docs-article {
        padding: 25px;
    }
}

@media (max-width: 760px) {
    .cb-faq-grid,
    .cb-compatibility-grid,
    .cb-docs-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cb-faq-grid,
    .cb-faq-column {
        gap: 10px;
    }

    .cb-docs {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .cb-docs-search-panel,
    .cb-docs-sidebar,
    .cb-docs-content {
        grid-column: 1;
        grid-row: auto;
    }

    .cb-docs-search-panel {
        padding: 16px;
    }

    .cb-docs-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .cb-docs-search {
        font-size: 16px;
    }

    .cb-docs-topic-group ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 10px;
    }
}

@media (max-width: 480px) {
    .cb-docs-search-controls {
        flex-wrap: wrap;
    }

    .cb-docs-search {
        flex-basis: 100%;
    }

    .cb-docs-clear {
        margin-inline-start: auto;
    }
}

@media (max-width: 420px) {
    .cb-faq-item > summary {
        padding: 17px 46px 17px 17px;
        font-size: 13px;
    }

    .cb-faq-item > summary::before,
    .cb-faq-item > summary::after {
        right: 19px;
    }

    .cb-faq-answer {
        padding: 0 17px 18px;
    }

    .cb-compatibility-card,
    .cb-docs-article {
        padding: 20px;
    }

    .cb-docs-topic-group ul {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* Current location in the shared navigation. */

.site-header .main-navigation > a[aria-current],
.page-home .site-header .main-navigation > a[aria-current],
.site-footer .footer-navigation > a[aria-current] {
    color: #ffbd70;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #e99530;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

/* Documentation search feedback and highlighted matches. */

.cb-docs-search-result {
    margin: 0 0 16px;
    padding: 13px 17px;
    border: 1px solid #e8d5bb;
    border-radius: 10px;
    background: #fff8ed;
    color: #805526;
    font-size: 12px;
    line-height: 1.7;
}

.cb-docs-article mark[data-doc-match] {
    padding: 0 0.08em;
    border-radius: 3px;
    background: #ffe2ac;
    color: #573314;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

[data-mtp-documentation][data-doc-ready="true"] .cb-docs-article {
    margin-top: 0;
}
/* Current product in the shared header. */

.site-header .main-navigation .header-action[aria-current],
.page-home .site-header .main-navigation .header-action[aria-current] {
    border-color: #ffc477;
    background: rgb(255 183 97 / 14%);
    color: #ffe1b2;
    box-shadow: inset 0 0 0 1px rgb(255 196 119 / 16%);
    text-decoration: none;
}

/* Detailed sections retained from MTP Help. */

.cb-docs-guide-section {
    margin-top: 26px;
}

.cb-docs-guide-section > h3 {
    margin: 0 0 13px;
    color: #62482e;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.cb-docs-guide-section > ol {
    margin: 0;
    padding-left: 23px;
    color: #746457;
    font-size: 14px;
    line-height: 1.85;
}

.cb-docs-guide-section > ol > li {
    padding-left: 5px;
}

.cb-docs-guide-section > ol > li + li {
    margin-top: 12px;
}