/**
 * EMVCO Algolia Search Styling
 * Matches design mockup with dark blue header and green badges
 */

:root {
    --color-primary-dark: #1b4f72;
    --color-primary-light: #2d5a8c;
    --color-accent-green: #7cb342;
    --color-accent-light-green: #9ccc65;
    --color-text-dark: #0D3E5C;
    --color-text-light: #4F576D;
    --color-border: #E7E9EA;
    --color-background: #f8f9fa;
    --spacing-unit: 1rem;
}

/* Main Container */
.emvco-algolia-search {
}

/* Search Input */
.search-input-container {
    margin-bottom: 49px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Post Type Tabs */
.post-type-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 16p;
}

.post-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: none;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.post-type-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.post-type-tab[aria-selected="true"] {
    background: #f7f7f7;
    border-color: white;
    color: #0D3E5C;
    font-weight: 400;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #9BC842;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #0D3E5C;
    padding: 0 7px;
}

/* Main Search Content */
.search-content {
    display: grid;
    grid-template-columns: 242px 1fr;
    gap: 48px;
    max-width: 100%;
    margin: 0;
    padding: 48px 0 0 0;
    width: 100%;
}

/* Filters Sidebar */
.search-filters {
    min-height: 300px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.filters-header h2 {
    margin: 0;
    font-weight: 500;
    color: #0D3E5C;
    font-size: 16px;
    line-height: 20px;
}

.clear-filters-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    background: transparent;
    color: var(--color-accent-green);
    border: 1px solid var(--color-accent-green);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: var(--color-accent-green);
    color: white;
}

/* Facets */
.facets-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.facet-group {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}

.facet-group:last-child {
    border-bottom: none;
}

/* Facet Header with individual clear button */
.facet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.facet-title {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--color-text-dark);
}

/* Individual clear button for each facet — text link style */
.clear-facet-btn {
    padding: 0;
    font-size: 10px;
    background: transparent;
    color: var(--color-text-dark);
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 400;
    line-height: 1.4;
}

.clear-facet-btn:hover {
    background: transparent;
    color: #4A6FA5;
    text-decoration: underline;
}

.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #E7E9EA;
    border-radius: 4px;
    padding: 10px 14px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.date-picker-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.date-range-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #4F576D;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    padding: 0;
    line-height: 18px;
}

.date-range-input::placeholder {
    color: #9AA4B2;
}

.date-range-input:focus {
    outline: none;
    box-shadow: none;
}

/* Version TomSelect dropdown */
.facet-version-select {
    width: 100%;
}

.facet-group[data-facet-key="version"] .ts-wrapper {
    width: 100%;
}

/* Results loading spinner */
.hits-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    width: 100%;
}

.hits-spinner {
    display: block;
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-border);
    border-top-color: #0D3E5C;
    border-radius: 50%;
    animation: hits-spin 0.7s linear infinite;
}

@keyframes hits-spin {
    to { transform: rotate(360deg); }
}

.facet-values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.facet-values li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.facet-values li:before {
    display: none !important;
}

.facet-values input[type="checkbox"] {
    cursor: pointer;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.facet-values li .facet-label {
    margin: 0;
}

.facet-values li .facet-label > .facet-text {
    float: left;
    width: 100%;
    padding-left: 30px;
    position: relative;
    font-size: 13px;
    line-height: 18px;
    color: #4F576D;
    padding-top: 1px;
    padding-right: 10px;
    padding-bottom: 1px;
    font-weight: 300;
}

.facet-values li .facet-label > .facet-text:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 100;
    text-align: center;
    line-height: 19px;
    font-size: 10px;
    color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: solid 1px #E7E9EA;
    border-radius: 5px;
    visibility: visible;
    background-color: #fff;
}

.facet-values input[type="checkbox"]:checked ~ .facet-label > .facet-text:before {
    background: #0D3E5C !important;
    border-color: #0D3E5C !important;
    color: #fff;
}

.facet-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
    cursor: pointer;
    user-select: none;
}

.facet-count {
    font-size: 10px;
    color: #0D3E5C;
    background: #E7E9EA;
    border-radius: 100px;
    padding: 4px 7px;
    font-weight: 700;
    line-height: 11px;
}

/* Results Section */
.search-results {
    display: flex;
    flex-direction: column;
}

.results-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 19px;
}

