/* R3 approved Chapter Library. Native layout; low motion, readable density. */
.uc-page {
  --uc-bg: #e8f6f2;
  --uc-surface: #fff;
  --uc-ink: #0b1b30;
  --uc-body: #244368;
  --uc-muted: #496583;
  --uc-border: #d4e2e9;
  --uc-accent: #0e7034;
  --uc-accent-hover: #095c29;
  --uc-accent-text: #fff;
  --uc-accent-border: #0e7034;
  --uc-header: #08352f;
  --uc-soft: #e3f4ef;
  --uc-badge: #d0f2e8;
  --uc-pass-ink: #07583f;
  --uc-number: #cde2da;
  --uc-focus: #0067a5;
  margin: 0;
  background: var(--uc-bg);
  color: var(--uc-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.uc-page.uc-jee {
  --uc-bg: #eef2f9;
  --uc-ink: #10213e;
  --uc-body: #274576;
  --uc-muted: #48618c;
  --uc-border: #d5e1f0;
  --uc-accent: #fb923c;
  --uc-accent-hover: #f97316;
  --uc-accent-text: #11223e;
  --uc-accent-border: #c2410c;
  --uc-header: #11223e;
  --uc-soft: #fff0e3;
  --uc-badge: #ffe4ce;
  --uc-pass-ink: #9a340b;
  --uc-number: #ffd0ad;
}
.uc-page *, .uc-page *::before, .uc-page *::after { box-sizing: border-box; }
.uc-page :is(button, input) { font: inherit; }
.uc-page :is(a, button, input):focus-visible { outline: 3px solid var(--uc-focus); outline-offset: 3px; }
.uc-page .ti { flex: 0 0 auto; }
.uc-page #mcchHdr { background: var(--uc-header); }
.uc-page #mcchHdr .mcch-in { max-width: 1240px; }
.uc-page #mcchHdr .mcch-nav > a, .uc-page #mcchHdr .mcch-ex > button { padding-inline: 9px; }
.uc-page .mcch-ft { background: var(--uc-header); }
.uc-main { width: min(100% - 64px, 1180px); margin: 0 auto; padding: 24px 0 40px; }
.uc-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--uc-muted); font-size: 14px; margin-bottom: 8px; }
.uc-breadcrumb a { color: var(--uc-body); text-decoration: none; }
.uc-breadcrumb a:hover { text-decoration: underline; }
.uc-intro h1, .uc-panel h2, .uc-card h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.uc-intro h1 { margin: 0; font-size: clamp(38px, 4.3vw, 56px); line-height: 1.12; }
.uc-intro p, .uc-section-intro p { margin: 3px 0 0; color: var(--uc-muted); font-size: 19px; line-height: 1.4; }
.uc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 22px; background: var(--uc-surface); border: 1px solid var(--uc-border); border-radius: 7px; }
.uc-tabs a { min-width: 0; padding: 11px 7px; color: var(--uc-ink); font-weight: 600; text-align: center; text-decoration: none; border-right: 1px solid var(--uc-border); line-height: 1.4; }
.uc-tabs a:last-child { border-right: 0; }
.uc-tabs a.is-active { background: var(--uc-accent); color: var(--uc-accent-text); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--uc-accent-border); }
.uc-tabs a:hover:not(.is-active), .uc-filters button:hover:not([aria-pressed="true"]) { background: var(--uc-soft); }
.uc-panel { scroll-margin-top: 90px; }
.uc-panel:focus-visible { outline: 2px solid var(--uc-focus); outline-offset: 8px; }
.uc-panel + .uc-panel { margin-top: 24px; }
.uc-page.uc-ready .uc-panel { margin-top: 0; }
.uc-panel h2 { margin: 0; font-size: 36px; line-height: 1.15; }
.uc-subjects { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.uc-filters button, .uc-reset { border: 1px solid var(--uc-border); border-radius: 7px; background: var(--uc-surface); color: var(--uc-ink); cursor: pointer; font-weight: 600; }
.uc-subject { display: inline-flex; min-height: 46px; min-width: 166px; align-items: center; justify-content: center; gap: 12px; padding: 9px 20px; }
.uc-subject .ti { font-size: 25px; line-height: 1; }
.uc-filters button[aria-pressed="true"] { background: var(--uc-accent); color: var(--uc-accent-text); border-color: var(--uc-accent-border); }
.uc-filter-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 16px; margin: 17px 0 18px; }
.uc-search { min-width: 0; position: relative; display: flex; align-items: center; }
.uc-search > .ti { pointer-events: none; position: absolute; left: 14px; font-size: 22px; color: var(--uc-ink); }
.uc-search input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--uc-border); border-radius: 7px; background: var(--uc-surface); color: var(--uc-ink); padding: 10px 12px 10px 45px; font-size: 14px; }
.uc-search input::placeholder { color: var(--uc-muted); opacity: 1; }
.uc-classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.uc-class-filter { min-height: 44px; white-space: nowrap; padding: 8px 20px; font-size: 14px; }
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.uc-card { min-width: 0; display: flex; flex-direction: column; padding: 18px 17px 14px; border: 1px solid var(--uc-border); border-radius: 9px; background: var(--uc-surface); }
.uc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uc-unit-id { font-size: 14px; font-weight: 700; }
.uc-subject-icon { color: var(--uc-pass-ink); font-size: 26px; line-height: 1; }
.uc-card-title { position: relative; min-height: 113px; margin-top: 13px; padding-bottom: 12px; }
.uc-card h3 { position: relative; z-index: 1; margin: 0 48px 7px 0; font-size: 27px; line-height: 1.12; overflow-wrap: anywhere; }
.uc-unit-number { position: absolute; top: -7px; right: 0; color: var(--uc-number); font: 700 82px/.95 Georgia, serif; letter-spacing: -.08em; user-select: none; }
.uc-class-badge { position: relative; display: inline-block; border-radius: 7px; padding: 4px 12px; background: var(--uc-badge); color: var(--uc-ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.uc-chapters { border-top: 1px solid var(--uc-border); padding-top: 12px; padding-bottom: 20px; flex: 1; color: var(--uc-body); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.uc-chapters h4 { display: flex; gap: 10px; align-items: center; margin: 0 0 4px; font-size: 14px; color: var(--uc-ink); }
.uc-chapters h4 .ti { font-size: 21px; font-weight: 400; }
.uc-chapters h5 { margin: 7px 0 0; font-size: 14px; color: var(--uc-ink); }
.uc-chapters ul { margin: 0; padding-left: 28px; }
.uc-chapters li { padding-left: 3px; }
.uc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 0; list-style: none; padding: 12px 0 10px; margin: 0; color: var(--uc-body); border-top: 1px solid var(--uc-border); font-size: 12px; }
.uc-meta li { display: flex; align-items: center; gap: 6px; padding: 0 8px; border-right: 1px solid var(--uc-border); white-space: nowrap; }
.uc-meta li:first-child { padding-left: 0; }
.uc-meta li:last-child { border-right: 0; padding-right: 0; }
.uc-meta .ti { font-size: 20px; color: var(--uc-ink); }
.uc-pass { display: flex; align-items: center; gap: 9px; min-height: 36px; margin: 1px -3px 6px; padding: 8px 10px; background: var(--uc-soft); color: var(--uc-pass-ink); font-size: 12px; font-weight: 600; border-radius: 6px; }
.uc-pass .ti { font-size: 20px; }
.uc-start { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; margin: 0 -3px; padding: 9px 12px; color: var(--uc-accent-text); background: var(--uc-accent); border: 1px solid var(--uc-accent-border); border-radius: 6px; text-decoration: none; font-weight: 600; }
.uc-start:hover { background: var(--uc-accent-hover); }
.uc-start .ti { font-size: 21px; }
.uc-empty { margin-top: 16px; padding: 28px; background: var(--uc-surface); color: var(--uc-body); border: 1px solid var(--uc-border); border-radius: 9px; }
.uc-empty h3 { margin: 0; color: var(--uc-ink); }
.uc-empty p { margin: 0 0 14px; }
.uc-empty a { color: var(--uc-body); text-underline-offset: 3px; }
.uc-reset { min-height: 44px; padding: 9px 16px; }
.uc-filter-empty { display: none; }
.uc-page.uc-ready .uc-filter-empty:not([hidden]) { display: block; }
.uc-no-published { grid-column: 1 / -1; }
.uc-page [hidden] { display: none; }
.uc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.uc-skip { position: fixed; z-index: 1001; top: 6px; left: 12px; transform: translateY(-160%); padding: 10px 14px; background: var(--uc-surface); color: var(--uc-ink); border-radius: 6px; }
.uc-skip:focus { transform: translateY(0); }
.uc-nojs-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 24px; background: var(--uc-header); }
.uc-nojs-nav a { color: #fff; }
.uc-noscript { color: var(--uc-body); }
body.uc-page.dark, html[data-theme="dark"] body.uc-page {
  --uc-bg: #0d191b;
  --uc-surface: #14262a;
  --uc-ink: #f0f7f4;
  --uc-body: #d2e3e0;
  --uc-muted: #adcbc6;
  --uc-border: #38545a;
  --uc-soft: #193b32;
  --uc-badge: #204b3c;
  --uc-pass-ink: #b4f0d1;
  --uc-number: #36594e;
  --uc-focus: #80c8ff;
}
body.uc-page.uc-jee.dark, html[data-theme="dark"] body.uc-page.uc-jee {
  --uc-bg: #0e1727;
  --uc-surface: #18263d;
  --uc-ink: #f1f5ff;
  --uc-body: #d6e2fa;
  --uc-muted: #b5c8ea;
  --uc-border: #3a4d6b;
  --uc-soft: #392c26;
  --uc-badge: #483628;
  --uc-pass-ink: #ffc591;
  --uc-number: #68442d;
}
@media (max-width: 1100px) {
  .uc-page #mcchHdr .mcch-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--uc-header); flex-direction: column; align-items: stretch; padding: 10px; gap: 4px; }
  .uc-page #mcchHdr .mcch-nav.open { display: flex; }
  .uc-page #mcchHdr .mcch-burger { display: inline-flex; }
  .uc-page #mcchHdr .mcch-mega { position: static; width: auto; max-width: 100%; grid-template-columns: 1fr; box-shadow: none; opacity: 1; visibility: visible; transform: none; margin-top: 6px; display: none; }
  .uc-page #mcchHdr .mcch-ex.open .mcch-mega { display: grid; }
  .uc-page #mcchHdr .mcch-ex > button { width: 100%; justify-content: space-between; }
  .uc-filter-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .uc-classes { width: max-content; max-width: 100%; }
  .uc-grid { gap: 16px; }
  .uc-card { padding-inline: 15px; }
}
@media (max-width: 900px) {
  .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .uc-main { width: calc(100% - 32px); padding-top: 18px; }
  .uc-page #mcchHdr .mcch-in { padding: 12px 16px; }
  .uc-page #mcchHdr .mcch-brand { gap: 7px; font-size: 17px; }
  .uc-intro h1 { font-size: 39px; }
  .uc-breadcrumb { font-size: 12px; margin-bottom: 5px; }
  .uc-intro p, .uc-section-intro p { font-size: 14px; line-height: 1.5; }
  .uc-tabs { margin: 17px 0 20px; }
  .uc-tabs a { display: flex; align-items: center; justify-content: center; padding: 10px 4px; font-size: 12px; min-height: 42px; }
  .uc-panel h2 { font-size: 29px; }
  .uc-subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
  .uc-subject { min-width: 0; min-height: 44px; gap: 7px; padding: 8px 5px; font-size: 12px; }
  .uc-subject .ti { font-size: 23px; }
  .uc-jee .uc-subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uc-jee .uc-subject:last-child { grid-column: 1 / -1; }
  .uc-filter-row { margin: 14px 0; }
  .uc-search input { min-height: 42px; font-size: 12px; }
  .uc-classes { width: 100%; gap: 6px; }
  .uc-class-filter { min-width: 0; min-height: 39px; padding: 8px 3px; font-size: 11px; }
  .uc-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .uc-card { padding: 16px 16px 13px; }
  .uc-card-title { min-height: 90px; margin-top: 12px; }
  .uc-card h3 { font-size: 26px; margin-right: 55px; }
  .uc-unit-number { font-size: 74px; top: -3px; }
  .uc-chapters { padding-top: 10px; padding-bottom: 13px; font-size: 14px; }
  .uc-meta { padding-top: 10px; font-size: 12px; }
  .uc-meta li { padding-inline: 7px; gap: 5px; }
  .uc-meta .ti { font-size: 19px; }
  .uc-empty { padding: 22px 18px; }
}
@media (max-width: 350px) {
  .uc-main { width: calc(100% - 24px); }
  .uc-page #mcchHdr .mcch-in { padding-inline: 12px; }
  .uc-subject { gap: 4px; font-size: 11px; }
  .uc-subject .ti { font-size: 20px; }
  .uc-card { padding-inline: 13px; }
  .uc-card h3 { font-size: 24px; margin-right: 45px; }
  .uc-meta { font-size: 11px; }
  .uc-meta li { padding-inline: 5px; gap: 4px; }
  .uc-meta .ti { font-size: 17px; }
}
