/* Unified category and subcategory description. */
.category-page-title {
    margin-bottom: 14px;
    font-size: clamp(28px, 2vw, 38px);
    font-weight: 400;
    line-height: 1.18;
}

.category-intro {
    max-width: 880px;
    margin: 0 0 22px;
    padding: 0;
    border-left: 0;
    color: #596267;
    font-size: 15px;
    line-height: 1.65;
}

.category-intro > :last-child {
    margin-bottom: 0;
}

.category-seo-text {
    max-width: none;
    margin: 38px 0 12px;
    padding-top: 28px;
    border-top: 1px solid #e1e5e7;
    color: #596267;
    font-size: 15px;
    line-height: 1.65;
}

.category-seo-text > h2 {
    max-width: 900px;
    margin: 0 0 22px;
    color: #282d30;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
}

.category-semantic-content--enhanced {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 34px;
    row-gap: 8px;
}

.category-semantic-section {
    min-width: 0;
    padding: 20px 0 18px;
    border-top: 1px solid #e7eaeb;
}

.category-semantic-section__title {
    margin: 0 0 12px !important;
    color: #2f363a !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.category-semantic-section__body > p {
    max-width: 720px;
    margin: 0 0 10px;
}

.category-semantic-section__body > p:last-child {
    margin-bottom: 0;
}

.category-semantic-section--list ul,
.category-semantic-section--list ol {
    display: grid;
    gap: 9px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.category-semantic-section--list li {
    position: relative;
    padding-left: 19px;
}

.category-semantic-section--list li::before {
    position: absolute;
    top: .62em;
    left: 0;
    width: 7px;
    height: 7px;
    background: #fec50e;
    content: "";
    transform: translateY(-50%);
}

.category-semantic-section--wide {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.8fr);
    gap: 32px;
    margin-top: 4px;
    padding: 22px 24px;
    border-top: 0;
    border-left: 3px solid #fec50e;
    background: #f7f8f8;
}

.category-semantic-section--wide .category-semantic-section__title {
    margin-bottom: 0 !important;
}

.category-semantic-section--faq {
    grid-column: 1 / -1;
    padding-bottom: 8px;
}

.category-faq {
    border-top: 1px solid #dfe3e5;
}

.category-faq__item {
    border-bottom: 1px solid #dfe3e5;
}

.category-faq__heading {
    margin: 0;
}

.category-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 15px 2px;
    color: #30383c;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.category-faq__question:hover {
    color: #111719;
}

.category-faq__question:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(254, 197, 14, .35);
}

.category-faq__arrow {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: 18px;
}

.category-faq__arrow::before,
.category-faq__arrow::after {
    position: absolute;
    top: 8px;
    width: 8px;
    height: 1.5px;
    background: #737c81;
    content: "";
    transition: transform .18s ease;
}

.category-faq__arrow::before {
    left: 2px;
    transform: rotate(45deg);
}

.category-faq__arrow::after {
    right: 2px;
    transform: rotate(-45deg);
}

.category-faq__question[aria-expanded="true"] .category-faq__arrow::before {
    transform: rotate(-45deg);
}

.category-faq__question[aria-expanded="true"] .category-faq__arrow::after {
    transform: rotate(45deg);
}

.category-faq__answer {
    max-width: 880px;
    margin: 0;
    padding: 0 42px 15px 2px;
    color: #626b70;
}

.category-faq__answer[hidden] {
    display: none !important;
}

.category-related-links--enhanced {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 14px;
    margin: 8px 0 0;
    padding: 17px 0 0;
    border-top: 1px solid #e1e5e7;
}

.category-related-links__label {
    flex: 0 0 auto;
    padding-top: 6px;
    color: #30383c;
    font-weight: 600;
}

.category-related-links__items {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-related-links__items a {
    padding: 6px 10px;
    color: #4c555a;
    border-radius: 3px;
    background: #f1f3f3;
    text-decoration: none;
    transition: color .16s ease, background-color .16s ease;
}

.category-related-links__items a:hover,
.category-related-links__items a:focus-visible {
    color: #20272a;
    background: #e8ebec;
    text-decoration: none;
}

.category-related-links__items a:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(254, 197, 14, .35);
}

.category-seo-text [style*="font-size"] {
    font-size: inherit !important;
}

.category-structured-content--top {
    max-width: 980px;
    margin: 0 0 22px;
}

