/* ==========================================================================
   The dress of a landing: its sections in the look of the course guide
   (css/blocks/course-guide-1.css).

   Every landing and every course page of the fleet (front/landing,
   front/course-page) prints this sheet after the sheets of the landing and
   says lp--dress on its wrapper, the class that scopes every rule below. It
   dresses what the page already prints: the band of figures, the canvas of
   the courses, the heads, the cards and the pictures of the sections above
   the guide (trust, how it works, certificate, teams, study, languages) and,
   after it, the block of searches, the questions, the four steps, the
   reasons, the definition and the link hubs. It changes no word, no link, no
   mark and no course card, and it repaints no pill but the two seals of the
   certificate. One section is laid out again, the section of the certificate
   (the owner's word); everywhere else it changes no order: every rule is
   paint and placing, and a page without the class
   reads none of them. The national marks stay where they are, and an
   article (mhDefSection--know) keeps the dress of css/views/knowledge-page.css.

   A card takes the tone of the spot it wears (--ld-tone), as the cards of
   the guide do. A number is written by a counter, never typed into the page,
   and is given an empty reading so a screen reader says the words alone.
   Nothing here moves by itself: a card lifts under the pointer and its
   drawing tilts, and stands still for a reader who asked for less motion,
   as the pills of the pictures then do.
   ========================================================================== */

.lp.lp--dress {
    --ld-gap: calc(22px * var(--lp-scale));
    --ld-tone: var(--lp-blue);
    --ld-mat: calc(10px * var(--lp-scale));
    --ld-rim: calc(9px * var(--lp-scale));
    --ld-case: #1e3a8a;
}

/* The tone of a card is the tone of its spot (css/blocks/spot-1.css). */
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--sky) { --ld-tone: #0284c7; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--violet) { --ld-tone: #7c3aed; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--rose) { --ld-tone: #e11d48; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--teal) { --ld-tone: #0d9488; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--orange) { --ld-tone: #ea580c; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--indigo) { --ld-tone: #4f46e5; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--emerald) { --ld-tone: #059669; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--amber) { --ld-tone: #d97706; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--navy) { --ld-tone: #1e3a8a; }
.lp.lp--dress :is(.trustPoint, .hiwStep, .certPerk, .teamsPerk, .studyCardItem, .bfFact, .bfLinks, .faqAccordionItem, .certStepsCard, .whyChooseAccordionItem, .mhDefCard, .sclGroup):has(.spot--cyan) { --ld-tone: #0891b2; }

/* Dotted paper at the head of a section, fading into the canvas. The mark of the country keeps ::before. */
.lp.lp--dress :is(.productsShowcaseSection, .trustPremiumSection, .howItWorksPremiumSection, .certPremiumSection, .teamsTrainingSection, .studyAnywhereSection, .langsWorldSection, .bfSection, .faqPremiumSection, .certStepsSection, .whyChoosePremiumSection)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(30, 58, 138, 0.14) 1px, rgba(30, 58, 138, 0) 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(62% 440px at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(62% 440px at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* A breath of its tone in the corner of a card, over the glass. */
.lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard) {
    background:
        radial-gradient(calc(250px * var(--lp-scale)) calc(190px * var(--lp-scale)) at 100% 0%, color-mix(in srgb, var(--ld-tone) 16%, transparent) 0%, transparent 72%),
        var(--lp-glass);
}

/* The small cards above the guide (trust, how it works, certificate, study) take the same breath, a little
   quieter: they stand beside a picture. Their lift under the pointer is the landing's own. */
.lp.lp--dress :is(.trustPoint, .certPerk, .studyCardItem, .hiwStepCard) {
    background:
        radial-gradient(calc(210px * var(--lp-scale)) calc(130px * var(--lp-scale)) at 100% 0%, color-mix(in srgb, var(--ld-tone) 12%, transparent) 0%, transparent 72%),
        var(--lp-glass);
}

.lp.lp--dress :is(.trustPoint, .certPerk, .studyCardItem, .hiwStep) .spot {
    transition: transform 0.28s var(--lp-ease);
}

.lp.lp--dress :is(.trustPoint, .certPerk, .studyCardItem, .hiwStep):hover .spot {
    transform: rotate(-5deg) scale(1.04);
}

/* A card lifts under the pointer and its drawing tilts. */
.lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard) {
    transition: transform 0.28s var(--lp-ease), box-shadow 0.28s var(--lp-ease);
}

.lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard):hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-hover), 0 0 0 1px var(--lp-line-strong);
}

.lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard, .faqAccordionItem, .whyChooseAccordionItem) .spot {
    transition: transform 0.28s var(--lp-ease);
}

.lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard):hover .spot,
.lp.lp--dress :is(.faqAccordionItem, .whyChooseAccordionItem):is(:hover, .is-open) .spot {
    transform: rotate(-5deg) scale(1.04);
}

/* A line of light along the top edge of a card that holds the words of a section. */
.lp.lp--dress .bfBody,
.lp.lp--dress .mhDefSection:not(.mhDefSection--know) .mhDefTop .mhDefTextBlock {
    position: relative;
    overflow: hidden;
}

.lp.lp--dress .bfBody::before,
.lp.lp--dress .mhDefSection:not(.mhDefSection--know) .mhDefTop .mhDefTextBlock::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-blue) 0%, var(--lp-violet) 52%, #0ea5e9 100%);
}

/* --------------------------------------------------------------------------
   The block of searches: three facts, the words, the searches
   -------------------------------------------------------------------------- */
.lp.lp--dress .bfSection {
    background:
        radial-gradient(44% 40% at 0% 0%, rgba(167, 243, 208, 0.5) 0%, rgba(167, 243, 208, 0) 72%),
        radial-gradient(46% 44% at 100% 100%, rgba(191, 219, 254, 0.6) 0%, rgba(191, 219, 254, 0) 72%),
        linear-gradient(180deg, #f4fbf8 0%, #eef5fc 100%);
}

.lp.lp--dress .bfSection .bfLinksList a {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px -16px rgba(30, 58, 138, 0.55);
}

@media (min-width: 960px) {
    /* the block takes the measure of the page */
    .lp.lp--dress .bfSection :is(.bfFacts, .bfBody, .bfLinks) {
        max-width: none;
    }
}

@media (min-width: 1200px) {
    /* Where the words are followed by the searches (the block of a homepage): the facts on the full measure, then
       the words beside the searches. A block that carries buttons or questions between the two keeps one column. */
    .lp.lp--dress .bfSection .faqPremiumInner:has(> .bfBody + .bfLinks) {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--ld-gap);
    }

    .lp.lp--dress .bfSection .faqPremiumInner:has(> .bfBody + .bfLinks) > * {
        grid-column: 1 / -1;
    }

    .lp.lp--dress .bfSection .faqPremiumInner:has(> .bfBody + .bfLinks) > .bfFacts {
        margin: 0 0 var(--ld-gap);
    }

    .lp.lp--dress .bfSection .faqPremiumInner:has(> .bfBody + .bfLinks) > .bfBody {
        grid-column: 1 / span 6;
        align-content: center;
        margin: 0;
        padding: calc(34px * var(--lp-scale)) calc(36px * var(--lp-scale));
    }

    /* the mark of the searches stands in the row of their title */
    .lp.lp--dress .bfSection .faqPremiumInner:has(> .bfBody + .bfLinks) > .bfLinks {
        display: grid;
        grid-column: 7 / -1;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: calc(16px * var(--lp-scale));
        align-content: start;
        margin: 0;
        padding: calc(30px * var(--lp-scale));
    }

    .lp.lp--dress .bfSection .bfBody + .bfLinks .crawlMark {
        position: static;
    }

    .lp.lp--dress .bfSection .bfBody + .bfLinks .bfLinksTitle {
        align-self: center;
    }

    .lp.lp--dress .bfSection .bfBody + .bfLinks .bfLinksList {
        grid-column: 1 / -1;
    }
}
/* --------------------------------------------------------------------------
   The questions: one sheet of glass, a line between two questions, the open
   one raised in the tone of its drawing
   -------------------------------------------------------------------------- */
.lp.lp--dress .faqPremiumSection:not(.bfSection) {
    background:
        radial-gradient(44% 520px at 100% 0%, rgba(199, 210, 254, 0.62) 0%, rgba(199, 210, 254, 0) 72%),
        radial-gradient(46% 520px at 0% 100%, rgba(186, 230, 253, 0.55) 0%, rgba(186, 230, 253, 0) 72%),
        linear-gradient(180deg, #f6f8ff 0%, #eef2ff 100%);
}

.lp.lp--dress .faqAccordionContainer {
    gap: 0;
    padding: calc(8px * var(--lp-scale));
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--lp-radius);
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line);
    counter-reset: ld-faq;
}

