/* The portal's pages (course list, sign-in, questions, teachers): the players' base look (site/assets/player.css)
   and the course list. account.css adds the menu, dialogs and the questions and teachers' pages. */
:root {
  --bg: #06192a;
  --panel: #0d2a40;
  --panel-2: #12344f;
  --line: #1f4867;
  --ink: #eef5fb;
  --muted: #9fb6c9;
  --accent: #5fd6ff;
  --copper: #f0a64a;
  --orange: #e8892b;
  --dim: rgba(8, 16, 28, 0.42);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px;
  border-bottom: 1px solid var(--line); background: #041322; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img { height: 30px; filter: brightness(0) invert(1); opacity: .85; }
.sel { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sel select { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 8px; font: inherit; }
.sel.small select { padding: 3px 4px; font-size: 13px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { flex: 1; background: none; border: none; padding: 12px; color: var(--muted); font-weight: 600; }
.tab.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.cta { display: inline-block; background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: 11px 20px;
  font-weight: 700; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }
.cta:disabled { opacity: .4; cursor: default; filter: none; }
.cta.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.cta.ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.link { background: none; border: none; color: var(--accent); padding: 6px; text-decoration: underline; }

.hero { max-width: 1100px; margin: 0 auto; padding: 40px 24px 8px; }
.hero h1 { margin: 0 0 8px; font-size: 34px; }
.hero p { margin: 0; color: var(--muted); max-width: 820px; }
.catalog { list-style: none; max-width: 1100px; margin: 24px auto 48px; padding: 0 24px; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.catalog a.course { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.catalog a.course:hover { transform: translateY(-2px); border-color: var(--accent); }
.catalog img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--panel-2); }
.catalog .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.catalog h2 { margin: 0; font-size: 21px; }
.catalog p { margin: 0; color: var(--muted); font-size: 15px; }
.catalog .facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.catalog .facts li { font-size: 12px; color: var(--copper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.catalog .go { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.catalog .go .prog { flex: 1; margin: 0; }
.catalog .go strong { color: var(--accent); }
.none-yet { max-width: 1100px; margin: 24px auto; padding: 0 24px; color: var(--muted); }
@media (max-width: 760px) {
  .hero { padding: 24px 16px 4px; }
  .hero h1 { font-size: 27px; }
  .catalog { padding: 0 16px; grid-template-columns: 1fr; }
}
