/* A government exam pack's Learn page (govt-learn.js): the topic list (search, exam filter, subjects, topic cards) and a
   topic (its bar, then the shared video panel - topic-video.css). The site's tokens drive the colours (every theme); the
   pack keeps its body's colour (the exams page's: RRB orange, SSC sky, UPSC violet). */
:root { --rrb: #fb923c; --ssc: #38bdf8; --upsc: #a78bfa; }
.gl { padding: 26px 0 30px; }
.gl [hidden] { display: none !important; }
.gl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; font: 500 12.5px/1.4 var(--mono); color: var(--text3); font-variant-ligatures: none; }
.gl-crumbs a { color: var(--text2); text-decoration: none; }
.gl-crumbs a:hover { color: var(--accent); }
.gl-crumbs b { color: var(--text); font-weight: 600; }
.gl-nojs { padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--text2); }

/* the head: what the pack is, its exams, its counts and the other packs */
.gl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.gl-head h1 { margin: 14px 0 12px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.gl-head .lead { margin: 0; max-width: 46em; }
.gl-exams { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.gl-exams .chip { white-space: normal; }
.gl-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 26px; padding: 18px 22px; border: 1px solid var(--gline); border-radius: var(--r-xl, 22px); background: var(--glass); }
.gl-facts > div:not(.gl-packs) { display: grid; gap: 2px; }
.gl-facts b { font: 800 30px/1 var(--display); color: var(--text); }
.gl-facts span { font: 500 12px/1.3 var(--mono); color: var(--text3); text-transform: uppercase; letter-spacing: .08em; }
.gl-packs { grid-column: 1 / -1; display: flex; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.gl-packs a, .gl-packs b { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; font: 700 13px/1 var(--body); text-decoration: none; color: var(--text2); border: 1px solid var(--line2); }
.gl-packs a:hover { color: var(--text); border-color: var(--accent); }
.gl-packs b.on { color: var(--ink-on-accent, #02101a); background: var(--grad); border-color: transparent; }
.gl-packs i { font: 600 11px/1 var(--mono); font-style: normal; opacity: .8; }

.gl-continue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 22px 0 0; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: var(--text); border: 1px solid var(--gline); background: linear-gradient(90deg, rgba(var(--glow1), .12), transparent 70%); }
.gl-continue span { font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gl-continue b { font: 700 16px/1.3 var(--display); }
.gl-continue small { color: var(--text3); font-size: 13px; }
.gl-continue:hover, .gl-continue:focus-visible { border-color: var(--accent); }

/* the tools: search, the exam filter, the count, the subjects - kept under the header while the list scrolls */
.gl-tools { position: sticky; top: 86px; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; margin: 24px 0 8px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--menu, var(--bg2, #0b1222)); box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9); }
.gl-search { display: flex; align-items: center; gap: 10px; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--glass2); color: var(--text3); }
.gl-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--glow1), .18); }
.gl-search svg { width: 18px; height: 18px; flex: none; }
.gl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 500 15px var(--body); }
.gl-search input::placeholder { color: var(--text3); }
.gl-examf, .gl-subnav { display: flex; flex-wrap: wrap; gap: 6px; }
.gl-examf button, .gl-subnav button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 11px; border-radius: 999px; cursor: pointer; font: 600 12.5px/1 var(--body); color: var(--text2); border: 1px solid var(--line2); background: var(--glass2); }
.gl-examf button i, .gl-subnav button i { font: 600 11px/1 var(--mono); font-style: normal; color: var(--text3); }
.gl-examf button[aria-pressed="true"] { color: var(--ink-on-accent, #02101a); background: var(--grad); border-color: transparent; }
.gl-examf button[aria-pressed="true"] i { color: inherit; }
.gl-examf button:hover, .gl-subnav button:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.gl-subnav button:disabled { opacity: .4; cursor: default; }
.gl-examf button:focus-visible, .gl-subnav button:focus-visible, .gl-t:focus-visible, .gl-back:focus-visible, .gl-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gl-count { margin: 0; font: 500 12.5px/1.3 var(--mono); color: var(--text3); font-variant-ligatures: none; }
.gl-subnav { grid-column: 1 / -1; }

/* a subject and its topics */
.gl-sub { margin: 34px 0 0; padding: 0; scroll-margin-top: 250px; }   /* a <section>: not the site's 64 px section padding */
.gl-sub > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.gl-sub h2 { margin: 0; font: 800 clamp(21px, 2.2vw, 26px)/1.2 var(--display); }
.gl-sc { font: 600 12px/1 var(--mono); color: var(--accent); }
.gl-sub > header small { margin-left: auto; font: 500 12px/1.3 var(--mono); color: var(--text3); }
.gl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.gl-t { display: flex; align-items: center; gap: 12px; min-height: 64px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--glass); transition: border-color .18s ease, transform .18s ease, background-color .18s ease; }
.gl-t:hover { border-color: var(--accent); background: var(--glass2); transform: translateY(-1px); }
.gl-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font: 700 12px/1 var(--mono); font-style: normal; color: var(--accent); background: rgba(var(--glow1), .1); font-variant-ligatures: none; }
.gl-tt { flex: 1; min-width: 0; display: grid; gap: 5px; }
.gl-tt b { font: 700 15px/1.3 var(--body); }
.gl-tt small { font: 500 11.5px/1.3 var(--mono); color: var(--text3); }
.gl-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.gl-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; font: 600 11px/1.2 var(--mono); color: var(--text2); background: rgba(255, 255, 255, .06); font-variant-ligatures: none; }
.gl-tag.on { color: var(--ink-on-accent, #02101a); background: var(--grad); }
.gl-tag.soon { color: var(--text3); background: none; border: 1px dashed var(--line2); }
.gl-tag.seen { color: var(--ok-t, #34d399); background: rgba(52, 211, 153, .1); }
.gl-t em { flex: none; font-style: normal; font-size: 22px; color: var(--text3); }
.gl-none { margin: 30px 0; padding: 22px; text-align: center; border: 1px dashed var(--line2); border-radius: 16px; color: var(--text2); }
.gl-none p { margin: 0 0 12px; }

/* a topic: its bar (back to the list, where it is, previous / next), then the panel */
.gl-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; margin: 0 auto 14px; max-width: 1280px; }
.gl-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; text-decoration: none; font: 700 13.5px/1 var(--body); color: var(--text); border: 1px solid var(--line2); background: var(--glass2); white-space: nowrap; }
.gl-back:hover { border-color: var(--accent); }
.gl-where { margin: 0; min-width: 0; display: grid; gap: 2px; }
.gl-where b { font: 700 14px/1.3 var(--display); }
.gl-where span { font: 500 12px/1.35 var(--mono); color: var(--text3); font-variant-ligatures: none; }
.gl-steps { display: inline-flex; gap: 6px; }
.gl-step { display: grid; min-width: 96px; max-width: 220px; min-height: 40px; align-content: center; padding: 4px 12px; border-radius: 12px; text-decoration: none; font: 700 13px/1.2 var(--body); color: var(--text); border: 1px solid var(--line2); background: var(--glass2); }
.gl-step[rel="next"] { text-align: right; }
.gl-step b { font: inherit; }
.gl-step small { font: 500 11px/1.3 var(--mono); color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-step:hover { border-color: var(--accent); }
.gl-step.off { visibility: hidden; }
.gl-panel { min-height: 60vh; }
.gl-disc { margin: 0; padding: 14px 16px; border-radius: var(--r, 14px); border: 1px dashed var(--line2); color: var(--text3); font-size: 13px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .gl-t { transition: none; } .gl-t:hover { transform: none; } }

@media (max-width: 900px) {
  .gl-head { grid-template-columns: minmax(0, 1fr); }
  .gl-facts { justify-self: start; }
  .gl-tools { position: static; grid-template-columns: minmax(0, 1fr); }
  .gl-sub { scroll-margin-top: 90px; }
}
@media (max-width: 640px) {
  .gl { padding-top: 14px; }
  .gl .wrap { padding: 0 16px; }
  .gl-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; box-sizing: border-box; padding: 14px 16px; gap: 10px 12px; }
  .gl-facts b { font-size: 24px; }
  .gl-packs { flex-wrap: wrap; }
  .gl-grid { grid-template-columns: minmax(0, 1fr); }
  .gl-sub > header small { margin-left: 0; flex-basis: 100%; }
  .gl-examf button, .gl-subnav button, .gl-packs a, .gl-packs b { min-height: 40px; }
  .gl-bar { grid-template-columns: auto minmax(0, 1fr); }
  .gl-steps { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .gl-step { min-width: 0; max-width: none; }
}