.lp.lp--dress .faqAccordionContainer .faqAccordionItem {
    position: relative;
    border: 0;
    border-radius: calc(var(--lp-radius) - 8px * var(--lp-scale));
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    counter-increment: ld-faq;
    transition: background-color 0.25s var(--lp-ease), box-shadow 0.25s var(--lp-ease);
}

/* the line between two questions */
.lp.lp--dress .faqAccordionContainer .faqAccordionItem + .faqAccordionItem::before {
    content: '';
    position: absolute;
    left: calc(22px * var(--lp-scale));
    right: calc(22px * var(--lp-scale));
    top: 0;
    height: 1px;
    background: var(--lp-line);
    transition: opacity 0.25s var(--lp-ease);
}

.lp.lp--dress .faqAccordionContainer .faqAccordionItem:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.7);
}

.lp.lp--dress .faqAccordionContainer .faqAccordionItem.is-open {
    margin: calc(6px * var(--lp-scale)) 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ld-tone) 9%, #ffffff) 0%, #ffffff 62%);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--ld-tone) 30%, transparent),
        0 22px 44px -30px color-mix(in srgb, var(--ld-tone) 70%, transparent);
}

.lp.lp--dress .faqAccordionContainer .faqAccordionItem.is-open::before,
.lp.lp--dress .faqAccordionContainer .faqAccordionItem.is-open + .faqAccordionItem::before {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   The reasons: a card each, numbered, the open one ringed in its tone
   -------------------------------------------------------------------------- */
.lp.lp--dress .whyChoosePremiumSection {
    background:
        radial-gradient(44% 480px at 0% 0%, rgba(199, 210, 254, 0.6) 0%, rgba(199, 210, 254, 0) 72%),
        radial-gradient(46% 480px at 100% 100%, rgba(221, 214, 254, 0.5) 0%, rgba(221, 214, 254, 0) 72%),
        linear-gradient(180deg, #f7f9ff 0%, #f1f3ff 100%);
}

.lp.lp--dress .whyChooseAccordionList {
    counter-reset: ld-why;
}

.lp.lp--dress .whyChooseAccordionItem {
    background:
        radial-gradient(calc(300px * var(--lp-scale)) calc(130px * var(--lp-scale)) at 0% calc(41px * var(--lp-scale)), color-mix(in srgb, var(--ld-tone) 13%, transparent) 0%, transparent 72%),
        var(--lp-glass);
    counter-increment: ld-why;
}

.lp.lp--dress .whyChooseAccordionItem.is-open {
    box-shadow:
        var(--lp-shadow-hover),
        0 0 0 1.5px color-mix(in srgb, var(--ld-tone) 42%, transparent);
}

/* The number of a question and of a reason, beside its toggle. */
.lp.lp--dress :is(.faqAccordionToggle, .whyChooseToggle)::before {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    font-family: var(--lp-font-display);
    font-size: calc(15px * var(--lp-scale));
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ld-tone);
    opacity: 0.42;
    transform: translateY(-50%);
    pointer-events: none;
}

.lp.lp--dress .faqAccordionToggle::before {
    content: counter(ld-faq, decimal-leading-zero);
    content: counter(ld-faq, decimal-leading-zero) / '';
}

.lp.lp--dress .whyChooseToggle::before {
    content: counter(ld-why, decimal-leading-zero);
    content: counter(ld-why, decimal-leading-zero) / '';
}

/* the words of a question keep clear of its number */
.lp.lp--dress :is(.faqQuestionText, .whyChooseQuestion) {
    padding-right: calc(36px * var(--lp-scale));
}

/* --------------------------------------------------------------------------
   The four steps: two rows of two, the drawing beside the name of the step,
   an arrow from one step to the next
   -------------------------------------------------------------------------- */
.lp.lp--dress .certStepsSection {
    background:
        radial-gradient(44% 46% at 100% 0%, rgba(167, 243, 208, 0.55) 0%, rgba(167, 243, 208, 0) 72%),
        radial-gradient(46% 50% at 0% 100%, rgba(186, 230, 253, 0.5) 0%, rgba(186, 230, 253, 0) 72%),
        linear-gradient(180deg, #f2fcf7 0%, #edf8f6 100%);
}

.lp.lp--dress .certStepsTag {
    white-space: nowrap;
}

/* on a phone and a tablet the step cards keep the inset of the page, as the cards of every other section do */
@media (max-width: 859px) {
    .lp.lp--dress .certStepsGrid {
        width: auto;
        margin-left: var(--lp-pad-x);
        margin-right: var(--lp-pad-x);
    }
}

@media (min-width: 860px) {
    .lp.lp--dress .certStepsGrid {
        position: relative;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 1fr;
    }

    .lp.lp--dress .certStepsCard {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-rows: auto 1fr;
        column-gap: calc(18px * var(--lp-scale));
        align-items: center;
        padding: calc(30px * var(--lp-scale));
    }

    /* the drawing, the name and the label of a step share its first row */
    .lp.lp--dress .certStepsCardTop {
        display: contents;
    }

    .lp.lp--dress .certStepsNum {
        grid-column: 1;
        grid-row: 1;
    }

    .lp.lp--dress .certStepsCardTitle {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        text-wrap: balance;
    }

    .lp.lp--dress .certStepsTag {
        grid-column: 3;
        grid-row: 1;
    }

    .lp.lp--dress .certStepsCardText {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: start;
        margin: calc(18px * var(--lp-scale)) 0 0;
        font-size: calc(16px * var(--lp-scale));
    }

    /* the arrow from the first step of a row to the second, where the steps are four: two rows of two */
    .lp.lp--dress .certStepsGrid:has(> .certStepsCard:nth-child(4):last-child)::before,
    .lp.lp--dress .certStepsGrid:has(> .certStepsCard:nth-child(4):last-child)::after {
        content: '';
        position: absolute;
        z-index: 2;
        left: 50%;
        top: calc((100% - var(--ld-gap)) / 4);
        width: 34px;
        height: 34px;
        margin: -17px 0 0 -17px;
        border-radius: 50%;
        background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><path d='m9 6 6 6-6 6'/></svg>") center / 16px 16px no-repeat;
        box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.22), 0 12px 22px -12px rgba(4, 120, 87, 0.6);
        pointer-events: none;
    }

    .lp.lp--dress .certStepsGrid:has(> .certStepsCard:nth-child(4):last-child)::after {
        top: calc((100% - var(--ld-gap)) * 3 / 4 + var(--ld-gap));
    }
}

/* --------------------------------------------------------------------------
   The definition: the words under a line of light, the last paragraph beside
   a rule of the country's green
   -------------------------------------------------------------------------- */
.lp.lp--dress .mhDefSection:not(.mhDefSection--know)::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(4, 120, 87, 0.16) 1px, rgba(4, 120, 87, 0) 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(46% 420px at 18% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(46% 420px at 18% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.lp.lp--dress .mhDefSection:not(.mhDefSection--know) .mhDefTextBlock--bottom {
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line), inset 4px 0 0 var(--lp-green);
}

@media (min-width: 1100px) {
    /* the three facts as rows: the drawing and the name on the left, the words on the right, no card half empty */
    .lp.lp--dress .mhDefSection:not(.mhDefSection--know) .mhDefGrid {
        grid-template-columns: minmax(0, 1fr);
        gap: calc(16px * var(--lp-scale));
        max-width: none;
    }

    .lp.lp--dress .mhDefSection:not(.mhDefSection--know) .mhDefCard {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        column-gap: calc(36px * var(--lp-scale));
        align-items: center;
        padding: calc(24px * var(--lp-scale)) calc(30px * var(--lp-scale));
    }

    .lp.lp--dress .mhDefSection:not(.mhDefSection--know) .mhDefCardHead {
        margin: 0;
    }

    .lp.lp--dress .mhDefSection:not(.mhDefSection--know) .mhDefCardText {
        padding-left: calc(36px * var(--lp-scale));
        border-left: 1px solid var(--lp-line);
        font-size: calc(16px * var(--lp-scale));
    }
}

/* --------------------------------------------------------------------------
   The link hubs: the name of a hub on the left, its links on the right
   -------------------------------------------------------------------------- */
.lp.lp--dress .sclSection {
    background:
        radial-gradient(44% 520px at 100% 0%, rgba(191, 219, 254, 0.7) 0%, rgba(191, 219, 254, 0) 72%),
        radial-gradient(46% 520px at 0% 100%, rgba(167, 243, 208, 0.5) 0%, rgba(167, 243, 208, 0) 72%),
        linear-gradient(180deg, #f5f8ff 0%, #eef4fb 100%);
}

.lp.lp--dress .sclGroup {
    background:
        radial-gradient(calc(300px * var(--lp-scale)) calc(210px * var(--lp-scale)) at 0% 0%, color-mix(in srgb, var(--ld-tone) 13%, transparent) 0%, transparent 72%),
        var(--lp-glass);
}

.lp.lp--dress .sclLinks a {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px -16px rgba(30, 58, 138, 0.55);
}

@media (min-width: 1024px) {
    /* the mark, the title and the line of a hub in one column, its links in the other, a hairline between */
    .lp.lp--dress .sclGroup {
        display: grid;
        grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
        grid-template-rows: auto auto 1fr;
        column-gap: calc(36px * var(--lp-scale));
        padding: calc(32px * var(--lp-scale)) calc(34px * var(--lp-scale));
    }

    .lp.lp--dress .sclGroup .crawlMark {
        position: static;
        grid-column: 1;
        grid-row: 1;
        margin: 0 0 calc(18px * var(--lp-scale));
    }

    .lp.lp--dress .sclGroup .sclTitle {
        grid-column: 1;
        grid-row: 2;
        text-wrap: balance;
    }

    .lp.lp--dress .sclGroup .sclIntro {
        grid-column: 1;
        grid-row: 3;
        max-width: none;
    }

    .lp.lp--dress .sclGroup .sclLinks {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-content: flex-start;
        align-self: stretch;
        margin: 0;
        padding: 0 0 0 calc(36px * var(--lp-scale));
        border-top: 0;
        border-left: 1px solid var(--lp-line);
    }
}

/* --------------------------------------------------------------------------
   The band of figures and the canvas of the courses
   -------------------------------------------------------------------------- */
/* Ringed paper in the near corner of the deep plate, the paper of the band that closes the page, facing the
   mark of the country in the far corner; a hairline between two figures fades at both ends, as the hairlines
   of the strip under the bar do. */
.lp.lp--dress #statsCounter::before {
    content: '';
    position: absolute;
    inset: auto;
    top: 50%;
    left: max(-470px, calc((100% - var(--lp-measure)) / 2 - 470px));
    z-index: 0;
    width: 760px;
    height: 760px;
    margin-top: -380px;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 41% 50%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, rgba(255, 255, 255, 0) 1.6px, rgba(255, 255, 255, 0) 13px),
        repeating-radial-gradient(circle at 59% 50%, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, rgba(255, 255, 255, 0) 1.6px, rgba(255, 255, 255, 0) 13px);
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.lp.lp--dress .counterContent {
    border-left: 0;
}

.lp.lp--dress .counterContent + .counterContent {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0) 100%) left center / 1px 100% no-repeat;
}

