/* Opuntia extends the existing CLT Greece project case-study system. */
.opuntia-project {
    padding-bottom: 0;
    overflow-x: clip;
}

/* Keep the existing footer readable against the case-study background. */
body:has(.opuntia-project) .footer .bottom p,
body:has(.opuntia-project) .footer .bottom a {
    color: #57524b;
}

.opuntia-title {
    padding-top: clamp(24px, 4vw, 56px);
    padding-bottom: clamp(24px, 3vw, 40px);
}

.opuntia-projects-link,
.opuntia-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #8f3f10;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.opuntia-projects-link svg,
.opuntia-watch-link svg {
    flex: none;
}

.opuntia-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.opuntia-title h1 {
    margin: 0;
    color: #231d18;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-transform: none;
}

.opuntia-watch-link {
    flex: none;
    padding-bottom: 3px;
}

.clt-opuntia {
    --cc-muted: #66594e;
    margin-top: 0;
}

.clt-opuntia .opuntia-hero .cc-video {
    box-shadow: none;
}

.clt-opuntia > .opuntia-overview {
    margin-top: clamp(40px, 6vw, 80px);
}

.clt-opuntia .cc-cap {
    max-width: none;
}

.clt-opuntia .cc-toc a:not(.cc-btn) {
    min-height: 44px;
}

.clt-opuntia .cc-toc {
    margin-inline: 0;
    padding-inline: 0;
    max-width: 100%;
}

.clt-opuntia .cc-specs {
    row-gap: 8px;
}

.clt-opuntia .cc-specs .cc-dt {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.clt-opuntia h2 {
    letter-spacing: 0.025em;
    word-spacing: normal;
    text-transform: none;
}

.clt-opuntia h3 {
    margin: 20px 0 10px;
    color: var(--cc-ink);
    font-size: 23px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.opuntia-floor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.opuntia-floor-grid {
    gap: 48px;
}

.opuntia-floor h3 {
    margin-top: 0;
}

.opuntia-floor p {
    min-height: 120px;
}

.opuntia-floor .cc-fig {
    background: #fff;
    border-radius: var(--cc-radius);
}

.opuntia-floor .cc-fig img {
    max-height: 480px;
    object-fit: contain;
    box-shadow: none;
    background: #fff;
}

.clt-opuntia .opuntia-zoom {
    display: block;
    cursor: zoom-in;
}

.clt-opuntia > .opuntia-close {
    margin-bottom: 0;
}

.opuntia-project a:focus-visible {
    outline: 2px solid #8f3f10;
    outline-offset: 5px;
}

@media (max-width: 767.98px) {
    .opuntia-title-row {
        display: block;
    }

    .opuntia-watch-link {
        margin-top: 16px;
    }

    .opuntia-floor-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .opuntia-floor p {
        min-height: 0;
    }

    .clt-opuntia .cc-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
    }

    .clt-opuntia .cc-specs .cc-spec-key .cc-dd {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .opuntia-project * {
        scroll-behavior: auto;
    }
}
