/* ==========================================================================
   Course program
   ========================================================================== */
/* Badges de statut (brouillon / publié…) : espace membre, /cours (mode admin), accordéon leçons */
.course-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: #374151;
    text-transform: uppercase;
}
.course-status-badge--draft {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
}
/* Statut publié : utile dans la liste admin des leçons (dashboard) et sur /cours en mode admin */
.course-status-badge--published {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.28);
    color: #15803d;
}
.course-status-badge--archived {
    background: rgba(17, 24, 39, 0.08);
    border-color: rgba(17, 24, 39, 0.18);
    color: #111827;
}

/* ============================================================================
   COURS - PROGRAMME (/cours) : accordéon niveaux / unités / leçons
   (police = héritée du site, pas Nunito)
   ============================================================================ */
.course-program {
    padding-bottom: 5rem;
}
.course-program.course-program--member-progress {
    padding-bottom: 0;
}
.course-program__page-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary, #1a1a2e);
}
.course-program .levels-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.course-program .level-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1.5px solid #e8e8f0;
    transition: box-shadow 0.2s;
}
.course-program .level-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.11);
}
.course-program .level-card.accent-pink {
    border-left: 4px solid #e85d75;
}
.course-program .level-card.accent-blue {
    border-left: 4px solid #3b82f6;
}
.course-program .level-card.accent-teal {
    border-left: 4px solid #0d9488;
}
.course-program .level-card.accent-indigo {
    border-left: 4px solid #6366f1;
}
.course-program .level-card.accent-amber {
    border-left: 4px solid #f59e0b;
}
.course-program .level-card.accent-rose {
    border-left: 4px solid #f43f5e;
}
.course-program .level-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
}
.course-program .level-badge {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.course-program .accent-pink .level-badge {
    background: #fde8ec;
    color: #e85d75;
}
.course-program .accent-blue .level-badge {
    background: #dbeafe;
    color: #3b82f6;
}
.course-program .accent-teal .level-badge {
    background: #ccfbf1;
    color: #0d9488;
}
.course-program .accent-indigo .level-badge {
    background: #e0e7ff;
    color: #6366f1;
}
.course-program .accent-amber .level-badge {
    background: #fef3c7;
    color: #f59e0b;
}
.course-program .accent-rose .level-badge {
    background: #ffe4e6;
    color: #f43f5e;
}
.course-program .level-info {
    flex: 1;
    min-width: 0;
}
.course-program .level-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-program .level-subtitle {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}
.course-program .level-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.course-program .progress-bar-bg {
    width: 90px;
    height: 6px;
    background: #e8e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.course-program .progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.5s ease;
}
.course-program .accent-pink .progress-bar-fill {
    background: #e85d75;
}
.course-program .accent-blue .progress-bar-fill {
    background: #3b82f6;
}
.course-program .accent-teal .progress-bar-fill {
    background: #0d9488;
}
.course-program .accent-indigo .progress-bar-fill {
    background: #6366f1;
}
.course-program .accent-amber .progress-bar-fill {
    background: #f59e0b;
}
.course-program .accent-rose .progress-bar-fill {
    background: #f43f5e;
}
.course-program .pct-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3b82f6;
    min-width: 34px;
    text-align: right;
}
.course-program .accent-pink .pct-label {
    color: #e85d75;
}
.course-program .accent-teal .pct-label {
    color: #0d9488;
}
.course-program .accent-indigo .pct-label {
    color: #6366f1;
}
.course-program .accent-amber .pct-label {
    color: #f59e0b;
}
.course-program .accent-rose .pct-label {
    color: #f43f5e;
}
.course-program .chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #bbb;
    transform: rotate(-90deg);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-program .level-card.open > .level-header .chevron {
    transform: rotate(0deg);
}
.course-program .level-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.55;
    padding: 0 20px 16px 78px;
    margin: 0;
}
.course-program .units-container {
    border-top: 1px solid #f0f0f6;
    overflow: hidden;
    display: none;
}
.course-program .units-inner {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.course-program .unit-item {
    background: #f9f9fc;
    border-radius: 12px;
    border: 1.5px solid #ebebf5;
    overflow: hidden;
    transition: border-color 0.2s;
}
.course-program .unit-item.is-expanded {
    border-color: #c7d7fd;
}
.course-program .unit-item--locked {
    opacity: 0.92;
}
.course-program .unit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.course-program .unit-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #e8edfb;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}
.course-program .accent-pink .unit-icon {
    background: #fde8ec;
    color: #e85d75;
}
.course-program .accent-teal .unit-icon {
    background: #ccfbf1;
    color: #0d9488;
}
.course-program .accent-indigo .unit-icon {
    background: #e0e7ff;
    color: #6366f1;
}
.course-program .accent-amber .unit-icon {
    background: #fef3c7;
    color: #d97706;
}
.course-program .accent-rose .unit-icon {
    background: #ffe4e6;
    color: #f43f5e;
}
.course-program .unit-info {
    flex: 1;
    min-width: 0;
}
.course-program .unit-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    vertical-align: top;
}
.course-program .unit-name:hover {
    color: var(--blue, #0047a0);
    text-decoration: underline;
}
.course-program .unit-count {
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 1px;
}
.course-program .unit-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: default;
}
.course-program .unit-bar-bg {
    width: 60px;
    height: 5px;
    background: #e0e0eb;
    border-radius: 99px;
    overflow: hidden;
}
.course-program .unit-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s;
    background: #3b82f6;
}
.course-program .accent-pink .unit-bar-fill {
    background: #e85d75;
}
.course-program .accent-teal .unit-bar-fill {
    background: #0d9488;
}
.course-program .accent-indigo .unit-bar-fill {
    background: #6366f1;
}
.course-program .accent-amber .unit-bar-fill {
    background: #f59e0b;
}
.course-program .accent-rose .unit-bar-fill {
    background: #f43f5e;
}
.course-program .unit-pct {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3b82f6;
    min-width: 30px;
    text-align: right;
}
.course-program .accent-pink .unit-pct {
    color: #e85d75;
}
.course-program .accent-teal .unit-pct {
    color: #0d9488;
}
.course-program .accent-indigo .unit-pct {
    color: #6366f1;
}
.course-program .accent-amber .unit-pct {
    color: #f59e0b;
}
.course-program .accent-rose .unit-pct {
    color: #f43f5e;
}
/* Deux glyphes FA ; !important pour passer outre les règles .fas / Bootstrap */
.course-program .unit-chevron-slot {
    flex-shrink: 0;
    width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.75rem;
    line-height: 1;
}
.course-program .unit-chevron-icon--closed {
    display: inline-block !important;
}
.course-program .unit-chevron-icon--open {
    display: none !important;
}
.course-program .unit-item.is-expanded .unit-chevron-icon--closed,
.course-program .unit-header[aria-expanded="true"] .unit-chevron-icon--closed {
    display: none !important;
}
.course-program .unit-item.is-expanded .unit-chevron-icon--open,
.course-program .unit-header[aria-expanded="true"] .unit-chevron-icon--open {
    display: inline-block !important;
}
.course-program .lessons-container {
    overflow: hidden;
    display: none;
    background: #fff;
    border-top: 1px solid #ebebf5;
}
.course-program .lessons-inner {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.course-program .lesson-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    border: none;
    background: transparent;
    font: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.course-program a.lesson-row:hover {
    background: #f0f4ff;
}
.course-program .lesson-row--locked {
    cursor: default;
}
.course-program .lesson-row--locked:hover {
    background: rgba(15, 23, 42, 0.03);
}
.course-program .lesson-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.course-program .lesson-row.done .lesson-dot {
    background: #3b82f6;
    border-color: #3b82f6;
}
.course-program .accent-pink .lesson-row.done .lesson-dot {
    background: #e85d75;
    border-color: #e85d75;
}
.course-program .accent-teal .lesson-row.done .lesson-dot {
    background: #0d9488;
    border-color: #0d9488;
}
.course-program .accent-indigo .lesson-row.done .lesson-dot {
    background: #6366f1;
    border-color: #6366f1;
}
.course-program .accent-amber .lesson-row.done .lesson-dot {
    background: #f59e0b;
    border-color: #f59e0b;
}
.course-program .accent-rose .lesson-row.done .lesson-dot {
    background: #f43f5e;
    border-color: #f43f5e;
}
.course-program .lesson-row.done .lesson-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}
.course-program .lesson-label {
    flex: 1;
    font-size: 0.83rem;
    color: #333;
    line-height: 1.35;
    min-width: 0;
}
.course-program .lesson-row.done .lesson-label {
    color: #999;
    text-decoration: line-through;
    text-decoration-color: #bbb;
}
.course-program .lesson-type {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.course-program .tag-lecon {
    background: #dbeafe;
    color: #3b82f6;
}
.course-program .tag-grammar {
    background: #fef3c7;
    color: #d97706;
}
.course-program .tag-exo {
    background: #dcfce7;
    color: #16a34a;
}
.course-program .tag-plus-loin {
    background: #ede9fe;
    color: #6d28d9;
}
.course-program .tag-topik {
    background: #fce7f3;
    color: #be185d;
}
.course-program .tag-premium {
    background: #fef3c7;
    color: #92400e;
}
.course-program .empty-state {
    text-align: center;
    padding: 20px;
    color: #bbb;
    font-size: 0.82rem;
}
@media (max-width: 500px) {
    .course-program .progress-bar-bg {
        width: 60px;
    }
    .course-program .level-desc {
        padding-left: 20px;
    }
}

/* ============================================================================
   COURS /cours : onglets Parcours vs thématiques (hors niveaux)
   ============================================================================ */
.course-page-tabs {
    max-width: 920px;
    margin: 0 auto;
}
.course-page-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.85rem;
    padding: 0.45rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 55%, #e8edf5 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 8px 32px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.04);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.course-page-tab {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    color: #5c6578;
    padding: 0.62rem 1.2rem;
    min-height: 2.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
    transition:
        transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.course-page-tab:hover:not(.is-active) {
    transform: translateY(-1px);
    color: #334155;
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow:
        0 4px 16px rgba(15, 23, 42, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.95) inset;
}
.course-page-tab:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(0, 71, 160, 0.2),
        0 4px 16px rgba(15, 23, 42, 0.08);
}
.course-page-tab.is-active {
    transform: translateY(-1px);
    font-weight: 800;
}
.course-page-tab.is-active[data-tab-tone="parcours"] {
    background: linear-gradient(180deg, #f0f7ff 0%, #dbeafe 45%, #cfe4ff 100%);
    color: #1e3a8a;
    border-color: rgba(59, 130, 246, 0.42);
    box-shadow:
        0 6px 20px rgba(37, 99, 235, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.course-page-tab.is-active[data-tab-tone="vocabulary"] {
    background: linear-gradient(180deg, #f0fdf6 0%, #dcfce7 45%, #ccf7dc 100%);
    color: #14532d;
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow:
        0 6px 20px rgba(22, 163, 74, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.course-page-tab.is-active[data-tab-tone="conjugation"] {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 45%, #e4dcff 100%);
    color: #4c1d95;
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow:
        0 6px 20px rgba(124, 58, 237, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.course-page-tab.is-active[data-tab-tone="expressions"] {
    background: linear-gradient(180deg, #fffbeb 0%, #ffedd5 45%, #ffe4c2 100%);
    color: #9a3412;
    border-color: rgba(234, 88, 12, 0.38);
    box-shadow:
        0 6px 20px rgba(234, 88, 12, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.course-page-tab.is-active[data-tab-tone="proverbs"] {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 45%, #ffd6dc 100%);
    color: #9f1239;
    border-color: rgba(225, 29, 72, 0.38);
    box-shadow:
        0 6px 20px rgba(225, 29, 72, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
@media (max-width: 640px) {
    .course-page-tablist {
        border-radius: 22px;
        max-width: 100%;
        padding: 0.5rem 0.45rem;
    }
    .course-page-tab {
        padding: 0.52rem 0.95rem;
        font-size: 0.76rem;
    }
}
.course-page-panel {
    padding-bottom: 0.5rem;
}
.course-page-panel-intro {
    max-width: 36rem;
    margin: 0 auto 1.25rem;
}
.course-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 920px;
    margin: 0 auto;
}
.course-resource-card {
    background: #fff;
    border: 1.5px solid #e8e8f0;
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.course-resource-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--course-resource-accent, #3b82f6);
}
.course-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.course-resource-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.course-resource-card--voc {
    --course-resource-accent: #16a34a;
}
.course-resource-card--premium {
    --course-resource-accent: #d4a017;
}
.course-resource-card--conj {
    --course-resource-accent: #7c3aed;
}
.course-resource-card--conj .course-resource-card__title {
    margin-bottom: 0;
}
.course-resource-card--expr {
    --course-resource-accent: #ea580c;
}
.course-resource-card--saj {
    --course-resource-accent: #f97316;
}
.course-resource-card__head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}
.course-resource-card__title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: #1a1a2e;
    line-height: 1.25;
}
.course-resource-card__subtitle {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}
.course-resource-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.course-resource-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}
.course-resource-chip--draft {
    background: #fff7ed;
    color: #9a3412;
}
.course-resource-kind-section {
    max-width: 920px;
    margin: 0 auto 2rem;
}
.course-resource-kind-section:last-child {
    margin-bottom: 0;
}
.course-resource-kind-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.course-resource-kind-section__head h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
}
.course-resource-kind-section__head p {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}
.course-resource-soon {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 16px;
    border: 1.5px dashed #cfd8e8;
    background: #fafbfc;
    max-width: 520px;
    margin: 0 auto;
}
.idiom-family-intro {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    padding: 1.35rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.idiom-family-intro h2 {
    font-size: 1.25rem;
    margin: 0 0 0.8rem;
}
.idiom-family-intro h3 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}
.idiom-family-intro p,
.idiom-family-intro li,
.idiom-family-intro blockquote {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.65;
}
.idiom-family-intro blockquote {
    border-left: 3px solid #ea580c;
    margin: 0.75rem 0;
    padding-left: 0.85rem;
    font-style: italic;
}
.idiom-intro-table {
    margin: 0.85rem 0;
}
.course-table--idiom-intro th,
.course-table--idiom-intro td {
    font-size: 0.84rem;
}
.idiom-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.idiom-group-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.idiom-group-title span {
    color: #64748b;
    font-size: 0.72em;
    font-weight: 600;
}
.idiom-group-blocks {
    margin: 0.95rem 0 1.25rem;
    color: #334155;
}
.idiom-group-blocks p,
.idiom-group-blocks li,
.idiom-group-blocks blockquote {
    font-size: 0.94rem;
    line-height: 1.68;
}
.idiom-group-blocks ul,
.idiom-group-blocks ol {
    margin: 0 0 0.8rem;
    padding-left: 1.25rem;
}
.idiom-group-blocks ul:last-child,
.idiom-group-blocks ol:last-child,
.idiom-group-blocks p:last-child,
.idiom-group-blocks blockquote:last-child {
    margin-bottom: 0;
}
.idiom-group-blocks li {
    margin-bottom: 0.65rem;
}
.idiom-group-blocks li::marker {
    color: #ea580c;
}
.idiom-group-blocks h3,
.idiom-group-blocks h4 {
    font-size: 1rem;
    margin: 0.85rem 0 0.45rem;
}
.idiom-group-blocks blockquote {
    border-left: 3px solid #ea580c;
    margin: 0.85rem 0;
    padding-left: 0.85rem;
    color: #475569;
}
.idiom-entry-card {
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.idiom-entry-card--common {
    --idiom-entry-accent: #ea580c;
    --idiom-entry-accent-bg: #ffedd5;
}
.idiom-entry-card--four_syllable {
    --idiom-entry-accent: #0f766e;
    --idiom-entry-accent-bg: #ccfbf1;
}
.idiom-entry-card__header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}
.idiom-entry-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 850;
    color: #111827;
    line-height: 1.25;
}
.idiom-entry-card__hanja {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.95rem;
}
.idiom-entry-card__facts {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}
.idiom-entry-card__facts div {
    border-top: 1px solid #eef2f7;
    padding-top: 0.65rem;
}
.idiom-entry-card__facts dt {
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 800;
}
.idiom-entry-card__facts dd {
    margin: 0;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.55;
}
.idiom-entry-card__example {
    margin-top: 0.85rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: #f8fafc;
}
.idiom-entry-card__example p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}
.idiom-entry-card__example .course-korean {
    color: #1f2937;
    font-weight: 800;
}
.idiom-entry-card__example p + p {
    margin-top: 0.35rem;
}
.idiom-entry-card__note {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.55;
}
