/* SIF Explore (Figma file TgyeNaX0sm0tpzmMYdEQFO, frame 1272:29140). Loaded after explore.css, whose filter pills'
   popovers (.ex-pop*, .ex-x) and the base checkbox (.check) it reuses. */

.sx-page { padding-top: 40px; padding-bottom: 72px; }
.sx-section + .sx-section { margin-top: 80px; } /* 40px under one section's content + 40px above the next heading (1053:10628 / 10703) */
.sx-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.sx-h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.29px; line-height: 1.3; }
.sx-head .link-btn { font-size: 14px; line-height: 1.55; margin-top: 2px; }

.sx-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--line-soft); background: #fff; font-size: 12px; line-height: 1.55; color: var(--ink); }
.sx-tile img { width: 100%; height: 100%; object-fit: contain; }
.sx-tile:has(img) { border: 0; background: none; }
.sx-tile-l { width: 40px; height: 40px; border: 0; background: var(--surface); font-size: 16px; font-weight: 600; line-height: 1.4; }
.sx-tile-l:has(img) { background: var(--surface); padding: 1px; }
.na { color: var(--faint); }
.good { color: var(--good); }
.bad { color: var(--bad); }

/* Score: number over word on a card, side by side in the table */
.sx-score { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; color: var(--ink); }
.sx-score.good { color: var(--good); }
.sx-score.bad { color: var(--bad); }
.sx-score-n { font-size: 16px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.2; }
.sx-score-w { font-size: 12px; line-height: 1.55; }
.sx-row .sx-score { display: inline-flex; flex-direction: row; align-items: baseline; }
.sx-row .sx-score-n { font-size: 14px; letter-spacing: 0; line-height: 1.4; }