@media (max-width: 768px) {
    .lp.lp--dress #statsCounter::before {
        left: -400px;
        width: 620px;
        height: 620px;
        margin-top: -310px;
    }

    /* two rows of two: the third figure opens the second row */
    .lp.lp--dress .counterContent:nth-child(3) {
        background: none;
    }
}

/* The courses stand on a long canvas: a light of lavender and a light of mint come back down its length,
   behind the cards, so the last row stands on the same canvas as the first. No card is touched. */
.lp.lp--dress .productsShowcaseSection {
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(219, 234, 254, 0.7) 0%, rgba(219, 234, 254, 0) 70%),
        radial-gradient(660px 560px at 100% 22%, rgba(199, 210, 254, 0.44) 0%, rgba(199, 210, 254, 0) 72%) 0 0 / 100% 1900px repeat-y,
        radial-gradient(640px 560px at 0% 70%, rgba(167, 243, 208, 0.3) 0%, rgba(167, 243, 208, 0) 72%) 0 0 / 100% 1900px repeat-y,
        linear-gradient(180deg, #f8fbff 0%, #f5f8ff 50%, #f3f7fd 100%);
}

/* --------------------------------------------------------------------------
   The pictures of the sections above the guide: the seals of the
   accreditations and the two photographs stand in a case of glass with a
   second rim. The pill under a photograph keeps the colour the owner
   approved and hangs on the edge of the case, over its glass. The picture
   of the offer is the artwork of a card and stays bare; a thread ties it
   to the table of its prices. The certificate has a part of its own, below.
   -------------------------------------------------------------------------- */