.results-count {
    font-weight: 500;
    color: #0D3E5C;
    font-size: 16px;
    line-height: 20px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.sort-select {
    padding: 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.sort-wrapper .ts-wrapper .ts-control {
    padding: 0;
    border: none;
    background: none !important;
    color: var(--color-text-dark);
    font-weight: 400;
}

.sort-wrapper .ts-wrapper  .ts-dropdown {
    width: auto;
    right: 0;
    left: auto;
    border: solid 1px #ccc;
}

.sort-wrapper .ts-wrapper .ts-dropdown .ts-dropdown-content .option {
    white-space: nowrap;
}

.sort-wrapper .ts-wrapper .ts-control input#sort-select-ts-control {
    display: none !important;
}

.sort-wrapper .ts-wrapper .ts-control:after {
    content: "";
    display: block;
    float: right;
    visibility: visible;
    background: url(/wp-content/uploads/2022/06/arrow-green-down.svg) no-repeat center center;
    background-size: contain;
    width: 10px;
    height: 8px;
    margin: 7px 0 0 5px;
}

/* Hits Container */
.hits-container {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

article {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    background: var(--color-accent-green);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

article h3 {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    margin: 0;
    padding: 0;
    color: var(--color-primary-dark);
}

.result-excerpt {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.result-excerpt mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
}

.emvco-algolia-search h3 mark {
    background: none;
    font-weight: bold;
    padding: 0;
}

li.hit article {
    border: 1px solid #E7E9EA;
    border-radius: 4px;
    background: white;
    -webkit-box-shadow: 0 0 12px 0 rgba(13, 62, 92, 0.08);
    box-shadow: 0 0 12px 0 rgba(13, 62, 92, 0.08);
}

li.hit article:hover {
    -webkit-box-shadow: 0 0 12px 0 rgba(13, 62, 92, 0.18);
    box-shadow: 0 0 12px 0 rgba(13, 62, 92, 0.18);
}

.result-main {
    display: flex;
    gap: 30px;
    text-decoration: none !important;
    padding: 17px 20px;
    transition: all 0.3s ease;
    list-style: none;
    box-shadow: none !important;
}

.result-main .result-main-content {
    max-width: 70%;
    width: 70%;
    flex-grow: 1;
}

.result-main .right-side-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
    gap: 10px;
    justify-content: center;
}

.result-main .right-side-info .meta-date {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-dark);
    padding-top: 7px;
    padding-bottom: 6px;
    line-height: 14px;
}

.result-main .right-side-info .not-available-download,
.result-main .right-side-info .available-download,
.result-main .right-side-info .download-button-file {
    box-shadow: none !important;
    padding-left: 20px;
    position: relative;
    float: left;
    font-size: 13px;
    color: var(--color-text-dark);
    font-weight: 400;
    line-height: 26px;
}

.result-main .right-side-info .not-available-download:before,
.result-main .right-side-info .available-download:before,
.result-main .right-side-info .download-button-file:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 100%;
    background-position: center center !important;
    background-size: contain !important;
    visibility: visible;
}

.result-main .right-side-info .available-download:before {
    content: '';
    background: url(/wp-content/uploads/2022/08/check.svg) no-repeat center center;
    background-size: contain;
}

.result-main .right-side-info .available-download.padlock:before {
    content: '';
    background: url(/wp-content/uploads/2022/11/padlock-icon.svg) no-repeat center center;
    background-size: contain;
    top: -1px;
}

.result-main .right-side-info .not-available-download:before {
    content: '';
    background: url(/wp-content/uploads/2022/11/padlock-icon-red.svg) no-repeat center center;
    background-size: contain;
    top: -1px;
}

.result-main .right-side-info .download-button-file:before {
    content: '';
    background: url(/wp-content/uploads/2022/07/download-icon.svg) no-repeat center center;
    background-size: contain;
}

/* Result Meta Information */
.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    align-items: center;
}

.version-pill,
.meta-spec-cat,
.meta-tech-cat,
.meta-version,
.meta-pdf {
    display: inline-block;
    background: #F7F7F7;
    font-size: 12px;
    color: #0D3E5C;
    font-weight: 400;
    line-height: normal;
    padding: 6px 8px;
    border-radius: 100px;
    line-height: 13px;
}

.meta-pdf {
    background: #e3f2fd;
    color: #1976d2;
}

.meta-company,
.meta-approval,
.meta-valid-to {
    display: block;
    color: var(--color-text-dark);
    line-height: 1.4;
}

.meta-company strong,
.meta-approval strong,
.meta-valid-to strong {
    color: var(--color-primary-dark);
    margin-right: 0.5rem;
}

.meta-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-tag {
    display: inline-block;
    background: #F7F7F7;
    font-size: 12px;
    color: #0D3E5C;
    font-weight: 400;
    line-height: normal;
    padding: 6px 8px;
    border-radius: 100px;
}

