/* #last edited 2026-08-11T18:13:34.0697946+01:00 */
/**
 * Product Category Page Styling
 * SEO-optimized structure with awards, key points, expandable content, FAQ
 */

/*
 * GreenShift stores these reusable-block root rules in post meta. Keep the
 * archive contract in the child theme as well so FSE/shortcode rendering
 * cannot leave correctly structured modules without their generated CSS.
 */
.gsbp-cat-hero-root,
.gsbp-content-root,
.gsbp-key-root,
.gsbp-related-root {
    width: 100%;
    margin: 0;
    color: #25231f;
    font-family: "Josefin Sans", Arial, sans-serif;
    background: transparent !important;
}

.gsbp-cat-hero-root,
.gsbp-cat-hero-root *,
.gsbp-content-root,
.gsbp-content-root *,
.gsbp-key-root,
.gsbp-key-root *,
.gsbp-related-root,
.gsbp-related-root * {
    box-sizing: border-box;
}

.gsbp-awards-root {
    width: 100%;
    margin: 0 auto;
    background: transparent !important;
}

.gsbp-featured-root {
    width: 100%;
    margin: 0;
    background: transparent !important;
}

/* ============================================================================
   GREENSHIFT CATEGORY HERO PATTERN
   ============================================================================ */

.tld-category-hero-pattern,
.tld-category-hero {
    box-sizing: border-box;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    margin-block-start: 0 !important;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: -50vw;
    overflow-wrap: anywhere;
}

.tld-category-hero-pattern .tld-category-hero {
    left: auto;
    width: 100%;
    margin-left: 0;
}

body.tax-product_cat .wp-site-blocks > .tld-category-hero-pattern,
body.tax-product_cat .wp-site-blocks > .wp-block-shortcode:has(.tld-category-hero),
body.post-type-archive-product .wp-site-blocks > .tld-category-hero-pattern,
body.post-type-archive-product .wp-site-blocks > .wp-block-shortcode:has(.tld-category-hero) {
    margin-block-start: 0 !important;
}

.tld-category-hero,
.tld-category-hero * {
    box-sizing: border-box;
}

.tld-category-hero {
    overflow: hidden;
    background: transparent;
    color: #22211f;
}

.tld-category-hero__media {
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 280px;
    max-height: 520px;
    overflow: hidden;
    background: transparent;
}

.tld-category-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.tld-category-hero__content {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: clamp(34px, 4vw, 56px) 0 clamp(34px, 4vw, 48px);
    border-bottom: 1px solid #d9d5cd;
}

/* Awards now live in the standalone marquee pattern below the hero. */
.tld-category-hero__dynamic-awards {
    display: none !important;
}

.tld-category-hero__content > .tld-category-awards {
    justify-content: flex-start;
    max-width: 780px;
    gap: 20px;
    margin-bottom: 22px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.tld-category-hero__content > .tld-category-awards .tld-category-award {
    flex-direction: row;
    gap: 10px;
}

.tld-category-hero__content > .tld-category-awards .tld-category-award__image {
    width: 48px;
    height: 48px;
}

.tld-category-hero__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    color: #55524d;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 12px;
    line-height: 1.35;
}

.tld-category-hero__breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.tld-category-hero__breadcrumbs a:hover,
.tld-category-hero__breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.tld-category-hero__title {
    max-width: 900px;
    margin: 0 0 14px;
    color: #24221f;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(42px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.tld-category-hero__intro {
    max-width: 780px;
    margin: 0 0 22px;
    color: #34312d;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 14px;
    line-height: 1.55;
}

.tld-category-hero__intro > * {
    margin-top: 0;
    margin-bottom: 10px;
}

.tld-category-hero__intro > *:last-child {
    margin-bottom: 0;
}

.tld-category-hero__intro h2,
.tld-category-hero__intro h3 {
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
}

