/* =============================================
   Top Hedge Fund List Page — matches mockup
   ============================================= */

:root {
    --hl-accent: #2EA3F2;
    --hl-black: #111;
    --hl-text: #374151;
    --hl-bg: #F8FAFC;
    --hl-border: #E2E8F0;
    --hl-green: #16A34A;
    --hl-red: #DC2626;
}

/* Outer wrapper */
.hl-top-list-page {
    padding: 40px 0 60px;
}

/* Container */
.hl-top-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Latest Version Banner */
.hl-latest-banner {
    background: #EFF6FF;
    border-left: 4px solid var(--hl-accent, #2EA3F2);
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--hl-text, #374151);
}
.hl-latest-banner a {
    color: var(--hl-accent, #2EA3F2);
    font-weight: 600;
    text-decoration: none;
}
.hl-latest-banner a:hover { text-decoration: underline; }

/* H1 */
.hl-top-list-page h1 {
    font-size: 36px;
    color: var(--hl-black);
    margin-bottom: 32px;
    font-weight: 800;
}

/* H2 */
.hl-top-list-page h2 {
    font-size: 24px;
    color: var(--hl-black);
    margin: 48px 0 20px;
    font-weight: 700;
}

/* H3 subtitle under rankings */
.hl-top-list-page h3 {
    font-size: 16px;
    color: var(--hl-text);
    font-weight: 400;
    margin-bottom: 24px;
}

/* ---- Section 3: Intro Grid ---- */
.hl-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.hl-intro-text p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}
.hl-intro-charts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hl-chart-card {
    background: var(--hl-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--hl-border);
}
.hl-chart-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    margin-bottom: 12px;
    font-weight: 600;
}

/* ---- Section 4: Stats Bar ---- */
.hl-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0 48px;
}
.hl-stat-card {
    background: var(--hl-bg);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--hl-border);
}
.hl-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--hl-black);
}
.hl-stat-label {
    font-size: 13px;
    color: #64748B;
    margin-top: 4px;
}

/* ---- Section 5: Rankings Table ---- */
.hl-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}
.hl-rankings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.hl-rankings-table thead th {
    background: var(--hl-bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--hl-black);
    border-bottom: 2px solid var(--hl-border);
    cursor: pointer;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    user-select: none;
}
.hl-rankings-table thead th:hover {
    background: #EDF2F7;
}
.hl-rankings-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #F1F5F9;
}
.hl-rankings-table tbody tr:hover {
    background: #F8FAFC;
}
.hl-rankings-table tbody td a {
    color: var(--hl-accent);
    text-decoration: none;
    font-weight: 500;
}
.hl-rankings-table tbody td a:hover {
    text-decoration: underline;
}

/* Table utility classes (no prefix — used in table content HTML) */
.aum-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.rank-up {
    color: var(--hl-green);
    font-size: 12px;
    font-weight: 600;
}
.rank-down {
    color: var(--hl-red);
    font-size: 12px;
    font-weight: 600;
}
.rank-same {
    color: #94A3B8;
    font-size: 12px;
}
.badge-new {
    background: var(--hl-accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Table row toggle */
.hl-hidden-row { display: none; }
.hl-table-expanded .hl-hidden-row { display: table-row; }
.hl-show-all-btn {
    display: block;
    margin: 16px auto 32px;
    padding: 10px 28px;
    background: var(--hl-bg);
    border: 1px solid var(--hl-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hl-accent);
    cursor: pointer;
    transition: all 0.2s;
}
.hl-show-all-btn:hover {
    background: var(--hl-accent);
    color: white;
    border-color: var(--hl-accent);
}

/* ---- Section 6: Top 10 Chart ---- */
.hl-top10-chart-wrapper {
    margin: 32px 0;
    background: var(--hl-bg);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--hl-border);
}
.hl-top10-chart-wrapper h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    margin-bottom: 16px;
    font-weight: 600;
}

