.mfo-registry-hero,
.mfo-registry-details,
.mfo-registry-about {
    --registry-ink: #171721;
    --registry-muted: #56566b;
    --registry-line: #e0e0f0;
    --registry-blue: #369;
    box-sizing: border-box;
    width: 100%;
    color: var(--registry-ink);
}

.mfo-registry-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    margin-top: 16px;
    padding: 0;
    border: 1px solid var(--registry-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}
.mfo-registry-hero__company {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 17px 0 0 17px;
    background: #efeff9;
    overflow-wrap: anywhere;
}
.mfo-registry-hero__logo {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    max-width: 100%;
    width: 148px;
    height: 60px;
    margin-bottom: 18px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--registry-line);
    background: #fff;
}
.mfo-registry-hero__logo img {
    display: block;
    width: 100%;
    height: 42px;
    object-fit: contain;
}
.mfo-registry-hero__company h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.025em;
    line-height: 1.13;
}
.mfo-registry-hero__company p {
    margin: 9px 0 17px;
    color: var(--registry-muted);
    font-size: 15px;
    line-height: 1.5;
}
.mfo-registry-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.mfo-registry-hero__links a {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    color: var(--registry-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mfo-registry-search {
    display: grid;
    align-content: center;
    min-width: 0;
    margin: 0;
    padding: clamp(20px, 3.2vw, 34px);
    border-radius: 0 17px 17px 0;
    background: #fff;
}
.mfo-registry-search label {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
}
.mfo-registry-search__amount {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid var(--registry-line);
    border-radius: 10px;
    color: var(--registry-muted);
    font-size: 20px;
}
.mfo-registry-search__amount:focus-within {
    outline: 2px solid var(--registry-blue);
    outline-offset: 1px;
}
.mfo-registry-search__amount input {
    appearance: textfield;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--registry-ink);
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.mfo-registry-search__amount input::-webkit-inner-spin-button,
.mfo-registry-search__amount input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}
/* The range track and thumb come from the shared loan filter. */
.mfo-registry-search .mfo-registry-search__slider {
    margin: 11px 0 12px;
}
.mfo-registry-search__limits {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--registry-muted);
    font-size: 13px;
    line-height: 1.3;
}
.mfo-registry-search .button {
    min-width: 0;
    min-height: 46px;
    margin: 17px 0 0;
    padding: 10px 16px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
}
.mfo-registry-search .button:focus-visible {
    outline: 2px solid var(--registry-blue);
    outline-offset: 3px;
}
.mfo-registry-search .native-slider__range:focus-visible {
    outline: 2px solid var(--registry-blue);
    outline-offset: 3px;
}

.mfo-registry-details {
    margin-top: 24px;
    padding: clamp(18px, 3.5vw, 30px);
    border: 1px solid var(--registry-line);
    border-radius: 18px;
    background: #fff;
    scroll-margin-top: 18px;
}
.mfo-registry-details__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 18px;
    margin-bottom: 18px;
}
.mfo-registry-details__header h2,
.mfo-registry-about h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(21px, 2.6vw, 27px);
    line-height: 1.23;
}
.mfo-registry-details a {
    color: var(--registry-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mfo-registry-details__header a {
    font-size: 14px;
    font-weight: 600;
}
.mfo-registry-details dl,
.mfo-registry-details dd {
    min-width: 0;
    margin: 0;
}
.mfo-registry-details dt {
    margin: 0 0 3px;
    color: var(--registry-muted);
    font-size: 13px;
    line-height: 1.4;
}
.mfo-registry-details dd {
    color: var(--registry-ink);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.mfo-registry-details .mfo-registry-details__ids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.mfo-registry-details__ids > div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--registry-line);
    border-radius: 9px;
    background: #efeff9;
}
.mfo-registry-details__ids dd {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mfo-registry-details__columns {
    display: grid;
    gap: 16px;
}
.mfo-registry-details__columns_split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.mfo-registry-details__legal {
    display: grid;
    align-content: start;
    gap: 12px;
}
.mfo-registry-details__legal > div + div {
    padding-top: 12px;
    border-top: 1px solid var(--registry-line);
}
.mfo-registry-details__contacts {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--registry-line);
    border-radius: 10px;
}
.mfo-registry-about {
    margin-top: 24px;
}
.mfo-registry-about__text {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.mfo-registry-about__text img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 700px) {
    .mfo-registry-hero,
    .mfo-registry-details__columns_split {
        grid-template-columns: minmax(0, 1fr);
    }
    .mfo-registry-hero__company {
        border-radius: 17px 17px 0 0;
    }
    .mfo-registry-search {
        border-radius: 0 0 17px 17px;
    }
}
@media (max-width: 540px) {
    .mfo-registry-details .mfo-registry-details__ids {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .mfo-registry-details__ids > div {
        padding: 10px;
    }
    .mfo-registry-details__ids > div:first-child {
        grid-column: 1 / -1;
    }
    .mfo-registry-details__ids > div:last-child:nth-child(2) {
        grid-column: 1 / -1;
    }
}
