/* Single Home WWTS refinements. Elementor owns section composition. */

.wwts-home-related-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 4px;
    row-gap: 4px;
    font-family: var(--wwts-font-text);
    font-weight: var(--wwts-text-weight);
    font-style: var(--wwts-text-style);
    line-height: var(--wwts-text-line-height);
    color: var(--wwts-color-text);
}

.wwts-home-related-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--wwts-color-primary);
}

.wwts-home-related-brand__icon svg {
    display: block;
    width: 0.875em !important;
    height: 0.8em !important;
    fill: currentColor;
}

.wwts-home-related-brand__label {
    font-weight: inherit;
    color: inherit;
}

.wwts-home-related-brand a {
    color: var(--wwts-color-accent);
    text-decoration: none;
}

.wwts-home-related-brand a:hover,
.wwts-home-related-brand a:focus-visible {
    color: var(--wwts-color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* The gallery is optional. Remove the whole Elementor section when the
   structured Home gallery has no rows, so an empty section/inner cannot leave
   a large vertical gap between the information and article blocks. */
.single-home_items .wwts-section:has(.wwts-home-media-section):not(:has(.wwts-rf-home-gallery)) {
    display: none !important;
}

/* Fallback for compositions where the outer layout class is unavailable. */
.single-home_items .wwts-home-media-section:not(:has(.wwts-rf-home-gallery)) {
    display: none !important;
}

/* Specs layout is intentionally not defined here. The `Specs and brand`
   Elementor container owns direction, gap and responsive layout. */