.tld-category-hero__details {
    width: min(100%, 860px);
    margin: 0 0 30px;
    border: 0;
    background: transparent;
}

.tld-category-hero__summary {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 0;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    list-style: none;
}

.tld-category-hero__summary::-webkit-details-marker {
    display: none;
}

.tld-category-hero__summary-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.tld-category-hero__summary-icon {
    flex: 0 0 auto;
    margin-bottom: 1px;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 16px;
    line-height: 1;
    transition: transform 180ms ease;
}

.tld-category-hero__details[data-expanded="true"] .tld-category-hero__summary-icon,
.tld-category-hero__details[open] .tld-category-hero__summary-icon {
    transform: rotate(45deg);
}

.tld-category-hero__summary-title {
    order: 2;
    color: #25231f;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.tld-category-hero__summary-description {
    display: -webkit-box;
    order: 1;
    overflow: hidden;
    color: #4b4843;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tld-category-hero__details[open] .tld-category-hero__summary-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.tld-category-hero__summary-label--open {
    display: none;
}

.tld-category-hero__details[open] .tld-category-hero__summary-label--closed {
    display: none;
}

.tld-category-hero__details[open] .tld-category-hero__summary-label--open {
    display: inline;
}

.tld-category-hero__seo-content {
    display: none;
    padding: 16px 0 0;
    border-top: 1px solid #e0ddd6;
    color: #34312d;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 15px;
    line-height: 1.7;
}

.tld-category-hero__details[data-expanded="true"] .tld-category-hero__seo-content,
details.tld-category-hero__details[open] .tld-category-hero__seo-content {
    display: block;
}

.tld-category-module {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    background: transparent;
    color: #25231f;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
}

.tld-category-module * {
    box-sizing: border-box;
}

.tld-category-hero__seo-content h2,
.tld-category-hero__seo-content h3 {
    color: #24221f;
    font-family: "Special Elite", "Courier New", monospace;
    font-weight: 400;
    line-height: 1.2;
}

.tld-category-hero__seo-content h2 {
    margin: 26px 0 12px;
    font-size: 30px;
}

.tld-category-hero__seo-content h3 {
    margin: 22px 0 10px;
    font-size: 23px;
}

.tld-category-hero__seo-content p,
.tld-category-hero__seo-content ul,
.tld-category-hero__seo-content ol {
    margin: 0 0 1em;
}

.tld-category-hero__trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    width: min(100%, 900px);
    gap: 34px;
}

.tld-category-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: #2f2d29;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.tld-category-hero__trust-item img {
    display: block;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    margin: 0;
    object-fit: contain;
}

@media (max-width: 768px) {
    .tld-category-hero__media {
        aspect-ratio: 4 / 3;
        min-height: 220px;
        max-height: 420px;
    }

    .tld-category-hero__content {
        width: calc(100% - 40px);
        padding: 27px 0 24px;
    }

    .tld-category-hero__breadcrumbs {
        gap: 8px;
        margin-bottom: 22px;
        font-size: 11px;
    }

    .tld-category-hero__title {
        margin-bottom: 14px;
        font-size: clamp(31px, 9vw, 40px);
        line-height: 1.02;
    }

    .tld-category-hero__intro {
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.5;
    }

    .tld-category-hero__intro h2,
    .tld-category-hero__intro h3 {
        font-size: 20px;
    }

    .tld-category-hero__details {
        margin-bottom: 20px;
    }

    .tld-category-hero__summary {
        min-height: 0;
        padding: 0 0 9px;
    }

    .tld-category-hero__summary-title {
        font-size: 12px;
    }

    .tld-category-hero__summary-description {
        max-width: none;
        font-size: 13px;
        line-height: 1.5;
    }

    .tld-category-hero__seo-content {
        padding: 14px 0 0;
        font-size: 14px;
    }

    .tld-category-hero__seo-content h2 {
        font-size: 25px;
    }

    .tld-category-hero__seo-content h3 {
        font-size: 20px;
    }

    .tld-category-hero__trust {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tld-category-hero__trust-item {
        gap: 12px;
        font-size: 11px;
    }

    .tld-category-hero__trust-item img {
        width: 38px;
        height: 38px;
    }

    .tld-category-hero__content > .tld-category-awards .tld-category-award__image {
        width: 42px;
        height: 42px;
    }
}

/* ============================================================================
   FIXED-IMAGE HERO OVERLAY
   The disclosure content overlays the media and scrolls internally, so opening
   it can never increase the hero or image height.
   ============================================================================ */

.tld-category-hero--has-media .tld-category-hero__media,
.tld-category-hero-pattern .tld-category-hero__media {
    position: relative;
    height: clamp(480px, 29vw, 560px);
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
}

.tld-category-hero--has-media .tld-category-hero__content,
.tld-category-hero-pattern .tld-category-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(100% - 48px, 1180px);
    height: 100%;
    margin: 0 auto;
    padding: clamp(24px, 2.6vw, 42px) 0 clamp(22px, 2.4vw, 38px);
    border-bottom: 0;
}

