:root {
    --mh-header-blue: #173f70;
    --mh-tab-blue: #20558c;
    --mh-tab-blue-deep: #163b63;
    --mh-ink: #111111;
    --mh-ink-soft: #5d5d5d;
    --mh-line: #c9c9c9;
    --mh-line-soft: #e6e6e6;
    --mh-pill-active: #1f4f87;
    --mh-pill-idle: #e6e3e2;
    --mh-surface: #ffffff;
    --mh-surface-soft: #f5f5f5;
}

.midas-hub-page *,
.midas-hub-page *::before,
.midas-hub-page *::after {
    box-sizing: border-box;
}

body.midas-hub-page {
    min-width: 320px;
    background: #ffffff;
    color: var(--mh-ink);
}

.midas-hub-page a {
    color: inherit;
    text-decoration: none;
}

.midas-hub-page img {
    display: block;
    max-width: 100%;
}

:where(.midas-hub-page) button,
:where(.midas-hub-page) input,
:where(.midas-hub-page) select {
    font: inherit;
}

.midas-hub-page svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.midas-hub-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.midas-hub-page [hidden] {
    display: none !important;
}

.mh-button {
    border: 0;
    background: none;
    cursor: pointer;
}

.mh-site {
    --mh-catalog-scroll-offset: 64px;
    clear: both;
    min-height: 100vh;
    background: #ffffff;
}

.mh-main {
    position: relative;
    background: #ffffff;
}

.mh-content {
    padding: 35px 0 92px;
}

.mh-secondary-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #b9b9b9;
}

.mh-secondary-tabs > * + * {
    border-left: 1px solid #b9b9b9;
}

.mh-secondary-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 10px 22px 12px;
    text-align: center;
}

.mh-secondary-tab.is-active {
    box-shadow: inset 0 0 0 1px var(--mh-tab-blue);
}

.mh-secondary-tab.is-disabled {
    cursor: default;
}

.mh-secondary-tab__label {
    color: #5a5a5a;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.mh-secondary-tab__description {
    margin-top: 11px;
    color: #9a9a9a;
    font-size: 14px;
    line-height: 1.25;
}

.mh-secondary-tab.is-active .mh-secondary-tab__label {
    color: var(--mh-tab-blue);
    font-weight: 700;
}

.mh-summary-stats {
    margin: 32px 0 24px;
    padding: 24px;
}

.mh-search-banner {
    margin: 0;
    padding: 0 24px;
}

.mh-search-banner,
.mh-results {
    scroll-margin-block-start: var(--mh-catalog-scroll-offset);
}

.mh-search-banner__form {
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 0 44px;
}

.mh-search-banner__input {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    height: 48px;
    gap: 8px;
    padding: 0 24px;
    border: 1px solid #d8d8d8;
    border-radius: 100px;
    background: #ffffff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.mh-search-banner__search-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: #164576;
    stroke-width: 2;
}

.mh-search-banner__input input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #080808;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

.mh-search-banner__input input::placeholder {
    color: #8e8e93;
    opacity: 1;
    text-transform: uppercase;
}

.mh-search-banner__input:focus-within {
    border-color: rgba(22, 69, 118, 0.36);
    box-shadow: 0 0 0 3px rgba(22, 69, 118, 0.08);
}

.mh-search-banner__submit {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid #d8d8d8;
    border-radius: 100px;
    background: #ffffff;
    color: #080808;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mh-search-banner__submit:hover:not(:disabled) {
    border-color: #164576;
    background: #164576;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(22, 69, 118, 0.18);
}

.mh-search-banner__submit:active:not(:disabled) {
    transform: translateY(1px);
}

.mh-search-banner__submit:disabled {
    opacity: 1;
}

.mh-search-banner__submit:focus-visible {
    outline: 2px solid rgba(22, 69, 118, 0.36);
    outline-offset: 2px;
}

.mh-summary-stats__as-of {
    margin: 0 0 8px;
    padding-left: 8px;
    color: #000000;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0;
}

.mh-summary-stats__cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.mh-summary-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 230px;
    padding: 20px 14px 22px;
    border-radius: 10px;
    background: #061423;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
}