.lp.lp--dress .teamsTrainingSection { --ld-case: #4338ca; }
.lp.lp--dress .studyAnywhereSection { --ld-case: #6d28d9; }

.lp.lp--dress :is(.trustImageFrame, .teamsImageFrame, .studyImageFrame) {
    box-sizing: border-box;
    padding: var(--ld-mat);
    border-radius: calc(var(--lp-radius) + 2px);
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.15), inset 0 1px 0 #ffffff, 0 46px 70px -46px rgba(30, 58, 138, 0.5), 0 18px 34px -26px rgba(15, 23, 42, 0.28);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ld-case) 15%, transparent), inset 0 1px 0 #ffffff, 0 46px 70px -46px color-mix(in srgb, var(--ld-case) 52%, transparent), 0 18px 34px -26px rgba(15, 23, 42, 0.28);
    transition: transform 0.35s var(--lp-ease), box-shadow 0.35s var(--lp-ease);
}

.lp.lp--dress :is(.trustImageFrame, .teamsImageFrame, .studyImageFrame):hover {
    box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.2), inset 0 1px 0 #ffffff, 0 56px 80px -48px rgba(30, 58, 138, 0.56), 0 22px 40px -28px rgba(15, 23, 42, 0.3);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ld-case) 20%, transparent), inset 0 1px 0 #ffffff, 0 56px 80px -48px color-mix(in srgb, var(--ld-case) 58%, transparent), 0 22px 40px -28px rgba(15, 23, 42, 0.3);
}

