/* Compact homepage layout; colors and sky are shared with the entire portal. */
.mt-home-body .main-header .btn.btn-primary {
    color: #082f49;
    text-shadow: none;
}

.mt-home-body .main-header .btn.btn-primary:hover {
    color: #082f49;
}

.mt-home-page {
    --mt-card-comfort-padding: 0.875rem;
    gap: 1rem;
}

.mt-home-body .mt-home-page > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0;
    margin-bottom: 0;
}

.mt-home-page .mt-home-intro {
    position: relative;
    isolation: isolate;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.mt-home-page .mt-home-intro--public {
    padding: 1rem 0;
    border-bottom: 1px solid var(--mt-procurement-border);
}

.mt-home-page .mt-procurement-page__header-copy {
    flex: 1 1 22rem;
}

.mt-home-wordmark {
    margin: 0 0 0.5rem;
    color: var(--mt-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.mt-home-wordmark span {
    color: var(--mt-accent);
}

.mt-home-page .mt-procurement-page__title {
    margin-bottom: 0.4rem;
    color: var(--mt-heading);
    font-size: 1.5rem;
    line-height: 1.2;
}

.mt-home-page .mt-procurement-page__subtitle {
    max-width: 24rem;
    color: #cbd5e1;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.mt-home-page .mt-public-customer-invite {
    flex: 0 1 20rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 20rem;
    padding: 0 0 0 1.25rem;
    border: 0;
    border-left: 2px solid #d75a5a;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.mt-home-page .mt-public-customer-invite__eyebrow::before {
    display: none;
}

.mt-home-page .mt-public-customer-invite__copy strong {
    font-size: 0.9375rem;
}

.mt-home-page .mt-public-customer-invite__copy p {
    margin-top: 0.4rem;
    color: #cbd5e1;
    font-size: 0.8125rem;
}

.mt-home-page .mt-public-customer-invite__action {
    justify-self: start;
    min-height: 2.5rem;
    border-color: #dc7777;
    border-radius: 5px;
    background: #a93737;
    box-shadow: none;
}

.mt-home-page .mt-public-customer-invite__action:hover {
    border-color: #f1abab;
    background: #bd4545;
    box-shadow: none;
    transform: none;
}

.mt-home-page .filters-bar,
.mt-home-page .mt-procurement-registry,
.mt-home-page .mt-procurement-card,
.mt-home-page .mt-procurement-empty {
    border-color: var(--mt-procurement-border);
    border-radius: 6px;
    background: var(--mt-procurement-surface);
    box-shadow: none;
}

.mt-home-page .mt-procurement-filter-header {
    border-color: var(--mt-procurement-border);
    border-radius: 6px 6px 0 0;
    background: var(--mt-ui-table-head-bg);
}

.mt-home-page .filters-bar .form-control,
.mt-home-page .filters-bar input[type="date"].form-control {
    border-color: var(--mt-field-border);
    border-radius: 5px;
    background: var(--mt-field-bg);
    color: var(--mt-field-text);
    color-scheme: dark;
    box-shadow: none;
}

.mt-home-page .filters-bar .form-control:focus {
    border-color: var(--mt-procurement-accent);
    background: var(--mt-field-bg-focus);
    box-shadow: 0 0 0 3px var(--mt-procurement-focus);
}

.mt-home-page .filters-bar .form-control::placeholder {
    color: var(--mt-field-placeholder);
    opacity: 1;
}

.mt-home-page .filters-bar .form-label,
.mt-home-page .mt-procurement-filter-title {
    color: var(--mt-heading);
}

.mt-home-page .btn-primary {
    border: 1px solid var(--mt-procurement-accent);
    background: var(--mt-accent);
    color: #082f49;
    box-shadow: none;
    text-shadow: none;
}

.mt-home-page .btn-primary:hover {
    border-color: #7dd3fc;
    background: #7dd3fc;
    color: #082f49;
    box-shadow: none;
    transform: none;
}

.mt-home-page .btn-secondary,
.mt-home-page .btn-outline-primary {
    border-color: var(--mt-procurement-border);
    background: var(--mt-procurement-soft);
    color: var(--mt-text-main);
    box-shadow: none;
}

.mt-home-page .btn-secondary:hover,
.mt-home-page .btn-outline-primary:hover {
    border-color: var(--mt-procurement-border-strong);
    background: rgba(51, 65, 85, 0.86);
    color: #fff;
}

.mt-home-page .mt-home-icon {
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mt-home-page .mt-registry-view-switch {
    border-color: var(--mt-procurement-border);
    background: rgba(2, 6, 23, 0.42);
}

.mt-home-page .mt-registry-view-switch__button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
}

.mt-home-page .mt-registry-view-switch__button[aria-pressed="true"] {
    background: var(--mt-accent-soft);
    color: #bae6fd;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.38);
}

.mt-home-page .mt-procurement-results__toolbar {
    border-color: var(--mt-procurement-border);
    border-radius: 6px 6px 0 0;
    background: var(--mt-ui-table-head-bg);
}

.mt-home-page .mt-procurement-registry {
    border-radius: 0 0 6px 6px;
}

.mt-home-page .mt-registry-title,
.mt-home-page .mt-procurement-card__title-link {
    color: var(--mt-heading);
}

.mt-home-page .mt-registry-title:hover,
.mt-home-page .mt-procurement-card__title-link:hover,
.mt-home-page .mt-registry-filter-more > summary,
.mt-home-page .mt-active-filters__reset,
.mt-home-page .mt-public-seo-info__links a {
    color: var(--mt-accent);
}

.mt-home-page .mt-registry-price,
.mt-home-page .mt-procurement-card__price {
    color: #7dd3fc;
}

.mt-home-page .mt-registry-subline,
.mt-home-page .mt-registry-number,
.mt-home-page .mt-procurement-card__meta-label,
.mt-home-page .mt-procurement-card__meta-hint,
.mt-home-page .mt-procurement-card__excerpt {
    color: #b8c5d6;
}

.mt-home-page .mt-procurement-card__footer {
    border-color: var(--mt-procurement-border);
    background: var(--mt-procurement-surface-strong);
}

.mt-home-page .mt-procurement-card__meta-item {
    border-color: var(--mt-procurement-border);
    background: var(--mt-procurement-soft);
}

.mt-home-page .mt-public-promo-strip {
    border-color: var(--mt-procurement-border);
    border-left-color: #c75c5c;
    border-radius: 0;
    background: var(--mt-procurement-surface);
    box-shadow: none;
}

.mt-home-page .mt-public-promo-strip--advertisement {
    border-left-color: var(--mt-accent);
}

.mt-home-page .mt-public-promo-strip__ad-label {
    border-color: rgba(56, 189, 248, 0.38);
    background: var(--mt-accent-soft);
    color: #bae6fd;
}

.mt-home-page .mt-public-seo-info {
    border-color: var(--mt-procurement-border);
}

.mt-home-page :where(a, button, summary):focus-visible {
    outline: 2px solid var(--mt-accent);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .mt-home-page [data-registry-table] {
        display: none !important;
    }

    .mt-home-page [data-registry-cards] {
        display: block !important;
    }

    .mt-home-page .mt-registry-view-switch {
        display: none;
    }

    .mt-home-page .mt-procurement-results__toolbar {
        border-bottom: 1px solid var(--mt-procurement-border);
        border-radius: 6px;
    }

    .mt-home-page .filters-row--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-home-page .filters-row--primary > :first-child {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 1024px) {
    .mt-home-page .mt-home-intro--public {
        flex-direction: row;
        align-items: center;
    }

    .mt-home-page .mt-procurement-page__header-copy {
        flex: 1 1 0;
    }

    .mt-home-page .mt-public-customer-invite {
        flex: 0 1 18rem;
        width: 18rem;
    }

}

@media (max-width: 767px) {
    .mt-home-page .mt-home-intro--public {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        min-height: 0;
        padding: 0.5rem 0 1rem;
    }

    .mt-home-wordmark {
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
    }

    .mt-home-page .mt-procurement-page__title {
        font-size: 1.25rem;
    }

    .mt-home-page .mt-procurement-page__header-copy,
    .mt-home-page .mt-public-customer-invite {
        flex: 0 1 auto;
        width: 100%;
    }

    .mt-home-page .mt-public-customer-invite__copy p {
        display: none;
    }

    .mt-home-page .mt-public-customer-invite {
        padding-left: 0.75rem;
        gap: 0.6rem;
    }

    .mt-home-page .mt-procurement-results__toolbar {
        border-radius: 6px;
    }

    .mt-home-page .filters-row--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mt-home-page .filters-row--primary > :first-child,
    .mt-home-page .filters-row--primary > :nth-child(4),
    .mt-home-page .filters-row--primary > .mt-registry-filter-actions {
        grid-column: 1 / -1 !important;
    }

    .mt-home-page .filters-bar .form-control,
    .mt-home-page .filters-bar .btn {
        min-height: 2.75rem;
    }
}

@media (max-width: 359px) {
    .mt-home-body .main-header a[href="/register"] {
        display: none;
    }

    .mt-home-wordmark {
        font-size: 1.5rem;
    }

    .mt-home-page .filters-row--primary {
        grid-template-columns: 1fr;
    }
}