.tld-category-hero--has-media .tld-category-hero__breadcrumbs,
.tld-category-hero-pattern .tld-category-hero__breadcrumbs {
    width: fit-content;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    color: #25231f;
    opacity: .72;
}

.tld-category-hero--has-media .tld-category-hero__title,
.tld-category-hero-pattern .tld-category-hero__title {
    display: block;
    width: min(56%, 640px);
    max-width: none;
    margin: 0;
    color: #171613;
    font-size: clamp(40px, 4vw, 60px);
    white-space: normal;
}

.tld-category-hero--has-media .tld-category-hero__title::after,
.tld-category-hero-pattern .tld-category-hero__title::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 12px;
    background: currentColor;
}

.tld-category-hero--has-media .tld-category-hero__details,
.tld-category-hero-pattern .tld-category-hero__details {
    position: relative;
    z-index: 4;
    width: min(56%, 640px);
    margin: clamp(18px, 2vw, 28px) 0 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.tld-category-hero--has-media .tld-category-hero__summary,
.tld-category-hero-pattern .tld-category-hero__summary {
    min-height: 0;
    padding: 0 0 9px;
    background: transparent;
}

.tld-category-hero--has-media .tld-category-hero__summary-title,
.tld-category-hero-pattern .tld-category-hero__summary-title {
    color: #171613;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 10px rgba(250, 249, 246, .92);
}

.tld-category-hero--has-media .tld-category-hero__summary-description,
.tld-category-hero-pattern .tld-category-hero__summary-description {
    display: -webkit-box;
    max-width: 620px;
    color: #211f1b;
    font-size: clamp(13px, 1.02vw, 15px);
    line-height: 1.55;
    text-shadow: 0 1px 12px rgba(250, 249, 246, .96);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tld-category-hero--has-media .tld-category-hero__details[open] .tld-category-hero__summary-description,
.tld-category-hero-pattern .tld-category-hero__details[open] .tld-category-hero__summary-description {
    display: block;
    -webkit-line-clamp: unset;
}

.tld-category-hero--has-media .tld-category-hero__summary-icon,
.tld-category-hero-pattern .tld-category-hero__summary-icon {
    color: #171613;
    font-size: 16px;
    text-shadow: 0 1px 10px rgba(250, 249, 246, .92);
}

.tld-category-hero--has-media .tld-category-hero__seo-content,
.tld-category-hero-pattern .tld-category-hero__seo-content {
    position: absolute;
    top: calc(100% + 7px);
    right: -1px;
    left: -1px;
    z-index: 5;
    max-height: clamp(150px, 13vw, 205px);
    padding: 15px 18px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-top: 1px solid rgba(23, 22, 19, .5);
    background: rgba(250, 249, 246, .82);
    color: #25231f;
    scrollbar-width: thin;
    backdrop-filter: blur(8px);
}

.tld-category-hero--has-media .tld-category-hero__seo-content > :first-child,
.tld-category-hero-pattern .tld-category-hero__seo-content > :first-child {
    margin-top: 0;
}

.tld-category-hero--has-media .tld-category-hero__trust,
.tld-category-hero-pattern .tld-category-hero__trust {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    width: min(56%, 640px);
    gap: clamp(16px, 1.8vw, 26px);
    margin-top: auto;
    transition: opacity 160ms ease;
}

.tld-category-hero--has-media .tld-category-hero__content:has(.tld-category-hero__details[open]) .tld-category-hero__trust,
.tld-category-hero-pattern .tld-category-hero__content:has(.tld-category-hero__details[open]) .tld-category-hero__trust {
    visibility: hidden;
    opacity: 0;
}

.tld-category-hero--has-media .tld-category-hero__trust-item,
.tld-category-hero-pattern .tld-category-hero__trust-item {
    gap: 11px;
    color: #171613;
    text-shadow: 0 1px 10px rgba(250, 249, 246, .9);
}

.tld-category-hero--has-media .tld-category-hero__trust-item img,
.tld-category-hero-pattern .tld-category-hero__trust-item img {
    width: 42px;
    height: 42px;
    filter: grayscale(1) contrast(1.05);
}

.tld-category-hero--has-media .tld-category-hero__trust-item > span,
.tld-category-hero-pattern .tld-category-hero__trust-item > span {
    display: block;
    max-width: 128px;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .tld-category-hero--has-media .tld-category-hero__media,
    .tld-category-hero-pattern .tld-category-hero__media {
        height: clamp(540px, 145vw, 680px);
    }

    .tld-category-hero--has-media .tld-category-hero__content,
    .tld-category-hero-pattern .tld-category-hero__content {
        width: calc(100% - 32px);
        padding: 20px 0 22px;
    }

    .tld-category-hero--has-media .tld-category-hero__breadcrumbs,
    .tld-category-hero-pattern .tld-category-hero__breadcrumbs {
        display: none;
    }

    .tld-category-hero--has-media .tld-category-hero__title,
    .tld-category-hero-pattern .tld-category-hero__title {
        width: 100%;
        font-size: clamp(31px, 9vw, 42px);
        white-space: normal;
    }

    .tld-category-hero--has-media .tld-category-hero__title::after,
    .tld-category-hero-pattern .tld-category-hero__title::after {
        width: 100%;
        height: 2px;
        margin-top: 10px;
    }

    .tld-category-hero--has-media .tld-category-hero__details,
    .tld-category-hero-pattern .tld-category-hero__details {
        width: 100%;
        margin-top: 15px;
    }

    .tld-category-hero--has-media .tld-category-hero__summary,
    .tld-category-hero-pattern .tld-category-hero__summary {
        min-height: 44px;
        padding: 4px 0 9px;
    }

    .tld-category-hero--has-media .tld-category-hero__summary-title,
    .tld-category-hero-pattern .tld-category-hero__summary-title {
        font-size: 12px;
    }

    .tld-category-hero--has-media .tld-category-hero__summary-description,
    .tld-category-hero-pattern .tld-category-hero__summary-description {
        font-size: 13px;
        line-height: 1.48;
        -webkit-line-clamp: 3;
    }

    .tld-category-hero--has-media .tld-category-hero__seo-content,
    .tld-category-hero-pattern .tld-category-hero__seo-content {
        max-height: min(235px, 42svh);
        max-height: min(235px, 42dvh);
        padding: 14px 15px 8px;
        font-size: 13px;
        line-height: 1.55;
    }

    .tld-category-hero--has-media .tld-category-hero__trust,
    .tld-category-hero-pattern .tld-category-hero__trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
        gap: 8px;
    }

    .tld-category-hero--has-media .tld-category-hero__trust-item,
    .tld-category-hero-pattern .tld-category-hero__trust-item {
        flex-direction: column;
        gap: 6px;
        font-size: 9px;
        line-height: 1.2;
        text-align: center;
    }

    .tld-category-hero--has-media .tld-category-hero__trust-item > span,
    .tld-category-hero-pattern .tld-category-hero__trust-item > span {
        max-width: 100%;
    }

    .tld-category-hero--has-media .tld-category-hero__trust-item img,
    .tld-category-hero-pattern .tld-category-hero__trust-item img {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 390px) {
    .tld-category-hero--has-media .tld-category-hero__content,
    .tld-category-hero-pattern .tld-category-hero__content {
        width: calc(100% - 24px);
    }

    .tld-category-hero--has-media .tld-category-hero__title,
    .tld-category-hero-pattern .tld-category-hero__title {
        font-size: clamp(29px, 9vw, 35px);
    }

    .tld-category-hero--has-media .tld-category-hero__trust-item,
    .tld-category-hero-pattern .tld-category-hero__trust-item {
        font-size: 8px;
    }
}

/* ============================================================================
   AWARDS SECTION
   ============================================================================ */

.tld-category-awards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 0 0 32px;
    padding: 24px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tld-category-award {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tld-category-award__image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.tld-category-award__title {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: #404040;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .tld-category-awards {
        gap: 16px;
        margin-bottom: 24px;
        padding: 20px 16px;
    }

    .tld-category-award__image {
        width: 60px;
        height: 60px;
    }

    .tld-category-award__title {
        font-size: 10px;
    }
}

/* ============================================================================
   INTRODUCTION TEXT
   ============================================================================ */

.tld-category-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    text-align: center;
}

.tld-category-intro h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.tld-category-intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #404040;
    margin-bottom: 1em;
}

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

