/* India State GK — saffron / white / green */
:root {
  --sgk-saffron: #f97316;
  --sgk-green: #15803d;
  --sgk-navy: #0f172a;
  --sgk-ink: #0f172a;
  --sgk-muted: #475569;
  --sgk-line: #e2e8f0;
  --sgk-bg: #f8fafc;
  --sgk-paper: #fff;
}
.sgk-page {
  background: var(--sgk-bg);
  color: var(--sgk-ink);
  min-height: 100vh;
  font-family: var(--gks-font, Inter, "Noto Sans Devanagari", "Nirmala UI", sans-serif);
  font-size: var(--gks-fs-body, 1.0625rem);
  line-height: 1.65;
  overflow-x: clip;
}
.sgk-shell {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px calc(48px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.sgk-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--gks-fs-small, 0.9rem);
  margin-bottom: 12px;
  color: var(--sgk-muted);
}
.sgk-crumb a { color: #c2410c; font-weight: 700; text-decoration: none; }

.sgk-hero {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 40%, #15803d 100%);
  color: #fff;
  border-radius: 18px;
  padding: clamp(16px, 4vw, 28px);
  margin-bottom: 16px;
  box-shadow: 0 16px 36px rgba(194, 65, 12, 0.22);
  border: 2px solid #fbbf24;
}
.sgk-hero h1 {
  margin: 8px 0;
  font-size: var(--gks-fs-h1, clamp(1.3rem, 4vw, 2rem));
  color: #fff;
  line-height: 1.25;
}
.sgk-hero p { margin: 0; color: rgba(255,255,255,.93); max-width: 68ch; }
.sgk-kicker {
  display: inline-flex;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  color: #fef3c7;
  border-radius: 999px;
  padding: 4px 10px;
}
.sgk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.sgk-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--gks-fs-small, .85rem);
}
.sgk-hero-actions a.is-on,
.sgk-hero-actions a.sgk-cta {
  background: #fef3c7;
  color: #9a3412 !important;
  border-color: #fef3c7;
}

.sgk-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin: 0 0 14px;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.sgk-tabs a,
.sgk-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--sgk-line);
  background: #fff;
  color: var(--sgk-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--gks-fs-small, .85rem);
  cursor: pointer;
  font-family: inherit;
}
.sgk-tabs a.is-on,
.sgk-filter.is-on {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}

.sgk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.sgk-card {
  display: block;
  background: var(--sgk-paper);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.sgk-card strong { display: block; color: #9a3412; font-size: var(--gks-fs-sub, 1.02rem); }
.sgk-card p { margin: 6px 0 0; color: var(--sgk-muted); font-size: var(--gks-fs-small, .88rem); }
.sgk-stat { margin-top: 8px; font-weight: 800; color: #15803d; font-size: 0.82rem; }
.sgk-card-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }

.sgk-score {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.sgk-q {
  background: #fff;
  border: 1px solid var(--sgk-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.sgk-q-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sgk-chip {
  background: #ffedd5;
  color: #9a3412;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.sgk-chip-topic { background: #dcfce7; color: #166534; }
.sgk-q h3 { margin: 0 0 6px; font-size: var(--gks-fs-sub, 1.05rem); line-height: 1.45; }
.sgk-q-en { margin: 0 0 10px; color: var(--sgk-muted); font-size: var(--gks-fs-small, .92rem); }
.sgk-opts { list-style: none; margin: 0; padding: 0; }
.sgk-opts li { margin: 0 0 8px; }
.sgk-opt {
  display: flex;
  width: 100%;
  text-align: left;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  align-items: center;
}
.sgk-opt.is-correct { background: #dcfce7 !important; border-color: #22c55e !important; color: #15803d; font-weight: 700; }
.sgk-opt.is-wrong { background: #fee2e2 !important; border-color: #ef4444 !important; color: #b91c1c; }
.sgk-ans { margin-top: 10px; border-top: 1px dashed var(--sgk-line); padding-top: 8px; }
.sgk-ans summary { cursor: pointer; font-weight: 800; color: #c2410c; min-height: 40px; display: flex; align-items: center; }
.sgk-key { color: #15803d; font-weight: 800; }

.sgk-note, .sgk-links {
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
}
.sgk-note h2, .sgk-links h2 { margin: 0 0 8px; font-size: var(--gks-fs-h3, 1.25rem); color: #9a3412; }
.sgk-links a { color: #c2410c; font-weight: 700; }
.sgk-links ul { margin: 0; padding-left: 18px; }

@media (max-width: 767px) {
  .sgk-shell { padding: 10px 12px calc(36px + env(safe-area-inset-bottom, 0px)); }
  .sgk-hero { text-align: center; padding: 14px 12px 16px; }
  .sgk-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .sgk-hero-actions a { width: 100%; box-sizing: border-box; font-size: 0.78rem; }
  .sgk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sgk-card { padding: 12px 10px; min-width: 0; }
  .sgk-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .sgk-score { top: 58px; font-size: 0.82rem; }
  .sgk-q { padding: 12px; }
  .sgk-q h3 { font-size: 1rem; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .sgk-hero-actions { gap: 6px; }
}