.meta-email {
    color: var(--color-accent-green);
    text-decoration: none;
    font-weight: 500;
}

.meta-email:hover {
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Pagination */
.pagination-container {
    margin-top: 29px;
    padding-top: 0;
    border-top: none;
}

.pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.pagination-list > li {
    width: auto;
    position: relative;
    padding:0;
    margin: 0;
}

.pagination-list > li:before {
    display: none;
}

.pagination-btn, span.pagination-ellipsis {
    min-width: 32px;
    height: 32px;
    padding: 3px;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-dark);
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 21px;
    display: block;
    text-align: center;
    border-left: none;
    font-size: 13px;
    font-weight: 400;
}

span.pagination-ellipsis {
    cursor: default;
}

.pagination-btn:hover {
    color: #fff;
    background: var(--color-text-dark);
    border-color: transparent;
}

.pagination-btn.active {
    background: var(--color-accent-green);
    color: white;
    border-color: var(--color-accent-green);
}

.pagination-list > li:nth-child(1) .pagination-btn:not(.active), .pagination-list > li:nth-child(1) span.pagination-ellipsis {
    border-left: solid 1px var(--color-border);
}

.pagination-btn svg {
    position: relative;
    top: -1px;
}

.pagination-btn:hover svg path {
    stroke: #fff;
}


/* all your before and afters live here */
.facet-group .ts-control:after {
    visibility: visible;
    content: "";
}

.facet-group .ts-control {
    box-shadow: none !important;
}

.facet-group .ts-control {
    float: left;
    width: 100%;
    display: block;
    height: 40px;
    padding: 7px 15px;
    text-transform: none;
    font-size: 13px;
    font-weight: 300;
    appearence: none;
    -webkit-appearance: none;
    box-shadow: none;
    background: #FFFFFF;
    border: 1px solid #E7E9EA;
    border-radius: 4px;
}

.facet-group .ts-wrapper .ts-control {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    padding-right: 50px;
    cursor: pointer;
}

.facet-group .ts-wrapper .ts-control:after {
    content: "\f107" !important;
    font-family: "Font Awesome 5 Pro";
    border: none !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    right: 15px !important;
    margin: 0px !important;
    font-weight: 100;
    opacity: 1;
    position: absolute;
    font-size: 15px;
}

.facet-group .ts-control.dropdown-active:after {
    content:"\f106"!important;
}

.facet-group .ts-dropdown {
    padding-top: 10px;
    padding-bottom: 13px;
    top: 70px !important;
}

.facet-group .ts-dropdown {
    top: 34px !important;
}

.facet-group .ts-dropdown .ts-dropdown-content {
    max-height: 220px;
}

.facet-group .ts-dropdown .ts-dropdown-content .optgroup-header, .facet-group .ts-dropdown .ts-dropdown-content .option {
    padding: 9px 15px;
    background: none !important;
}


/* Service Provider result card */
.result-service-provider .sp-main-row {
    cursor: default;
    align-items: center;
}

.sp-toggle-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sp-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #0D3E5C;
    line-height: 0;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.sp-toggle:hover {
    background: #F7F7F7;
}

.sp-toggle svg {
    transition: transform 0.25s ease;
}

.sp-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.sp-expanded-info {
    padding: 15px 20px;
    border-top: 1px solid #E7E9EA;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.sp-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.sp-detail strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4F576D;
    font-weight: 600;
    line-height: 1.3;
}

.sp-detail span,
.sp-detail a {
    font-size: 13px;
    color: #0D3E5C;
    font-weight: 400;
    line-height: 1.5;
}

.sp-focus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sp-focus-list span {
    background: #F7F7F7;
    font-size: 12px;
    color: #0D3E5C;
    padding: 4px 8px;
    border-radius: 100px;
    line-height: 1.3;
}

.result-service-providers .result-main .result-main-content {
    width: auto;
    max-width: none;
}

.sort-wrapper label.sort-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.result-approved-products .result-main .result-main-content {
    max-width: 80%;
    width: 80%;
}

article.result-general a.result-main {
    padding: 0;
}

article.result-general .result-main-content {
    width: 100%;
    max-width: 100%;
}

li.hit article.result-general {
    border: none;
    border-radius: 0;
    background: white;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    background: none;
    border-bottom: solid 1px #E7E9EA;
    padding-bottom: 20px;
}

li.hit:last-of-type article.result-general {
    border-bottom: none;
    padding-bottom: 0px;
}

article.result-general .result-main-content h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 350;
    color: var(--color-text-dark);
}

article.result-general .result-main-content h3 mark {
    font-weight: 500;
    color: var(--color-text-dark);
}

