/* Logical layout: breadcrumbs, steps, pack hub */

.breadcrumb-site {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}
.breadcrumb-site a {
    color: var(--primary-dark);
    font-weight: 500;
}
.breadcrumb-site a:hover {
    color: var(--accent);
}
.breadcrumb-current {
    color: var(--text);
    font-weight: 600;
}
.page-header .breadcrumb-site {
    color: rgba(255, 255, 255, 0.85);
}
.page-header .breadcrumb-site a {
    color: #fff;
    opacity: 0.92;
}
.page-header .breadcrumb-current {
    color: #fff;
}

.page-header-lead {
    max-width: 42rem;
    margin: 0.5rem auto 0;
    opacity: 0.95;
    line-height: 1.7;
}

.flow-steps {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    counter-reset: flow;
}
.flow-steps li {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    counter-increment: flow;
}
.flow-steps li::before {
    content: counter(flow);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-steps li.is-done::before {
    background: var(--primary);
    color: #fff;
}
.flow-steps strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--primary-dark);
}
.flow-steps p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pack-hub {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.pack-hub-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.pack-hub-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pack-hub-title {
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}
.pack-hub-lead {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    max-width: 36rem;
}
.pack-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.pack-hub-tip {
    margin: 1rem 0 0;
    font-size: 0.85rem;
}
.pack-hub-actions--single {
    justify-content: center;
}
.pack-hub-guide-link {
    text-align: center;
    margin: 0.75rem 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pack-hub-advanced {
    margin-top: 0.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.85rem;
    background: rgba(var(--primary-rgb), 0.03);
}
.pack-hub-advanced summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.pack-hub-advanced-panel {
    padding: 0.75rem 0 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pack-hub-resume {
    text-align: center;
    margin-bottom: 0.75rem;
}
.pack-hub-resume-btn {
    width: 100%;
    max-width: 22rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shop-filter-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.shop-filter-summary {
    cursor: pointer;
    font-weight: 700;
    padding: 0.85rem 1rem;
    color: var(--primary-dark);
    list-style: none;
}
.shop-filter-summary::-webkit-details-marker {
    display: none;
}
@media (min-width: 901px) {
    .shop-filter-panel {
        border: none;
        background: transparent;
    }
    .shop-filter-summary {
        display: none;
    }
    .shop-filter-panel > .shop-sidebar {
        display: block;
    }
}

.footer-more {
    margin-top: 0.5rem;
}
.footer-more summary {
    cursor: pointer;
    font-weight: 600;
    color: inherit;
    opacity: 0.9;
}
.footer-more-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding-inline-start: 0.25rem;
}

.games-extra-panel,
.games-plans-panel {
    margin-bottom: 1.25rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.85rem;
    background: rgba(var(--primary-rgb), 0.03);
}
.games-extra-panel summary,
.games-plans-summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}
.challenge-join-box--compact {
    padding: 0.75rem 0 0.25rem;
    border: none;
    background: transparent;
    box-shadow: none;
}
.registration-plans-grid--in-panel {
    margin-top: 1rem;
}

.container--narrow {
    max-width: 720px;
}
.hero-actions--simple {
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dashboard-nav-link-muted {
    opacity: 0.75;
    font-size: 0.88rem;
}

.admin-quick-links--daily {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.flashcards-access-box {
    border-radius: var(--radius-lg);
}

.site-map-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.site-map-strip a {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-dark);
    font-weight: 600;
}
.site-map-strip a:hover {
    background: var(--primary);
    color: #fff;
}

.dashboard-nav-link.is-active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-dark);
    font-weight: 700;
}