/* sowetan_lang_picker_v4 - "Which language?" card chooser shown before every Live Desk session.
 * Three full-card radios (EN red, ZU blue, XH teal); the last-used card carries its own colour highlight.
 * Display face: Barlow Condensed (already loaded on index + talk). Red is the brand accent. */
.lp-wrap, .lp-wrap *, .lp-wrap *::before, .lp-wrap *::after { box-sizing: border-box; }
.lp-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 12px; }
.lp-wrap[hidden] { display: none; }
.lp-scrim { position: absolute; inset: 0; opacity: 0; transition: opacity .2s;
  background: radial-gradient(70% 45% at 50% 0%, rgba(238,32,39,.22), transparent 70%), rgba(4,2,2,.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lp { --lp-red: #FF2D2D; --lp-cond: "Barlow Condensed", "Oswald", "Arial Narrow", Poppins, sans-serif;
  position: relative; width: min(1240px, 100%); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 44px; border-radius: 28px; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(60% 40% at 18% 0%, rgba(255,45,45,.07), transparent 70%), #141416;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 100px -30px #000;
  font-family: Poppins, Inter, system-ui, sans-serif; color: #fff; transform: translateY(14px) scale(.98); opacity: 0;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; scrollbar-width: thin; scrollbar-color: #3a3a3e transparent; }
.lp-wrap.in .lp-scrim { opacity: 1; } .lp-wrap.in .lp { transform: none; opacity: 1; }

/* close */
.lp-x { position: absolute; top: 28px; right: 28px; z-index: 2; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(20,20,22,.6); color: #fff; cursor: pointer; transition: border-color .2s, background .2s; }
.lp-x:hover, .lp-x:focus-visible { border-color: #fff; background: rgba(255,255,255,.06); outline: none; }
.lp-x svg { width: 22px; height: 22px; }

/* header */
.lp-h { display: flex; align-items: center; gap: 28px; padding-right: 76px; }
.lp-av { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px var(--lp-red), 0 0 0 7px rgba(255,45,45,.12), 0 0 34px rgba(255,45,45,.45); }
.lp-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.lp-ht { min-width: 0; }
.lp-k { display: inline-flex; align-items: center; gap: 9px; font: 700 15px/1 var(--lp-cond); letter-spacing: .24em; text-transform: uppercase; color: #b9b9bd; }
.lp-k i { width: 9px; height: 9px; border-radius: 50%; background: var(--lp-red); box-shadow: 0 0 10px rgba(255,45,45,.8); }
.lp-h h2 { margin: 8px 0 8px; font: 800 62px/.95 var(--lp-cond); letter-spacing: -.005em; text-transform: none; }
.lp-h p { margin: 0; max-width: 34em; font: 400 21px/1.4 Poppins, sans-serif; color: #a9a9ae; text-wrap: pretty; }
.lp-sub2 { display: block; }
.lp-help { margin: 30px 0 0; font: 400 16px/1.4 Poppins, sans-serif; color: #9a9aa0; text-wrap: pretty; }
.lp-help b { font-weight: 700; color: #fff; white-space: nowrap; }

/* cards */
.lp-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.lp-o { --c: #FF2D2D; --c-solid: #EE2027; --c-rgb: 255,45,45; --c-cta: rgba(255,255,255,.04); --c-cta-b: rgba(255,255,255,.16);
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; min-width: 0;
  padding: 26px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); color: #fff; text-align: left; cursor: pointer;
  font: inherit; -webkit-appearance: none; appearance: none;
  background: var(--lp-tex, none), linear-gradient(180deg, #19191c, #121214);
  box-shadow: inset 0 0 0 1px transparent, inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s, background-color .2s; }
.lp-o[data-lp="zu"] { --c: #3D86E0; --c-solid: #1F6FD1; --c-rgb: 47,111,181; --c-cta: rgba(31,58,110,.42); --c-cta-b: rgba(61,134,224,.55);
  /* faint 3D pyramid relief */
  --lp-tex: linear-gradient(60deg, rgba(255,255,255,.022) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,.022) 75.5%) 0 0 / 56px 97px,
            linear-gradient(-60deg, rgba(0,0,0,.16) 25%, transparent 25.5%, transparent 75%, rgba(0,0,0,.16) 75.5%) 0 0 / 56px 97px,
            linear-gradient(60deg, rgba(0,0,0,.12) 25%, transparent 25.5%, transparent 75%, rgba(0,0,0,.12) 75.5%) 28px 48.5px / 56px 97px,
            linear-gradient(-60deg, rgba(255,255,255,.018) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,.018) 75.5%) 28px 48.5px / 56px 97px; }
.lp-o[data-lp="xh"] { --c: #23A68D; --c-solid: #1E8F7A; --c-rgb: 30,143,122; --c-cta: rgba(18,70,60,.42); --c-cta-b: rgba(35,166,141,.55);
  /* diagonal cross-hatch */
  --lp-tex: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 1px, transparent 1px 14px),
            repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 1px, transparent 1px 14px); }
.lp-o[data-lp="en"] { --c-cta: rgba(238,32,39,.12); --c-cta-b: rgba(255,45,45,.5); }
/* soft colour bleed, top-right */
.lp-o::before { content: ""; position: absolute; z-index: -1; top: -150px; right: -150px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--c-rgb),.34), rgba(var(--c-rgb),.10) 45%, transparent 70%); opacity: 0; transition: opacity .3s; }

.lp-top { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.lp-code { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; flex: none;
  border: 2px solid var(--c); background: rgba(var(--c-rgb),.10); box-shadow: 0 0 18px rgba(var(--c-rgb),.18);
  font: 800 21px/1 var(--lp-cond); letter-spacing: .04em; color: #fff; }
.lp-radio { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.32); display: grid; place-items: center;
  transition: border-color .2s; }
.lp-radio::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform .2s; }
.lp-last { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: none; align-items: center; gap: 7px; height: 30px;
  padding: 0 14px; border-radius: 1000px; background: var(--c-solid); font: 700 13px/1 var(--lp-cond); letter-spacing: .14em;
  text-transform: uppercase; color: #fff; white-space: nowrap; box-shadow: 0 6px 20px -6px rgba(var(--c-rgb),.8); }
.lp-last i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }

.lp-hello { margin-top: 26px; font: italic 400 22px/1.2 Georgia, "Times New Roman", serif; color: #a9a9ae; }
.lp-n { margin-top: 4px; font: 800 64px/.95 var(--lp-cond); letter-spacing: -.005em; color: #fff; overflow-wrap: anywhere; }
.lp-d { margin-top: 18px; font: 400 16px/1.5 Poppins, sans-serif; color: #a9a9ae; text-wrap: pretty; }
.lp-d b { font-weight: 700; color: #fff; }
.lp-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 26px; padding: 8px 11px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); font: 500 12.5px/1.3 Poppins, sans-serif; color: #c9c9cd;
  max-width: 100%; text-wrap: balance; }
.lp-chip > span { min-width: 0; }
.lp-chip svg { flex: none; width: 16px; height: 16px; color: #b9b9bd; }
.lp-chip.is-warn svg { color: #E9B44C; }
.lp-cta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--c-cta-b); background: var(--c-cta); font: 800 25px/1 var(--lp-cond); letter-spacing: .01em;
  color: #fff; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.lp-cta svg { width: 24px; height: 24px; flex: none; transition: transform .25s; }
.lp-tap { margin-top: 16px; text-align: center; font: 700 13px/1 var(--lp-cond); letter-spacing: .26em; text-transform: uppercase; color: #75757b;
  transition: color .2s; }

/* highlighted: last used (default) / hover / keyboard focus - each language in its own colour */
.lp-o.is-last, .lp-o:hover, .lp-o:focus-visible { border-color: var(--c); outline: none;
  box-shadow: inset 0 0 0 1px var(--c), 0 18px 40px -22px rgba(var(--c-rgb),.75);
  background: linear-gradient(180deg, rgba(var(--c-rgb),.10), rgba(var(--c-rgb),.03)), var(--lp-tex, none), linear-gradient(180deg, #19191c, #121214); }
.lp-o.is-last::before, .lp-o:hover::before, .lp-o:focus-visible::before { opacity: 1; }
.lp-o.is-last .lp-cta, .lp-o:hover .lp-cta, .lp-o:focus-visible .lp-cta { background: var(--c-solid); border-color: var(--c-solid);
  box-shadow: 0 10px 26px -12px rgba(var(--c-rgb),.9); }
.lp-o.is-last .lp-tap, .lp-o:hover .lp-tap, .lp-o:focus-visible .lp-tap { color: var(--c); }
.lp-o.is-last .lp-last { display: inline-flex; }
.lp-o.is-last .lp-radio { border-color: var(--c); }
.lp-o.is-last .lp-radio::after { transform: scale(1); }
.lp-o:hover { transform: translateY(-4px); }
.lp-o:hover .lp-cta svg, .lp-o:focus-visible .lp-cta svg { transform: translateX(4px); }
.lp-o:active { transform: translateY(-1px); }
.lp-o:focus-visible:not(.is-last) { box-shadow: inset 0 0 0 1px var(--c), 0 0 0 3px rgba(var(--c-rgb),.35), 0 18px 40px -22px rgba(var(--c-rgb),.75); }
/* the last-used card steps back while another card is hovered or keyboard-focused: border, bleed, pill and radio stay */
.lp-opts:has(.lp-o:hover:not(.is-last)) .lp-o.is-last:not(:hover),
.lp-opts:has(.lp-o:focus-visible:not(.is-last)) .lp-o.is-last:not(:hover) { box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  background: var(--lp-tex, none), linear-gradient(180deg, #19191c, #121214); }
.lp-opts:has(.lp-o:hover:not(.is-last)) .lp-o.is-last:not(:hover)::before,
.lp-opts:has(.lp-o:focus-visible:not(.is-last)) .lp-o.is-last:not(:hover)::before { opacity: .45; }
.lp-opts:has(.lp-o:hover:not(.is-last)) .lp-o.is-last:not(:hover) .lp-cta,
.lp-opts:has(.lp-o:focus-visible:not(.is-last)) .lp-o.is-last:not(:hover) .lp-cta { background: var(--c-cta); border-color: var(--c-cta-b); box-shadow: none; }
.lp-opts:has(.lp-o:hover:not(.is-last)) .lp-o.is-last:not(:hover) .lp-tap,
.lp-opts:has(.lp-o:focus-visible:not(.is-last)) .lp-o.is-last:not(:hover) .lp-tap { color: #75757b; }
.lp-opts:has(.lp-o:hover:not(.is-last)) .lp-o.is-last:not(:hover) .lp-cta svg,
.lp-opts:has(.lp-o:focus-visible:not(.is-last)) .lp-o.is-last:not(:hover) .lp-cta svg { transform: none; }

/* footer */
.lp-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 32px 0 0; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08); font: 400 16px/1.4 Poppins, sans-serif; color: #9a9aa0; text-align: center; }
.lp-foot svg { flex: none; width: 19px; height: 19px; }
html.lp-open { overflow: hidden; }

/* mid widths: keep three columns but tighten */
@media (max-width: 1180px) {
  .lp { padding: 36px; } .lp-h h2 { font-size: 52px; } .lp-h p { font-size: 18px; }
  .lp-opts { gap: 18px; } .lp-o { padding: 22px; } .lp-n { font-size: 52px; } .lp-cta { font-size: 22px; min-height: 64px; }
}
/* short laptop screens (1366x768 etc): same tightening so the whole chooser fits without scrolling */
@media (max-height: 860px) and (min-width: 721px) {
  .lp { padding: 34px 36px 30px; } .lp-x { top: 22px; right: 22px; width: 54px; height: 54px; }
  .lp-av { width: 84px; height: 84px; } .lp-h { gap: 24px; }
  .lp-h h2 { font-size: 52px; margin: 6px 0 6px; } .lp-h p { font-size: 18px; }
  .lp-help { margin-top: 16px; } .lp-opts { gap: 18px; margin-top: 12px; }
  .lp-o { padding: 22px; } .lp-top { min-height: 52px; } .lp-code { width: 52px; height: 52px; font-size: 19px; }
  .lp-hello { margin-top: 16px; font-size: 20px; } .lp-n { font-size: 52px; }
  .lp-d { margin-top: 12px; font-size: 15px; } .lp-chip { margin: 14px 0 18px; }
  .lp-cta { font-size: 22px; min-height: 64px; } .lp-tap { margin-top: 12px; }
  .lp-foot { margin-top: 18px; padding-top: 15px; font-size: 15px; }
}
/* phone / small tablet: stacked */
@media (max-width: 720px) {
  .lp { padding: 26px; border-radius: 24px; }
  .lp-x { top: 16px; right: 16px; width: 44px; height: 44px; } .lp-x svg { width: 19px; height: 19px; }
  /* avatar beside kicker + title, subtitle full width below */
  .lp-h { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(34px, auto) auto auto; column-gap: 14px; align-items: center; padding-right: 0; }
  .lp-ht { display: contents; }
  .lp-av { grid-row: 1 / 3; grid-column: 1; width: 62px; height: 62px; margin-left: 3px; }
  .lp-k { grid-column: 2; grid-row: 1; padding-right: 48px; }
  .lp-h h2 { grid-column: 2; grid-row: 2; align-self: start; }
  .lp-h p { grid-column: 1 / -1; grid-row: 3; }
  .lp-k { font-size: 13px; letter-spacing: .22em; }
  .lp-h h2 { font-size: 36px; margin: 4px 0 0; }
  .lp-h p { font-size: 17px; margin-top: 14px; }
  .lp-help { margin-top: 22px; font-size: 15px; }
  .lp-opts { grid-template-columns: 1fr; gap: 16px; }
  .lp-o { padding: 22px; }
  .lp-code { width: 52px; height: 52px; font-size: 19px; }
  .lp-hello { margin-top: 18px; font-size: 19px; }
  .lp-n { font-size: 50px; }
  .lp-d { margin-top: 14px; font-size: 15px; }
  .lp-chip { margin: 16px 0 20px; font-size: 13px; }
  .lp-cta { min-height: 62px; font-size: 23px; }
  .lp-foot { display: block; margin-top: 24px; padding-top: 20px; font-size: 14.5px; text-wrap: balance; }
  .lp-foot svg { display: inline-block; vertical-align: -4px; margin-right: 7px; width: 18px; height: 18px; }
}
@media (max-width: 380px) { .lp { padding: 20px; } .lp-o { padding: 18px; } .lp-n { font-size: 44px; } .lp-h h2 { font-size: 33px; }
  .lp-av { width: 56px; height: 56px; } .lp-h { column-gap: 12px; } }

/* motion off: OS setting or the site's own pause toggle */
@media (prefers-reduced-motion: reduce) {
  .lp, .lp-scrim, .lp-o, .lp-o::before, .lp-cta, .lp-cta svg, .lp-radio::after { transition: none; }
  .lp-o:hover, .lp-o:active { transform: none; }
  .lp-o:hover .lp-cta svg, .lp-o:focus-visible .lp-cta svg { transform: none; }
}
html:has(.motion-paused) .lp, html:has(.motion-paused) .lp-scrim, html:has(.motion-paused) .lp-o,
html:has(.motion-paused) .lp-o::before, html:has(.motion-paused) .lp-cta, html:has(.motion-paused) .lp-cta svg,
html:has(.motion-paused) .lp-radio::after { transition: none; }
html:has(.motion-paused) .lp-o:hover, html:has(.motion-paused) .lp-o:active { transform: none; }
html:has(.motion-paused) .lp-o:hover .lp-cta svg, html:has(.motion-paused) .lp-o:focus-visible .lp-cta svg { transform: none; }

/* ---------- sowetan_langs5_v1: six languages (Sesotho, Setswana, Afrikaans added) ----------
 * Same card, same parts. Desktop: two rows of three, the card a size smaller so both rows fit a 1080p screen.
 * Phone: one swipeable row (scroll-snap), a card at a time with the next one peeking in; the codes above it jump. */
.lp-o[data-lp="st"] { --c: #E0A63D; --c-solid: #B9821C; --c-rgb: 224,166,61; --c-cta: rgba(110,78,18,.42); --c-cta-b: rgba(224,166,61,.55);
  --lp-tex: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 12px); }
.lp-o[data-lp="tn"] { --c: #9A7BF0; --c-solid: #6F4FD6; --c-rgb: 154,123,240; --c-cta: rgba(58,40,120,.42); --c-cta-b: rgba(154,123,240,.55);
  --lp-tex: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.4px) 0 0 / 16px 16px; }
.lp-o[data-lp="af"] { --c: #F08A4B; --c-solid: #D2622A; --c-rgb: 240,138,75; --c-cta: rgba(120,56,20,.42); --c-cta-b: rgba(240,138,75,.55);
  --lp-tex: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 14px); }
.lp-pips { display: none; }
@media (min-width: 721px) {
  .lp:has(.lp-six) { padding: 30px 36px 26px; }
  .lp:has(.lp-six) .lp-x { top: 20px; right: 20px; width: 52px; height: 52px; }
  .lp:has(.lp-six) .lp-av { width: 72px; height: 72px; }
  .lp:has(.lp-six) .lp-h { gap: 22px; }
  .lp:has(.lp-six) .lp-h h2 { font-size: 46px; margin: 4px 0 4px; }
  .lp:has(.lp-six) .lp-h p { font-size: 17px; }
  .lp:has(.lp-six) .lp-help { margin-top: 12px; font-size: 15px; }
  .lp:has(.lp-six) .lp-foot { margin-top: 14px; padding-top: 12px; font-size: 14.5px; }
  .lp-six { gap: 14px; margin-top: 10px; }
  .lp-six .lp-o { padding: 16px 18px; }
  .lp-six .lp-top { min-height: 44px; }
  .lp-six .lp-code { width: 44px; height: 44px; font-size: 17px; }
  .lp-six .lp-radio { width: 26px; height: 26px; }
  .lp-six .lp-last { height: 26px; padding: 0 11px; font-size: 12px; }
  .lp-six .lp-hello { margin-top: 10px; font-size: 17px; }
  .lp-six .lp-n { margin-top: 2px; font-size: 42px; }
  .lp-six .lp-d { margin-top: 8px; font-size: 13.5px; line-height: 1.4; }
  .lp-six .lp-chip { margin: 10px 0 12px; padding: 6px 9px; font-size: 12px; }
  .lp-six .lp-cta { min-height: 50px; font-size: 20px; border-radius: 12px; }
  .lp-six .lp-cta svg { width: 20px; height: 20px; }
  .lp-six .lp-tap { margin-top: 9px; font-size: 12px; }
}
@media (max-width: 720px) {
  .lp-six { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: -26px; margin-right: -26px; padding: 4px 26px 6px; scroll-padding: 0 26px; }
  .lp-six::-webkit-scrollbar { display: none; }
  .lp-six .lp-o { flex: 0 0 82%; scroll-snap-align: center; }
  .lp-six .lp-o:hover { transform: none; }
  .lp-pips { display: flex; justify-content: space-between; gap: 6px; margin-top: 12px; }
  .lp-pips + .lp-six { margin-top: 10px; }
  .lp-pips button { min-width: 44px; min-height: 36px; padding: 0 8px; border-radius: 1000px; border: 1px solid rgba(255,255,255,.16);
    background: transparent; color: #a9a9ae; font: 700 13px/1 "Barlow Condensed", "Oswald", "Arial Narrow", Poppins, sans-serif;
    letter-spacing: .1em; cursor: pointer; -webkit-appearance: none; appearance: none; }
  .lp-pips button.on { border-color: #FF2D2D; background: rgba(238,32,39,.16); color: #fff; }
}
@media (max-width: 380px) {
  .lp-six { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; gap: 10px; }
  .lp-six .lp-o { flex-basis: 84%; }
  .lp-pips { gap: 4px; } .lp-pips button { min-width: 40px; padding: 0 6px; }
}
