/**
 * Individual product page (/product/{slug}) — solid homepage green theme.
 */
/* Matches homepage Science & Research (`science-research-feature`): bg #05645a */
.page-product-detail {
    --product-green: #05645a;
    --product-green-deep: #04514a;
    --product-green-accent: #2fd79a;
}

.page-product-detail .product-detail {
    background: var(--product-green);
}

.page-product-detail .product-detail__hero {
    display: grid;
    grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.15fr);
    gap: 2rem 2.5rem;
    align-items: stretch;
}

@media (min-width: 901px) {
    .page-product-detail .product-detail__gallery {
        height: 100%;
        min-height: 0;
    }

    .page-product-detail .product-detail__media {
        flex: 1 1 auto;
        min-height: 0;
        aspect-ratio: auto;
        height: auto;
    }

    .page-product-detail .product-detail__info {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .page-product-detail .product-detail__docs {
        margin-top: auto;
    }
}

.page-product-detail .product-detail__gallery {
    gap: 0;
}

.page-product-detail .product-detail__media {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: none;
    border-radius: 1.35rem;
    background: #fff;
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.12);
}

.page-product-detail .product-detail__media-main {
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    min-height: 0;
    padding: clamp(1.25rem, 2.2vw, 1.75rem);
}

.page-product-detail .product-detail__media:has(.product-detail__thumbs) .product-detail__media-main {
    padding-bottom: clamp(1rem, 2vw, 1.35rem);
}

.page-product-detail .product-detail__thumbs {
    flex: 0 0 auto;
    margin: 0;
    padding: clamp(0.85rem, 1.6vw, 1.1rem) clamp(1.25rem, 2.2vw, 1.75rem);
    border-top: 2px solid var(--product-green);
}

.page-product-detail .product-detail__img {
    background: transparent;
    filter: none;
}

.page-product-detail .product-detail__fallback {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: transparent;
    color: #000f9f;
}

.page-product-detail .product-detail__thumb {
    border-color: rgb(5 100 90 / 0.22);
    background: #fff;
}

.page-product-detail .product-detail__thumb.is-active {
    border-color: var(--product-green);
    box-shadow: 0 0 0 3px rgb(5 100 90 / 0.2);
}

.page-product-detail .product-detail__title {
    color: #fff;
    font-size: clamp(2.65rem, 4.8vw, 3.75rem);
    line-height: 1.08;
    margin-bottom: 0.15rem;
}

.page-product-detail .product-detail__specs-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.12);
}

.page-product-detail .product-detail__specs {
    grid-template-columns: 1fr;
    gap: 0;
}

.page-product-detail .product-detail__spec {
    display: grid;
    grid-template-columns: minmax(10.5rem, 42%) minmax(0, 1fr);
    align-items: baseline;
    column-gap: clamp(1.25rem, 3.5vw, 2.75rem);
    padding: 0 0 1.05rem;
    margin-bottom: 1.05rem;
    border: 0;
    border-bottom: 1px solid rgb(5 100 90 / 0.2);
    border-radius: 0;
    background: transparent;
}

.page-product-detail .product-detail__spec:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.page-product-detail .product-detail__spec dt {
    margin: 0;
    color: var(--product-green);
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.35;
}

.page-product-detail .product-detail__spec dd {
    margin: 0;
    color: #000f9f;
    font-size: clamp(1.15rem, 1.55vw, 1.4375rem);
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.page-product-detail .product-detail__docs {
    display: grid;
    gap: 1rem;
}

.page-product-detail .product-detail__doc-label {
    margin: 0.75rem 0 0.35rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-product-detail .product-detail__doc-urls {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-product-detail .product-detail__doc-urls a {
    display: block;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.page-product-detail .product-detail__leaflet {
    background: #fff;
    color: #000f9f;
    box-shadow: 0 10px 28px rgb(0 0 0 / 0.12);
}

.page-product-detail .product-detail__leaflet:hover {
    filter: none;
    background: #fff;
    color: #000f9f;
    box-shadow: 0 14px 32px rgb(0 0 0 / 0.16);
}

.page-product-detail .product-detail__notes {
    margin-top: clamp(1.25rem, 2.8vw, 2.25rem);
    margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
    gap: clamp(1.15rem, 2.2vw, 1.75rem);
}

.page-product-detail .product-detail__note {
    border-color: rgb(255 255 255 / 0.22);
    background: rgb(255 255 255 / 0.96);
}

.page-product-detail .product-detail__note h2 {
    border-bottom: 2px solid rgb(5 100 90 / 0.35);
    color: #12103b;
}

.page-product-detail .product-detail__related h2 {
    padding-bottom: 0.55rem;
    border-bottom: 2px solid rgb(255 255 255 / 0.35);
    color: #fff;
}

.page-product-detail .product-detail__related-card {
    background: #fff;
}

@media (max-width: 900px) {
    .page-product-detail .product-detail__hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .page-product-detail .product-detail__gallery,
    .page-product-detail .product-detail__info {
        height: auto;
    }

    .page-product-detail .product-detail__media {
        flex: none;
        aspect-ratio: auto;
    }

    .page-product-detail .product-detail__media-main {
        aspect-ratio: 1;
        flex: none;
    }

    .page-product-detail .product-detail__docs {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .page-product-detail .product-detail__spec {
        grid-template-columns: 1fr;
        row-gap: 0.35rem;
    }
}
