/* ==========================================================================
   The course guide of a landing (front/partials/course-guide): what the
   page sells and how it works, in the order a learner takes it. Every
   landing and every course page of the fleet prints it after the languages
   section, for one course or for a whole catalogue (App\Support\CourseGuide).

   The section stands inside .lp and reads its tokens (css/views/landing-page.css):
   the inks, the glass, the hairline, the shadows, the two faces, the measure
   and the page scale. Its head and the pill under its picture are the shared
   shapes of the landing, the mark of every card is a spot
   (css/blocks/spot-1.css). What follows is its own: the canvas with the mark
   of the country in its corner, the definition beside the picture of the
   course on a screen, the steps and the card of the trades.

   A drawing stands beside its words at every width, never above them. The
   picture moves slowly (the open module plays, the two badges float) and only
   while it is on the screen: js/views/course-guide.js rests it with
   .is-resting, and a reader who asked for less motion sees it still.
   ========================================================================== */

.lp .cg {
    --cg-gap: calc(22px * var(--lp-scale));
    --cg-pad: calc(30px * var(--lp-scale));
    background:
        radial-gradient(44% 40% at 100% 0%, rgba(199, 210, 254, 0.62) 0%, rgba(199, 210, 254, 0) 72%),
        radial-gradient(46% 44% at 0% 100%, rgba(186, 230, 253, 0.55) 0%, rgba(186, 230, 253, 0) 72%),
        linear-gradient(180deg, #f6f8ff 0%, #eef2ff 100%);
}

/* The mark of the country in the right corner of the head, as the definition section of the landing wears it:
   the shamrock on an Irish platform, the crown on a British one. A wrapper with neither market class prints none. */
.lp--ie .cg::after,
.lp--uk .cg::after {
    content: '';
    position: absolute;
    z-index: 0;
    right: 3.5%;
    top: 42px;
    width: 170px;
    height: 170px;
    opacity: 0.07;
    pointer-events: none;
    animation: cg-sway 18s ease-in-out infinite alternate;
}

.lp--ie .cg::after {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='%23169B62'><path d='M12 12C9.6 9.7 6.2 9.9 6.2 6.9 6.2 4.7 7.9 3.1 9.7 3.1c1 0 1.9.5 2.3 1.3.4-.8 1.3-1.3 2.3-1.3 1.8 0 3.5 1.6 3.5 3.8 0 3-3.4 2.8-5.8 5.1Z'/><path d='M12 12C9.6 9.7 6.2 9.9 6.2 6.9 6.2 4.7 7.9 3.1 9.7 3.1c1 0 1.9.5 2.3 1.3.4-.8 1.3-1.3 2.3-1.3 1.8 0 3.5 1.6 3.5 3.8 0 3-3.4 2.8-5.8 5.1Z' transform='rotate(120 12 12)'/><path d='M12 12C9.6 9.7 6.2 9.9 6.2 6.9 6.2 4.7 7.9 3.1 9.7 3.1c1 0 1.9.5 2.3 1.3.4-.8 1.3-1.3 2.3-1.3 1.8 0 3.5 1.6 3.5 3.8 0 3-3.4 2.8-5.8 5.1Z' transform='rotate(240 12 12)'/></g><path d='M12 12.4c.3 2.7-.2 5.1-1.8 7.9' fill='none' stroke='%23169B62' stroke-width='1.7' stroke-linecap='round'/></svg>") center / contain no-repeat;
}

.lp--uk .cg::after {
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='%23d97706'><path d='M5 16 3.2 6.6a.5.5 0 0 1 .8-.5L8.6 9.6 11.56 4.3a.5.5 0 0 1 .88 0l2.96 5.3 4.6-3.5a.5.5 0 0 1 .8.5L19 16H5Z'/><path d='M5.2 17.6h13.6a.9.9 0 0 1 .9.9v.8a.9.9 0 0 1-.9.9H5.2a.9.9 0 0 1-.9-.9v-.8a.9.9 0 0 1 .9-.9Z'/></g></svg>") center / contain no-repeat;
    opacity: 0.09;
}

@keyframes cg-sway {
    from { transform: rotate(-4deg); }
    to { transform: rotate(4deg); }
}

@media (max-width: 1024px) {
    .lp--ie .cg::after,
    .lp--uk .cg::after {
        display: none;
    }
}

/* dotted paper behind the head, fading into the canvas */
.lp .cg::before {
    content: '';
    position: absolute;
    inset: 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(72% 44% at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(72% 44% at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.lp .cg-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--lp-measure);
    margin: 0 auto;
    padding: 0 var(--lp-pad-x);
    box-sizing: border-box;
}

/* The glass card of the landing */
.lp .cg-lead,
.lp .cg-step,
.lp .cg-who {
    position: relative;
    box-sizing: border-box;
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line);
}

/* --------------------------------------------------------------------------
   The definition beside the picture
   -------------------------------------------------------------------------- */
.lp .cg-top {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--cg-gap);
    align-items: stretch;
}

