html,body,.study-note,.pn-note{color-scheme:light}

.study-note { color: #172d36; background: #f6f8fb; }
.study-note .page-hero { text-align: left; background: #fff; }
.study-note .page-hero h1 { font-size: clamp(34px, 4vw, 52px); max-width: 18ch; letter-spacing: -.03em; }
.study-note .hero-lead { margin-left: 0; max-width: 40rem; font-size: 18px; color: #24343c; }
.study-note .reviewed { font-size: 15px; color: #3d515b; margin-top: 12px; }
.note-body { max-width: 760px; padding-bottom: 72px; }
.note-body > h2, .note-body > section > h2, .next-steps h2, .faqs + * { font-size: clamp(24px, 3vw, 32px); margin: 28px 0 12px; letter-spacing: -.03em; }
.note-body p, .note-body li { font-size: 18px; line-height: 1.6; color: #1c3138; }
.note-body p { margin: 0 0 14px; }
.note-body ul, .note-body ol { margin: 0 0 16px; padding-left: 1.3rem; }
.note-body li { margin: 6px 0; }
.note-body a { color: #075cdc; text-decoration: underline; text-underline-offset: 3px; }
.table-scroll { overflow-x: auto; margin: 0; -webkit-overflow-scrolling: touch; max-width: 100%; }
.study-note table { width: 100%; border-collapse: collapse; font-size: 16px; }
.study-note caption { text-align: left; font-weight: 700; color: #0b3f86; padding-bottom: 8px; }
.study-note th, .study-note td { border: 1px solid #c9d7ea; text-align: left; padding: 10px 12px; vertical-align: top; }
.study-note th { background: #e7f0ff; color: #12325f; }
.study-note td { background: #fff; }
.question-card { border: 1px solid #c5d4ea; border-left: 6px solid #075cdc; border-radius: 16px; padding: 16px 18px; margin: 14px 0; background: #f7fbff; max-width: 100%; }
.question-card[data-status="source-key"] { border-left-color: #b86e00; background: #fff8ee; }
.question-card[data-status="dropped"] { border-left-color: #8a3d4b; background: #fff5f6; }
.question-card.practice { border-left-color: #0f7a6c; background: #f3fbf8; }
.kicker { font-size: 18px; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; color: #075cdc; margin-bottom: 6px; }
.question-card[data-status="source-key"] .kicker { color: #8a4e00; }
.question-card[data-status="dropped"] .kicker { color: #8a3d4b; }
.question-card.practice .kicker { color: #0f7a6c; }
.choice-list { margin-top: 8px; }
.key-line { margin-top: 8px; }
.provenance { font-size: 15px !important; color: #3d515b !important; }
.note-source { border-top: 1px solid #d5e0ea; margin-top: 28px; padding-top: 16px; }
.study-note blockquote { margin: 0; padding: 12px 16px; background: transparent; border-radius: 10px; }
.published-notes { margin: 8px 0 28px; }
.published-notes > p { font-size: 18px; color: #1c3138; max-width: 760px; }
@media (max-width: 700px) {
  .kicker { font-size: 16px; }
}
@media (max-width: 650px) {
  .study-note .hero-lead, .note-body p, .note-body li { font-size: 16px; }
  .note-body > h2, .note-body > section > h2, .next-steps h2 { font-size: 22px; }
  .study-note table { font-size: 15px; }
}

.note-intro { font-size: 18px; color: #24343c; margin: 0 0 18px; }
.note-figure { margin: 8px 0 18px; }
.note-figure img { max-width: 100%; height: auto; border-radius: 12px; background: #f4f7fb; }
.note-cta, .note-nudge, .next-steps {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #c5d4ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px #1230520c;
  max-width: 100%;
}
.note-cta a, .note-nudge a { font-weight: 600; }
.practice-kicker { font-size: 17px; margin: 14px 0 4px; color: #5b21b6; }
.question-card.pyq { border-left-color: #b86e00; background: #fff8ee; }

.study-note,
.study-note * {
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
}
.study-note img,
.study-note svg,
.study-note pre,
.study-note iframe,
.study-note video {
  max-width: 100%;
  height: auto;
}
.study-note table { max-width: 100%; }
.study-note pre,
.study-note code { white-space: pre-wrap; }

/* Prefer the shared public-note takeaway cards when both stylesheets load. */
.study-note .pn-takeaways { margin-top: 4px; }
.study-note .pn-section { background: #fff; }
.study-note .subject-list { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .study-note .subject-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Notes hub: compact hero panel and tinted subject cards. */
.notes-hub.study-note .page-hero{
  text-align:left;
  background:
    radial-gradient(ellipse at 18% 20%,#fff0eb 0 38%,transparent 58%),
    radial-gradient(ellipse at 88% 10%,#e4f0ff 0 42%,transparent 62%),
    radial-gradient(ellipse at 60% 80%,#f7e9f4 0 30%,transparent 55%),
    #f7f9fc;
  padding-bottom:28px;
}
.notes-hub .page-hero h1{
  max-width:16em;
  font-size:clamp(28px,3.6vw,42px);
  letter-spacing:-.03em;
  color:#102833;
  line-height:1.18;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.notes-hub .page-hero h1 em{color:inherit;font-style:normal}
.notes-hub .hero-lead{
  margin:14px 0 0;
  max-width:36rem;
  font-size:17px;
  color:#24343c;
}
.notes-hub-hero{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.notes-hub-panel{
  border:1px solid #d5e4f8;
  border-radius:18px;
  padding:14px 16px 16px;
  background:
    radial-gradient(ellipse at 12% 0%,#fff6f0 0 36%,transparent 58%),
    linear-gradient(165deg,#f7fbff 0%,#eef5ff 100%);
  box-shadow:0 8px 22px #1230520c;
  min-width:0;
}
.notes-hub-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
.notes-stat{
  display:flex;flex-direction:column;gap:2px;
  padding:10px 12px;border-radius:14px;
  background:#ffffffcc;border:1px solid #e3eef9;
}
.notes-stat strong{font-size:26px;line-height:1;color:#075cdc;letter-spacing:-.04em;font-weight:750}
.notes-stat span{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#3d5160}
.notes-hub-how{
  font-family:Arial,Helvetica,sans-serif;
  font-size:12px;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;color:#075cdc;
  margin:0 0 8px;
}
.notes-hub-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.notes-hub-steps li{
  display:flex;align-items:center;gap:10px;
  font-size:15px;font-weight:650;color:#102833;line-height:1.3;
}
.notes-step-num{
  width:22px;height:22px;border-radius:999px;flex:none;
  display:grid;place-items:center;
  background:#075cdc;color:#fff;
  font-size:12px;font-weight:800;letter-spacing:0;
}
.notes-hub-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:14px}
.notes-hub-actions .btn{padding:10px 16px}
.notes-hub .notes-hub-actions a.btn:not(.secondary),
.notes-hub .notes-hub-actions a.btn:not(.secondary):visited,
.notes-hub .notes-hub-actions a.btn:not(.secondary):hover,
.notes-hub .notes-hub-actions a.btn:not(.secondary):focus,
.notes-hub .notes-hub-actions a.btn:not(.secondary):focus-visible,
.notes-hub .notes-hub-actions a.btn:not(.secondary):active{color:#fff}
.notes-hub-browse{font-weight:700;color:#075cdc;text-decoration:none;font-size:14px}
.notes-hub-browse:hover{text-decoration:underline;text-underline-offset:3px}

.notes-hub .note-body{max-width:none;padding-top:8px}
.notes-hub #notes-subjects{scroll-margin-top:24px}
.notes-hub .subject-list{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
.notes-hub a.subject-card,
.notes-hub .notes-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:12px;row-gap:12px;
  align-items:start;
  padding:16px 16px 14px;
  border-radius:16px;
  border:1px solid #d7e3f0;
  text-decoration:none;
  color:#102833;
  box-shadow:0 8px 20px #1230520a;
  background:linear-gradient(160deg,var(--card-a),var(--card-b));
  --card-a:#eef4fb;--card-b:#f8fbff;--card-accent:#075cdc;
}
.notes-hub .notes-card:hover,
.notes-hub a.subject-card:hover{border-color:var(--card-accent);transform:translateY(-3px)}
.notes-hub .notes-card-icon{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:#ffffffd9;border:1px solid #ffffffa8;
  font-size:22px;line-height:1;
  box-shadow:0 2px 8px #1230520a;
}
.notes-hub .notes-card-body{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.notes-hub .notes-card h3,
.notes-hub a.subject-card h3{
  font:700 18px/1.25 Arial,Helvetica,sans-serif;
  letter-spacing:-.02em;margin:2px 0 0;color:#102833;
  text-decoration:none;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}
.notes-hub .note-body a.notes-card,
.notes-hub .note-body a.notes-card h3{text-decoration:none}
.notes-hub .note-body a.notes-card .notes-card-count{text-decoration:none;color:var(--card-accent)}
.notes-hub .notes-card-count{
  display:inline-flex;align-items:center;
  min-height:24px;padding:2px 9px;border-radius:999px;
  background:#ffffff;border:1px solid color-mix(in srgb,var(--card-accent) 22%,#fff);
  color:var(--card-accent);font-size:12px;font-weight:800;letter-spacing:.01em;
}
.notes-hub .notes-card .card-go,
.notes-hub .note-body a.notes-card .card-go,
.notes-hub .note-body a.notes-card:visited .card-go,
.notes-hub .note-body a.notes-card:hover .card-go,
.notes-hub .note-body a.notes-card:focus .card-go,
.notes-hub .note-body a.notes-card:focus-visible .card-go,
.notes-hub .note-body a.notes-card:active .card-go{
  grid-column:1 / -1;
  justify-self:start;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:32px;padding:0 12px;border-radius:8px;
  background:var(--card-accent);color:#fff;
  font:700 13px/1 Arial,Helvetica,sans-serif;
  text-decoration:none;
}
.notes-hub .notes-card-polity{--card-a:#d6e7ff;--card-b:#f3f8ff;--card-accent:#075cdc}
.notes-hub .notes-card-economy{--card-a:#c8f0e9;--card-b:#eefaf7;--card-accent:#0c7c74}
.notes-hub .notes-card-history{--card-a:#ffd8b5;--card-b:#fff4ea;--card-accent:#9a4d00}
.notes-hub .notes-card-world{--card-a:#c5eef8;--card-b:#eef9fd;--card-accent:#0b7fa6}
.notes-hub .notes-card-culture{--card-a:#edd5ff;--card-b:#f8efff;--card-accent:#7c3aed}
.notes-hub .notes-card-geo{--card-a:#c5eef8;--card-b:#eef9fd;--card-accent:#0b7fa6}
.notes-hub .notes-card-env{--card-a:#c9f0d6;--card-b:#eefbf3;--card-accent:#15803d}
.notes-hub .notes-card-st{--card-a:#e4d0ff;--card-b:#f6edff;--card-accent:#6d28d9}
.notes-hub .notes-card-ethics{--card-a:#d9dcff;--card-b:#f2f3ff;--card-accent:#4338ca}
.notes-hub .notes-card-society{--card-a:#ffd0dd;--card-b:#fff0f4;--card-accent:#be185d}
.notes-hub .notes-card-ir{--card-a:#cdd8ff;--card-b:#eef2ff;--card-accent:#1d4ed8}
.notes-hub .notes-card-security{--card-a:#ffd0dd;--card-b:#fff0f4;--card-accent:#be185d}
.notes-hub .notes-card-csat{--card-a:#d8d6ff;--card-b:#f2f1ff;--card-accent:#4f46e5}
.notes-hub .notes-card-essay{--card-a:#ffe3a3;--card-b:#fff6df;--card-accent:#92400e}
.notes-hub .notes-card-disaster{--card-a:#ffd0a8;--card-b:#fff1e4;--card-accent:#c2410c}
.notes-hub .notes-card-default{--card-a:#d6e7ff;--card-b:#f3f8ff;--card-accent:#075cdc}

@media (min-width:720px){
  .notes-hub .subject-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:900px){
  .notes-hub-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(260px,340px);
    gap:24px 36px;
    align-items:start;
  }
  .notes-hub-panel{padding:18px 18px 16px}
  .notes-hub .hero-lead{font-size:18px}
}
@media (min-width:1100px){
  .notes-hub .subject-list{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:650px){
  .notes-hub .page-hero{padding-top:24px;padding-bottom:16px}
  .notes-hub .page-hero h1{font-size:clamp(28px,8vw,34px)}
  .notes-hub .hero-lead{font-size:16px;margin-top:10px}
  .notes-hub-panel{padding:12px 12px 12px;border-radius:14px}
  .notes-stat{padding:8px 10px}
  .notes-stat strong{font-size:22px}
  .notes-hub-steps li{font-size:14px}
  .notes-hub-actions{margin-top:12px}
  .notes-hub .notes-card{padding:14px 14px 12px}
  .notes-hub .notes-card h3{font-size:17px}
  .notes-hub .notes-card-icon{width:38px;height:38px;font-size:20px}
}
@media (prefers-reduced-motion:reduce){
  .notes-hub .notes-card:hover,
  .notes-hub a.subject-card:hover{transform:none}
}

/* Subject pages (/upsc/notes/<subject>): art hero, chapter chips, ordered chapter lists. */
.subject-page.study-note{background:#f6f8fb}
.subject-page .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}
.subject-page .sp-hero{
  text-align:left;padding:22px 0 8px;
  background:
    radial-gradient(ellipse at 12% 0%,#fff3e6 0 30%,transparent 56%),
    radial-gradient(ellipse at 92% 10%,#e6f0ff 0 36%,transparent 60%),
    #f6f8fb;
}
.subject-page .crumbs{margin-bottom:14px}
.sp-hero-card{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr);
  border-radius:22px;overflow:hidden;background:#fff;
  border:1px solid #e3e9f2;box-shadow:0 18px 48px #0f2a5214;
}
.sp-hero-media{position:relative;aspect-ratio:16/8;background:#eef3fa}
.sp-hero-media img{display:block;width:100%;height:100%;object-fit:cover}
.sp-hero-media::after{content:"";position:absolute;inset:auto 0 0 0;height:38%;background:linear-gradient(180deg,#fff0 0%,#fff 100%)}
.sp-hero-copy{position:relative;padding:4px 20px 20px}
.sp-paper{
  align-self:flex-start;width:max-content;max-width:100%;display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;
  font:800 11px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.12em;text-transform:uppercase;
  color:#0b2a55;background:#fbf3df;border:1px solid #ecd9a6;border-radius:999px;padding:6px 11px;
}
.sp-paper span{color:#b8892b}
.subject-page .sp-hero h1{
  font-size:clamp(32px,4.4vw,52px);line-height:1.06;letter-spacing:-.035em;color:#0b2147;
  max-width:14ch;margin:0;overflow-wrap:normal;word-break:normal;
}
.subject-page .sp-lead{margin:12px 0 0;max-width:34rem;font-size:16px;line-height:1.55;color:#33454f}
.sp-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.sp-stat{
  display:flex;align-items:baseline;gap:6px;padding:8px 12px;border-radius:12px;
  background:#f4f7fc;border:1px solid #e1e9f4;
}
.sp-stat strong{font-size:22px;line-height:1;font-weight:800;letter-spacing:-.03em;color:#0b2a55}
.sp-stat span{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#56677a}
@media (min-width:860px){
  .sp-hero-card{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);min-height:340px}
  .sp-hero-media{order:2;aspect-ratio:auto}
  .sp-hero-media::after{inset:0 auto 0 0;width:34%;height:auto;background:linear-gradient(90deg,#fff 0%,#fff0 100%)}
  .sp-hero-copy{padding:36px 8px 34px 40px;display:flex;flex-direction:column;justify-content:center}
  .sp-hero-noart{grid-template-columns:1fr}
}

.sp-body{padding:6px 0 72px}
.sp-jump{margin:18px 0 6px}
.sp-jump-label{display:block;font:800 11px/1 Arial,Helvetica,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#7a6330;margin:0 0 10px}
.sp-jump-row{
  display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;
  mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 28px),transparent);
}
.sp-chip{
  flex:none;display:inline-flex;align-items:center;gap:7px;scroll-snap-align:start;
  padding:7px 12px 7px 7px;border-radius:999px;background:#fff;border:1px solid #dfe7f1;
  font-size:13px;font-weight:650;color:#1a2f44;text-decoration:none;white-space:nowrap;
  transition:border-color .15s,transform .15s;
}
.sp-chip:hover{border-color:var(--sp-accent);transform:translateY(-1px)}
.sp-chip b{
  display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;
  background:var(--sp-soft);color:var(--sp-accent);font-size:11.5px;font-weight:800;
}
@media (min-width:860px){
  .sp-jump-row{flex-wrap:wrap;overflow:visible;mask-image:none;padding-bottom:4px}
}

.sp-chapters{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.sp-chapter{
  scroll-margin-top:24px;background:#fff;border:1px solid #e3e9f2;border-radius:18px;
  padding:16px 14px 8px;box-shadow:0 6px 18px #0f2a520a;
}
.sp-chapter-head{display:flex;align-items:center;gap:12px;padding:0 4px 10px;border-bottom:1px solid #eef2f7}
.sp-badge{
  flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;
  background:linear-gradient(145deg,var(--sp-accent),var(--sp-deep));color:#fff;
  font:800 16px/1 Arial,Helvetica,sans-serif;box-shadow:0 6px 14px var(--sp-shadow);
}
.subject-page .sp-chapter-head h2{
  margin:0;font-size:clamp(19px,2.2vw,23px);line-height:1.2;letter-spacing:-.02em;color:#0b2147;
}
.subject-page .sp-chapter-head p{margin:2px 0 0;font-size:12.5px;font-weight:700;color:#6b7b8c;letter-spacing:.02em}
.subject-page ol.sp-topics{list-style:none;margin:0;padding:4px 0 0}
.subject-page ol.sp-topics li{margin:0;font-size:inherit}
.subject-page .note-body a.sp-topic,.subject-page a.sp-topic{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;
  padding:11px 6px;border-radius:12px;color:#14283a;text-decoration:none;
  transition:background .15s;
}
.subject-page ol.sp-topics li + li a.sp-topic{border-top:1px dashed #e7edf4;border-radius:0}
.subject-page a.sp-topic:hover{background:var(--sp-wash)}
.sp-code{
  display:grid;place-items:center;min-width:44px;height:28px;padding:0 8px;border-radius:999px;
  background:var(--sp-soft);color:var(--sp-accent);font:800 12.5px/1 Arial,Helvetica,sans-serif;letter-spacing:.01em;
}
.sp-code-dot{min-width:28px}
.sp-topic-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.sp-topic-title{font-size:15.5px;font-weight:650;line-height:1.35;color:#14283a}
.sp-topic-desc{display:none;font-size:13.5px;line-height:1.4;color:#5d6e7d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-tag{
  align-self:flex-start;margin-top:3px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:#7a5a12;background:#fbf3df;border:1px solid #ecd9a6;border-radius:999px;padding:2px 8px;
}
.sp-go{color:#9aa9b8;font-weight:700;transition:transform .15s,color .15s}
.subject-page a.sp-topic:hover .sp-go{color:var(--sp-accent);transform:translateX(3px)}
@media (min-width:720px){
  .sp-chapter{padding:20px 20px 10px}
  .sp-topic-desc{display:block}
}
.subject-page .sp-next{margin-top:22px}

.sp-tone-0{--sp-accent:#1d4ed8;--sp-deep:#0b2a6b;--sp-soft:#e7efff;--sp-wash:#f4f7ff;--sp-shadow:#1d4ed833}
.sp-tone-1{--sp-accent:#b7791f;--sp-deep:#7a4f0e;--sp-soft:#fbf1dc;--sp-wash:#fffaf0;--sp-shadow:#b7791f33}
.sp-tone-2{--sp-accent:#0f766e;--sp-deep:#0b4a45;--sp-soft:#dcf3ef;--sp-wash:#f2fbf9;--sp-shadow:#0f766e33}
.sp-tone-3{--sp-accent:#7c3aed;--sp-deep:#4c1d95;--sp-soft:#efe7ff;--sp-wash:#f8f4ff;--sp-shadow:#7c3aed33}
.sp-tone-4{--sp-accent:#be185d;--sp-deep:#831843;--sp-soft:#fde7f0;--sp-wash:#fff5f9;--sp-shadow:#be185d33}
.sp-tone-5{--sp-accent:#0369a1;--sp-deep:#0c3d5e;--sp-soft:#dff1fb;--sp-wash:#f2f9fd;--sp-shadow:#0369a133}
