/* Interactive Learning only (loaded by interactive-learning/app/index.html; Explore never loads this file).
 * Uses the existing atlas tokens (--ink, --ink-2, --muted, --faint, --line, --line-2, --raised, --tint, --green*).
 * 1) Style selection (#/): one compact overview (text right, smaller map left) → one grid of all styles.
 * 2) Hejazi Coastal learning landing (#/hejazi): A hero · B workshop + what you will learn · C journey ending in one CTA. */

.lp, .lh {
  --sand: #F7F2EA; --plaster: #FBF8F3; --sand-line: #EAE1D3; --wood: #8A6542; --wood-soft: #F3EBE1; --rule: #CDBFAE;
  --hj: #7B5A93; --hj-ink: #5A4670; --hj-soft: #F3EFF6; --hj-line: #DCD0E4;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 1) Style selection ---------- */
.lp { padding: 4px 0 48px; }
.lp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px 56px; align-items: start; }
.lp__title { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.3; font-weight: 700; margin: 6px 0 22px; }
.lp-h { margin: 0 0 8px; font-size: 21px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.lp-h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.lp-intro__d { margin: 0; max-width: 52ch; font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.lp-intro__obj { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-list li { position: relative; padding-inline-start: 18px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.lp-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); opacity: .55; }

/* the map: a labelled panel, smaller than before, still the same interactive map */
.lp-map { border: 1px solid var(--line); border-radius: 18px; background: var(--tint, #F9FAFB); padding: 14px 16px 8px; }
.lp-map__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-label { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.lp-map__about { font-size: 12.5px; color: var(--muted); }
.lp-map__about:hover { color: var(--ink); }
.lp-map__stage { max-width: none; margin: 0; }
.lp-map__stage .ksa-map__svg { max-height: 400px; }
.lp-map .preview { width: min(280px, 56%); }

.lp-styles { margin-top: 36px; }
.lp-styles__head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-styles__head .lp-h { margin: 0; }
.lp-count { display: flex; gap: 18px; margin: 0; font-size: 14px; color: var(--muted); }
.lp-count b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* one card system: same card, same size, same placement; only a small state label differs */
.lc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 224px), 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.lc-cell { display: flex; }
.lc { flex: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "sym name name" "sym st go";
  column-gap: 12px; row-gap: 4px; align-items: center; min-height: 76px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--raised); color: inherit; text-decoration: none; }
.lc__sym { grid-area: sym; width: 40px; height: 40px; border-radius: 9px; object-fit: contain; }
.lc__sym--sw { display: inline-block; }
.lc__name { grid-area: name; font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.lc__st { grid-area: st; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--faint); }
.lc__go { grid-area: go; font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 3px 10px; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
/* available: neutral card, a small green «متاح», an active (neutral) CTA */
.lc--on { transition: border-color .2s ease, box-shadow .2s ease; }
.lc__st--on { color: var(--green-ink); font-weight: 600; }
.lc__st--on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lc--on:hover, .lc--on:focus-visible { border-color: var(--line-2); box-shadow: var(--shadow); }
.lc--on:hover .lc__go, .lc--on:focus-visible .lc__go { background: var(--ink); border-color: var(--ink); color: #fff; }
/* coming soon: calm, clearly unavailable, not interactive */
.lc--soon { background: var(--tint, #F9FAFB); cursor: default; }
.lc--soon .lc__name { color: var(--ink-2); font-weight: 500; }
.lc--soon .lc__sym { opacity: .45; filter: grayscale(.8); }

@media (max-width: 1080px) {
  .lp-top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lp-map__stage .ksa-map__svg { max-height: 420px; }
}
@media (max-width: 560px) {
  .lp__title { margin-bottom: 16px; }
  .lp-h { font-size: 19px; }
  .lp-intro__d { font-size: 15.5px; }
  .lp-map { padding: 12px 10px 6px; border-radius: 14px; }
  .lp-map .preview { width: 100%; }
  /* phones: two compact columns */
  .lc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lc { min-height: 0; padding: 10px; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "sym st" "name name" "go go"; row-gap: 6px; align-content: start; }
  .lc__sym { width: 32px; height: 32px; border-radius: 8px; }
  .lc__st { justify-self: end; }
  .lc__name { font-size: 13.5px; }
  .lc__go { justify-self: stretch; text-align: center; }
}

/* ---------- 2) Hejazi Coastal learning landing ---------- */
.lh { padding: 4px 0 48px; }
.lh-h { margin: 0 0 8px; font-size: 22px; line-height: 1.4; font-weight: 700; color: var(--ink); }
.lh-h3 { margin: 0 0 10px; font-size: 15.5px; font-weight: 700; color: var(--ink); }

/* A — hero: one clean card — text on the right, the style's image on the left as a plain rectangle.
   The Hejazi purple stays a quiet accent (soft tint, eyebrow, short rule under the title). */
.lh-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; align-items: center;
  padding: 32px 36px; border-radius: 22px; border: 1px solid var(--hj-line); background: linear-gradient(135deg, #FBF9FD 0%, var(--hj-soft) 100%); }
.lh-hero__txt { max-width: 560px; }
.lh-hero__txt .style-hero__id { margin-bottom: 14px; }
.lh-eyebrow { color: var(--hj-ink); font-weight: 600; }
.lh-hero h1.title { font-size: clamp(30px, 3vw, 42px); line-height: 1.25; margin: 0 0 16px; padding-bottom: 14px; position: relative; }
.lh-hero h1.title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--hj); }
.lh-hero__lede { margin: 0 0 12px; font-size: 17px; line-height: 1.9; color: var(--ink); max-width: 50ch; }
.lh-hero__src { margin: 0; font-size: 13px; color: var(--muted); }
.lh-hero__fig { margin: 0; }
.lh-hero__fig img { display: block; width: 100%; height: auto; aspect-ratio: 659 / 463; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 28px rgba(47, 33, 64, .12); }

/* B — workshop introduction (right) + what you will learn (left): one row, no container */
.lh-about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px 56px; align-items: start; padding: 36px 8px 8px; }
.lh-about__d { margin: 0; font-size: 16px; line-height: 1.95; color: var(--ink-2); max-width: 62ch; }
.lh-gain { padding-inline-start: 24px; border-inline-start: 2px solid var(--hj-line); }
.lh-gain__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lh-gain__l li { position: relative; padding-inline-start: 26px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.lh-gain__l li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 16px; height: 16px;
  background: center / 16px 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9.5' stroke='%237B5A93' stroke-width='1.6'/%3E%3Cpath d='M7.8 12.4l2.8 2.8 5.6-5.8' stroke='%237B5A93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* C — journey: a sand band holding the timeline and the start; RTL reads right → left */
.lh-journey { margin-top: 32px; padding: 30px 32px 28px; border-radius: 24px; background: var(--sand); }
.lh-journey__head { margin-bottom: 26px; }
.lh-journey__sub { margin: 0; font-size: 14.5px; color: var(--muted); }
.tl { display: grid; grid-template-columns: var(--tl-cols, 1fr); gap: 0; }
.tl__ph { min-width: 0; display: grid; grid-template-rows: auto auto; }
.tl__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.tl__st { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 0 4px; text-align: center; }
/* connector through the middle of the boxes (number 18px + gap 6px + half box 32px) */
.tl__st::before { content: ""; position: absolute; top: 56px; inset-inline-start: -50%; inset-inline-end: 50%; height: 1.5px; background: var(--rule); }
.tl__ph:first-child .tl__st:first-child::before { display: none; }
.tl__no { height: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--wood); font-variant-numeric: tabular-nums; }
.tl__box { position: relative; z-index: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 6px;
  background: #fff; border: 1.5px solid #D8CCBD; color: var(--hj-ink); }
.tl__ic { width: 30px; height: 30px; }
.tl__t { margin-top: 4px; font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--ink); max-width: 12ch; }
.tl__d { font-size: 12px; line-height: 1.45; color: var(--muted); max-width: 14ch; }
.tl__st--stage .tl__t { color: var(--hj-ink); }
/* reviews: explicit steps, marked as assessment */
.tl__st--review .tl__box { background: var(--hj-soft); border-color: var(--hj-line); }
.tl__st--review .tl__d { color: var(--hj-ink); font-weight: 600; }
/* phase grouping: a bracket under the stations, then the phase name */
.tl__ph-foot { position: relative; margin: 16px 10px 0; padding-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tl__ph-foot::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 8px; border: 1.5px solid var(--rule); border-top: 0; border-radius: 0 0 6px 6px; }
.tl__ph-t { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.tl__ph-r { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--sand-line); background: var(--plaster); border-radius: 999px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.tl__ph--2 .tl__ph-t { color: var(--wood); }

.lh-go { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--sand-line); }
.lh-go__btn { min-width: 220px; justify-content: center; }
.lh-go__txt { display: grid; gap: 4px; flex: 1; min-width: 240px; }
.lh-go__note { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--muted); max-width: 70ch; }
.lh-go__resume { justify-self: start; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.lh-go__resume:hover { color: var(--ink); }

.ws-score--none { color: var(--muted); font-weight: 600; }

@media (max-width: 1100px) {
  .tl__t { font-size: 13px; }
  .tl__box { width: 56px; height: 56px; }
  .tl__ic { width: 26px; height: 26px; }
  .tl__st::before { top: 52px; }
}
@media (max-width: 960px) {
  .lh-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 22px; }
  .lh-hero__txt { max-width: none; }
  .lh-hero__fig { width: 100%; max-width: 560px; }
  .lh-about { grid-template-columns: minmax(0, 1fr); padding: 28px 4px 4px; }
  .lh-gain { padding-inline-start: 18px; }
  .lh-journey { padding: 22px 18px; border-radius: 18px; }
  /* vertical journey: phase name first, then its stations */
  .tl { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tl__ph-foot { order: -1; margin: 0 0 10px; padding: 0; justify-content: flex-start; }
  .tl__ph-foot::before { display: none; }
  .tl__list { grid-template-columns: minmax(0, 1fr); position: relative; gap: 8px; }
  .tl__list::before { content: ""; position: absolute; inset-inline-start: 24px; top: 24px; bottom: 24px; width: 1.5px; background: var(--rule); }
  .tl__st { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "box t" "box d"; justify-items: start; align-items: center; column-gap: 14px; row-gap: 0; text-align: start; padding: 0; }
  .tl__st::before { display: none; }
  .tl__no { display: none; }
  .tl__box { grid-area: box; width: 48px; height: 48px; }
  .tl__ic { width: 24px; height: 24px; }
  .tl__t { grid-area: t; margin: 0; max-width: none; font-size: 15px; }
  .tl__t .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; color: var(--wood); }
  .tl__d { grid-area: d; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .lc, .lc__go { transition: none; } }

/* ---------- 3) Workshop station 2: controlled intro-video player (markup in workshop/workshop.js) ---------- */
.ws-player { border-radius: 18px; overflow: hidden; background: #161616; color: #fff; margin: 18px 0 10px; }
.ws-player__screen { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.ws-player__v { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ws-player__big { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(22, 22, 22, .62); color: #fff; font-size: 26px; display: grid; place-items: center; transition: background-color .2s ease; }
.ws-player__big[hidden] { display: none; }
.ws-player__big:hover, .ws-player__big:focus-visible { background: var(--green); }
.ws-player__bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: #1f1f1f; }
.ws-player__btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.ws-player__btn:hover, .ws-player__btn:focus-visible { background: rgba(255, 255, 255, .12); }
.ws-player__time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.ws-player__volw { flex: none; display: flex; align-items: center; gap: 4px; }
/* seek bar: played (green) · watched and reachable (light) · not yet watched (dark, unreachable) — RTL fills from the right */
.ws-player__seek, .ws-player__vol { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; margin: 0; cursor: pointer; background: rgba(255, 255, 255, .18); }
.ws-player__seek { flex: 1; min-width: 80px;
  background: linear-gradient(to left, var(--green) 0 var(--played, 0%), rgba(255, 255, 255, .45) var(--played, 0%) var(--watched, 0%), rgba(255, 255, 255, .14) var(--watched, 0%) 100%); }
.ws-player__vol { width: 72px; }
.ws-player__seek::-webkit-slider-thumb, .ws-player__vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.ws-player__seek::-moz-range-thumb, .ws-player__vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.ws-player__hint { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.ws-player__hint.is-done { color: var(--green-ink); font-weight: 600; }
.ws-intro .ws-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .ws-player__vol { display: none; } .ws-player__bar { gap: 8px; padding: 6px 8px; } }
@media (prefers-reduced-motion: reduce) { .ws-player__big { transition: none; } }