.lp .cg-lead {
    display: flex;
    flex-direction: column;
    padding: calc(36px * var(--lp-scale)) calc(36px * var(--lp-scale)) calc(30px * var(--lp-scale));
    overflow: hidden;
}

/* a line of light along its top edge */
.lp .cg-lead::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%);
}

.lp .cg-lead p {
    margin: 0 0 calc(16px * var(--lp-scale));
    font-family: var(--lp-font-body);
    font-size: calc(16.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.7;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .cg-lead .cg-lead__first {
    font-size: calc(17.5px * var(--lp-scale));
    line-height: 1.68;
}

.lp .cg-lead p:last-of-type {
    margin-bottom: calc(28px * var(--lp-scale));
}

.lp .cg-lead strong {
    font-weight: 700;
    color: var(--lp-ink);
}

/* the rules a course is written around: a label, then each rule as a small sheet (a long one folds, a pill would not) */
.lp .cg-lead p:has(+ .cg-rules) {
    margin-bottom: calc(18px * var(--lp-scale));
}

.lp .cg-rules {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 calc(26px * var(--lp-scale));
}

.lp .cg-rules__label {
    flex: 0 0 100%;
    margin: 0 0 2px;
    font-family: var(--lp-font-body);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-ink-3);
}

.lp .cg-rules__list {
    display: contents;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp .cg-rules__list li {
    position: relative;
    min-width: 0;
    padding: 8px 13px 8px 28px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px var(--lp-line-strong);
    font-family: var(--lp-font-body);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 600;
    line-height: 1.3;
    color: var(--lp-ink-2);
}

.lp .cg-rules__list li::before {
    content: '';
    position: absolute;
    left: 12px;
    top: calc(8px + 0.65em);
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--lp-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.lp .cg-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: auto 0 0;
    padding: calc(24px * var(--lp-scale)) 0 0;
    border-top: 1px solid var(--lp-line);
    list-style: none;
}

.lp .cg-fact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 0 calc(20px * var(--lp-scale));
    border-left: 1px solid var(--lp-line);
}

.lp .cg-fact:first-child {
    padding-left: 0;
    border-left: 0;
}

.lp .cg-fact__value {
    font-family: var(--lp-font-display);
    font-size: calc(23px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--lp-ink);
}

.lp .cg-fact__label {
    font-family: var(--lp-font-body);
    font-size: calc(14.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.4;
    color: var(--lp-ink-3);
}

/* --------------------------------------------------------------------------
   The picture: the course on a screen
   -------------------------------------------------------------------------- */
.lp .cg-visual {
    position: relative;
    display: flex;
    min-width: 0;
    padding-bottom: calc(26px * var(--lp-scale));
}

.lp .cg-shot {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    min-width: 0;
    padding: calc(44px * var(--lp-scale)) calc(30px * var(--lp-scale)) calc(64px * var(--lp-scale));
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--lp-radius);
    background:
        linear-gradient(rgba(30, 58, 138, 0.05) 1px, rgba(30, 58, 138, 0) 1px) 0 0 / 100% 26px,
        linear-gradient(90deg, rgba(30, 58, 138, 0.05) 1px, rgba(30, 58, 138, 0) 1px) 0 0 / 26px 100%,
        linear-gradient(155deg, #e9f0ff 0%, #e6e8ff 52%, #f1ecff 100%);
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line);
}

.lp .cg-shot__glow {
    position: absolute;
    inset: 14% 12% 20%;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.lp .cg-win {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: calc(356px * var(--lp-scale));
    border-radius: calc(18px * var(--lp-scale));
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--lp-line), 0 2px 4px rgba(15, 23, 42, 0.05), 0 34px 60px -34px rgba(30, 58, 138, 0.65);
    font-family: var(--lp-font-body);
    overflow: hidden;
}

.lp .cg-win__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--lp-line);
}

