/* Learn page — TOC sidebar and content layout */

/* Sticky TOC sidebar (desktop) */
.learn-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.learn-toc .nav-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    border-left: 2px solid transparent;
}

.learn-toc .nav-link:hover {
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
}

/* Mobile TOC — horizontal badge bar */
.learn-toc-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Category sections */
.learn-category {
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 2rem;
}

.learn-category:last-child {
    border-bottom: none;
}

/* Entry styling */
.learn-entry {
    padding-left: 1rem;
    border-left: 3px solid var(--bs-border-color);
}

.learn-entry h3 {
    font-size: 1.25rem;
}

.learn-entry-body {
    font-size: 0.95rem;
    line-height: 1.7;
}

.learn-entry-body ul,
.learn-entry-body ol {
    padding-left: 1.5rem;
}

.learn-entry-body video {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.learn-see-also a {
    text-decoration: none;
}

.learn-see-also a:hover {
    text-decoration: underline;
}