.mh-summary-stat-card.is-active {
    background: #30363d;
    outline: none;
}

.mh-summary-stat-card:focus-visible {
    background: #3a4148;
    outline: none;
}

.mh-summary-stat-card--highlight.is-active,
.mh-summary-stat-card--highlight:focus-visible {
    background: #e2b54c;
}

.mh-summary-stat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 82px;
}

.mh-summary-stat-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mh-summary-stat-card__title {
    margin: 14px 0 0;
    color: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0;
}

.mh-summary-stat-card__detail {
    margin: 2px 0 0;
    max-width: 150px;
    color: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
}

.mh-summary-stat-card__value {
    margin: auto 0 0;
    color: inherit;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.mh-summary-stat-card--highlight {
    justify-content: center;
    background: #febc2f;
    color: #061423;
}

.mh-summary-stats--ida .mh-summary-stat-card--highlight,
.mh-summary-stats--ida .mh-summary-stat-card--highlight.is-active,
.mh-summary-stats--ida .mh-summary-stat-card--highlight:focus-visible {
    background: #bacee0;
}

.mh-summary-stat-card--highlight .mh-summary-stat-card__title {
    margin-top: 0;
    font-size: 28px;
    line-height: 1.3;
}

.mh-summary-stat-card--highlight .mh-summary-stat-card__detail {
    max-width: 158px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.mh-summary-stat-card--highlight .mh-summary-stat-card__value {
    margin-top: 18px;
    color: #ffffff;
    font-size: 56px;
}

.mh-summary-stats__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 0;
    color: #000000;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0;
}

.mh-summary-stats__note svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.mh-list-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 54px;
    margin-top: 46px;
    align-items: start;
}

.mh-filters,
.mh-filter-field {
    min-width: 0;
}

