/* ILP Fund Detail styles */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

.ilp-detail-page { font-family: "Open Sans", Arial, sans-serif; }

/* ── Container ────────────────────────────────────────── */
.ilp-detail-page .container-custom {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 100px;
    padding-right: 100px;
}
@media (min-width: 768px) and (max-width: 991px) {
    .ilp-detail-page .container-custom { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 767px) {
    .ilp-detail-page .container-custom { padding-left: 16px; padding-right: 16px; }
}

/* ── Masthead ─────────────────────────────────────────── */
.ilp-detail-masthead {
    background: #fff;
    padding: 0;
}
.ilp-detail-masthead .container-custom {
    padding-left: 0;
    padding-right: 0;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}
.ilp-detail-masthead .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    min-height: 438px;
    margin-bottom: 40px;
}
.ilp-detail-masthead .col-md-7 {
    box-sizing: border-box;
    flex: 1 0 0;
    min-width: 0;
    padding: 36px 48px 100px 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
}
.ilp-detail-masthead .col-md-5 {
    box-sizing: border-box;
    flex: 0 0 616px;
    width: 616px;
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    /* gap: 24px; */
    align-self: center;
}

.ilp-detail-fund-name {
    font-size: 48px;
    font-weight: 600;
    color: #1c1d1b;
    line-height: 1.1;
    letter-spacing: -0.96px;
    margin: 0;
}

/* Breadcrumb */
.ilp-detail-breadcrumb {
    display: none !important;
}

