/* Taxonomy overview and category landing pages share one visual system. */
/* Background and copy share the same hero; content height can grow for translations. */
.category-hero { position: relative; isolation: isolate; background: #eef4f7; }
.category-hero-copy { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 64px; }
.category-hero.has-banner { background: #124879; color: #fff; }
.category-hero.has-banner .category-hero-copy { min-height: clamp(400px,32vw,520px); display: flex; flex-direction: column; justify-content: center; }
.category-hero .breadcrumb { margin-bottom: 44px; font-size: 12px; flex-wrap: wrap; }
.category-hero h1 { max-width: 740px; width: 58%; margin: 16px 0 22px; font-size: clamp(36px,4vw,60px); line-height: 1.12; overflow-wrap: break-word; }
.category-hero .lead { max-width: 620px; width: 52%; margin: 0; font-size: 18px; line-height: 1.65; }
.category-hero.has-banner h1,.category-hero.has-banner .lead,.category-hero.has-banner .eyebrow,.category-hero.has-banner .breadcrumb,.category-hero.has-banner .breadcrumb a { color: #fff; }
.category-hero.has-banner .breadcrumb { opacity: .85; }
.category-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.category-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(6,38,70,.76) 0%,rgba(6,38,70,.48) 43%,rgba(6,38,70,.08) 75%,transparent 100%); }
.category-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.category-hero.without-banner h1,.category-hero.without-banner .lead { width: 100%; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px 32px; }
.category-card { display: block; min-width: 0; border-bottom: 1px solid var(--border, #dbe4e9); padding-bottom: 32px; }
.category-card-image { aspect-ratio: 4 / 3; background: transparent; overflow: hidden; }
.category-card-image img { display: block; width: 100%; height: 100%; padding: 0; object-fit: cover; object-position: center; }
.category-card:hover img { transform: none; }
.category-card-copy h2 { font-size: clamp(23px,2vw,28px); margin: 26px 0 16px; }
.category-card-copy p { color: var(--muted, #526677); }
.category-card-copy .text-link { margin-top: 12px; }
@media(max-width:640px) {
    .category-grid { grid-template-columns: 1fr; gap: 32px; }
    .category-card-image { width: 66.6667%; }
    .category-hero-copy { padding-top: 22px; padding-bottom: 40px; }
    .category-hero.has-banner .category-hero-copy { min-height: 390px; }
    .category-hero h1 { width: 100%; font-size: clamp(32px,8vw,40px); }
    .category-hero .lead { width: 100%; font-size: 16px; }
    .category-hero .breadcrumb { margin-bottom: 32px; }
    .category-hero-media img { object-position: 65% center; }
    .category-hero-media::after { background: rgba(6,38,70,.68); }
}
@media(prefers-reduced-motion:reduce) { .category-card-image img { transition: none; } }

/* Two categories use a balanced, centred pair instead of leaving a third column empty. */
.category-grid-pair {
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-width:1040px;
    margin-inline:auto;
    column-gap:clamp(48px,7vw,112px);
}
.category-grid-pair .category-card-copy p { line-height:1.75; }
@media(max-width:640px) {
    .category-grid-pair { grid-template-columns:1fr; gap:44px; max-width:420px; }
    .category-grid-pair .category-card-image { margin-inline:auto; }
}

.cms-main-image[src*="/editorial/catalog-"]{aspect-ratio:auto;height:auto;object-fit:contain}
