/* =========================================================================
 * EIASM Course Module Table — Default Variant
 *
 * Card-grid layout with white surfaces, teal accents, green capstone pills.
 * Structural styling for all four shapes via shape modifiers on the wrapper.
 * ========================================================================= */

/* ── Outer card container (all shapes) ───────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-card {
    background: var(--eiasm-bg);
    border: 1px solid var(--eiasm-border);
    border-radius: var(--eiasm-radius-md);
    box-shadow: 0 1px 2px 0 rgba(11, 18, 32, 0.05);
    overflow: hidden;
}

/* ── Groups (Core, Specialisation, Pool, etc.) ───────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group {
    padding: 1.5rem;
    border-bottom: 1px solid var(--eiasm-border);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group--specialisation,
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group--pool {
    background: var(--eiasm-bg-muted);
}
@media (max-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group {
        padding: 1rem;
    }
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group__heading {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group__header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group--tracked .eiasm-cmt-group__header-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group__header-row .eiasm-cmt-group__heading {
    margin-bottom: 0.25rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group__caption {
    font-size: 10px;
    font-weight: 600;
    color: var(--eiasm-slate);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group__banner {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-left: 4px solid var(--eiasm-teal);
    background: #F1F5F9;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group__banner .eiasm-cmt-group__heading {
    font-size: 12px;
    color: var(--eiasm-teal) !important;  /* override default ink */
    margin-bottom: 0.25rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-group__banner .eiasm-cmt-group__caption {
    font-size: 10px;
}

/* ── Module grid ─────────────────────────────────────────────────────── */
/*
 * Mobile: 2-col default at 420px+ for compact scanning (v1.6.2).
 * Very narrow viewports (< 420px) fall back to 1-col to avoid cramped cards.
 */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
