/* NSE indices list page: shares the market-tools visual language with Fear & Greed. */
.il-landing { background: #f7f8fc; color: #1d253c; min-height: 100vh; padding: 42px 0 80px; }
.il-page { font-family: 'Inter','Segoe UI',Arial,sans-serif; max-width: 1180px; margin: 0 auto; padding: 0 28px 48px; }

/* ---------- Hero ---------- */
.il-hero { align-items: end; border-bottom: 3px solid #1d253c; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 24px; padding-bottom: 28px; }
.il-eyebrow { color: #6941c6; font-size: .72rem; font-weight: 600; letter-spacing: .07em; margin: 0 0 .5rem; text-transform: uppercase; }
.il-eyebrow.light { color: #d6bbfb; }
.il-hero h1 { color: #1d253c; font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -.05em; line-height: .98; margin: 0; }
.il-hero > div:first-child > p:last-child { color: #667085; font-size: 1.05rem; line-height: 1.55; margin: 1rem 0 0; max-width: 640px; }
.il-hero-read { background: #f4f3ff; border: 1px solid #d6bbfb; border-radius: 8px; min-width: 210px; padding: .8rem 1rem; }
.il-hero-read span, .il-hero-read small { color: #6941c6; display: block; font-size: .67rem; text-transform: uppercase; }
.il-hero-read strong { color: #1d253c; display: block; font-size: 1.2rem; margin: .15rem 0; }

/* ---------- Cards ---------- */
.il-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.il-card-head { padding: 13px 18px; border-bottom: 1px solid #e4e7ec; color: #6941c6; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.il-head-meta { font-size: 12px; font-weight: 500; color: #98a2b3; text-transform: none; letter-spacing: 0; }
.il-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.il-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.il-grid > .il-card { margin-bottom: 0; }

/* ---------- Tiles ---------- */
.il-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.il-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.il-tile span { font-size: 11.5px; color: #98a2b3; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.il-tile strong { font-size: 22px; color: #1d253c; font-weight: 700; letter-spacing: -.01em; }
.il-tile strong small { font-size: 13px; color: #98a2b3; font-weight: 600; }
.il-tile em { font-style: normal; font-size: 12.5px; color: #667085; }
.il-tile .up, .il-table .up { color: #067647; }
.il-tile .down, .il-table .down { color: #d92d20; }

/* ---------- Tables ---------- */
.il-table td strong { display: block; font-weight: 600; }
.il-table td small { display: block; color: #98a2b3; font-size: 11.5px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.il-table td a { color: #6941c6; font-weight: 600; text-decoration: none; }
.il-table td a:hover { text-decoration: underline; }
/* ---------- Heat cells ---------- */
.il-ranges { display: inline-flex; gap: 4px; background: #f2f4f7; border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.il-range-btn { border: none; background: transparent; color: #667085; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.il-range-btn:hover { color: #344054; }
.il-range-btn.active { background: #6941c6; color: #fff; }
.il-heat th small { display: block; font-size: 10px; color: #98a2b3; text-transform: none; letter-spacing: 0; font-weight: 500; }
.il-cell { font-weight: 600; transition: background .2s ease; }
.il-bench { border-top: 1px solid #e4e7ec; }
.il-table tfoot td { background: #fcfcfd; }
.il-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.il-chip.up { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.il-chip.down { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.il-scale { display: flex; align-items: center; gap: 10px; padding: 10px 18px 16px; font-size: 12px; color: #667085; flex-wrap: wrap; }
.il-scale-bar { display: inline-block; width: 160px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #d92d20 0%, #ececec 50%, #039855 100%); }
.il-scale .il-note { margin-left: auto; }


/* ---------- Tiles ---------- */
.il-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.il-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 0; }
.il-tile span { font-size: 11.5px; color: #98a2b3; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.il-tile strong { font-size: 22px; color: #1d253c; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.il-tile strong small { font-size: 14px; color: #98a2b3; font-weight: 600; }
.il-tile em { font-style: normal; font-size: 12.5px; color: #667085; }
.il-tile .up, .il-table .up, .il-list .up { color: #067647; }
.il-tile .down, .il-table .down, .il-list .down { color: #d92d20; }

/* ---------- Controls ---------- */
.il-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.il-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.il-chip { border: 1px solid #e4e7ec; background: #fff; color: #475467; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; min-height: 36px; }
.il-chip:hover { border-color: #6941c6; color: #6941c6; }
.il-chip.active { background: #1d253c; border-color: #1d253c; color: #fff; }
.il-search { display: flex; flex: 1 1 260px; max-width: 360px; }
.il-search input { width: 100%; min-height: 40px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 14px; color: #1d253c; background: #fff; }
.il-search input:focus { outline: none; border-color: #6941c6; box-shadow: 0 0 0 3px rgba(105,65,198,.15); }
.il-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Group tables ---------- */
.il-group .il-card-head > span:first-child small { margin-left: 6px; color: #98a2b3; font-weight: 600; }
.il-group .il-head-meta { max-width: 640px; text-align: right; }
.il-table th[data-sort] { cursor: pointer; user-select: none; }
.il-table th[data-sort]:hover { color: #6941c6; }
.il-table th.sorted-desc::after { content: " ↓"; }
.il-table th.sorted-asc::after { content: " ↑"; }
.il-table th small { display: block; font-size: 10px; color: #98a2b3; text-transform: none; letter-spacing: 0; font-weight: 500; }
.il-table td:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 #f2f4f7; }
.il-table th:first-child { position: sticky; left: 0; background: #fcfcfd; z-index: 2; }
.il-table td a { color: #1d253c; text-decoration: none; }
.il-table td a:hover { color: #6941c6; }
.il-table td strong { display: block; font-weight: 600; }
.il-table td small { display: block; color: #98a2b3; font-size: 11px; font-weight: 500; margin-top: 2px; white-space: nowrap; }
.il-spark-cell svg { display: block; margin-left: auto; }
.il-chip-sm { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.il-chip-sm.up { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.il-chip-sm.down { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.il-chip-sm.neutral { background: #f9fafb; color: #475467; border-color: #e4e7ec; }
.il-empty-search { padding: 24px; text-align: center; }

/* ---------- Leader lists ---------- */
.il-leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.il-leaders-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.il-list { margin-bottom: 0; }
.il-list ol { list-style: none; margin: 0; padding: 6px 0; counter-reset: rank; }
.il-list li { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid #f2f4f7; font-size: 13.5px; }
.il-list li:last-child { border-bottom: none; }
.il-list li::before { counter-increment: rank; content: counter(rank); width: 18px; font-size: 11px; font-weight: 700; color: #98a2b3; }
.il-list li a { flex: 1; color: #1d253c; font-weight: 600; text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-list li a:hover { color: #6941c6; }
.il-list li span { font-size: 12px; color: #98a2b3; white-space: nowrap; }
.il-list li b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Prose ---------- */
.il-prose { padding: 24px 0 8px; max-width: 820px; }
.il-prose h2 { color: #1d253c; font-size: 1.7rem; letter-spacing: -.03em; margin: 0 0 14px; scroll-margin-top: 90px; }
.il-prose h3 { color: #1d253c; font-size: 1.1rem; margin: 22px 0 8px; }
.il-prose p, .il-prose li { color: #475467; font-size: 15.5px; line-height: 1.65; }
.il-prose p { margin: 0 0 12px; }
.il-prose ul { margin: 0 0 12px; padding-left: 22px; }
.il-prose .il-note { margin-top: 8px; display: block; }

/* ---------- Tables ---------- */
.il-table-wrap { overflow-x: auto; }
.il-prose .il-table-wrap { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; }
.il-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.il-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: #667085; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid #e4e7ec; white-space: nowrap; background: #fcfcfd; }
.il-table td { padding: 11px 14px; border-bottom: 1px solid #f2f4f7; color: #1d253c; white-space: nowrap; }
.il-table tr:last-child td { border-bottom: none; }
.il-table td small { color: #98a2b3; font-size: 11px; font-weight: 600; }
.il-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.il-table .up { color: #067647; }
.il-table .down { color: #d92d20; }
.il-table tr.is-current td { background: #f4f3ff; }
.il-table-more { padding: 10px 14px; border-top: 1px solid #f2f4f7; }
.il-link-btn { border: none; background: none; color: #6941c6; font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 6px 0; font-family: inherit; }

/* ---------- FAQ ---------- */
.il-faq details { border-bottom: 1px solid #f2f4f7; padding: 0 18px; }
.il-faq details:last-child { border-bottom: none; }
.il-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 15.5px; font-weight: 600; color: #1d253c; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.il-faq summary::-webkit-details-marker { display: none; }
.il-faq summary::after { content: "+"; color: #6941c6; font-size: 20px; font-weight: 500; }
.il-faq details[open] summary::after { content: "−"; }
.il-faq details p { margin: 0 0 16px; color: #475467; font-size: 14.5px; line-height: 1.6; }

/* ---------- Related + CTA ---------- */
.il-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 16px; }
.il-related a { background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s ease; }
.il-related a:hover { border-color: #6941c6; text-decoration: none; }
.il-related span { font-size: 11.5px; font-weight: 600; color: #98a2b3; text-transform: uppercase; letter-spacing: .03em; }
.il-related b { font-size: 14px; color: #1d253c; font-weight: 600; }
.il-cta { background: #1d253c; border-radius: 12px; color: #fff; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.il-cta h2 { color: #fff; font-size: 1.5rem; letter-spacing: -.03em; margin: 0 0 8px; }
.il-cta p { color: #c9c9d6; margin: 0; font-size: 14.5px; max-width: 560px; }
.il-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.il-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.il-btn.primary { background: #6941c6; color: #fff; }
.il-btn.primary:hover { background: #53389e; color: #fff; text-decoration: none; }
.il-btn.ghost { background: transparent; color: #fff; border-color: #5a5a74; }
.il-btn.ghost:hover { border-color: #fff; color: #fff; text-decoration: none; }
.il-empty { padding: 48px 24px; text-align: center; color: #98a2b3; font-size: 14px; }

@media (max-width: 1024px) {
  .il-tiles, .il-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .il-grid { grid-template-columns: 1fr; }
  .il-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .il-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      }
@media (max-width: 640px) {
  .il-tiles, .il-leaders, .il-leaders-2 { grid-template-columns: 1fr; }
  .il-group .il-head-meta { text-align: left; }
  .il-search { max-width: none; }
    .il-tiles { grid-template-columns: 1fr 1fr; }
        .il-scale .il-note { margin-left: 0; flex-basis: 100%; }
  .il-landing { padding-top: 26px; }
  .il-page { padding: 0 16px 36px; }
  .il-hero { align-items: flex-start; flex-direction: column; }
  .il-hero-read { width: 100%; }
    .il-sibling { border-right: none; }
    .il-card-head { align-items: flex-start; }
}