/* the second rim, a breath of glass around the case */
.lp.lp--dress :is(.trustImageFrame, .teamsImageFrame, .studyImageFrame)::before {
    content: '';
    position: absolute;
    inset: calc(-1 * var(--ld-rim));
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: calc(var(--lp-radius) + 2px + var(--ld-rim));
    background: rgba(255, 255, 255, 0.46);
    box-shadow: 0 0 0 1px rgba(30, 58, 138, 0.12);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--ld-case) 12%, transparent);
    pointer-events: none;
}

.lp.lp--dress :is(.trustImageFrame, .teamsImageFrame, .studyImageFrame) img {
    border: 0;
    border-radius: calc(var(--lp-radius) + 2px - var(--ld-mat));
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.07);
}

/* the pill under a picture hangs on the lower edge of its case: over the glass, clear of the picture */
@media (min-width: 1025px) {
    .lp.lp--dress .teamsFloatingBadge,
    .lp.lp--dress .studyFloatingBadge:not(.langsFloatingBadge) {
        bottom: calc(-14px * var(--lp-scale));
    }
}

/* a thread from the picture of the offer to the table of its prices, closed by a ring on the edge of the card */
.lp.lp--dress .hiwImageBox:has(+ .hiwSavings)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(100% + 9px);
    width: 2px;
    height: calc(56px * var(--lp-scale) - 20px);
    margin-left: -1px;
    background: repeating-linear-gradient(180deg, rgba(180, 83, 9, 0.5) 0 4px, rgba(180, 83, 9, 0) 4px 10px);
    pointer-events: none;
}

.lp.lp--dress .hiwImageBox + .hiwSavings {
    position: relative;
}

.lp.lp--dress .hiwImageBox + .hiwSavings::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.5), 0 8px 14px -6px rgba(180, 83, 9, 0.6);
    pointer-events: none;
}

@media (max-width: 640px) {
    .lp.lp--dress {
        --ld-mat: 7px;
        --ld-rim: 6px;
    }
}

/* --------------------------------------------------------------------------
   The certificate: its section is one column, read from the top, and the
   sheet is what the section shows (the owner's word, 28 November 2026: he
   was given the whole section to draw again, its placing, its colours and
   the size of the sheet). The mark of the section, the title and its words
   stand in the middle, the way forward and the proof under them; then the
   sheet, large, in a case of white glass under the line of light, its two
   seals on a plaque in the case, under the sheet, as on the page behind
   View Course; then the three reasons, side by side. The canvas is pearl
   with a breath of mint and the lights of the line of light stand around
   the case, so the green and blue of the sheet never meet a ground of their
   own colour. Nothing moves by itself and no word changes: the wrapper of
   the words is opened (display: contents) so its children take their rows.
   -------------------------------------------------------------------------- */
.lp.lp--dress .certPremiumSection {
    background:
        radial-gradient(50% 36% at 50% 0%, rgba(209, 250, 229, 0.6) 0%, rgba(209, 250, 229, 0) 72%),
        linear-gradient(180deg, #f4faf7 0%, #fbfdfc 42%, #f3f9f6 100%);
}

.lp.lp--dress .certPremiumInner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    justify-items: center;
    align-items: start;
}

.lp.lp--dress .certContentWrapper {
    display: contents;
    text-align: center;
}

/* The mark of the country leaves the corner the three reasons stand in now and takes the free corner above the
   title, on the left, set into the edge of the section as the mark of the steps is: the same mark, the same size
   and the same strength, with nothing drawn or written over it at any width. On the right it would stand right
   under the mark that closes the section of the steps. */
