.breadcrumbs {
    margin-bottom: 20px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #6b6e7a;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text);
}

.learn-hero {
    margin-bottom: 32px;
}

.learn-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    line-height: 1.15;
}

.learn-intro {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
    font-size: 1.05rem;
}

.learn-explanation {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.learn-explanation.is-collapsed {
    max-height: 7.2em;
}

.learn-explanation.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.4em;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}

.learn-explanation p {
    margin: 0 0 1.25em;
    line-height: 1.6;
}

.learn-explanation p:last-child {
    margin-bottom: 0;
}

.learn-explanation-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 16px;
    border: 1px solid rgba(246, 247, 251, 0.22);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.learn-explanation-toggle::after {
    content: '▾';
    font-size: 0.85em;
    line-height: 1;
}

.learn-explanation-toggle[aria-expanded="true"]::after {
    content: '▴';
}

.learn-explanation-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--text);
}

.learn-empty {
    color: var(--muted);
    margin-bottom: 48px;
}

.learn-grid-section {
    margin-bottom: 48px;
}

.learn-grid-section h2 {
    margin: 0 0 16px;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.learn-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.015)
    );
    text-decoration: none;
    color: var(--text);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.learn-card:hover {
    border-color: rgba(111, 60, 255, 0.5);
    transform: translateY(-2px);
}

.learn-card-emoji {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.learn-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.learn-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.vocab-section {
    margin-bottom: 36px;
}

.vocab-section h2 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.vocab-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
}

.vocab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.vocab-table th,
.vocab-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.vocab-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vocab-table tbody tr:last-child td {
    border-bottom: none;
}

.vocab-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.phonetic {
    display: block;
    margin-top: 4px;
    color: #8f92a0;
    font-size: 0.85rem;
    font-style: italic;
}

@media (max-width: 1024px) {
    .learn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .learn-grid {
        grid-template-columns: 1fr;
    }

    .vocab-table th,
    .vocab-table td {
        padding: 10px 12px;
    }
}
