/* JEE/NEET landing panels: inherit the approved unit-library palette and type.
   Geometry, navigation, content, access/review states and motion stay owned by
   the existing components. The unit-wise panel is deliberately outside scope. */

body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes),
html.exam-rail-fallback body.uc-page:is(.uc-jee, .uc-neet) #unit-wise .sr-source {
  --uc-surface: var(--sr-surface-solid, #fff);
  --uc-card: var(--sr-surface-solid, #fff);
  --uc-border: var(--sr-line, rgba(20, 33, 61, .11));
  --uc-line: var(--sr-line, rgba(20, 33, 61, .11));
  --uc-ink: var(--sr-ink, #14213d);
  --uc-body: var(--sr-ink-2, #3e4e68);
  --uc-muted: var(--sr-muted, #617087);
  --uc-accent: var(--sr-accent, #00745b);
  --uc-accent-hover: var(--sr-accent-2, #009b77);
  --uc-accent-text: var(--sr-on-accent, #fff);
  --uc-accent-border: var(--sr-accent, #00745b);
  --uc-soft: var(--sr-accent-soft, #dff3ed);
  --uc-badge: var(--sr-accent-soft, #dff3ed);
  --uc-pass-ink: var(--sr-accent, #00745b);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--uc-ink);
}

/* Retain the JEE accent even before its shared enhancement has initialized. */
body.uc-page.uc-jee :is(#full-mocks, #pyqs, #notes),
html.exam-rail-fallback body.uc-page.uc-jee #unit-wise .sr-source {
  --uc-accent: var(--sr-accent, #b64a26);
  --uc-accent-hover: var(--sr-accent-2, #de6a42);
  --uc-accent-border: var(--sr-accent, #b64a26);
  --uc-soft: var(--sr-accent-soft, #f8e5dd);
  --uc-badge: var(--sr-accent-soft, #f8e5dd);
  --uc-pass-ink: var(--sr-accent, #b64a26);
}

/* Same role as the existing .sr-unit-heading h3 (23px, 800, display stack). */
body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes) h2,
html.exam-rail-fallback body.uc-page:is(.uc-jee, .uc-neet) #unit-wise .sr-source h2 {
  font: 800 23px/1.15 "Segoe UI Variable Display", "Segoe UI", sans-serif;
  letter-spacing: -.03em;
  color: var(--uc-ink);
}

/* Same role as .sr-unit-copy strong. This specificity also survives the
   asynchronously inserted Notes CSS and the existing JEE PYQ inline rules. */
body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes)
  :is(.fc-card h3, .mock-n, .exam-note-card > b),
html.exam-rail-fallback body.uc-page:is(.uc-jee, .uc-neet) #unit-wise .sr-source .uc-card h3 {
  font: 750 17px/1.2 "Segoe UI Variable Display", "Segoe UI", sans-serif;
  letter-spacing: -.02em;
  color: var(--uc-ink);
}

/* Palette only: preserve each component's grid, spacing, radius and effects. */
body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes)
  :is(.fc-card, .mock, .exam-note-card, .exam-note-status) {
  color: var(--uc-ink);
  background-color: var(--uc-surface);
}

body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes)
  :is(.uc-section-intro p, .fc-card p, .mock-subjects, .mock-meta,
      .exam-note-card small, .exam-note-status) {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--uc-muted);
}

/* Match the existing unit filter/control weight without changing sizing. */
body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes)
  :is(.uc-filters button, .uc-reset, .uc-search input) {
  font-family: "Segoe UI", Arial, sans-serif;
}

body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes)
  :is(.uc-filters button, .uc-reset) {
  font-weight: 750;
}

/* Existing unit actions use weight 800; retain each action's current size. */
body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes)
  :is(.uc-start, .mock-foot .go, .exam-note-card > span),
html.exam-rail-fallback body.uc-page:is(.uc-jee, .uc-neet) #unit-wise .sr-source .uc-start {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

/* A failed rail uses the preserved source cards; do not touch normal unit UI. */
html.exam-rail-fallback body.uc-page:is(.uc-jee, .uc-neet) #unit-wise .sr-source .uc-unit-number {
  font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-weight: 800;
}

/* Exact incumbent breakpoint and type sizes: rail CSS lines 339, 370, 381. */
@media (max-width: 720px) {
  body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes) h2,
  html.exam-rail-fallback body.uc-page:is(.uc-jee, .uc-neet) #unit-wise .sr-source h2 {
    font-size: 19px;
  }

  body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #pyqs, #notes)
    :is(.fc-card h3, .mock-n, .exam-note-card > b),
  html.exam-rail-fallback body.uc-page:is(.uc-jee, .uc-neet) #unit-wise .sr-source .uc-card h3 {
    font-size: 14px;
  }
}

/* Quieter reading hierarchy for Full Mocks and Notes, 2026-10-03.
   Unit-wise, PYQs, identity typography and motion retain their existing rules. */
body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes) h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}

body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes)
  :is(.fc-card h3, .exam-note-card > b) {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
}

body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes).uc-panel
  :is(.uc-start, .exam-note-card > span) {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes)
  :is(.uc-filters button, .uc-reset) {
  font-size: 14px;
  font-weight: 500;
}

body.uc-page:is(.uc-jee, .uc-neet) #full-mocks
  :is(.uc-unit-id, .uc-class-badge) {
  font-weight: 500;
}

body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes) .uc-section-intro p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 720px) {
  body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes) h2 {
    font-size: 19px;
  }

  body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes)
    :is(.fc-card h3, .exam-note-card > b) {
    font-size: 14px;
  }

  body.uc-page:is(.uc-jee, .uc-neet) :is(#full-mocks, #notes)
    :is(.uc-filters button, .uc-reset) {
    font-size: 13px;
  }
}