.mh-filters__headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.mh-filters__headline h2 {
    margin: 0;
    color: var(--mh-ink);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mh-filters__clear {
    padding: 4px 0 0;
    color: var(--mh-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mh-filters__summary {
    margin: 26px 0 34px;
    color: var(--mh-ink);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.mh-filter-section {
    border-top: 1px solid var(--mh-line-soft);
}

.mh-filter-section__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px 0 22px;
    color: var(--mh-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: left;
}

.mh-filter-section__toggle svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: transform 0.2s ease;
}

.mh-filter-section__toggle:not(.is-open) svg {
    transform: rotate(-90deg);
}

.mh-filter-section__body {
    padding-bottom: 24px;
}

.mh-filter-section__body--standalone {
    padding-top: 24px;
}

.mh-filter-section__body[hidden] {
    display: none;
}

.mh-filter-section__chips {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.mh-filter-chip {
    position: relative;
    display: inline-flex;
    max-width: 100%;
}

.mh-filter-chip__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mh-filter-chip__inner {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    max-width: 100%;
    padding: 0 18px;
    border: 1px solid var(--mh-pill-active);
    border-radius: 999px;
    background: #ffffff;
    color: var(--mh-ink);
    font-size: 16px;
    line-height: 1;
    gap: 0;
}

.mh-filter-chip__label {
    font-weight: 400;
}

.mh-filter-chip__detail {
    font-size: 14px;
}

.mh-filter-chip__input:checked + .mh-filter-chip__inner {
    border-color: transparent;
    background: var(--mh-pill-active);
    color: #ffffff;
}

.mh-filter-section__body--stacked {
    display: grid;
    gap: 16px;
}

.mh-filter-field {
    display: grid;
    width: 100%;
    gap: 8px;
}

.mh-filter-field[hidden] {
    display: none;
}

.mh-filter-field__label {
    color: #4b4b4b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.mh-filter-field__select {
    width: 100%;
    min-height: 44px;
    padding: 0 40px 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background:
        linear-gradient(45deg, transparent 50%, #454545 50%),
        linear-gradient(135deg, #454545 50%, transparent 50%),
        #ffffff;
    background-position:
        calc(100% - 18px) 19px,
        calc(100% - 12px) 19px,
        0 0;
    background-size:
        6px 6px,
        6px 6px,
        100% 100%;
    background-repeat: no-repeat;
    appearance: none;
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1.35;
}

.mh-filter-field__select:focus {
    outline: 2px solid rgba(32, 85, 140, 0.22);
    outline-offset: 2px;
}

.mh-filter-field__select:disabled {
    cursor: default;
    background-color: #f4f4f4;
    color: #7a7a7a;
}

.mh-filter-field .gc-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.mh-filter-field .gc-select__popup {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.mh-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 24px;
}

.mh-results {
    position: relative;
    min-width: 0;
}

.mh-results__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--mh-tab-blue);
    font-size: 16px;
    font-weight: 700;
}

.mh-results__loading[hidden] {
    display: none;
}

.mh-results__loading-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(22, 69, 118, 0.2);
    border-top-color: var(--mh-tab-blue);
    border-radius: 50%;
    animation: mh-results-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .mh-results__loading-spinner {
        animation: none;
    }
}

.mh-alphabet-nav {
    max-width: 100%;
    margin: 0 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.mh-alphabet-nav::-webkit-scrollbar {
    display: none;
}

.mh-alphabet-nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mh-alphabet-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #164576;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.mh-alphabet-nav__button:hover:not(:disabled) {
    border-color: rgba(22, 69, 118, 0.22);
    background: rgba(22, 69, 118, 0.06);
}

.mh-alphabet-nav__button.is-active {
    border-color: #164576;
    background: #164576;
    color: #ffffff;
}

.mh-alphabet-nav__button.is-disabled,
.mh-alphabet-nav__button:disabled {
    cursor: default;
    color: #b7bec7;
}

.mh-record-card {
    min-width: 0;
}

.mh-record-card__surface {
    display: block;
    width: 100%;
    text-align: center;
}

.mh-record-card__surface--static {
    cursor: default;
}

.mh-record-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 11px;
    background: #dce4ec;
    aspect-ratio: 1 / 1;
}

.mh-record-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.mh-record-card__image.is-loaded {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.mh-record-card__placeholder,
.mh-record-card__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9eef2;
}

.mh-record-card__placeholder .mr-default-thumbnail {
    width: min(44%, 180px);
    height: auto;
    max-height: 58%;
    object-fit: contain;
}

.mh-record-card__loading {
    flex-direction: column;
    gap: 12px;
    color: var(--mh-tab-blue);
    font-size: 13px;
    font-weight: 700;
}

.mh-record-card__badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
}

.mh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--mh-pill-idle);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.mh-badge.is-active {
    background: var(--mh-pill-active);
}

.mh-record-card__type {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mh-tab-blue);
}

.mh-ida-type-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    color: var(--mh-tab-blue);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    gap: 10px;
}

.mh-ida-type-marker__icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.mh-ida-type-marker__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mh-ida-type-marker__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mh-record-card__title {
    margin: 10px 0 0;
    color: var(--mh-ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mh-record-card__location {
    margin: 5px auto 0;
    max-width: 100%;
    overflow: hidden;
    color: #343434;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mh-results__pagination {
    margin-top: 64px;
}

.mh-pagination {
    display: grid;
    width: 100%;
    justify-items: center;
    gap: 26px;
}

.mh-pagination__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
}

.mh-pagination__edge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3f4650;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.mh-pagination__edge.is-disabled {
    cursor: default;
    color: #9aa3ad;
    pointer-events: none;
}

.mh-pagination__edge svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.mh-pagination__list {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mh-pagination__list--mobile {
    display: none;
}

.mh-pagination__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #444b55;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
}

.mh-pagination__number.is-current {
    width: 44px;
    background: #0a4278;
    color: #ffffff;
    font-weight: 800;
}

.mh-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    color: #303640;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0.08em;
}

.mh-pagination__jump {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 10px;
}

.mh-pagination__jump-input {
    width: 54px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #ffffff;
    color: #424952;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.mh-pagination__jump-input:focus {
    border-color: rgba(22, 69, 118, 0.36);
    outline: 2px solid rgba(22, 69, 118, 0.12);
    outline-offset: 2px;
}

