/*
 * InsuranceStudy's card catalog (source 32): the override of css/catalog.css, loaded after it by
 * protected/views/courses/catalog_cards.php (and the state hub, catalog_landing.php) because this
 * file exists at css/custom/<theme>/catalog.css. The default catalog is a brand-tinted well of
 * white cards inside the theme's column; here the cream page (theme.css, body.is-site) is the tint,
 * so the well is transparent and the cards sit straight on the page, under a white page-head band.
 * Colour is the InsuranceStudy split the default's roles were made for: green for links, figures
 * and prices, gold for bullets and focus. Type: Jost for the figures, hours
 * and prices, Open Sans for the filter legend (the --font-* tokens of theme.css, never by name).
 *
 * Tokens first, then the few element rules that differ from the default. theme.css already gives
 * .req-big / .req-subtitle / .ltc-stage-title / .course-hours the display face, .filter-legend the
 * body face, and .btn-cart its blue: nothing here fights it. Sizes are px on purpose.
 */

/* 1. Tokens ----------------------------------------------------------------------------- */
.card-catalog {
    --cat-accent: var(--is-green-700);
    --cat-accent-strong: var(--is-green-600);
    --cat-ink: var(--is-heading);
    --cat-text: var(--is-ink);
    --cat-muted: var(--is-muted);
    --cat-subtle: var(--is-subtle);
    --cat-faint: var(--is-ink-300);
    --cat-success: var(--is-success);
    --cat-surface: #fff;
    --cat-well: transparent;
    --cat-tint: var(--is-green-50);
    --cat-line: var(--is-border);
    --cat-rule: var(--is-border);
    --cat-sunken: var(--is-sunken);
    --cat-panel: var(--is-cream);
    --cat-key-fill: var(--is-gold-100);
    --cat-key-line: #EED9AE;
    --cat-key-icon: var(--is-gold-800);
    --cat-link: var(--is-green-700);
    --cat-link-hover: var(--is-gold-700);
    --cat-link-active: var(--is-green-600);
    --cat-figure: var(--is-green-700);
    --cat-figure-numerals: normal;
    --cat-weight-title: 700;
    --cat-buy: transparent;
    --cat-price: var(--is-green-700);
    --cat-control: var(--is-green);
    --cat-control-focus: var(--is-gold);
    --cat-bullet: var(--is-gold);
    --cat-chip-bg: var(--is-green-50);
    --cat-chip-border: var(--is-green);
    --cat-chip-text: var(--is-green-700);
    --cat-chip-hover: var(--is-green-100);
    --cat-focus: var(--is-focus);
    --cat-shade: rgba(22, 24, 26, .12);
    --cat-shadow-xs: var(--is-shadow-xs);
    --cat-shadow-sm: var(--is-shadow-sm);
    --cat-shadow-md: var(--is-shadow-md);
    --cat-shadow-panel: var(--is-shadow-xs);
    --cat-radius-card: 6px;
    --cat-radius-panel: 6px;
    --cat-font-display: var(--font-display);
    --cat-font-body: var(--font-body);
    --cat-header-height: var(--is-header-height);
    --cat-ease: var(--is-ease);
}

/* 2. Page head -------------------------------------------------------------------------- */
/* a white band under the header, ruled off from the cream page */
.page-head {
    background: #fff;
    border-bottom: 1px solid var(--is-border);
    padding: 20px 0 32px;
}
/* the course catalog has no breadcrumb (Jason 2026-10-14): the heading gets the band's even
   padding instead of sitting under the header */
.card-catalog .page-head {
    padding-top: 32px;
}
/* the state hub page (catalog_landing.php) keeps its breadcrumb */
.breadcrumb {
    --bs-breadcrumb-divider-color: var(--is-ink-300);
    --bs-breadcrumb-item-active-color: var(--is-muted);
    font-size: 14px;
    margin-bottom: 14px;
}
.breadcrumb a {
    color: var(--is-green-700);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* 3. The well --------------------------------------------------------------------------- */
/* the cream page is the tint: no band, and the cards keep their own distance from the page head */
.catalog-well {
    background: none;
    margin: 0;
    padding: 0;
}
.catalog-well > .catalog-notice:first-child {
    margin-top: 24px;
}
.catalog-well > .req-card:first-child {
    margin-top: 28px;
}
.catalog-well > .bundles:first-child,
.catalog-well > .catalog:first-child {
    margin-top: 44px;
}
/* no price panel: the buy column keeps its hairline inside the card's own padding */
.course-buy {
    margin: 0;
    padding: 14px 0 0;
    border-radius: 0;
}
@media (min-width: 768px) {
    .course-buy {
        flex-basis: 200px;
        margin: 0;
        padding: 0 0 0 24px;
    }
}

/* 4. Figures and headings ----------------------------------------------------------------- */
.req-big {
    font-size: 40px;
}
@media (max-width: 575.98px) {
    .req-big {
        font-size: 34px;
    }
}
.catalog-title {
    font-size: 26px;
}

/* 5. Trust row (the last thing on the page, after "How our courses work"), this site only ---- */
/* no bottom margin: the footer's own top margin is the gap, as under .catalog-how */
.catalog-trust {
    margin: 40px 0 0;
}
.catalog-how + .catalog-trust {
    margin-top: 24px;
}
.ticks-row {
    gap: 8px 28px;
    font-size: 14px;
    color: var(--is-muted);
}
.ticks-row li > i {
    margin-top: 3px;
}
@media (min-width: 768px) {
    .ticks-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* 6. After the list ---------------------------------------------------------------------- */
/* the staff note is plain muted prose here, no rule above it and no measure */
.catalog-notice-after {
    max-width: none;
    margin: 32px 0 0;
    padding-top: 0;
    border-top: 0;
}
/* the three "How our courses work" boxes carry no step numbers on this site */
.catalog-how-grid > div::before {
    display: none;
}

/* 7. State hub (catalog_landing.php) ------------------------------------------------------- */
/* top and bottom only: the element is also the .container, whose side gutters a padding
   shorthand would zero (the lists then touched the screen edge on a phone) */
.state-hub {
    padding-top: 36px;
    padding-bottom: 64px;
}
.state-hub-form {
    background: #fff;
    border: 1px solid var(--is-border);
    border-radius: 6px;
    box-shadow: var(--is-shadow-xs);
    padding: 24px;
    margin: 0 0 36px;
    max-width: 560px;
}
.state-hub-form form {
    display: grid;
    gap: 12px;
}
.state-hub h2 {
    font-size: 22px;
    margin-bottom: 14px;
}
/* a second list on the hub (the CE requirements pages), set off from what ends the first */
.state-hub h2.state-hub-next {
    margin-top: 36px;
    /* the header's "CE requirements by state" link lands here: clear of the sticky header */
    scroll-margin-top: calc(var(--theme-header-offset, 72px) + 16px);
}
.state-grid {
    columns: 2;
    column-gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}
.state-grid li {
    break-inside: avoid;
    padding: 6px 0;
    border-bottom: 1px solid var(--is-border);
}
.state-grid a {
    display: block;
    text-decoration: none;
    color: var(--is-ink);
    font-size: 16px;
    padding: 4px 0;
}
.state-grid a:hover {
    color: var(--is-green-700);
    text-decoration: underline;
}
.state-grid a:active {
    color: var(--is-green-600);
}
@media (min-width: 576px) {
    .state-grid {
        columns: 3;
    }
}
@media (min-width: 992px) {
    .state-grid {
        columns: 4;
    }
}