@media (min-width: 420px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
}
@media (min-width: 1024px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* ── Module card ─────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module {
    background: var(--eiasm-bg);
    border: 1px solid var(--eiasm-border);
    border-radius: var(--eiasm-radius-sm);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    transition: border-color 0.2s ease;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module:hover {
    border-color: var(--eiasm-teal);
}
@media (min-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module {
        padding: 1rem;
    }
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__name {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600 !important;  /* beats Elementor h4 */
    color: var(--eiasm-ink) !important;
    margin: 0;
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__chip-row {
    margin-top: 0.25rem;
}

/* ── Chip (type label) ───────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    border-radius: var(--eiasm-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.3;
    /* allow long type labels (e.g. RESEARCH METHODOLOGY) to wrap */
    white-space: normal;
    text-align: center;
    min-width: 0;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__chip--standard {
    background: var(--eiasm-teal);
    color: #fff !important;  /* beats Elementor link color */
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__chip--capstone {
    background: var(--eiasm-lime);
    color: var(--eiasm-ink) !important;
}

/* ── Credit pill ─────────────────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__credits {
    flex-shrink: 0;  /* don't let long chips squeeze the pill */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.375rem;
    border-radius: var(--eiasm-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    line-height: 1.3;
    white-space: nowrap;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__credits--standard {
    background: transparent;
    color: var(--eiasm-teal) !important;
    border-color: var(--eiasm-teal);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__credits--capstone {
    background: var(--eiasm-lime);
    color: var(--eiasm-ink) !important;
    border-color: var(--eiasm-lime);
}

/* ── Collapse-after (cores + electives) ─────────────────────────────── */
/*
 * v1.7.2 — progressive-enhancement collapse:
 *   • Server emits the full grid every time. No --hidden class, no button.
 *   • The widget wrapper emits an inline <script> that adds .eiasm-cmt-js
 *     to <html> synchronously, so the CSS hide rule below applies BEFORE
 *     first paint for JS users.
 *   • JS injects the toggle button after the grid and binds it to flip
 *     [data-expanded="true"] which reverses the hide rule.
 *
 * Crawlers, screen readers without JS, and any client that fails to run
 * the inline script see every card from the start. SEO-safe by default.
 *
 * Thresholds are read from data-collapse-after on the grid (fixed at 6
 * in v1.7.2 partials, but the selector permits future overrides).
 */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-item,
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-item {
    display: contents;
}
/* Desktop hide: items past index 6 when grid is collapsed (count > 6). */
.eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-grid[data-collapse-after] > .eiasm-cmt-pool-item:nth-child(n+7),
.eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-grid[data-collapse-after] > .eiasm-cmt-core-item:nth-child(n+7) {
    display: none;
}
.eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-grid[data-expanded="true"] > .eiasm-cmt-pool-item:nth-child(n+7),
.eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-grid[data-expanded="true"] > .eiasm-cmt-core-item:nth-child(n+7) {
    display: contents;
}
/* v1.7.3 — Mobile hide: items past index 3 when grid is collapsed (count > 3). */
@media (max-width: 600px) {
    .eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-grid[data-collapse-after-mobile] > .eiasm-cmt-pool-item:nth-child(n+4),
    .eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-grid[data-collapse-after-mobile] > .eiasm-cmt-core-item:nth-child(n+4) {
        display: none;
    }
    .eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-grid[data-expanded="true"] > .eiasm-cmt-pool-item:nth-child(n+4),
    .eiasm-cmt-js .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-grid[data-expanded="true"] > .eiasm-cmt-core-item:nth-child(n+4) {
        display: contents;
    }
}

/* Toggle wrap is hidden by default; viewport rules below show it when the
 * relevant data-attribute is on the adjacent grid. Adjacent-sibling selector
 * works because JS injects the wrap immediately after the grid. */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-toggle-wrap,
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-toggle-wrap {
    display: none;
    justify-content: center;
    margin-top: 1.5rem;
}
@media (min-width: 601px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-grid[data-collapse-after] + .eiasm-cmt-pool-toggle-wrap,
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-grid[data-collapse-after] + .eiasm-cmt-core-toggle-wrap {
        display: flex;
    }
}
@media (max-width: 600px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-grid[data-collapse-after-mobile] + .eiasm-cmt-pool-toggle-wrap,
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-grid[data-collapse-after-mobile] + .eiasm-cmt-core-toggle-wrap {
        display: flex;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-toggle,
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px dashed var(--eiasm-teal) !important;  /* beats Elementor button border */
    border-radius: var(--eiasm-radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--eiasm-teal) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--eiasm-bg) !important;
    transition: background-color 0.2s ease;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-pool-toggle:hover,
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-core-toggle:hover {
    background: var(--eiasm-bg-muted) !important;
}

/* ── Track toggles (tracked-pool) ────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track-expand-all {
    padding: 0.375rem 1rem;
    border: 1px dashed var(--eiasm-teal) !important;
    border-radius: var(--eiasm-radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--eiasm-teal) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--eiasm-bg) !important;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track-expand-all:hover {
    background: var(--eiasm-bg-muted) !important;
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track {
    background: var(--eiasm-bg);
    border: 1px solid var(--eiasm-border);
    border-radius: var(--eiasm-radius-sm);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track:hover {
    border-color: var(--eiasm-teal);
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #FAFAFA !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__toggle:hover {
    background: #F1F5F9 !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__header {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--eiasm-ink);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__count {
    font-size: 10px;
    font-weight: 500;
    color: var(--eiasm-slate);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__chevron {
    flex-shrink: 0;
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    color: var(--eiasm-slate);
    transition: transform 0.2s ease;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__chevron svg {
    width: 100%;
    height: 100%;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track--expanded .eiasm-cmt-track__chevron {
    transform: rotate(180deg);
}

.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__body {
    display: none;
    padding: 0.75rem 1.5rem;
    background: var(--eiasm-bg-muted);
    border-top: 1px solid var(--eiasm-border);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track--expanded .eiasm-cmt-track__body {
    display: block;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__list {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--eiasm-slate);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__item {
    font-size: 11px;
    line-height: 1.6;
    margin-bottom: 0.25rem;
    color: var(--eiasm-slate);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__item-name {
    color: var(--eiasm-ink);
    font-weight: 500;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-track__item-credits {
    opacity: 0.7;
}

/* ── Dual stage (Integrated) ─────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__header {
    background: #F1F5F9;
    border-top: 1px solid var(--eiasm-border);
    border-bottom: 1px solid var(--eiasm-border);
    border-left: 6px solid var(--eiasm-teal);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
@media (min-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage--last .eiasm-cmt-stage__header {
    border-left-color: var(--eiasm-lime);
    background: var(--eiasm-limemist);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__credits {
    font-size: 11px;
    font-weight: 600;
    color: var(--eiasm-slate);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--eiasm-bg);
}
@media (min-width: 1024px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__body {
        padding: 2rem;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__divider {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--eiasm-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--eiasm-bg);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__divider-text {
    font-size: 10px;
    color: var(--eiasm-slate);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-stage__divider-line {
    width: 1px;
    height: 1.5rem;
    background: var(--eiasm-border);
}

/* Bucket card (dual-stage variant of module) */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module--bucket {
    padding: 1rem;
    gap: 0.75rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module--bucket .eiasm-cmt-module__head {
    flex-direction: column;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module--bucket .eiasm-cmt-module__head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module--bucket .eiasm-cmt-module__name {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module--bucket .eiasm-cmt-module__meta {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
    align-items: center;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module--capstone {
    background: rgba(168, 200, 52, 0.08);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__topics {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__topics li {
    position: relative;
    padding-left: 1rem;
    font-size: 12px;
    line-height: 1.5;
    color: var(--eiasm-slate);
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-module__topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    background: var(--eiasm-slate);
    opacity: 0.4;
}

/* Price chip (dual-stage, optional) */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-price-row {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--eiasm-border);
    background: var(--eiasm-bg-muted);
    display: flex;
    justify-content: flex-end;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-price-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--eiasm-bg);
    border: 1px solid var(--eiasm-border);
    border-radius: var(--eiasm-radius-sm);
    color: var(--eiasm-slate);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-price-chip__amount {
    color: var(--eiasm-teal);
    font-weight: 700;
    font-size: 14px;
}

/* ── Residual (thesis) row ───────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-residual {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--eiasm-border);
    border-left: 4px solid var(--eiasm-lime);
    background: var(--eiasm-limemist);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-residual__label-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-residual__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Arithmetic footer (tracked-pool only) ───────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-arithmetic {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--eiasm-border);
    border-bottom: 1px solid var(--eiasm-border);
    background: var(--eiasm-bg-muted);
    color: var(--eiasm-slate);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}
@media (min-width: 640px) {
    .eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-arithmetic {
        text-align: left;
    }
}

/* ── Programme Total strip ───────────────────────────────────────────── */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-total {
    padding: 1rem;
    border-top: 1px solid var(--eiasm-border);
    border-left: 4px solid var(--eiasm-teal);
    background: var(--eiasm-tealmist);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-total__label {
    font-size: 13px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default .eiasm-cmt-total__credits {
    font-family: var(--eiasm-font-display) !important;
    font-weight: 700 !important;
    color: var(--eiasm-ink) !important;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Legacy accent colour modifier (preserved for existing instances) ─ */
.eiasm-cmt-wrap.eiasm-cmt-wrap--default.eiasm-cmt-wrap--accent-dark .eiasm-cmt-group--specialisation .eiasm-cmt-group__heading {
    color: var(--eiasm-ink) !important;
}
.eiasm-cmt-wrap.eiasm-cmt-wrap--default.eiasm-cmt-wrap--accent-lime .eiasm-cmt-group--specialisation {
    border-left: 4px solid var(--eiasm-lime);
}