.mh-pagination__jump-input::-webkit-outer-spin-button,
.mh-pagination__jump-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.mh-pagination__jump-total {
    color: #424952;
    font-size: 14px;
    line-height: 1;
}

.mh-pagination__jump-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 36px;
    margin-left: 8px;
    padding: 0 18px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: transparent;
    color: #164576;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.mh-pagination__jump-submit:hover:not(:disabled) {
    border-color: rgba(22, 69, 118, 0.36);
}

.mh-pagination__jump-submit:disabled,
.mh-pagination__jump-input:disabled {
    cursor: default;
    opacity: 0.5;
}

.mh-results__empty {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 48px 24px;
    border: 1px dashed #d8d8d8;
    border-radius: 18px;
    color: #5d5d5d;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.mh-statistics {
    margin-top: 24px;
}

.mh-statistics__controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.mh-statistics-toggle {
    min-width: 0;
}

.mh-statistics-toggle__label {
    display: block;
    cursor: pointer;
}

.mh-statistics-toggle__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mh-statistics-toggle__surface {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 9px 18px;
    border: 1px solid var(--mh-pill-active);
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.05);
    color: #080808;
    gap: 8px;
    text-align: center;
}

.mh-statistics-toggle__input:checked + .mh-statistics-toggle__surface {
    border-color: transparent;
    background: var(--mh-pill-active);
    color: #ffffff;
}

.mh-statistics-toggle__icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    background-color: #080808;
    mask-image: var(--mh-ida-type-icon);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: var(--mh-ida-type-icon);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.mh-statistics-toggle__input:checked + .mh-statistics-toggle__surface .mh-statistics-toggle__icon {
    background-color: #ffffff;
}

.mh-statistics-toggle__text {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    gap: 2px;
}

.mh-statistics-toggle__text small {
    font-size: 10px;
    font-weight: 400;
}

.mh-statistics-map {
    position: relative;
    max-width: 1200px;
    margin-bottom: 44px;
    margin-right: auto;
    margin-left: auto;
}

.mh-statistics-map__stage {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1200 / 656;
    border-radius: 8px;
    background: #e7ecf1;
}

.mh-statistics-map__stage.is-waiting {
    background: #e7ecf1;
}

.mh-statistics-map__stage.is-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
}

.mh-statistics-map__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 1200px;
    height: 656px;
    transform-origin: 0 0;
    will-change: transform;
}

.mh-statistics-map__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.mh-statistics-map__stage.is-waiting .mh-statistics-map__image,
.mh-statistics-map__stage.is-waiting .mh-statistics-map__regions,
.mh-statistics-map__stage.is-waiting .mh-statistics-map__summary {
    opacity: 0;
}

.mh-statistics-map__regions {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.mh-statistics-region {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(10px * var(--mh-statistics-region-scale, 1));
    pointer-events: none;
}

.mh-statistics-region__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: calc(37px * var(--mh-statistics-region-scale, 1));
    padding: 0 calc(20px * var(--mh-statistics-region-scale, 1));
    background: #000000;
    color: #ffffff;
    font-size: calc(16px * var(--mh-statistics-region-scale, 1));
    font-weight: 600;
    line-height: 1.15;
    gap: calc(10px * var(--mh-statistics-region-scale, 1));
    pointer-events: auto;
}

