/* Browser-only coding practice discovery; independent of course editor styling. */
.practice-hub {
    padding: clamp(1.5rem, 4vw, 3.5rem) 1rem 4rem;
    min-height: 70vh;
    color: #17212b;
    background: linear-gradient(165deg, #edfbfb, #f4f8fd 58%, #f7fafc);
}
.practice-hub__inner { width: min(100%, 1100px); margin: 0 auto; }
.practice-hub__heading { max-width: 760px; margin: 0 0 1.7rem; }
.practice-hub__eyebrow {
    color: #075c74; font-size: 0.78rem; font-weight: 750;
    letter-spacing: 0.07em; text-transform: uppercase;
}
.practice-hub__heading h1 {
    margin: 0.35rem 0 0.6rem; color: #14253d;
    font-size: clamp(2rem, 4vw, 3rem); line-height: 1.16;
}
.practice-hub__heading p { margin: 0; color: #42566b; font-size: 1.05rem; line-height: 1.6; }
.practice-hub__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 1rem; }
.practice-hub__card {
    display: flex; flex-direction: column; gap: 0.7rem;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid #d4e4eb; border-radius: 18px;
    background: #fff; box-shadow: 0 12px 28px rgba(15, 49, 79, 0.065);
}
.practice-hub__card-top { display: flex; align-items: center; justify-content: space-between; }
.practice-hub__icon {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 12px; color: #0f587b; background: #eaf7fc; font-size: 1.35rem;
}
.practice-hub__available { color: #176236; background: #eaf8ed; border-radius: 999px; padding: 0.28rem 0.65rem; font-size: 0.74rem; font-weight: 700; }
.practice-hub__card h2 { margin: 0; color: #172b43; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.25; overflow-wrap: anywhere; }
.practice-hub__card p { margin: 0; color: #526477; line-height: 1.55; }
.practice-hub__progress { margin-top: auto; padding-top: 0.6rem; }
.practice-hub__progress-label { display: flex; justify-content: space-between; gap: 0.5rem; color: #475569; font-size: 0.85rem; }
.practice-hub__progress-label strong { color: #184366; }
.practice-hub__track { overflow: hidden; margin-top: 0.4rem; height: 7px; border-radius: 999px; background: #e7edf3; }
.practice-hub__track span { display: block; height: 100%; border-radius: inherit; background: #138eaf; }
.practice-hub__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.45rem; }
.practice-hub__actions a, .practice-hub__empty a {
    display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
    padding: 0.5rem 0.85rem; border-radius: 10px;
    font-weight: 700; font-size: 0.88rem; text-decoration: none;
}
.practice-hub__primary, .practice-hub__empty a { background: #086b92; color: #fff; }
.practice-hub__primary:hover, .practice-hub__empty a:hover { background: #065477; color: #fff; }
.practice-hub__secondary { color: #165e8b; background: #eef5fb; }
.practice-hub__secondary:hover { color: #083a61; background: #dfeefa; }
.practice-hub__actions a:focus-visible, .practice-hub__empty a:focus-visible { outline: 3px solid #0b83d0; outline-offset: 3px; }
.practice-hub__note { margin-top: 1rem; font-size: 0.85rem; color: #536574; }
.practice-hub__empty { padding: 2rem; border: 1px solid #d4e4eb; border-radius: 16px; background: #fff; }
.practice-hub__empty h2 { margin: 0 0 0.5rem; }
.practice-hub__empty p { margin-bottom: 1rem; }
@media (max-width: 480px) {
    .practice-hub__actions { flex-direction: column; align-items: stretch; }
    .practice-hub__actions a { width: 100%; }
}