@media (max-width: 768px) {
    .tld-category-intro {
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .tld-category-intro h2 {
        font-size: 26px;
    }

    .tld-category-intro p {
        font-size: 15px;
    }
}

/* ============================================================================
   KEY POINTS SECTION (3-image-3 layout)
   ============================================================================ */

.tld-key-points {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 360px) minmax(240px, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 76px) 24px;
}

.tld-key-points__column--left,
.tld-key-points__column--right {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 36px);
}

.tld-key-points__column--left {
    align-items: flex-end;
    text-align: right;
}

.tld-key-points__column--right {
    align-items: flex-start;
    text-align: left;
}

.tld-key-points__column--center {
    min-width: 300px;
    max-width: 400px;
}

.tld-key-points__center-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tld-key-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 360px;
}

.tld-key-points__column--left .tld-key-point {
    flex-direction: row-reverse;
}

.tld-key-point__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.tld-key-point__content {
    flex: 1;
}

.tld-key-point__heading {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.tld-key-point__description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #606060;
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .tld-key-points {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 48px auto;
    }

    .tld-key-points__column--center {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .tld-key-points__column--left,
    .tld-key-points__column--right {
        align-items: flex-start;
        text-align: left;
    }

    .tld-key-points__column--left .tld-key-point {
        flex-direction: row;
    }

    .tld-key-point {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .tld-key-points {
        gap: 32px;
        margin: 40px auto;
        padding: 0 16px;
    }

    .tld-key-points__column--left,
    .tld-key-points__column--right {
        gap: 24px;
    }

    .tld-key-point__icon {
        width: 40px;
        height: 40px;
    }

    .tld-key-point__heading {
        font-size: 16px;
    }

    .tld-key-point__description {
        font-size: 13px;
    }
}

/* ============================================================================
   EXPANDABLE CONTENT (Main Content + FAQ)
   ============================================================================ */

.tld-category-expandable {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 72px) 24px;
}

.tld-category-expandable__details {
    border: none;
}

.tld-category-expandable__summary:focus-visible {
    outline: 2px solid #25231f;
    outline-offset: 3px;
}

/* Desktop: Always open, hide summary */
@media (min-width: 769px) {
    .tld-category-expandable__details {
        display: block;
    }

    .tld-category-expandable__summary {
        display: none;
    }

    .tld-category-expandable__content {
        display: block !important;
    }
}

/* Mobile: Accordion */
@media (max-width: 768px) {
    .tld-category-expandable__summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        background: transparent;
        border: 1px solid #d9d5cd;
        border-radius: 0;
        cursor: pointer;
        user-select: none;
        list-style: none;
        color: inherit;
    }

    .tld-category-expandable__summary::-webkit-details-marker {
        display: none;
    }

    .tld-category-expandable__summary h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
    }

    .tld-category-expandable__icon {
        flex-shrink: 0;
        transition: transform 300ms ease;
    }

    .tld-category-expandable__details[open] .tld-category-expandable__icon {
        transform: rotate(180deg);
    }

    .tld-category-expandable__content {
        padding: 20px 0;
    }
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.tld-category-main-content {
    margin-bottom: clamp(38px, 5vw, 56px);
}