.midas-hub-page .mh-statistics-region__label {
    font-size: calc(16px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-region__label span {
    white-space: nowrap;
}

.mh-statistics-region__label i {
    position: relative;
    width: calc(17px * var(--mh-statistics-region-scale, 1));
    height: calc(17px * var(--mh-statistics-region-scale, 1));
    border: 1px solid currentColor;
    border-radius: 50%;
}

.mh-statistics-region__label i::before,
.mh-statistics-region__label i::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(9px * var(--mh-statistics-region-scale, 1));
    height: 1px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.mh-statistics-region__label i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.mh-statistics-region__label[aria-pressed="true"] i::after {
    display: none;
}

.mh-statistics-region__total {
    margin: 0;
    color: #000000;
    font-size: calc(8px * var(--mh-statistics-region-scale, 1));
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
}

.mh-statistics-region__chart {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: calc(6px * var(--mh-statistics-region-scale, 1));
    width: calc(150px * var(--mh-statistics-region-scale, 1));
    height: calc(90px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-region__bar {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: end;
    justify-content: center;
    height: 100%;
    padding: calc(13px * var(--mh-statistics-region-scale, 1)) calc(6px * var(--mh-statistics-region-scale, 1)) calc(14px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-region__bar-fill {
    display: block;
    width: calc(18px * var(--mh-statistics-region-scale, 1));
    min-height: 0;
    border-radius: 40px 40px 0 0;
    background: var(--mh-pill-active);
}

.mh-statistics-region__bar strong {
    position: absolute;
    top: 0;
    color: #333333;
    font-size: calc(5px * var(--mh-statistics-region-scale, 1));
    font-weight: 600;
    line-height: 1;
}

.mh-statistics-region__bar small {
    position: absolute;
    top: calc(78px * var(--mh-statistics-region-scale, 1));
    left: 50%;
    width: calc(46px * var(--mh-statistics-region-scale, 1));
    color: rgba(0, 0, 0, 0.7);
    font-size: calc(3.5px * var(--mh-statistics-region-scale, 1));
    font-weight: 400;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
}

.mh-statistics-map__stage.is-region-selected .mh-statistics-region {
    gap: calc(12px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-map__stage.is-region-selected .mh-statistics-region__total {
    font-size: calc(12px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-map__stage.is-region-selected .mh-statistics-region__chart {
    height: calc(160px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-map__stage.is-region-selected .mh-statistics-region__bar {
    padding: calc(24px * var(--mh-statistics-region-scale, 1)) calc(14px * var(--mh-statistics-region-scale, 1)) calc(34px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-map__stage.is-region-selected .mh-statistics-region__bar-fill {
    width: calc(36px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-map__stage.is-region-selected .mh-statistics-region__bar strong {
    font-size: calc(10px * var(--mh-statistics-region-scale, 1));
}

.mh-statistics-map__stage.is-region-selected .mh-statistics-region__bar small {
    top: calc(130px * var(--mh-statistics-region-scale, 1));
    width: calc(116px * var(--mh-statistics-region-scale, 1));
    font-size: calc(7px * var(--mh-statistics-region-scale, 1));
    line-height: 1.15;
}

.mh-statistics-map__summary {
    position: absolute;
    bottom: calc(10px * var(--mh-statistics-fit-scale, 1));
    left: calc(10px * var(--mh-statistics-fit-scale, 1));
    z-index: 3;
    overflow: hidden;
    width: min(252px, 100%);
    border-radius: 10px;
    background: #ffffff;
    transform: scale(var(--mh-statistics-fit-scale, 1));
    transform-origin: bottom left;
}

.mh-statistics-summary {
    margin: 0;
}

.mh-statistics-summary__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 38.8px;
    padding: 8px 18.6px;
    background: #ffffff;
    color: #080808;
    font-size: 18px;
    line-height: normal;
}

.mh-statistics-summary__row:nth-child(2n + 3) {
    background: #f2f2f7;
}

.mh-statistics-summary__row.is-heading {
    background: var(--mh-pill-active);
    color: #ffffff;
    font-weight: 700;
}

.mh-statistics-summary dt,
.mh-statistics-summary dd {
    margin: 0;
}

.mh-statistics-summary dd {
    text-align: right;
}

.mh-statistics-map__message {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #080808;
    font-size: 18px;
    line-height: 1.5;
    gap: 10px;
    text-align: center;
}

.mh-unesco-explorer {
    --mh-unesco-explorer-panel-width: min(380px, calc(100vw - 88px));
    --mh-unesco-explorer-rail-width: 88px;
    position: fixed;
    right: 0;
    bottom: 96px;
    z-index: 80;
    display: flex;
    align-items: stretch;
    transform: translateX(16px);
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.mh-unesco-explorer.is-open {
    transform: translateX(0);
}

.mh-unesco-explorer__panel {
    flex: 0 0 auto;
    align-self: center;
    overflow: hidden;
    width: 0;
    border: 1px solid #d7e0e9;
    border-radius: 16px 0 0 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 68, 117, 0.18);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
        width 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 420ms;
    will-change: width;
}

.mh-unesco-explorer.is-open .mh-unesco-explorer__panel {
    width: var(--mh-unesco-explorer-panel-width);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}

.midas-hub-page .mh-unesco-explorer__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: var(--mh-unesco-explorer-panel-width);
    min-height: 96px;
    padding: 22px 26px;
    color: var(--mh-tab-blue);
    gap: 18px;
}

.mh-unesco-explorer__link + .mh-unesco-explorer__link {
    border-top: 1px solid #d7e0e9;
}

.mh-unesco-explorer__link:hover,
.mh-unesco-explorer__link:focus-visible {
    background: #f4f7fa;
}

.mh-unesco-explorer__link:focus-visible,
.mh-unesco-explorer__toggle:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: -5px;
    box-shadow: inset 0 0 0 2px #164475;
}

.mh-unesco-explorer__link-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.mh-unesco-explorer__link-copy strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.mh-unesco-explorer__link-copy small {
    color: #6c7d91;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.mh-unesco-explorer__link > i {
    font-size: 18px;
}

.mh-unesco-explorer__toggle {
    display: flex;
    flex: 0 0 var(--mh-unesco-explorer-rail-width);
    width: var(--mh-unesco-explorer-rail-width);
    min-height: 196px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border-radius: 16px 0 0 16px;
    background: #155b93;
    color: #ffffff;
    gap: 13px;
    box-shadow: 0 10px 28px rgba(22, 68, 117, 0.22);
}

.mh-unesco-explorer.is-open .mh-unesco-explorer__toggle {
    border-radius: 0;
}

.mh-unesco-explorer__logo {
    width: 44px;
    height: 44px;
}

.mh-unesco-explorer__label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
}

.mh-unesco-explorer__chevron {
    font-size: 18px;
    transform: rotate(180deg);
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mh-unesco-explorer__toggle[aria-expanded="false"] .mh-unesco-explorer__chevron {
    transform: none;
}

.mh-statistics__results {
    margin-top: 0;
}

@media (max-width: 991px) {
    .mh-unesco-explorer {
        --mh-unesco-explorer-panel-width: min(380px, calc(100vw - 80px));
        --mh-unesco-explorer-rail-width: 80px;
        right: 0;
        bottom: max(16px, env(safe-area-inset-bottom));
        transform: translateX(10px);
    }

    .mh-unesco-explorer__panel {
        align-self: center;
        border-radius: 14px 0 0 14px;
    }

    .midas-hub-page .mh-unesco-explorer__link {
        min-height: 80px;
        padding: 18px 20px;
    }

    .mh-unesco-explorer__toggle {
        min-height: 162px;
        padding: 14px 8px;
        border-radius: 14px 0 0 14px;
        gap: 11px;
    }

    .mh-unesco-explorer.is-open .mh-unesco-explorer__toggle {
        border-radius: 0;
    }

    .mh-unesco-explorer__logo {
        width: 38px;
        height: 38px;
    }

    .mh-unesco-explorer__label {
        font-size: 13px;
        text-align: center;
    }

    .mh-unesco-explorer__chevron {
        margin-left: 0;
        transform: rotate(180deg);
    }

    .mh-unesco-explorer__toggle[aria-expanded="false"] .mh-unesco-explorer__chevron {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-unesco-explorer,
    .mh-unesco-explorer__panel,
    .mh-unesco-explorer__chevron {
        transition-duration: 0.01ms;
    }
}

@media (max-width: 1619px) {
    .mh-pagination__list--desktop {
        display: none;
    }

    .mh-pagination__list--mobile {
        display: flex;
    }
}

@media (max-width: 1180px) {
    .mh-search-banner__form {
        padding: 0 24px;
    }

    .mh-summary-stat-card {
        min-height: 220px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .mh-summary-stat-card__icon {
        width: 112px;
        height: 78px;
    }

    .mh-summary-stat-card__value {
        font-size: 34px;
    }

    .mh-summary-stat-card--highlight .mh-summary-stat-card__value {
        font-size: 48px;
    }

    .mh-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mh-results__pagination {
        margin-top: 32px;
    }

    .mh-pagination {
        gap: 20px;
    }

    .mh-pagination__nav {
        gap: 14px;
    }

    .mh-pagination__edge {
        gap: 6px;
        height: 40px;
        font-size: 16px;
    }

    .mh-pagination__edge svg {
        width: 22px;
        height: 22px;
    }

    .mh-pagination__list {
        gap: 8px;
    }

    .mh-pagination__number {
        width: 36px;
        height: 40px;
        font-size: 16px;
    }

    .mh-pagination__number.is-current {
        width: 40px;
    }

    .mh-pagination__ellipsis {
        width: 36px;
        height: 40px;
        font-size: 16px;
    }

    .mh-pagination__jump {
        gap: 6px;
    }

    .mh-pagination__jump-input {
        width: 50px;
        height: 34px;
        font-size: 13px;
    }

    .mh-pagination__jump-total {
        font-size: 13px;
    }

    .mh-pagination__jump-submit {
        min-width: 54px;
        height: 34px;
        margin-left: 6px;
        padding: 0 12px;
        font-size: 13px;
    }

}

@media (max-width: 940px) {
    .mh-list-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .mh-summary-stats__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mh-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {
    .mh-content {
        padding: 26px 0 72px;
    }

    .mh-secondary-tabs {
        grid-template-columns: 1fr;
    }

    .mh-secondary-tabs > * + * {
        border-top: 1px solid #b9b9b9;
        border-left: 0;
    }

    .mh-secondary-tab {
        min-height: 72px;
        padding: 14px 18px;
    }

    .mh-secondary-tab__label {
        font-size: 18px;
    }

    .mh-secondary-tab__description {
        margin-top: 8px;
        font-size: 13px;
    }

    .mh-summary-stats {
        margin: 24px 0 20px;
        padding: 18px;
    }

    .mh-search-banner {
        margin: 0;
        padding: 0;
    }

    .mh-search-banner__form {
        padding: 0;
    }

    .mh-summary-stats__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-summary-stat-card {
        min-height: 210px;
    }

    .mh-summary-stats__note {
        align-items: flex-start;
        font-size: 13px;
        text-align: left;
    }

    .mh-list-layout {
        margin-top: 34px;
        gap: 28px;
    }

    .mh-filters__headline h2 {
        font-size: 24px;
    }

    .mh-filters__summary {
        margin: 18px 0 24px;
        font-size: 16px;
    }

    .mh-filter-section__toggle {
        padding: 20px 0 18px;
        font-size: 20px;
    }

    .mh-filter-section__chips {
        align-items: stretch;
    }

    .mh-filter-chip {
        width: 100%;
    }

    .mh-filter-chip__inner {
        width: 100%;
        white-space: nowrap;
        min-height: 38px;
        padding: 0 16px;
        font-size: 16px;
        gap: 6px;
    }

    .mh-filter-chip__detail {
        font-size: 13px;
    }

    .mh-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 24px;
    }

    .mh-statistics {
        margin-top: 18px;
    }

    .mh-statistics__controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 18px;
    }

    .mh-statistics-toggle__surface {
        min-height: 44px;
        padding: 8px 12px;
    }

    .mh-statistics-toggle__icon {
        width: 22px;
        height: 22px;
    }

    .mh-statistics-toggle__text {
        font-size: 12px;
    }

    .mh-statistics-toggle__text small {
        font-size: 9px;
    }

    .mh-statistics-map {
        margin-bottom: 32px;
    }

    .mh-statistics-map__stage {
        min-height: 0;
    }

    .mh-statistics-map__summary {
        position: static;
        width: auto;
        margin: 12px;
        transform: none;
    }

    .mh-statistics-summary__row {
        min-height: 32px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .mh-statistics-map__stage:not(.is-region-selected) .mh-statistics-region__chart {
        gap: calc(7px * var(--mh-statistics-region-scale, 1));
        width: calc(180px * var(--mh-statistics-region-scale, 1));
    }

    .mh-statistics-map__stage:not(.is-region-selected) .mh-statistics-region__bar {
        padding-right: calc(8px * var(--mh-statistics-region-scale, 1));
        padding-left: calc(8px * var(--mh-statistics-region-scale, 1));
    }

    .mh-statistics-map__stage:not(.is-region-selected) .mh-statistics-region__bar small {
        width: calc(54px * var(--mh-statistics-region-scale, 1));
        font-size: calc(4px * var(--mh-statistics-region-scale, 1));
        line-height: 1.08;
    }

    .mh-statistics-map__stage.is-region-selected .mh-statistics-region__total {
        font-size: calc(13px * var(--mh-statistics-region-scale, 1));
    }

    .mh-statistics-map__stage.is-region-selected .mh-statistics-region__chart {
        height: calc(160px * var(--mh-statistics-region-scale, 1));
    }

    .mh-statistics-map__stage.is-region-selected .mh-statistics-region__bar-fill {
        width: calc(42px * var(--mh-statistics-region-scale, 1));
    }

    .mh-statistics-map__stage.is-region-selected .mh-statistics-region__bar strong {
        font-size: calc(12px * var(--mh-statistics-region-scale, 1));
    }

    .mh-statistics-map__stage.is-region-selected .mh-statistics-region__bar small {
        width: calc(118px * var(--mh-statistics-region-scale, 1));
        font-size: calc(10px * var(--mh-statistics-region-scale, 1));
    }

    .mh-statistics-map__message {
        font-size: 15px;
    }

    .mh-statistics-map__stage.is-waiting {
        min-height: 280px;
    }

    .mh-record-card__title {
        font-size: 16px;
    }

    .mh-ida-type-marker {
        font-size: 13px;
    }

    .mh-record-card__location {
        font-size: 12px;
    }

    .mh-results__empty {
        min-height: 220px;
        padding: 32px 18px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .mh-search-banner__form {
        flex-direction: column;
        gap: 10px;
    }

    .mh-search-banner__submit {
        width: 100%;
    }

    .mh-summary-stats__cards {
        grid-template-columns: 1fr;
    }

    .mh-summary-stat-card {
        min-height: 190px;
    }

    .mh-card-grid {
        column-gap: 14px;
        row-gap: 20px;
    }

    .mh-statistics__controls {
        grid-template-columns: 1fr;
    }

    .mh-statistics-map__stage {
        min-height: 0;
    }

    .mh-record-card__type {
        margin-top: 12px;
    }

    .mh-ida-type-marker {
        font-size: 12px;
        gap: 8px;
    }

    .mh-ida-type-marker__icon {
        width: 18px;
        height: 18px;
    }

    .mh-badge {
        min-width: 30px;
        height: 18px;
        padding: 0 6px;
        font-size: 11px;
    }

    .mh-pagination__nav {
        width: 100%;
        gap: 14px;
    }

    .mh-pagination__list {
        width: 100%;
        gap: 2px;
    }

    .mh-pagination__edge {
        gap: 4px;
        height: 36px;
        font-size: 14px;
    }

    .mh-pagination__edge svg {
        width: 20px;
        height: 20px;
    }

    .mh-pagination__number {
        width: 32px;
        height: 36px;
        font-size: 14px;
    }

    .mh-pagination__number.is-current {
        width: 36px;
    }

    .mh-pagination__ellipsis {
        width: 28px;
        height: 36px;
        font-size: 14px;
    }

    .mh-pagination__jump {
        width: 100%;
        gap: 4px;
    }

    .mh-pagination__jump-input {
        width: 46px;
        height: 32px;
        font-size: 12px;
    }

    .mh-pagination__jump-total {
        font-size: 12px;
    }

    .mh-pagination__jump-submit {
        min-width: 50px;
        height: 32px;
        margin-left: 4px;
        padding: 0 10px;
        font-size: 12px;
    }
}
