/*
 * learn-index.css
 * Styles for the Learn documentation index / landing page.
 * Uses design tokens from learn.css.
 */

/* ─── Card grid ─── */

.learn-index-card {
    background: var(--os-surface);
    border: 1px solid var(--os-border);
    border-radius: var(--os-radius);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.learn-index-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Card header */
.learn-index-card .card-header {
    background: #f8f9fb;
    color: var(--os-text);
    border-bottom: 1px solid var(--os-border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 0;
}

.learn-index-card .card-header svg {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Card body */
.learn-index-card .card-body {
    padding: 1rem 1.25rem 1.25rem;
}

/* Link list inside cards */
.learn-index-card .nav-link {
    color: var(--os-text-muted);
    font-size: 0.875rem;
    padding: 0.3125rem 0;
    transition: color 0.15s ease;
    line-height: 1.5;
}

.learn-index-card .nav-link:hover {
    color: var(--os-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.learn-index-card .nav-item {
    margin-bottom: 0.125rem;
}
