body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; background: linear-gradient(180deg, #f7f6f3 0%, #efede7 100%); color: #222; }
a { color: #0b57d0; text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1200px; margin: 0 auto; padding: 24px; }
.hero { background: linear-gradient(135deg, #1d3557, #2a6f97); color: white; border-radius: 18px; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); margin-bottom: 24px; }
.hero-home { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr); align-items: center; gap: 28px; }
.hero-book { background: linear-gradient(135deg, #5a3e2b, #8b5e34); }
.hero-copy { min-width: 0; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art img { width: min(100%, 260px); height: auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.22)); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; opacity: .85; margin-bottom: 10px; }
.hero h1 { margin: 0 0 10px; font-size: 2.4rem; }
.lead { font-size: 1.08rem; line-height: 1.7; max-width: 850px; }
.hero-actions, .card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.button { display: inline-block; padding: 11px 16px; border-radius: 999px; background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.25); text-decoration: none; }
.button:hover { text-decoration: none; background: rgba(255,255,255,0.18); }
.button.primary { background: white; color: #18324a; border-color: white; }
.library-wrap, .index-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.page-wrap header, .page-wrap footer { margin-bottom: 20px; }
.nav { margin-top: 8px; color: #555; }
.panel, .scan-panel, .text-grid article, .index-wrap section { background: white; border-radius: 14px; padding: 20px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); margin-bottom: 20px; }
.scan-panel img { width: 100%; height: auto; border: 1px solid #ddd; border-radius: 8px; }
.text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.text-grid article { min-width: 0; }
p { line-height: 1.7; margin: 0 0 1em; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.book-card { background: white; border-radius: 16px; padding: 22px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.book-card.featured { border: 2px solid #d9c7a5; }
.book-meta, .muted { color: #666; font-size: 0.95rem; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.toc li { background: #fbfbfb; border-radius: 10px; padding: 14px 16px; box-shadow: inset 0 0 0 1px #ececec; }
.snippet { color: #555; margin-top: 6px; font-size: 0.95rem; }
.quicklinks { margin: 0; padding-left: 18px; }
.quicklinks li { margin: 8px 0; }
@media (max-width: 900px) { .text-grid, .info-grid, .hero-home { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } .hero-art { order: -1; } }

.hero-art img { width: min(100%, 300px); height: auto; object-fit: cover; border-radius: 18px; }
.ranges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.range-card { background: #fbfbfb; border-radius: 12px; padding: 16px; box-shadow: inset 0 0 0 1px #ececec; }
.range-card h3 { margin: 0 0 8px; }
.small-link { font-weight: 600; }
.page-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.page-chip { min-width: 40px; text-align: center; padding: 8px 10px; border-radius: 999px; background: #f1f3f5; color: #1d3557; font-weight: 600; box-shadow: inset 0 0 0 1px #d7dbe0; }
.page-chip:hover { text-decoration: none; background: #e2e8f0; }
.search-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search-controls input { flex: 1 1 320px; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd6dd; font: inherit; }
.search-button { padding: 11px 16px; border-radius: 10px; border: none; background: #1d3557; color: white; font: inherit; cursor: pointer; }
.search-button.secondary { background: #6c757d; }
.search-results { display: grid; gap: 12px; margin-top: 14px; }
.result-card { background: #fbfbfb; border-radius: 12px; padding: 14px 16px; box-shadow: inset 0 0 0 1px #ececec; }
.result-head { font-weight: 700; margin-bottom: 8px; }

.page-wrap { max-width: 1280px; }
.text-grid { align-items: start; }
.text-grid article { background: white; border-radius: 14px; padding: 20px; box-shadow: 0 4px 18px rgba(0,0,0,0.06); }
.scan-panel { max-width: 900px; margin: 0 auto 20px; }
.scan-panel img { width: 100%; max-height: 72vh; object-fit: contain; background: #f8f8f8; }
.jump-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.jump-controls input { flex: 1 1 260px; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd6dd; font: inherit; }
.page-groups { display: grid; gap: 12px; }
.page-group { background: #fbfbfb; border-radius: 12px; box-shadow: inset 0 0 0 1px #ececec; padding: 10px 14px; }
.page-group summary { cursor: pointer; font-weight: 700; }
.page-chip-grid.grouped { margin-top: 12px; }

.book-bg-body { position: relative; min-height: 100vh; }
.modibook-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.02) contrast(1.03);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 900ms ease;
}
.modibook-bg.is-visible {
  opacity: 1;
  transform: scale(1);
}
.index-wrap-overlay { position: relative; z-index: 1; }
.book-bg-body .panel,
.book-bg-body .hero-book {
  backdrop-filter: blur(6px);
}
.book-bg-body .panel {
  background: rgba(255,255,255,0.9);
}
.book-bg-body .hero-book {
  background: linear-gradient(135deg, rgba(90,62,43,0.88), rgba(139,94,52,0.86));
}

.cover-card { overflow: hidden; }
.book-cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; margin-bottom: 14px; box-shadow: 0 10px 24px rgba(0,0,0,0.15); }
.table-wrap { overflow-x: auto; }
.status-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.status-table th, .status-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.status-table th { background: #f8fafc; }

.climate-bg-body .panel,
.climate-bg-body .hero-book { backdrop-filter: blur(7px); }
.climate-bg-body .panel { background: rgba(255,255,255,0.92); }
.climate-bg-body .hero-book { background: linear-gradient(135deg, rgba(23,73,64,0.88), rgba(48,100,86,0.86)); }
.score-panel h2 { margin-bottom: 8px; }
.overall-score-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #f4fbf7, #eef7f4);
  border: 1px solid #d7ebe3;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 16px 0 20px;
}
.score-label { color: #47685f; font-size: 0.95rem; text-transform: uppercase; letter-spacing: .05em; }
.score-big { font-size: 3rem; font-weight: 800; color: #174940; line-height: 1; margin-top: 8px; }
.score-explainer { color: #425b54; line-height: 1.7; }
.professional-status-table { background: white; border-radius: 14px; overflow: hidden; }
.professional-status-table th { background: #eef6f3; color: #23423a; }
.professional-status-table tr:hover td { background: #fafdfc; }
.score-cell { min-width: 120px; }
.mini-bar { margin-top: 7px; height: 8px; background: #e6eeeb; border-radius: 999px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2d6a5b, #4a9b84); }
.status-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }
.status-high { background: #dff4ea; color: #1b5e49; }
.status-mid { background: #fff0d8; color: #8a5a00; }
.status-low { background: #eceef3; color: #4f5562; }
@media (max-width: 900px) {
  .overall-score-card { grid-template-columns: 1fr; }
}

.cover-link { display: block; }
.cover-link:hover { text-decoration: none; }
.scan-panel { max-width: 720px; margin: 0 auto 20px; }
.scan-panel img { width: 100%; max-height: 62vh; object-fit: contain; background: #f8f8f8; }
.scan-link { display: block; border-radius: 12px; overflow: hidden; }
.scan-link img { transition: transform 180ms ease, box-shadow 180ms ease; }
.scan-link:hover img { transform: scale(1.01); }
.scan-note { color: #5f6b6f; font-size: 0.95rem; margin-bottom: 10px; }


.scan-panel {
  max-width: 860px;
  margin: 0 auto 24px;
  text-align: center;
}
.scan-panel h2,
.scan-note {
  text-align: center;
}
.scan-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f4f6f8;
  box-shadow: inset 0 0 0 1px #e4e8ec;
}
.scan-panel img {
  display: block;
  width: auto;
  max-width: min(100%, 680px);
  max-height: 62vh;
  object-fit: contain;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .scan-panel img {
    max-width: 100%;
    max-height: 56vh;
  }
}


.book-page-bg { position: fixed; inset: 0; z-index: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; transform: scale(1.015); transition: opacity 700ms ease, transform 900ms ease; }
.book-page-bg.is-visible { opacity: 1; transform: scale(1); }
.book-bg-body .hero-book { background: linear-gradient(135deg, rgba(60,44,34,0.88), rgba(98,71,49,0.86)); }
.book-bg-body .panel, .book-bg-body .hero-book { backdrop-filter: blur(6px); }
.book-bg-body .panel { background: rgba(255,255,255,0.92); }
.index-wrap .info-grid { align-items: stretch; }


.page-wrap { max-width: 1280px; }
.text-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  align-items: start !important;
  margin-bottom: 20px;
}
.text-grid article {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  min-width: 0;
}
.scan-panel {
  max-width: 860px !important;
  margin: 0 auto 24px !important;
  text-align: center !important;
}
.scan-panel h2, .scan-note { text-align: center !important; }
.scan-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 12px !important;
  border-radius: 14px !important;
  background: #f4f6f8 !important;
  box-shadow: inset 0 0 0 1px #e4e8ec !important;
}
.scan-panel img {
  display: block !important;
  width: auto !important;
  max-width: min(100%, 680px) !important;
  max-height: 62vh !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  background: white !important;
  border-radius: 8px !important;
}
.scan-note { color: #5f6b6f; font-size: 0.95rem; margin-bottom: 10px; }
.cover-link { display: block; }
.cover-link:hover { text-decoration: none; }
@media (max-width: 900px) {
  .text-grid { grid-template-columns: 1fr !important; }
  .scan-panel img { max-width: 100% !important; max-height: 56vh !important; }
}


.stats-shell {
  margin-bottom: 28px;
  background:
    radial-gradient(circle at top right, rgba(217, 199, 165, 0.25), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,246,243,0.96));
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-head h2 { margin: 0; }
.section-note {
  max-width: 620px;
  color: #59636b;
  line-height: 1.7;
  margin: 0;
}
.stat-eyebrow { color: #7a5e2f; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 6px 0 22px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,249,250,0.95));
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(220,225,230,0.95);
}
.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(29,53,87,0.12), transparent 68%);
}
.stat-card-glow::after { background: radial-gradient(circle, rgba(42,111,151,0.18), transparent 68%); }
.stat-card-amber::after { background: radial-gradient(circle, rgba(190,135,40,0.18), transparent 68%); }
.stat-card-dark {
  background: linear-gradient(180deg, #1d2732, #253342);
  color: #eef3f7;
  border-color: rgba(255,255,255,0.08);
}
.stat-card-dark .stat-number,
.stat-card-dark .stat-label,
.stat-card-dark .stat-kicker { color: #f6fbff; }
.stat-card-dark .stat-note { color: rgba(238,243,247,0.82); }
.stat-kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #6f7b86;
  margin-bottom: 10px;
}
.stat-number {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  color: #16324a;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-note {
  color: #5a646b;
  font-size: 0.95rem;
  line-height: 1.6;
}
.confidence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 6px 0 18px;
}
.confidence-card {
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.confidence-card h3 { margin-top: 0; }
.confidence-positive {
  background: linear-gradient(180deg, #f6fbf8, #eef8f2);
}
.confidence-caution {
  background: linear-gradient(180deg, #fff8ee, #fff2de);
}
.inner-attribution-panel {
  margin: 0;
  background: rgba(255,255,255,0.8);
  box-shadow: inset 0 0 0 1px rgba(218,223,227,0.85);
}
.attribution-panel {
  margin-bottom: 26px;
}
.mini-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.source-chip {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px #e3e8ee;
  color: #49545d;
  line-height: 1.55;
}
.spotlight-panel {
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f4efe3, #fbf8f0);
}
.dark-button {
  background: #18324a;
  color: white;
  border-color: #18324a;
}
.dark-button:hover {
  background: #224763;
  border-color: #224763;
}
@media (max-width: 900px) {
  .confidence-layout { grid-template-columns: 1fr; }
}

.stat-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.stat-card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
  border-color: rgba(190,135,40,0.5);
}
.stat-cta {
  margin-top: 14px;
  font-weight: 700;
  color: #8a5a00;
}
.analysis-wrap {
  max-width: 1280px;
}
.analysis-hero {
  background: linear-gradient(135deg, #4a3321, #8a5e36);
}
.analysis-controls-panel {
  margin-bottom: 20px;
}
.analysis-controls-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}
.analysis-summary-badge {
  background: linear-gradient(135deg, #f4efe3, #fbf7ec);
  color: #5f4a1e;
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: inset 0 0 0 1px rgba(180,147,83,0.18);
  font-weight: 600;
}
.analysis-controls {
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.analysis-control {
  display: grid;
  gap: 6px;
}
.analysis-control span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #57616a;
}
.analysis-control select,
.analysis-control input {
  border: 1px solid #d6dde4;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.filter-pill {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #31404b;
  background: #eef2f6;
}
.filter-pill.is-active {
  box-shadow: inset 0 0 0 2px rgba(24,50,74,0.22);
}
.filter-pill-high { background: #e4f6ee; color: #1f6147; }
.filter-pill-mid { background: #fff3dd; color: #855904; }
.filter-pill-low { background: #eef1f6; color: #4a5360; }
.authorship-table-wrap {
  overflow-x: auto;
}
.authorship-table {
  min-width: 1080px;
}
.authorship-table td {
  line-height: 1.6;
}
.date-main {
  font-weight: 600;
}
.date-notes {
  margin-top: 4px;
  color: #6a7681;
  font-size: 0.9rem;
}
.date-notes a {
  color: #6a7681;
}
.score-stack {
  min-width: 120px;
}
.score-pill {
  display: inline-block;
  min-width: 54px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.score-high {
  background: #dff4ea;
  color: #1b5e49;
}
.score-mid {
  background: #fff0d8;
  color: #8a5a00;
}
.score-low {
  background: #eceef3;
  color: #4f5562;
}
.score-bar-high span { background: linear-gradient(90deg, #2f8f66, #5cbf92); }
.score-bar-mid span { background: linear-gradient(90deg, #c48718, #dfad4e); }
.score-bar-low span { background: linear-gradient(90deg, #667180, #9099a6); }
.analysis-empty {
  margin-top: 16px;
  color: #67737e;
  font-style: italic;
}
.source-notes {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.source-notes li {
  line-height: 1.65;
  color: #42505b;
}
.networth-wrap {
  max-width: 1320px;
}
.networth-hero {
  background: linear-gradient(135deg, #47261c, #6d3a28 40%, #25364b 100%);
}
.networth-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.networth-highlight {
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.4);
}
.bjp-highlight {
  background: linear-gradient(135deg, #fff3df, #ffe8bf);
}
.congress-highlight {
  background: linear-gradient(135deg, #e6f0fb, #dce9fb);
}
.contrast-highlight {
  background: linear-gradient(135deg, #f4efe3, #f8f5ec);
}
.networth-kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #6a5a34;
  margin-bottom: 10px;
}
.networth-big {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  color: #1b2838;
  margin-bottom: 10px;
}
.networth-note {
  color: #4c5964;
  margin: 0;
}
.party-sum-panel {
  margin-bottom: 24px;
  background: linear-gradient(180deg, rgba(255,249,240,0.98), rgba(247,244,238,0.98));
}
.party-sum-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.party-sum-header h2 {
  margin: 6px 0 10px;
}
.party-sum-difference {
  min-width: 330px;
  text-align: right;
  font-weight: 700;
  color: #223244;
}
.party-sum-difference strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 6px;
}
.party-sum-difference span {
  display: block;
  margin-top: 6px;
  color: #5d6872;
  font-size: 0.95rem;
}
.party-sum-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(27,40,56,0.10);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.bjp-pill {
  background: #fff2d9;
  color: #8b4b07;
}
.bjp-pill .legend-dot,
.bjp-line,
.bjp-points circle {
  background: #d87d17;
  fill: #d87d17;
  stroke: #d87d17;
}
.congress-pill {
  background: #e8f1ff;
  color: #1f5ca9;
}
.congress-pill .legend-dot,
.congress-line,
.congress-points circle {
  background: #2870c9;
  fill: #2870c9;
  stroke: #2870c9;
}
.tmc-pill {
  background: #eef9ee;
  color: #247a3d;
}
.tmc-pill .legend-dot,
.tmc-line,
.tmc-points circle {
  background: #2ea44f;
  fill: #2ea44f;
  stroke: #2ea44f;
}
.dmk-pill {
  background: #ffe9ec;
  color: #b32645;
}
.dmk-pill .legend-dot,
.dmk-line,
.dmk-points circle {
  background: #d64061;
  fill: #d64061;
  stroke: #d64061;
}
.party-time-chart-wrap {
  overflow: hidden;
  margin-bottom: 18px;
}
.party-time-chart {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  display: block;
}
.chart-axis {
  stroke: rgba(27,40,56,0.55);
  stroke-width: 1.5;
}
.chart-grid {
  stroke: rgba(27,40,56,0.12);
  stroke-width: 1;
}
.chart-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-points circle {
  stroke: #fff;
  stroke-width: 2;
}
.chart-y-label,
.chart-x-label {
  font-size: 13px;
  fill: #5d6872;
}
.chart-x-label-end {
  text-anchor: end;
}
.chart-end-label {
  font-size: 13px;
  font-weight: 800;
}
.bjp-end-label {
  fill: #8b4b07;
}
.congress-end-label {
  fill: #1f5ca9;
}
.tmc-end-label {
  fill: #247a3d;
}
.dmk-end-label {
  fill: #b32645;
}
.party-sum-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.party-meta-card {
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(27,40,56,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.bjp-meta-card {
  background: linear-gradient(135deg, #fff2d9, #ffe6b5);
}
.congress-meta-card {
  background: linear-gradient(135deg, #e8f1ff, #d8e7ff);
}
.tmc-meta-card {
  background: linear-gradient(135deg, #eef9ee, #dcf3df);
}
.dmk-meta-card {
  background: linear-gradient(135deg, #ffe9ec, #ffd7de);
}
.party-meta-kicker {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #6a5a34;
  margin-bottom: 10px;
}
.party-meta-value {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.08;
  font-weight: 800;
  color: #1b2838;
  margin-bottom: 10px;
}
.party-meta-card p {
  margin: 0;
  color: #4d5c68;
  line-height: 1.55;
}
.affidavit-provenance-panel {
  margin-top: 8px;
}
.affidavit-provenance-panel h3 {
  margin: 0 0 8px;
}
.provenance-table {
  min-width: 1200px;
}
.provenance-table td:nth-child(1) {
  font-weight: 800;
}
.provenance-table td:nth-child(3) a,
.provenance-table td:nth-child(4) a {
  white-space: nowrap;
}
.provenance-table td {
  line-height: 1.55;
}
.networth-table {
  min-width: 1280px;
}
.networth-table td strong {
  color: #1c3045;
}
.leader-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
  border: 2px solid rgba(27,40,56,0.10);
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}
.photo-cell {
  width: 76px;
}
.flamingo-panel {
  text-align: center;
}
.flamingo-image {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 14px auto 0;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
@media (max-width: 900px) {
  .analysis-controls {
    grid-template-columns: 1fr;
  }
  .networth-banner-grid {
    grid-template-columns: 1fr;
  }
  .party-sum-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .party-sum-difference {
    min-width: 0;
    text-align: left;
  }
  .party-sum-meta-grid {
    grid-template-columns: 1fr;
  }
  .party-sum-difference {
    min-width: 0;
    text-align: left;
  }
}


.poverty-hero {
  background: linear-gradient(135deg, #25364b, #33536f 45%, #6a5130 100%);
}
.poverty-wrap {
  max-width: 1320px;
}
.poverty-method-panel,
.poverty-panel {
  margin-bottom: 24px;
}
.poverty-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.poverty-legend {
  margin-bottom: 12px;
}
.poverty-series-pill {
  background: #f3efe2;
  color: #72531c;
}
.poverty-series-pill .legend-dot {
  background: #8d6a22;
}
.mpi-series-pill {
  background: #ede7fb;
  color: #5b3db5;
}
.mpi-series-pill .legend-dot {
  background: #6d4dd6;
}
.mpi-projected-pill {
  background: #f6eefc;
  color: #7b3f95;
}
.mpi-projected-pill .legend-dot {
  background: #a257c4;
}
.gov-vajpayee-pill {
  background: #f7f0dd;
  color: #8b6417;
}
.gov-vajpayee-pill .legend-dot {
  background: rgba(206,164,61,0.9);
}
.gov-inc-pill {
  background: #e8eefc;
  color: #3e5f95;
}
.gov-inc-pill .legend-dot {
  background: rgba(88,119,181,0.9);
}
.gov-coalition-pill {
  background: #efe9f8;
  color: #6b4b98;
}
.gov-coalition-pill .legend-dot {
  background: rgba(126,89,176,0.9);
}
.gov-upa-pill {
  background: #eaf2ff;
  color: #2f5faa;
}
.gov-upa-pill .legend-dot {
  background: rgba(90,129,193,0.9);
}
.gov-nda-pill {
  background: #fdeee4;
  color: #a0541d;
}
.gov-nda-pill .legend-dot {
  background: rgba(214,128,61,0.9);
}
.gov-band {
  opacity: 0.35;
}
.congress-era-band {
  fill: #b7ccef;
}
.coalition-era-band {
  fill: #d7c5ee;
}
.vajpayee-band {
  fill: #ead397;
}
.upa-band {
  fill: #b7ccef;
}
.nda-era-band,
.nda-band {
  fill: #f0c09c;
}
.gov-band-label {
  font-size: 12px;
  font-weight: 800;
  fill: #33414d;
  text-anchor: middle;
}
.poverty-line {
  stroke: #8d6a22;
}
.poverty-points circle {
  fill: #8d6a22;
}
.mpi-line {
  stroke: #6d4dd6;
}
.mpi-points circle {
  fill: #6d4dd6;
}
.mpi-points .projected-point {
  fill: #a257c4;
}
.chart-value-label {
  font-size: 12px;
  font-weight: 700;
  fill: #263544;
}
.chart-value-label-end {
  text-anchor: end;
}
.poverty-footnote {
  margin-top: 6px;
}
.chart-end-label {
  text-anchor: end;
}
@media (max-width: 900px) {
  .poverty-note-grid {
    grid-template-columns: 1fr;
  }
  .gov-band-label,
  .chart-value-label {
    font-size: 11px;
  }
}


.terrorism-hero {
  background: linear-gradient(135deg, #40242a, #6a2d38 45%, #313f59 100%);
}
.gdp-hero {
  background: linear-gradient(135deg, #21374e, #274f67 40%, #5f5a24 100%);
}
.terrorism-wrap,
.gdp-wrap {
  max-width: 1320px;
}
.terrorism-panel,
.terrorism-note-panel {
  margin-bottom: 24px;
}
.terror-count-line {
  stroke: #922b35;
}
.terror-count-points circle {
  fill: #922b35;
  stroke: #fff;
  stroke-width: 1;
}
.terror-grid-note {
  margin-top: 8px;
}
.terror-pill {
  background: #f5f0ea;
  color: #36414a;
}
.gdp-pill {
  background: #eef2f7;
  color: #33414d;
}
.modi-marker-pill {
  background: #f9eee0;
  color: #9a5a14;
}
.modi-marker-dot {
  background: #d8891c;
}
.modi-marker-line {
  stroke: #d8891c;
  stroke-width: 2;
  stroke-dasharray: 6 5;
}
.modi-marker-label {
  font-size: 12px;
  font-weight: 800;
  fill: #9a5a14;
}
.gdp-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gdp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.gdp-rank-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27,40,56,0.10);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}
.gdp-rank-line strong {
  color: #1f2f40;
}
.gdp-rank-line span:last-child {
  margin-left: auto;
  color: #54616d;
  font-weight: 700;
}
.gdp-rank-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}
.responsive-chart-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,245,240,0.92));
  border: 1px solid rgba(27,40,56,0.08);
  padding: 8px;
}
.chart-value-label {
  paint-order: stroke;
  stroke: rgba(255,255,255,0.9);
  stroke-width: 3px;
  stroke-linejoin: round;
}
@media (max-width: 900px) {
  .gdp-summary-grid {
    grid-template-columns: 1fr;
  }
  .modi-marker-label,
  .gov-band-label,
  .chart-value-label {
    font-size: 10px;
  }
}


.ngo-wrap {
  max-width: 1320px;
}
.ngo-hero {
  background: linear-gradient(135deg, #27434e, #315d68 42%, #6a4c2f 100%);
}
.ngo-christian-pill {
  background: #eef7ff;
  color: #2f5faa;
}
.ngo-christian-pill .legend-dot {
  background: #3c7ed9;
}
.ngo-islamic-pill {
  background: #eef8ef;
  color: #247541;
}
.ngo-islamic-pill .legend-dot {
  background: #2d9a59;
}
.ngo-christian-line {
  stroke: #3c7ed9;
}
.ngo-islamic-line {
  stroke: #2d9a59;
}
.ngo-christian-points circle {
  fill: #3c7ed9;
}
.ngo-islamic-points circle {
  fill: #2d9a59;
}
.ngo-method-panel,
.ngo-graph-panel {
  margin-bottom: 24px;
}


/* ngo polish overrides */
html { scroll-behavior: smooth; }
.analysis-wrap.ngo-wrap {
  max-width: 1360px;
  padding-top: 28px;
  padding-bottom: 48px;
}
.ngo-wrap {
  --ngo-ink: #183142;
  --ngo-muted: #5f707c;
  --ngo-panel: rgba(255,255,255,0.94);
  --ngo-border: rgba(24,49,66,0.08);
  --ngo-shadow: 0 18px 40px rgba(14,29,38,0.08);
  font-size: 17px;
}
.ngo-wrap .panel {
  background: var(--ngo-panel);
  border: 1px solid var(--ngo-border);
  border-radius: 22px;
  box-shadow: var(--ngo-shadow);
  padding: 30px;
  margin-bottom: 28px;
}
.ngo-wrap .panel h2 {
  color: var(--ngo-ink);
  letter-spacing: -0.02em;
}
.ngo-wrap p,
.ngo-wrap li {
  line-height: 1.78;
}
.ngo-wrap a {
  color: #315d82;
}
.ngo-wrap a:hover {
  color: #214764;
}
.ngo-wrap .hero {
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 20px 48px rgba(13,29,39,0.18);
}
.ngo-wrap .hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.08;
  max-width: 12ch;
}
.ngo-wrap .lead {
  color: rgba(255,255,255,0.9);
  font-size: 1.02rem;
  max-width: 72ch;
}
.ngo-hero .hero-art img {
  width: min(100%, 285px);
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(0,0,0,0.24);
}
.ngo-intro-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,246,241,0.94));
}
.ngo-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.ngo-summary-card {
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, #fcfcfb, #f4f1ea);
  border: 1px solid rgba(24,49,66,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.ngo-summary-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #1c3344;
}
.ngo-summary-card p {
  margin: 0;
  color: #5e6c77;
  line-height: 1.62;
  font-size: 0.95rem;
}
.ngo-summary-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7a6338;
}
.ngo-jump-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(24,49,66,0.045), rgba(121,94,52,0.08));
  border: 1px solid rgba(24,49,66,0.08);
}
.ngo-jump-copy {
  display: grid;
  gap: 4px;
}
.ngo-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ngo-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  color: #234058;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(35,64,88,0.1);
}
.ngo-jump-link:hover {
  text-decoration: none;
  background: #fff;
  transform: translateY(-1px);
}
.ngo-wrap .section-head {
  margin-bottom: 22px;
}
.ngo-wrap .section-note {
  max-width: 68ch;
  color: var(--ngo-muted);
}
.ngo-wrap .eyebrow.stat-eyebrow {
  color: #88683a;
  font-weight: 800;
}
.ngo-wrap .confidence-layout,
.ngo-wrap .poverty-note-grid {
  gap: 18px;
}
.ngo-wrap .confidence-card {
  border-radius: 18px;
  border: 1px solid rgba(24,49,66,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.ngo-wrap .confidence-card h3 {
  margin-top: 0;
  color: #1b3344;
}
.ngo-callout {
  margin-top: 16px;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #eef7ff, #f7f3ea);
  border: 1px solid rgba(60,126,217,0.12);
  color: #30516a;
  line-height: 1.65;
}
.ngo-wrap .stats-grid {
  gap: 20px;
}
.ngo-wrap .stat-card {
  border-radius: 20px;
}
.ngo-wrap .status-table {
  min-width: 1000px;
  font-size: 0.97rem;
  border-collapse: separate;
  border-spacing: 0;
}
.ngo-wrap .status-table th {
  background: #f3f6f8;
  color: #274255;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ngo-wrap .status-table th,
.ngo-wrap .status-table td {
  padding: 16px 16px;
  border-bottom: 1px solid rgba(24,49,66,0.08);
}
.ngo-wrap .status-table tbody tr:nth-child(even) td {
  background: rgba(247,249,250,0.82);
}
.ngo-wrap .status-table tbody tr:hover td {
  background: rgba(238,244,248,0.92);
}
.ngo-wrap .status-table td {
  color: #324654;
}
.ngo-wrap .status-table a {
  color: #2f5879;
  font-weight: 600;
}
.ngo-wrap .provenance-table td:first-child strong,
.ngo-wrap .provenance-table td:first-child {
  color: #1e3444;
}
.ngo-wrap .responsive-chart-wrap {
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252,252,251,0.98), rgba(244,241,234,0.96));
  border: 1px solid rgba(24,49,66,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}
.ngo-wrap .party-time-chart-wrap {
  margin-bottom: 20px;
}
.ngo-wrap .chart-value-label {
  font-size: 12px;
  font-weight: 700;
  fill: #314452;
}
.ngo-wrap .chart-y-label,
.ngo-wrap .chart-x-label {
  font-size: 12px;
}
.ngo-wrap .source-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.ngo-wrap .source-notes li {
  background: linear-gradient(180deg, #fbfbfa, #f3f1eb);
  border: 1px solid rgba(24,49,66,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  list-style-position: inside;
}
.ngo-sources-panel h2 {
  margin-bottom: 14px;
}
@media (max-width: 1100px) {
  .ngo-summary-grid {
    grid-template-columns: 1fr;
  }
  .ngo-wrap .source-notes {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .analysis-wrap.ngo-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ngo-wrap .hero {
    padding: 22px;
  }
  .ngo-wrap .panel {
    padding: 20px;
    border-radius: 18px;
  }
  .ngo-jump-panel {
    align-items: stretch;
  }
  .ngo-wrap .status-table {
    min-width: 860px;
  }
  .ngo-wrap .chart-value-label {
    font-size: 10px;
  }
}
