/* ==========================================================================
   The catalogue card, dressed (the owner's word, 29 November 2026: after the
   course card of a single course platform was dressed and approved, the card
   of a catalogue was asked for in the same language, on every page that
   prints it, public and signed in, by day and by night, in every language
   of the menu).

   One card, two vocabularies. A catalogue platform prints it on a public
   page as .landingProductsGrid > .landingProductCard (its landings, and a
   course page that shows the whole catalogue) and on the home of its account
   as .adminProductsBack > .adminProductBack. Every rule names both, so the
   card is one design wherever it stands. Its scope is the class cd-catalogue
   on the grid that holds the cards: without it a page is exactly what it was.

   It is the course card of css/blocks/course-card-dress-1.css at the width
   of a catalogue (three cards a row): the same tokens, the same two faces,
   the same sale, the same buttons. What the dress does, and nothing else:
   - one type system, through tokens: Plus Jakarta Sans for the name of the
     course, the prices, the values and what is pressed, Inter for what is
     read (the band and the promise were set in a third face); nothing read
     under 14px, nothing pressed under 44px (the two buttons were 40px);
   - the price is a sale and reads as one: the price a course costs in red,
     large; the price it replaces before it, struck by a red stroke drawn
     across it; the glyph of the price at the head of the row; the promise
     under the two prices as one quiet line, its halves parted by a dot that
     goes when the line folds, so the row is laid the same in every language
     and with every price;
   - a fact is its glyph, its label and its value on one line, the value the
     stronger of the two (the label was); a longer language puts the value
     under its label, whole;
   - the value band from edge to edge of the card, in the tone of its course
     (emerald, violet for the theory course), its mark a disc of that tone:
     a strip that says something, never a shape that could be pressed;
   - the button that buys over View Course, each the width of the card, the
     one that is pressed first standing first: the blue of every primary of
     the account with its cart, a white ghost with its arrow. Side by side
     the two cut the words of a longer language (Dodaj do koszyka);
   - as many cards a row as stand side by side at 280px or more (three, two,
     one), every row of a card on the line of the same row of the card beside
     it (a subgrid of the grid of the cards), and what is left of the last
     row in the middle of the grid;
   - its own night: the card of an account says data-dm-skip, so the pass of
     the dark dashboard leaves it alone, and its dark tokens close this sheet;
   - a language written from right to left keeps the layout of the card, as
     its page does, and every text takes the direction of its own script.

   What it never touches: a word of the card, the national edge on its top,
   the badge on its picture, the row of accreditations, the language button
   (each has its own sheet), the form that adds a course to the cart, the
   glyphs of the facts (the meta line of a catalogue card stays a glyph).

   How it wins: the card is written by older sheets and by the style block of
   the home of the account. The dress lives in a cascade layer and every
   declaration in it is important: an important declaration of a layer comes
   before every declaration outside one, whatever the selector, so no older
   sheet is edited and no selector is made longer to win. A browser that
   knows no layers leaves the whole block out and shows the card as it was,
   whole and working.
   ========================================================================== */