.lp .cg-win__dots {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
}

.lp .cg-win__dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dbe3f1;
}

.lp .cg-win__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: calc(14px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.25;
    color: var(--lp-ink);
}

.lp .cg-win__time {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
    font-size: calc(13.5px * var(--lp-scale));
    font-weight: 700;
    line-height: 1;
    color: var(--lp-blue-deep);
}

.lp .cg-win__screen {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 8;
    margin: 12px 12px 0;
    border-radius: calc(12px * var(--lp-scale));
    background:
        radial-gradient(56% 78% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(140deg, #dbeafe 0%, #e0e7ff 55%, #ede9fe 100%);
    overflow: hidden;
}

.lp .cg-win__screen .spot {
    --spot-size: calc(104px * var(--lp-scale));
}

.lp .cg-win__play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 14px -6px rgba(30, 58, 138, 0.55), inset 0 0 0 1px var(--lp-line);
}

.lp .cg-win__play::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 10px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--lp-blue);
}

.lp .cg-win__track {
    position: absolute;
    left: 58px;
    right: 14px;
    bottom: 26px;
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.14);
    overflow: hidden;
}

.lp .cg-win__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lp-blue), var(--lp-violet));
    transform: scaleX(0.62);
    transform-origin: 0 50%;
    animation: cg-play 8s linear infinite;
}

.lp .cg-win__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.lp .cg-win__step {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: calc(10px * var(--lp-scale));
    background: #f5f7fd;
    font-size: calc(14px * var(--lp-scale));
    font-weight: 600;
    line-height: 1.2;
    color: var(--lp-ink-3);
}

.lp .cg-win__step b {
    min-width: 0;
    font-weight: inherit;
}

.lp .cg-win__step i {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(30, 58, 138, 0.22);
}

.lp .cg-win__step.is-done {
    color: var(--lp-ink-2);
}

.lp .cg-win__step.is-done i {
    background: var(--lp-green);
    box-shadow: none;
}

.lp .cg-win__step.is-done i::after {
    content: '';
    position: absolute;
    left: 6.5px;
    top: 3.5px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lp .cg-win__step.is-now {
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.3);
    color: var(--lp-ink);
}

.lp .cg-win__step.is-now i {
    box-shadow: inset 0 0 0 2px var(--lp-blue);
}

.lp .cg-win__step.is-now i::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--lp-blue);
    animation: cg-pulse 2.4s ease-in-out infinite;
}

/* the two badges on the edge of the picture */
.lp .cg-float {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
}

.lp .cg-float--cert {
    top: calc(-18px * var(--lp-scale));
    right: calc(20px * var(--lp-scale));
    gap: 10px;
    max-width: calc(100% - 40px);
    padding: 7px 17px 7px 7px;
    box-sizing: border-box;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0 0 1px var(--lp-line), 0 18px 30px -18px rgba(30, 58, 138, 0.6);
    font-family: var(--lp-font-body);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.2;
    color: var(--lp-ink);
    animation: lp-float 5s ease-in-out infinite;
}

