  /* CourseLeaf program/certificate renderer aligned with Open Class List styling. */
.courseleaf-program {
    --cl-navy: var(--hc-course-navy, #003666);
    --cl-accent: var(--hc-course-accent, #79cbe1);
    --cl-shell: var(--hc-course-shell, #f5f7fb);
    --cl-stripe: var(--hc-course-stripe, #eff4fa);
    --cl-rule: var(--hc-course-rule, #c7d1dd);
    --cl-hairline: var(--hc-course-hairline, #d5dde6);
    --cl-ink: var(--hc-course-ink, #1c1c1c);
    --cl-muted: var(--hc-course-muted, #4a5561);
    --cl-link: var(--hc-course-link, #0a53be);
    --cl-radius: var(--hc-course-radius, 10px);

    color: var(--cl-ink);
}

.courseleaf-program .program-description-spacer {
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.courseleaf-program > h3,
.courseleaf-program > h4 {
    color: var(--cl-navy);
}

.courseleaf-program > h3 {
    margin: 2rem 0 0.75rem;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    line-height: 1.25;
}

.courseleaf-program > h4 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.courseleaf-program .table-scroll {
    width: 100%;
    margin: 0 0 1.75rem;
    overflow-x: auto;
    border: 1px solid var(--cl-rule);
    border-radius: var(--cl-radius);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.courseleaf-program .table-scroll:focus {
    outline: none !important;
    box-shadow: none !important;
}

.courseleaf-program .table-scroll:focus-visible {
    outline: 3px solid var(--cl-navy) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}

.courseleaf-program .programTable {
    width: 100%;
    min-width: 38rem;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: auto;
    background: #fff;
    color: var(--cl-ink);
}

.courseleaf-program .programTable caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.courseleaf-program .programTable thead th {
    padding: 0.7rem 0.9rem;
    border: 0;
    border-bottom: 4px solid var(--cl-accent);
    color: #fff;
    background: var(--cl-navy);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.courseleaf-program .programTable thead th:last-child,
.courseleaf-program .programTable tbody td:last-child {
    width: 7rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.courseleaf-program .programTable tbody th,
.courseleaf-program .programTable tbody td {
    padding: 0.78rem 0.9rem;
    border: 0;
    border-bottom: 1px solid var(--cl-hairline);
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.45;
}

.courseleaf-program .programTable tbody th[scope="row"] {
    width: 8.5rem;
    color: var(--cl-navy);
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.courseleaf-program .programTable tbody tr:is([data-case="a1"], [data-case="a2"], [data-case="c1"], [data-case="c3"], [data-case="d1"]):nth-child(even) > * {
    background: var(--cl-stripe);
}

.courseleaf-program .programTable tbody tr:is([data-case="a1"], [data-case="a2"], [data-case="c1"], [data-case="c3"], [data-case="d1"]):hover > * {
    background: var(--cl-shell);
}

.courseleaf-program .programTable tbody tr:last-child > * {
    border-bottom: 0;
}

.courseleaf-program .programTable .programTermRow > * {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    border-bottom: 1px solid var(--cl-rule);
    color: var(--cl-navy);
    background: #cacaca!important;
    font-weight: 700;
}

.courseleaf-program .programTable .secondaryOrRow > th,
.courseleaf-program .programTable .secondaryOrRow > td,
.courseleaf-program .programTable .orclass {
    color: var(--cl-muted);
}

.courseleaf-program .cl-course-detail-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--cl-link);
    background: transparent;
    font: inherit;
    font-weight: 600;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    cursor: pointer;
}

.courseleaf-program .cl-course-detail-link:hover {
    color: var(--cl-navy);
    text-decoration-thickness: 2px;
}

.courseleaf-program .cl-course-detail-link:focus:not(:focus-visible),
.courseleaf-program a:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

.courseleaf-program .cl-course-detail-link:focus-visible,
.courseleaf-program a:focus-visible {
    border-radius: 2px;
    outline: 3px solid var(--cl-navy) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

.courseleaf-program .footnoteLink,
.courseleaf-program .footnoteLink1,
.courseleaf-program dl.sc_footnotes a {
    color: var(--cl-link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.courseleaf-program dl.sc_footnotes {
    margin: -0.75rem 0 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--cl-rule);
    border-radius: var(--cl-radius);
    background: var(--cl-shell);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.courseleaf-program dl.sc_footnotes dt {
    color: var(--cl-navy);
    font-weight: 700;
}

.courseleaf-program dl.sc_footnotes dd {
    margin-bottom: 0.6rem;
}


@media (max-width: 700px) {
    .courseleaf-program .table-scroll {
        border-radius: 8px;
    }

    .courseleaf-program .programTable {
        min-width: 34rem;
    }

    .courseleaf-program .programTable thead th,
    .courseleaf-program .programTable tbody th,
    .courseleaf-program .programTable tbody td {
        padding-left: 0.72rem;
        padding-right: 0.72rem;
    }
}

.harperTable tbody tr:nth-child(odd) td,
.programTable tbody tr:nth-child(odd) td,
.table-striped tbody tr:nth-child(odd) td,
.harperTable tbody tr:nth-child(odd) th,
.programTable tbody tr:nth-child(odd) th,
.table-striped tbody tr:nth-child(odd) th {
    background: #fff !important;
}