/* Risk tag */
.ilp-detail-risk-tag { margin: 0; }
.ilp-detail-risk-tag:empty { display: none; }
.tag-risk {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.24px;
    background: #f0f0f0;
    color: #333;
}
.tag-risk-higher-risk         { background: #da291c; color: #fff; }
.tag-risk-high-risk           { background: #da291c; color: #fff; }
.tag-risk-medium-to-high-risk { background: #da291c; color: #fff; }
.tag-risk-medium-risk         { background: #f5a623; color: #fff; }
.tag-risk-low-to-medium-risk  { background: #4a9c6f; color: #fff; }
.tag-risk-low-risk            { background: #4a9c6f; color: #fff; }

.ilp-detail-content-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ilp-detail-objective {
    font-size: 16px;
    color: #1c1d1b;
    line-height: 1.5;
    letter-spacing: -0.32px;
    margin: 0;
}
.ilp-detail-objective.ilp-text-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ilp-read-more-btn {
    color: #da291c;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.ilp-read-more-btn:hover { text-decoration: underline; }

/* Returns + Prices shared box */
.ilp-detail-returns-box,
.ilp-detail-prices-box {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}
.ilp-detail-morningstar {
    background: #f8f9fb;
    padding: 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.ilp-box-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.ilp-box-title {
    font-size: 26px;
    font-weight: 600;
    color: #1c1d1b;
    line-height: 1.3;
    letter-spacing: -0.52px;
    margin: 0;
}
.ilp-box-title b { font-weight: 600; }

.ilp-detail-valuation-date,
.ilp-prices-valuation-date {
    font-size: 14px;
    color: #1c1d1b;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.28px;
    line-height: 1.5;
}

/* Returns grid */
/* The box is a fixed width per breakpoint (616px / 480px), so the three columns
   have a hard budget. Make it a query container so .val can scale to the space it
   actually has instead of overflowing the box and clipping the trailing "%". */
.ilp-detail-returns-box { container-type: inline-size; }
.ilp-detail-returns-grid {
    display: flex;
    gap: 48px;
}
.ilp-detail-returns-row {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ilp-detail-returns-row + .ilp-detail-returns-row { border-left: none; }
.ilp-detail-returns-row .lbl {
    display: block;
    font-size: 14px;
    color: #373a36;
    letter-spacing: -0.28px;
    line-height: 1.5;
}
.ilp-detail-returns-row .val {
    display: flex;
    gap: 4px;
    align-items: baseline;
    white-space: nowrap;
    font-size: 32px; /* fallback if container query units are unsupported */
    font-size: min(32px, 6.6cqi);
    font-weight: 600;
    color: #1c1d1b;
    line-height: 1.2;
    letter-spacing: -0.64px;
}
.ilp-detail-returns-row .val.co-green { color: #1fb566; }
.ilp-detail-returns-row .val.co-red   { color: #da291c; }
.ilp-detail-returns-row .ret-pct { font-weight: 300; line-height: 1.2; }

/* Prices grid */
.ilp-prices-grid {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.ilp-detail-bid-row,
.ilp-detail-offer-row,
.ilp-detail-mid-row {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-lbl {
    display: block;
    font-size: 14px;
    color: #373a36;
    letter-spacing: -0.28px;
    line-height: 1.5;
}
.price-val {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.price-amount {
    font-size: 32px;
    font-weight: 600;
    color: #1c1d1b;
    line-height: 1.2;
    letter-spacing: -0.64px;
}
.price-currency {
    font-size: 32px;
    font-weight: 300;
    color: #1c1d1b;
    line-height: 1.2;
    letter-spacing: -0.64px;
}

/* Factsheet wrap */
.ilp-detail-factsheet-wrap {
    margin: 0;
}

/* Factsheet button */
.ilp-factsheet-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #da291c;
    color: #fff;
    border-radius: 96px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.32px;
    text-decoration: none;
    transition: background .2s;
}
.ilp-factsheet-btn:hover { background: #b82015; color: #fff; text-decoration: none; }

/* ── Secondary nav ────────────────────────────────────── */
.ilp-detail-nav {
    background: #f8f9fb;
    border-bottom: 1px solid #cdcecd;
    z-index: 100;
}
.ilp-nav-goto-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 40px 0;
    width: 435px;
    max-width: 100%;
}
.ilp-nav-goto-label {
    font-size: 12px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.24px;
    line-height: 1.2;
    margin: 0;
}
.ilp-nav-custom-select {
    position: relative;
}
.ilp-nav-custom-trigger {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 52px 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1c1d1b;
    background: #fff;
    border: 1px solid #696b68;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: -0.32px;
    box-sizing: border-box;
    transition: border-color .2s, background-color .2s;
    text-align: left;
    position: relative;
}
.ilp-nav-custom-trigger svg {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.ilp-nav-custom-trigger:hover {
    border-color: #9ea1a0;
    background-color: #fffdfd;
}
.ilp-nav-custom-trigger:focus {
    outline: none;
    border-color: #da291c;
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.16);
}
.ilp-nav-custom-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #cdcecd;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    z-index: 300;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.ilp-nav-custom-menu[hidden] { display: none; }
.ilp-nav-custom-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #1c1d1b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .15s;
}
.ilp-nav-custom-option:hover {
    background: #f8f9fb;
}
.ilp-nav-custom-option.is-selected {
    background: #fde8e7;
    font-weight: 600;
}
.ilp-nav-custom-option.is-selected::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%231c1d1b' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}

/* ── Performance & Prices section ─────────────────────── */
#performance.section {
    padding: 80px 0 0;
    background: #fff;
}
.ilp-section-title {
    font-size: 32px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.64px;
    line-height: 1.2;
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Tab switch */
.ilp-tab-switch {
    display: flex;
    gap: 32px;
    justify-content: center;
}
.ilp-tab-btn {
    padding: 16px 0;
    background: none;
    border: none;
    border-bottom: 6px solid transparent;
    margin-bottom: -1px;
    font-size: 18px;
    font-weight: 600;
    color: #1c1d1b;
    cursor: pointer;
    letter-spacing: -0.36px;
    transition: color .2s, border-color .2s;
}
.ilp-tab-btn:hover  { color: #da291c; }
.ilp-tab-btn.active { color: #da291c; border-bottom-color: #da291c; }

/* ── Range section ────────────────────────────────────── */
.ilp-range-section {
    /*
     * Break out of .ilp-chart-box (100px padding each side),
     * then back to full container width, then add Figma's 340px
     * padding = 760px content width (matches node 305-33829).
     * container-custom has 100px padding → section is 1240px wide
     * -100px margin → section expands to 1440px (page edge)
     * 340px padding → content at 340px from page edge = 760px wide ✓
     */
    margin: 0 -100px;
    padding: 24px 340px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items : center;
}
.ilp-range-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ilp-range-heading {
    font-size: 18px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.36px;
    line-height: 1.5;
    margin: 0;
}
/* "Clear filters" link injected by JS */
.ilp-clear-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #da291c;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.ilp-clear-filter-btn:hover { text-decoration: underline; }
.ilp-range-filter-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.ilp-filter-by-label {
    font-size: 12px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.24px;
    line-height: 1.2;
}
.ilp-range-select,
.ilp-price-range-select {
    height: 48px;
    padding: 0 48px 0 20px;
    font-size: 16px;
    font-weight: 400;
    color: #1c1d1b;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%231c1d1b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 20px;
    border: 1px solid #696b68;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    letter-spacing: -0.32px;
    width: 294px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.ilp-range-select:focus,
.ilp-price-range-select:focus {
    outline: none;
    border-color: #da291c;
}

/* ── Performance chart header ─────────────────────────── */
.ilp-perf-chart-header,
.ilp-price-chart-header {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 24px;
}
.ilp-perf-date-range,
.ilp-price-date-range {
    font-size: 18px;
    font-weight: 700;
    color: #1c1d1b;
    text-align: center;
    letter-spacing: -0.36px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.ilp-perf-return-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}
.ilp-perf-return-num,
.ilp-perf-return-pct {
    font-size: 32px;
    font-weight: 600;
    color: #1c1d1b;
    line-height: 1.2;
    letter-spacing: -0.64px;
}
.ilp-perf-return-pct { font-weight: 300; }
.ilp-perf-return-wrap.co-green .ilp-perf-return-num,
.ilp-perf-return-wrap.co-green .ilp-perf-return-pct { color: #1fb566; }
.ilp-perf-return-wrap.co-red .ilp-perf-return-num,
.ilp-perf-return-wrap.co-red .ilp-perf-return-pct   { color: #da291c; }
.ilp-perf-period-label {
    font-size: 14px;
    font-weight: 700;
    color: #1c1d1b;
    letter-spacing: -0.28px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.ilp-copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #f6c9c6;
    color: #6d150e;
    border: none;
    border-radius: 96px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.32px;
    line-height: 1.5;
    transition: opacity .2s;
}
.ilp-copy-link-btn:hover { opacity: 0.8; }

/* Chart box */
.ilp-chart-box {
    background: #fff;
    padding: 24px 100px;
}
@media (max-width: 767px) {
    .ilp-chart-box {padding: 24px 0px;}
}
.ilp-chart-updated-at { color: #373a36; font-size: 14px; letter-spacing: -0.28px; }

.ilp-chart-wrapper     { position: relative; min-height: 200px; }
.ilp-chart-caption {
    font-size: 14px;
    font-weight: 400;
    color: #1c1d1b;
    text-align: center;
    letter-spacing: -0.28px;
    line-height: 1.5;
    margin-top: 20px;
}
.ilp-chart-hover-notification { display: none; }

/* ── Historical returns table ─────────────────────────── */
.ilp-historical-return {
    padding-bottom: 80px;
}
.ilp-hist-title {
    font-size: 32px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.64px;
    line-height: 1.2;
    margin-top: 56px;
    margin-bottom: 0;
}
.ilp-historical-table-wrapper {
    overflow-x: auto;
    border: 1px solid #cdcecd;
    border-radius: 8px;
    margin-top: 40px;
}
.ilp-hist-returns-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}
.ilp-hist-returns-table th,
.ilp-hist-returns-table td {
    text-align: left;
    color: #1c1d1b;
    line-height: 1.5;
}
.ilp-hist-returns-table td {
    padding: 20px 24px;
    font-size: 16px;
    letter-spacing: -0.32px;
    border-right: 1px solid #ebebeb;
    border-bottom: none;
}
.ilp-hist-returns-table td:last-child { border-right: none; }
.ilp-hist-returns-table th {
    padding: 12px;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    background: #68737a;
    letter-spacing: -0.24px;
    line-height: 1.2;
    border-right: none;
}
.ilp-hist-returns-table tbody tr:nth-child(odd)  { background: #f8f9fb; }
.ilp-hist-returns-table tbody tr:nth-child(even) { background: #fff; }
.ilp-hist-returns-table td.co-green { color: #1fb566; font-weight: 400; }
.ilp-hist-returns-table td.co-red   { color: #da291c; font-weight: 400; }
.ilp-hist-footnote {
    font-size: 14px;
    color: #1c1d1b;
    letter-spacing: -0.14px;
    line-height: 1.5;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 0;
}
.co-green { color: #1fb566; font-weight: 600; }
.co-red   { color: #da291c; font-weight: 600; }

/* ── About this fund ──────────────────────────────────── */
#about.section {
    background: #eff0f1;
    padding: 80px 0 40px 0;
}
#about.section h2,
#dividends.section h2 {
    font-size: 32px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.64px;
    line-height: 1.2;
    margin: 0;
}
#about.section h2 b,
#about.section h2 strong,
#dividends.section h2 b,
#dividends.section h2 strong { font-weight: 600; }
.ilp-about-fund { margin-top: 32px; }
.ilp-about-fund-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Fund facts — wrapper handles border + radius */
.ilp-fund-facts-list {
    position: relative;
}
.ilp-fund-facts-wrap {
    border: 1px solid #cdcecd;
    border-radius: 8px;
    overflow: hidden;
}
.ilp-fund-facts-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin-top: 0;
}
.ilp-fund-facts-table thead th {
    background: #68737a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px;
    text-align: left;
    letter-spacing: -0.24px;
}
.ilp-fund-facts-table tbody tr:nth-child(odd)  { background: #f8f9fb; }
.ilp-fund-facts-table tbody tr:nth-child(even) { background: #fff; }
.ilp-fund-facts-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #ebebeb;
    font-size: 16px;
    color: #1c1d1b;
    line-height: 1.5;
    letter-spacing: -0.32px;
    width: 50%;
    border-right: 1px solid #ebebeb;
    vertical-align: middle;
}
.ilp-fund-facts-table td:last-child { border-right: none; }

.ilp-facts-asset-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fde8e7;
    border-radius: 4px;
    padding: 0 4px 0 6px;
    font-size: 14px;
    color: #1c1d1b;
    letter-spacing: -0.28px;
    line-height: 1.5;
}
.ilp-facts-info-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #1c1d1b;
    line-height: 1;
}
.ilp-facts-info-btn:hover { opacity: 0.7; }

/* Tooltip popup */
.ilp-facts-tooltip {
    position: absolute;
    z-index: 200;
    width: 244px;
    background: #f8f9fb;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 6px 10px rgba(0,59,92,.08), 0 1px 18px rgba(0,59,92,.06), 0 3px 5px rgba(0,59,92,.10);
    font-size: 12px;
    color: #1c1d1b;
    line-height: 1.2;
}
.ilp-facts-tooltip[hidden] { display: none; }
.ilp-facts-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent #f8f9fb transparent transparent;
}
.ilp-facts-tooltip-heading {
    font-weight: 400;
    margin-bottom: 12px;
    font-size: 12px;
}
.ilp-facts-tooltip p {
    margin-bottom: 12px;
    font-size: 12px;
}
.ilp-facts-tooltip p:last-child { margin-bottom: 0; }
.ilp-facts-tooltip strong { font-weight: 700; }

/* Legacy list style (fallback) */
.ilp-detail-list .item {
    padding: 12px 16px;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
}
.ilp-detail-list .item:nth-child(odd) { background: #f8f9fb; }
.ilp-detail-list .item p { margin-bottom: 0; font-size: 16px; color: #1c1d1b; }

/* ── Dividend history ─────────────────────────────────── */
#dividends.section {
    background: #eff0f1;
    padding: 1px 0 80px 0;
}
.ilp-detail-dividend { margin-top: 32px; }
.ilp-dividend-table-wrap {
    border: 1px solid #cdcecd;
    border-radius: 8px;
    overflow: hidden;
    margin-top:32px;
}
.ilp-dividend-table {
    width: 100%;
    border-collapse: collapse;
}
.ilp-dividend-table th {
    background: #68737a;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px;
    text-align: left;
    letter-spacing: -0.24px;
}
.ilp-dividend-table tbody tr:nth-child(odd)  { background: #f8f9fb; }
.ilp-dividend-table tbody tr:nth-child(even) { background: #fff; }
.ilp-dividend-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    font-size: 16px;
    color: #1c1d1b;
    line-height: 1.5;
    letter-spacing: -0.32px;
    width: 50%;
    vertical-align: middle;
}
.ilp-dividend-table td:last-child { border-right: none; }
.ilp-dividend-table tr:last-child td { border-bottom: none; }
.ilp-dividend-more {
    border-top: 1px solid #ebebeb;
}
.ilp-dividend-more[hidden] {
    display: none;
}
.ilp-dividend-toggle {
    margin-top: 20px;
    background: transparent;
    border: none;
    color: #da291c;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.32px;
    padding: 0;
}
.ilp-dividend-toggle:hover { text-decoration: underline; }

/* ── Fund documents ───────────────────────────────────── */
#documents.section {
    background: #fff;
    padding: 80px 0;
}
.ilp-doc-section-title {
    font-size: 32px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.64px;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 32px;
}
.ilp-back-to-list-wrap {
    text-align: center;
    margin-top: 32px;
}
.ilp-document-list { margin-bottom: 32px; }
.ilp-docs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ilp-doc-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fb;
    border-radius: 12px;
    text-decoration: none;
    min-height: 80px;
}
.ilp-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 12px;
    border-radius: 100px;
    background: transparent;
    color: #1c1d1b;
}
.ilp-doc-icon svg { width: 24px; height: 24px; }
.ilp-doc-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    min-width: 0;
}
.ilp-doc-name {
    font-size: 16px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    line-height: 1.3;
}
.ilp-doc-download-link {
    font-size: 16px;
    font-weight: 600;
    color: #da291c;
    letter-spacing: -0.32px;
    line-height: 1.5;
    text-decoration: none;
}
.ilp-doc-download-link:hover { text-decoration: underline; }

/* Legacy document list fallback */
.ilp-document-list .item {
    padding: 14px 0;
    border-bottom: 1px solid #ebebeb;
}
.ilp-document-list .item p { margin-bottom: 0; font-size: 16px; color: #1c1d1b; }
.ilp-doc-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #da291c;
    font-weight: 600;
    text-decoration: none;
}
.ilp-doc-btn a:hover { text-decoration: underline; }

/* Back to fund list */
.ilp-default-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    color: #da291c;
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.32px;
    text-decoration: none;
    transition: opacity .2s;
}
.ilp-default-btn:hover { opacity: 0.8; text-decoration: none; color: #da291c; }

/* ── Chart legend ─────────────────────────────────────── */
.ilp-chart-legend .item,
.ilp-price-chart-legend .item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1c1d1b;
}
.legend-color {
    display: inline-block;
    width: 16px;
    height: 21px;
    flex-shrink: 0;
}

/* ── Custom range dropdown ────────────────────────────── */
.ilp-custom-select { position: relative; width: 294px; }
.ilp-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 16px 0 20px;
    background: #fff;
    border: 1px solid #696b68;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s;
    box-sizing: border-box;
}
.ilp-custom-select-trigger:hover { border-color: #1c1d1b; }
.ilp-custom-select-trigger[aria-expanded="true"] { border-color: #da291c; }
.ilp-custom-select-label { flex: 1; pointer-events: none; }
.ilp-custom-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #cdcecd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 300;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.ilp-custom-select-menu[hidden] { display: none; }
.ilp-custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 16px;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    cursor: pointer;
    transition: background .15s;
    list-style: none;
}
.ilp-custom-select-option:hover { background: #fde8e7; }
.ilp-custom-select-option.ilp-option-selected::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%231c1d1b' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}
.ilp-option-other {
    border-top: 1px solid #ebebeb;
    margin-top: 4px;
    padding-top: 16px;
    color: #da291c;
    font-weight: 600;
}

/* ── Date range picker modal ──────────────────────────── */
.ilp-daterange-modal[hidden] { display: none; }
.ilp-daterange-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ilp-daterange-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28,29,27,0.4);
}
.ilp-daterange-dialog {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 24px 38px rgba(0,59,92,0.08);
    width: 90%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.ilp-daterange-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ilp-daterange-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    color: #1c1d1b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    transition: opacity .2s;
}
.ilp-daterange-close:hover { opacity: 0.6; }
.ilp-daterange-title-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ilp-daterange-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    line-height: 1.5;
    margin: 0;
}
.ilp-daterange-heading {
    font-size: 26px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.52px;
    line-height: 1.3;
    margin: 0;
}
.ilp-daterange-calendars {
    display: flex;
    gap: 24px;
}
.ilp-cal {
    flex: 1;
    position: relative;
    background: #fff;
    border-radius: 4px;
    padding: 24px 16px 16px;
    min-width: 0;
    box-sizing: border-box;
    box-shadow: 0 24px 38px rgba(0,59,92,0.04);
}
.ilp-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    margin-bottom: 16px;
}
.ilp-cal-month-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.ilp-cal-month-label::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11.9997 13.1719L16.9497 8.22192L18.3637 9.63592L11.9997 15.9999L5.63574 9.63592L7.04974 8.22192L11.9997 13.1719Z' fill='%231C1D1B'/%3E%3C/svg%3E");
    background-size: 24px 24px;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform .2s;
}
.ilp-cal-month-label[aria-expanded="true"]::after {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11.9997 13.1719L16.9497 8.22192L18.3637 9.63592L11.9997 15.9999L5.63574 9.63592L7.04974 8.22192L11.9997 13.1719Z' fill='%23da291c'/%3E%3C/svg%3E");
}
.ilp-cal-nav { display: flex; gap: 8px; }
.ilp-cal-prev,
.ilp-cal-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1c1d1b;
    border-radius: 4px;
    transition: background .15s;
    padding: 0;
}
.ilp-cal-prev:hover,
.ilp-cal-next:hover { background: #eff0f1; }
.ilp-cal-date-disabled,
.ilp-cal-date[disabled] { color: #c4c6c8; cursor: default; pointer-events: none; }
.ilp-cal-prev[disabled],
.ilp-cal-next[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.ilp-mpy-month[disabled],
.ilp-mpy-month.is-disabled { color: #c4c6c8; cursor: default; pointer-events: none; }
.ilp-mpy-month[disabled]:hover { background: transparent; color: #c4c6c8; }
.ilp-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 32px);
    column-gap: 8px;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}
.ilp-cal-days-header span {
    font-size: 16px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    line-height: 1.3;
    text-align: center;
}
.ilp-cal-grid-dates {
    display: grid;
    grid-template-columns: repeat(7, 32px);
    column-gap: 8px;
    row-gap: 16px;
    justify-content: center;
    margin-top: 16px;
}
.ilp-cal-date {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    padding: 4px;
    font-size: 14px;
    color: #1c1d1b;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: -0.28px;
    transition: background .1s, color .1s;
    box-sizing: border-box;
}
.ilp-cal-date:hover:not(.ilp-cal-date-start):not(.ilp-cal-date-end) { background: #eff0f1; }
.ilp-cal-date-other { color: #696b68; }
.ilp-cal-date-start,
.ilp-cal-date-end {
    background: #a31f15 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 4px;
}
.ilp-cal-date-in-range {
    background: #fde8e7;
    border-radius: 0;
}
/* ── Month/Year picker ────────────────────────────────── */
.ilp-cal-month-picker[hidden] { display: none; }
.ilp-cal-month-picker {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cdcecd transparent;
}
.ilp-cal-month-picker::-webkit-scrollbar { width: 4px; }
.ilp-cal-month-picker::-webkit-scrollbar-thumb { background: #cdcecd; border-radius: 2px; }
.ilp-mpy-sentinel { height: 1px; }
.ilp-mpy-year {
    display: block;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    color: #1c1d1b;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    transition: background .1s;
}
.ilp-mpy-year:hover { background: #eff0f1; }
.ilp-mpy-year.is-selected { font-weight: 700; color: #da291c; }
.ilp-mpy-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px 8px 8px;
}
.ilp-mpy-month {
    padding: 6px 4px;
    font-size: 13px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    color: #1c1d1b;
    transition: background .1s;
}
.ilp-mpy-month:hover { background: #eff0f1; }
.ilp-mpy-month.is-selected {
    background: #da291c;
    color: #fff;
    font-weight: 600;
}



.ilp-daterange-footer {
    padding-top: 0;
}
.ilp-daterange-selected-label {
    font-size: 16px;
    font-weight: 400;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    line-height: 1.5;
    margin: 0;
}
.ilp-daterange-apply {
    display: inline-block;
    padding: 12px 24px;
    min-width: 120px;
    background: #da291c;
    color: #fff;
    border: none;
    border-radius: 96px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.32px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, opacity .2s;
}
.ilp-daterange-apply:hover { background: #b82015; }
.ilp-daterange-apply:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Loading / error ──────────────────────────────────── */
.ilp-detail-loading { padding: 60px 0; color: #373a36; }
.ilp-perf-chart-loading,
.ilp-price-chart-loading { color: #373a36; padding: 40px 0; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1199px) {
    .ilp-detail-masthead .col-md-5 { flex: 0 0 480px; width: 480px; }
    .ilp-detail-masthead .col-md-7 { padding: 60px 48px; }
    .ilp-detail-returns-grid { gap: 24px; }
    .ilp-prices-grid { gap: 24px; }
}
@media (max-width: 991px) {
    .ilp-detail-masthead .row { flex-wrap: wrap; min-height: unset; }
    .ilp-detail-masthead .col-md-7 { flex: 0 0 100%; min-width: 100%; padding: 48px 24px; }
    .ilp-detail-masthead .col-md-5 { flex: 0 0 100%; width: 100%; padding: 0 24px 48px; }
    .ilp-range-section { margin: 0 -100px; padding: 24px 100px 32px; }
}

@media (max-width: 767px) {
    .ilp-detail-masthead .col-md-7 { padding: 40px 16px; }
    .ilp-detail-masthead .col-md-5 { padding: 0 16px 40px; gap: 24px; }
    .ilp-detail-returns-box, .ilp-detail-morningstar, .ilp-detail-prices-box { padding: 20px; }
    .ilp-detail-fund-name { font-size: 32px; }
    .ilp-detail-returns-grid { gap: 16px; }
    .ilp-prices-grid { gap: 16px; }
    .ilp-detail-nav .nav-link { padding: 12px 14px; font-size: 13px; }
    .ilp-chart-range-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .ilp-chart-range-scroll::-webkit-scrollbar { height: 3px; }
    .ilp-tab-btn { padding: 10px 16px; font-size: 14px; }
    .ilp-range-section { margin: 0 -16px; padding: 24px 16px 32px; }
    .ilp-daterange-dialog { padding: 24px; gap: 16px; }
    .ilp-daterange-subtitle { font-size: 14px; }
    .ilp-daterange-heading { font-size: 16px; font-weight: 600; }
    .ilp-daterange-close svg { width: 16px; height: 16px; }
    .ilp-daterange-calendars { flex-direction: column; }
    .ilp-cal-days-header,
    .ilp-cal-grid-dates { column-gap: 4px; }
    .ilp-daterange-apply { width: 100%; text-align: center; display: block; min-width: unset; }
    .ilp-docs-row { grid-template-columns: 1fr; }
    .price-amount, .price-currency { font-size: 24px; }
    .ilp-detail-returns-row .val { font-size: 24px; font-size: min(24px, 6.6cqi); }
    #about.section,
    #dividends.section,
    #documents.section,
    #performance.section { padding: 48px 0; }
}
