/* Halaman /indeks (index.php) dan /indeks/detail/{nama} (detail.php). Dimuat lewat var_custom_css di Indeks. */

:root {
	--ix-green: #72c02c;
	--ix-green-dark: #4c8a1e;
	--ix-forest: #1f3a2a;
	--ix-ink: #1f2d24;
	--ix-muted: #6b7280;
	--ix-line: #e6e8eb;
	--ix-bg: #f6f8f7;
	--ix-radius: 12px;
	--ix-up: #1f9d55;
	--ix-dn: #d64545;
}

/* ---------- Header ---------- */
.ix-top {
	color: #fff; padding: 28px 0 32px;
	background:
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(135deg, #142319 0%, #1f3a2a 55%, #2d5a3a 100%);
}
.ix-crumb { font-size: 13px; color: #9fb7a5; margin-bottom: 14px; }
.ix-crumb a { color: #cfe3d4; }
.ix-top h1 { color: #fff; font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.ix-lead { color: #c9d9cd; font-size: 16px; max-width: 700px; margin-bottom: 18px; }
.ix-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 20px; padding: 0; color: #c9d9cd; }
.ix-stats b { color: #fff; font-size: 18px; margin-right: 4px; }
.ix-top .up { color: #6fdc8c; } .ix-top .dn { color: #ff8a8a; }
.ix-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ix-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 0 12px; margin: 0; flex: 0 1 340px; }
.ix-search i { color: var(--ix-muted); }
.ix-search input { border: 0; outline: 0; height: 42px; width: 100%; font-size: 15px; color: var(--ix-ink); background: none; }
.ix-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-filter button { border: 1px solid rgba(255,255,255,.25); background: transparent; color: #e6f0e8; border-radius: 18px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ix-filter button span { opacity: .65; font-weight: 400; margin-left: 2px; }
.ix-filter button:hover { border-color: var(--ix-green); }
.ix-filter button.active { background: var(--ix-green); border-color: var(--ix-green); color: #fff; }

/* ---------- Isi ---------- */
.ix-body { background: var(--ix-bg); padding: 32px 0 48px; }
.ix-body .up { color: var(--ix-up); } .ix-body .dn { color: var(--ix-dn); }
.ix-grup { margin-bottom: 32px; }
.ix-grup h2 { font-size: 22px; font-weight: 700; color: var(--ix-ink); margin: 0 0 4px; }
.ix-intro { color: var(--ix-muted); margin-bottom: 14px; max-width: 680px; }
.ix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.ix-card {
	display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--ix-line); border-radius: var(--ix-radius);
	padding: 16px; color: var(--ix-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ix-card:hover { color: var(--ix-ink); text-decoration: none; border-color: var(--ix-green); box-shadow: 0 8px 22px rgba(31,58,42,.09); transform: translateY(-2px); }
.ix-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ix-card-head b { font-size: 18px; }
.ix-chg { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ix-ket { font-size: 13px; color: var(--ix-muted); line-height: 1.5; }
.ix-angka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 0; padding: 10px 0 0; border-top: 1px solid #f1f3f5; }
.ix-angka dt { font-size: 11px; font-weight: 600; color: var(--ix-muted); text-transform: uppercase; letter-spacing: .3px; }
.ix-angka dd { margin: 0; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ix-bar { display: block; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.ix-bar-naik { fill: #7fcf96; }
.ix-bar-turun { fill: #f2a3a3; }
.ix-nt { font-size: 12px; margin-top: -4px; }
.ix-top3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; }
.ix-top3 small { font-size: 12px; color: var(--ix-muted); margin-right: 2px; }
.ix-top3 em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ix-forest); background: #f3f7f1; border-radius: 6px; padding: 2px 7px; }
.ix-empty { background: #fff; border: 1px dashed var(--ix-line); border-radius: var(--ix-radius); padding: 24px; text-align: center; color: var(--ix-muted); }
.ix-note { font-size: 12px; color: var(--ix-muted); margin: -12px 0 0; }

.ix-box { background: #fff; border: 1px solid var(--ix-line); border-radius: var(--ix-radius); padding: 22px; margin-bottom: 16px; }
.ix-box h2 { font-size: 18px; font-weight: 700; color: var(--ix-ink); margin: 0 0 10px; }
.ix-about { margin-top: 28px; color: #374151; line-height: 1.7; }
.ix-about h2 + p { margin-top: 0; }
.ix-about p + h2 { margin-top: 22px; }
.ix-faq { border-top: 1px solid #f1f3f5; padding: 10px 0; }
.ix-faq summary { cursor: pointer; font-weight: 600; color: var(--ix-ink); }
.ix-faq p { margin: 8px 0 0; }

/* ---------- Sidebar ---------- */
.ix-side { position: sticky; top: calc(var(--hdr-h, 0px) + 16px); }
.ix-side .ix-box { padding: 18px; }
.ix-side .ix-box h2 { font-size: 16px; }
.ix-h2-2 { margin-top: 16px !important; }
.ix-rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ix-rank li { counter-increment: rank; }
.ix-rank a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f1f3f5; color: var(--ix-ink); text-decoration: none; font-size: 14px; }
.ix-rank li:last-child a { border-bottom: 0; }
.ix-rank a::before { content: counter(rank); width: 20px; color: var(--ix-muted); font-size: 12px; }
.ix-rank a:hover span { color: var(--ix-green-dark); }
.ix-rank b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ix-cta { background: #eef6e8; border-color: #d5eac4; }
.ix-cta p { color: #4b5a50; font-size: 14px; }
.ix-btn { background: var(--ix-green); color: #fff; border-radius: 10px; font-weight: 600; padding: 8px 16px; }
.ix-btn:hover { background: var(--ix-green-dark); color: #fff; }
.ix-btn i { margin-right: 4px; }

/* ---------- Halaman detail ---------- */
.ix-kat { display: inline-block; font-size: 12px; font-weight: 600; color: #b6e48e; background: rgba(114,192,44,.18); border-radius: 6px; padding: 3px 9px; margin-bottom: 8px; }
.ix-val { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.ix-val div { background: #fff; border: 1px solid var(--ix-line); border-radius: var(--ix-radius); padding: 14px 16px; }
.ix-val dt { font-size: 12px; font-weight: 600; color: var(--ix-muted); }
.ix-val dd { margin: 0; font-size: 22px; font-weight: 700; color: var(--ix-forest); font-variant-numeric: tabular-nums; }
.ix-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ix-duo .ix-box { padding: 18px; }
.ix-duo h2 { font-size: 16px; }
.ix-gerak { list-style: none; margin: 0; padding: 0; }
.ix-gerak a { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #f1f3f5; color: var(--ix-ink); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.ix-gerak li:last-child a { border-bottom: 0; }
.ix-gerak a:hover b { color: var(--ix-green-dark); }
.ix-gerak span { color: var(--ix-muted); }
.ix-gerak em { font-style: normal; font-weight: 700; margin-left: auto; }
.ix-sektor { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ix-sektor li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; font-size: 13px; }
.ix-sektor small { color: var(--ix-muted); }
.ix-sektor b { font-variant-numeric: tabular-nums; }
.ix-sektor svg { grid-column: 1 / -1; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.ix-bar-bg { fill: #eef0f2; }
.ix-bar-isi { fill: var(--ix-green); }
.ix-box .ix-note { margin: 10px 0 0; }

.ix-tools-light { justify-content: space-between; margin-bottom: 12px; }
.ix-tools-light .ix-search { border: 1px solid var(--ix-line); }
.ix-tools-light .ix-search input { height: 40px; font-size: 14px; }
.ix-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--ix-muted); }
.ix-sort select { height: 40px; border: 1px solid var(--ix-line); border-radius: 10px; padding: 0 10px; font-size: 14px; color: var(--ix-ink); background: #fff; }
.ix-table-wrap { max-height: 760px; overflow: auto; border: 1px solid var(--ix-line); border-radius: 10px; }
.ix-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ix-table thead th { position: sticky; top: 0; z-index: 1; background: #fafbfa; font-size: 12px; font-weight: 600; color: var(--ix-muted); padding: 10px; border-bottom: 1px solid var(--ix-line); text-align: right; white-space: nowrap; }
.ix-table thead th:first-child { text-align: left; }
.ix-table tbody th, .ix-table td { padding: 9px 10px; border-bottom: 1px solid #f1f3f5; vertical-align: middle; }
.ix-table tbody th { font-weight: 400; text-align: left; }
.ix-table td { text-align: right; white-space: nowrap; color: #374151; }
.ix-table td small { display: block; font-size: 11px; color: var(--ix-muted); }
.ix-table td small.up { color: var(--ix-up); } .ix-table td small.dn { color: var(--ix-dn); }
.ix-emiten { display: flex; align-items: center; gap: 10px; color: var(--ix-ink); text-decoration: none; min-width: 0; }
.ix-emiten:hover { color: var(--ix-green-dark); text-decoration: none; }
.ix-emiten img, .ix-logo-text { width: 32px; height: 32px; flex-shrink: 0; border-radius: 7px; border: 1px solid var(--ix-line); background: #fff; object-fit: contain; padding: 2px; }
.ix-logo-text { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ix-forest); background: #eef5e8; }
.ix-emiten > span { display: flex; flex-direction: column; min-width: 0; }
.ix-emiten small { color: var(--ix-muted); font-size: 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-stars { font-size: 12px; letter-spacing: 1px; color: #d6d9de; }
.ix-stars i { font-style: normal; }
.ix-stars .on { color: #f5a623; }
.ix-stars .half { background: linear-gradient(90deg, #f5a623 50%, #d6d9de 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ix-mirip b { font-weight: 600; color: var(--ix-muted); font-size: 13px; }
.ix-more { display: inline-block; font-weight: 600; color: var(--ix-green-dark); font-size: 14px; padding: 0 4px; }

/* ---------- Responsif ---------- */
@media (max-width: 991px) {
	.ix-side { position: static; }
}
@media (max-width: 767px) {
	.ix-top h1 { font-size: 24px; }
	.ix-search { flex-basis: 100%; }
	.ix-grid { grid-template-columns: 1fr; }
	/* detail */
	.ix-val { grid-template-columns: 1fr 1fr; }
	.ix-duo { grid-template-columns: 1fr; gap: 0; }
	.ix-table-wrap { max-height: none; border: 0; overflow: visible; }
	.ix-table thead { display: none; }
	.ix-table, .ix-table tbody, .ix-table tr { display: block; }
	.ix-table tr { border: 1px solid var(--ix-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
	.ix-table tbody th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; }
	.ix-table td { padding: 0; border: 0; text-align: left; font-size: 13px; }
	.ix-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--ix-muted); }
}
