/* Question pages (q/), paper pages (paper/), papers.html and the chapter-hub year table. Colours come from style.css. */
.qp-h1 { font-size: clamp(22px, 4.2vw, 30px); line-height: 1.25; }
.qp .card { margin-bottom: 14px; }
.qp-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.qp-nav a, .pp-toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 980px; background: var(--surface); color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.qp-nav a:hover, .pp-toc a:hover { background: var(--accent-soft); }
.qp-links { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.qp-links a, .qp-links-p a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.qp-more { padding: 20px 22px; background: var(--surface); border-radius: 20px; margin-bottom: 24px; }
.qp-more h2 { font-size: 19px; margin: 0 0 12px; }
.qp-more ul { list-style: none; margin: 0; padding: 0; }
.qp-more li { padding: 10px 0; border-top: 1px solid var(--line); }
.qp-more li:first-child { border-top: 0; padding-top: 0; }
.qp-more li a { color: inherit; text-decoration: none; display: block; line-height: 1.45; }
.qp-more li a:hover { color: var(--accent); }
.qp-more small { color: var(--muted); font-size: 13px; }
.qp-full { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.pp-intro { color: var(--muted); max-width: 720px; line-height: 1.55; }
.pp-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.pp-ch { scroll-margin-top: 80px; }
.pp-ch h2 { font-size: 21px; margin: 28px 0 12px; }
.pp-ch h2 small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.pp-ch h2 small a { color: var(--accent); }
.pl-exam { margin: 26px 0; }
.pl-exam h2 small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pl-year { background: var(--surface); border-radius: 18px; padding: 16px 18px; }
.pl-year h3 { margin: 0 0 8px; font-size: 17px; }
.pl-year ul { list-style: none; margin: 0; padding: 0; }
.pl-year li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pl-year li:first-child { border-top: 0; }
.pl-year li a { color: var(--accent); text-decoration: none; }
.pl-year li a:hover { text-decoration: underline; }
.pl-year small { color: var(--muted); white-space: nowrap; }
.hub-years { margin-top: 28px; }
.hy-wrap { overflow-x: auto; background: var(--surface); border-radius: 18px; padding: 6px 16px; max-width: 520px; }
.hy { width: 100%; border-collapse: collapse; font-size: 15px; }
.hy th, .hy td { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); }
.hy thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 13px; }
.hy td { font-variant-numeric: tabular-nums; }
.hy-note, .hub-by { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 720px; }
.hy-note a { color: var(--accent); }
.hub-by b { color: var(--text, inherit); }
@media (max-width: 600px) {
  .qp-more { padding: 16px; border-radius: 18px; }
  .qp-nav a { flex: 1 1 auto; justify-content: center; }
}
.hub-pdf { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; padding: 16px 18px; max-width: 560px; background: var(--surface); border-radius: 18px; color: inherit; text-decoration: none; border: 1px solid var(--line); }
.hub-pdf:hover { border-color: var(--accent); }
.hub-pdf-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.hub-pdf b { display: block; }
.hub-pdf small { color: var(--muted); font-size: 13px; }
/* Marathi / Hindi guide pages */
.lg-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.lg-switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.lg-intro { font-size: 17px; }
.lg-note { color: var(--muted); font-size: 14px; }
.lg-sec { margin: 30px 0; }
.lg-sec h2 { font-size: 22px; margin: 0 0 12px; }
.lg-how { padding-left: 22px; line-height: 1.7; max-width: 720px; }
.lg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.lg-list li { display: flex; align-items: stretch; gap: 8px; background: var(--surface); border-radius: 16px; padding: 6px; }
.lg-ch { flex: 1; display: grid; gap: 2px; padding: 8px 10px; color: inherit; text-decoration: none; border-radius: 12px; }
.lg-ch:hover { background: var(--accent-soft); }
.lg-ch b { font-size: 17px; }
.lg-ch span, .lg-ch small { color: var(--muted); font-size: 13px; }
.lg-pdf { flex: none; align-self: center; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; }
.lg-btn { display: inline-flex; padding: 10px 18px; border-radius: 980px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
/* paper and language pages have no "0 of N attempted" line, so keep the total visible on phones */
@media (max-width: 734px) {
  main.wrap.qp > dl.stats > div:first-child { display: flex; }
  main.wrap.qp > dl.stats > div:nth-child(2)::before { content: "·"; order: 2; margin: 0 8px 0 4px; color: var(--muted); }
}
/* YouTube videos: chapter hub grid, topic-page strip, question-page link */
.hub-vids { margin-top: 26px; }
.hub-vids h2 small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vid { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; background: var(--surface); border-radius: 16px; color: inherit; text-decoration: none; }
.vid:hover .vid-t { color: var(--accent); }
.vid-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--line); }
.vid-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-th b { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; font-weight: 600; }
.vid-tag { align-self: flex-start; margin: 2px 4px 0; padding: 2px 8px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.vid-t { margin: 0 4px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.vid-more { margin-top: 12px; }
.vid-more > summary { display: inline-flex; padding: 8px 16px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; margin-bottom: 12px; }
.tp-vids { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.tp-vids-h { flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--muted); }
.tp-vids a { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; max-width: 100%; background: var(--surface); border-radius: 14px; color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3; }
.tp-vids a:hover { color: var(--accent); }
.tp-vids img { flex: none; width: 96px; height: 54px; object-fit: cover; border-radius: 8px; }
.tp-vids small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.tp-vids a.tp-vids-all { padding: 6px 12px; background: none; color: var(--accent); }
.qp-vid { color: var(--accent); }
@media (max-width: 600px) {
  .vid-grid { grid-template-columns: 1fr; gap: 10px; }
  .vid { display: grid; grid-template-columns: 136px 1fr; grid-template-rows: auto 1fr; column-gap: 10px; row-gap: 4px; padding: 8px; }
  .vid-th { grid-row: 1 / 3; }
  .vid-tag { margin: 0; }
  .vid-t { margin: 0; font-size: 13.5px; }
  .tp-vids img { width: 80px; height: 45px; }
}
/* videos.html */
.vl-std > h2 { font-size: 26px; margin: 34px 0 6px; }
.vl-ch { margin: 18px 0 28px; scroll-margin-top: 80px; }
.vl-ch h3 { font-size: 20px; margin: 0 0 4px; }
.vl-ch h3 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.vl-links { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.vl-links a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.vl-jump { margin: 0 0 8px; }
.vl-jump > summary { display: inline-flex; padding: 8px 16px; border-radius: 980px; background: var(--surface); color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.vl-jump .pp-toc { margin-top: 10px; }
