:root {
  --c9-ink: #0f172a;
  --c9-muted: #475569;
  --c9-line: #e2e8f0;
  --c9-bg: #eef4ff;
  --c9-paper: #fff;
  --c9-blue: #1d4ed8;
  --c9-navy: #1e3a8a;
  --c9-ok: #15803d;
}
.c9-page {
  background: var(--c9-bg);
  color: var(--c9-ink);
  min-height: 100vh;
  font-family: "Noto Sans Devanagari", Inter, "Nirmala UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.c9-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px calc(48px + env(safe-area-inset-bottom, 0px));
}
.c9-crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--c9-muted); font-size: 0.92rem; }
.c9-crumb a { color: var(--c9-blue); font-weight: 700; text-decoration: none; }
.c9-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 48%, #0f766e 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(16px, 4vw, 28px);
  margin-bottom: 16px;
  border: 2px solid #93c5fd;
  box-shadow: 0 16px 36px rgba(30, 58, 138, 0.22);
}
.c9-hero h1 { margin: 8px 0; font-size: clamp(1.35rem, 4.2vw, 2rem); line-height: 1.28; color: #fff; }
.c9-hero p { margin: 0; max-width: 68ch; color: rgba(255,255,255,.94); }
.c9-kicker {
  display: inline-flex; margin: 0; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #dbeafe; font-size: 0.78rem; font-weight: 800;
}
.c9-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.c9-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: #fde68a; color: #78350f; font-weight: 800; text-decoration: none;
}
.c9-cta a.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.c9-tabs, .c9-toolbar, .c9-chapters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
}
.c9-tabs a, .c9-filter, .c9-chip {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--c9-line);
  background: #fff; color: var(--c9-ink); text-decoration: none; font-weight: 700; font-size: 0.95rem;
}
.c9-tabs a.is-on, .c9-filter.is-on, .c9-chip.is-on {
  background: var(--c9-blue); border-color: var(--c9-blue); color: #fff;
}
.c9-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.c9-card {
  display: block; background: #fff; border: 1px solid var(--c9-line);
  border-radius: 16px; padding: 16px; text-decoration: none; color: inherit;
}
.c9-card:hover { border-color: #93c5fd; box-shadow: 0 10px 24px rgba(29, 78, 216, 0.12); }
.c9-ico { font-size: 1.6rem; }
.c9-card strong { display: block; color: var(--c9-navy); margin: 4px 0 2px; }
.c9-card span { color: #1d4ed8; font-weight: 700; font-size: 0.92rem; }
.c9-card p { margin: 8px 0 0; color: var(--c9-muted); font-size: 0.92rem; }
.c9-stat { margin-top: 10px; font-weight: 800; color: var(--c9-blue); font-size: 0.9rem; }
.c9-q {
  background: #fff; border: 1px solid var(--c9-line); border-radius: 14px;
  padding: 14px 16px; margin: 0 0 12px;
}
.c9-q-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 0.88rem; font-weight: 700; color: var(--c9-muted); }
.c9-badge { background: #dbeafe; color: #1e3a8a; padding: 3px 8px; border-radius: 999px; }
.c9-badge-mcq { background: #dbeafe; color: #1e40af; }
.c9-badge-short { background: #fef3c7; color: #92400e; }
.c9-badge-long { background: #fce7f3; color: #9d174d; }
.c9-q h2 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.45; }
.c9-opts { list-style: none; margin: 0; padding: 0; }
.c9-opts li {
  margin: 0 0 6px; padding: 10px 12px; border: 1px solid #e2e8f0;
  border-radius: 10px; background: #f8fafc; min-height: 44px;
}
.c9-ans { margin-top: 8px; border-top: 1px dashed var(--c9-line); padding-top: 8px; }
.c9-ans summary {
  cursor: pointer; font-weight: 800; color: var(--c9-blue);
  min-height: 44px; display: flex; align-items: center;
}
.c9-ans summary::-webkit-details-marker { display: none; }
.c9-key { margin: 8px 0 0; color: var(--c9-ok); font-weight: 800; }
.c9-note {
  background: #fff; border: 1px solid var(--c9-line); border-radius: 14px;
  padding: 16px; margin-top: 18px;
}
.c9-note h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--c9-navy); }
.c9-note a { color: var(--c9-blue); font-weight: 700; }
.c9-pager {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin: 16px 0 10px; font-weight: 800;
}
.c9-pager a { color: var(--c9-blue); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.c9-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.c9-pages a {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--c9-line); background: #fff; text-decoration: none; font-weight: 800; color: var(--c9-ink);
}
.c9-pages a.is-on { background: var(--c9-blue); border-color: var(--c9-blue); color: #fff; }
.c9-empty { background: #fff; padding: 16px; border-radius: 12px; }
.c9-howto {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none;
}
.c9-howto li {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 6px 12px; font-size: 0.82rem; font-weight: 700;
}
.c9-progress-label { margin: 0 0 6px; font-size: 0.88rem; font-weight: 700; color: var(--c9-muted); }
.c9-progress {
  height: 8px; border-radius: 999px; background: #dbeafe; margin: 0 0 14px; overflow: hidden;
}
.c9-progress i {
  display: block; height: 100%; background: linear-gradient(90deg, var(--c9-blue), #0f766e);
  border-radius: inherit;
}
.c9-ellipsis { display: inline-flex; align-items: center; min-width: 24px; font-weight: 800; color: var(--c9-muted); }
.c9-card { transition: transform .15s ease, box-shadow .15s ease; }
.c9-card:hover { transform: translateY(-2px); }
@media (max-width: 720px) {
  .c9-grid { grid-template-columns: 1fr; }
  .c9-tabs, .c9-toolbar, .c9-chapters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .c9-pager { flex-direction: column; align-items: stretch; }
  .c9-cta a { width: 100%; }
  .c9-howto li { flex: 1 1 calc(50% - 8px); }
}
