/* PrepBuddy shared: the course card (catalog PbCourseCard): the .card.sug box, its thumbnail (.thumb: the icon, the duration, the teaching language), the tag (.badge2), the title, the byline, the
   rating, the facts and the price or progress line (.sug-*). Moved here from learner/shared/cards.css on 2026-10-19 so the website's courses (00 catalogue, 01 course) use the same card as
   Prepare, Today and Adda; the learner pages link it right after cards.css, so the cascade is unchanged. The open web adds .sug-web (below). Tokens only. Flutter: CourseCard (Card + InkWell). */
.badge2 { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: var(--bg); color: var(--text-primary); display: inline-flex; align-items: center; gap: 4px; }
.badge2 .mi { font-size: 14px; color: var(--cat-deep-orange-text); }
/* ---------- content cards shared by Today and Adda (course, event, job, listing, news) ---------- */
.sug { width: 264px; padding: 0; overflow: hidden; position: relative; display: flex; flex-direction: column; }   /* 2026-10-03: was 212 dp with a 108 dp thumbnail and four lines; v1 cards had a 140 / 200 dp banner, duration and progress */
/* focus and hover (2026-10-04): the card's two links (thumbnail, body) sit inside overflow: hidden, which clipped their focus ring to a 1 dp line, so the card itself shows it,
   a 2 dp primary ring while one of its links has keyboard focus (where :has is missing the link keeps an inset ring); hover is the category tile's 1 dp accent ring,
   an inset outline so it also runs over the thumbnail. Flutter: InkWell focus and hover overlays on the Card */
.sug > a:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@supports selector(:has(*)) { .sug > a:focus-visible { outline: none; } .sug:has(> a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 0; } }
.sug .thumb { position: relative; height: auto; aspect-ratio: 16 / 9; } .sug .thumb > .mi { font-size: 48px; }
.sug-dur, .sug-lang { position: absolute; bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5; }
.sug-dur { inset-inline-end: 8px; background: color-mix(in srgb, var(--media-ink) 72%, transparent); color: var(--on-media); font-variant-numeric: tabular-nums; }
.sug-lang { inset-inline-start: 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text-primary); }
.sug .sug-t { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(15px * var(--font-scale)); line-height: 1.35; }
.sug-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); } .sug-rate .mi { font-size: 14px; color: var(--reward); } .sug-rate b { font-size: calc(12px * var(--font-scale)); color: var(--text-primary); }
.sug-facts { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
/* the course version the instructor bumps on a major update (the learner card emits it, the website card does not; 2026-10-27): a quiet pill after the facts, which had no rule at all and ran the number straight onto the word ("24 lessonsv2") */
.sug-ver { margin-inline-start: 6px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 12%, transparent); color: var(--text-secondary); font-size: calc(10px * var(--font-scale)); font-weight: 700; font-variant-numeric: tabular-nums; }
.sug-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 26px; }
.sug-amt { font-size: calc(11px * var(--font-scale)); color: var(--text-secondary); } .sug-amt b { font-size: calc(16px * var(--font-scale)); font-weight: 800; color: var(--text-primary); }
.sug-foot s { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); } .sug-off { font-size: calc(11px * var(--font-scale)); font-weight: 800; color: var(--success-text); }
.sug-prog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .sug-prog i { display: block; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 20%, transparent); overflow: hidden; } .sug-prog i b { display: block; height: 100%; border-radius: 999px; background: var(--accent); } .sug-prog small { font-size: calc(12px * var(--font-scale)); color: var(--text-secondary); }
.sug-done { display: inline-flex; align-items: center; gap: 4px; font-size: calc(12px * var(--font-scale)); font-weight: 700; color: var(--success-text); } .sug-done .mi { font-size: 16px; }
.thumb { height: 108px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, var(--surface)), color-mix(in srgb, var(--accent2) 26%, var(--surface))); }
.thumb .mi { font-size: 48px; color: var(--accent); }
.sug .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }   /* fills a card stretched by its row, so the price or progress line sits on the bottom edge of every card */ .sug b { font-size: calc(14px * var(--font-scale)); line-height: 1.4; }

/* the open web's card (website courses, 2026-10-19): the grid cell's width, and the AA icon colours the open web needs: the thumbnail icon is the accent text colour and the tag's fire icon its own
   orange text token (the app's tag icon asks for a token with a doubled name and takes the text colour; left as it is, 2026-10-19, an open question for the owner) */
.sug.sug-web { width: 100%; }
.sug-web .thumb > .mi { color: var(--accent-text); }
.sug-web .badge2 .mi { color: var(--cat-deep-orange-text); }