article.result-general .result-main-content .result-meta {
    margin-bottom: 5px;
}

article.result-general .result-main-content .result-meta .meta-post-type {
    font-size: 11px;
    line-height: 24px;
    color: #4F576D;
}

.version-pill button.resource-version-toggle,
.version-pill button.spec-version-toggle {
    padding: 0;
    background: none;
}

.facets-container button#facets-close {
    display: none;
}



.resource-older-versions .older-version-row.result-main {
    padding: 11px 20px;
    border-top: solid 1px #ccc;
}

.resource-older-versions .older-version-row.result-main h3 {
    font-size: 13px;
}

.version-pill {
    background: #9BC842;
    color: #0D3E5C;
}



/* ── Older versions indicator tooltip ──────────────────────────────────────
.version-older-indicator {
    position: relative;
    display: inline-block;
    align-items: center;
    margin-left: 2px;
    line-height: 0;
    top: -1px;
}

.version-older-indicator::after,
.version-older-indicator::before {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 10;
}

.version-older-indicator::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0D3E5C;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    padding: 6px 9px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 3;
}

.version-older-indicator::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #0D3E5C;
    z-index: 2;
}*/

a.result-main.specifications-post:hover .version-older-indicator::after,
a.result-main.specifications-post:hover .version-older-indicator::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-header h1 {
        font-size: 1.8rem;
    }

    .search-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-type-tabs {
        gap: 0.5rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sort-wrapper {
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    article h3 {
        font-size: 1rem;
    }

    .result-meta {
        gap: 0.6rem;
    }

    .facets-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f7f7f7;
        z-index: 9999;
        padding: 30px;
        overflow: auto;
        display: none;
        padding-top: 50px;
    }

    aside.search-filters {
        min-height: auto;
    }

    aside.search-filters .filters-header {
        margin-bottom: 0;
        position: relative;
        width: 100%;
        cursor: pointer;
    }

    aside.search-filters .filters-header:after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 17px;
        height: 20px;
        background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M256 64l0-32-64 0 0 192-192 0 0 64 192 0 0 192 64 0 0-192 192 0 0-64-192 0 0-160z" fill="%239BC842" /></svg>');
        background-size: contain;
        visibility: visible;
    }

    .facets-container.is-open {
        display: flex;
    }

    .facets-container button#facets-close {
        right: 20px;
        top: 20px;
        font-size: 0px;
        width: 15px;
        height: 15px;
        box-shadow: none !important;
        background: url(/wp-content/uploads/2022/06/close-modal-icon.svg) no-repeat center center;
        background-size: contain;
        z-index: 9;
        display: block;
        position: absolute;
    }

    .facets-container button#facets-close:hover {
        opacity: 0.6;
        background: url(/wp-content/uploads/2022/06/close-modal-icon.svg) no-repeat center center;
        background-size: contain;
    }

    .version-older-indicator::before {
        position: absolute;
        left: 0;
        bottom: 0;
    }

    .version-older-indicator {
        position: static;
    }

    span.version-pill.has-older {
        position: relative;
        margin-bottom: 32px;
    }

    .version-older-indicator::after {
        visibility: visible;
        opacity: 1;
        top: calc(100% + 6px);
        bottom: auto;
        left: 0;
        transform: none;
    }



    span.version-pill.has-older {
        position: relative;
        margin-bottom: 0;
    }

    /*span.version-pill.has-older + span {
        clear: none;
    }*/

    .version-older-indicator::after {
        visibility: visible;
        opacity: 1;
        top: 0;
        bottom: auto;
        left: auto;
        transform: none;
        border-radius: 100px;
        right: -159px;
        background: #ddd;
        color: #0D3E5C;
        font-size: 12px;
        line-height: 14px;
    }

}

@media (max-width: 480px) {

    /*span.version-pill.has-older + span {
        clear: both;
    }*/

    .search-header h1 {
        font-size: 1.4rem;
    }

    .search-input {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .post-type-tabs {
        gap: 0.3rem;
    }

    .post-type-tab {
        padding: 0.65rem 10px;
    }

    .tab-count {
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .filters-header h2 {
        font-size: 1rem;
    }

    .facet-label {
        font-size: 0.85rem;
    }

    article h3 {
        font-size: 0.95rem;
    }

    .result-excerpt {
        font-size: 0.85rem;
    }

    .result-main {
        flex-direction: column;
    }

    .result-main .result-main-content {
        max-width: 100%;
        width: 100%;
    }

    .result-main .right-side-info {
        align-items: flex-start;
        gap: 0;
    }

    .tab-count {
        display: none;
    }
}