/* ══════════════════════════════════════════════════════════════════════════
   RESEARCH EGYPT ACADEMY — /courses/{slug} (resources/views/site/course)
   On top of content.css.

   The page is the home page's course sheet (public/assets/rea/js/v3.js
   sheetHtml(), styled by v3.css .cs__*) opened out into a full page: the
   kicker line, the giant title, the tagline and the fact tiles on top; a
   sticky row of section pills; then the sections beside the sticky booking
   card. The .cs__* blocks come from the rea layer as they are — this file
   lays the page out around them and adds what a page has that a sheet does
   not (section headings as h2, the «where and how» block, the pills bar).
   ══════════════════════════════════════════════════════════════════════════ */

.cp-head .cs__k { margin-bottom: clamp(10px, 1.2vw, 18px); }
.cp-head .cs__tag { max-width: 52ch; }
.cp-head .cs__facts { margin-top: clamp(20px, 2.4vw, 36px); }
.cp-head .cs__facts li { border: 1px solid var(--c-line); }
.cp-head .cs__facts b { display: block; }

/* the section pills (the sheet's .cs__nav, as in-page anchors) */
.cp-nav { position: sticky; top: calc(var(--header-h) + 12px); z-index: 20; margin-bottom: clamp(20px, 2.6vw, 40px); }
.cp-nav .cs__nav { margin: 0; }
.cp-nav .cs__nav a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--c-text-2); transition: background .25s, color .25s; }
.cp-nav .cs__nav a:hover { background: var(--c-hi-a); color: var(--c-text); }
.cp-nav .cs__nav a[aria-current="true"] { background: var(--btn); color: #fff; }

.cp-cols { margin-top: 0; }
.cp-cols .cs__side { top: calc(var(--header-h) + 76px); }
.cp-sec { padding-block: clamp(24px, 3vw, 46px); border-top: 1px solid var(--c-line-2); scroll-margin-top: calc(var(--header-h) + 84px); }
.cp-sec:first-child { padding-top: 0; border-top: 0; }
.cp-sec > h2 { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; margin-bottom: clamp(12px, 1.4vw, 20px); }
html[lang="ar"] .cp-sec > h2 { letter-spacing: 0; line-height: 1.4; }
.cp-sec .cs__lead + .cs__lead { margin-top: 12px; }
.cp-sec .cs__tools { justify-content: flex-start; }
.cp-units-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.cp-units-bar .cs__note { margin: 0; }
.cs__u .cs__topics li { font-size: clamp(14.5px, 1.05vw, 16px); }
.cp-where { display: grid; gap: 18px; }
.cp-where .rp-acts { margin-top: 4px; }

/* the booking card */
.cp-card .pblock__main { align-items: baseline; }
.cp-price { display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--c-bg-2); }
.cp-price__k { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.cp-price__n { display: flex; align-items: baseline; gap: 8px; }
.cp-price__n b { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: clamp(30px, 2.6vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--c-text); }
.cp-price__n span { font-weight: 700; color: var(--c-text-2); }
.cp-price__note { font-size: 13.5px; font-weight: 600; color: var(--c-text-2); }
.cp-card .cs__modes li { background: var(--c-bg-2); }
.cp-card .btn--ghost { width: 100%; }
.cp-card .btn--ghost svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .cp-cols { grid-template-columns: minmax(0, 1fr); }
  .cp-cols .cs__side { position: static; order: -1; }
}
@media (max-width: 720px) {
  .cp-head .cs__facts li { min-width: 0; flex: 1 1 calc(50% - 10px); }
  .cp-nav { top: calc(var(--header-h) + 6px); }
  .cs__u summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cs__u summary .cs__um { grid-column: 2; grid-row: 2; white-space: normal; }
}
/* step 21 (F-mobile): 44px tap targets on phones — here because the layered fix/mobile.css loses to this unlayered file */
@media (max-width: 900px) { .cp-nav .cs__nav a { min-height: 44px; } .cp-units-bar .btn { --h: 44px; } }
/* The next-cohort line under «مع: <name>» (step 5): the home card's own sentence, a quiet line in the head */
.cp-head .cp-cohort { margin-top: 4px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--c-text-2); }