@layer catalogue-card-dress {

    /* ---- the grid of the cards, and the tokens of the dress (the tokens of the course card, the same values) ---- */
    .cd-catalogue {
        --cd-font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        --cd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        --cd-ink: #0b1220;
        --cd-ink-2: #253247;
        --cd-ink-3: #3f4d66;
        --cd-line: rgba(30, 58, 138, 0.1);
        --cd-line-strong: #cbd6e8;
        --cd-blue: #2563eb;
        --cd-blue-deep: #1d4ed8;
        --cd-green: #059669;
        --cd-green-deep: #047857;
        /* the sale: the red of the price, the stroke across the price it replaces, the grey of that price */
        --cd-sale: #dc2626;
        --cd-stroke: #ef4444;
        --cd-stroke-glow: rgba(239, 68, 68, 0.25);
        --cd-was: #64748b;
        --cd-dot: #94a3b8;
        --cd-card: rgba(255, 255, 255, 0.78);
        --cd-body: #ffffff;
        --cd-ghost: #ffffff;
        --cd-ghost-over: #f4f7ff;
        /* the primary of the account, as every primary of its home is painted */
        --cd-buy: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #1d4ed8 100%);
        --cd-buy-over: linear-gradient(135deg, #1e40af 0%, #3b82f6 55%, #2563eb 100%);
        --cd-buy-shadow: 0 12px 24px -14px rgba(37, 99, 235, 0.8);
        --cd-buy-shadow-over: 0 20px 36px -16px rgba(37, 99, 235, 0.95);
        --cd-val: #059669;
        --cd-val-ink: #065f46;
        --cd-val-wash: linear-gradient(180deg, #f1fbf6 0%, #e5f7ee 100%);
        --cd-val-line: rgba(5, 150, 105, 0.2);
        --cd-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 28px 60px -34px rgba(30, 58, 138, 0.45);
        --cd-shadow-over: 0 1px 2px rgba(15, 23, 42, 0.05), 0 34px 64px -30px rgba(30, 58, 138, 0.55);
        --cd-ring: 0 0 0 2px var(--cd-body), 0 0 0 4px var(--cd-blue), 0 0 0 8px rgba(37, 99, 235, 0.16);
        --cd-ease: cubic-bezier(0.22, 1, 0.36, 1);
        /* the two glyphs of what is pressed: a cart, an arrow (drawn once, painted in the colour of their words) */
        --cd-glyph-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h2.2l2.3 11.1a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2l1.6-7.2H6'/%3E%3Ccircle cx='9.6' cy='19.8' r='1.4'/%3E%3Ccircle cx='17' cy='19.8' r='1.4'/%3E%3C/svg%3E");
        --cd-glyph-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
        /* the measures of a catalogue card */
        --cd-radius: 24px;
        --cd-radius-md: 13px;
        --cd-pad: 22px;
        --cd-gap: 22px;
        --cd-gap-row: 26px;

        /* as many cards a row as stand side by side at 280px or more: three in the measure of a page, two on a
           tablet or beside the menu of the account, one on a phone. The grid takes the width its page gives it
           and measures itself (cd-grid), so a card answers the room it has and never the window. The room
           between two rows is the foot of a card, because the cards are subgrids of this grid; the grid gives
           the foot of its last row back, so what follows it stands where it stood */
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
        grid-auto-flow: row !important;
        justify-content: start !important;
        justify-items: stretch !important;
        align-items: stretch !important;
        gap: 0 var(--cd-gap) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        /* the home of an account lays its sections in a grid of one column: a section that asked that column for
           the width of three cards would be given it on a phone, so the grid of the cards asks it for nothing */
        min-width: 0 !important;
        max-width: 980px !important;
        margin: 0 auto calc(-1 * var(--cd-gap-row)) !important;
        /* the room an older sheet keeps under the cards of an account stays as it is */
        padding-top: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        container: cd-grid / inline-size !important;
    }

    /* ---- the card ---- */
    .cd-catalogue :is(.landingProductCard, .adminProductBack) {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 var(--cd-gap-row) !important;
        padding: 0 !important;
        gap: 0 !important;
        overflow: hidden !important;
        /* a card that is a container cannot be a subgrid: what answers a width here answers it by itself */
        container-type: normal !important;
        background: var(--cd-card) !important;
        border: 1px solid var(--cd-line) !important;
        border-radius: var(--cd-radius) !important;
        box-shadow: var(--cd-shadow) !important;
        /* the picture and the body are opaque: a blur behind them paints nothing and costs a layer a card */
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        transform: none !important;
        translate: none !important;
        transition: transform 0.28s var(--cd-ease), box-shadow 0.28s var(--cd-ease) !important;
    }

    /* a card rises under a pointer; a finger that tapped it leaves no hover behind */
    @media (hover: hover) {
        .cd-catalogue :is(.landingProductCard, .adminProductBack):hover {
            transform: translateY(-3px) !important;
            box-shadow: var(--cd-shadow-over) !important;
        }

        .cd-catalogue :is(.landingProductCard, .adminProductBack):hover .productImageLink img {
            transform: scale(1.035) !important;
        }
    }

    /* the national edge: where it always was, on the top of the card, in the flow of the card */
    .cd-catalogue :is(.landingProductCard, .adminProductBack) > :is(.ie-card-top, .uk-card-top) {
        position: relative !important;
        inset: auto !important;
        z-index: 2 !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: 5px !important;
        margin: 0 !important;
    }

    /* the two faces and no third: an older sheet of some platforms sets every word of a public card in a face
       of its own and insists on it. The badge, the band, the chips and the language button keep, on every
       platform, the faces their own sheets give them */
    .cd-catalogue :is(.landingProductCard, .adminProductBack) :is(.course-flag, .course-flag *, .osc-vband, .osc-vband *, .isa-accrow, .isa-accrow *, .course-langs, .course-langs *) {
        font-family: var(--cd-font-body) !important;
    }

    .cd-catalogue :is(.landingProductCard, .adminProductBack) :is(.isa-accrow__code, .course-langs__label) {
        font-family: var(--cd-font-display) !important;
    }

    /* ---- a language written from right to left (Arabic, Urdu, Pashto). Its page keeps its layout and so does
       the card: every text of the card takes the direction of its own script, so a number stands after the
       word it counts and a colon after its label. In every other language this changes nothing ---- */
    .cd-catalogue :is(.landingProductName, .adminProductNameBack, .osc-vband__full, .osc-vband__short, .landingMetaLabel, .productMetaLabel, .landingMetaValue, .productMetaValue, .osc-price-incl__a, .osc-price-incl__b, .landingAddToCartButton, .buttonProductAdminAddBack, .landingInfoButton, .homeInfoCourseButton) {
        unicode-bidi: plaintext !important;
    }

    /* ---- the picture: one frame, the photograph filling it ---- */
    .cd-catalogue .productImageLink {
        position: relative !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        line-height: 0 !important;
        background: #e8eef9 !important;
        outline: 0 !important;
    }

    .cd-catalogue .productImageLink img {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        border-radius: 0 !important;
        object-fit: cover !important;
        opacity: 1 !important;
        transform: none !important;
        transition: transform 0.7s var(--cd-ease) !important;
    }

    /* a course without a page of its own prints its photograph bare */
    .cd-catalogue :is(.landingProductCard, .adminProductBack) > img {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10 !important;
        border-radius: 0 !important;
        object-fit: cover !important;
        background: #e8eef9 !important;
    }

    /* the ring of a photograph reached by the keyboard is drawn inside its frame: the card cuts what leaves it */
    .cd-catalogue .productImageLink:focus-visible::after {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        z-index: 3 !important;
        box-shadow: inset 0 0 0 3px var(--cd-blue), inset 0 0 0 6px rgba(255, 255, 255, 0.85) !important;
        pointer-events: none !important;
    }

    /* ---- the body ---- */
    .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 19px var(--cd-pad) var(--cd-pad) !important;
        gap: 0 !important;
        border: 0 !important;
        border-top: 1px solid var(--cd-line) !important;
        border-radius: 0 !important;
        background: var(--cd-body) !important;
    }

    /* the name of the course: every word of it, on as many lines as it takes */
    .cd-catalogue :is(.landingProductName, .adminProductNameBack) {
        display: block !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
        font-family: var(--cd-font-display) !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.017em !important;
        text-align: left !important;
        text-decoration: none !important;
        text-transform: none !important;
        text-wrap: balance !important;
        overflow-wrap: anywhere !important;
        color: var(--cd-ink) !important;
        outline: 0 !important;
        transition: color 0.2s var(--cd-ease) !important;
    }

    /* on a public page the name is pressed: it answers a finger on 44px, and takes no more room for it */
    .cd-catalogue a.landingProductName {
        margin: -12px 0 !important;
        padding: 12px 0 !important;
    }

    @media (hover: hover) {
        .cd-catalogue a.landingProductName:hover {
            color: var(--cd-blue-deep) !important;
        }
    }

    /* reached by the keyboard, the name wears a ring drawn close around its words, clear of the picture over it
       and of the band under it */
    .cd-catalogue a.landingProductName:focus-visible {
        position: relative !important;
        color: var(--cd-blue-deep) !important;
    }

    .cd-catalogue a.landingProductName:focus-visible::after {
        content: '' !important;
        position: absolute !important;
        inset: 8px -7px !important;
        border-radius: 9px !important;
        box-shadow: 0 0 0 2px var(--cd-blue), 0 0 0 6px rgba(37, 99, 235, 0.16) !important;
        pointer-events: none !important;
    }

    /* ---- the value band: from edge to edge of the card, in the tone of its course. It says what the course
       holds; it is a strip and never a rounded plate, which beside the language button would read as a second
       thing to press ---- */
    .cd-catalogue .osc-vband {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        align-self: stretch !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        width: auto !important;
        min-height: 40px !important;
        margin: 15px calc(-1 * var(--cd-pad)) 0 !important;
        padding: 8px var(--cd-pad) !important;
        overflow: visible !important;
        border: 0 !important;
        border-top: 1px solid var(--cd-val-line) !important;
        border-bottom: 1px solid var(--cd-val-line) !important;
        border-radius: 0 !important;
        background: var(--cd-val-wash) !important;
        box-shadow: none !important;
        /* the band measures itself: where its long words would take two lines it says its short ones */
        container: cd-band / inline-size !important;
    }

    .cd-catalogue .osc-vband--theory {
        --cd-val: #7c3aed;
        --cd-val-ink: #5b21b6;
        --cd-val-wash: linear-gradient(180deg, #f8f6ff 0%, #efeafd 100%);
        --cd-val-line: rgba(109, 40, 217, 0.2);
    }

    /* the bar that stood on the left edge of the band goes: the tone of the strip says it */
    .cd-catalogue .osc-vband::before,
    .cd-catalogue .osc-vband::after {
        content: none !important;
    }

    .cd-catalogue .osc-vband__ico {
        position: relative !important;
        display: inline-flex !important;
        flex: 0 0 20px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 20px !important;
        height: 20px !important;
        border-radius: 50% !important;
        background: var(--cd-val) !important;
        box-shadow: none !important;
        color: #ffffff !important;
    }

    .cd-catalogue .osc-vband__ico svg {
        display: block !important;
        width: 12px !important;
        height: 12px !important;
    }

    .cd-catalogue .osc-vband__txt {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        font-family: var(--cd-font-body) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
        text-overflow: clip !important;
        white-space: normal !important;
        text-wrap: balance !important;
        overflow-wrap: anywhere !important;
        color: var(--cd-val-ink) !important;
    }

    .cd-catalogue .osc-vband__full {
        display: inline !important;
    }

    .cd-catalogue .osc-vband__short {
        display: none !important;
    }

    @container cd-band (max-width: 250px) {
        .cd-catalogue .osc-vband__full {
            display: none !important;
        }

        .cd-catalogue .osc-vband__short {
            display: inline !important;
        }
    }

    /* ---- what the course is recognised by, and the languages it is studied in: their own sheets draw
       them, the dress only gives them their place ---- */
    .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > .isa-accrow {
        align-self: flex-start !important;
        margin: 15px 0 0 !important;
    }

    .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > .course-langs {
        align-self: stretch !important;
        margin: 12px 0 0 !important;
    }

    .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > hr {
        flex: 0 0 auto !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
        width: 100% !important;
        height: 0 !important;
        margin: 16px 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-top: 1px solid var(--cd-line) !important;
        background: none !important;
        opacity: 1 !important;
    }

    /* ---- the facts and the price: one list, every row its glyph and then its words ---- */
    .cd-catalogue :is(.landingProductInfo, .product-info-icons) {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }

    .cd-catalogue :is(.landingProductIcons, .product-icons-back) {
        display: flex !important;
        align-items: flex-start !important;
        box-sizing: border-box !important;
        gap: 10px !important;
        min-width: 0 !important;
        min-height: 24px !important;
        margin: 11px 0 0 !important;
        padding: 0 !important;
        /* a row measures itself: where its label and its value would not share a line it sets them a size smaller */
        container: cd-fact / inline-size !important;
    }

    .cd-catalogue :is(.landingProductIcons, .product-icons-back):first-child {
        margin-top: 15px !important;
    }

    /* the glyph of a fact, on the first line of its words */
    .cd-catalogue :is(.lpMetaIcon, .productMetaIcon) {
        display: inline-grid !important;
        flex: 0 0 20px !important;
        place-items: center !important;
        width: 20px !important;
        height: 20px !important;
        margin: 2px 0 0 !important;
        color: var(--cd-ink-3) !important;
    }

    .cd-catalogue :is(.lpMetaIcon, .productMetaIcon) svg {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
    }

    /* a fact: its label and then its value, the value the stronger. Where the two do not share the line the
       value goes under its label, whole */
    .cd-catalogue :is(.landingProductMeta, .productMeta) {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        gap: 0 6px !important;
        font-family: var(--cd-font-body) !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        letter-spacing: 0 !important;
        overflow-wrap: anywhere !important;
        color: var(--cd-ink-2) !important;
    }

    .cd-catalogue :is(.landingMetaLabel, .productMetaLabel) {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        font-family: var(--cd-font-body) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
        letter-spacing: 0 !important;
        color: var(--cd-ink-2) !important;
    }

    .cd-catalogue :is(.landingMetaValue, .productMetaValue) {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        font-family: var(--cd-font-display) !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.5 !important;
        letter-spacing: -0.005em !important;
        white-space: normal !important;
        color: var(--cd-ink) !important;
    }

    /* a row too narrow for the longest fact of the catalogue on one line sets its words half a size smaller */
    @container cd-fact (max-width: 240px) {
        .cd-catalogue :is(.landingProductMeta, .productMeta),
        .cd-catalogue :is(.landingMetaLabel, .productMetaLabel),
        .cd-catalogue :is(.landingMetaValue, .productMetaValue) {
            font-size: 15px !important;
        }
    }

    /* a page read in another language (js/views/dashboard-home-cards.js): a row that folded on one card is
       laid the same way on every card of the grid, the value under its label */
    .cd-catalogue.is-meta1-stacked :is(.landingProductIcons, .product-icons-back):nth-child(1) :is(.landingProductMeta, .productMeta),
    .cd-catalogue.is-meta2-stacked :is(.landingProductIcons, .product-icons-back):nth-child(2) :is(.landingProductMeta, .productMeta) {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* ---- the price: a sale, read as one. The price a course costs in red and large; before it the price it
       replaces, struck by a stroke drawn across it; under them the promise, one quiet line. No box stands
       around it: what makes it the strongest row of the card is its size and its red ---- */
    .cd-catalogue :is(.landingProductIcons, .product-icons-back):last-child {
        margin-top: 12px !important;
    }

    /* the glyph of the price stands in the middle of the figures of the two prices, in the red of the sale: the
       tag, the price that was and the price that is read as one thing */
    .cd-catalogue :is(.landingProductIcons, .product-icons-back):last-child :is(.lpMetaIcon, .productMetaIcon) {
        margin-top: 10px !important;
        color: var(--cd-sale) !important;
    }

    .cd-catalogue :is(.landingPriceRow, .priceRow) {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        gap: 2px 10px !important;
        font-variant-numeric: tabular-nums !important;
    }

    /* the price a course cost before: grey, and struck by one red stroke from its foot to its head */
    .cd-catalogue :is(.landingPriceWas, .priceWas) {
        position: relative !important;
        display: inline-block !important;
        flex: 0 0 auto !important;
        order: 0 !important;
        margin: 0 !important;
        font-family: var(--cd-font-display) !important;
        font-size: 21px !important;
        font-weight: 700 !important;
        font-variant-numeric: tabular-nums !important;
        line-height: 1 !important;
        letter-spacing: -0.01em !important;
        text-decoration: none !important;
        color: var(--cd-was) !important;
    }

    .cd-catalogue :is(.landingPriceWas, .priceWas)::before {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        right: -10% !important;
        left: -10% !important;
        display: block !important;
        width: auto !important;
        height: 2.5px !important;
        border-radius: 2px !important;
        background: var(--cd-stroke) !important;
        box-shadow: 0 0 3px var(--cd-stroke-glow) !important;
        transform: translateY(-50%) rotate(-11deg) !important;
        pointer-events: none !important;
    }

    .cd-catalogue :is(.landingPriceWas, .priceWas)::after,
    .cd-catalogue :is(.landingPriceNow, .priceNow)::before,
    .cd-catalogue :is(.landingPriceNow, .priceNow)::after {
        content: none !important;
    }

    /* the price a course costs today */
    .cd-catalogue :is(.landingPriceNow, .priceNow) {
        display: inline-block !important;
        flex: 0 0 auto !important;
        order: 0 !important;
        margin: 0 !important;
        font-family: var(--cd-font-display) !important;
        font-size: 32px !important;
        font-weight: 800 !important;
        font-variant-numeric: tabular-nums !important;
        line-height: 1.12 !important;
        letter-spacing: -0.03em !important;
        color: var(--cd-sale) !important;
    }

    /* the promise: under the two prices, one line. It cuts what leaves it on its left, so the dot that parts
       its two halves shows between them and goes where the second half starts a line of its own */
    .cd-catalogue :is(.landingPriceRow, .priceRow) .osc-price-incl {
        display: flex !important;
        flex: 1 1 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        align-self: auto !important;
        justify-content: flex-start !important;
        order: 0 !important;
        gap: 0 17px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
        text-align: left !important;
    }

    .cd-catalogue .osc-price-incl__a,
    .cd-catalogue .osc-price-incl__b {
        position: relative !important;
        display: block !important;
        flex: 0 1 auto !important;
        min-width: 0 !important;
        font-family: var(--cd-font-body) !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
        letter-spacing: 0.01em !important;
        text-transform: none !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .cd-catalogue .osc-price-incl__a {
        font-weight: 600 !important;
        color: var(--cd-ink-3) !important;
    }

    .cd-catalogue .osc-price-incl__b {
        font-weight: 800 !important;
        color: var(--cd-green-deep) !important;
    }

    .cd-catalogue .osc-price-incl__b::before {
        content: '\00b7' !important;
        position: absolute !important;
        top: 0 !important;
        left: -12px !important;
        width: 7px !important;
        font-weight: 700 !important;
        text-align: center !important;
        color: var(--cd-dot) !important;
    }

    .cd-catalogue .osc-price-incl__a::before,
    .cd-catalogue .osc-price-incl__a::after,
    .cd-catalogue .osc-price-incl__b::after {
        content: none !important;
    }

    /* ---- what is pressed: the button that buys, then View Course, each the width of the card ---- */
    .cd-catalogue :is(.landingProductButtons, .productButtonsBack) {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        width: 100% !important;
        height: auto !important;
        margin: auto 0 0 !important;
        padding: 16px 0 0 !important;
        gap: 10px !important;
    }

    /* on the home of an account the two stand inside the form that adds a course to the cart: the form takes
       the place in the card, the row inside it only lays the two */
    .cd-catalogue .adminProductBottomBack > form {
        display: block !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
        width: 100% !important;
        margin: auto 0 0 !important;
        padding: 0 !important;
    }

    .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack, .landingInfoButton, .homeInfoCourseButton) {
        position: relative !important;
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin: 0 !important;
        /* the words of a button keep one line in English; a longer language on a narrow card takes two, and
           the button grows with them instead of cutting them */
        padding: 7px 12px !important;
        border-radius: var(--cd-radius-md) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        font-family: var(--cd-font-display) !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.01em !important;
        text-align: center !important;
        text-decoration: none !important;
        text-transform: none !important;
        text-shadow: none !important;
        text-wrap: balance !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        cursor: pointer !important;
        outline: 0 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
        -webkit-tap-highlight-color: transparent !important;
        transition:
            transform 0.25s var(--cd-ease),
            box-shadow 0.25s var(--cd-ease),
            background-color 0.25s var(--cd-ease),
            border-color 0.25s var(--cd-ease),
            color 0.25s var(--cd-ease),
            filter 0.25s var(--cd-ease) !important;
    }

    /* the button that buys: the blue of every primary of the account, its cart before its words */
    .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack) {
        order: 1 !important;
        gap: 9px !important;
        min-height: 48px !important;
        overflow: hidden !important;
        isolation: isolate !important;
        border: 0 !important;
        background: var(--cd-buy) !important;
        box-shadow: var(--cd-buy-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
        font-size: 15.5px !important;
        color: #ffffff !important;
    }

    .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack)::after {
        content: '' !important;
        position: static !important;
        inset: auto !important;
        z-index: auto !important;
        display: block !important;
        flex: 0 0 auto !important;
        order: -1 !important;
        width: 19px !important;
        height: 19px !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: currentColor !important;
        -webkit-mask: var(--cd-glyph-cart) center / contain no-repeat !important;
        mask: var(--cd-glyph-cart) center / contain no-repeat !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: transform 0.25s var(--cd-ease) !important;
    }

    /* a light that crosses the button once when the pointer comes over it, and never on its way out */
    .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack)::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 auto 0 -45% !important;
        z-index: auto !important;
        display: block !important;
        width: 38% !important;
        height: auto !important;
        border-radius: 0 !important;
        background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 255, 255, 0) 100%) !important;
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        transform: skewX(-18deg) translateX(0) !important;
        transition: none !important;
        animation: none !important;
        pointer-events: none !important;
    }

    @media (hover: hover) {
        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack):hover {
            background: var(--cd-buy-over) !important;
            box-shadow: var(--cd-buy-shadow-over), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
            color: #ffffff !important;
            transform: translateY(-2px) !important;
        }

        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack):hover::before {
            transform: skewX(-18deg) translateX(480%) !important;
            transition: transform 0.75s var(--cd-ease) !important;
        }

        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack):hover::after {
            transform: translateX(-1px) rotate(-6deg) !important;
        }
    }

    .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack):active {
        transform: translateY(0) scale(0.985) !important;
        filter: brightness(0.96) !important;
    }

    .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack):focus-visible {
        box-shadow: var(--cd-ring), var(--cd-buy-shadow) !important;
    }

    /* while the tick of a course that went into the cart plays, the words and the cart step aside for it:
       the tick stands alone in the middle of the button, never on top of letters */
    .cd-catalogue .buttonProductAdminAddBack:has(.btnCheckmark.playing) {
        color: transparent !important;
    }

    /* View Course: the white ghost under it, an arrow after its words */
    .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton) {
        order: 2 !important;
        gap: 8px !important;
        min-height: 44px !important;
        overflow: visible !important;
        isolation: auto !important;
        border: 1.5px solid var(--cd-line-strong) !important;
        background: var(--cd-ghost) !important;
        box-shadow: 0 1px 2px rgba(13, 27, 62, 0.05) !important;
        font-size: 15px !important;
        color: var(--cd-ink) !important;
    }

    .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton)::after {
        content: '' !important;
        position: static !important;
        inset: auto !important;
        display: block !important;
        flex: 0 0 auto !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
        border: 0 !important;
        background: currentColor !important;
        -webkit-mask: var(--cd-glyph-arrow) center / contain no-repeat !important;
        mask: var(--cd-glyph-arrow) center / contain no-repeat !important;
        opacity: 0.75 !important;
        transform: none !important;
        animation: none !important;
        transition: transform 0.25s var(--cd-ease), opacity 0.25s var(--cd-ease) !important;
    }

    .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton)::before {
        content: none !important;
    }

    @media (hover: hover) {
        .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton):hover {
            border-color: var(--cd-blue) !important;
            background: var(--cd-ghost-over) !important;
            box-shadow: 0 10px 20px -14px rgba(13, 27, 62, 0.35) !important;
            color: var(--cd-blue-deep) !important;
            transform: translateY(-1px) !important;
        }

        .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton):hover::after {
            opacity: 1 !important;
            transform: translateX(4px) !important;
        }
    }

    .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton):active {
        transform: translateY(0) scale(0.99) !important;
    }

    .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton):focus-visible {
        border-color: var(--cd-blue) !important;
        box-shadow: var(--cd-ring) !important;
    }

    /* ---- every row of a card on the line of the same row of the card beside it ---- */
    @supports (grid-template-rows: subgrid) {
        .cd-catalogue :is(.landingProductCard, .adminProductBack) {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) !important;
            grid-template-rows: subgrid !important;
            grid-row: span 11 !important;
            row-gap: 0 !important;
            align-content: start !important;
            justify-content: normal !important;
            justify-items: stretch !important;
        }

        .cd-catalogue :is(.landingProductCard, .adminProductBack) > :is(.ie-card-top, .uk-card-top) {
            grid-row: 1 !important;
        }

        .cd-catalogue :is(.landingProductCard, .adminProductBack) > :is(.productImageLink, img) {
            grid-row: 2 !important;
        }

        .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) !important;
            grid-template-rows: subgrid !important;
            grid-row: 3 / span 9 !important;
            row-gap: 0 !important;
            align-content: start !important;
            justify-content: normal !important;
            justify-items: stretch !important;
        }

        .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > :is(.landingProductName, .adminProductNameBack) {
            grid-row: 1 !important;
        }

        .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > .osc-vband {
            grid-row: 2 !important;
        }

        .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > .isa-accrow {
            grid-row: 3 !important;
            justify-self: start !important;
        }

        .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > .course-langs {
            grid-row: 4 !important;
        }

        .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > hr {
            grid-row: 5 !important;
        }

        .cd-catalogue :is(.landingProductBottom, .adminProductBottomBack) > :is(.landingProductInfo, .product-info-icons) {
            display: grid !important;
            grid-template-columns: minmax(0, 1fr) !important;
            grid-template-rows: subgrid !important;
            grid-row: 6 / span 3 !important;
            row-gap: 0 !important;
            align-content: start !important;
        }

        .cd-catalogue :is(.landingProductBottom > .landingProductButtons, .adminProductBottomBack > form) {
            grid-row: 9 !important;
            margin: 0 !important;
            align-self: end !important;
        }

        .cd-catalogue .productButtonsBack {
            margin: 0 !important;
        }
    }

    /* ---- what is left of the last row stands in the middle of the grid ---- */
    /* three a row (three columns of 280px and the room between them): one card left takes the middle column, two
       stand half a column in */
    @container cd-grid (min-width: 884px) {
        .cd-catalogue > :is(.landingProductCard, .adminProductBack):last-of-type:nth-of-type(3n + 1) {
            grid-column: 2 !important;
        }

        .cd-catalogue > :is(.landingProductCard, .adminProductBack):nth-last-of-type(2):nth-of-type(3n + 1),
        .cd-catalogue > :is(.landingProductCard, .adminProductBack):last-of-type:nth-of-type(3n + 2) {
            translate: calc(50% + var(--cd-gap) / 2) 0 !important;
        }
    }

    /* two a row: the card left alone stands across the grid, as wide as a column */
    @container cd-grid (min-width: 582px) and (max-width: 883.98px) {
        .cd-catalogue > :is(.landingProductCard, .adminProductBack):last-of-type:nth-of-type(odd) {
            grid-column: 1 / -1 !important;
            justify-self: center !important;
            width: calc((100% - var(--cd-gap)) / 2) !important;
        }
    }

    /* one a row: a card is never wider than a card of a phone held upright, and stands in the middle */
    @container cd-grid (max-width: 581.98px) {
        .cd-catalogue > :is(.landingProductCard, .adminProductBack) {
            justify-self: center !important;
            width: 100% !important;
            max-width: 400px !important;
        }
    }

    /* the name of a course answers the width of its card: beside other cards a name of two lines leaves air
       under the names of one line, so where cards share a row the name is set by the width of a card (5.5 parts
       in a hundred, as the home of the account always set it), which keeps the names of a catalogue on one line
       on a narrower card; where a card stands alone on its row (a phone) a name of two lines moves nothing, and
       the name is set larger */
    @container cd-grid (min-width: 884px) {
        .cd-catalogue :is(.landingProductName, .adminProductNameBack) {
            font-size: clamp(15.5px, calc((100cqi - 2 * var(--cd-gap)) / 3 * 0.055), 17px) !important;
        }
    }

    @container cd-grid (min-width: 582px) and (max-width: 883.98px) {
        .cd-catalogue :is(.landingProductName, .adminProductNameBack) {
            font-size: clamp(15.5px, calc((100cqi - var(--cd-gap)) / 2 * 0.055), 18px) !important;
        }
    }

    @container cd-grid (max-width: 581.98px) {
        .cd-catalogue :is(.landingProductName, .adminProductNameBack) {
            font-size: 19px !important;
        }
    }

    /* a phone: the corners of every card of the account */
    @container cd-grid (max-width: 400px) {
        .cd-catalogue > :is(.landingProductCard, .adminProductBack) {
            border-radius: 22px !important;
        }
    }

    /* ---- the night of the account ---- */
    html.dark .cd-catalogue {
        --cd-ink: #f1f5fb;
        --cd-ink-2: #dbe4f3;
        --cd-ink-3: #a9b6cc;
        --cd-line: rgba(255, 255, 255, 0.09);
        --cd-line-strong: rgba(255, 255, 255, 0.2);
        --cd-blue: #60a5fa;
        --cd-blue-deep: #bfdbfe;
        --cd-green: #34d399;
        --cd-green-deep: #6ee7b7;
        --cd-sale: #f87171;
        --cd-stroke: #f87171;
        --cd-stroke-glow: rgba(248, 113, 113, 0.3);
        --cd-was: #94a3b8;
        --cd-dot: #64748b;
        --cd-card: #111a2e;
        --cd-body: #111a2e;
        --cd-ghost: rgba(255, 255, 255, 0.05);
        --cd-ghost-over: rgba(96, 165, 250, 0.16);
        --cd-buy-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.9);
        --cd-buy-shadow-over: 0 20px 36px -16px rgba(37, 99, 235, 0.7);
        --cd-val: #10b981;
        --cd-val-ink: #a7f3d0;
        --cd-val-wash: linear-gradient(180deg, rgba(52, 211, 153, 0.15) 0%, rgba(52, 211, 153, 0.09) 100%);
        --cd-val-line: rgba(52, 211, 153, 0.26);
        --cd-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 28px 60px -34px rgba(0, 0, 0, 0.8);
        --cd-shadow-over: 0 1px 2px rgba(0, 0, 0, 0.35), 0 34px 64px -30px rgba(0, 0, 0, 0.9);
        --cd-ring: 0 0 0 2px var(--cd-body), 0 0 0 4px var(--cd-blue), 0 0 0 8px rgba(96, 165, 250, 0.2);
    }

    html.dark .cd-catalogue .osc-vband--theory {
        --cd-val: #8b5cf6;
        --cd-val-ink: #ddd6fe;
        --cd-val-wash: linear-gradient(180deg, rgba(167, 139, 250, 0.17) 0%, rgba(167, 139, 250, 0.1) 100%);
        --cd-val-line: rgba(167, 139, 250, 0.3);
    }

    html.dark .cd-catalogue .productImageLink,
    html.dark .cd-catalogue :is(.landingProductCard, .adminProductBack) > img {
        background: #16223a !important;
    }

    /* the chips of the accreditations are drawn light by their own sheet, and no pass repaints them here */
    html.dark .cd-catalogue .isa-accrow__code {
        border-color: rgba(255, 255, 255, 0.16) !important;
        background: rgba(255, 255, 255, 0.06) !important;
        box-shadow: none !important;
        color: #e6ecf7 !important;
    }

    html.dark .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton) {
        box-shadow: none !important;
    }

    /* ---- a reader who asked for no motion ---- */
    @media (prefers-reduced-motion: reduce) {
        .cd-catalogue :is(.landingProductCard, .adminProductBack),
        .cd-catalogue .productImageLink img,
        .cd-catalogue :is(.landingProductName, .adminProductNameBack),
        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack, .landingInfoButton, .homeInfoCourseButton),
        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack)::after,
        .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton)::after {
            transition: none !important;
        }

        .cd-catalogue :is(.landingProductCard, .adminProductBack):hover,
        .cd-catalogue :is(.landingProductCard, .adminProductBack):hover .productImageLink img,
        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack, .landingInfoButton, .homeInfoCourseButton):hover,
        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack, .landingInfoButton, .homeInfoCourseButton):active,
        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack):hover::after,
        .cd-catalogue :is(.landingInfoButton, .homeInfoCourseButton):hover::after {
            transform: none !important;
        }

        .cd-catalogue :is(.landingAddToCartButton, .buttonProductAdminAddBack)::before {
            display: none !important;
        }
    }
}

/* A browser that knows no cascade layers shows the card as it was. The card prints the button that buys before
   View Course, and the older sheets lay that row from left to right: these two lines, outside the layer, keep
   View Course on the left and the button that buys on the right for that browser. Where layers are known the
   dress above decides. */
.landingProductsGrid.cd-catalogue .landingProductButtons {
    flex-direction: row-reverse !important;
}

.adminProductsBack.cd-catalogue .productButtonsBack {
    flex-direction: row-reverse !important;
}