/* ── Top rated SIFs (1263:26949): four 14px-padded cards, tile + score, name + tag, 3M and net equity ── */
.sx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sx-card { display: flex; flex-direction: column; gap: 16px; min-height: 238px; padding: 14px; border: 1px solid var(--line-soft); background: #fff; color: inherit; }
.sx-card:hover { border-color: var(--line); }
.sx-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.sx-card-name { flex: 1 0 auto; min-height: 85px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sx-card-name h3 { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.sx-stats { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.sx-stat { flex: none; min-width: 66px; display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.sx-stat-l { font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.66px; text-transform: uppercase; color: var(--muted); }
.sx-stat-v { font-size: 16px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.2; }
.sx-stat-ink { color: var(--ink-2); }

/* ── All categories (1053:10709): a card per SEBI category with its three best funds ── */
.sx-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 400px)); justify-content: space-between; gap: 16px; } /* 400px cards, the rest of the 1296px split between them (1272:29217) */
.sx-cats.is-collapsed .sx-cat:nth-child(n+4) { display: none; } /* the design draws one row of three; "See all" reveals the rest */
.sx-cat { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); background: #fff; }
.sx-cat-head { display: flex; align-items: center; justify-content: space-between; margin: 0 -14px; padding: 0 14px 14px; /* the rule runs edge to edge of the card */ border-bottom: 1px solid var(--line-soft); color: inherit; }
.sx-cat-head h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.sx-cat-head:hover h3 { text-decoration: underline; }
.sx-cat-text { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.sx-cf-list { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 8px; }
.sx-cols { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--muted); }
.sx-cols > span:first-child { flex: 1 0 0; }
.sx-cols-r { width: 48px; text-align: right; }
.sx-cf { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); color: inherit; }
.sx-cf:last-child { border-bottom: 0; padding-bottom: 4px; }
.sx-cf .sx-tile { margin-right: -2px; }
.sx-cf-name { flex: 1 0 0; min-width: 0; font-size: 14px; font-weight: 400; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-cf:hover .sx-cf-name { text-decoration: underline; }
.sx-cf-r { flex: none; width: 48px; text-align: right; font-size: 14px; line-height: 1.55; white-space: nowrap; }
.sx-empty { padding-top: 12px; }
.sx-empty p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sx-empty .sx-empty-h { font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }

/* ── All SIFs: filter pills (1053:10866) and the table (1053:10875) ── */
.sx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.sx-pill {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; line-height: 1.55; color: var(--ink); white-space: nowrap;
}
.sx-pill img { width: 9px; height: 6px; }
.sx-pill:hover { border-color: var(--faint); }
.sx-pill.open { border-color: var(--faint); }
.sx-pill.set { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; } /* "Filters are pills, never blue": applied = ink fill */
.sx-pill.all { line-height: 1.55; }
.sx-pill.all img { width: 14px; height: 14px; }
.sx-pill.set .ex-x img { filter: none; }
.sx-pop-sec + .sx-pop-sec { border-top: 1px solid var(--hair); }
.sx-pop-sec-h { padding: 12px 12px 0; font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.66px; text-transform: uppercase; color: var(--muted); }
.ex-pop.sx-all { width: 320px; max-height: min(70vh, 640px); overflow: auto; }
.ex-pop.sx-all .ex-pop-checks { max-height: none; }
.sx-pop-opts { display: flex; flex-direction: column; }
.sx-pop-opts .ex-pop-opt { font-size: 14px; }
.sx-pop-end { position: sticky; bottom: 0; background: #fff; }
.ex-filter.sx-right .ex-pop { left: auto; right: 0; }

.sx-count { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sx-table-card { background: #fff; border: 1px solid var(--line-soft); padding: 20px 20px 6px; }
.sx-table-wrap { overflow-x: auto; }
.sx-table { min-width: 1100px; }
.sx-thead, .sx-row { display: grid; grid-template-columns: minmax(200px, 1fr) 84px 84px 84px 120px 96px 96px 84px 120px; column-gap: 12px; align-items: center; }
.sx-thead { align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sx-th {
  display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 0.66px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; text-align: left;
}
.sx-th.r { justify-content: flex-end; text-align: right; }
.sx-th.sorted { color: var(--ink); }
.sx-th img { width: 9px; height: 6px; }
.sx-th img.asc { transform: rotate(180deg); }
button.sx-th:hover { color: var(--ink); }
.sx-row { padding: 12px 0; border-bottom: 1px solid var(--hair); color: inherit; }
.sx-row:hover { background: var(--surface); }
.sx-row.is-last { border-bottom: 0; }
.sx-td { min-width: 0; font-size: 14px; line-height: 1.55; white-space: nowrap; }
.sx-td.r { text-align: right; }
.sx-td.sx-ne { padding-right: 2px; } /* the design insets the value 2px from the column edge (1272:29376) */
.sx-scheme { display: flex; align-items: center; gap: 10px; font-weight: 400; line-height: 1.55; }
.sx-scheme-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-style { display: inline-block; padding: 4px 8px; background: var(--surface); font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.sx-none { margin: 0; padding: 40px 0; text-align: center; font-size: 14px; color: var(--muted); }
.sx-more { display: inline-block; margin-top: 24px; font-size: 14px; line-height: 1.55; }

@media (max-width: 1100px) {
  .sx-cards, .sx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sx-page { padding-top: 24px; }
  .sx-cards, .sx-cats { grid-template-columns: 1fr; }
  .sx-section + .sx-section { margin-top: 56px; }
}

/* SIF category pages: the empty state of a category with no launched fund */
.sx-cat-solo { max-width: 420px; }
.sx-cat-solo .link-btn { font-size: 14px; line-height: 1.55; }
.sx-catpage .sx-more { display: inline-block; }

/* "About SIFs" (Explore) and "About <category> SIFs" (category pages): server-rendered question-and-answer blocks (sif_seo.py) */
.sx-faq .faq-item { margin-top: 24px; max-width: 897px; }
.sx-faq h3, .sif-faq h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.sx-faq p, .sif-faq p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.sx-faq .inline-link, .sif-faq .inline-link { color: var(--link); }
.sx-faq .inline-link:hover, .sif-faq .inline-link:hover { text-decoration: underline; }
.sif-faq { max-width: calc(1296px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 72px; }
.sif-faq .sec-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.29px; line-height: 1.3; }
.sif-faq .faq-item { margin-top: 24px; max-width: 897px; }

/* Notice strip above Top rated SIFs (Figma Drafts 1343:22095, "SIF snackbar · A"): 24px under the tab row, 40px above the next heading */
.sx-page.has-notice { padding-top: 24px; }
.sx-notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 40px; background: var(--surface); }
.sx-notice img { flex: none; }
.sx-notice p { flex: 1 1 0; min-width: 0; margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sx-notice a { flex: none; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--link); }
.sx-notice a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .sx-notice { flex-wrap: wrap; row-gap: 6px; }
  .sx-notice p { flex-basis: calc(100% - 23px); }
  .sx-notice a { margin-left: 23px; }
}