.lp.lp--dress .certPremiumSection .ie-wm--knot {
    top: -60px;
    right: auto;
    bottom: auto;
    left: 3%;
}

/* the lights around the case: emerald, sky and violet, the colours of the line of light */
.lp.lp--dress .certPremiumInner::before {
    content: '';
    grid-row: 5;
    grid-column: 1;
    z-index: 0;
    justify-self: center;
    align-self: stretch;
    width: 100%;
    margin: calc(-10px * var(--lp-scale)) 0 calc(-60px * var(--lp-scale));
    background:
        radial-gradient(32% 56% at 15% 60%, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0) 100%),
        radial-gradient(32% 56% at 85% 44%, rgba(124, 58, 237, 0.3) 0%, rgba(124, 58, 237, 0) 100%),
        radial-gradient(42% 42% at 50% 18%, rgba(14, 165, 233, 0.26) 0%, rgba(14, 165, 233, 0) 100%);
    -webkit-mask-image: radial-gradient(ellipse closest-side, #000 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(ellipse closest-side, #000 55%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.lp.lp--dress .certEyebrow {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: calc(22px * var(--lp-scale));
}

.lp.lp--dress .certHeading {
    grid-row: 2;
    grid-column: 1;
    margin: 0;
}

.lp.lp--dress .certTitle {
    max-width: 22em;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.lp.lp--dress .certIntro {
    max-width: calc(760px * var(--lp-scale));
    margin-left: auto;
    margin-right: auto;
}

.lp.lp--dress .certCTAButton {
    grid-row: 3;
    grid-column: 1;
    margin-top: calc(30px * var(--lp-scale));
}

/* the proof is a line under the way forward, its figure in the green of the section */
.lp.lp--dress .certProof {
    grid-row: 4;
    grid-column: 1;
    max-width: calc(600px * var(--lp-scale));
    margin: calc(18px * var(--lp-scale)) 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: calc(15px * var(--lp-scale));
    line-height: 1.6;
    color: var(--lp-ink-3);
    text-wrap: balance;
}

.lp.lp--dress .certProof strong {
    font-weight: 800;
    color: var(--lp-green-ink);
}

/* the case: the sheet over its plaque, under the line of light */
.lp.lp--dress .certImageWrapper {
    grid-row: 5;
    grid-column: 1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: calc(14px * var(--lp-scale)) 10px;
    max-width: min(calc(860px * var(--lp-scale)), 980px);
    margin-top: calc(48px * var(--lp-scale));
    padding: calc(14px * var(--lp-scale)) calc(14px * var(--lp-scale)) calc(15px * var(--lp-scale));
    border-radius: calc(var(--lp-radius) + 2px);
    background:
        linear-gradient(90deg, #059669 0%, #0284c7 52%, #7c3aed 100%) top / 100% 4px no-repeat,
        linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.04), 0 30px 54px -26px rgba(15, 23, 42, 0.22), 0 70px 110px -60px rgba(4, 120, 87, 0.42);
    overflow: hidden;
    transition: transform 0.35s var(--lp-ease), box-shadow 0.35s var(--lp-ease);
}

.lp.lp--dress .certImageWrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04), 0 38px 64px -28px rgba(15, 23, 42, 0.26), 0 84px 120px -60px rgba(4, 120, 87, 0.5);
}

.lp.lp--dress .certImageGlow {
    display: none;
}

.lp.lp--dress .certImageFrame {
    flex: 0 0 100%;
    max-width: none;
}

.lp.lp--dress .certImageFrame:hover {
    transform: none;
}

.lp.lp--dress .certImageFrame img,
.lp.lp--dress .certImageFrame:hover img {
    border: 0;
    border-radius: calc(var(--lp-radius) - 12px);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.lp.lp--dress .certImageFrame.is-zoomable:focus-visible img {
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.4);
}

/* a seal: a plaque of white with its mark in a disc, as on the page behind View Course. The seal of RoSPA
   reads first, the seal of the course second; the classes keep their old names. */
.lp.lp--dress .certImageWrapper .certFloatingBadge {
    position: static;
    box-sizing: border-box;
    gap: 9px;
    max-width: 100%;
    min-height: 40px;
    padding: 6px 16px 6px 7px;
    border: 0;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--lp-line), 0 12px 22px -18px rgba(30, 58, 138, 0.55);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--lp-ink);
    transform: none;
    animation: none;
}

