/* التحديات: book challenges read a chapter a day (list cards, the challenge sheet, a day on the player) and the
   full-screen picture viewer. */

/* ---- the list ---- */
.bc-lead { margin: 2px 16px 14px; font-size: 15px; line-height: 1.8; color: rgb(var(--fg) / .75); }
.bc-list { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 14px; }
.bc-card { display: grid; border-radius: 14px; overflow: hidden; background: rgb(var(--fg) / .06); border: 1px solid rgb(var(--fg) / .1); }
.bc-pic { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--kufic), var(--green-800); }
/* Upright pictures show their top: the challenge's name and «اليوم ١» are there. */
.bc-pic img, .bc-hero .sh-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* An older challenge's picture has its name in the middle. */
.bc-video .bc-pic img { object-position: center 44%; }
.bc-no { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 12px; border-radius: 99px; background: var(--gold); color: var(--green-950);
  font-size: 12.5px; font-weight: 700; }
/* «التعريف بالتحديات»: its pill says it is a video to play */
.bc-intro .bc-no { display: inline-flex; align-items: center; gap: 5px; }
.bc-intro .bc-no .ic { width: 13px; height: 13px; }
.bc-text { display: grid; gap: 4px; padding: 12px 14px 14px; }
.bc-text b { font-size: 18px; line-height: 1.5; }
.bc-text > small { font-size: 13px; color: rgb(var(--fg) / .62); }
.bc-state { display: grid; gap: 6px; margin-top: 4px; }
.bc-state .bar { height: 6px; }
.bc-prog { font-size: 13.5px; color: var(--accent-ink-soft); }
.bc-done { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.bc-done .ic { width: 18px; height: 18px; }
.bc-soon-h { display: flex; align-items: center; gap: 10px; margin-top: 26px; }

/* ---- the challenge sheet ---- */
.bc-kicker { font-size: 13px; color: var(--accent-ink-soft); }
.bc-desc { font-size: 14.5px; line-height: 1.85; color: rgb(var(--fg) / .82); }
.bc-intro .clamp { white-space: pre-line; }
.bc-map { position: relative; display: block; width: 100%; max-height: 260px; overflow: hidden; border-radius: 10px; background: #fff; }
.bc-map img { width: 100%; }
.bc-map-hint { position: absolute; inset: auto 8px 8px auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px;
  background: rgba(4, 25, 15, .82); color: #fff; font-size: 12.5px; }
.bc-map-hint .ic { width: 15px; height: 15px; }
.bc-day { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.bc-day-no { font-size: 12px !important; font-weight: 700; color: var(--accent-ink) !important; }
.bc-day.done .sh-ep-text b { color: rgb(var(--fg) / .7); }
.bc-tick { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgb(var(--fg) / .35);
  color: transparent; transition: background .2s, border-color .2s, color .2s; }
.bc-tick .ic { width: 20px; height: 20px; }
.bc-tick[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--green-950); }

/* ---- a day on the player ---- */
.day-pic { position: relative; display: block; width: min(360px, 88vw); margin: 18px auto 8px; border-radius: 16px; overflow: hidden; background: var(--green-950);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.day-pic img { width: 100%; max-height: 52vh; object-fit: contain; }
.day-acts { width: 100%; display: grid; gap: 10px; margin-top: 14px; }
.day-pdf .ic { width: 20px; height: 20px; }
.day-done { background: rgb(var(--fg) / .08); color: var(--text-strong); border: 1.5px solid rgb(var(--fg) / .3); }
.day-done[aria-pressed="true"] { background: rgba(229, 185, 92, .16); border-color: var(--gold); color: var(--accent-ink); }
.day-done .ic { width: 20px; height: 20px; }

/* ---- a picture full screen ---- */
.zoom { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .92); animation: fade .2s ease; }
.zoom-scroll { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; padding: 56px 8px 24px; }
.zoom-scroll img { width: 100%; max-width: 900px; cursor: zoom-in; }
.zoom.big .zoom-scroll { place-items: start; }
.zoom.big .zoom-scroll img { width: 220%; max-width: none; cursor: zoom-out; }
.zoom-close { position: fixed; top: calc(var(--tg-content-safe-area-inset-top, 0px) + 10px); inset-inline-end: 10px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
