/* Native catalogue hubs: /cryptocurrencies/ and /exchanges/. */

.crypto,
.crypto input,
.crypto button {
    font-family: GothamPro, Arial, sans-serif;
}

.crypto {
    margin: 0;
    color: #10232b;
    background: #f7faf8;
    font-size: 14px;
    line-height: 1.5;
}

.crypto *,
.crypto *::before,
.crypto *::after {
    box-sizing: border-box;
}

.crypto img {
    max-width: 100%;
}

.crypto .container {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding-inline: 15px;
}

.crypto-catalog {
    --catalog-accent: var(--cl-emerald, #0f7b5f);
    --catalog-accent-deep: var(--cl-emerald-deep, #0a5943);
    --catalog-ink: var(--cl-ink, #10232b);
    --catalog-muted: var(--cl-muted, #5a6b66);
    --catalog-rule: var(--cl-rule, #e2e8e5);
    clear: both;
    min-width: 0;
    color: var(--catalog-ink);
    overflow-wrap: anywhere;
}

.crypto-catalog a {
    color: var(--catalog-accent-deep);
}

.crypto-catalog a:focus-visible,
.crypto-catalog input:focus-visible,
.crypto-catalog button:focus-visible {
    outline: 3px solid #0f7b5f;
    outline-offset: 3px;
    border-radius: 5px;
}

.crypto-catalog__breadcrumbs {
    margin-bottom: 28px;
    color: var(--catalog-muted);
    font-size: 13px;
}

.crypto-catalog__breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crypto-catalog__breadcrumbs li {
    position: relative;
}

.crypto-catalog__breadcrumbs li + li::before {
    position: absolute;
    right: calc(100% + 8px);
    content: "/";
    color: #8a9994;
}

.crypto-catalog__breadcrumbs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.crypto-catalog__header {
    margin-bottom: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--catalog-rule);
}

.crypto-catalog__header h1 {
    max-width: 860px;
    margin: 0 0 12px;
    color: var(--catalog-ink);
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.crypto-catalog__header > p {
    max-width: 780px;
    margin: 0;
    color: var(--catalog-muted);
    font-size: 17px;
    line-height: 1.65;
}

.crypto-catalog__search {
    max-width: 780px;
    margin-top: 24px;
}

.crypto-catalog__search > label {
    display: block;
    margin-bottom: 7px;
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 14px;
}

.crypto-catalog__search-row {
    display: flex;
    min-width: 0;
}

.crypto-catalog__search input {
    min-width: 0;
    min-height: 48px;
    flex: 1 1 auto;
    padding: 11px 14px;
    border: 1px solid #a7b5b0;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #fff;
    color: var(--catalog-ink);
    font-size: 16px;
}

.crypto-catalog__search input::placeholder {
    color: #667873;
    opacity: 1;
}

.crypto-catalog__search button {
    min-width: 112px;
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid var(--catalog-accent);
    border-radius: 0 8px 8px 0;
    background: var(--catalog-accent);
    color: #fff;
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    cursor: pointer;
}

.crypto-catalog__search button:hover {
    border-color: var(--catalog-accent-deep);
    background: var(--catalog-accent-deep);
}

.crypto-catalog-toolbar {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--catalog-rule);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 35, 43, 0.04);
}

.crypto-catalog-toolbar__group {
    min-width: 0;
}

.crypto-catalog-toolbar__group h2 {
    margin: 0 0 8px;
    color: var(--catalog-muted);
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.crypto-catalog-toolbar__group ul {
    display: flex;
    max-width: 100%;
    gap: 8px;
    margin: 0;
    padding: 3px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #9db1aa transparent;
}

.crypto-catalog-toolbar__group li {
    flex: 0 0 auto;
}

.crypto-catalog-toolbar__option {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #c8d2cf;
    border-radius: 999px;
    background: #fff;
    color: #334843;
    font-size: 13px;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.crypto-catalog-toolbar__option:hover {
    border-color: var(--catalog-accent);
    color: var(--catalog-accent-deep);
}

.crypto-catalog-toolbar__option--active {
    border-color: var(--catalog-accent);
    background: #e6f3ef;
    color: #084d3b;
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
}

.crypto-catalog__featured {
    margin-bottom: 24px;
}

.crypto-catalog__featured h2,
.crypto-catalog__topics > header h2 {
    margin: 0 0 12px;
    color: var(--catalog-ink);
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.3;
}

.crypto-catalog__featured ul {
    display: flex;
    max-width: 100%;
    gap: 9px;
    margin: 0;
    padding: 3px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #9db1aa transparent;
}

.crypto-catalog__featured li {
    flex: 0 0 auto;
}

.crypto-catalog__featured a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--catalog-rule);
    border-radius: 8px;
    background: #fff;
    color: #29413b;
    text-decoration: none;
    white-space: nowrap;
}

.crypto-catalog__featured a:hover,
.crypto-catalog__featured .crypto-catalog__all-topics {
    border-color: var(--catalog-accent);
    color: var(--catalog-accent-deep);
}

.crypto-catalog__topic-count {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef3f1;
    color: #4c625c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    text-align: center;
}

.crypto-catalog__result-context {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 20px;
    margin: 0 0 14px;
    color: var(--catalog-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.crypto-catalog__notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 3px solid #b46a0c;
    background: #fff5dc;
    color: #704000;
}

.crypto-catalog__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crypto-catalog-card {
    min-width: 0;
    border: 1px solid var(--catalog-rule);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 35, 43, 0.045);
}

.crypto-catalog-card article {
    display: grid;
    min-width: 0;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 17px;
    padding: 18px;
}

.crypto-catalog-card__image-box {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--catalog-rule);
    border-radius: 12px;
    background: #eef3f1 url("/img/media-placeholder.svg") center / cover no-repeat;
}

.crypto-catalog-card__image {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.crypto-catalog-card__body,
.crypto-catalog-card__identity {
    min-width: 0;
}

.crypto-catalog-card__header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
}

.crypto-catalog-card__identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 9px;
}

.crypto-catalog-card__identity h2 {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: var(--catalog-ink);
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.crypto-catalog-card__ticker {
    max-width: 100%;
    padding: 2px 7px;
    border: 1px solid #d4ddda;
    border-radius: 5px;
    color: #50645e;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.crypto-catalog-card__rank {
    width: 100%;
    color: var(--catalog-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.crypto-catalog-card__statuses {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.crypto-catalog-card__status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #c8d2cf;
    border-radius: 999px;
    background: #f4f7f6;
    color: #334843;
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
}

.crypto-catalog-card__status--review-checked,
.crypto-catalog-card__status--operational-operating {
    border-color: #87b9a8;
    background: #e4f4ed;
    color: #07513d;
}

.crypto-catalog-card__status--review-partial,
.crypto-catalog-card__status--operational-restricted {
    border-color: #d2ae69;
    background: #fff3d4;
    color: #684000;
}

.crypto-catalog-card__status--operational-wind_down {
    border-color: #d4978e;
    background: #fce9e6;
    color: #7c2017;
}

.crypto-catalog-card__status--operational-historical {
    border-color: #a8b1af;
    background: #edf0ef;
    color: #3d4c48;
}

.crypto-catalog-card__status--review-unchecked,
.crypto-catalog-card__status--operational-unknown {
    border-color: #b6c0bd;
    background: #f3f5f4;
    color: #455853;
}

.crypto-catalog-card__operational-details {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 10px;
    color: var(--catalog-muted);
    font-size: 12px;
}

.crypto-catalog-card__operational-details a {
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
}

.crypto-catalog-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
}

.crypto-catalog-card__metric {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    color: #52655f;
    font-size: 13px;
}

.crypto-catalog-card__metric strong {
    color: var(--catalog-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.crypto-catalog-card__metric--unreviewed {
    color: #765000;
}

.crypto-catalog-card__no-metrics {
    margin: 13px 0 0;
    color: var(--catalog-muted);
    font-size: 13px;
}

.crypto-catalog-card__cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin-top: 11px;
    color: var(--catalog-accent-deep);
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
}

.crypto-catalog-card__cta:hover {
    text-decoration: underline;
}

.crypto-catalog-pagination {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
    align-items: center;
    gap: 12px;
    margin: 30px 0 44px;
}

.crypto-catalog-pagination a,
.crypto-catalog-pagination__disabled {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid #becbc7;
    border-radius: 8px;
    background: #fff;
    color: var(--catalog-accent-deep);
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    text-decoration: none;
}

.crypto-catalog-pagination a:last-child,
.crypto-catalog-pagination__disabled:last-child {
    justify-self: end;
}

.crypto-catalog-pagination a:first-child,
.crypto-catalog-pagination__disabled:first-child {
    justify-self: start;
}

.crypto-catalog-pagination__disabled {
    color: #7b8985;
    background: #f2f5f4;
}

.crypto-catalog-pagination__current {
    color: var(--catalog-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    text-align: center;
}

.crypto-catalog__empty {
    margin-bottom: 42px;
    padding: 34px 22px;
    border: 1px solid var(--catalog-rule);
    border-left: 4px solid var(--catalog-accent);
    border-radius: 10px;
    background: #fff;
}

.crypto-catalog__empty h2 {
    margin: 0 0 9px;
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 22px;
}

.crypto-catalog__empty p {
    max-width: 660px;
    margin: 0 0 16px;
    color: var(--catalog-muted);
}

.crypto-catalog__empty a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 15px;
    border: 1px solid var(--catalog-accent);
    border-radius: 8px;
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    text-decoration: none;
}

.crypto-catalog__topics {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--catalog-rule);
}

.crypto-catalog__topics > header p {
    max-width: 700px;
    margin: 0 0 22px;
    color: var(--catalog-muted);
}

.crypto-catalog__topic-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 18px;
}

.crypto-catalog__topic-groups > section {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--catalog-rule);
    border-radius: 10px;
    background: #fff;
}

.crypto-catalog__topic-groups h3 {
    margin: 0 0 12px;
    color: var(--catalog-ink);
    font-family: GothamPro-Medium, GothamPro, Arial, sans-serif;
    font-size: 16px;
}

.crypto-catalog__topic-groups ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.crypto-catalog__topic-groups li {
    display: flex;
    min-width: 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid #edf1f0;
}

.crypto-catalog__topic-groups li:first-child {
    border-top: 0;
}

.crypto-catalog__topic-groups a {
    min-width: 0;
}

.crypto-catalog__topic-groups li > span {
    flex: 0 0 auto;
    color: var(--catalog-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}

@media (min-width: 860px) {
    .crypto-catalog-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crypto-catalog-toolbar__group--sort:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .crypto-catalog__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .crypto-container.crypto-catalog {
        padding: 24px 12px 36px;
    }

    .crypto-catalog__breadcrumbs {
        margin-bottom: 18px;
    }

    .crypto-catalog__header {
        margin-bottom: 18px;
        padding-bottom: 22px;
    }

    .crypto-catalog__header > p {
        font-size: 15px;
    }

    .crypto-catalog__search-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .crypto-catalog__search input,
    .crypto-catalog__search button {
        width: 100%;
        border: 1px solid #a7b5b0;
        border-radius: 8px;
    }

    .crypto-catalog__search button {
        border-color: var(--catalog-accent);
    }

    .crypto-catalog-toolbar {
        margin-inline: -2px;
        padding: 14px 10px;
    }

    .crypto-catalog-card article {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .crypto-catalog-card__image-box,
    .crypto-catalog-card__image {
        width: 48px;
        height: 48px;
        border-radius: 9px;
    }

    .crypto-catalog-card__header {
        display: block;
    }

    .crypto-catalog-card__identity h2 {
        font-size: 17px;
    }

    .crypto-catalog-card__statuses {
        justify-content: flex-start;
        margin-top: 9px;
    }

    .crypto-catalog-card__operational-details,
    .crypto-catalog-card__metrics,
    .crypto-catalog-card__no-metrics,
    .crypto-catalog-card__cta {
        grid-column: 1 / -1;
    }

    .crypto-catalog-card__metrics {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .crypto-catalog-pagination {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .crypto-catalog-pagination__current {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 5px;
    }

    .crypto-catalog-pagination a:first-child,
    .crypto-catalog-pagination__disabled:first-child,
    .crypto-catalog-pagination a:last-child,
    .crypto-catalog-pagination__disabled:last-child {
        width: 100%;
        justify-self: stretch;
    }

    .crypto-catalog-pagination a:first-child,
    .crypto-catalog-pagination__disabled:first-child {
        grid-column: 1;
    }

    .crypto-catalog-pagination a:last-child,
    .crypto-catalog-pagination__disabled:last-child {
        grid-column: 2;
    }

    .crypto-catalog__topic-groups li {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crypto-catalog *,
    .crypto-catalog *::before,
    .crypto-catalog *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
