/* ============================================================
   CTETcircle — Notes Page Styles
   Uses tokens defined in site-base.css (--navy, --orange, --teal, etc.)
   ============================================================ */

/* ─── Subject colour tokens ─── */
.note-page {
  --subject-color: var(--teal);
  --subject-soft:  var(--soft-teal);
}
.note-page[data-subject="child-development"] { --subject-color: #6750A4; --subject-soft: #EEF2FF; }
.note-page[data-subject="mathematics"]       { --subject-color: var(--orange); --subject-soft: var(--soft-orange); }
.note-page[data-subject="environmental-studies"] { --subject-color: var(--teal); --subject-soft: var(--soft-teal); }
.note-page[data-subject="science"]           { --subject-color: #0EA5E9; --subject-soft: #E0F2FE; }
.note-page[data-subject="social-studies"]    { --subject-color: #D97706; --subject-soft: #FEF3C7; }
.note-page[data-subject="english"]           { --subject-color: #DB2777; --subject-soft: #FCE7F3; }
.note-page[data-subject="hindi"]             { --subject-color: #16A34A; --subject-soft: #DCFCE7; }

/* ─── Hero ─── */
.note-hero {
  background: linear-gradient(135deg, var(--subject-soft) 0%, var(--white) 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}
.note-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.note-breadcrumb {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.note-breadcrumb a { color: var(--slate); }
.note-breadcrumb a:hover { color: var(--subject-color); }
.note-breadcrumb-sep { color: var(--border); }
.subject-chip {
  display: inline-block;
  background: var(--subject-color);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.note-h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--navy);
  font-weight: 800;
}
.note-intro {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(36,49,66,0.78);
  margin: 0;
  max-width: 620px;
}
.note-hero-illus {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.note-hero-illus svg { width: 100%; height: 100%; }

/* ─── Two-column layout: sticky TOC + content ─── */
.note-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 48px 0 80px;
  align-items: start;
}
.note-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 14px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.note-toc h3 {
  margin: 0 0 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 800;
}
.note-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.note-toc li {
  counter-increment: toc;
  margin-bottom: 4px;
}
.note-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: rgba(36,49,66,0.7);
  font-weight: 600;
  line-height: 1.4;
  transition: 0.15s ease;
}
.note-toc a:hover,
.note-toc a.active {
  background: var(--subject-soft);
  color: var(--subject-color);
}
.note-toc a::before {
  content: counter(toc) ". ";
  color: var(--subject-color);
  font-weight: 800;
}

/* ─── Content typography ─── */
.note-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  max-width: 720px;
}
.note-body h2 {
  font-size: 26px;
  margin: 48px 0 16px;
  line-height: 1.3;
  font-weight: 800;
  scroll-margin-top: 100px;
}
.note-body h2:first-child { margin-top: 0; }
.note-body h3 {
  font-size: 19px;
  margin: 28px 0 10px;
  font-weight: 700;
}
.note-body p { margin: 0 0 16px; }
.note-body strong { color: var(--navy); font-weight: 700; }
.note-body ul, .note-body ol { padding-left: 24px; margin: 0 0 20px; }
.note-body li { margin-bottom: 8px; }

/* Content sections inherit `section { padding: 72px 0 }` from site-base.css,
   which leaves a ~144px dead gap between blocks. Neutralise it; section
   spacing then comes from the 48px margin below. */
.note-body section:not([class]) { padding: 0; }
.note-body section:not([class]):not(:first-child) { margin-top: 48px; }

/* ─── Key term box ─── */
.key-term {
  background: var(--subject-soft);
  border-left: 4px solid var(--subject-color);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
}
.key-term-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subject-color);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}
.key-term-body { margin: 0; font-size: 16px; }

/* ─── Exam tip callout ─── */
.exam-tip {
  background: var(--soft-yellow);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 28px 0;
  position: relative;
  border: 1px solid #F0DA9A;
}
.exam-tip::before {
  content: "✦ CTET Exam Tip";
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #B98700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.exam-tip p { margin: 0; }

/* ─── Comparison table ─── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table th {
  background: var(--subject-soft);
  color: var(--navy);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: var(--offwhite); }

/* ─── Practice MCQs ─── */
.mcq-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 56px 0 32px;
  scroll-margin-top: 100px;
}
.mcq-block h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mcq-block h2::before {
  content: "?";
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: var(--subject-color);
  color: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.mcq {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.mcq:last-child { border-bottom: 0; }
.mcq-q { font-weight: 700; margin: 0 0 12px; color: var(--navy); }
.mcq-options {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.mcq-options li {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
}
.mcq-options li.correct {
  background: var(--soft-teal);
  border-color: var(--teal);
  font-weight: 700;
}
.mcq-options li.correct::after {
  content: " ✓";
  color: var(--teal);
  font-weight: 800;
}
.mcq-explain {
  background: var(--offwhite);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(36,49,66,0.78);
  margin: 8px 0 0;
}
.mcq-explain strong { color: var(--navy); }

/* ─── Related pages ─── */
.related-block {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-block h2 {
  font-size: 22px;
  margin: 0 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: 0.18s ease;
}
.related-card:hover {
  border-color: var(--subject-color);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.related-card-chip {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subject-color);
  margin-bottom: 8px;
  display: block;
}
.related-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}

/* ─── Prev / Next ─── */
.note-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.note-nav-link {
  flex: 1;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: 0.18s ease;
  font-size: 14px;
}
.note-nav-link:hover { border-color: var(--subject-color); }
.note-nav-link.next { text-align: right; }
.note-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}
.note-nav-title { font-weight: 700; color: var(--navy); }

/* ─── Hindi typography ─── */
/* Brand font: Noto Sans Devanagari (matches the live ctetcircle.com homepage).
   Body weight bumped to 500 — at 400, Devanagari conjuncts look thin on screen.
   Size + leading bumped vs. the EN body because Devanagari is read slower than
   Latin at the same point size. These are CSS-level reading refinements, not
   brand changes — the font itself is unchanged. */
html[lang="hi"] body,
html[lang="hi"] .note-body {
  font-family: "Noto Sans Devanagari", "Manrope", system-ui, sans-serif;
}
html[lang="hi"] .note-body {
  font-size: 18.5px;
  line-height: 1.95;
  letter-spacing: 0.005em;
  font-weight: 500;
}
html[lang="hi"] .note-body p,
html[lang="hi"] .note-body li,
html[lang="hi"] .key-term-body,
html[lang="hi"] .exam-tip p,
html[lang="hi"] .mcq-options li,
html[lang="hi"] .mcq-explain {
  font-weight: 500;
}
html[lang="hi"] .note-body strong,
html[lang="hi"] .mcq-q {
  font-weight: 700;
}
html[lang="hi"] .note-body h2 { line-height: 1.4; }
html[lang="hi"] .note-h1 { line-height: 1.3; }
html[lang="hi"] .note-intro { font-size: 19px; line-height: 1.75; font-weight: 500; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .note-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .note-hero-illus { aspect-ratio: 16/9; }
  .note-layout { grid-template-columns: 1fr; gap: 32px; }
  .note-toc { position: static; max-height: none; }
  .related-grid { grid-template-columns: 1fr; }
  .note-nav { flex-direction: column; }
  .note-nav-link.next { text-align: left; }
}
