/*!
 * Echelon Block Styles
 *
 * Styles for registered block style variations and shared CSS variables.
 * This file is loaded in BOTH the frontend and block editor via enqueue_block_assets.
 *
 * @see inc/admin/blocks.php for enqueueing the blocks.css file
 * @see site specific editor.js file for block style registration
 */

/* Tagline Style - registered for advancedheading block */
.is-style-tagline,
.is-style-tagline .kadence-advancedheading-text {
    font-size: var(--wp--preset--font-size--medium);
    font-family: var(--global-heading-font-family);
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
}

/* Large Display Style - registered for advancedheading block */
.is-style-large-display,
.is-style-large-display .kadence-advancedheading-text {
    font-size: clamp(2.625rem, 2.0485rem + 2.4595vw, 5rem);
    line-height: 1;
    font-weight: 700 !important;
}

/* Native Query Loop */
.wp-block-post-template {
    margin: 0;
}

/* Breadcrumbs */
.yoast-breadcrumbs {
    font-size: clamp(0.875rem, 0.845rem + 0.129vw, 1rem);
}

/* The design draws the home icon as a thin outline house, and a mask lets it take the text color. */
.yoast-breadcrumbs::before {
    width: clamp(0.875rem, 0.784rem + 0.388vw, 1.25rem);
    height: clamp(0.875rem, 0.784rem + 0.388vw, 1.25rem);
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8'/%3E%3Cpath d='M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") no-repeat center / contain;
    top: 2px;
    vertical-align: middle;
}

/* Forced colors drop the masked icon's fill, so it takes the system text color. */
@media (forced-colors: active) {
    .yoast-breadcrumbs::before {
        forced-color-adjust: none;
        background: CanvasText;
    }
}

/* Yoast prints the separator between plain spaces, so extra word spacing gives it the design's wider gaps. */
.yoast-breadcrumbs > span {
    word-spacing: 4px;
}

.yoast-breadcrumbs > span > span {
    word-spacing: normal;
}

.yoast-breadcrumbs a {
    font-weight: 700;
    color: var(--global-palette3);
    text-decoration: underline;
}

.yoast-breadcrumbs a:hover {
    text-underline-offset: 3px;
}

/* Buttons */

.kt-button.kt-btn-size-small {
    padding: .375rem .5rem;
}

.kb-button.kt-btn-size-standard {
    padding: 0.75rem 1.125rem;
}

.kt-button.kt-btn-size-large {
    font-size: clamp(1.25rem, 0.95rem + 0.8vw, 1.75rem);
    padding: 1.5625rem 1.75rem;
}

.kt-button,
.kt-button.kb-btn-global-fill {
    border-radius: 0;
    border-width: 2px;
}

.kt-button.kb-btn-global-fill {
    background-color: var(--global-palette2);
    border-color: var(--global-palette2);
    color: var(--global-palette3);
}

.kt-button.kb-btn-global-fill:hover,
.kt-button.kb-btn-global-fill:focus {
    background-color: var(--global-palette1);
    border-color: var(--global-palette1);
    color: var(--global-palette9);
}


/* Button OUTLINE (default black) */

.kt-button.kb-btn-global-outline:hover,
.kt-button.kb-btn-global-outline:focus {
    background-color: var(--global-palette3);
}

/* Table styles */

.is-style-mobile-scrollable .kb-table {
    min-width: 800px;
}

/* Tagline Dynamic List */
.is-style-tagline.kb-dynamic-list.kb-dynamic-list-style-pill .kb-dynamic-list-item {
    border-radius: 0;
    font-weight: 700;
    margin-right: .5em;
    padding: .25em .5em;
}

.facet-term-tags--tagline {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
}

.facet-term-tags--tagline .facet-term-tags__item,
.listing-card--horizontal .fwpl-term {
    display: inline-block;
    background: var(--global-palette7);
    color: var(--global-palette3);
    font-family: var(--global-heading-font-family);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 5px 10px;
    border: none;
}

.listing-card--horizontal .fwpl-term {
    font-size: 1rem;
}

.facet-term-tags--tagline a.facet-term-tags__item {
    text-decoration: none;
}

.facet-term-tags--tagline :is(a, button).facet-term-tags__item:hover,
.facet-term-tags--tagline :is(a, button).facet-term-tags__item:focus {
    background-color: var(--global-palette2);
    color: var(--global-palette3);
}

.fwpl-listing.horizontal .facet-term-tags--tagline {
    margin-bottom: var(--wp--preset--spacing--xxs);
}

.fwpl-listing.horizontal .facet-term-tags--tagline .facet-term-tags__item {
    font-size: 1rem;
}

.fwpl-listing.horizontal .fwpl-result {
    background-color: var(--global-palette9);
    padding: var(--wp--preset--spacing--sm);
}

.listing-card__image:has(.is-empty),
.listing-card__image:has(.fwpl-item:empty) {
    display: none;
}

.listing-card--horizontal:has(.listing-card__image .is-empty) .listing-card__content,
.listing-card--horizontal:has(.listing-card__image .fwpl-item:empty) .listing-card__content {
    grid-column: 1 / -1;
}

body .listing-card--horizontal.fwpl-row {
    column-gap: var(--wp--preset--spacing--gap-sm);
}

@media screen and (max-width: 600px) {
    body .listing-card--horizontal.fwpl-row {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .listing-card--horizontal .listing-card__image img {
        width: 100%;
    }
}

.listing-card--horizontal .listing-card__content img {
    display: none;
}

.fwpl-item.is-empty {
    display: none;
}

/* Variables */

body {
	--global-kb-font-size-lg: clamp(1.25rem, 0.95rem + 0.8vw, 1.75rem);
}