.tld-category-main-content h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 32px 0 16px;
    color: #1a1a1a;
}

.tld-category-main-content h2:first-child {
    margin-top: 0;
}

.tld-category-main-content h3 {
    font-size: 22px;
    line-height: 1.4;
    margin: 24px 0 12px;
    color: #1a1a1a;
}

.tld-category-main-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 1em;
    color: #404040;
}

.tld-category-main-content ul,
.tld-category-main-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.tld-category-main-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.tld-category-main-content a {
    color: #1a4a5e;
    text-decoration: underline;
}

.tld-category-main-content a:hover {
    color: #0f3040;
}

.tld-category-main-content a:focus-visible,
.tld-faq-item__answer a:focus-visible,
.tld-related-blog a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .tld-category-main-content h2 {
        font-size: 24px;
    }

    .tld-category-main-content h3 {
        font-size: 20px;
    }

    .tld-category-main-content p {
        font-size: 15px;
    }
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */

.tld-category-faq {
    margin-top: clamp(40px, 5vw, 56px);
}

.tld-category-faq__title {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 32px;
    color: #1a1a1a;
    text-align: center;
}

.tld-category-faq__items {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #d9d5cd;
}

.tld-faq-item {
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #d9d5cd;
    border-radius: 0;
}

.tld-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 22px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
}

