/* Scoped to the homepage: the catalogue and staff pages keep their layout. */
.homepage { --home-ink: var(--color-text); --home-paper: var(--color-surface); --home-line: var(--color-border); --home-accent: var(--color-primary-dark); }
.homepage .storefront-hero { margin-bottom: 0; }
.homepage-maker { font-size: .75rem; font-weight: 600; letter-spacing: .06em; line-height: 1.6; text-transform: uppercase; color: var(--home-accent); }
.homepage-products { padding-block: clamp(2.5rem, 4vw, 4rem); }
.homepage-text-link { color: var(--home-accent); text-underline-offset: .25rem; font-size: .9rem; line-height: 1.5; }
.homepage-text-link span { margin-left: .6rem; }
.homepage-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.homepage-group { min-width: 0; background: var(--home-paper); border: 1px solid var(--home-line); border-top: 3px solid var(--color-primary); border-radius: var(--radius-md); overflow: hidden; scroll-margin-top: 6rem; }
.homepage-group-other { border-top-color: var(--color-primary-dark); }
.homepage-group-partners { border-top-color: var(--color-secondary); }
.homepage-group-heading { position: relative; padding: 1.5rem 1.4rem 1.1rem; }
.homepage-group .homepage-maker { margin: 0 0 .5rem; font-size: .65rem; }
.homepage-group-other .homepage-maker { color: var(--color-primary-dark); }
.homepage-group-partners .homepage-maker { color: var(--color-secondary); }
.homepage .homepage-group-heading h2 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.4; margin-bottom: .65rem; }
.homepage-group-description { color: var(--color-muted); font-size: .85rem; line-height: 1.65; margin: 0; }
.homepage-category { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: 1rem; padding: 1rem; border-top: 1px solid var(--home-line); }
.homepage-category-visual { height: 6rem; min-width: 0; overflow: hidden; background: var(--color-bg-body); }
.homepage-category-visual :is(.carousel, .carousel-inner, .carousel-item, .gallery-placeholder), .homepage-category-visual img { height: 100%; width: 100%; border-radius: 0; }
.homepage-category-visual img { display: block; object-fit: cover; }
.homepage-category-copy { min-width: 0; align-self: center; }
.homepage .homepage-category-copy h3 { font-size: 1rem; line-height: 1.5; margin: 0; font-weight: 600; }
.homepage-category-copy p { font-size: .8rem; line-height: 1.6; color: var(--color-muted); margin: .4rem 0 0; overflow-wrap: anywhere; }
.homepage-category .catalog-card-link { gap: .5rem; }
.homepage-category .catalog-card-link > span { color: var(--home-accent); }
.homepage-category .catalog-card-link::after { border-radius: 0; }
.homepage-category .catalog-card-link:focus-visible::after { outline-offset: -3px; }
.homepage-category:hover { background: var(--color-primary-light); }
.homepage-category-lead { display: block; padding: 0; border-top: 0; }
.homepage-category-lead .homepage-category-visual { height: auto; aspect-ratio: 16 / 10; }
.homepage-category-lead .homepage-category-copy { padding: 1rem 1.4rem 1.25rem; }
.homepage-category .gallery-placeholder { padding: .5rem; gap: .3rem; }
.homepage-category:not(.homepage-category-lead) .gallery-placeholder > span { display: none; }
/* The photo's arrows (owner, 2026-10-23: the square black ones looked ugly): small
   round translucent buttons on the large first photo, shown on hover or focus and
   always on a touch screen; none on a small thumbnail, where the dashes, a swipe
   and the row's own link are enough. */
.homepage-category :is(.carousel-control-prev, .carousel-control-next) { z-index: 2; width: 40px; opacity: 0; transition: opacity .15s ease; }
.homepage-category:is(:hover, :focus-within) :is(.carousel-control-prev, .carousel-control-next) { opacity: 1; }
@media (hover: none) { .homepage-category :is(.carousel-control-prev, .carousel-control-next) { opacity: 1; } }
.homepage-category :is(.carousel-control-prev-icon, .carousel-control-next-icon) { width: 28px; height: 28px; border-radius: 50%; background-color: rgba(41, 44, 44, .55); background-size: 50%; }
.homepage-category:not(.homepage-category-lead) :is(.carousel-control-prev, .carousel-control-next) { display: none; }
.homepage-category .carousel-indicators { z-index: 2; margin-bottom: 0; }
.homepage-category .carousel-indicators button { width: 18px; min-height: 0; height: 3px; border-block-width: 11px; border-inline: 4px solid transparent; margin-inline: -1px; }
.homepage-category:not(.homepage-category-lead) .carousel-indicators { display: none; }
.homepage-group-enquiry { padding: 2rem 1.4rem; border-top: 1px solid var(--home-line); }
.homepage-group-enquiry > .bi { font-size: 2.75rem; color: var(--color-muted); }
.homepage-group-enquiry p { font-size: .9rem; line-height: 1.7; margin-block: 1rem; }
.homepage .home-about { border-top: 1px solid var(--home-line); margin-top: 0; }
@media (max-width: 991.98px) {
    .homepage-groups { grid-template-columns: 1fr; }
    .homepage-group-heading { max-width: 44rem; }
    .homepage-category-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .homepage-category { display: block; border: 0; padding: 0; }
    .homepage-category .homepage-category-visual { height: auto; aspect-ratio: 16 / 10; }
    .homepage-category .homepage-category-copy { padding: 1rem 1.4rem 1.25rem; }
}
@media (max-width: 575.98px) {
    .homepage-category-list { grid-template-columns: 1fr; }
    .homepage-category + .homepage-category { border-top: 1px solid var(--home-line); }
    .homepage-category:not(.homepage-category-lead) { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); padding: 1rem; }
    .homepage-category:not(.homepage-category-lead) .homepage-category-visual { height: 5.5rem; aspect-ratio: auto; }
    .homepage-category:not(.homepage-category-lead) .homepage-category-copy { padding: 0; }
}
