/* css/notes.css */
/* Public notes: shared chrome + one design for every note page (.note-content). */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.notes-body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Devanagari', sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: #1d4ed8; }

/* ---------- Common header / footer ---------- */
.notes-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%); color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  line-height: normal;
}
.notes-header-inner {
  width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 12px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.notes-nav { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.notes-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.notes-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.notes-nav a.is-current { color: #fff; background: rgba(255,255,255,.14); font-weight: 600; }
.notes-nav .notes-nav-cta { color: #fff; background: #16a34a; padding: 9px 16px; border-radius: 11px; font-weight: 700; margin-left: 8px; }
.notes-nav .notes-nav-cta:hover { color: #fff; background: #15803d; }
@media (max-width: 900px) {
  .notes-nav .notes-nav-extra { display: none; }
}

.notes-tabs { display: none; }
@media (max-width: 640px) {
  .notes-tabs { display: flex; background: #17304f; border-top: 1px solid rgba(255,255,255,.08); }
  .notes-tabs a { flex: 1; text-align: center; padding: 8px 4px; color: #cbd5e1; text-decoration: none; font-size: 12.5px; font-weight: 600; border-bottom: 2px solid transparent; }
  .notes-tabs a.is-current { color: #fff; border-bottom-color: #fbbf24; }
}

.notes-crumbs { max-width: 1100px; margin: 0 auto; padding: 10px 16px 0; font-size: 12.5px; color: #64748b; }
.notes-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.notes-crumbs li + li::before { content: "›"; margin-right: 4px; color: #94a3b8; }
.notes-crumbs a { color: #475569; text-decoration: none; }
.notes-crumbs a:hover { text-decoration: underline; }

.notes-main { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 16px; }
.notes-crumbs { width: 100%; }

/* ---------- Notes list / note home ---------- */
.notes-hero {
  background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #fff;
  padding: 24px 28px; border-radius: 14px; margin-bottom: 20px; border-left: 8px solid #16a34a;
}
.notes-hero h1 { margin: 0 0 8px; font-size: 26px; }
.notes-hero p { margin: 0; opacity: .92; max-width: 860px; }
.notes-empty { color: #64748b; }

.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.notes-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px;
  color: inherit; text-decoration: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
  transition: transform .15s, box-shadow .15s;
}
.notes-card:hover { transform: translateY(-2px); box-shadow: 0 12px 20px -5px rgba(0,0,0,.1); }
.notes-card h2 { margin: 0; font-size: 18px; color: #1e3a5f; }
.notes-card p { margin: 0; font-size: 13px; color: #475569; }
.notes-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: #64748b; }
.notes-card-cta { margin-top: auto; font-weight: 600; color: #1e3a5f; }
.notes-card-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.notes-lang-badge {
  font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: #e0f2fe; color: #075985; border: 1px solid #bae6fd;
}

.notes-lang {
  position: fixed; right: 14px; bottom: 14px; z-index: 90;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15,23,42,.18);
  max-width: calc(100vw - 28px);
}
.notes-lang-icon { font-size: 15px; padding: 0 4px 0 6px; }
.notes-lang a {
  font-size: 13px; font-weight: 600; line-height: 1; padding: 8px 12px; border-radius: 999px;
  color: #1e3a5f; text-decoration: none; white-space: nowrap;
}
.notes-lang a:hover { background: #f1f5f9; }
.notes-lang a.is-current { background: #1e3a5f; color: #fff; }
.notes-lang.is-loading { opacity: .7; }
.notes-lang.is-loading a:not(.is-current) { pointer-events: none; }
body.notes-body:has(.notes-lang) .sff { padding-bottom: 64px; }

.notes-toc { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 22px; margin-top: 24px; }
.notes-toc h2 { margin: 0 0 10px; font-size: 18px; color: #1e3a5f; }
.notes-toc-list { margin: 0; padding-left: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 18px; }
.notes-toc-list a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #1e293b; padding: 6px 8px; border-radius: 8px; }
.notes-toc-list a:hover { background: #f1f5f9; }
.notes-toc-list ol { list-style: none; padding-left: 36px; margin: 0; }
.notes-toc-list + .notes-toc-group, .notes-toc-group + .notes-toc-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.notes-toc-group h3 { margin: 0 0 6px; font-size: 15px; }
.notes-toc-group h3 a { color: #1e3a5f; text-decoration: none; border-left: 4px solid #22c55e; padding-left: 8px; }
.notes-toc-group h3 a:hover { text-decoration: underline; }
.notes-code {
  display: inline-block; min-width: 28px; text-align: center;
  background: #1e3a5f; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.notes-source { font-size: 12px; color: #64748b; margin: 14px 0 0; text-align: center; }

.notes-practice { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 16px 20px; margin-top: 24px; }
.notes-practice h2 { margin: 0 0 10px; font-size: 18px; color: #14532d; }
.notes-practice-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.notes-practice-item + .notes-practice-item { border-top: 1px solid #dcfce7; }
.notes-practice-text { display: flex; flex-direction: column; min-width: 0; }
.notes-practice-text strong { color: #1e293b; font-size: 15px; }
.notes-practice-text span { color: #475569; font-size: 13px; }
.notes-practice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notes-practice-btn {
  display: inline-block; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
  background: #16a34a; color: #fff; border: 1px solid #16a34a;
}
.notes-practice-btn:hover { background: #15803d; color: #fff; }
.notes-practice-btn.is-outline { background: #fff; color: #15803d; }
.notes-practice-btn.is-outline:hover { background: #dcfce7; color: #15803d; }

/* ---------- Page chrome ---------- */
.notes-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: #64748b; margin-bottom: 12px; }
.notes-page-meta a { color: #1e3a5f; font-weight: 600; text-decoration: none; }
.notes-verified { color: #15803d; font-weight: 600; }
.notes-pin { margin-left: auto; }
.notes-pin-btn {
  display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 600;
  color: #1e3a5f; background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; padding: 5px 12px;
  cursor: pointer; text-decoration: none;
}
.notes-pin-btn:hover { background: #f1f5f9; text-decoration: none; }
.notes-pin-btn.is-pinned { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.notes-pin-btn:disabled { opacity: .6; cursor: wait; }
.notes-font { display: inline-flex; gap: 2px; padding: 3px; margin-left: auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; }
.notes-font[hidden] { display: none; }
.notes-font + .notes-pin { margin-left: 0; }
.notes-font button {
  font: inherit; font-size: 12.5px; font-weight: 600; line-height: 20px; color: #1e3a5f;
  background: none; border: 0; border-radius: 999px; padding: 2px 10px; cursor: pointer;
}
.notes-font button:hover { background: #f1f5f9; }
.notes-copy-all { display: inline-flex; gap: 6px; margin-left: auto; }
.notes-copy-all + .notes-font, .notes-copy-all + .notes-pin { margin-left: 0; }
.notes-copy-all button {
  font: inherit; font-size: 12.5px; font-weight: 600; color: #1e3a5f; background: #fff;
  border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 11px; cursor: pointer;
}
.notes-copy-all button:hover { background: #f1f5f9; }
.notes-copy-all button:disabled, .nb-copy:disabled { opacity: .6; cursor: wait; }
.notes-copy-all button.is-done, .nb-copy.is-done { color: #15803d; border-color: #86efac; background: #f0fdf4; }
.notes-copy-all button.is-error, .nb-copy.is-error { color: #b91c1c; border-color: #fca5a5; background: #fef2f2; }
.note-content .notebook .nb-copy-rail { position: absolute; top: 0; bottom: 0; left: 31px; width: 26px; padding: 14px 0; pointer-events: none; z-index: 2; }
.note-content .notebook .nb-copy {
  position: sticky; top: calc(50vh - 12px); pointer-events: auto; width: 24px; height: 24px; padding: 0;
  font-size: 13px; line-height: 22px; text-align: center; cursor: pointer;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.15);
  opacity: .75;
}
.note-content .notebook .nb-copy:hover { opacity: 1; background: #f1f5f9; }
.notes-font button.is-current { background: #1e3a5f; color: #fff; }

.notes-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 28px; }
.notes-pager a {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px;
  text-decoration: none; color: #1e293b; display: flex; flex-direction: column; gap: 2px;
}
.notes-pager a:hover { border-color: #94a3b8; }
.notes-pager small { color: #64748b; font-size: 11.5px; }
.notes-pager span { font-weight: 600; font-size: 13px; }
.notes-pager-next { text-align: right; }
.notes-pager-home { justify-content: center; font-weight: 600; white-space: nowrap; }

/* ---------- Note content (shared design for all agent-written pages) ---------- */
.note-content { font-size: 13.5px; overflow-wrap: break-word; }
.note-content .container { max-width: none; margin: 0; padding: 0; }
.note-content h4 { color: #0f172a; margin: 16px 0 8px; font-size: 14.5px; }
.note-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12.5px; }
.note-content th { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 8px 10px; text-align: left; font-weight: 600; }
.note-content td { border: 1px solid #cbd5e1; padding: 7px 10px; vertical-align: top; }
.note-content code { background: #f1f5f9; border-radius: 4px; padding: 0 4px; font-size: 12.5px; overflow-wrap: anywhere; }
.note-content svg { max-width: 100%; height: auto; }

.note-content .header-banner,
.note-content .hero {
  background: linear-gradient(135deg, #1e3a5f, #0f172a); color: #fff;
  padding: 22px 26px; border-radius: 12px; margin-bottom: 20px; border-left: 6px solid #16a34a;
}
.note-content .header-banner h1,
.note-content .hero h1 { margin: 0 0 6px; font-size: 23px; font-weight: 700; }
.note-content .header-banner p,
.note-content .hero p { margin: 0; font-size: 13.5px; opacity: .92; max-width: 860px; }
.note-content .badge {
  display: inline-block; background: #16a34a; color: #fff;
  padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; margin: 0 6px 8px 0;
}

.note-content .quick-jump { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.note-content .quick-jump b { font-size: 13px; color: #1e3a5f; display: block; margin-bottom: 8px; }
.note-content .quick-jump a {
  display: inline-block; background: #f1f5f9; color: #334155; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; text-decoration: none; margin: 0 4px 6px 0; border: 1px solid #cbd5e1;
}
.note-content .quick-jump a:hover { background: #e2e8f0; color: #0f172a; }
.note-content .quick-jump a.hot { background: #fef3c7; border-color: #f59e0b; }

.note-content .topic-card {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 22px; margin-bottom: 24px;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.02); scroll-margin-top: 70px;
}
.note-content .topic-card h2 { margin: 0 0 12px; font-size: 18px; color: #1e3a5f; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.note-content .part-title { background: #1e3a5f; color: #fff; border-radius: 10px; padding: 10px 16px; margin: 28px 0 16px; font-size: 16px; font-weight: 700; }
.note-content .min-read { font-size: 12px; font-weight: normal; color: #64748b; }

.note-content .trap-box,
.note-content .trick-box,
.note-content .concept-box,
.note-content .info-box,
.note-content .note-box,
.note-content .formula-box,
.note-content .example-box,
.note-content .mp-box,
.note-content .alert { border-radius: 6px; padding: 10px 14px; margin: 12px 0; font-size: 13px; }
.note-content .trap-box { background: #fffbeb; border-left: 4px solid #f59e0b; }
.note-content .trap-box b { color: #b45309; }
.note-content .trick-box { background: #eff6ff; border-left: 4px solid #2563eb; }
.note-content .trick-box b { color: #1d4ed8; }
.note-content .concept-box,
.note-content .info-box,
.note-content .note-box { background: #eff6ff; border-left: 4px solid #2563eb; }
.note-content .concept-box b.head { color: #1d4ed8; }
.note-content .formula-box { background: #eff6ff; border-left: 4px solid #2563eb; color: #1e40af; }
.note-content .example-box { background: #f5f3ff; border-left: 4px solid #7c3aed; }
.note-content .example-box b.ex { color: #5b21b6; }
.note-content .mp-box,
.note-content .alert { background: #f0fdf4; border-left: 4px solid #16a34a; }
.note-content .mp-box b.head { color: #15803d; }
.note-content .trap-box ul,
.note-content .trick-box ul,
.note-content .note-box ul,
.note-content .info-box ul { margin: 6px 0 0; padding-left: 18px; }
.note-content .info-box h2 { margin: 0 0 10px; font-size: 18px; color: #1e3a5f; }

.note-content .ex-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 13px; }
.note-content .ex-box .ex-q { font-weight: 600; color: #14532d; margin-bottom: 4px; }
.note-content .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 12px;
  font-size: 12.5px; line-height: 1.45; overflow-x: auto; margin: 8px 0;
}
.note-content .fig { text-align: center; margin: 10px 0; }
.note-content .fig .cap { font-size: 12px; color: #475569; margin-top: 4px; }
.note-content .big { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.note-content .flip-x { display: inline-block; transform: scaleX(-1); }
.note-content .flip-y { display: inline-block; transform: scaleY(-1); }
.note-content .ok { color: #15803d; font-weight: 600; }
.note-content .bad { color: #b91c1c; font-weight: 600; text-decoration: line-through; }
.note-content .cols2 { columns: 2; column-gap: 26px; }
.note-content .cols3 { columns: 3; column-gap: 22px; }
.note-content .cols2 li,
.note-content .cols3 li { break-inside: avoid; }

/* PYQ + practice blocks */
.note-content .pyq-section { background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 10px; padding: 14px 16px; margin-top: 16px; }
.note-content .pyq-section.practice,
.note-content .practice-section,
.note-content .prac-section { background: #faf5ff; border: 1px dashed #a78bfa; border-radius: 10px; padding: 14px 16px; margin-top: 16px; }
.note-content .pyq-title { font-weight: 700; color: #1e3a5f; font-size: 13.5px; margin-bottom: 12px; }
.note-content .pyq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.note-content .pyq-q { font-weight: 600; color: #0f172a; margin-bottom: 8px; font-size: 13.5px; }
.note-content .pyq-q .hi { display: block; font-weight: 500; color: #334155; margin-top: 2px; }
.note-content .pyq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 8px 0; font-size: 12.5px; color: #334155; }
.note-content .pyq-options > * { min-width: 0; overflow-wrap: anywhere; }
.note-content .pyq-ans { background: #f0fdf4; border-left: 4px solid #16a34a; padding: 8px 12px; font-size: 12.5px; color: #14532d; margin-top: 8px; border-radius: 0 6px 6px 0; }
.note-content .src,
.note-content .pyq-src,
.note-content .tag-prac {
  display: inline-block; font-size: 11px; font-weight: 600; color: #1d4ed8; background: #dbeafe;
  border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; text-wrap: balance;
}
.note-content .tag-prac { color: #3730a3; background: #e0e7ff; margin: 0 4px 0 0; }
.note-content .src.pr,
.note-content .src.prac,
.note-content .prac-src { color: #6d28d9; background: #f5f3ff; }

/* Note home (index) cards inside intro content */
.note-content .section-title {
  font-size: 19px; font-weight: 700; color: #1e3a5f; margin: 30px 0 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid #cbd5e1; padding-bottom: 8px;
}
.note-content .section-title span { font-size: 13px; font-weight: 500; color: #64748b; margin-left: auto; }
.note-content .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 12px; }
.note-content .subject-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05);
}
.note-content .card-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.note-content .card-icon {
  font-size: 28px; background: #f8fafc; border: 1px solid #e2e8f0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center; border-radius: 10px; flex-shrink: 0;
}
.note-content .card-title-group h3 { margin: 0 0 4px; font-size: 17px; color: #1e3a5f; }
.note-content .card-title-group p { margin: 0; font-size: 12.5px; color: #64748b; line-height: 1.45; }
.note-content .stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.note-content .stat { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.note-content .stat-pyq { background: #e0e7ff; color: #3730a3; }
.note-content .stat-old { background: #fef3c7; color: #92400e; }
.note-content .stat-prac { background: #ede9fe; color: #6d28d9; }
.note-content .card-actions { margin-top: auto; }
.note-content .btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; text-decoration: none; background: #1e3a5f; color: #fff;
}
.note-content .btn:hover { background: #0f172a; }
.note-content .plan-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 22px; margin-top: 8px; font-size: 14px; }

/* Template "notebook": handwritten class-notes look (ruled paper, red margin, Kalam font).
   A page opts in by wrapping its content in <div class="notebook">; each paper sheet is <section class="page">. */
.note-content .notebook {
  --nb-red: #c62828; --nb-ink: #1f2633; --nb-line: #c9d6e6;
  background: transparent; color: var(--nb-ink); padding: 20px 0 1px;
  font-family: 'Kalam', 'Patrick Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  overflow-wrap: normal;
}
.note-content .notebook * { box-sizing: border-box; }
.note-content .notebook .page {
  width: 960px; max-width: 100%; margin: 0 auto 34px; position: relative;
  padding: 26px 24px 30px 78px; font-size: 15.5px; line-height: 26px;
  background-color: #fbfaf6;
  background-image:
    radial-gradient(circle at 22px 140px, #3b3b3b 8px, transparent 9px),
    radial-gradient(circle at 22px 50%, #3b3b3b 8px, transparent 9px),
    radial-gradient(circle at 22px calc(100% - 140px), #3b3b3b 8px, transparent 9px),
    linear-gradient(90deg, transparent 56px, #e06666 56px, #e06666 58px, transparent 58px),
    repeating-linear-gradient(180deg, transparent 0 25px, var(--nb-line) 25px 26px);
  border: 1px solid #e3e0d8; box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
.note-content .notebook .ph { text-align: right; font-size: 17px; line-height: 22px; margin-bottom: 6px; }
.note-content .notebook .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; position: relative; }
.note-content .notebook .cols::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.4px solid #8a8a8a; }
.note-content .notebook .cols > * { min-width: 0; }
.note-content .notebook .full { grid-column: 1 / -1; }
.note-content .notebook h1.title { text-align: center; color: var(--nb-red); font-size: 34px; line-height: 1.2; margin: 4px 0 2px; text-decoration: underline; text-underline-offset: 6px; }
.note-content .notebook .byline { text-align: center; font-size: 17px; margin-bottom: 8px; }
.note-content .notebook h2 { color: var(--nb-red); font-size: 21px; line-height: 28px; margin: 14px 0 6px; font-weight: 700; }
.note-content .notebook h2 .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note-content .notebook h2 small { font-size: 16px; }
.note-content .notebook h3 { color: var(--nb-red); font-size: 17px; margin: 6px 0 2px; font-weight: 700; }
.note-content .notebook ul { margin: 2px 0 4px; padding-left: 20px; }
.note-content .notebook ul ul { list-style: circle; }
.note-content .notebook li { margin: 0; }
.note-content .notebook p { margin: 2px 0; }
.note-content .notebook .r { color: var(--nb-red); }
.note-content .notebook .box { display: table; margin: 8px auto; border: 1.6px solid #333; padding: 3px 16px; font-size: 19px; line-height: 30px; background: #fffefa; text-align: center; }
.note-content .notebook .box.sm { font-size: 16px; padding: 2px 10px; line-height: 26px; }
.note-content .notebook .frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.15; margin: 0 2px; font-size: .92em; }
.note-content .notebook .frac > span:first-child { border-bottom: 1.3px solid currentColor; padding: 0 2px; }
.note-content .notebook .where { margin-left: 18px; }
.note-content .notebook .where div { margin-left: 22px; }
.note-content .notebook table.t { --tbl-bg: #fffefa; border-collapse: collapse; width: 100%; margin: 6px 0 8px; font-size: 14.5px; line-height: 1.35; background: #fffefa; }
.note-content .notebook table.t th,
.note-content .notebook table.t td { border: 1.3px solid #333; padding: 3px 5px; text-align: center; vertical-align: middle; background: none; }
.note-content .notebook table.t th { color: var(--nb-red); font-weight: 700; }
.note-content .notebook table.t td:first-child { text-align: left; }
.note-content .notebook .key { border: 1.8px solid var(--nb-red); border-radius: 8px; padding: 4px 12px 6px; margin: 12px 0 4px; background: #fffafa; font-size: 14.5px; line-height: 23px; }
.note-content .notebook .key h4 { color: var(--nb-red); margin: 0; font-size: 17px; text-decoration: underline; }
.note-content .notebook .q { border: 1.4px dashed #555; border-radius: 6px; padding: 4px 10px; margin: 6px 0; background: #fffefa; font-size: 14.5px; line-height: 23px; }
.note-content .notebook .q b.r { font-size: 15px; }
.note-content .notebook .graphs { display: flex; justify-content: space-around; gap: 6px; flex-wrap: wrap; }
.note-content .notebook .graphs figure { margin: 0; text-align: center; font-size: 13px; line-height: 16px; }
.note-content .notebook .graphs figcaption { color: var(--nb-red); text-decoration: underline; }
.note-content .notebook svg { display: block; margin: 4px auto; overflow: visible; }
.note-content .notebook svg[width="0"] { height: 0; margin: 0; }
.note-content .notebook svg text { font-family: 'Kalam', 'Comic Sans MS', cursive; font-size: 11px; fill: #222; }
.note-content .notebook svg .lbl { font-size: 12px; }
.note-content .notebook svg .red { fill: var(--nb-red); }
.note-content .notebook .ax { stroke: #222; stroke-width: 1.4; fill: none; marker-end: url(#arr); }
.note-content .notebook .cv { stroke: #222; stroke-width: 1.7; fill: none; }
.note-content .notebook .cvr { stroke: var(--nb-red); stroke-width: 1.7; fill: none; }
.note-content .notebook .dash { stroke: #555; stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.note-content .notebook .dot { fill: #222; }
html.nb-normal .note-content .notebook,
html.nb-normal .note-content .notebook svg text { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
@media (max-width: 900px) {
  .note-content .notebook { padding: 12px 0 1px; }
  .note-content .notebook .page { width: auto; margin: 0 6px 24px; padding-left: 66px; }
  .note-content .notebook .cols { grid-template-columns: 1fr; }
  .note-content .notebook .cols::before { display: none; }
}
@media (max-width: 640px) {
  .note-content .notebook { padding-top: 6px; }
  .note-content .notebook .page {
    margin: 0 0 20px; padding: 18px 12px 22px 44px;
    background-image:
      radial-gradient(circle at 14px 120px, #3b3b3b 6px, transparent 7px),
      radial-gradient(circle at 14px 50%, #3b3b3b 6px, transparent 7px),
      radial-gradient(circle at 14px calc(100% - 120px), #3b3b3b 6px, transparent 7px),
      linear-gradient(90deg, transparent 32px, #e06666 32px, #e06666 34px, transparent 34px),
      repeating-linear-gradient(180deg, transparent 0 25px, var(--nb-line) 25px 26px);
  }
  .note-content .notebook .nb-copy-rail { left: 22px; width: 20px; }
  .note-content .notebook .nb-copy { top: calc(50vh - 10px); width: 20px; height: 20px; font-size: 11px; line-height: 18px; }
  .note-content .notebook h1.title { font-size: 28px; }
  .note-content .notebook .byline { font-size: 14.5px; }
  .note-content .notebook table.t { background: none; }
  .note-content .notebook table.t th,
  .note-content .notebook table.t td { background: #fffefa; }
  .note-content .notebook ul { padding-left: 16px; }
}

@media (max-width: 640px) {
  .notes-main { padding: 12px; }
  .notes-nav a:not(.notes-nav-cta) { display: none; }
  .notes-hero, .note-content .header-banner, .note-content .hero { padding: 18px; }
  .note-content .topic-card { padding: 14px; }
  .note-content table {
    display: block; overflow-x: auto; font-size: 12px; --tbl-bg: #fff;
    background:
      linear-gradient(to right, var(--tbl-bg) 30%, transparent) 0 0 / 28px 100% no-repeat local,
      linear-gradient(to left, var(--tbl-bg) 30%, transparent) 100% 0 / 28px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(15,23,42,.18), transparent) 0 0 / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(15,23,42,.18), transparent) 100% 0 / 12px 100% no-repeat scroll;
  }
  .note-content :is(.info-box, .note-box, .concept-box) table { --tbl-bg: #eff6ff; }
  .note-content :is(.mp-box, .alert) table { --tbl-bg: #f0fdf4; }
  .note-content th, .note-content td { padding: 6px 7px; }
  .note-content .pyq-options { grid-template-columns: 1fr; }
  .note-content .cols2, .note-content .cols3 { columns: 1; }
  .notes-pager { grid-template-columns: 1fr 1fr; }
  .notes-pager-home { grid-column: 1 / -1; order: -1; }
  .notes-lang { right: 10px; bottom: 10px; }
  .notes-lang a { font-size: 12.5px; padding: 8px 10px; }
  .notes-font { margin-left: 0; }
  .notes-font + .notes-pin { margin-left: auto; }
}
@media (max-width: 360px) {
  .notes-font button { font-size: 12px; padding: 2px 7px; }
  .notes-pin-btn { font-size: 12px; padding: 5px 9px; }
}

.sf-ad { margin: 24px auto 8px; min-height: 100px; text-align: center; overflow: hidden; }
.sf-ad[hidden] { display: none; }
.sf-ad-label { display: block; font-size: 11px; color: #94a3b8; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.sf-ad.sf-ad-app { min-height: 0; margin: 16px auto 4px; }
.sf-ad-app .sf-ad-label { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; margin: 0; }

/* Notes are read online only: printing / "Save as PDF" gives a blank page with a short message,
   and text cannot be selected, copied or dragged (inputs stay usable). */
@media print {
  body.notes-body > * { display: none !important; }
  body.notes-body { background: #fff; }
  body.notes-body::before {
    content: "Printing is turned off for SF Prep Notes. Read them free online at prep.fqrs.co.in/notes";
    display: block; padding: 48px 24px; text-align: center; font: 600 16px/1.6 Inter, system-ui, sans-serif; color: #0f172a;
  }
}
body.notes-body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.notes-body input, body.notes-body textarea, body.notes-body [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
body.notes-body img { -webkit-user-drag: none; }

.notes-guard-toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 9999;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px;
  background: #0f172a; color: #fff; font-size: 14px; line-height: 1.4; text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .3); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.notes-guard-toast.is-on { opacity: 1; }

/* Saved-copy banner from offline.js (same look as site.css, without Bootstrap). */
.offline-saved-banner {
  position: sticky; top: 0; z-index: 1080; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 8px 12px; padding: 8px 16px; font-size: 14px; font-weight: 600;
  color: #0c4a6e; background: #e0f2fe; border-bottom: 1px solid #bae6fd;
}
.offline-saved-banner button {
  padding: 4px 10px; border: 1px solid #bae6fd; border-radius: 6px; background: #fff;
  color: #0c4a6e; font: inherit; font-size: 13px; cursor: pointer;
}
.offline-saved-banner button[hidden] { display: none; }

/* css/brand.css */
/* SF Prep logo + wordmark. Loaded by every layout so the brand looks the same in each header. */
.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none !important;
  line-height: 1;
}
.sf-brand:hover { color: #fff; }

.sf-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
}
.sf-brand-logo img {
  width: 125%;
  height: 125%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* The image is 125% of the 34px box, so the ring and shine are sized to the image (inset -4.25px). */
.sf-brand-logo::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #60a5fa, #4ade80, #22d3ee, #a78bfa, #60a5fa);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: sf-ring-spin 4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.75));
  z-index: 0;
}
.sf-brand-logo::after {
  content: "";
  position: absolute;
  inset: -4.25px;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: sf-logo-shine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.sf-brand:hover .sf-brand-logo img { transform: rotate(360deg) scale(1.06); }
.sf-brand:hover .sf-brand-logo::before { animation-duration: 1.2s; }

@keyframes sf-ring-spin { to { transform: rotate(360deg); } }
@keyframes sf-logo-shine {
  0%, 60% { background-position: 150% 0; }
  85%, 100% { background-position: -50% 0; }
}

.sf-brand-word {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.sf-brand-word b {
  font-weight: 800;
  background: linear-gradient(90deg, #60a5fa 0%, #4ade80 50%, #60a5fa 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sf-word-flow 6s linear infinite;
}
@keyframes sf-word-flow { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .sf-brand-logo::before, .sf-brand-logo::after, .sf-brand-word b { animation: none; }
  .sf-brand-logo::after { display: none; }
  .sf-brand-logo img { transition: none; }
  .sf-brand:hover .sf-brand-logo img { transform: none; }
}

@media (max-width: 480px) {
  .sf-brand { gap: 14px; }
  .sf-brand-word { font-size: 20px; }
}

/* Line breaking shared by every layout: even out heading lines, avoid one-word last lines in text. */
.nowrap { white-space: nowrap; }
h1, h2, h3, h4, summary, th, label, .btn, .lp-btn, .lp-kicker, .ft-overview span, .lg-qr-label { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

/* Small Indian tricolour mark for "Made in India" lines (CSS only, renders the same on every OS). */
.mi-flag {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  vertical-align: -1px;
  border-radius: 2px;
  background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}
.mi-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  border: 0.75px solid #000080;
  transform: translate(-50%, -50%);
}

/* css/site-footer.css */
/* Shared site footer (_SiteFooter.cshtml): landing, public Notes / Current Affairs / GK and the signed-in app. */
.sff {
  margin-top: 40px;
  background: #0f2744;
  color: #cbd5e1;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Devanagari', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
}
.sff a { color: #e2e8f0; text-decoration: none; }
.sff a:hover { color: #fff; text-decoration: underline; }
.sff-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.sff .sf-brand { color: #fff !important; }
.sff-brand p { margin: 12px 0 14px; max-width: 340px; color: #94a3b8; }
.sff-brand p.sff-by { margin-top: -6px; font-size: 12.5px; color: #cbd5e1; }
.sff-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 10px;
  background: #000; border: 1px solid #334155;
  color: #fff !important; text-decoration: none !important; line-height: 1.15;
}
.sff-store:hover { border-color: #64748b; }
.sff-store small { display: block; font-size: 10px; color: #cbd5e1; letter-spacing: .02em; }
.sff-store span { font-size: 15px; font-weight: 600; }
.sff-col { display: flex; flex-direction: column; gap: 7px; }
.sff-col h2 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.sff-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(148, 163, 184, .2);
  font-size: 12px;
  color: #94a3b8;
}
.sff-bottom p { margin: 0 0 4px; }
.sff-bottom .sff-india { margin-bottom: 8px; color: #e2e8f0; }
.sff-india strong { color: #fff; font-weight: 600; }
.sff-bottom a { color: #cbd5e1; text-decoration: underline; }

@media (max-width: 800px) {
  .sff-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; padding-top: 28px; }
  .sff-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .sff-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sff-col:last-child { grid-column: 1 / -1; }
}

.sff-social {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.sff-social-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-right: 4px; }
.sff-social a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid #334155; color: #e2e8f0; font-size: 13px; text-decoration: none !important;
}
.sff-social a:hover { border-color: #94a3b8; color: #fff; }
.sff-social a[hidden] { display: none; }
.sff-social a.sff-social-all { border-style: dashed; }

