/* Category headers; native descriptions remain unchanged in storage. */
/* Keep the native breadcrumb and its links; attach it visually to the title. */
body#category.category-id-41 #wrapper > .container > .breadcrumb {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    font-size: 11px;
    line-height: 1.4;
    color: #595959 !important;
    text-align: left;
}
body#category.category-id-41 #wrapper > .container > .breadcrumb a {
    color: #595959;
}
body#category.category-id-41 #wrapper > .container > .breadcrumb li:last-child {
    color: #404040;
}
body:is(#category, .advancedsearch-seo) .category-description-top:has(> .rte-content > .lv-category-header) {
    display: block !important;
    margin: 0;
    padding: var(--lv-header-top, 14px) 0 28px;
    border-bottom: 0;
}
body:is(#category, .advancedsearch-seo) .category-description-top .lv-category-header {
    display: grid;
    grid-template-columns: clamp(280px, 25vw, 300px) minmax(0, 840px);
    gap: 14px var(--lv-header-gap, 44px);
    align-items: start;
    max-width: calc(1140px + var(--lv-header-gap, 44px));
    margin: 0 auto 0 var(--lv-header-margin-left, auto);
}
body:is(#category, .advancedsearch-seo) .lv-category-header > .lv-header-title {
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    border: 0;
    font-size: var(--lv-header-title-size, 40px) !important;
    font-weight: var(--lv-header-title-weight, 400) !important;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-transform: var(--lv-header-title-transform, none) !important;
    text-align: var(--lv-header-title-align, right) !important;
    color: #242424 !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
body:is(#category, .advancedsearch-seo) .lv-category-header > .lv-header-title * {
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-transform: inherit !important;
}
body:is(#category, .advancedsearch-seo) .lv-category-header > .lv-header-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    margin: 24px var(--lv-header-line-right, 0) 0 var(--lv-header-line-left, auto);
    background: #242424;
}
body:is(#category, .advancedsearch-seo) .lv-header-copy {
    min-width: 0;
    font-size: var(--lv-header-text-size, 14px);
    line-height: 1.8;
    letter-spacing: 0;
    color: #595959;
    overflow-wrap: anywhere;
    text-align: var(--lv-header-text-align, justify);
}
body:is(#category, .advancedsearch-seo) .lv-header-copy :is(div, ul, ol, li, blockquote) {
    font-size: var(--lv-header-text-size, 14px) !important;
    text-align: var(--lv-header-text-align, justify) !important;
}
body:is(#category, .advancedsearch-seo) .lv-header-copy p {
    font-size: var(--lv-header-text-size, 14px) !important;
    line-height: inherit;
    text-align: var(--lv-header-text-align, justify) !important;
    text-align-last: auto;
    margin: 0 0 12px;
}
body:is(#category, .advancedsearch-seo) .lv-header-copy > :first-child { margin-top: 0; }
body:is(#category, .advancedsearch-seo) .lv-header-copy > :last-child { margin-bottom: 0; }
body:is(#category, .advancedsearch-seo) .lv-header-copy h2,
body:is(#category, .advancedsearch-seo) .lv-header-copy h3 {
    font-size: var(--lv-header-subtitle-size, 16px) !important;
    font-weight: 500;
    line-height: 1.55;
    color: #242424;
    margin: 0 0 14px;
    text-align: var(--lv-header-subtitle-align, left) !important;
}
body:is(#category, .advancedsearch-seo) .lv-header-copy span { font-size: inherit !important; color: inherit !important; }
body:is(#category, .advancedsearch-seo) .lv-header-copy :is(a, strong, em, b, i, u, font) { font-size: inherit !important; }
body:is(#category, .advancedsearch-seo) .lv-header-copy img { max-width: 100%; height: auto; }
body:is(#category, .advancedsearch-seo) .lv-header-copy table { display: block; max-width: 100%; overflow-x: auto; }
body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-title-only { display: block; }
body:is(#category, .advancedsearch-seo) .lv-header-title-only > .lv-header-title { text-align: var(--lv-header-solo-align, center) !important; }
body:is(#category, .advancedsearch-seo) .lv-header-title-only > .lv-header-title::after { margin-left: var(--lv-header-solo-line-left, auto); margin-right: auto; }
@media (min-width: 992px) {
    body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-long-title:not(.lv-header-title-only) {
        grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    }
}
/* Equal outer columns center the copy on the whole page, not the remaining space. */
body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-page-center {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}
@media (min-width: 1400px) {
    body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-page-center:not(.lv-header-title-only) {
        grid-template-columns: minmax(260px, 1fr) minmax(0, 840px) minmax(260px, 1fr);
    }
    body:is(#category, .advancedsearch-seo) .lv-header-page-center > .lv-header-title { grid-column: 1; }
    body:is(#category, .advancedsearch-seo) .lv-header-page-center > .lv-header-copy { grid-column: 2; }
}
@media (min-width: 768px) and (max-width: 1399px) {
    body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-page-center:not(.lv-header-title-only) {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--lv-header-gap, 44px);
    }
    body:is(#category, .advancedsearch-seo) .lv-header-page-center > .lv-header-copy {
        width: 100%;
        max-width: 840px;
        margin-inline: auto;
    }
}
@media (max-width: 767px) {
    body:is(#category, .advancedsearch-seo) .category-description-top:has(> .rte-content > .lv-category-header) { padding: var(--lv-header-top, 14px) 0 24px; }
    body:is(#category, .advancedsearch-seo) .category-description-top .lv-category-header { display: block; }
    body:is(#category, .advancedsearch-seo) .lv-category-header > .lv-header-title {
        margin-bottom: 20px !important;
        font-size: min(30px, var(--lv-header-title-size, 40px)) !important;
        text-align: left !important;
    }
    body:is(#category, .advancedsearch-seo) .lv-category-header > .lv-header-title::after { display: none; }
    body:is(#category, .advancedsearch-seo) .lv-header-copy,
    body:is(#category, .advancedsearch-seo) .lv-header-copy :is(p, div, ul, ol, li, blockquote, h2, h3) { text-align: left !important; }
}

/* One gap on each side of the rule; retain the same centered layout on mobile. */
body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-stacked-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
}
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center > .lv-header-title {
    width: 100%;
    margin-bottom: 0 !important;
    text-align: var(--lv-header-title-align, center) !important;
}
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center > .lv-header-title::after {
    display: block;
    margin: var(--lv-header-gap, 44px) var(--lv-header-line-right, auto) 0 var(--lv-header-line-left, auto);
}
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center > .lv-header-copy {
    width: 100%;
    max-width: 840px;
    margin: var(--lv-header-gap, 44px) auto 0;
}
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center .lv-header-copy,
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center .lv-header-copy :is(p, div, ul, ol, li, blockquote, h2, h3) {
    text-align: var(--lv-header-text-align, center) !important;
}
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center .lv-header-copy > :first-child { margin-top: 0 !important; }
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center.lv-header-title-only > .lv-header-copy { display: none; }

/* Ignore preserved newline characters, while allowing natural wrapping on narrow screens. */
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center > .lv-header-title,
body:is(#category, .advancedsearch-seo) .lv-header-stacked-center > .lv-header-title * {
    white-space: normal !important;
}

/* Responsive introduction disclosure; full original content is the no-JS fallback. */
body:is(#category, .advancedsearch-seo) .lv-header-copy-full > :first-child,
body:is(#category, .advancedsearch-seo) .lv-header-copy-preview > :first-child { margin-top: 0 !important; }
body:is(#category, .advancedsearch-seo) .lv-header-copy-full > :last-child,
body:is(#category, .advancedsearch-seo) .lv-header-copy-preview > :last-child { margin-bottom: 0 !important; }
body:is(#category, .advancedsearch-seo) .lv-header-copy :is(.lv-header-copy-full, .lv-header-copy-preview, .lv-header-copy-toggle)[hidden] { display: none !important; }
body:is(#category, .advancedsearch-seo) .lv-header-copy-toggle {
    appearance: none;
    display: inline-block;
    padding: 0;
    margin: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #242424;
    font: inherit;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
body:is(#category, .advancedsearch-seo) .lv-header-copy-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* The collapsed control shares the final text line; its width is included in the cut. */
body:is(#category, .advancedsearch-seo) .lv-header-copy-preview .lv-header-copy-toggle {
    margin: 0;
    font-size: var(--lv-header-text-size, 14px);
    font-weight: 400;
    white-space: nowrap;
    vertical-align: baseline;
}

/* A vertical group anchored left, with the right half available for future visuals. */
body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-stacked-left {
    max-width: 840px;
    margin-inline: 0;
}
@media (min-width: 992px) {
    body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-stacked-left {
        width: calc((100% - var(--lv-header-gap, 44px)) / 2);
    }
}

/* Opt-in category artwork: the module works with Iqit's image switch off. */
body:is(#category, .advancedsearch-seo) .lv-header-backdrop { display: none; }
body:is(#category, .advancedsearch-seo) #main:has(.lv-header-background) > .category-image { display: none !important; }
body:is(#category, .advancedsearch-seo) .category-description-top > .rte-content:has(> .lv-header-background) {
    container-type: inline-size;
}
@media (min-width: 1400px) {
    body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-background {
        position: relative;
        isolation: isolate;
        width: var(--lv-backdrop-width, 100%);
        max-width: none;
        margin-inline: 0;
        margin-left: calc(0px - var(--lv-backdrop-offset, 0px));
        padding: 32px 0;
        min-height: calc(var(--lv-backdrop-width, 100cqw) * var(--lv-backdrop-ratio, .228125));
        justify-content: center;
        background: linear-gradient(90deg, #d4ded5, #f8f9f6 50%, #d4ded5);
    }
    body:is(#category, .advancedsearch-seo) .category-description-top:has(> .rte-content > .lv-header-background) {
        padding-bottom: 0;
    }
    body:is(#category, .advancedsearch-seo) #main:has(.lv-header-background) > #lv-filterbar,
    body:is(#category, .advancedsearch-seo) #main:has(.lv-header-background) > .PM_ASBlockOutput {
        margin-top: 0;
    }
    body:is(#category, .advancedsearch-seo) .lv-header-background > .lv-header-backdrop {
        position: absolute;
        z-index: -1;
        inset: 0;
        display: flex;
        align-items: center;
        pointer-events: none;
        overflow: hidden;
    }
    body:is(#category, .advancedsearch-seo) .lv-header-backdrop > img {
        display: block;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
    }
    body:is(#category, .advancedsearch-seo) .lv-header-background > .lv-header-title,
    body:is(#category, .advancedsearch-seo) .lv-header-background > .lv-header-copy {
        position: relative;
        width: 28%;
        max-width: none;
    }
}

/* Taller artwork: keep the established short header; reveal more of the same image
 * as the original HTML grows. Only the picture is clipped, never the text.
 * The image stays width:100% / height:auto in both disclosure states. */
@media (min-width: 1400px) {
    body:is(#category, .advancedsearch-seo) .category-description-top .lv-header-background.lv-header-reveal {
        min-height: calc(var(--lv-backdrop-width, 100cqw) * .228125);
        background: #fff;
    }
}

/* Only while streamed markup is incomplete. Without JS, the original text stays open.
 * Once initialized, the existing measured inline disclosure takes over atomically. */
html.lv-header-js body:is(#category, .advancedsearch-seo) .lv-header-initial-excerpt:not([data-lv-header-initialized]) > .lv-header-copy {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--lv-header-initial-desktop, unset);
    overflow: hidden;
}
@media (max-width: 767px) {
    html.lv-header-js body:is(#category, .advancedsearch-seo) .lv-header-initial-excerpt:not([data-lv-header-initialized]) > .lv-header-copy {
        -webkit-line-clamp: var(--lv-header-initial-mobile, unset);
    }
}
