:root { --accent1: #0d47a1; --accent2: #1976d2; }

/* UPSC pages use tighter h1 spacing */
h1 { margin: 48px 0 8px; }

/* Exam label pill */
.exam-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  padding: 3px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

/* Wider section row for UPSC multi-GS layout */
.section-row {
  gap: 28px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto 8px;
}

/* Sections are slightly wider and use margins instead of flex gap */
section {
  flex: 1 1 360px;
  max-width: 520px;
  margin: 0 0 32px;
}

section h2 { font-size: 1.2rem; }

section p {
  font-size: .92rem;
  line-height: 1.65;
  color: #555;
  margin-top: 0;
}

/* Subject info chips */
.subject-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.meta-chip {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e8eaf6;
  color: var(--accent1);
  border: 1px solid #c5cae9;
}

/* Full-width key topics row */
section.subject-key-topics { max-width: 1080px; margin-left: auto; margin-right: auto; }
section.subject-key-topics > h2 { margin-bottom: 10px; }
section.subject-key-topics .subject-meta { margin-bottom: 14px; }

/* Greyed-out coming-soon button */
.btn.coming-soon {
  background: #e0e0e0;
  color: #999;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

/* Back button (used on coming-soon placeholder pages) */
.btn-back {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--accent1);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: opacity .2s;
}
.btn-back:hover { opacity: .85; }

/* Coming-soon box (UPSC variant — light, not gradient) */
.coming-soon-box {
  max-width: 600px;
  margin: 32px auto;
  padding: 40px 32px;
  text-align: center;
  background: var(--bg-secondary, #f5f5f5);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 16px;
}
.coming-soon-icon { font-size: 3rem; margin-bottom: 12px; }
.coming-soon-box h2 { font-size: 1.4rem; margin: 0 0 12px; color: var(--text-primary, #222); }
.coming-soon-box p  { color: var(--text-secondary, #666); font-size: .95rem; line-height: 1.6; margin: 0 0 24px; }

/* UPSC footer is light (vs dark in other subjects) */
.footer { background: #f0f0f0; color: #333; font-size: .85rem; }

/* Dark mode */
[data-theme="dark"] section  { background: rgba(30,30,30,.85); }
[data-theme="dark"] .meta-chip { background: #1e2a4a; border-color: #2a3a6a; }
[data-theme="dark"] .footer  { background: #1a1a1a; color: #aaa; }
[data-theme="dark"] .btn.coming-soon { background: #2d2d2d; color: #777; }