/* ---- Section 7: Movers ---- */
.hl-movers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
}
.hl-mover-card {
    background: var(--hl-bg);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--hl-border);
}
.hl-mover-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--hl-black);
    margin-bottom: 16px;
}
.hl-mover-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.hl-mover-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #F1F5F9;
}
.hl-mover-table tr:last-child td {
    border-bottom: none;
}

/* ---- Section 8: Key Statistics ---- */
.hl-key-stats-list {
    list-style: none;
    padding: 0;
}
.hl-key-stats-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    border-bottom: 1px solid #F1F5F9;
}
.hl-key-stats-list li::before {
    content: '\2022';
    color: var(--hl-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
}

/* ---- Section 9: Strategy Trends ---- */
.hl-trends-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0;
}
.hl-trends-table th {
    background: var(--hl-bg);
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--hl-border);
}
.hl-trends-table td {
    padding: 8px 16px;
    border-bottom: 1px solid #F1F5F9;
}
.hl-trends-table td:nth-child(n+2) { text-align: center; }
.hl-trends-table th:nth-child(n+2) { text-align: center; }

/* ---- Section 10: FAQ ---- */
.hl-faq-item {
    border-bottom: 1px solid var(--hl-border);
    padding: 20px 0;
}
.hl-faq-q {
    font-weight: 700;
    color: var(--hl-black);
    font-size: 16px;
    margin-bottom: 8px;
}
.hl-faq-a {
    font-size: 15px;
    color: var(--hl-text);
}

/* ---- Section 11: Related Rankings ---- */
.hl-related-section {
    margin: 48px 0;
}
.hl-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hl-related-link {
    background: var(--hl-bg);
    border: 1px solid var(--hl-border);
    border-radius: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--hl-accent);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.hl-related-link:hover {
    background: var(--hl-accent);
    color: white;
    border-color: var(--hl-accent);
}

/* ---- Section 12: CTA Card ---- */
.hl-cta-card {
    display: flex;
    gap: 32px;
    background: var(--hl-bg);
    border-radius: 12px;
    padding: 32px;
    margin: 48px 0;
    border: 1px solid var(--hl-border);
    align-items: center;
}
.hl-cta-image {
    width: 160px;
    flex-shrink: 0;
}
.hl-cta-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hl-cta-content h3 {
    font-size: 22px;
    color: var(--hl-black);
    font-weight: 700;
    margin-bottom: 12px;
}
.hl-cta-content p {
    font-size: 15px;
    margin-bottom: 16px;
}
.hl-cta-pricing {
    margin-bottom: 16px;
}
.hl-cta-sale {
    font-size: 28px;
    font-weight: 800;
    color: var(--hl-black);
}
.hl-cta-regular {
    font-size: 16px;
    color: #94A3B8;
    text-decoration: line-through;
    margin-left: 12px;
}
.hl-cta-button {
    display: inline-block;
    background: var(--hl-accent);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s;
}
.hl-cta-button:hover {
    background: #1a8cd8;
}

/* ---- Section 13: Browse Cards ---- */
.hl-browse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0 48px;
}
.hl-browse-card {
    text-align: center;
    padding: 24px;
    background: var(--hl-bg);
    border-radius: 8px;
    border: 1px solid var(--hl-border);
    text-decoration: none;
    transition: all 0.2s;
}
.hl-browse-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.hl-browse-card img {
    max-width: 180px;
    margin-bottom: 12px;
}
.hl-browse-card span {
    display: block;
    font-weight: 600;
    color: var(--hl-accent);
    font-size: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hl-intro-grid { grid-template-columns: 1fr; }
    .hl-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .hl-movers-grid { grid-template-columns: 1fr; }
    .hl-browse-grid { grid-template-columns: 1fr; }
    .hl-cta-card { flex-direction: column; text-align: center; }
    .hl-top-list-page h1 { font-size: 28px; }
}