.tld-faq-item__question::-webkit-details-marker {
    display: none;
}

.tld-faq-item__question:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.tld-faq-item__icon {
    flex: 0 0 auto;
    font-family: var(--tld-font-body, "Josefin Sans", Arial, sans-serif);
    font-size: 22px;
    line-height: 1;
    transition: transform 180ms ease;
}

.tld-faq-item[open] .tld-faq-item__icon {
    transform: rotate(45deg);
}

.tld-faq-item__answer {
    padding: 0 44px 22px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #404040;
}

.tld-faq-item__answer p {
    margin-bottom: 1em;
}

.tld-faq-item__answer p:last-child {
    margin-bottom: 0;
}

.tld-faq-item__answer a {
    color: #1a4a5e;
    text-decoration: underline;
}

.tld-faq-item__answer a:hover {
    color: #0f3040;
}

@media (max-width: 768px) {
    .tld-category-faq__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .tld-faq-item {
        padding: 0;
    }

    .tld-faq-item__question {
        font-size: 16px;
    }

    .tld-faq-item__answer {
        padding-right: 20px;
        padding-bottom: 20px;
        font-size: 14px;
    }
}

/* ============================================================================
   RELATED BLOG POSTS
   ============================================================================ */

.tld-category-related-blogs {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 72px) 24px;
}

.tld-category-related-blogs__title {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 32px;
    color: #1a1a1a;
    text-align: center;
}