.lp .cg-float--cert .spot {
    --spot-size: calc(38px * var(--lp-scale));
}

.lp .cg-float--cert b {
    font-weight: inherit;
}

.lp .cg-float--practical {
    left: calc(-18px * var(--lp-scale));
    bottom: calc(22px * var(--lp-scale));
    transform: rotate(-7deg);
    animation: cg-drift 6s ease-in-out infinite 0.6s;
}

.lp .cg-float--practical .spot {
    --spot-size: calc(66px * var(--lp-scale));
    box-shadow: inset 0 0 0 1px var(--sp-edge), 0 22px 30px -18px var(--sp);
}

/* off the screen everything that moves holds where it stands */
.lp .cg-shot.is-resting .cg-win__track i,
.lp .cg-shot.is-resting .cg-win__step.is-now i::after,
.lp .cg-shot.is-resting .cg-float,
.lp .cg-shot.is-resting .cg-shot__pill {
    animation-play-state: paused;
}

@keyframes cg-play {
    0% { transform: scaleX(0.06); }
    82%, 100% { transform: scaleX(1); }
}

@keyframes cg-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.55); opacity: 0.6; }
}

@keyframes cg-drift {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-6px); }
}

/* --------------------------------------------------------------------------
   The steps, in the order a learner takes them
   -------------------------------------------------------------------------- */
/* the line that opens the steps: their number, between two hairlines */
.lp .cg-rule {
    display: flex;
    align-items: center;
    gap: calc(18px * var(--lp-scale));
    margin: calc(44px * var(--lp-scale)) 0 calc(26px * var(--lp-scale));
    font-family: var(--lp-font-body);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-ink-3);
}

.lp .cg-rule::before,
.lp .cg-rule::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0), var(--lp-line-strong));
}

.lp .cg-rule::after {
    background: linear-gradient(90deg, var(--lp-line-strong), rgba(30, 58, 138, 0));
}

.lp .cg-rule > span {
    flex: 0 1 auto;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--lp-glass-strong);
    box-shadow: inset 0 0 0 1px var(--lp-line), 0 10px 24px -18px rgba(30, 58, 138, 0.5);
    text-align: center;
}

.lp .cg-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--cg-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp .cg-step {
    --cg-tone: var(--lp-blue);
    display: flex;
    flex-direction: column;
    padding: var(--cg-pad);
    overflow: hidden;
    transition: transform 0.28s var(--lp-ease), box-shadow 0.28s var(--lp-ease);
}

