:root {
  --ms-ink: #0f172a;
  --ms-muted: #475569;
  --ms-line: #e2e8f0;
  --ms-bg: #ffffff;
  --ms-paper: #ffffff;
  --ms-blue: #1d4ed8;
  --ms-navy: #1e3a8a;
  --ms-ok: #15803d;
  --ms-hot: #9f1239;
}
.ms-page {
  background: #ffffff;
  color: var(--ms-ink);
  min-height: 100vh;
  font-family: "Noto Sans Devanagari", Inter, "Nirmala UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.ms-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 16px calc(48px + env(safe-area-inset-bottom, 0px));
}
.ms-crumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; color: var(--ms-muted); font-size: 0.92rem; }
.ms-crumb a { color: var(--ms-blue); font-weight: 700; text-decoration: none; }
.ms-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0f766e 100%);
  color: #fff;
  border-radius: 20px;
  padding: clamp(16px, 4vw, 28px);
  margin-bottom: 16px;
  border: 2px solid #93c5fd;
}
.ms-hero h1 { margin: 8px 0; font-size: clamp(1.35rem, 4.2vw, 2rem); line-height: 1.28; color: #fff; }
.ms-hero p { margin: 0; max-width: 75ch; color: rgba(255,255,255,.94); }
.ms-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;
}
.ms-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ms-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;
}
.ms-cta a.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.ms-howto { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ms-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;
}
.ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.ms-card, .ms-seo, .ms-q, .ms-note, .ms-chcard {
  background: #fff; border: 1px solid var(--ms-line); border-radius: 14px;
}
.ms-card {
  display: block; padding: 16px; text-decoration: none; color: inherit;
}
.ms-card:hover { border-color: #93c5fd; box-shadow: 0 10px 24px rgba(29, 78, 216, 0.12); }
.ms-card strong { display: block; color: var(--ms-navy); margin: 4px 0 2px; }
.ms-card span { color: var(--ms-blue); font-weight: 700; font-size: 0.92rem; }
.ms-card p { margin: 8px 0 0; color: var(--ms-muted); font-size: 0.92rem; }
.ms-seo, .ms-note { padding: 16px; margin: 0 0 16px; }
.ms-seo h2, .ms-note h2, .ms-chgrid h2 { margin: 0 0 8px; font-size: 1.2rem; color: var(--ms-navy); }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ms-chips a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ms-line);
  background: #fff; color: var(--ms-ink); text-decoration: none; font-weight: 700; font-size: 0.92rem;
}
.ms-chips a.is-on { background: var(--ms-blue); border-color: var(--ms-blue); color: #fff; }
.ms-q { padding: 16px; margin: 0 0 14px; }
.ms-q-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 0.85rem; font-weight: 700; color: var(--ms-muted); }
.ms-badge { background: #dbeafe; color: #1e3a8a; padding: 3px 8px; border-radius: 999px; }
.ms-badge-mcq { background: #dbeafe; color: #1e40af; }
.ms-badge-short { background: #fef3c7; color: #92400e; }
.ms-badge-long { background: #fce7f3; color: #9d174d; }
.ms-badge-hots { background: #ffe4e6; color: var(--ms-hot); }
.ms-q h2 { margin: 0 0 10px; font-size: 1.1rem; line-height: 1.45; }
.ms-opts { list-style: none; margin: 0; padding: 0; }
.ms-opts li {
  margin: 0 0 6px; padding: 10px 12px; border: 1px solid #e2e8f0;
  border-radius: 10px; background: #f8fafc; min-height: 44px;
}
.ms-ans { margin-top: 10px; border-top: 1px dashed var(--ms-line); padding-top: 8px; }
.ms-ans summary {
  cursor: pointer; font-weight: 800; color: var(--ms-blue);
  min-height: 44px; display: flex; align-items: center;
}
.ms-ans summary::-webkit-details-marker { display: none; }
.ms-key { margin: 8px 0; color: var(--ms-ok); font-weight: 800; }
.ms-steps {
  counter-reset: st;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.ms-steps li {
  position: relative;
  margin: 0 0 8px;
  padding: 10px 12px 10px 92px;
  background: #f8fafc;
  border-left: 4px solid var(--ms-blue);
  border-radius: 0 10px 10px 0;
}
.ms-steps li::before {
  counter-increment: st;
  content: "चरण " counter(st);
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ms-blue);
}
.ms-final {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 2px solid #15803d;
  border-radius: 10px;
  font-weight: 800;
  color: #14532d;
}
.ms-pager {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin: 16px 0 10px; font-weight: 800;
}
.ms-pager a { color: var(--ms-blue); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ms-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ms-pages a {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--ms-line); background: #fff; text-decoration: none; font-weight: 800; color: var(--ms-ink);
}
.ms-pages a.is-on { background: var(--ms-blue); border-color: var(--ms-blue); color: #fff; }
.ms-progress-label { margin: 0 0 6px; font-size: 0.88rem; font-weight: 700; color: var(--ms-muted); }
.ms-progress { height: 8px; border-radius: 999px; background: #dbeafe; margin: 0 0 14px; overflow: hidden; }
.ms-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ms-blue), #0f766e); }
.ms-chcard { padding: 14px 16px; margin: 0 0 10px; }
.ms-chcard h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--ms-navy); }
.ms-chcard small { display: block; color: var(--ms-blue); font-weight: 700; font-size: 0.88rem; }
.ms-note a, .ms-chcard a { color: var(--ms-blue); font-weight: 800; text-decoration: none; }
.ms-chcard a { display: inline-block; margin: 6px 12px 0 0; }
@media (max-width: 720px) {
  .ms-cta a { width: 100%; }
  .ms-steps li { padding-left: 12px; padding-top: 32px; }
  .ms-steps li::before { left: 12px; top: 8px; }
}
