/* ================= STUDY HUB (roadmap header) ================= */
.hub-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-raised);
    border: 1.5px solid var(--border-strong);
    border-radius: 3px;
    padding: 20px 24px;
    margin: 22px 0 18px;
}

.hub-banner-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--accent);
}

.hub-banner-text {
    flex: 1;
    min-width: 0;
}

.hub-banner-text h3 {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.hub-banner-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: .86rem;
}

.hub-banner .btn {
    flex: none;
}

.hub-search {
    position: relative;
    margin-bottom: 26px;
}

.hub-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.hub-search input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid var(--border-strong);
    border-radius: 2px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Public Sans', sans-serif;
    font-size: .9rem;
}

.hub-search input:focus {
    outline: none;
    border-color: var(--accent);
}

#roadmapNoResults {
    text-align: center;
    color: var(--text-muted);
    padding: 34px 0;
    border: 1px dashed var(--border-strong);
    margin-bottom: 18px;
}

@media (max-width: 720px) {
    .hub-banner {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 12px 14px;
        padding: 16px;
    }

    .hub-banner-icon {
        width: 38px;
        height: 38px;
    }

    .hub-banner-text {
        flex: 1 1 0;
    }

    .hub-banner-text h3 {
        font-size: 1.15rem;
    }

    .hub-banner .btn {
        flex: 1 1 100%;
    }
}

/* ================= SHARED STAT ROW ================= */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 28px;
}

.stat-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stat-row .stat {
    text-align: center;
    border-left: 1px solid var(--border);
}

.stat-row .stat:first-child {
    border-left: none;
}

.stat-row .stat b {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.9rem;
    font-weight: 600;
}

.stat-row .stat span {
    font-size: .78rem;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .stat-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 16px;
    }

    .stat-row .stat:nth-child(2n+1) {
        border-left: none;
    }

    /* three short figures still fit side by side; 2-up would orphan the third */
    .stat-row.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-row.cols-3 .stat:nth-child(2n+1) {
        border-left: 1px solid var(--border);
    }

    .stat-row.cols-3 .stat:first-child {
        border-left: none;
    }

    .stat-row .stat {
        padding: 0 6px;
    }
}

/* numbers are short, so a phone keeps the 2-up grid and just tightens it */
@media (max-width: 400px) {
    .stat-row {
        padding: 16px 0;
        row-gap: 14px;
    }

    .stat-row .stat b {
        font-size: 1.5rem;
    }

    .stat-row .stat span {
        font-size: .72rem;
    }
}

