/* Topic Lab semantic-console axis and entrypoint polish. */

.td-topic-lab__topic-lab-entrypoints-kicker {
    margin: 0;
    color: #7a4f46;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.085em;
    line-height: 1.1;
    text-transform: uppercase;
}

.td-topic-lab__topic-lab-entrypoints-copy {
    max-width: 54rem;
    margin: 0.38rem 0 0;
    color: #51606f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.td-topic-lab__topic-lab-entrypoints {
    display: grid;
    gap: 0.9rem;
    width: 100%;
    padding: clamp(1rem, 2vw, 1.15rem);
}

.td-topic-lab__topic-lab-entrypoints-head {
    display: grid;
    gap: 0.2rem;
}

.td-topic-lab__topic-lab-entrypoints-title {
    margin: 0;
    color: #1d2733;
    font-size: clamp(1.04rem, 2vw, 1.24rem);
    font-weight: 880;
    letter-spacing: -0.02em;
    line-height: 1.14;
}

.td-topic-lab__topic-lab-axis-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding-bottom: 0.1rem;
}

.td-topic-lab__topic-lab-axis-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    max-width: 100%;
    min-height: 2.55rem;
    padding: 0.52rem 0.72rem;
    border-color: rgba(29, 39, 51, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    line-height: 1.1;
    white-space: nowrap;
}

.td-topic-lab__topic-lab-axis-link.is-active {
    background: #1d2733;
    color: #ffffff;
}

.td-topic-lab__topic-lab-axis-icon,
.td-topic-lab__topic-lab-axis-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    line-height: 1;
}

.td-topic-lab__topic-lab-axis-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    max-height: 30px;
    opacity: 0.9;
}

.td-topic-lab__topic-lab-axis-icon-svg,
.td-topic-lab__topic-lab-axis-icon-svg svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.td-topic-lab__topic-lab-axis-label {
    min-width: 0;
    max-width: min(12rem, 54vw);
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 800;
    text-overflow: ellipsis;
}

.td-topic-lab__topic-lab-axis-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: rgba(29, 39, 51, 0.08);
    color: currentColor;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
}

.td-topic-lab__topic-lab-axis-link.is-active .td-topic-lab__topic-lab-axis-count {
    background: rgba(255, 255, 255, 0.18);
}

.td-topic-lab__topic-lab-entrypoint-group {
    display: grid;
    gap: 0.58rem;
    padding: 0.75rem;
    border: 1px solid rgba(29, 39, 51, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.62);
}

.td-topic-lab__topic-lab-entrypoint-group:not(.is-active) {
    display: none;
}

.td-topic-lab__topic-lab-entrypoint-group-label {
    color: #647383;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.td-topic-lab__topic-lab-entrypoint-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    min-width: 0;
}

.td-topic-lab__topic-lab-entrypoint-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    min-width: 0;
    max-width: 100%;
    min-height: 2.45rem;
    padding: 0.55rem 0.72rem;
    border-color: rgba(29, 39, 51, 0.1);
    border-radius: 999px;
    background: #f8fbfd;
    line-height: 1.12;
}

.td-topic-lab__topic-lab-entrypoint-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-topic-lab__topic-lab-entrypoint-count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 1.28rem;
    height: 1.28rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(29, 39, 51, 0.08);
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1;
}

.td-topic-lab__topic-lab-entrypoint-link.is-active .td-topic-lab__topic-lab-entrypoint-count,
.td-topic-lab__topic-lab-entrypoint-link:hover .td-topic-lab__topic-lab-entrypoint-count,
.td-topic-lab__topic-lab-entrypoint-link:focus-visible .td-topic-lab__topic-lab-entrypoint-count {
    background: rgba(255, 255, 255, 0.18);
}

.td-topic-lab__topic-lab-entrypoint-link.is-active,
.td-topic-lab__topic-lab-entrypoint-link:hover,
.td-topic-lab__topic-lab-entrypoint-link:focus-visible {
    border-color: rgba(29, 39, 51, 0.18);
    background: #1d2733;
    color: #ffffff;
}

/* Semantic entrypoint card layer: keeps legacy classes, but makes the active
   axis group read like a small Design Navigator surface instead of a raw chip list. */
.td-topic-lab__topic-lab-entrypoint-group-head,
.td-hub-topic-lab-entrypoints__group-head {
    display: grid;
    gap: 0.22rem;
}

.td-topic-lab__topic-lab-entrypoint-group-copy,
.td-hub-topic-lab-entrypoints__group-copy {
    max-width: 48rem;
    margin: 0;
    color: #51606f;
    font-size: 0.86rem;
    line-height: 1.45;
}

.td-topic-lab__topic-lab-entrypoint-links,
.td-hub-topic-lab-entrypoints__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 0.62rem;
}

.td-topic-lab__topic-lab-entrypoint-link,
.td-hub-topic-lab-entrypoints__link {
    align-items: stretch;
    justify-content: space-between;
    gap: 0.72rem;
    min-height: 5.15rem;
    padding: 0.74rem 0.78rem;
    border-radius: 1rem;
    text-align: left;
    white-space: normal;
}

.td-topic-lab__topic-lab-entrypoint-main,
.td-hub-topic-lab-entrypoints__link-main {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.td-topic-lab__topic-lab-entrypoint-label,
.td-hub-topic-lab-entrypoints__link-label {
    color: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.16;
    white-space: normal;
}

.td-topic-lab__topic-lab-entrypoint-summary,
.td-hub-topic-lab-entrypoints__link-summary {
    display: block;
    color: #647383;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.35;
}

.td-topic-lab__topic-lab-entrypoint-aside,
.td-hub-topic-lab-entrypoints__link-aside {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.45rem;
}

.td-topic-lab__topic-lab-entrypoint-action,
.td-hub-topic-lab-entrypoints__link-action {
    color: currentColor;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.015em;
    opacity: 0.78;
}

.td-topic-lab__topic-lab-entrypoint-link.is-active .td-topic-lab__topic-lab-entrypoint-summary,
.td-topic-lab__topic-lab-entrypoint-link:hover .td-topic-lab__topic-lab-entrypoint-summary,
.td-topic-lab__topic-lab-entrypoint-link:focus-visible .td-topic-lab__topic-lab-entrypoint-summary,
.td-hub-topic-lab-entrypoints__link.is-active .td-hub-topic-lab-entrypoints__link-summary,
.td-hub-topic-lab-entrypoints__link:hover .td-hub-topic-lab-entrypoints__link-summary,
.td-hub-topic-lab-entrypoints__link:focus-visible .td-hub-topic-lab-entrypoints__link-summary {
    color: rgba(255, 255, 255, 0.78);
}

.td-topic-lab__topic-lab-axis-copy,
.td-hub-topic-lab-entrypoints__axis-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-width: 0;
}