.lp .cg-step--indigo { --cg-tone: #4f46e5; }
.lp .cg-step--sky { --cg-tone: #0284c7; }
.lp .cg-step--teal { --cg-tone: #0d9488; }
.lp .cg-step--rose { --cg-tone: #e11d48; }
.lp .cg-step--violet { --cg-tone: #7c3aed; }
.lp .cg-step--blue { --cg-tone: #2563eb; }
.lp .cg-step--emerald { --cg-tone: #059669; }
.lp .cg-step--orange { --cg-tone: #ea580c; }
.lp .cg-step--cyan { --cg-tone: #0891b2; }
.lp .cg-step--amber { --cg-tone: #d97706; }

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

.lp .cg-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-hover), 0 0 0 1px var(--lp-line-strong);
}

.lp .cg-step__no {
    position: absolute;
    z-index: 1;
    top: calc(26px * var(--lp-scale));
    right: calc(28px * var(--lp-scale));
    font-family: var(--lp-font-display);
    font-size: calc(34px * var(--lp-scale));
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--cg-tone);
    opacity: 0.24;
}

/* the drawing beside the name of the step, the number of the step in the corner */
.lp .cg-step__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: calc(20px * var(--lp-scale));
    min-width: 0;
    padding-right: calc(58px * var(--lp-scale));
}

.lp .cg-step__mark {
    flex: 0 0 auto;
    line-height: 0;
}

.lp .cg-step__mark .spot {
    --spot-size: calc(68px * var(--lp-scale));
    transition: transform 0.28s var(--lp-ease);
}

.lp .cg-step:hover .cg-step__mark .spot {
    transform: rotate(-5deg) scale(1.04);
}

.lp .cg-step__title {
    min-width: 0;
    margin: 0;
    font-family: var(--lp-font-display);
    font-size: calc(19px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .cg-step__words {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.lp .cg-step__text {
    position: relative;
    z-index: 1;
    margin: calc(18px * var(--lp-scale)) 0 calc(20px * var(--lp-scale));
    font-family: var(--lp-font-body);
    font-size: calc(16px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.65;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

/* the lessons of a module, as the course names them: a dot of the tone before each */
.lp .cg-step__list {
    display: grid;
    gap: calc(10px * var(--lp-scale));
    margin: calc(20px * var(--lp-scale)) 0 calc(22px * var(--lp-scale));
    padding: 0;
    list-style: none;
}

.lp .cg-step__list li {
    position: relative;
    padding-left: 24px;
    font-family: var(--lp-font-body);
    font-size: calc(16px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.45;
    color: var(--lp-ink-2);
}

.lp .cg-step__list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--cg-tone);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cg-tone) 16%, transparent);
}

/* the courses of a subject and the modules a long course goes on with: each name a small sheet */
.lp .cg-step__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: calc(20px * var(--lp-scale)) 0 calc(22px * var(--lp-scale));
    padding: 0;
    list-style: none;
}

.lp .cg-step__text + .cg-step__chips {
    margin-top: calc(-6px * var(--lp-scale));
}

.lp .cg-step__chips li {
    min-width: 0;
    padding: 8px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cg-tone) 26%, var(--lp-line));
    font-family: var(--lp-font-body);
    font-size: calc(14.5px * var(--lp-scale));
    font-weight: 600;
    line-height: 1.3;
    color: var(--lp-ink-2);
}

/* the foot of a card: what the step is made of, drawn */
.lp .cg-step__foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(16px * var(--lp-scale));
    margin: auto 0 0;
    padding: calc(16px * var(--lp-scale)) 0 0;
    border-top: 1px solid var(--lp-line);
}

.lp .cg-step__count {
    font-family: var(--lp-font-body);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.3;
    color: var(--lp-ink-2);
}

/* a second figure beside the first (the modules of a subject), after a hairline */
.lp .cg-step__note {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--lp-line-strong);
    font-weight: 600;
    color: var(--lp-ink-3);
}

/* where the module stands in the course: a mark a step, however many the course has */
.lp .cg-pips {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.lp .cg-pips i {
    flex: 0 1 auto;
    width: 16px;
    min-width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.14);
}

.lp .cg-pips i.is-past {
    background: var(--cg-tone);
    opacity: 0.38;
}

.lp .cg-pips i.is-now {
    width: 30px;
    min-width: 12px;
    background: var(--cg-tone);
}

/* the exam: its pass mark as a ring, its questions as dots */
.lp .cg-exam {
    justify-content: flex-start;
}

.lp .cg-ring {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: calc(52px * var(--lp-scale));
    height: calc(52px * var(--lp-scale));
}

.lp .cg-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lp .cg-ring__track {
    fill: none;
    stroke: rgba(30, 58, 138, 0.12);
    stroke-width: 7;
}

.lp .cg-ring__arc {
    fill: none;
    stroke: var(--cg-tone);
    stroke-width: 7;
    stroke-linecap: round;
}

.lp .cg-ring b {
    position: relative;
    font-family: var(--lp-font-display);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lp-ink);
}

.lp .cg-exam__words {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

/* ten questions a row, so twenty stand as two even rows and never as a row and two */
.lp .cg-dots {
    display: grid;
    grid-template-columns: repeat(10, 12px);
    gap: 6px;
}

.lp .cg-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.lp .cg-dots i.is-on {
    background: var(--cg-tone);
    box-shadow: none;
}

/* the practical: what a learner does, in three words */
.lp .cg-flow {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px calc(30px * var(--lp-scale));
    list-style: none;
}

.lp .cg-flow li {
    position: relative;
    padding: calc(11px * var(--lp-scale)) calc(16px * var(--lp-scale));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px var(--lp-line-strong);
    font-family: var(--lp-font-body);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 600;
    line-height: 1;
    color: var(--lp-ink-2);
}

.lp .cg-flow li + li::before {
    content: '';
    position: absolute;
    left: calc(-19px * var(--lp-scale));
    top: 50%;
    width: 7px;
    height: 7px;
    border: solid var(--cg-tone);
    border-width: 2px 2px 0 0;
    opacity: 0.75;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* A card that takes a whole row: the card that names the other modules of a long course, and a last card that
   would stand alone. On a wide screen its words stand on the left and what it is made of on the right, a
   hairline between. */
@media (min-width: 860px) {
    .lp .cg-step--wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1100px) {
    .lp .cg-step--wide:not(.cg-step--more) {
        flex-direction: row;
        align-items: center;
        gap: calc(40px * var(--lp-scale));
    }

    .lp .cg-step--wide:not(.cg-step--more) .cg-step__words {
        flex: 1 1 0;
    }

    .lp .cg-step--wide:not(.cg-step--more) .cg-step__words > :last-child {
        margin-bottom: 0;
    }

    .lp .cg-step--wide:not(.cg-step--more) .cg-step__foot {
        flex: 0 0 auto;
        align-self: stretch;
        width: 40%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 0 0 calc(40px * var(--lp-scale));
        border-top: 0;
        border-left: 1px solid var(--lp-line);
    }
}

/* --------------------------------------------------------------------------
   Who needs the course, and the trades it is taken in
   -------------------------------------------------------------------------- */
.lp .cg-who {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: calc(40px * var(--lp-scale));
    align-items: center;
    margin: var(--cg-gap) 0 0;
    padding: calc(34px * var(--lp-scale)) calc(36px * var(--lp-scale));
}

.lp .cg-who__words {
    min-width: 0;
}

.lp .cg-who__title {
    margin: 0 0 calc(12px * var(--lp-scale));
    font-family: var(--lp-font-display);
    font-size: calc(24px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .cg-who__text {
    margin: 0;
    font-family: var(--lp-font-body);
    font-size: calc(16.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.7;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .cg-trades {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(14px * var(--lp-scale));
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp .cg-trade {
    display: flex;
    align-items: center;
    gap: calc(14px * var(--lp-scale));
    min-width: 0;
    padding: calc(11px * var(--lp-scale)) calc(16px * var(--lp-scale)) calc(11px * var(--lp-scale)) calc(11px * var(--lp-scale));
    border-radius: var(--lp-radius-sm);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px var(--lp-line), 0 16px 26px -24px rgba(30, 58, 138, 0.6);
    font-family: var(--lp-font-display);
    font-size: calc(16px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.25;
    color: var(--lp-ink);
    transition: transform 0.28s var(--lp-ease);
}

.lp .cg-trade:hover {
    transform: translateY(-2px);
}

.lp .cg-trade .spot {
    --spot-size: calc(48px * var(--lp-scale));
}

.lp .cg-trade > span:last-child {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   Narrower screens
   -------------------------------------------------------------------------- */
@media (max-width: 959px) {
    .lp .cg-top {
        grid-template-columns: minmax(0, 1fr);
    }

    /* the picture stands under the definition: its top badge keeps its room */
    .lp .cg-visual {
        width: 100%;
        max-width: 560px;
        margin: 10px auto 0;
    }

    .lp .cg-who {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .lp .cg-trades {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 859px) {
    .lp .cg-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .lp .cg {
        --cg-gap: 16px;
        --cg-pad: 22px;
    }

    .lp .cg-lead {
        padding: 28px 20px 12px;
    }

    .lp .cg-lead p,
    .lp .cg-lead .cg-lead__first {
        font-size: 16px;
        line-height: 1.65;
    }

    .lp .cg-lead p:last-of-type {
        margin-bottom: 20px;
    }

    .lp .cg-rule {
        gap: 12px;
        margin: 34px 0 20px;
    }

    /* the three figures as rows: the figure, then what it is */
    .lp .cg-facts {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 0;
    }

    .lp .cg-fact {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        padding: 13px 0;
        border-left: 0;
        border-top: 1px solid var(--lp-line);
    }

    .lp .cg-fact:first-child {
        border-top: 0;
    }

    .lp .cg-fact__value {
        flex: 0 0 auto;
        font-size: 20px;
    }

    .lp .cg-fact__label {
        text-align: right;
    }

    .lp .cg-shot {
        padding: 36px 16px 50px;
    }

    .lp .cg-float--cert {
        top: -14px;
        right: 12px;
        max-width: calc(100% - 24px);
    }

    /* the picture fills the stage of a phone: the badge that floats beside it has no room and rests */
    .lp .cg-float--practical {
        display: none;
    }

    .lp .cg-win__screen .spot {
        --spot-size: 88px;
    }

    .lp .cg-step {
        padding: 22px 18px;
    }

    .lp .cg-step__head {
        gap: 14px;
        padding-right: 48px;
    }

    .lp .cg-step__mark .spot {
        --spot-size: 56px;
    }

    .lp .cg-step__no {
        top: 22px;
        right: 18px;
        font-size: 28px;
    }

    .lp .cg-step__title {
        font-size: 18px;
    }

    .lp .cg-step__text {
        margin: 14px 0 18px;
    }

    .lp .cg-step__foot {
        padding-top: 14px;
    }

    /* the three words of a foot stay on one line: an arrow never opens a line */
    .lp .cg-flow {
        flex-wrap: nowrap;
        gap: 0 22px;
    }

    .lp .cg-flow li {
        padding: 10px 12px;
    }

    .lp .cg-flow li + li::before {
        left: -15px;
    }

    .lp .cg-who {
        padding: 26px 20px;
    }

    .lp .cg-who__title {
        font-size: 22px;
    }

    /* the trades in two columns, each one row of a drawing and its name */
    .lp .cg-trades {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .lp .cg-trade {
        gap: 12px;
        padding: 9px 14px 9px 9px;
        font-size: 15.5px;
    }

    .lp .cg-trade .spot {
        --spot-size: 44px;
    }
}

/* A narrow phone cannot hold two trades with their names in a row. The paragraph above names them all, so the
   drawings stand as one strip under it and each name stays for a screen reader. The picture keeps its screen
   and lets go of its list. */
@media (max-width: 429px) {
    .lp .cg-trades {
        display: flex;
        justify-content: space-between;
        gap: 6px;
    }

    .lp .cg-trade {
        position: relative;
        flex: 0 0 auto;
        padding: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .lp .cg-trade > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    /* six drawings and five gaps inside the card: 76px of insets, 30px of gaps */
    .lp .cg-trade .spot {
        --spot-size: min(46px, calc((100vw - 106px) / 6));
    }

    .lp .cg-win__steps {
        display: none;
    }

    .lp .cg-win__screen {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp .cg-shot .cg-win__track i,
    .lp .cg-shot .cg-win__step.is-now i::after,
    .lp .cg-shot .cg-float,
    .lp .cg-shot .cg-shot__pill,
    .lp--ie .cg::after,
    .lp--uk .cg::after {
        animation: none;
    }

    .lp .cg-step,
    .lp .cg-step__mark .spot,
    .lp .cg-trade {
        transition: none;
    }

    .lp .cg-step:hover,
    .lp .cg-trade:hover,
    .lp .cg-step:hover .cg-step__mark .spot {
        transform: none;
    }
}
