/* ==========================================================================
   Course languages: the button a course card carries, the button of the
   public top bar and the dialog they open (front/partials/course-languages,
   course-languages-dialog). One sheet for every page that shows them, output
   once per request.

   The button of a card is a glass plate the width of its card: four flags as
   a sample of the list, the figure, a quiet "See all" where the card has the
   room for it and a chevron. The button of the top bar is the flag of the
   language the page is written in, in a white ring, with a chevron: the last
   section of this sheet, which also makes its room in the bar. Either opens
   the dialog; neither changes the language.

   The dialog is the sibling of the language menu of the top bar
   (css/views/language-switcher.css) and reads from the same values: the deep
   navy head, the soft canvas, every language a white glass card with its flag
   as an enamel disc, its own name and its English name. Thirty six cards make
   a full grid at six across (a wide screen), four, three and two; one under
   340px. On a phone it is a sheet that rises from the foot of the screen.

   Everything reads from the tokens below; html.dark swaps them, so the dark
   look is the same sheet (both carry data-dm-skip: the dashboard's theme
   script leaves them to it). Flags are discs cut here from the square symbols
   of images/flags/language-flags.svg.
   ========================================================================== */

.course-langs,
.course-langs-dialog{
    --cl-ink:#0b1220;
    --cl-ink-2:#253247;
    --cl-soft:#3f4d66;
    --cl-blue:#2563eb;
    --cl-blue-deep:#1d4ed8;
    --cl-line:rgba(30,58,138,.1);
    --cl-plate:#ffffff;
    --cl-canvas:radial-gradient(560px 300px at 0% 0%,rgba(147,197,253,.22) 0%,rgba(147,197,253,0) 70%),radial-gradient(520px 320px at 100% 100%,rgba(167,139,250,.14) 0%,rgba(167,139,250,0) 70%),linear-gradient(180deg,#f9fbff 0%,#f0f4fc 100%);
    --cl-card:rgba(255,255,255,.88);
    --cl-card-line:rgba(30,58,138,.11);
    --cl-card-shadow:0 1px 2px rgba(11,31,58,.04);
    --cl-picked-base:#ffffff;
    --cl-picked:linear-gradient(135deg,rgba(37,99,235,.15) 0%,rgba(37,99,235,.05) 100%);
    --cl-picked-line:rgba(37,99,235,.52);
    --cl-picked-ring:0 0 0 3px rgba(37,99,235,.1);
    --cl-tint:rgba(37,99,235,.09);
    --cl-foot:#ffffff;
    --cl-flag-edge:rgba(11,18,32,.14);
    --cl-flag-ring:#ffffff;
    --cl-flag-drop:0 6px 12px -8px rgba(11,31,58,.5);
    --cl-btn:linear-gradient(180deg,#ffffff 0%,#f2f6ff 100%);
    --cl-btn-line:rgba(37,99,235,.2);
    --cl-btn-shadow:0 1px 2px rgba(11,31,58,.05),inset 0 1px 0 rgba(255,255,255,.9);
    --cl-btn-line-hover:rgba(37,99,235,.45);
    --cl-btn-shadow-hover:0 14px 24px -18px rgba(37,99,235,.6),0 2px 4px rgba(11,31,58,.05),inset 0 1px 0 rgba(255,255,255,.9);
    --cl-display:'Plus Jakarta Sans',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    --cl-body:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    /* the names: Inter where it has the letters, the system's own face for every other script */
    --cl-names:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Sans','Nirmala UI','Leelawadee UI',sans-serif;
    --cl-ease:cubic-bezier(.22,1,.36,1);
}
html.dark .course-langs,
html.dark .course-langs-dialog{
    --cl-ink:#eef3fb;
    --cl-ink-2:#dbe4f3;
    --cl-soft:#b4c0d6;
    --cl-blue-deep:#93c5fd;
    --cl-line:rgba(255,255,255,.1);
    --cl-plate:#0d1628;
    --cl-canvas:radial-gradient(560px 300px at 0% 0%,rgba(37,99,235,.18) 0%,rgba(37,99,235,0) 70%),radial-gradient(520px 320px at 100% 100%,rgba(124,58,237,.12) 0%,rgba(124,58,237,0) 70%),linear-gradient(180deg,#0f1a2f 0%,#0d1628 100%);
    --cl-card:rgba(255,255,255,.05);
    --cl-card-line:rgba(255,255,255,.09);
    --cl-card-shadow:none;
    --cl-picked-base:#14233f;
    --cl-picked:linear-gradient(135deg,rgba(59,130,246,.34) 0%,rgba(59,130,246,.12) 100%);
    --cl-picked-line:rgba(96,165,250,.7);
    --cl-picked-ring:0 0 0 3px rgba(96,165,250,.14);
    --cl-tint:rgba(59,130,246,.22);
    --cl-foot:#0d1628;
    --cl-flag-edge:rgba(255,255,255,.2);
    --cl-flag-ring:rgba(255,255,255,.9);
    --cl-flag-drop:0 6px 12px -8px rgba(0,0,0,.8);
    --cl-btn:linear-gradient(180deg,rgba(255,255,255,.07) 0%,rgba(255,255,255,.04) 100%);
    --cl-btn-line:rgba(255,255,255,.14);
    --cl-btn-shadow:0 1px 2px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05);
    --cl-btn-line-hover:rgba(96,165,250,.6);
    --cl-btn-shadow-hover:0 14px 24px -18px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---- a flag: a disc cut from the square symbol, a hairline so white never melts into white ---- */
.course-langs__flag{
    position:relative;
    display:block;
    flex:0 0 auto;
    width:var(--cl-flag,28px);
    height:var(--cl-flag,28px);
    border-radius:50%;
    overflow:hidden;
    isolation:isolate;
    background:#e8eefb;
}
.course-langs__flag svg{ display:block; width:100%; height:100%; }
.course-langs__flag::after{
    content:'';
    position:absolute;
    inset:0;
    border-radius:50%;
    box-shadow:inset 0 0 0 1px var(--cl-flag-edge);
    pointer-events:none;
}

/* ---- the button of a card --------------------------------------------------------------------
   44px high, so a thumb finds it. What it says is never cut. The figure and the chevron always
   stand. The flags give way first, each one whole, where the card is narrow: their row is one
   line high, a flag that has no room wraps under it, out of sight, and one always stays. "See
   all" shows only where room is left after all of them: it follows an entry of no width, so
   it has a second line to leave to. No width is written here, so a longer wording (a
   translation) needs no new figure. The class is doubled where a page sets one face on
   everything inside its cards. */
.course-langs{
    container:course-langs / inline-size;
    -webkit-appearance:none;
    appearance:none;
    /* in a card that is a column of a set height the button keeps its 44px: it never gives way */
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:11px;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    height:44px;
    margin:4px 0 0;
    padding:0 9px 0 10px;
    border:1px solid var(--cl-btn-line);
    border-radius:14px;
    background:var(--cl-btn);
    box-shadow:var(--cl-btn-shadow);
    color:var(--cl-ink);
    font-family:var(--cl-body);
    line-height:1;
    text-align:start;
    text-transform:none;
    letter-spacing:0;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:transform .25s var(--cl-ease),border-color .25s var(--cl-ease),box-shadow .25s var(--cl-ease);
}
/* the padding keeps the rings of the discs, and the fan they open under a pointer, inside the clip */
.course-langs__flags{
    --cl-flag:24px;
    flex:0 1000 auto;
    display:flex;
    flex-wrap:wrap;
    align-content:flex-start;
    row-gap:10px;
    box-sizing:content-box;
    min-width:var(--cl-flag);
    height:var(--cl-flag);
    margin-block:-3px;
    margin-inline:-3px -8px;
    padding-block:3px;
    padding-inline:3px 8px;
    overflow:hidden;
}
.course-langs__flags .course-langs__flag{
    box-shadow:0 0 0 2px var(--cl-flag-ring),0 0 0 3px var(--cl-line);
    transition:transform .25s var(--cl-ease);
}
.course-langs__flags .course-langs__flag + .course-langs__flag{ margin-inline-start:-6px; }
/* a narrow card (a button with under 233px inside it: what four flags, the English words and the
   chevron take) shows three flags, so the room left over stands before the chevron and never
   between the flags and the words; a wording that needs more still finds the row above, which
   lets go of the flags it cannot hold */
@container course-langs (max-width:232.98px){
    .course-langs__flags .course-langs__flag:nth-child(n+4){ display:none; }
}
/* the reader's own flag lies on top */
.course-langs__flags .course-langs__flag:nth-child(1){ z-index:4; }
.course-langs__flags .course-langs__flag:nth-child(2){ z-index:3; }
.course-langs__flags .course-langs__flag:nth-child(3){ z-index:2; }
.course-langs__flags .course-langs__flag:nth-child(4){ z-index:1; }
/* the flags give all they can before the words lose a letter (a wording far longer than any we write) */
.course-langs.course-langs .course-langs__label{
    flex:0 1 auto;
    min-width:0;
    overflow:hidden;
    font-family:var(--cl-display);
    font-size:15px;
    font-weight:800;
    line-height:24px;
    letter-spacing:-.01em;
    word-spacing:.04em;
    white-space:nowrap;
    text-overflow:ellipsis;
    color:var(--cl-ink);
}
.course-langs.course-langs .course-langs__hint{
    flex:1 1 0%;
    display:flex;
    flex-wrap:wrap;
    align-content:flex-start;
    justify-content:flex-end;
    height:24px;
    min-width:0;
    overflow:hidden;
    font-family:var(--cl-body);
    font-size:14px;
    font-weight:700;
    line-height:24px;
    white-space:nowrap;
    color:var(--cl-blue-deep);
}
.course-langs__hint::before{ content:''; flex:0 0 auto; width:0; height:24px; }
.course-langs__go{
    flex:0 0 auto;
    display:grid;
    place-items:center;
    width:26px;
    height:26px;
    border-radius:50%;
    background:var(--cl-tint);
    color:var(--cl-blue-deep);
    transition:background-color .25s var(--cl-ease),color .25s var(--cl-ease);
}
.course-langs__go svg{ display:block; width:14px; height:14px; transition:transform .25s var(--cl-ease); }
/* on a page read from right to left the chevron points the way the page is read */
.course-langs:dir(rtl) .course-langs__go svg{ transform:scaleX(-1); }
@media (hover:hover) and (pointer:fine){
    .course-langs:hover{ transform:translateY(-1px); border-color:var(--cl-btn-line-hover); box-shadow:var(--cl-btn-shadow-hover); }
    /* the flags fan out a little: there are more behind them */
    .course-langs:hover .course-langs__flag:nth-child(2){ transform:translateX(2px); }
    .course-langs:hover .course-langs__flag:nth-child(3){ transform:translateX(4px); }
    .course-langs:hover .course-langs__flag:nth-child(4){ transform:translateX(6px); }
    .course-langs:dir(rtl):hover .course-langs__flag:nth-child(2){ transform:translateX(-2px); }
    .course-langs:dir(rtl):hover .course-langs__flag:nth-child(3){ transform:translateX(-4px); }
    .course-langs:dir(rtl):hover .course-langs__flag:nth-child(4){ transform:translateX(-6px); }
    .course-langs:hover .course-langs__go{ background-color:var(--cl-blue); color:#ffffff; }
    .course-langs:hover .course-langs__go svg{ transform:translateX(1px); }
    .course-langs:dir(rtl):hover .course-langs__go svg{ transform:scaleX(-1) translateX(1px); }
}
.course-langs:active{ transform:none; border-color:var(--cl-btn-line-hover); }
.course-langs:focus{ outline:0; }
.course-langs:focus-visible{ outline:0; border-color:var(--cl-blue); box-shadow:0 0 0 3px rgba(37,99,235,.26); }
html.dark .course-langs:focus-visible{ border-color:#60a5fa; box-shadow:0 0 0 3px rgba(96,165,250,.32); }

/* The grid of the home page lays its cards on shared rows: every card is a subgrid of seven rows
   (css/views/landing-page.css), so a name, a band or a row of buttons has one height across a row
   of cards. A grid whose cards carry the button has one row more, between the accreditations and
   the rule, and the button keeps the 12px it stands under them on the dashboard. Without the row
   the card would have a row too few and its price would lie under its buttons. */
@supports (grid-template-rows:subgrid){
    .lp .landingProductsGrid.has-course-langs .landingProductCard{ grid-row:span 8; }
    .lp .landingProductsGrid.has-course-langs .landingProductBottom{ grid-row:span 7; }
    .lp .landingProductBottom > .course-langs{ margin-top:12px; }
}

/* ---- the dialog: the screen is the dialog, the panel is laid in it ---------------------------
   A press beside the panel lands on the dialog itself and closes it (js/views/course-languages.js).
   It fades and the panel rises where the browser can animate an element that enters and leaves
   the page; elsewhere it opens and closes at once. */
.course-langs-dialog{
    position:fixed;
    inset:0;
    box-sizing:border-box;
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    margin:0;
    padding:24px 20px;
    border:0;
    background:transparent;
    color:var(--cl-ink);
    font-family:var(--cl-body);
    font-size:16px;
    line-height:1.5;
    letter-spacing:0;
    text-align:start;
    overflow:hidden;
    opacity:0;
    transition-property:opacity,overlay,display;
    transition-duration:.24s;
    transition-timing-function:var(--cl-ease);
    transition-behavior:allow-discrete;
}
.course-langs-dialog[open]{ display:flex; align-items:center; justify-content:center; opacity:1; }
.course-langs-dialog::backdrop{
    background:rgba(15,23,42,.46);
    -webkit-backdrop-filter:blur(12px) saturate(130%);
    backdrop-filter:blur(12px) saturate(130%);
    opacity:0;
    transition-property:opacity,overlay,display;
    transition-duration:.24s;
    transition-timing-function:ease;
    transition-behavior:allow-discrete;
}
html.dark .course-langs-dialog::backdrop{ background:rgba(2,8,23,.7); }
.course-langs-dialog[open]::backdrop{ opacity:1; }
@starting-style{
    .course-langs-dialog[open],
    .course-langs-dialog[open]::backdrop{ opacity:0; }
    .course-langs-dialog[open] .course-langs-dialog__panel{ transform:translateY(16px) scale(.98); }
}
/* the page behind stands still while the dialog is open; where its scroll bar took room of its own,
   that room is kept, so nothing on the page moves sideways (the script says which is the case) */
html.course-langs-open{ overflow:hidden; }
html.course-langs-open--gutter{ scrollbar-gutter:stable; }

.course-langs-dialog__panel{
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    width:min(1080px,100%);
    max-height:100%;
    border:1px solid var(--cl-line);
    border-radius:26px;
    background:var(--cl-plate);
    box-shadow:0 1px 2px rgba(15,23,42,.04),0 40px 90px -36px rgba(15,23,42,.6);
    overflow:hidden;
    transition:transform .3s var(--cl-ease);
}

/* ---- the head: the deep navy plate of the language menu ---- */
.course-langs-dialog__head{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:16px;
    padding:20px 22px;
    background:
        radial-gradient(360px 200px at 0% 0%,rgba(37,99,235,.6) 0%,rgba(37,99,235,0) 64%),
        radial-gradient(460px 220px at 100% 130%,rgba(45,212,191,.2) 0%,rgba(45,212,191,0) 64%),
        linear-gradient(135deg,#0b1f3a 0%,#12305e 100%);
    color:#ffffff;
}
/* the national mark, faint in its corner: the leaf of the Irish platforms, the crown of the British */
.course-langs-dialog__head::after{
    content:'';
    position:absolute;
    right:356px;
    bottom:-36px;
    z-index:-1;
    width:132px;
    height:132px;
    background:var(--am-leaf,none) no-repeat center / contain;
    opacity:.09;
    transform:rotate(-14deg);
    pointer-events:none;
}
body.is-uk .course-langs-dialog__head::after{ background-image:var(--am-crown,none); transform:rotate(-8deg); }
/* a head with no card of the reader's language (a public page, a language that is not told yet): the mark keeps to the corner */
@media (min-width:1140px){
    .course-langs-dialog--plain .course-langs-dialog__head::after{ right:64px; }
}
.course-langs-dialog__tile{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    border-radius:15px;
    background:rgba(255,255,255,.12);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 1px 0 rgba(255,255,255,.1);
    color:#ffffff;
}
.course-langs-dialog__tile svg{ display:block; }
.course-langs-dialog__heading{ flex:1 1 auto; min-width:0; }
.course-langs-dialog__title{
    margin:0;
    font-family:var(--cl-display);
    font-size:23px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:-.02em;
    color:#ffffff;
}
/* what is offered, in two sentences; a phone reads the shorter line (the sheet below) */
.course-langs-dialog__sub{
    max-width:660px;
    margin:5px 0 0;
    font-family:var(--cl-body);
    font-size:15.5px;
    font-weight:500;
    line-height:1.5;
    color:rgba(255,255,255,.86);
}
.course-langs-dialog .course-langs-dialog__line{ margin:0; padding:0; font:inherit; letter-spacing:inherit; color:inherit; text-wrap:pretty; }
.course-langs-dialog .course-langs-dialog__line--phone{ display:none; text-wrap:balance; }
/* the language in use, a glass card on the navy plate */
.course-langs-dialog__now{
    --cl-flag:36px;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:13px;
    box-sizing:border-box;
    min-width:250px;
    min-height:56px;
    padding:7px 12px 7px 11px;
    border:1px solid rgba(255,255,255,.55);
    border-radius:16px;
    background:rgba(255,255,255,.16);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.course-langs-dialog__now .course-langs__flag{ box-shadow:0 0 0 2px rgba(255,255,255,.9),0 6px 12px -8px rgba(2,8,23,.8); }
.course-langs-dialog__now .course-langs-dialog__text{ flex:1 1 auto; }
.course-langs-dialog__now .course-langs-dialog__native{ color:#ffffff; font-weight:700; }
.course-langs-dialog__now .course-langs-dialog__name{ color:rgba(255,255,255,.84); }
.course-langs-dialog__state{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    height:22px;
    padding:0 9px;
    border-radius:999px;
    background:#ffffff;
    color:#1d4ed8;
    font-family:var(--cl-display);
    font-size:12.5px;
    font-weight:800;
    line-height:1;
    letter-spacing:.06em;
    text-transform:uppercase;
    white-space:nowrap;
}
.course-langs-dialog__close{
    -webkit-appearance:none;
    appearance:none;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    margin:0;
    padding:0;
    border:1px solid rgba(255,255,255,.22);
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:#ffffff;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:background-color .2s var(--cl-ease),border-color .2s var(--cl-ease);
}
.course-langs-dialog__close svg{ display:block; }
.course-langs-dialog__close:hover{ background:rgba(255,255,255,.22); border-color:rgba(255,255,255,.45); }
.course-langs-dialog__close:focus{ outline:0; }
.course-langs-dialog__close:focus-visible{ outline:0; border-color:#ffffff; box-shadow:0 0 0 3px rgba(255,255,255,.4); }

/* ---- the list: the soft canvas, a card per language ---- */
.course-langs-dialog__body{
    flex:1 1 auto;
    min-height:0;
    padding:12px 18px 18px;
    background:var(--cl-canvas);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
}
.course-langs-dialog__label{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    padding:8px 4px 10px;
    font-family:var(--cl-display);
    font-size:12.5px;
    font-weight:800;
    line-height:16px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--cl-soft);
}
.course-langs-dialog__count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:26px;
    height:20px;
    padding:0 7px;
    border-radius:999px;
    background:var(--cl-tint);
    color:var(--cl-blue-deep);
    font-size:12.5px;
    font-weight:800;
    letter-spacing:0;
}
.course-langs-dialog__grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
    margin:0;
    padding:0;
    list-style:none;
}
/* a language: a white glass card. On a page of an account it is read, never pressed, so it neither lifts nor
   points; where a public page can be read in the language it carries a button and answers one (.is-pick, below). */
.course-langs-dialog__item{
    --cl-flag:34px;
    position:relative;
    display:flex;
    align-items:center;
    gap:13px;
    box-sizing:border-box;
    min-width:0;
    min-height:56px;
    margin:0;
    padding:7px 12px 7px 11px;
    border:1px solid var(--cl-card-line);
    border-radius:16px;
    background-color:var(--cl-card);
    box-shadow:var(--cl-card-shadow);
}
.course-langs-dialog__item .course-langs__flag{ box-shadow:0 0 0 2px var(--cl-flag-ring),0 0 0 3px var(--cl-line),var(--cl-flag-drop); }
.course-langs-dialog__item.is-current{
    background-color:var(--cl-picked-base);
    background-image:var(--cl-picked);
    border-color:var(--cl-picked-line);
    box-shadow:var(--cl-picked-ring);
}
.course-langs-dialog__mark{ position:relative; flex:0 0 auto; display:block; }
/* a language of two countries wears both flags, two smaller discs in the room of one */
.course-langs-dialog__mark--pair{ --cl-flag:24px; width:34px; height:34px; }
.course-langs-dialog__mark--pair .course-langs__flag{ position:absolute; }
.course-langs-dialog__mark--pair .course-langs__flag:first-child{ top:0; left:0; z-index:1; }
.course-langs-dialog__mark--pair .course-langs__flag:last-child{ right:0; bottom:0; }
/* the language in use: the blue tick of the menu on the lower right of its flag */
.course-langs-dialog__item.is-current .course-langs-dialog__mark::after{
    content:'';
    position:absolute;
    right:-6px;
    bottom:-5px;
    z-index:2;
    width:17px;
    height:17px;
    border-radius:50%;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5 9-10'/%3E%3C/svg%3E") center / 10px 10px no-repeat,linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);
    box-shadow:0 0 0 2px var(--cl-picked-base);
}
.course-langs-dialog__text{ display:flex; flex-direction:column; min-width:0; }
.course-langs-dialog__native,
.course-langs-dialog__name{ display:block; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* a name written from right to left keeps its own order and still starts where every other name starts */
.course-langs-dialog__native{
    margin-block:-3px;
    padding-block:3px;
    unicode-bidi:isolate;
    font-family:var(--cl-names);
    font-size:16px;
    font-weight:600;
    line-height:22px;
    color:var(--cl-ink);
}
.course-langs-dialog__item.is-current .course-langs-dialog__native{ font-weight:700; }
.course-langs-dialog__name{
    font-family:var(--cl-body);
    font-size:14px;
    font-weight:500;
    line-height:18px;
    color:var(--cl-soft);
}
/* said to a screen reader; the tick says it to the eye */
.course-langs-dialog__used{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }

/* ---- the foot: where the language is chosen, and the way out ---- */
.course-langs-dialog__foot{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:18px;
    box-sizing:border-box;
    padding:12px 18px;
    border-top:1px solid var(--cl-line);
    background:var(--cl-foot);
}
.course-langs-dialog__note{
    flex:1 1 auto;
    display:flex;
    align-items:flex-start;
    gap:9px;
    min-width:0;
    margin:0;
    font-family:var(--cl-body);
    font-size:14.5px;
    font-weight:500;
    line-height:22px;
    color:var(--cl-ink-2);
}
.course-langs-dialog__note svg{ flex:0 0 auto; margin-top:2px; color:var(--cl-blue-deep); }
.course-langs-dialog__done{
    -webkit-appearance:none;
    appearance:none;
    flex:0 0 auto;
    box-sizing:border-box;
    height:44px;
    margin:0;
    padding:0 26px;
    border:0;
    border-radius:12px;
    background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 55%,#1d4ed8 100%);
    color:#ffffff;
    font-family:var(--cl-display);
    font-size:15px;
    font-weight:700;
    line-height:1;
    letter-spacing:.01em;
    white-space:nowrap;
    box-shadow:0 12px 24px -14px rgba(37,99,235,.8),inset 0 1px 0 rgba(255,255,255,.14);
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:transform .25s var(--cl-ease),box-shadow .25s var(--cl-ease),filter .25s var(--cl-ease);
}
.course-langs-dialog__done:hover{ transform:translateY(-1px); filter:brightness(1.06) saturate(1.06); box-shadow:0 16px 30px -14px rgba(37,99,235,.9),inset 0 1px 0 rgba(255,255,255,.2); }
.course-langs-dialog__done:active{ transform:none; }
.course-langs-dialog__done:focus{ outline:0; }
.course-langs-dialog__done:focus-visible{ outline:0; box-shadow:0 0 0 4px rgba(37,99,235,.26),0 12px 24px -14px rgba(37,99,235,.8); }

/* ---- four across (a laptop, a tablet held wide): the head keeps the title and the way out ---- */
@media (max-width:1139.98px){
    .course-langs-dialog__panel{ width:min(780px,100%); }
    .course-langs-dialog__grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
    .course-langs-dialog__now{ display:none; }
    .course-langs-dialog__head::after{ right:64px; }
}
/* ---- three across (a tablet) ---- */
@media (max-width:859.98px){
    .course-langs-dialog__panel{ width:min(620px,100%); }
    .course-langs-dialog__grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
/* ---- a phone: a sheet that rises from the foot of the screen, two cards a row ---- */
@media (max-width:560px){
    .course-langs-dialog{ padding:0; }
    .course-langs-dialog[open]{ align-items:flex-end; }
    .course-langs-dialog__panel{
        width:100%;
        max-height:92%;
        border-bottom:0;
        border-radius:22px 22px 0 0;
    }
    @starting-style{
        .course-langs-dialog[open] .course-langs-dialog__panel{ transform:translateY(48px); }
    }
    /* the title beside the way out, the line under both: it has the whole width of the sheet */
    .course-langs-dialog__head{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 12px; padding:16px 14px 16px 16px; }
    .course-langs-dialog__head::after{ right:36px; bottom:-40px; }
    .course-langs-dialog__tile{ display:none; }
    .course-langs-dialog__heading{ display:contents; }
    /* one line on the phones of today; a longer wording (a translation) takes two, evenly */
    .course-langs-dialog__title{ grid-column:1; grid-row:1; font-size:clamp(18px,5.6vw,21px); line-height:1.2; text-wrap:balance; }
    .course-langs-dialog__close{ grid-column:2; grid-row:1; }
    .course-langs-dialog__sub{ grid-column:1 / -1; grid-row:2; max-width:none; margin:0; font-size:15px; }
    .course-langs-dialog .course-langs-dialog__line--wide{ display:none; }
    .course-langs-dialog .course-langs-dialog__line--phone{ display:block; }
    .course-langs-dialog__body{ padding:8px 12px 14px; }
    .course-langs-dialog__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
    .course-langs-dialog__item{ --cl-flag:32px; gap:11px; padding-left:10px; padding-right:9px; }
    .course-langs-dialog__mark--pair{ --cl-flag:23px; width:32px; height:32px; }
    .course-langs-dialog__foot{ flex-direction:column; align-items:stretch; gap:12px; padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px)); }
    .course-langs-dialog__done{ width:100%; height:48px; }
}
@media (max-width:339.98px){
    .course-langs-dialog__grid{ grid-template-columns:minmax(0,1fr); }
}
/* a low screen (a phone on its side): the head says the title alone, the list has the room */
@media (max-height:520px){
    .course-langs-dialog{ padding-top:8px; padding-bottom:8px; }
    .course-langs-dialog__head{ align-items:center; padding-top:10px; padding-bottom:10px; }
    .course-langs-dialog__sub,
    .course-langs-dialog__now{ display:none; }
    .course-langs-dialog__title{ line-height:1.2; }
    .course-langs-dialog__foot{ flex-direction:row; align-items:center; padding-top:8px; padding-bottom:8px; }
    .course-langs-dialog__note{ display:none; }
    .course-langs-dialog__done{ width:auto; height:40px; margin-inline-start:auto; }
}

/* ---- the button of the public top bar (#frontNav) -----------------------------------------------
   The flag of the language the page is written in, in the white ring an avatar wears, with a
   chevron on its lower right: the language button of the account's top bar as a phone shows it,
   here on the deep plate. On a computer it closes the bar, after Register, and its chevron ends
   on the edge of the page measure; on a phone it stands before Login, where the Google badge
   stood, 44px each way so a thumb finds it. It is one button: the view prints it after Register
   and the bar of a phone lays it before Login (the owner's choice, 25 November 2026). */
.course-langs-bar{
    --cl-flag:30px;
    --cl-flag-edge:rgba(11,18,32,.16);
    --cl-bar-ease:var(--sc-ease,cubic-bezier(.22,1,.36,1));
    -webkit-appearance:none;
    appearance:none;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    box-sizing:border-box;
    width:44px;
    height:44px;
    margin:0;
    padding:0 0 0 3px;
    border:0;
    border-radius:999px;
    background:transparent;
    color:#0d1b2a;
    line-height:1;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}
/* the flag and its chevron move as one; the button itself stands still, so a pointer never loses it */
.course-langs-bar__mark{
    position:relative;
    flex:0 0 auto;
    display:block;
    transition:transform .25s var(--cl-bar-ease);
}
.course-langs-bar .course-langs__flag{
    box-shadow:0 0 0 2px #ffffff,0 8px 16px -8px rgba(0,0,0,.8);
    transition:box-shadow .25s var(--cl-bar-ease);
}
/* the chevron: a white disc cut out of the plate, on the lower right of the ring */
.course-langs-bar__chev{
    position:absolute;
    right:-6px;
    bottom:-4px;
    box-sizing:border-box;
    width:17px;
    height:17px;
    padding:3px;
    border-radius:50%;
    background:#ffffff;
    box-shadow:0 0 0 2px var(--sc-navy,#0d1b2a);
    color:#0d1b2a;
    transition:background-color .25s var(--cl-bar-ease);
}
@media (hover:hover) and (pointer:fine){
    .course-langs-bar:hover .course-langs-bar__mark{ transform:translateY(-2px); }
    .course-langs-bar:hover .course-langs__flag{ box-shadow:0 0 0 2px #ffffff,0 0 0 6px rgba(255,255,255,.16),0 14px 22px -10px rgba(0,0,0,.85); }
    .course-langs-bar:hover .course-langs-bar__chev{ background:var(--sc-gold,#ffd000); }
    .course-langs-bar:active .course-langs-bar__mark{ transform:none; }
}
.course-langs-bar:focus{ outline:0; }
.course-langs-bar:focus-visible .course-langs__flag{ box-shadow:0 0 0 2px #ffffff,0 0 0 5px rgba(255,255,255,.5); }
.course-langs-bar:focus-visible .course-langs-bar__chev{ background:var(--sc-gold,#ffd000); }

/* A computer: after Register, with air between the two (20px from the pill to the ring). The
   button is as wide as what it draws (the ring, the flag, the chevron that leans out of it), so
   the chevron ends where the page measure ends. The bar is full (css/views/site-chrome.css
   measures its menu against the room), so the button is given its room: the entries of the menu
   stand closer (3px less on each side of an entry, half the gap between two) and their type
   stops growing a little sooner while the measure of the page stands still (at 14px instead of
   15.7px under 1600px, at 15.9px instead of 16.2px under 1800px). Nothing of the bar wraps, is
   cut or leaves the measure, at any width. */
@media only screen and (min-width:1201px){
    .course-langs-bar{
        --cl-flag:calc(32px * var(--sc-nav-scale,1));
        width:calc(var(--cl-flag) + 10px);
        height:calc(44px * var(--sc-nav-scale,1));
        margin-inline-start:8px;
        padding-left:2px;
    }
    #frontNav.has-course-langs .navItem{ padding-left:13px; padding-right:13px; }
    #frontNav.has-course-langs #navMenu{ column-gap:clamp(2px,0.3vw,6px); }
}
@media only screen and (min-width:1201px) and (max-width:1599.98px){
    #frontNav.has-course-langs .navItem{ font-size:clamp(13.5px,0.55vw + 6.9px,14px); }
}
@media only screen and (min-width:1600px) and (max-width:1799.98px){
    #frontNav.has-course-langs .navItem{ font-size:clamp(13.5px,0.55vw + 6.9px,15.9px); }
}
/* A phone and a tablet: before Login, the flag at the near end of its 44px so the chevron keeps
   its distance from the pill (13px, and 17px where the bar has the room). */
@media only screen and (max-width:1200px){
    #frontNav.has-course-langs .course-langs-bar{ order:-1; }
    #frontNav.has-course-langs #googleIcon{ order:-2; }
}
@media only screen and (min-width:376px) and (max-width:1200px){
    #frontNav.has-course-langs .course-langs-bar{ margin-inline-end:4px; }
}
/* a tablet keeps the Google badge: the ring keeps its distance from it as well */
@media only screen and (min-width:600px) and (max-width:1200px){
    #frontNav.has-course-langs .course-langs-bar{ margin-inline-start:6px; }
}
/* A phone: the button takes the place of the Google badge (a tablet has the room for both). */
@media only screen and (max-width:599.98px){
    #frontNav.has-course-langs #googleIcon{ display:none !important; }
}
/* The narrowest phones: Login says its word without its arrow, and the bar holds all three. */
@media only screen and (max-width:339.98px){
    #frontNav.has-course-langs .frontNav-login-btn svg{ display:none !important; }
}

/* ==== A PUBLIC PAGE IN ANOTHER LANGUAGE (docs/TRANSLATION.md) ====
   A card of the dialog that answers a press: a button covers the whole card (the card keeps its own layout, the
   button is named by the two names of the language), the card lifts under a pointer and wears a ring under the
   keyboard. A press answers at once: the card that was pressed keeps the look of the language in use and the
   others step back; a page that has to be translated first is watched on the stage (below). */
.course-langs-dialog__item.is-pick{
    cursor:pointer;
    transition:transform .25s var(--cl-ease),box-shadow .25s var(--cl-ease),border-color .25s var(--cl-ease),opacity .25s var(--cl-ease);
}
.course-langs-dialog__pick{
    -webkit-appearance:none;
    appearance:none;
    position:absolute;
    inset:-1px;
    z-index:3;
    margin:0;
    padding:0;
    border:0;
    border-radius:inherit;
    background:transparent;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}
.course-langs-dialog__pick:focus{ outline:0; }
.course-langs-dialog__pick:focus-visible{ box-shadow:0 0 0 3px rgba(37,99,235,.4); }
@media (hover:hover){
    .course-langs-dialog__item.is-pick:hover{
        border-color:var(--cl-btn-line-hover);
        box-shadow:var(--cl-btn-shadow-hover);
        transform:translateY(-1px);
    }
    .course-langs-dialog__item.is-pick.is-current:hover{ border-color:var(--cl-picked-line); }
}
.course-langs-dialog__item.is-pick:active{ transform:none; }
.course-langs-dialog__item.is-asked{
    background-color:var(--cl-picked-base);
    background-image:var(--cl-picked);
    border-color:var(--cl-picked-line);
    box-shadow:var(--cl-picked-ring);
}
.course-langs-dialog.is-working .course-langs-dialog__item:not(.is-asked){ opacity:.42; transform:none; }
.course-langs-dialog.is-working .course-langs-dialog__pick{ pointer-events:none; cursor:default; }

/* The foot while a page is translated: the note steps aside, the way out stands alone on its side. */
.course-langs-dialog__note[hidden]{ display:none; }
.course-langs-dialog.is-working .course-langs-dialog__foot{ justify-content:flex-end; }

/* ---- THE STAGE: what a visitor watches while a page is translated ----
   A dial with the share that is done, the flag of the language on its rim; beside it the name of the work, a
   clock that counts down, the three steps and a line that changes every few seconds and says why to stay. It
   stands in the place of the list (the script gives it the height the list had, so the dialog does not move),
   light on the canvas of the dialog. The same block, small, is the notice of a page translated on the way.
   Only the dial and the clock move, and a ring breathes round the step at work; all of it rests under
   prefers-reduced-motion. */
.course-langs-dialog.is-staged .course-langs-dialog__label,
.course-langs-dialog.is-staged .course-langs-dialog__grid{ display:none; }
.course-langs-stage{
    --st-ink:var(--cl-ink,#0b1220);
    --st-ink2:var(--cl-ink-2,#1f2d45);
    --st-soft:var(--cl-soft,#3f4d66);
    --st-line:var(--cl-line,rgba(30,58,138,.12));
    --st-display:var(--cl-display,'Plus Jakarta Sans',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);
    --st-body:var(--cl-body,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif);
    --st-dial:176px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:clamp(24px,4.4vw,52px);
    box-sizing:border-box;
    max-width:780px;
    margin:0 auto;
    padding:26px clamp(10px,3vw,30px);
}
.course-langs-stage[hidden]{ display:none; }

/* the dial */
.course-langs-stage__dial{ position:relative; flex:0 0 auto; width:var(--st-dial); height:var(--st-dial); }
.course-langs-stage__dial::before{
    content:'';
    position:absolute;
    inset:calc(var(--st-dial) * -.09);
    border-radius:50%;
    background:radial-gradient(closest-side,rgba(56,189,248,.26) 0%,rgba(37,99,235,.14) 52%,rgba(124,58,237,0) 100%);
}
.course-langs-stage__ring{ position:relative; display:block; width:100%; height:100%; transform:rotate(-90deg); }
.course-langs-stage__track{ fill:rgba(255,255,255,.86); stroke:rgba(37,99,235,.13); stroke-width:9; }
.course-langs-stage__bar{ fill:none; stroke:url(#courseLanguagesRing); stroke-width:9; stroke-linecap:round; transition:stroke-dasharray .5s cubic-bezier(.22,1,.36,1); }
.course-langs-stage__pct{
    position:absolute;
    inset:0;
    display:grid;
    grid-auto-flow:column;
    place-content:center;
    align-items:baseline;
    column-gap:2px;
    font-family:var(--st-display);
    color:var(--st-ink);
    font-variant-numeric:tabular-nums;
}
.course-langs-stage__pct b{ font-size:calc(var(--st-dial) * .29); font-weight:800; line-height:1; letter-spacing:-.035em; }
.course-langs-stage__pct i{ font-style:normal; font-size:max(14px,calc(var(--st-dial) * .13)); font-weight:800; line-height:1; color:var(--st-soft); }
.course-langs-stage .course-langs-stage__flag{
    --cl-flag:calc(var(--st-dial) * .27);
    position:absolute;
    right:calc(var(--st-dial) * .01);
    bottom:calc(var(--st-dial) * .01);
    box-shadow:0 0 0 3px #ffffff,0 0 0 4px rgba(30,58,138,.12),0 10px 20px -10px rgba(11,31,58,.6);
}

/* the words */
.course-langs-stage__copy{ min-width:0; }
.course-langs-stage__title{
    margin:0 0 14px;
    font-family:var(--st-display);
    font-size:clamp(20px,2.3vw,25px);
    font-weight:800;
    line-height:1.25;
    letter-spacing:-.012em;
    color:var(--st-ink);
    text-wrap:balance;
}
.course-langs-stage__clock{
    display:inline-flex;
    align-items:center;
    gap:12px;
    margin:0 0 18px;
    padding:7px 7px 7px 17px;
    border:1px solid var(--st-line);
    border-radius:999px;
    background:rgba(255,255,255,.82);
    box-shadow:0 1px 2px rgba(11,31,58,.05),inset 0 1px 0 rgba(255,255,255,.9);
    font-family:var(--st-body);
    font-size:15.5px;
    font-weight:700;
    line-height:20px;
    color:var(--st-ink2);
}
.course-langs-stage__clock b{
    box-sizing:border-box;
    min-width:74px;
    padding:8px 14px;
    border-radius:999px;
    background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 58%,#1d4ed8 100%);
    box-shadow:0 10px 20px -12px rgba(37,99,235,.9),inset 0 1px 0 rgba(255,255,255,.16);
    color:#ffffff;
    font-family:var(--st-display);
    font-size:20px;
    font-weight:800;
    line-height:1;
    letter-spacing:.03em;
    text-align:center;
    font-variant-numeric:tabular-nums;
}
/* before the page is measured the clock says nothing it does not know */
.course-langs-stage__clock b.is-measuring::after{ content:'\00B7\00A0\00B7\00A0\00B7'; }
.course-langs-stage__steps{ display:flex; flex-direction:column; gap:10px; margin:0 0 18px; padding:0; list-style:none; }
.course-langs-stage__steps li{
    position:relative;
    display:flex;
    flex-wrap:wrap;
    align-items:baseline;
    gap:2px 10px;
    margin:0;
    padding:0 0 0 34px;
    font-family:var(--st-body);
    font-size:16px;
    font-weight:600;
    line-height:24px;
    color:var(--st-soft);
}
.course-langs-stage__steps li::before{
    content:'';
    position:absolute;
    left:0;
    top:1px;
    box-sizing:border-box;
    width:22px;
    height:22px;
    border:2px solid rgba(37,99,235,.26);
    border-radius:50%;
    background:#ffffff;
}
.course-langs-stage__steps li.is-now{ font-weight:700; color:var(--st-ink); }
.course-langs-stage__steps li.is-now::before{
    border-color:#2563eb;
    background:radial-gradient(circle,#2563eb 0 36%,#ffffff 40%);
    animation:course-langs-stage-now 1.8s ease-in-out infinite;
}
.course-langs-stage__steps li.is-done{ color:var(--st-ink2); }
.course-langs-stage__steps li.is-done::before{
    border-color:transparent;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l5 5 9-10'/%3E%3C/svg%3E") center / 12px 12px no-repeat,linear-gradient(135deg,#10b981 0%,#059669 100%);
    animation:none;
}
.course-langs-stage__steps b{ font-family:var(--st-display); font-size:15px; font-weight:800; line-height:20px; color:#1d4ed8; font-variant-numeric:tabular-nums; }
.course-langs-stage__steps b:empty{ display:none; }
.course-langs-stage__line{
    min-height:48px;
    margin:0;
    font-family:var(--st-body);
    font-size:16px;
    font-weight:500;
    line-height:24px;
    color:var(--st-ink2);
    text-wrap:pretty;
    transition:opacity .24s ease;
}
.course-langs-stage__line.is-out{ opacity:0; }
@keyframes course-langs-stage-now{
    0%,100%{ box-shadow:0 0 0 0 rgba(37,99,235,.34); }
    50%{ box-shadow:0 0 0 7px rgba(37,99,235,0); }
}
/* a phone: the dial above its words, the steps keep their own left edge */
@media (max-width:560px){
    .course-langs-stage{ --st-dial:124px; grid-template-columns:minmax(0,1fr); justify-items:center; align-content:center; gap:16px; padding:16px 6px 8px; text-align:center; }
    .course-langs-stage__copy{ display:flex; flex-direction:column; align-items:center; width:100%; }
    .course-langs-stage__title{ margin-bottom:10px; font-size:clamp(19px,5.4vw,22px); }
    .course-langs-stage__clock{ margin-bottom:14px; }
    .course-langs-stage__steps{ align-self:center; gap:8px; margin-bottom:14px; text-align:left; }
    .course-langs-stage__line{ min-height:72px; font-size:15.5px; }
}
/* a short phone: the three steps make room, so the clock and the line that changes are seen without a scroll;
   on the shortest the head of the dialog keeps its title alone while the stage shows */
@media (max-width:560px) and (max-height:700px){
    .course-langs-stage{ --st-dial:108px; gap:12px; padding-top:10px; }
    .course-langs-stage__steps{ display:none; }
}
@media (max-width:560px) and (max-height:600px){
    .course-langs-stage{ --st-dial:96px; }
    .course-langs-dialog.is-staged .course-langs-dialog__sub{ display:none; }
}
@media (max-height:520px) and (orientation:landscape){
    .course-langs-stage{ --st-dial:112px; padding-top:12px; padding-bottom:8px; }
    .course-langs-stage__steps{ display:none; }
    .course-langs-stage__line{ min-height:0; }
}

/* ---- A CARD UNDER THE TOP BAR: a page that is translated on the way, the note of a legal page ----
   White glass under the bar (the script measures the bar: --cl-notice-top); the foot of the screen belongs to
   the cookie notice and to the chat. The notice of a translation is the stage, small: the dial, the name of the
   work, the clock, the line that changes, and the way to stay in English. */
.course-langs-notice{
    position:fixed;
    left:50%;
    top:var(--cl-notice-top,76px);
    z-index:2147483000;
    display:flex;
    align-items:center;
    gap:14px;
    box-sizing:border-box;
    width:min(600px,calc(100vw - 24px));
    margin:0;
    padding:14px 16px;
    border:1px solid rgba(30,58,138,.13);
    border-radius:22px;
    background:linear-gradient(180deg,rgba(255,255,255,.97) 0%,rgba(243,247,255,.95) 100%);
    -webkit-backdrop-filter:saturate(1.5) blur(14px);
    backdrop-filter:saturate(1.5) blur(14px);
    box-shadow:0 1px 2px rgba(15,23,42,.05),0 30px 60px -30px rgba(15,23,42,.55);
    color:#0b1220;
    font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    transform:translateX(-50%);
    animation:course-langs-notice-in .4s cubic-bezier(.22,1,.36,1) both;
}
.course-langs-notice .course-langs-stage{ --st-dial:76px; flex:1 1 auto; gap:16px; max-width:none; min-width:0; margin:0; padding:0; text-align:left; justify-items:stretch; grid-template-columns:auto minmax(0,1fr); }
.course-langs-notice .course-langs-stage__dial::before{ display:none; }
.course-langs-notice .course-langs-stage__track,
.course-langs-notice .course-langs-stage__bar{ stroke-width:11; }
.course-langs-notice .course-langs-stage__copy{ display:block; }
.course-langs-notice .course-langs-stage__title{ margin:0 0 6px; font-size:16.5px; line-height:22px; }
.course-langs-notice .course-langs-stage__clock{ gap:9px; margin:0 0 6px; padding:0; border:0; background:none; box-shadow:none; font-size:14.5px; }
.course-langs-notice .course-langs-stage__clock b{ min-width:56px; padding:5px 10px; font-size:15px; box-shadow:none; }
.course-langs-notice .course-langs-stage__steps{ display:none; }
.course-langs-notice .course-langs-stage__line{ min-height:40px; font-size:14.5px; line-height:20px; }
.course-langs-notice__stay{
    -webkit-appearance:none;
    appearance:none;
    flex:0 0 auto;
    box-sizing:border-box;
    height:44px;
    margin:0;
    padding:0 16px;
    border:1.5px solid rgba(37,99,235,.3);
    border-radius:13px;
    background:#ffffff;
    color:#1d4ed8;
    font-family:'Plus Jakarta Sans',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    font-size:14.5px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:background-color .2s ease,border-color .2s ease;
}
.course-langs-notice__stay:hover{ background:#eff4ff; border-color:rgba(37,99,235,.55); }
.course-langs-notice__stay:focus{ outline:0; }
.course-langs-notice__stay:focus-visible{ box-shadow:0 0 0 4px rgba(37,99,235,.26); }
/* the note of a legal page: one sentence, the way to the English page, a way to put the note aside */
.course-langs-notice--legal{ width:min(680px,calc(100vw - 24px)); padding:12px 12px 12px 18px; border-color:rgba(180,83,9,.28); background:linear-gradient(180deg,rgba(255,253,245,.98) 0%,rgba(255,248,230,.96) 100%); }
.course-langs-notice__text{ flex:1 1 auto; min-width:0; margin:0; font-size:15px; font-weight:600; line-height:22px; color:#3b2a08; }
.course-langs-notice__link{ color:#1d4ed8; font-weight:800; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.course-langs-notice__link:hover{ color:#1e3a8a; }
.course-langs-notice__close{
    -webkit-appearance:none;
    appearance:none;
    position:relative;
    flex:0 0 auto;
    width:40px;
    height:40px;
    margin:0;
    padding:0;
    border:1px solid rgba(180,83,9,.24);
    border-radius:50%;
    background:#ffffff;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}
.course-langs-notice__close::before,
.course-langs-notice__close::after{ content:''; position:absolute; left:50%; top:50%; width:15px; height:2px; border-radius:2px; background:#3b2a08; }
.course-langs-notice__close::before{ transform:translate(-50%,-50%) rotate(45deg); }
.course-langs-notice__close::after{ transform:translate(-50%,-50%) rotate(-45deg); }
.course-langs-notice__close:focus{ outline:0; }
.course-langs-notice__close:focus-visible{ box-shadow:0 0 0 4px rgba(180,83,9,.24); }
@keyframes course-langs-notice-in{
    from{ opacity:0; transform:translate(-50%,-12px); }
    to{ opacity:1; transform:translate(-50%,0); }
}
@media only screen and (max-width:519.98px){
    .course-langs-notice--work{ flex-wrap:wrap; gap:12px; padding:13px 13px 13px 14px; }
    .course-langs-notice--work .course-langs-notice__stay{ flex:1 1 100%; }
    .course-langs-notice .course-langs-stage{ --st-dial:66px; gap:13px; }
}

/* ---- A LANGUAGE WRITTEN FROM RIGHT TO LEFT (Arabic, Urdu, Pashto) on a public page ----
   The page keeps its layout, as an account does; every text takes the direction of its own script, so a
   sentence begins on its right and its full stop stands where it belongs (SiteWords::head()). */
html[data-site-dir="rtl"] :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,blockquote,figcaption,label,legend,summary,caption,th,td,a,button){ unicode-bidi:plaintext; }

/* ---- A PAGE READ IN ANOTHER LANGUAGE: A LABEL OF ONE LINE ----
   A few labels were sized for their English words on one line: the two buttons of a course card ("View Course",
   "Add to Cart"), the band of a card, the note under the button of a bundle. A longer label ("Dodaj do koszyka")
   takes two lines in the same place, never cut by its box and never ended with dots. The English page is not
   touched: every rule here asks for a page of a language (html[data-site-lang]). */
html[data-site-lang] .landingProductButtons :is(a,button){ padding-inline:8px; white-space:normal; line-height:1.12; text-align:center; text-wrap:balance; }
html[data-site-lang] .osc-vband__txt{ white-space:normal; }
html[data-site-lang] .bpkCtaNote{ flex-wrap:wrap; justify-content:center; white-space:normal; text-align:center; text-wrap:balance; }

@media (prefers-reduced-motion:reduce){
    .course-langs-dialog__item.is-pick,
    .course-langs-stage__bar,
    .course-langs-stage__line,
    .course-langs-notice__stay{ transition:none; }
    .course-langs-dialog__item.is-pick:hover{ transform:none; }
    .course-langs-stage__steps li.is-now::before,
    .course-langs-notice{ animation:none; }
    .course-langs,
    .course-langs__flag,
    .course-langs__go,
    .course-langs__go svg,
    .course-langs-bar__mark,
    .course-langs-bar__chev,
    .course-langs-dialog,
    .course-langs-dialog::backdrop,
    .course-langs-dialog__panel,
    .course-langs-dialog__close,
    .course-langs-dialog__done{ transition:none; }
    .course-langs:hover,
    .course-langs:hover .course-langs__flag,
    .course-langs-bar:hover .course-langs-bar__mark,
    .course-langs-dialog__done:hover{ transform:none; }
}
