/*
 * Tela Network v2 — example explore page.
 */

.v2-explore {
    padding-bottom: 4rem;
}


/* Page header */

.v2-explore-header {
    border-bottom: 1px solid var(--v2-rule);
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .v2-explore-header {
        padding-bottom: 3rem;
    }
}

.v2-explore-title {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0.75rem 0 0;
}

@media (min-width: 640px) {
    .v2-explore-title {
        font-size: 2.25rem;
    }
}

.v2-explore-intro {
    font-size: 1.0625rem;
    line-height: 1.625;
    margin: 0.75rem 0 0;
    max-width: 36rem;
}

.v2-explore-search-row {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    max-width: 42rem;
}

.v2-explore-search-wrap {
    flex: 1 1 12rem;
    min-width: 0;
}

.v2-explore-search {
    background-color: var(--v2-paper);
    border: 1px solid var(--v2-input);
    color: var(--v2-foreground);
    display: block;
    font-family: var(--v2-font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.75rem 0.875rem;
    width: 100%;
}

.v2-explore-search-btn {
    align-items: center;
    align-self: stretch;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    text-align: center;
}


/* Body grid */

.v2-explore-body {
    display: grid;
    gap: 2rem 3rem;
    padding-block: 2rem;
}

@media (min-width: 768px) {
    .v2-explore-body {
        grid-template-columns: 15rem minmax(0, 1fr);
    }
}


/* Filters */

.v2-explore-filter-groups {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.v2-explore-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.v2-explore-filter-chip {
    border: 1px solid var(--v2-border);
    color: var(--v2-muted-foreground);
    font-size: var(--v2-text-sm);
    padding: 0.25rem 0.5rem;
}

.v2-explore-filter-chip--selected {
    background-color: var(--v2-secondary);
    border-color: var(--v2-foreground);
    color: var(--v2-foreground);
}


/* Results */

.v2-explore-results-head {
    align-items: baseline;
    border-bottom: 1px solid color-mix(in oklch, var(--v2-foreground) 80%, transparent);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 0.5rem;
}

.v2-explore-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.v2-explore-result-row {
    border-bottom: 1px solid var(--v2-border);
    padding-block: 1.5rem;
}

.v2-explore-result-grid {
    display: grid;
    gap: 1rem 2.5rem;
}

@media (min-width: 768px) {
    .v2-explore-result-grid {
        grid-template-columns: minmax(0, 1fr) 11rem;
    }
}

.v2-explore-result-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.v2-explore-result-role {
    font-size: var(--v2-text-sm);
    margin: 0.25rem 0 0;
}

.v2-explore-result-years {
    margin: 0.625rem 0 0;
}

.v2-explore-result-stats {
    font-size: var(--v2-text-sm);
    margin: 0.25rem 0 0;
}

.v2-explore-relevant {
    margin-top: 1rem;
}

.v2-explore-relevant-list {
    border-top: 1px solid var(--v2-border);
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.v2-explore-relevant-row {
    align-items: baseline;
    border-bottom: 1px solid var(--v2-border);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 0.5rem;
}

.v2-explore-relevant-summary {
    font-size: var(--v2-text-sm);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-explore-result-side {
    min-width: 0;
}

@media (min-width: 768px) {
    .v2-explore-result-side {
        text-align: right;
    }
}

.v2-explore-view-history {
    display: inline-block;
}

.v2-explore-result-returned {
    font-size: var(--v2-text-sm);
    line-height: 1.625;
    margin: 0.75rem 0 0;
}

.v2-explore-footnote {
    font-size: var(--v2-text-sm);
    line-height: 1.625;
    margin: 1.5rem 0 0;
    max-width: 36rem;
}
