/* ============================================================
   PhysicsNP — Course overview (public landing for a course)
   ============================================================ */
.co-shared { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: var(--r-lg); background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.22); }
.co-shared > i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; font-size: .85rem; }
.co-shared div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-shared small { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.co-shared b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.co-hero { display: flex; flex-direction: column; gap: 1.1rem; background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: .75rem; box-shadow: var(--shadow-xs); }
.co-cover { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(14,165,233,.08)); color: var(--brand); font-size: 3rem; }
.co-cover img { width: 100%; height: 100%; object-fit: cover; }
.co-info { padding: 0 .4rem .4rem; display: flex; flex-direction: column; gap: .7rem; }
.co-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.co-info h1 { font-family: 'Sora', 'Inter', sans-serif; font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.co-rating { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.co-rating a { font-size: .8rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.co-desc { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; }
.co-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .9rem; }
.co-facts li { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.co-facts i { width: 16px; text-align: center; color: var(--brand); }
.co-cta { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .25rem; }
.co-cta .btn-brand { flex: 1 1 220px; justify-content: center; }
.co-note { font-size: .78rem; color: var(--bad); font-weight: 600; }

.co-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.co-outline { display: flex; flex-direction: column; gap: .5rem; }
.co-outline details { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 14px; overflow: hidden; }
.co-outline summary { list-style: none; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; cursor: pointer; }
.co-outline summary::-webkit-details-marker { display: none; }
.co-outline summary b { flex: 1; min-width: 0; font-size: .86rem; }
.co-outline summary small { font-size: .7rem; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }
.co-outline summary > i { font-size: .65rem; color: var(--ink-faint); transition: transform .2s; }
.co-outline details[open] summary > i { transform: rotate(180deg); }
.co-num { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: rgba(99,102,241,.1); color: var(--brand); }
.co-outline ol { list-style: none; border-top: 1px solid var(--glass-border); padding: .35rem 0; }
.co-outline li { display: flex; align-items: flex-start; gap: .65rem; padding: .45rem 1rem .45rem 1.1rem; font-size: .82rem; color: var(--ink-soft); }
.co-outline li i { font-size: .72rem; color: var(--ink-faint); margin-top: .3rem; width: 14px; text-align: center; }
.co-outline li.hl { background: rgba(99,102,241,.08); color: var(--brand); font-weight: 700; }
.co-outline li.hl i { color: var(--brand); }

.co-card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r-lg); padding: 1.1rem; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 1rem; }
.co-score { display: flex; gap: 1.25rem; align-items: center; }
.co-big { display: flex; flex-direction: column; align-items: center; gap: .2rem; flex-shrink: 0; min-width: 92px; }
.co-big b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.co-big .stars { font-size: .95rem; }
.co-big small { font-size: .7rem; color: var(--ink-faint); font-weight: 600; }
.co-dist { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.co-dist > div { display: flex; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.co-dist > div > span:first-child { width: 2.2em; white-space: nowrap; }
.co-dist .bar > span { background: #f59e0b; }
.co-dist em { font-style: normal; width: 2em; text-align: right; color: var(--ink-faint); }
.co-rate-btn { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem; border-radius: 12px; border: 1.5px dashed rgba(245,158,11,.5); background: rgba(245,158,11,.06); color: var(--accent-dark); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.co-rate-btn:hover { background: rgba(245,158,11,.12); }
.co-rate-btn u { text-decoration: none; color: var(--brand); }
.co-reviews { display: flex; flex-direction: column; gap: .6rem; }
.co-review { background: var(--surface); border: 1px solid var(--glass-border); border-radius: 14px; padding: .9rem 1rem; }
.co-review header { display: flex; gap: .65rem; align-items: center; margin-bottom: .5rem; }
.co-review img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.co-review header div { display: flex; flex-direction: column; }
.co-review b { font-size: .84rem; }
.co-review small { font-size: .7rem; color: var(--ink-faint); display: flex; align-items: center; gap: .3rem; }
.co-review p { font-size: .85rem; color: var(--ink-soft); line-height: 1.6; overflow-wrap: anywhere; }
.co-muted { font-size: .82rem; color: var(--ink-faint); }

@media (min-width: 900px) {
  .co-hero { flex-direction: row; align-items: stretch; padding: 1rem; gap: 1.75rem; }
  .co-cover { width: 46%; flex-shrink: 0; aspect-ratio: auto; min-height: 280px; }
  .co-info { padding: .5rem .5rem .5rem 0; justify-content: center; }
  .co-info h1 { font-size: 1.9rem; }
  .co-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
}
.co-cta .btn-ghost { flex: 1 1 auto; justify-content: center; }
