/* /courses/ page (modern design, 08.11.2026). Everything is prefixed gc- so it can't clash with the site's Tailwind classes.
   Arial only (site rule). Dark only, like the rest of the site. Old design: courses.css.BAK-modern */
/* shared with the other pages: title gradient and the rising background stars (as in companies.css) */
.accent-text { background:linear-gradient(to right,#e9d5ff,#60a5fa); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.star-sparkle { background:white; clip-path:polygon(50% 0%,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0% 50%,40% 40%); box-shadow:0 0 10px 2px rgba(255,255,255,0.5); }
@keyframes rise { 0% { transform:translateY(0); opacity:0; } 15% { opacity:0.6; } 85% { opacity:0.6; } 100% { transform:translateY(-110vh); opacity:0; } }
@keyframes twinkle { 0%,100% { transform:scale(0.5); opacity:0.3; } 50% { transform:scale(1.2); opacity:1; } }

.gc { --panel:#131c2e; --panel2:#182235; --line:rgba(148,163,184,.14); --line2:rgba(148,163,184,.24); --ink:#f1f5f9; --soft:#cbd5e1;
  --mute:#94a3b8; --dim:#64748b; --violet:#a855f7; --gold:#fbbf24; font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:1.5; color:var(--ink); }
.gc *, .gc *::before, .gc *::after { box-sizing:border-box; }
.gc button { font-family:inherit; cursor:pointer; }
.gc a { color:inherit; text-decoration:none; }
.gc :focus-visible { outline:2px solid var(--violet); outline-offset:2px; }
@media (max-width:700px) { main.gc { padding-top:72px !important; } }   /* same space under the header as the Companies, Calendar and Layoffs pages */

/* discipline colours = the home page's job tags */
.gc .d-art { --dt:#f472b6; --db:rgba(131,24,67,.32); --dl:rgba(236,72,153,.38); --da:#db2777; }
.gc .d-audio { --dt:#22d3ee; --db:rgba(22,78,99,.32); --dl:rgba(6,182,212,.38); --da:#0891b2; }
.gc .d-design { --dt:#818cf8; --db:rgba(49,46,129,.34); --dl:rgba(99,102,241,.4); --da:#4f46e5; }
.gc .d-prod { --dt:#34d399; --db:rgba(6,78,59,.32); --dl:rgba(16,185,129,.38); --da:#059669; }
.gc .d-prog { --dt:#60a5fa; --db:rgba(30,58,138,.34); --dl:rgba(59,130,246,.4); --da:#2563eb; }
.gc .d-writing { --dt:#a78bfa; --db:rgba(76,29,149,.34); --dl:rgba(139,92,246,.4); --da:#7c3aed; }
.gc .d-esports { --dt:#fb923c; --db:rgba(124,45,18,.32); --dl:rgba(249,115,22,.38); --da:#ea580c; }

/* ── hero ── */
.gc-hero { position:relative; }
.gc-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:28px; align-items:center; }
.gc-hero h1 { margin:0 0 8px; }
.gc-sub { margin:0; max-width:58ch; color:var(--mute); font-size:15px; }
.gc-sub a { color:#c4b5fd; text-decoration:underline; text-underline-offset:3px; }
.gc-figs { display:grid; grid-template-columns:repeat(3, auto); gap:10px; }
.gc-fig { padding:12px 16px; border-radius:16px; background:rgba(19,28,46,.7); border:1px solid var(--line); min-width:112px; }
.gc-fig b { display:block; font-size:24px; font-weight:900; letter-spacing:-.02em; font-variant-numeric:tabular-nums; line-height:1.3; }
.gc-fig span { font-size:11px; font-weight:700; color:var(--mute); text-transform:uppercase; letter-spacing:.06em; }
.gc-fig.tiga b { color:var(--gold); }

.gc-search { position:relative; display:block; margin-top:26px; }
.gc-search svg { position:absolute; left:20px; top:50%; width:20px; height:20px; transform:translateY(-50%); color:var(--dim); pointer-events:none; }
.gc-search input { width:100%; height:60px; border-radius:18px; border:1px solid #334155; background:#1e293b; padding:0 120px 0 54px;
  font-family:Arial, Helvetica, sans-serif; font-size:17px; color:var(--ink); outline:none; transition:border-color .15s, box-shadow .15s; }
.gc-search input::placeholder { color:var(--dim); }
.gc-search input:focus { border-color:rgba(168,85,247,.7); box-shadow:0 0 0 4px rgba(168,85,247,.16); }
.gc-search input::-webkit-search-cancel-button { filter:invert(.6); }
.gc-qcount { position:absolute; right:18px; top:50%; transform:translateY(-50%); font-size:12px; font-weight:700; color:var(--mute); font-variant-numeric:tabular-nums; }

/* quick picks + disciplines */
.gc-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:14px; }
.gc-row-label { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--dim); margin-right:4px; }
.gc-pick { display:inline-flex; align-items:center; gap:7px; padding:8px 13px; border-radius:999px; border:1px solid var(--line2); background:rgba(19,28,46,.6);
  font-size:13px; font-weight:700; color:var(--soft); transition:border-color .15s, background .15s, color .15s; }
.gc-pick svg { width:14px; height:14px; color:var(--mute); }
.gc-pick:hover { border-color:rgba(148,163,184,.45); color:#fff; }
.gc-pick.on { background:rgba(168,85,247,.16); border-color:rgba(168,85,247,.6); color:#fff; }
.gc-pick.on svg { color:#d8b4fe; }
/* discipline buttons: always in their colour, solid with white text when picked (as the home page's discipline buttons) */
.gc-disc { display:inline-flex; align-items:center; gap:8px; padding:8px 14px 8px 11px; border-radius:999px; border:1px solid var(--dl); background:var(--db);
  font-size:13px; font-weight:700; color:var(--dt); transition:background .15s, color .15s, border-color .15s; }
.gc-disc i { width:8px; height:8px; border-radius:50%; background:var(--dt); }
.gc-disc em { font-style:normal; font-size:11px; color:var(--dt); opacity:.75; font-variant-numeric:tabular-nums; }
.gc-disc:hover { background:color-mix(in srgb, var(--da) 30%, transparent); }
.gc-disc.on { background:var(--da); border-color:var(--da); color:#fff; }
.gc-disc.on i { background:#fff; }
.gc-disc.on em { color:#fff; opacity:.85; }

/* ── toolbar (sticks under the site header; --gc-top is set by the page script) ── */
.gc-tools { position:sticky; top:var(--gc-top, 44px); z-index:30; margin:22px -24px 0; padding:10px 24px; background:rgba(15,23,42,.92);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.gc-tools { display:flex; align-items:center; gap:8px; }
.gc-tools-in { display:flex; align-items:center; gap:8px; flex:1; min-width:0; }
/* the search row that slides down from behind the header once the big search has scrolled away (08.11.2026);
   the bar's sticky top glides down by the row's height (--gc-tqh) at the same pace, so nothing on the page moves */
.gc-tools { transition:top .32s cubic-bezier(.22,.9,.3,1); }
.gc-tools.stuck { top:calc(var(--gc-top, 44px) + var(--gc-tqh, 46px)); }
.gc-tqbar { position:fixed; left:0; right:0; top:var(--gc-top, 44px); z-index:31; background:rgba(15,23,42,.92);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); transform:translateY(-100%); visibility:hidden;
  transition:transform .32s cubic-bezier(.22,.9,.3,1), visibility 0s linear .32s; }
.gc-tqbar.show { transform:none; visibility:visible; transition:transform .32s cubic-bezier(.22,.9,.3,1), visibility 0s; }
.gc-tqbar-in { max-width:1200px; margin:0 auto; padding:10px 24px 6px; }
@media (prefers-reduced-motion: reduce) { .gc-tools, .gc-tqbar, .gc-tqbar.show { transition:none; } }
.gc-tq { position:relative; }
.gc-tqn { position:absolute; right:38px; top:50%; transform:translateY(-50%); font-size:12px; color:var(--mute); white-space:nowrap; pointer-events:none; }
.gc-tqn b { color:#fff; font-variant-numeric:tabular-nums; }
.gc-tq svg { position:absolute; left:11px; top:50%; width:15px; height:15px; transform:translateY(-50%); color:var(--dim); pointer-events:none; }
.gc-tq input { width:100%; height:36px; border-radius:10px; border:1px solid #334155; background:#1e293b; padding:0 260px 0 33px; color:#fff; font-size:13px; outline:none; }
.gc-tq input::placeholder { color:var(--dim); }
.gc-tq input:focus { border-color:rgba(168,85,247,.7); box-shadow:0 0 0 3px rgba(168,85,247,.16); }
.gc-tq input::-webkit-search-cancel-button { filter:invert(.6); }
.gc-sdot { width:8px; height:8px; border-radius:50%; background:var(--dt); flex-shrink:0; }
@media (min-width:641px) { .gc-menu[data-k="subj"] { left:0; right:auto; } }
.gc-res { font-size:13px; color:var(--mute); margin-top:14px; }
.gc-res b { color:#fff; font-variant-numeric:tabular-nums; }
.gc-dd { position:relative; }
.gc-dd > button, .gc-toggle { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border-radius:10px; border:1px solid var(--line2);
  background:var(--panel); font-size:13px; font-weight:700; color:var(--soft); white-space:nowrap; }
.gc-dd > button:hover, .gc-toggle:hover { color:#fff; border-color:rgba(148,163,184,.45); }
.gc-dd > button svg { width:14px; height:14px; color:var(--dim); transition:transform .15s; }
.gc-dd.open > button svg { transform:rotate(180deg); }
.gc-dd > button .gc-n { display:grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:var(--violet); color:#fff; font-size:10px; }
.gc-dd > button .gc-n[hidden] { display:none; }
.gc-dd > button.active { border-color:rgba(168,85,247,.6); color:#fff; }
.gc-menu { position:absolute; top:calc(100% + 6px); right:0; min-width:230px; padding:6px; border-radius:14px; background:#172033; border:1px solid var(--line2);
  box-shadow:0 20px 40px -12px rgba(0,0,0,.7); display:none; z-index:60; }
.gc-menu.show { display:block; animation:gc-pop .14s ease-out; }
@keyframes gc-pop { from { opacity:0; transform:translateY(-4px); } }
.gc-menu-h { display:none; }
.gc-opt { display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border-radius:9px; font-size:13px; color:var(--soft); text-align:left; }
.gc-opt:hover { background:rgba(148,163,184,.08); color:#fff; }
.gc-box { width:16px; height:16px; border-radius:5px; border:1.5px solid #475569; display:grid; place-items:center; flex-shrink:0; }
.gc-opt.on .gc-box { background:var(--violet); border-color:var(--violet); }
.gc-opt.on .gc-box::after, .gc-cmp.on .gc-box::after { content:""; width:8px; height:4px; border:2px solid #fff; border-top:0; border-right:0; transform:rotate(-45deg) translate(1px,-1px); }
.gc-opt.radio .gc-box { border-radius:50%; }
.gc-opt.radio.on .gc-box::after { width:6px; height:6px; border:0; border-radius:50%; background:#fff; transform:none; }
/* UCAS points slider, inside its dropdown */
.gc-menu-pts { min-width:260px; padding:10px 12px 12px; }
.gc-menu-pts .gc-menu-h { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 0 8px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--dim); }
.gc-menu-x { width:28px; height:28px; border-radius:50%; border:1px solid var(--line2); display:grid; place-items:center; font-size:17px; line-height:1;
  color:var(--mute); letter-spacing:0; text-transform:none; }
.gc-menu-x:hover { color:#fff; border-color:rgba(148,163,184,.45); }
.gc-ptsbox { display:flex; align-items:center; gap:12px; }
.gc-ptsbox input { flex:1; accent-color:var(--violet); }
.gc-ptsbox output { min-width:40px; text-align:right; font-weight:900; font-variant-numeric:tabular-nums; color:#fff; }
.gc-hint { margin:8px 0 0; font-size:12px; line-height:1.45; color:var(--mute); }
.gc-opt em { margin-left:auto; font-style:normal; font-size:11px; color:var(--dim); font-variant-numeric:tabular-nums; }
.gc-sw { width:28px; height:16px; border-radius:999px; background:#334155; position:relative; transition:background .15s; }
.gc-sw::after { content:""; position:absolute; top:2px; left:2px; width:12px; height:12px; border-radius:50%; background:#fff; transition:transform .15s; }
.gc-toggle.on { border-color:rgba(251,191,36,.55); color:#fde68a; }
.gc-toggle.on .gc-sw { background:#d97706; }
.gc-toggle.on .gc-sw::after { transform:translateX(12px); }
.gc-toggle svg { width:15px; height:15px; }
.gc-toggle.on svg { fill:currentColor; }

.gc-chips { display:flex; gap:6px; flex-wrap:wrap; margin-top:16px; }
.gc-chips:empty { display:none; }
.gc-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 6px 5px 11px; border-radius:999px; background:rgba(168,85,247,.12);
  border:1px solid rgba(168,85,247,.35); font-size:12px; font-weight:700; color:#e9d5ff; }
.gc-chip button { width:18px; height:18px; border-radius:50%; display:grid; place-items:center; color:#d8b4fe; font-size:14px; line-height:1; }
.gc-chip button:hover { background:rgba(168,85,247,.3); color:#fff; }
.gc-chip.clear { background:none; border-color:var(--line2); color:var(--mute); padding-right:11px; }
.gc-savedhead { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:16px; padding:12px 16px; border-radius:14px;
  background:rgba(251,191,36,.08); border:1px solid rgba(251,191,36,.3); color:#fde68a; font-size:13px; }
.gc-savedhead button { font-weight:700; color:#fff; text-decoration:underline; text-underline-offset:3px; }

/* ── university cards (neater layout 10.11.2026, old one in courses.css.BAK-neat) ──
   Text keeps one size; cards in a row stretch to the same height and the figures sit at the bottom.
   A strip along the top is in the selected course's discipline colour. */
.gc-list { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; margin-top:18px; }
.gc-card { display:flex; flex-direction:column; min-width:0; position:relative; overflow:hidden; border-radius:20px; border:1px solid var(--line);
  background:linear-gradient(180deg, var(--panel2), var(--panel)); transition:transform .2s, border-color .2s, box-shadow .2s; }
.gc-card::before { content:""; position:absolute; inset:0 0 auto; height:3px; background:var(--da); }
.gc-card:hover { transform:translateY(-3px); border-color:var(--dl); box-shadow:0 18px 40px -24px var(--da); }
.gc-uni { display:flex; align-items:center; gap:14px; padding:20px 20px 16px; }
.gc-logo { width:48px; height:48px; border-radius:12px; background:#fff; flex-shrink:0; overflow:hidden; display:grid; place-items:center; color:#fff;
  font-weight:900; font-size:15px; box-shadow:0 0 0 1px rgba(255,255,255,.08); }
.gc-logo img { width:100%; height:100%; object-fit:contain; display:block; }
.gc-uni-t { min-width:0; flex:1; }
.gc-uni-t b { display:block; font-size:16px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gc-uni-t span { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--mute); }
.gc-uni-t span svg { width:13px; height:13px; flex-shrink:0; color:var(--dim); }
.gc-star { width:38px; height:38px; border-radius:11px; display:grid; place-items:center; color:var(--dim); border:1px solid var(--line); flex-shrink:0; transition:all .15s; }
.gc-star svg { width:18px; height:18px; }
.gc-star:hover { color:#fde68a; border-color:rgba(251,191,36,.45); }
.gc-star.on { color:var(--gold); background:rgba(251,191,36,.12); border-color:rgba(251,191,36,.5); }
.gc-star.on svg { fill:currentColor; }
/* course picker: one row that scrolls sideways */
.gc-cpick { display:flex; align-items:center; gap:10px; padding:0 20px; min-height:36px; }
.gc-cpick-l { font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--dim); white-space:nowrap; }
.gc-only { font-size:12px; color:var(--dim); }
.gc-tabwrap { position:relative; flex:1; min-width:0; }
.gc-tabs { display:flex; gap:6px; min-width:0; overflow-x:auto; scrollbar-width:none; }
/* PC arrows: only show at an end that has more courses (gc-fl / gc-fr come from fade() in the page script) */
.gc-arr { position:absolute; top:50%; width:28px; height:28px; margin-top:-14px; border-radius:50%; display:none; place-items:center; z-index:1;
  background:var(--panel2); border:1px solid var(--line2); color:var(--soft); box-shadow:0 2px 10px rgba(2,6,23,.6); transition:color .15s, border-color .15s; }
.gc-arr:hover { color:#fff; border-color:rgba(148,163,184,.5); }
.gc-arr svg { width:14px; height:14px; }
.gc-arr.l { left:-2px; } .gc-arr.l svg { transform:rotate(90deg); }
.gc-arr.r { right:-2px; } .gc-arr.r svg { transform:rotate(-90deg); }
@media (hover:hover) and (pointer:fine) {
  .gc-tabs.gc-fl ~ .gc-arr.l, .gc-tabs.gc-fr ~ .gc-arr.r { display:grid; }
  .gc-tabs.gc-fl, .gc-tabs.gc-fr, .gc-tabs.gc-fl .gc-tab, .gc-tabs.gc-fr .gc-tab { cursor:grab; }
  .gc-tabs.gc-drag, .gc-tabs.gc-drag .gc-tab { cursor:grabbing; user-select:none; }
}
.gc-tabs::-webkit-scrollbar { display:none; }
.gc-tabs.gc-fr { -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.gc-tabs.gc-fl { -webkit-mask-image:linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image:linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.gc-tabs.gc-fl.gc-fr { -webkit-mask-image:linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image:linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.gc-tab { flex-shrink:0; height:30px; padding:0 12px; border-radius:999px; border:1px solid var(--line2); font-size:12px; font-weight:700; color:var(--mute);
  white-space:nowrap; position:relative; transition:color .15s, background .15s; }
.gc-tab:hover { color:#fff; }
.gc-tab.on { background:var(--db); border-color:var(--dl); color:var(--dt); }
.gc-tab.saved::after { content:""; position:absolute; top:3px; right:5px; width:5px; height:5px; border-radius:50%; background:var(--gold); }
/* the selected course */
.gc-course { display:flex; flex-direction:column; gap:10px; flex:1; padding:14px 20px 18px; }
.gc-title { margin:0; font-size:19px; line-height:1.3; font-weight:700; color:#fff; text-wrap:balance; }
.gc-facts { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; font-size:13px; color:var(--soft); }
.gc-facts > span + span::before { content:"·"; margin:0 8px; color:var(--dim); }
.gc-facts .q { font-weight:700; color:#fff; }
.gc-tags { display:flex; flex-wrap:wrap; gap:6px; }
.gc-tag { display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 10px; border-radius:8px; font-size:12px; font-weight:700;
  background:rgba(148,163,184,.08); color:var(--soft); border:1px solid var(--line); }
.gc-tag.d { background:var(--db); color:var(--dt); border-color:var(--dl); }
.gc-tag.d i { width:7px; height:7px; border-radius:50%; background:var(--dt); }
.gc-tag.opt svg { width:12px; height:12px; color:#34d399; }
.gc-tag.tiga { color:#1c1003; border:0; background:linear-gradient(135deg, #fde68a, #f59e0b) border-box; }
.gc-tag.tiga svg { width:12px; height:12px; }
/* figures: all four laid out the same way */
.gc-stats { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(2,6,23,.35); }
.gc-st { display:flex; flex-direction:column; gap:4px; min-width:0; padding:14px 16px; }
.gc-st + .gc-st { border-left:1px solid var(--line); }
.gc-st > span { font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gc-st b { font-size:20px; line-height:1.25; font-weight:900; letter-spacing:-.01em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.gc-st b sup { font-size:11px; color:var(--mute); font-weight:700; margin-left:1px; }
.gc-na { font-size:13px; line-height:25px; color:var(--dim); font-weight:700; }
.gc-bar { position:relative; height:5px; margin-top:4px; border-radius:999px; background:rgba(148,163,184,.16); }
.gc-bar i { position:absolute; top:0; bottom:0; left:0; border-radius:999px; background:var(--c); }
.gc-bar.none { visibility:hidden; }
.gc-foot { display:flex; align-items:center; gap:8px; padding:14px 20px; }
.gc-go { display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 18px; border-radius:12px; background:var(--da); color:#fff !important; font-size:13px; font-weight:700; transition:filter .15s; }
.gc-go:hover { filter:brightness(1.12); }
.gc-go svg { width:15px; height:15px; }
.gc-cmp { display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 14px; border-radius:12px; border:1px solid var(--line2); font-size:13px; font-weight:700; color:var(--soft); }
.gc-cmp.on { border-color:rgba(96,165,250,.6); color:#bfdbfe; background:rgba(37,99,235,.12); }
.gc-cmp.on .gc-box { background:#3b82f6; border-color:#3b82f6; }
.gc-cmp[disabled] { opacity:.45; cursor:not-allowed; }
.gc-note { margin-left:auto; font-size:11px; color:var(--dim); }

/* infinite scroll: this marker sits under the last card; when it comes near the screen, the next universities load */
.gc-more { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:22px; font-size:13px; font-weight:700; color:var(--mute); }
.gc-more[hidden] { display:none; }
.gc-more i { width:16px; height:16px; border-radius:50%; border:2px solid rgba(148,163,184,.25); border-top-color:var(--violet); animation:gc-spin .8s linear infinite; }
@keyframes gc-spin { to { transform:rotate(360deg); } }
.gc-empty { grid-column:1/-1; text-align:center; padding:60px 20px; border:1px dashed var(--line2); border-radius:22px; color:var(--mute); }
.gc-empty b { display:block; color:#fff; font-size:17px; margin-bottom:6px; }

/* compare: a floating bar, then a side-by-side window */
.gc-tray { position:fixed; left:50%; bottom:var(--gc-tray-b, 18px); transform:translate(-50%, 160%); z-index:45; display:flex; align-items:center; gap:12px;
  padding:8px 8px 8px 12px; border-radius:999px; background:rgba(23,32,51,.96); backdrop-filter:blur(10px); border:1px solid var(--line2);
  box-shadow:0 20px 50px -14px rgba(0,0,0,.8); opacity:0;
  transition:transform .3s cubic-bezier(.4,0,.9,.6), opacity .22s ease-in .08s, visibility 0s .3s;   /* going away: smooth ease-in slide plus a fade */ width:max-content; max-width:calc(100vw - 24px); visibility:hidden; }   /* max-content: centred with left:50% it was only allowed half the screen, squashing the button on phones */
.gc-tray.show { transform:translate(-50%, 0); visibility:visible; opacity:1; transition:transform .3s cubic-bezier(.2,.9,.3,1.12), opacity .15s; }   /* hidden fully when empty (it peeked over the footer) */
.gc-faces { display:flex; }
.gc-faces .gc-logo { width:30px; height:30px; border-radius:9px; margin-left:-6px; box-shadow:0 0 0 2px #172033; font-size:10px; }
.gc-faces .gc-logo:first-child { margin-left:0; }
.gc-tray-t { font-size:13px; font-weight:700; color:var(--soft); white-space:nowrap; }
.gc-tray-x { font-size:12px; color:var(--mute); text-decoration:underline; text-underline-offset:3px; }
.gc-tx-i { display:none; }
.gc-tray .gc-go { height:38px; flex-shrink:0; white-space:nowrap; border-radius:999px; background:linear-gradient(90deg, #7c3aed, #2563eb); }
.gc-tray .gc-go[disabled] { opacity:.5; cursor:not-allowed; }
.gc-dlg { margin:auto; width:min(920px, calc(100vw - 24px)); max-height:90vh; padding:22px; border-radius:22px; background:#131c2e; border:1px solid var(--line2); color:var(--ink); }
.gc-dlg::backdrop { background:rgba(2,6,23,.7); backdrop-filter:blur(4px); }
.gc-dlg-h { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.gc-dlg-h h2 { font-size:18px; font-weight:700; }
.gc-dlg-h button { width:34px; height:34px; border-radius:50%; border:1px solid var(--line2); font-size:18px; color:var(--mute); }
.gc-cgrid { border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.gc-crow { display:grid; grid-template-columns:150px repeat(var(--n), minmax(0,1fr)); }
.gc-crow > div { padding:12px 14px; border-top:1px solid var(--line); font-size:13px; min-width:0; overflow-wrap:anywhere; }
.gc-crow:first-child > div { border-top:0; }
.gc-crow > div:first-child { color:var(--dim); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; background:rgba(2,6,23,.3); }
.gc-crow .best { color:#86efac; font-weight:700; }
.gc-crow.head > div { display:flex; flex-direction:column; gap:6px; }
.gc-crow.head .gc-logo { width:40px; height:40px; border-radius:11px; }
.gc-crow .gc-go { height:36px; padding:0 14px; width:max-content; }
.gc-dlg-note { margin-top:10px; font-size:12px; color:var(--dim); }

@media (max-width:1060px) { .gc-list { grid-template-columns:minmax(0,1fr); } .gc-hero-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:640px) {
  .gc-figs { grid-template-columns:repeat(3, minmax(0,1fr)); }
  .gc-fig { min-width:0; padding:10px 12px; } .gc-fig b { font-size:19px; }
  .gc-search input { height:54px; font-size:16px; padding-right:16px; }
  .gc-qcount { display:none; }
  .gc-row { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-inline:-16px; padding-inline:16px; }
  .gc-row::-webkit-scrollbar { display:none; }
  .gc-row > * { flex-shrink:0; }
  .gc-tools { margin-inline:-16px; padding-inline:0; }
  .gc-tools-in { overflow-x:auto; scrollbar-width:none; padding-inline:16px; }
  .gc-tools-in { flex-wrap:nowrap; }
  .gc-tqbar-in { padding:10px 16px 6px; }
  .gc-tq input { height:40px; font-size:16px; padding-right:12px; }
  .gc-tqn { display:none; }   /* 16px stops phones zooming in when it's tapped */
  .gc-tools-in::-webkit-scrollbar { display:none; }
  /* rows that scroll sideways fade at the edge that has more to see (gc-fl / gc-fr are set by the page script) */
  .gc-scroll.gc-fr { -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .gc-scroll.gc-fl { -webkit-mask-image:linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image:linear-gradient(to left, #000 calc(100% - 48px), transparent); }
  .gc-scroll.gc-fl.gc-fr { -webkit-mask-image:linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image:linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
  .gc-res { display:none; }
  /* phones: each dropdown opens as a sheet above the bottom tab bar */
  .gc-menu { position:fixed; left:12px; right:12px; top:auto; bottom:calc(var(--gc-tabs, 0px) + 12px); max-height:60vh; overflow:auto; z-index:60; }
  .gc-menu-h { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:6px 4px 6px 10px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--dim); }
  .gc-card { border-radius:18px; }
  .gc-uni { padding:16px 16px 14px; } .gc-cpick, .gc-foot { padding-left:16px; padding-right:16px; } .gc-course { padding:12px 16px 16px; }
  .gc-cpick-l { display:none; }
  .gc-title { font-size:18px; }
  .gc-stats { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .gc-st:nth-child(3) { border-left:0; } .gc-st:nth-child(n+3) { border-top:1px solid var(--line); }
  .gc-foot { flex-wrap:wrap; }
  .gc-note { flex-basis:100%; }
  .gc-foot .gc-go { flex:1; justify-content:center; }
  /* compare on phones (10.11.2026): each row's label is a strip across the top, the courses get the full width below it,
     and the course names stay pinned at the top while scrolling */
  .gc-dlg { width:calc(100vw - 16px); max-height:92vh; padding:16px 12px; border-radius:18px; }
  .gc-dlg-h { margin-bottom:10px; padding:0 4px; }
  .gc-cgrid { overflow:clip; }   /* clip, not hidden: hidden would stop the course names sticking */
  .gc-crow { grid-template-columns:repeat(var(--n), minmax(0,1fr)); }
  .gc-crow > div { padding:8px 10px 12px; font-size:13.5px; border-top:0; overflow-wrap:break-word; hyphens:auto; }
  .gc-crow > div + div + div { border-left:1px solid var(--line); }
  .gc-crow > div:first-child { grid-column:1 / -1; padding:7px 10px; font-size:10.5px; border-top:1px solid var(--line); background:rgba(2,6,23,.45); }
  .gc-crow > div:first-child:empty { display:none; }
  .gc-crow .best { font-size:14.5px; }
  .gc-crow.head { position:sticky; top:-16px; z-index:2; background:#131c2e; box-shadow:0 8px 12px -10px rgba(0,0,0,.8); }
  .gc-crow.head > div:first-child { display:none; }
  .gc-crow.head > div { padding:6px 10px 10px; gap:4px; }
  .gc-crow.head .gc-logo { width:26px; height:26px; border-radius:7px; }
  .gc-crow.head b { font-size:12.5px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:normal; }
  .gc-crow.head span { font-size:11px !important; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .gc-crow .gc-tag.tiga { height:24px; padding:0 8px; font-size:11px; }
  .gc-crow .gc-go { height:36px; padding:0 12px; width:100%; justify-content:center; }
  /* phones: Clear becomes a round x so the compare list can still be cleared */
  .gc-tray-x { width:32px; height:32px; flex-shrink:0; border-radius:50%; display:grid; place-items:center; text-decoration:none; border:1px solid var(--line2); color:var(--soft); }
  .gc-tx-w { display:none; }
  .gc-tx-i { display:block; font-size:20px; line-height:1; margin-top:-2px; }
}
@media (prefers-reduced-motion:reduce) { .gc *, .gc-tray { transition:none !important; animation:none !important; } }