.lp.lp--dress .certImageWrapper .certFloatingBadge.certBadgeBottom {
    order: 1;
}

.lp.lp--dress .certImageWrapper .certFloatingBadge.certBadgeTop {
    order: 2;
}

.lp.lp--dress .certImageWrapper .certFloatingBadge > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* A seal says its words once. A platform that writes them twice, in full and in short, shows the short ones up
   to 1280px (css/front/landing.css) and, above it, showed both: the short ones rest there. */
.lp.lp--dress .certImageWrapper .certFloatingBadge .certBadgeTextShort {
    display: none;
}

.lp.lp--dress .certImageWrapper .certFloatingBadge svg {
    width: 26px;
    height: 26px;
    padding: 6px;
    background: linear-gradient(145deg, #fbbf24 0%, #b45309 100%);
    box-shadow: 0 8px 14px -8px rgba(180, 83, 9, 0.85);
    color: #ffffff;
    stroke: #ffffff;
}

.lp.lp--dress .certImageWrapper .certFloatingBadge.certBadgeBottom svg {
    background: linear-gradient(145deg, #fb7185 0%, #be123c 100%);
    box-shadow: 0 8px 14px -8px rgba(190, 18, 60, 0.85);
}

/* the three reasons, side by side under the sheet: the drawing over the name of the reason */
.lp.lp--dress .certPerks {
    grid-row: 6;
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ld-gap);
    margin-top: calc(44px * var(--lp-scale));
    text-align: left;
}

.lp.lp--dress .certPerk {
    flex-direction: column;
    gap: calc(14px * var(--lp-scale));
    padding: calc(24px * var(--lp-scale));
}

@media (max-width: 899px) {
    /* the reasons stack, each a row again: the drawing beside the words */
    .lp.lp--dress .certPerks {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        max-width: 640px;
    }

    .lp.lp--dress .certPerk {
        flex-direction: row;
        gap: 16px;
        padding: 20px 18px;
    }
}

@media (max-width: 640px) {
    /* a long mark of the section folds to two even lines on a phone and is never cut by the screen */
    .lp.lp--dress .certEyebrow {
        box-sizing: border-box;
        max-width: 100%;
        border-radius: 22px;
        line-height: 1.25;
        text-align: center;
        text-wrap: balance;
        white-space: normal;
    }

    .lp.lp--dress .certImageWrapper {
        gap: 10px 8px;
        margin-top: 34px;
        padding: 8px 8px 11px;
        border-radius: 20px;
    }

    .lp.lp--dress .certImageFrame img,
    .lp.lp--dress .certImageFrame:hover img {
        border-radius: 13px;
    }

    .lp.lp--dress .certImageWrapper .certFloatingBadge {
        min-height: 38px;
        padding: 5px 13px 5px 6px;
        font-size: 12.5px;
    }

    .lp.lp--dress .certPerks {
        margin-top: 30px;
    }
}

/* --------------------------------------------------------------------------
   A phone keeps the numbers out of the rows: the words need the room
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .lp.lp--dress :is(.faqAccordionToggle, .whyChooseToggle)::before {
        content: none;
    }

    .lp.lp--dress :is(.faqQuestionText, .whyChooseQuestion) {
        padding-right: 0;
    }

    .lp.lp--dress .faqAccordionContainer {
        padding: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* the pills of the pictures float for a reader who did not ask for less */
    .lp.lp--dress :is(.howItWorksFloatingBadge, .teamsFloatingBadge, .studyFloatingBadge) {
        animation: none;
    }

    .lp.lp--dress .certImageWrapper,
    .lp.lp--dress :is(.trustImageFrame, .teamsImageFrame, .studyImageFrame),
    .lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard),
    .lp.lp--dress :is(.trustPoint, .certPerk, .studyCardItem, .hiwStep, .bfFact, .certStepsCard, .mhDefCard, .faqAccordionItem, .whyChooseAccordionItem) .spot {
        transition: none;
    }

    .lp.lp--dress .certImageWrapper:hover,
    .lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard):hover,
    .lp.lp--dress :is(.trustPoint, .certPerk, .studyCardItem, .hiwStep):hover .spot,
    .lp.lp--dress :is(.bfFact, .certStepsCard, .mhDefCard):hover .spot,
    .lp.lp--dress :is(.faqAccordionItem, .whyChooseAccordionItem):is(:hover, .is-open) .spot {
        transform: none;
    }
}
