/* ==========================================================================
   CSS Variables (Light Theme based on original style.css + Gold accent)
   ========================================================================== */
:root {
    /* Brand Colors */
    --blue-400: #60ABE9;
    --blue-500: #4682B4;
    --gold: #0091fe;
    --dark-bg: #091117;

    /* Utility Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic Colors */
    --positive: #10b981;
    --negative: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;

    --font-family: 'Inter', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
.ng-factsheet-wrapper {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.5;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.ng-factsheet-wrapper * {
    box-sizing: border-box;
}

.ng-factsheet-wrapper a {
    text-decoration: none;
    color: var(--blue-500);
}

.ng-factsheet-wrapper h1,
.ng-factsheet-wrapper h2,
.ng-factsheet-wrapper h3,
.ng-factsheet-wrapper h4 {
    margin: 0 0 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

.text-gold {
    color: var(--gold) !important;
}

.text-blue {
    color: var(--blue-500) !important;
}

.text-sm {
    font-size: 0.875rem;
}

.fw-bold {
    font-weight: 700;
}

.fw-500 {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.d-block {
    display: block;
}

/* Flex Utilities */
.d-flex {
    display: flex;
}

.d-flex-col {
    display: flex;
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.flex-grow {
    flex-grow: 1;
}

/* Buttons */
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    gap: 0.5rem;
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    background: transparent;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   Header & Info Grid
   ========================================================================== */
.factsheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.header-titles h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.header-titles h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gold);
}

.subtitle-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.info-cell {
    padding: 1rem;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.info-cell:last-child {
    border-right: none;
}

.info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.info-val {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.info-sub {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.disclaimer-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ==========================================================================
   Sections & Grids
   ========================================================================== */
.section-block {
    margin-bottom: 2rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-60-40 {
    display: grid;
    grid-template-columns: 6fr 4fr;
    gap: 1.5rem;
}

.grid-40-60 {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 1.5rem;
}

.grid-2-col>div,
.grid-3-col>div,
.grid-4-col>div,
.grid-60-40>div,
.grid-40-60>div {
    min-width: 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Charts & Tables
   ========================================================================== */
.chart-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    padding-bottom: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
}

.tab.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--gray-700);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 4px;
    display: inline-block;
}

.dot.gold {
    background: var(--gold);
}

.dot.dark {
    background: var(--gray-800);
}

.dot.blue {
    background: var(--blue-500);
}

.clean-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.clean-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--gray-600);
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    text-align: left;
}

.clean-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-800);
}

.clean-table tr:last-child td {
    border-bottom: none;
}

.summary-sub {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.footnote-sm {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 1rem;
}

/* ==========================================================================
   Positioning & Characteristics
   ========================================================================== */
.badge-outline-gold {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pos-split {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pos-themes {
    flex: 1;
}

.theme-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.theme-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pos-donut {
    width: 140px;
    height: 140px;
}

.donut-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-900);
    width: 80px;
}

.commentary-text {
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* ==========================================================================
   Documents & Footer
   ========================================================================== */
.doc-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    color: var(--gray-800);
}

.doc-card:hover {
    border-color: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.doc-icon {
    font-size: 2rem;
    color: var(--gray-500);
    margin-right: 1rem;
}

.doc-details h4 {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.doc-details span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.footer-disclaimer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem 1rem 0 1rem;
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 1400px;
    margin: auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Responsive */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    display: block;
}

.chart-tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    white-space: nowrap;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--gray-700);
    flex-wrap: wrap;
}

@media(max-width: 1024px) {

    .grid-2-col,
    .grid-3-col,
    .grid-4-col,
    .grid-60-40,
    .grid-40-60 {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .disclaimer-bar,
    .footer-disclaimer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media(max-width: 768px) {
	.disc{
		flex-direction:column;
		margin-top:10px;
	}
	.disc p:last-child{
		position:relative !important;
	}
    .card {
        min-width: 0;
        max-width: 100%;
    }

    .clean-table {
        white-space: nowrap;
    }

    .flex-wrap-mobile {
        flex-direction: column;
        align-items: flex-start;
    }

    .flex-wrap-mobile>div {
        width: 100%;
    }

    .growth-legend {
        padding-left: 0 !important;
        margin-top: 1.5rem;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .pos-split {
        flex-direction: column;
        align-items: flex-start;
    }

    .pos-donut {
        margin-top: 1rem;
        align-self: center;
    }
}

@media(max-width: 640px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .factsheet-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-titles h1 {
        font-size: 1.75rem;
    }
}

.ng-factsheet-wrapper {
    padding-top: 5rem;
}

header.top-menu.inner-menu.light-header {
    background-color: #091117 !important;
}

table.clean-table th {
    color: black;
}

.holdings-section table.clean-table th {
    color: white !important;
}

.fa-file-alt:before,
.fa-file-lines:before,
.fa-file-text:before {
    color: red;
}

.risk-warning {
    text-align: center;
	font-size:0.75rem;
}
.card.perf-chart-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}