/* steps follow-up — agent «cards». Loaded after v3.css on every rea page (ReaPage::cssFiles).
   Steps 16 (hero cards), 17 (course grid), 18 (one bootcamp card), 19 (numbers only on real sequences).
   Nothing here animates, so there is no reduced-motion variant to add. */

/* ============================================================ step 16 (AC-02): hero cards */
/* .hero[data-v="h"] .hlive { display: block } (v3.css) would otherwise show a card main.js hid */
.hlive[hidden] { display: none !important; }

/* the three fixed facts that stand in for the enrolled card until it has real numbers */
.hfacts__list { display: grid; gap: 10px; }
.hfacts__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--c-text); }
.hfacts__list svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--c-hi-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* no bootcamp date: the dates card's label carries a full sentence (next cohort / the owner's fallback),
   so it reads as text, not as an all-caps label */
.countdown.is-live .countdown__label .mono { font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1.55; letter-spacing: 0; text-transform: none; color: var(--c-text); }

/* ============================================================ step 17 (AC-05): course cards as an even grid */
#programs[data-v="h"] .pcards.wk, .wk { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 2.4vw, 40px) clamp(16px, 1.6vw, 26px); }
.wk__c.is-wide { grid-column: auto; }
.wk__m, .wk__c.is-wide .wk__m { aspect-ratio: 16 / 9; }
.wk__name, .wk__c.is-wide .wk__name { max-width: calc(100% - 76px); padding: 8px 14px; border-radius: 14px; font-size: clamp(16px, 1.3vw, 21px); }
.wk__go { width: 44px; height: 44px; }
.wk__tag { min-height: 28px; padding: 0 12px; }
.wk__b { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 14px; }
.wk__s { -webkit-line-clamp: 3; font-size: 15px; line-height: 1.7; }
.wk__f { font-size: 13px; }
.wk__f li { min-height: 30px; padding: 0 11px; }
.wk__more { grid-column: 1; grid-row: auto; justify-self: start; min-height: 44px; }
/* «مع: …» and the cohort line */
.wk__ww { display: grid; gap: 4px; font-size: 14.5px; line-height: 1.55; }
.wk__who { font-weight: 700; color: var(--c-text); }
.wk__when { color: var(--c-text-2); font-weight: 600; }
.cs__with { margin-top: 10px; font-size: clamp(15px, 1.15vw, 18px); font-weight: 700; color: var(--c-text-2); }

@media (max-width: 1100px) {
  #programs[data-v="h"] .pcards.wk, .wk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  #programs[data-v="h"] .pcards.wk, .wk { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================ step 18 (AC-06): one bootcamp card while nothing is dated */
.bn__one { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: end; padding: clamp(20px, 2.6vw, 40px); border-radius: var(--r-lg); background: var(--c-card); }
.bn__oneb { display: grid; gap: 10px; min-width: 0; }
.bn__oneb .bn__t { margin: 0; font-size: clamp(22px, 2.2vw, 36px); }
.bn__when { color: var(--c-text-2); line-height: 1.7; font-weight: 600; }
.bn__oneform { display: grid; gap: 12px; min-width: 0; }
.bn__onef { display: grid; gap: 6px; margin: 0; }
.bn__onef label { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.bn__oneform .btn { justify-self: start; }
@media (max-width: 900px) {
  .bn__one { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 16px; padding: 20px 18px; }
  .bn__oneform .btn { justify-self: stretch; justify-content: center; }
}
/* the owner's sentence on an undated card next to dated ones (in place of the «date being set» pill) */
.bn__ik--when { font-size: 13.5px; line-height: 1.6; color: var(--c-text-2); }

/* ============================================================ step 19 (AC-07): numbers only on real sequences */
/* section kickers lost their 01…11 (main.js): the empty span keeps only its short orange bar */
.kicker > span:empty::after { margin-inline-start: 0; }
/* the values, the idea → product stages and the AI-lab example tabs are not ordered steps */
.val__n, .rail__n, .lab__tn { display: none !important; }
.rail__b, #pipeline[data-v="b"] .rail__b { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "t"; }
.rail__d, [dir="rtl"] .rail__d { padding-inline: 18px; }
#pipeline[data-v="c"] .rail::before { display: none; }

/* lead (final review): the longest card line (AI Agents, English, 375px) needs 4 lines — never cut a summary short on phones */
@media (max-width: 680px) { .wk .wk__s { -webkit-line-clamp: 4; line-clamp: 4; } }
