/* ==========================================================================
   INNER PAGES
   Shared by Main, List, Regular and non-product Single pages.
   Product Item keeps its own composition.
   ========================================================================== */

/* Hero */
.page-hero{
    position:relative;
    min-height:550px;
    overflow:hidden;
    background:var(--body-bg,#f5f7fa);
}

.page-hero-media{
    position:absolute;
    inset:0 0 auto auto;
    width:80%;
    height:100%;
    overflow:hidden;
}

/* Background image sits on its own element so the lower edge can truly fade out. */
.page-hero-media::after{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(
            90deg,
            var(--body-bg,#f5f7fa) 0%,
            rgba(245,247,250,.97) 15%,
            rgba(245,247,250,.72) 30%,
            rgba(245,247,250,.26) 45%,
            transparent 61%
        ),
        linear-gradient(
            0deg,
            var(--body-bg,#f5f7fa) 0%,
            rgba(245,247,250,.98) 14%,
            rgba(245,247,250,.78) 28%,
            rgba(245,247,250,.38) 42%,
            transparent 58%
        ),
        var(--hero-bg);
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
}

.page-hero-media-fallback::after{
    background:
        radial-gradient(ellipse at 76% 35%,rgba(3,186,240,.11),transparent 46%),
        linear-gradient(120deg,#eef4f8,var(--body-bg,#f5f7fa) 76%);
}

.page-hero-inner{
    position:relative;
    z-index:1;
    display:flex;
    min-height:550px;
    align-items:flex-start;
    padding-top:90px;
}

.page-hero-copy{
    width:min(750px,56%);
}

.page-hero-copy>*{max-width:100%;}

.page-hero .breadcrumbs{
    margin-bottom:10px;
    color:#70808d;
}

.page-hero h1{
    margin:0 0 22px;
    color:var(--blue);
    font-size:clamp(44px,3.45vw,66px);
    font-weight:300;
    line-height:1.02;
    letter-spacing:-.025em;
}

.page-subtitle{
    position:relative;
    margin:0 0 24px;
    padding-bottom:17px;
    color:#26343f;
    font-size:22px;
    line-height:1.4;
}

.page-subtitle::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:42px;
    height:3px;
    border-radius:3px;
    background:var(--blue);
}

.page-intro{
    width:100%;
    margin:0;
    color:#465560;
    font-size:18px;
    line-height:1.65;
}

.page-intro p{margin:0 0 14px;font-size:16px;line-height:1.5;}
.page-intro p:last-child{margin-bottom:0;}

/* Shared content shell */
.inner-page-shell{
    padding:0 0 100px;
    background:var(--body-bg,#f5f7fa);
}

.inner-page-shell>.container{padding-top:0;}

.inner-section{margin-top:64px;}
.inner-section:first-child{margin-top:0;}

.inner-editorial-section{
    margin:0 0 70px;
}

.inner-editorial-grid{
    display:grid;
    align-items:start;
}

.inner-editorial-grid.has-two{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.inner-editorial-column{
    padding:10px 60px;
    color:#46535e;
    font-size:18px;
    line-height:1.7;
}

.inner-editorial-grid.has-two .inner-editorial-column+.inner-editorial-column{
    border-left:1px solid #dce3e8;
}

.inner-editorial-grid.has-one{
    width:70%;
    margin-inline:auto;
}

.inner-editorial-column h2, .inner-editorial-column h3{
    margin:0 0 20px;
    color:#202d37;
    font-size:25px;
    font-weight:500;
    line-height:1.25;
}

.inner-editorial-column p{margin:0 0 16px;}
.inner-editorial-column p:last-child{margin-bottom:0;}
.inner-editorial-column strong{color:#202d37;font-weight:600;}

.inner-after-children, .inner-after-editorial{
    display:grid;
    gap:72px;
}

/* Listing grid */
.listing-section, .child-pages-section{
    margin:0 0 82px;
}

.archive-grid{
    display:grid;
    gap:22px;
}

.archive-grid.layout-grid_4{grid-template-columns:repeat(4,minmax(0,1fr));}
.archive-grid.layout-grid_3{grid-template-columns:repeat(3,minmax(0,1fr));}
.archive-grid.layout-list{grid-template-columns:1fr;gap:18px;}

/* One card component; grid mode only changes proportions. */
.content-card{
    min-width:0;
    overflow:hidden;
    border:1px solid #e3e8ed;
    border-radius:10px;
    background:#fff;
    box-shadow:0 7px 22px rgba(29,58,76,.05);
    transition:transform .3s ease,box-shadow .3s ease;
}

.content-card:hover{
    transform:translateY(-5px);
    box-shadow:0 17px 38px rgba(29,58,76,.10);
}

.content-card-link{
    display:flex;
    min-height:100%;
    flex-direction:column;
    color:inherit;
}

.content-card-media{
    position:relative;
    aspect-ratio:1.26;
    overflow:hidden;
    background:linear-gradient(145deg,#f3f7fa,#fff);
}

.content-card-media::after{
    content:"";
    position:absolute;
    inset:auto 0 0;
    height:22%;
    background:linear-gradient(transparent,rgba(255,255,255,.78));
    pointer-events:none;
}

.content-card-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .5s ease;
}

.content-card:hover .content-card-media img{
    transform:scale(1.035);
}

.content-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:20px 20px 22px;
}

.content-card-body h2{
    margin:0 0 10px;
    color:#142240;
    font-size:21px;
    font-weight:600;
    line-height:1.18;
}

.content-card-abstract{
    display:-webkit-box;
    margin:0 0 20px;
    overflow:hidden;
    color:var(--muted-text);
    font-size:14px;
    line-height:1.5;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
}

.content-card .card-arrow{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-top:auto;
    color:var(--cyan);
    font-size:12px;
    text-transform:uppercase;
}

/* 4 columns: compact Product Families look */
.layout-grid_4 .content-card-body{padding:18px 18px 20px;}
.layout-grid_4 .content-card-body h2{font-size:19px;}
.layout-grid_4 .content-card-abstract{
    font-size:13px;
    -webkit-line-clamp:2;
}

/* 3 columns: larger editorial cards */
.layout-grid_3 .content-card-media{aspect-ratio:1.35;}
.layout-grid_3 .content-card-body{padding:24px 24px 26px;}
.layout-grid_3 .content-card-body h2{font-size:23px;}
.layout-grid_3 .content-card-abstract{font-size:15px;}

/* List mode: same card markup, horizontal composition */
.layout-list .content-card-link{
    display:grid;
    grid-template-columns:minmax(300px,34%) minmax(0,1fr);
}

.layout-list .content-card-media{
    min-height:245px;
    aspect-ratio:auto;
}

.layout-list .content-card-body{
    justify-content:center;
    padding:34px 42px;
}

.layout-list .content-card-body h2{font-size:27px;}

.layout-list .content-card-abstract{
    max-width:720px;
    font-size:16px;
    -webkit-line-clamp:4;
}

/* Resources / gallery / related */
.item-gallery{
    position:relative;
    margin:0;
}

.item-gallery.is-slider{
    display:block;
    overflow:visible;
}

.item-gallery-slider-stage{
    position:relative;
    min-height:clamp(360px,45vw,720px);
    overflow:hidden;
    border-radius:12px;
    background:#fff;
}

.item-gallery.is-slider .gallery-item{
    position:absolute;
    inset:0;
    display:grid;
    margin:0;
    place-items:center;
    opacity:0;
    visibility:hidden;
    transform:translateX(16px);
    transition:opacity .32s ease,transform .38s cubic-bezier(.2,.7,.2,1),visibility .32s ease;
}

.item-gallery.is-slider .gallery-item.is-active{
    opacity:1;
    visibility:visible;
    transform:none;
}

.item-gallery.is-slider .gallery-item img{
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:clamp(360px,45vw,720px);
    object-fit:contain;
}

.item-gallery-arrow{
    position:absolute;
    z-index:4;
    top:50%;
    transform:translateY(-50%);
}

.item-gallery-prev{left:18px;}
.item-gallery-next{right:18px;}

.item-gallery-dots{
    display:flex;
    justify-content:center;
    gap:9px;
    margin-top:15px;
}

.item-gallery-dots button{
    width:8px;
    height:8px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#d5dade;
    cursor:pointer;
    transition:background .2s ease,transform .2s ease;
}

.item-gallery-dots button:hover{transform:scale(1.2);}
.item-gallery-dots button.is-active{background:#727c84;}

.item-gallery.is-masonry{
    columns:3 320px;
    column-gap:22px;
}

.item-gallery.is-masonry .gallery-item{
    margin:0 0 22px;
    break-inside:avoid;
}

.item-gallery.is-masonry img{
    display:block;
    width:100%;
    border-radius:16px;
}

.gallery-lightbox-trigger{
    display:block;
    width:100%;
    padding:0;
    border:0;
    background:transparent;
    cursor:zoom-in;
}

.item-gallery.is-slider .gallery-lightbox-trigger{
    display:grid;
    height:100%;
    place-items:center;
}

.item-gallery.is-slider .gallery-lightbox-trigger img{
    width:auto;
}

/* Related Products inherit the exact Product List media treatment. */
.inner-related-type-product .content-card-media{
    display:grid;
    place-items:center;
    padding:14px;
}

.inner-related-type-product .content-card-media::after{
    display:none;
}

.inner-related-type-product .content-card-media img{
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.inner-related-type-product .content-card:hover .content-card-media img{
    transform:scale(1.025);
}

.inner-resources-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
}

.inner-resources-grid:empty{display:none;}

.item-links, .download-list{
    display:grid;
    gap:12px;
}

.download-row{
    display:flex;
    min-height:64px;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    border-radius:8px;
    background:#fff;
    box-shadow:0 7px 22px rgba(29,67,94,.06);
}

.download-row:hover{
    color:var(--blue);
    transform:translateY(-2px);
}

.inner-related-section{margin-top:84px;}
.inner-related-section .section-heading{margin-bottom:28px;}
.inner-related-section .section-heading h2{
    margin:0;
    font-size:30px;
    font-weight:400;
    line-height:1.2;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:48px;
}

/* Team */
.team-details{
    display:grid;
    gap:16px;
    margin-top:36px;
    padding:34px 38px;
    border-radius:12px;
    background:rgba(255,255,255,.78);
    box-shadow:0 10px 30px rgba(29,58,76,.055);
}

.team-contact, .team-socials{
    display:flex;
    flex-wrap:wrap;
    gap:14px 22px;
}

/* Responsive */
@media(max-width:1380px){
    .page-hero{min-height:550px;}
    .page-hero-inner{min-height:550px;}

    .page-hero-media{width:80%;}
    .page-hero-copy{width:min(750px,56%);}

}

@media(max-width:1100px){
    .page-hero{min-height:550px;}
    .page-hero-inner{min-height:550px;}

    .page-hero-media{
        width:80%;
        opacity:.88;
    }

    .archive-grid.layout-grid_3, .archive-grid.layout-grid_4{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .inner-resources-grid{grid-template-columns:1fr;}
}

@media(max-width:760px){
    .page-hero, .page-hero-inner{min-height:620px;}

    .page-hero-media{
        width:100%;
        height:58%;
        opacity:.72;
    }

    .page-hero-media::after{
        background-image:
            linear-gradient(0deg,var(--body-bg,#f5f7fa),transparent 55%),
            linear-gradient(90deg,rgba(245,247,250,.52),rgba(245,247,250,.08)),
            var(--hero-bg);
    }

    .page-hero-inner{
        align-items:flex-end;
        padding-top:var(--header-h);
        padding-bottom:46px;
    }

    .page-hero-copy{
        width:100%;
    }

    .page-hero h1{font-size:42px;}
    .page-subtitle{font-size:19px;}
    .page-intro{font-size:16px;}

    .inner-page-shell>.container{padding-top:0;}

    .inner-editorial-grid.has-two{
        grid-template-columns:1fr;
        gap:34px;
    }

    .inner-editorial-grid.has-one{
        width:100%;
    }

    .inner-editorial-grid.has-two .inner-editorial-column,
    .inner-editorial-grid.has-two .inner-editorial-column+.inner-editorial-column{
        padding:24px 20px;
        border:0;
    }

    .inner-editorial-grid.has-one .inner-editorial-column{
        padding:24px 20px;
    }

    .archive-grid.layout-grid_3, .archive-grid.layout-grid_4{
        grid-template-columns:1fr;
    }

    .layout-list .content-card-link{grid-template-columns:1fr;}
    .layout-list .content-card-media{
        min-height:0;
        aspect-ratio:1.35;
    }
    .layout-list .content-card-body{padding:24px 22px;}
    .layout-list .content-card-body h2{font-size:22px;}

    .inner-after-children, .inner-after-editorial{gap:48px;}

    .item-gallery.is-masonry{columns:1;}
}


/* Card action stays on one line and never collapses. */
.content-card .card-arrow{
    display:inline-flex;
    width:max-content;
    max-width:100%;
    align-items:center;
    gap:8px;
    white-space:nowrap;
    line-height:1;
}
.content-card .card-arrow>span{display:block;white-space:nowrap;}
.content-card .card-arrow svg{display:block;flex:0 0 18px;width:18px;height:18px;}


/* Product List: preserve the complete listing image inside the card. */
.instrument-list-product .content-card-media{
    display:grid;
    place-items:center;
    padding:14px;
}
.instrument-list-product .content-card-media::after{display:none;}
.instrument-list-product .content-card-media img{
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}
.instrument-list-product .content-card:hover .content-card-media img{transform:scale(1.025);}

/* Card action is a text link, never a filled/circular button. */
.content-card .card-arrow{
    width:max-content;
    height:auto;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}

/* Team list — dedicated template design. */
.instrument-list-team .inner-page-shell>.container{padding-top:0;}
.team-people-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}
.team-person-card{
    overflow:hidden;
    border:1px solid #e5e9ed;
    border-radius:6px;
    background:#fff;
    box-shadow:0 8px 24px rgba(29,58,76,.055);
}
.team-person-card .content-card-link{
    display:grid;
    grid-template-columns:46% 54%;
    min-height:210px;
}
.team-person-card .content-card-media{
    height:100%;
    aspect-ratio:auto;
    background:linear-gradient(145deg,#eef4f8,#fff);
}
.team-person-card .content-card-media::after{display:none;}
.team-person-card .content-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center top;
}
.team-person-card .content-card-body{
    justify-content:center;
    padding:26px 26px 22px;
}
.team-person-card .content-card-body h2{
    margin:0;
    font-size:20px;
    font-weight:600;
    text-transform:uppercase;
}
.team-card-divider{
    display:block;
    width:28px;
    height:2px;
    margin:13px 0 11px;
    background:var(--blue);
}
.team-person-card .card-position{
    margin:0 0 14px;
    color:#4d5962;
    font-size:14px;
    line-height:1.4;
}
.team-card-social{
    display:grid;
    width:25px;
    height:25px;
    place-items:center;
    border-radius:0;
    background:transparent;
    color:#111;
    font-size:11px;
    font-weight:600;
}

@media(max-width:1100px){
    .team-people-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:680px){
    .team-people-grid{grid-template-columns:1fr;}
}


/* Static cards have no fake interaction. */
.content-card-link.is-static{
    cursor:default;
}

.content-card-static:hover{
    transform:none;
    box-shadow:0 7px 22px rgba(29,58,76,.05);
}

.content-card-date{
    display:block;
    margin-bottom:8px;
    color:#7c7f85;
    font-size:13px;
}


/* Team card: detail navigation and social profiles are separate targets. */
.team-card-layout{
    color:inherit;
}

.team-card-detail-link{
    display:block;
    width:100%;
    height:100%;
}

.team-card-title-link{
    color:inherit;
}

.team-card-title-link:hover{
    color:var(--blue);
}

.team-card-socials{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.team-card-social{
    display:grid;
    width:28px;
    height:28px;
    padding:0;
    place-items:center;
    overflow:hidden;
    border-radius:0;
    background:transparent;
    color:#111;
    font-size:11px;
    font-weight:600;
    transition:transform .22s ease,color .22s ease;
}

.team-card-social img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.team-card-social:hover{
    background:transparent;
    color:var(--blue);
    transform:translateY(-2px);
}


/* Related sections use the visual system of the content they contain. */
.inner-related-section.inner-related-type-faq,
.inner-related-section.inner-related-type-download,
.inner-related-section.inner-related-type-team,
.inner-related-section.inner-related-type-news,
.inner-related-section.inner-related-type-article,
.inner-related-section.inner-related-type-info_box{
    width:100%;
}

.inner-related-section .faq-accordion,
.inner-related-section .downloads-table{
    margin-bottom:0;
}

.inner-related-section .team-people-grid,
.inner-related-section .editorial-list-grid,
.inner-related-section .archive-grid{
    margin:0;
}

.inner-related-cross{
    padding-top:4px;
}


.inner-related-type-product .archive-grid.layout-grid_3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.inner-related-type-product .content-card{
    border-radius:10px;
}

.inner-related-type-product .content-card-media{
    display:grid;
    aspect-ratio:1.26;
    padding:14px;
    place-items:center;
}

.inner-related-type-product .content-card-media::after{
    display:none;
}

.inner-related-type-product .content-card-media img{
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.inner-related-type-product .content-card-body{
    padding:20px 20px 22px;
}

.inner-related-type-product .content-card-body h2{
    font-size:21px;
}

.inner-related-type-product .content-card:hover .content-card-media img{
    transform:scale(1.025);
}

@media(max-width:1100px){
    .inner-related-type-product .archive-grid.layout-grid_3{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:760px){
    .inner-related-type-product .archive-grid.layout-grid_3{
        grid-template-columns:1fr;
    }
}


/* Shared file-format icons */
.file-format-icon,
.product-file-format-icon{
    display:block;
    width:34px;
    height:40px;
    object-fit:contain;
}

.product-document-icon{
    display:grid;
    width:40px;
    height:44px;
    place-items:center;
}

.product-document-icon .product-file-format-icon{
    width:34px;
    height:40px;
}

.downloads-table-title{
    display:flex;
    min-width:0;
    align-items:center;
    gap:14px;
}

.downloads-file-icon{
    display:grid;
    flex:0 0 38px;
    width:38px;
    place-items:center;
}

.downloads-file-icon .file-format-icon{
    width:32px;
    height:38px;
}

.downloads-file-copy{
    display:grid;
    min-width:0;
    gap:3px;
}

.download-row{
    grid-template-columns:42px minmax(0,1fr) auto;
    align-items:center;
}

.download-file-icon{
    display:grid;
    place-items:center;
}

.download-file-icon .file-format-icon{
    width:30px;
    height:36px;
}
