/*
 * A designation's curriculum page (protected/views/curriculum/view.php), loaded after
 * css/catalog.css: the course cards, wells, headings and price panels are the catalog's (with the
 * short-card scale and spacing of its .card-catalog--compact section), and every colour here is
 * one of its --cat-* tokens but the completed card's greens. What this file adds: each requirement
 * group's heading and rule on the page above a well of its own (Jason 2026-10-28: the groups a
 * reader chooses from stay clearly apart), the reader's progress, the started course's status line
 * and the completed course's card.
 * Sizes are px on purpose (feedback_avoid_rem_font_sizes). Paragraph rules are scoped under
 * .curriculum: the NABIP theme's p:last-of-type (1em under the last paragraph of any parent)
 * outranks a single class.
 */

/* the reader's progress, under the description in the page head */
.curriculum-progress {
    max-width: 440px;
    margin: 20px 0 0;
}
.curriculum .curriculum-progress-label {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cat-ink);
}
.curriculum-progress-bar {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 10px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: var(--cat-sunken);
    color: var(--cat-control);
}
.curriculum-progress-bar::-webkit-progress-bar {
    background: var(--cat-sunken);
    border-radius: 999px;
}
.curriculum-progress-bar::-webkit-progress-value {
    background: var(--cat-control);
    border-radius: 999px;
}
.curriculum-progress-bar::-moz-progress-bar {
    background: var(--cat-control);
    border-radius: 999px;
}

/* A requirement group (Jason 2026-10-28): its heading and rule stand on the page, close above the
   well that holds only its courses, and far below the group before; the heading takes the brand's
   navy at the h1's weight, so it reads as the owner of the cards under it, not as one of them. */
.curriculum-group {
    margin-top: 48px;
}
.curriculum-group:first-child {
    margin-top: 12px;
}
.curriculum-group-head {
    margin-bottom: 12px;
}
.card-catalog .curriculum-group-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--cat-accent);
}
/* a group the reader has finished: the completed cards' green check after its heading */
.curriculum-group-check {
    margin-left: 8px;
    font-size: 18px;
    color: var(--curriculum-done-ink);
}
/* the group's rule ("You must complete any three (3) of the following courses:"): staff HTML,
   one quiet line under the heading */
.curriculum .curriculum-group-rule {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--cat-muted);
}
.curriculum .curriculum-group-rule p {
    margin: 0;
}
.curriculum .curriculum-group-rule p + p {
    margin-top: 6px;
}

/* a course the signed-in reader started: one quiet line under the title */
.curriculum .curriculum-status {
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--cat-muted);
}

/* A course the reader completed (Jason 2026-10-28: it has to stand out when scanning the page): the
   whole card in a pale green, and its buy column says "Completed" with a large check where the
   price and the button were, the course page a quiet link under the title. The greens are fixed values,
   not the brand's: done reads as green on every theme. The ink is darker than --cat-success so the
   label keeps its contrast on the green card. */
.curriculum {
    --curriculum-done-fill: #F4FAF4;
    --curriculum-done-line: #B5D6B8;
    --curriculum-done-rule: #CCE4CE;
    --curriculum-done-ink: #2D6532;
}
.card-catalog .curriculum-card--done,
.card-catalog .curriculum-card--done:hover {
    background-color: var(--curriculum-done-fill);
    border-color: var(--curriculum-done-line);
}
/* the column has no fill of its own on these cards (catalog.css section 13): only its hairline turns green */
.curriculum-card--done .course-buy {
    border-color: var(--curriculum-done-rule);
}
.curriculum .curriculum-done-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--curriculum-done-ink);
}
.curriculum-done-label i {
    font-size: 22px;
}
/* the course page link under the title (catalog.css's .course-info > .course-details-link) */
.curriculum-card--done .course-details-link {
    color: var(--curriculum-done-ink);
}
/* side by side: the check above the word, centred in the panel */
@media (min-width: 768px) {
    .curriculum-done {
        align-items: center;
    }
    .curriculum .curriculum-done-label {
        flex-direction: column;
        gap: 6px;
    }
    .curriculum-done-label i {
        font-size: 28px;
    }
}
/* a retired course the reader completed: no price and no button, the word in their place */
.curriculum .curriculum-unavailable {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: var(--cat-muted);
}

/* the group's well holds only its cards: the catalog's bleed (cards line up with the heading), a
   tighter inset, and rounded corners where it does not run to the screen's edges */
.catalog-well.curriculum-group-courses {
    padding-top: 16px;
    padding-bottom: 16px;
}
@media (min-width: 576px) {
    .catalog-well.curriculum-group-courses {
        border-radius: var(--cat-radius-panel);
    }
}