.tld-category-related-blogs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.tld-related-blog {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 300ms ease;
}

.tld-related-blog:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.tld-related-blog__image-link {
    display: block;
    overflow: hidden;
}

.tld-related-blog__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 400ms ease;
}

.tld-related-blog:hover .tld-related-blog__image {
    transform: scale(1.05);
}

.tld-related-blog__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tld-related-blog__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 12px;
}

.tld-related-blog__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.tld-related-blog__title a:hover {
    color: #1a4a5e;
}

.tld-related-blog__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #606060;
    margin: 0 0 16px;
    flex: 1;
}

.tld-related-blog__link {
    font-size: 14px;
    font-weight: 600;
    color: #1a4a5e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tld-related-blog__link:hover {
    color: #0f3040;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tld-category-related-blogs {
        margin: 0 auto;
        padding: 40px 20px;
    }

    .tld-category-related-blogs__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .tld-category-related-blogs__grid {
        gap: 24px;
    }

    .tld-related-blog__content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tld-category-related-blogs__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   RESPONSIVE UTILITIES
   ============================================================================ */

@media (max-width: 768px) {
    .tld-category-expandable {
        margin: 0 auto;
        padding: 40px 20px;
    }
}

/* ============================================================================
   GREENSHIFT PRODUCT ARCHIVE MODULE FINISHING
   ============================================================================ */

.tld-category-module .tld-key-points,
.tld-category-module .tld-category-expandable,
.tld-category-module .tld-category-faq,
.tld-category-module .tld-category-related-blogs {
    width: min(calc(100% - 48px), 1180px);
    margin-right: auto;
    margin-left: auto;
}

.tld-category-module--key-points,
.tld-category-module--content-faqs,
.tld-category-module--related {
    padding: 0;
    background: transparent !important;
}

.tld-category-module--content-faqs .tld-category-faq {
    width: 100%;
}

.tld-category-module .tld-key-points__center-image {
    border-radius: 0;
    box-shadow: none;
}

.tld-category-module .tld-key-point__heading,
.tld-category-module .tld-category-faq__title,
.tld-category-module .tld-category-related-blogs__title,
.tld-category-module .tld-related-blog__title {
    color: #25231f;
    font-family: "Special Elite", "Courier New", monospace;
    font-weight: 400;
}

.tld-category-module .tld-category-faq__title,
.tld-category-module .tld-category-related-blogs__title {
    font-size: clamp(30px, 3vw, 42px);
    text-align: left;
}

.tld-category-module .tld-category-faq__items {
    gap: 0;
    border-top: 1px solid #d9d5cd;
}

.tld-category-module .tld-faq-item {
    padding: 0;
    border: 0;
    border-bottom: 1px solid #d9d5cd;
    border-radius: 0;
    background: transparent;
}

.tld-category-module .tld-faq-item__question {
    font-family: "Special Elite", "Courier New", monospace;
    font-weight: 400;
}

.tld-category-module .tld-related-blog {
    border-top: 1px solid #d9d5cd;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tld-category-module .tld-related-blog:hover {
    transform: none;
    box-shadow: none;
}

.tld-category-module .tld-related-blog__content {
    padding: 22px 0 0;
}

.tld-category-module .tld-related-blog__link {
    color: #25231f;
    font-family: "Special Elite", "Courier New", monospace;
}

@media (max-width: 768px) {
    .tld-category-module .tld-key-points,
    .tld-category-module .tld-category-expandable,
    .tld-category-module .tld-category-faq,
    .tld-category-module .tld-category-related-blogs {
        width: calc(100% - 40px);
    }

    .tld-category-module .tld-category-faq__title,
    .tld-category-module .tld-category-related-blogs__title {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tld-category-expandable__icon,
    .tld-category-hero__summary-icon,
    .tld-faq-item__icon,
    .tld-related-blog,
    .tld-related-blog__image {
        transition: none;
    }
}
