/* courses + learning (EN + AR): page-specific parts only. Shared components come from system.css, home.css,
   p-learn.css / p-suite.css and pg-common.css (registry: team/COMPONENTS.md). Never copy a shared component here. */

/* ---------- Desktop shot / phone shot swap ---------- */
.pl-mob { display: none; }
@media (max-width: 600px) {
  .pl-desk { display: none; }
  .pl-mob { display: block; }
}
.pl-phone { width: min(250px, 72%); margin-inline: auto; box-shadow: var(--shadow-lg); }
.pl-phone .crop { border-radius: 26px; }

/* ---------- Hero facts: keep the row tidy on phones ---------- */
@media (max-width: 600px) { .ph .facts li { min-width: 0; } }

/* ---------- Section CTA that closes a stage band ---------- */
.pl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(22px, 3vw, 32px); }
.pl-cta .small { color: var(--ink-3); }
.stage .pl-cta .small { color: var(--stage-ink-3); }
@media (max-width: 480px) { .pl-cta .btn { white-space: normal; height: auto; min-height: 48px; padding-block: 12px; text-align: center; } }

/* ---------- Two screens side by side on a stage (course + live) ---------- */
.pl-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.pl-duo figure { margin: 0; display: grid; gap: 12px; min-width: 0; }
.pl-duo figcaption { font-size: var(--t-sm); color: var(--stage-ink-2); }
.pl-duo figcaption b { color: var(--stage-ink); }
.pl-duo__join { display: flex; justify-content: center; margin-top: 18px; }
.pl-duo__join span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(0, 255, 198, .3); background: rgba(0, 255, 198, .08); color: var(--mint-bright); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
[lang="ar"] .pl-duo__join span { font-family: inherit; font-size: .86rem; letter-spacing: 0; text-transform: none; }
@media (max-width: 760px) { .pl-duo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The gate line under the course shot loop ---------- */
.pl-gate { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: var(--t-xs); color: var(--ink-3); }
.pl-gate li { display: inline-flex; align-items: center; gap: 6px; }
.pl-gate svg { width: 14px; height: 14px; color: var(--accent, var(--violet)); }

/* ---------- Certificate: the real artwork with pins ---------- */
.pl-cert { margin: 0; display: grid; gap: 12px; }
.pl-cert .crop { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); --crop-bg: #0e0c18; }
.pl-cert figcaption { font-size: var(--t-xs); color: var(--ink-3); }
.pl-cert figcaption b { color: var(--ink-2); }

/* ---------- "Sold on its own": the real course page, with the real enrolled state floating ---------- */
#tp-sell .tp__media { position: relative; }
.pl-after { position: absolute; z-index: 2; right: 3%; bottom: 5%; width: 34%; margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 22px 48px -18px rgba(8, 6, 24, .55); }
.pl-after figcaption { padding: 6px 10px; background: var(--ink); color: var(--bg); font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
[lang="ar"] .pl-after figcaption { font-family: inherit; font-size: .74rem; letter-spacing: 0; text-transform: none; }
.pl-after .crop { border-radius: 0; }
@media (max-width: 600px) { .pl-after { display: none; } }

/* ---------- Learning: hero visual = the real impact form, with the real branded certificate floating ---------- */
.pl-hero-shot { position: relative; margin-bottom: 40px; }
.pl-hero-cert { position: absolute; z-index: 3; right: 0; bottom: -44px; width: min(270px, 46%); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(8, 6, 24, .55); border: 1px solid rgba(255, 255, 255, .12); }
.pl-hero-cert > img { display: block; width: 100%; height: auto; }
.pl-hero-cert .crop, .pl-certfloat__card .crop { border-radius: 0; }
.pl-hero-tag { position: absolute; z-index: 3; top: 52px; right: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: rgba(9, 8, 15, .86); color: #fff; font-size: var(--t-xs); font-weight: 650; }
.pl-hero-tag i { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--mint-bright); }
@media (max-width: 1020px) { .pl-hero-cert { right: 10px; bottom: -30px; width: 40%; } }
@media (max-width: 600px) { .pl-hero-shot { margin-bottom: 26px; } .pl-hero-tag { top: auto; right: auto; left: 10px; bottom: 10px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 10px; } .pl-hero-cert { width: 38%; } }
/* Hero strike stays inside the gutter; the hero buttons stay on one row at desktop widths */
.v-hero .strike::after { left: 0; right: -2%; }
[dir="rtl"] .v-hero .strike::after { left: -2%; right: 0; }
@media (min-width: 1021px) { .pl-hero-cta { flex-wrap: nowrap; } .pl-hero-cta .btn { white-space: nowrap; } }

/* ---------- Learning: the life of a course, as the page navigator ---------- */
.s-life a { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.s-life a:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.s-life a:focus-visible { outline: 2px solid var(--violet); outline-offset: 6px; border-radius: 6px; }
.pl-nav { position: fixed; z-index: 55; top: var(--nav-h); inset-inline: 0; transform: translateY(-110%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s .25s; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.pl-nav.is-on { transform: none; visibility: visible; transition: transform .25s var(--ease); }
.pl-nav ol { list-style: none; margin: 0 auto; padding: 8px var(--gut, 16px); max-width: var(--wrap, 1200px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pl-nav ol::-webkit-scrollbar { display: none; }
.pl-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .86rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.pl-nav a i { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }
.pl-nav a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pl-nav a[aria-current="true"] i { color: inherit; opacity: .7; }
.pl-nav a.is-go { border-color: color-mix(in oklab, var(--c-consult, var(--violet)) 50%, transparent); }
.pl-nav a:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
html:has(.pl-nav) { scroll-padding-top: calc(var(--nav-h) + 76px); }
@media (prefers-reduced-motion: reduce) { .pl-nav, .pl-nav.is-on { transition: none; } }

/* ---------- Learning: cropped real screens with pins ---------- */
.pl-shot { margin: 0; display: grid; gap: 10px; min-width: 0; }
.pl-shot .crop-cap { margin: 0; }
.pl-certfloat { position: relative; padding-bottom: 46px; }
.pl-certfloat__card { position: absolute; z-index: 3; inset-inline-end: -10px; bottom: 0; width: min(300px, 52%); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(8, 6, 24, .55); }
.pl-certfloat__card > img { display: block; width: 100%; height: auto; }
/* Phones reframe these shots (--mar/--mx), so the desktop pin positions no longer apply; the numbered notes stay */
@media (max-width: 600px) { .pl-shot .s-pins .s-pin { display: none; } }
@media (max-width: 600px) { .pl-certfloat { padding-bottom: 60px; } .pl-certfloat__card { inset-inline-end: 6px; width: 58%; } }

/* ---------- Learning: the closing asks (rollout folded into the closing band) ---------- */
.pl-build-line { display: flex; align-items: center; gap: 10px; color: var(--stage-ink); font-weight: 650; }
.pl-build-line svg { width: 18px; height: 18px; color: var(--mint-bright); flex: none; }

.stack > .sec-cta { margin-top: 4px; }

/* ---------- Courses: real branded certificates rotating (uses the shared [data-brand] switcher), on a light band ---------- */
.pl-certloop.bsw { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.pl-certloop .bsw__frame { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.pl-certloop__shots { aspect-ratio: 1000 / 705; border-radius: var(--r-lg); overflow: hidden; background: #0e0c18; box-shadow: var(--shadow-lg); }
.pl-certloop__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-certloop .bsw__chips { gap: 6px; }
.pl-certloop .bsw__chip { height: 34px; font-size: .8rem; border-color: var(--line-2); background: var(--surface); color: var(--ink-2); }
.pl-certloop .bsw__chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pl-certloop .bsw__chip:focus-visible, .pl-certloop .bsw__auto:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.pl-certloop .bsw__auto { flex: none; border-color: var(--line-2); background: var(--surface); color: var(--ink-2); }
.pl-certloop .bsw__auto:hover { color: var(--ink); border-color: var(--ink-3); }
@media (max-width: 600px) { .pl-certloop .bsw__chip { height: 32px; padding-inline: 6px 10px; font-size: .74rem; } .pl-certloop .bsw__chip i { width: 16px; height: 16px; } }

/* ---------- Learning brand wall: the main screen framed on the learning side (Courses tab, pinned course post, upcoming sessions) ---------- */
.pl-wall .bsw__shots { overflow: hidden; }
.pl-wall .bsw__shots img { transform: scale(1.323); transform-origin: 50% 100%; }
.pl-wall .bsw__shots::after { content: ""; position: absolute; z-index: 2; left: 0; top: 66.2%; width: 23.6%; height: 6.4%; border-radius: 8px; border: 2px solid var(--brand, #0F6E6E); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand, #0F6E6E) 22%, transparent); pointer-events: none; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
[dir="rtl"] .pl-wall .bsw__shots::after { left: auto; right: 0; }
/* The real invitation email uses the shared .wall__mail--shot option (home.css). */

/* ---------- Learning: blur a non-cast learner name on the groups screen ---------- */
.pl-mask-decl { left: 2%; top: 64.6%; width: 8.2%; height: 4.6%; }
@media (max-width: 600px) { .pl-mask-decl { left: 2.4%; top: 39.6%; width: 18%; height: 7.4%; } }
.pl-nowrap { white-space: nowrap; }
.pl-wall .wall__comm .wall__tag { display: none; }
/* The life strip has four steps before the stop line (Test & certify merged), matching the 01-05 navigator */
@media (min-width: 901px) { .s-life[data-pl-strip] { grid-template-columns: repeat(4, minmax(0, 1fr)) 36px minmax(0, 1.25fr); } }
/* Courses structure shot: pins on New course and the program title; phones reframe to the buttons and the program card */
.pl-pin-c1 { left: 54.6%; top: 3%; }
.pl-pin-c2 { left: 25.8%; top: 41%; }
@media (max-width: 600px) { .pl-pin-c1 { left: 53.6%; top: 5.4%; } .pl-pin-c2 { left: 30.5%; top: 74.8%; } }
