/* =========================================================================
 * EIASM Course Module Table — Editorial Variant
 *
 * Typographic, book-like treatment: large display title, subdued hair
 * rules, inline-baseline chip + module name + credits.
 * ========================================================================= */

.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-editorial {
    background: var(--eiasm-bg);
    text-align: left;
    padding: 0;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-header {
    margin-bottom: 2rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-title {
    font-size: 32px !important;         /* beats Elementor h1 sizing */
    line-height: 1.1 !important;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem !important;
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-title {
        font-size: 26px !important;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--eiasm-slate);
    max-width: 600px;
}

/* ── Section ─────────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-section {
    margin-bottom: 2.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-section__heading {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-section__heading {
        font-size: 18px !important;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-section__header {
    margin-bottom: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-section__caption {
    font-size: 12px;
    font-weight: 600;
    color: var(--eiasm-slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* ── Row (chip + name + credits inline) ──────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-rows {
    display: flex;
    flex-direction: column;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);  /* border-soft at 60% */
    line-height: 1.4;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-row--indent {
    padding-left: 1.5rem;
    border-left: 3px solid rgba(226, 232, 240, 0.3);
    margin-left: 0.75rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
    position: relative;
    top: -1px;
    line-height: 1.3;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-chip--standard {
    background: var(--eiasm-teal);
    color: #fff !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-chip--capstone {
    background: var(--eiasm-lime);
    color: var(--eiasm-ink) !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-name {
    display: inline !important;   /* beats Elementor h4 block */
    margin-left: 0.625rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--eiasm-ink) !important;
    font-family: var(--eiasm-font-display) !important;
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-name {
        font-size: 15px !important;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-credits {
    margin-left: 0.375rem;
    font-size: 16px;
    color: var(--eiasm-slate);
    font-family: var(--eiasm-font-display) !important;
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-credits {
        font-size: 15px;
    }
}

/* Dual-stage rows stack head + topics */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-row--bucket {
    padding: 1rem 0;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-row__head {
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-topics {
    list-style: disc;
    padding-left: 2.5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-topics li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--eiasm-slate);
}

/* ── Track accordion (tracked-pool variant) ──────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial .eiasm-cmt-track__toggle {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial .eiasm-cmt-track__toggle:hover {
    background: var(--eiasm-bg-muted) !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial .eiasm-cmt-track__name {
    font-family: var(--eiasm-font-display) !important;
    font-size: 16px;
    font-weight: 600;
    color: var(--eiasm-ink);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial .eiasm-cmt-track__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--eiasm-slate);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: auto;
    margin-right: 0.75rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial .eiasm-cmt-track__chevron {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    color: var(--eiasm-slate);
    transition: transform 0.2s ease;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial .eiasm-cmt-track__chevron svg {
    width: 100%;
    height: 100%;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial.eiasm-cmt-track--expanded .eiasm-cmt-track__chevron {
    transform: rotate(180deg);
    color: var(--eiasm-teal);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial .eiasm-cmt-track__body {
    display: none;
    padding-bottom: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-track--editorial.eiasm-cmt-track--expanded .eiasm-cmt-track__body {
    display: block;
}

/* ── Residual row ────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-residual {
    padding: 1rem 0;
    border-top: 2px solid var(--eiasm-ink);
    border-bottom: 1px solid var(--eiasm-border);
    margin-top: 1rem;
    line-height: 1.4;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-residual .eiasm-cmt-ed-residual__label {
    display: inline !important;
    margin-left: 0.625rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Dual-stage price */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-price {
    padding: 1rem 0;
    border-bottom: 1px solid var(--eiasm-border);
    text-align: right;
    font-size: 13px;
    color: var(--eiasm-slate);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-price__amount {
    color: var(--eiasm-teal);
    font-weight: 700;
    font-size: 16px;
    font-family: var(--eiasm-font-display) !important;
    margin-right: 0.5rem;
}

/* ── Total strip ─────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-total {
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 3px solid var(--eiasm-ink);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-total__label {
    font-size: 18px !important;
    font-weight: 700 !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--editorial .eiasm-cmt-ed-total__credits {
    font-family: var(--eiasm-font-display) !important;
    font-weight: 700;
    font-size: 18px;
    color: var(--eiasm-ink) !important;
}
