/* F1SYH_GUIDED_PATHS_V1 */

.guided-paths-page {
    --paths-accent: var(--accent, var(--primary, #176b87));
    --paths-border: color-mix(in srgb, currentColor 18%, transparent);
    --paths-muted: color-mix(in srgb, currentColor 66%, transparent);
    --paths-soft: color-mix(in srgb, currentColor 7%, transparent);
    --paths-ok: #187348;
    display: grid;
    gap: 1rem;
    padding-block: 1.2rem 2.5rem;
}

.guided-paths-hero,
.guided-paths-toolbar,
.guided-path-card {
    border: 1px solid var(--paths-border);
    border-radius: 1.05rem;
    background: var(--surface, Canvas);
    box-shadow: 0 0.65rem 1.8rem rgb(0 0 0 / 0.08);
}

.guided-paths-hero {
    padding: clamp(1rem, 3vw, 1.8rem);
}

.guided-paths-eyebrow {
    margin: 0 0 0.3rem;
    color: var(--paths-accent);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guided-paths-hero h1 {
    margin: 0;
}

.guided-paths-meta,
.guided-paths-back {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.guided-paths-meta span,
.guided-path-level,
.guided-path-duration {
    border: 1px solid var(--paths-border);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: var(--paths-soft);
    font-size: 0.84rem;
    font-weight: 720;
}

.guided-paths-toolbar {
    position: sticky;
    top: 0.55rem;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(12rem, 1fr) auto minmax(11rem, 0.55fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.8rem;
    backdrop-filter: blur(12px);
}

.guided-paths-toolbar label {
    font-weight: 750;
}

.guided-paths-toolbar input,
.guided-paths-toolbar select {
    min-height: 2.7rem;
    border: 1px solid var(--paths-border);
    border-radius: 0.7rem;
    padding: 0.58rem 0.7rem;
    color: inherit;
    background: var(--surface, Canvas);
    font: inherit;
}

.guided-paths-toolbar p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--paths-muted);
    font-size: 0.85rem;
}

.guided-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
    gap: 1rem;
}

.guided-path-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
}

.guided-path-card[hidden] {
    display: none;
}

.guided-path-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
}

.guided-path-card h2 {
    margin: 0.45rem 0 0;
    font-size: 1.2rem;
}

.guided-path-duration {
    white-space: nowrap;
}

.guided-path-progress > div {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--paths-soft);
}

.guided-path-progress > div > span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--paths-ok);
    transition: width 180ms ease;
}

.guided-path-progress p {
    margin: 0.35rem 0 0;
    color: var(--paths-muted);
    font-size: 0.84rem;
}

.guided-path-card details {
    border-top: 1px solid var(--paths-border);
    border-bottom: 1px solid var(--paths-border);
    padding-block: 0.65rem;
}

.guided-path-card summary {
    font-weight: 760;
    cursor: pointer;
}

.guided-path-lessons {
    display: grid;
    gap: 0.45rem;
    padding-left: 1.4rem;
}

.guided-path-lessons li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid var(--paths-border);
    border-radius: 0.7rem;
    padding: 0.55rem;
}

.guided-path-lessons label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    cursor: pointer;
}

.guided-path-lessons small {
    display: block;
    margin-top: 0.15rem;
    color: var(--paths-muted);
}

.guided-path-lessons a,
.guided-path-start,
.guided-paths-back a {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--paths-border);
    border-radius: 0.7rem;
    padding: 0.5rem 0.75rem;
    color: inherit;
    background: var(--surface, Canvas);
    text-decoration: none;
    font-weight: 720;
}

.guided-path-start {
    margin-top: auto;
    border-color: var(--paths-accent);
    color: white;
    background: var(--paths-accent);
}

.course-guided-paths-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.course-guided-paths-card h2 {
    margin-top: 0;
}

@media (max-width: 760px) {
    .guided-paths-toolbar {
        position: static;
        grid-template-columns: 1fr;
    }

    .guided-paths-toolbar p {
        grid-column: auto;
    }

    .course-guided-paths-card {
        grid-template-columns: 1fr;
    }
}