.category-structured-content--top .product-seo-flex-block {
    margin-bottom: 16px;
}

.category-structured-content--top .product-seo-overview__header {
    margin-bottom: 0;
    padding: 0;
    border-left: 0;
    background: transparent;
}

.category-structured-content--top .product-seo-overview__title {
    font-size: 24px;
}

.category-structured-content--top .product-seo-overview__intro {
    margin-top: 8px;
    color: #596267;
    font-size: 15px;
    line-height: 1.65;
}

.category-structured-content--top .product-seo-overview__intro:first-child {
    margin-top: 0;
}

.category-seo-text--structured .product-seo-overview {
    max-width: none;
}

.category-seo-text--structured .product-seo-flex-block:last-child {
    margin-bottom: 0;
}

/*
 * Compose complementary category blocks side by side on desktop. Text and a
 * list form a compact editorial row; richer blocks keep the full content
 * width. The markup stays independent from the chosen block order in admin.
 */
@media (min-width: 992px) {
    .category-seo-render--bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        column-gap: 34px;
        row-gap: 28px;
    }

    .category-seo-render--bottom > .product-seo-flex-block {
        min-width: 0;
        margin-bottom: 0;
    }

    .category-seo-render--bottom > .product-seo-overview__header,
    .category-seo-render--bottom > .product-seo-facts-block,
    .category-seo-render--bottom > .product-seo-text-block,
    .category-seo-render--bottom > .product-seo-columns-block,
    .category-seo-render--bottom > .product-seo-order-note,
    .category-seo-render--bottom > .product-seo-list-block,
    .category-seo-render--bottom > .product-seo-faq,
    .category-seo-render--bottom > .product-seo-related {
        grid-column: 1 / -1;
    }

    @supports selector(:has(+ *)) {
        .category-seo-render--bottom > .product-seo-text-block:has(+ .product-seo-list-block),
        .category-seo-render--bottom > .product-seo-list-block:has(+ .product-seo-text-block),
        .category-seo-render--bottom > .product-seo-text-block + .product-seo-list-block,
        .category-seo-render--bottom > .product-seo-list-block + .product-seo-text-block {
            grid-column: auto;
        }
    }
}

@media (max-width: 767px) {
    .category-page-title {
        margin-bottom: 12px;
        font-size: 26px;
        line-height: 1.22;
    }

    .category-intro {
        margin-bottom: 17px;
        padding-left: 0;
        font-size: 14px;
        line-height: 1.58;
    }

    .category-structured-content--top {
        margin-bottom: 17px;
    }

    .category-structured-content--top .product-seo-overview__title {
        font-size: 21px;
    }

    .category-structured-content--top .product-seo-overview__intro {
        font-size: 14px;
        line-height: 1.58;
    }

    .category-seo-text {
        margin-top: 26px;
        padding-top: 21px;
        font-size: 14px;
        line-height: 1.62;
    }

    .category-seo-text > h2 {
        margin-bottom: 16px;
        font-size: 23px;
        line-height: 1.3;
    }

    .category-semantic-content--enhanced {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .category-semantic-section {
        padding: 17px 0 15px;
    }

    .category-semantic-section__title {
        margin-bottom: 9px !important;
        font-size: 18px !important;
    }

    .category-semantic-section--wide {
        display: block;
        grid-column: auto;
        margin: 4px 0 7px;
        padding: 17px 16px;
        border-left-width: 2px;
    }

    .category-semantic-section--wide .category-semantic-section__title {
        margin-bottom: 9px !important;
    }

    .category-semantic-section--faq {
        grid-column: auto;
    }

    .category-faq__question {
        padding: 14px 0;
        font-size: 15px;
    }

    .category-faq__answer {
        padding: 0 28px 14px 0;
    }

    .category-related-links--enhanced {
        display: block;
        grid-column: auto;
        margin-top: 5px;
        padding-top: 15px;
    }

    .category-related-links__label {
        display: block;
        margin-bottom: 8px;
        padding-top: 0;
    }

}

.product-seo-articles-section.category-seo-articles-section {
    padding: 28px 0 6px;
    background: transparent;
}

@media (max-width: 767px) {
    .product-seo-articles-section.category-seo-articles-section {
        padding: 22px 0 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-faq__arrow::before,
    .category-faq__arrow::after,
    .category-related-links__items a {
        transition: none;
    }
}
