/* Coursework Overview: the intro paragraph and the six theme buttons above the grid.
   Picking a theme adds .has-pick to .courses-grid; cards that feed it get .lit and show their courses (.cx-lit). */

/* in the same 1100px column as everything else, left-aligned */
.cx {
    max-width: var(--page-width, 1100px);
    margin: -20px auto 36px;
    text-align: left;
}

.cx-intro {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4em;
    line-height: 1.7;
    text-wrap: pretty;
    color: #2A1810;
    margin-bottom: 36px;
}

.cx-heading {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6em;
    color: #1E100A;
    margin: 0 0 16px;
}

.cx-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.cx-pill {
    font: inherit;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    padding: 9px 20px;
    border-radius: var(--r-pill);
    border: 1.5px solid #D9B8B3;
    background: #FFF8F6;
    color: #76344E;
    cursor: var(--cursor-hot, pointer);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cx-pill:hover {
    border-color: #76344E;
}

.cx-pill[aria-pressed="true"] {
    background: #76344E;
    border-color: #76344E;
    color: #FFF8F6;
}

.cx-pill:focus-visible {
    outline: 2px solid #76344E;
    outline-offset: 3px;
}

.cx-q {
    min-height: 1.6em;
    margin: 18px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.15em;
    color: #76344E;
}

/* the grid while a theme is picked */
.courses-grid .course-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.courses-grid.has-pick .course-card:not(.lit) {
    opacity: 0.25;
}

.courses-grid .course-card.lit {
    transform: scale(1.03);
}

.courses-grid .course-card.lit .course-front {
    box-shadow: 0 0 0 3px #FAF1EF, 0 0 0 6px #76344E, 0 20px 50px rgba(158, 90, 99, 0.25);
}

.cx-lit {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 248, 246, 0.4);
    font-size: 0.85em;
    line-height: 1.5;
}

.cx-lit[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .cx { margin-top: -10px; }
    .cx-intro { font-size: 1.05em; text-align: left; }
    .cx-heading { font-size: 1.3em; }
    .cx-pill { padding: 8px 16px; font-size: 0.85em; }
}

/* the overview intro sits the same distance under the tabs as the MIS and Marketing intros */
.cx > .mp-hero { padding-top: 4px; }
