/* ILP Fund Compare 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-compare-page { font-family: "Open Sans", Arial, sans-serif; }

.ilp-compare-heading {
    margin-bottom: 24px;
}

.ilp-compare-description {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 24px;
}

/* ── Header / back ───────────────────────────────────── */
.ilp-back-to-list {
    display: table;
    margin: 0 auto;
    padding: 12px 24px;
    border: 2px solid #373a36;
    color: #373a36;
    border-radius: 96px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.32px;
    line-height: 1.5;
    white-space: nowrap;
    min-width: 120px;
    transition: background .2s, color .2s;
}
.ilp-back-to-list:hover { background: #373a36; color: #fff; text-decoration: none; }

.ilp-comparison-wrapper .text-center {
    text-align: center;
    padding-top: 24px;
    margin-top: 0 !important;
}
/* ── Copy link ───────────────────────────────────────── */
.ilp-copy-link {
    background: #f6c9c6;
    border: none;
    padding: 12px 24px;
    border-radius: 96px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.32px;
    color: #6d150e;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: background .2s;
}
.ilp-copy-link:hover { background: #f0b0ac; }
.ilp-copy-link .tooltiptext {
    display: none;
    position: absolute;
    top: -36px; right: 0;
    background: #333; color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}
.ilp-copy-link.copied .tooltiptext { display: block; }

/* ── Chart section ───────────────────────────────────── */
.ilp-chart-section {
    background: #f8f9fb;
    padding: 80px 200px !important;
}
.ilp-chart-section .container,
.ilp-chart-box-wrapper.container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* ── Performance heading ─────────────────────────────── */
.ilp-perf-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.64px;
    color: #1c1d1b;
    text-align: center;
    margin-bottom: 24px;
}

/* ── Hover notification (hidden — Highcharts tooltip handles this) */
.ilp-chart-hover-notification { display: none; }

/* ── Chart area ──────────────────────────────────────── */
.ilp-chart-box {
    background: #fff;
    border-radius: 8px;
    padding: 0 32px 32px;
    margin-top: 0;
    border: none;
    outline: none;
}
.ilp-chart-copy-row {
    display: flex;
    justify-content: center;
    padding-bottom: 24px;
}
.ilp-chart-header-card {
    text-align: center;
    padding: 24px 0 32px;
    border-bottom: 1px solid #ebebeb;
    border-radius: 8px 8px 0 0;
    margin-bottom: 24px;
}
.ilp-chart-date-range {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.36px;
    color: #1c1d1b;
    margin: 0 0 8px;
    min-height: 1.5em;
}
.ilp-chart-updated-at {
    color: #1c1d1b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.28px;
    margin: 0;
    min-height: 1em;
}
.ilp-chart-sub-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.36px;
    color: #1c1d1b;
    text-align: center;
    margin: 0;
}
.ilp-chart-filter-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.24px;
    color: #1c1d1b;
    margin: 0 0 8px;
}

/* ── Range dropdown ──────────────────────────────────── */
.ilp-chart-range-select-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 24px 0 32px;
}
.ilp-chart-range-select-field {
    width: 294px;
}

.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 16px;
    background: #fff;
    border: 1px solid #696b68;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #1c1d1b;
    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;
    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;
    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 {
    font-size: 16px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    white-space: nowrap;
}
.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-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; }
/* Future dates are not selectable (fund prices only exist up to today) */
.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-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;
}



.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; }

/* ── Month/Year picker ───────────────────────────────────── */
/* Make the month label a clickable trigger with a caret */
.ilp-cal-month-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1c1d1b;
    letter-spacing: -0.32px;
    line-height: 1;
    white-space: nowrap;
    transition: color .15s;
}
.ilp-cal-month-label:hover { color: #da291c; }
.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-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    transition: transform .2s;
    flex-shrink: 0;
}
.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-month-label[aria-expanded="true"] { color: #da291c; }

/* Picker panel – absolute, overlays calendar days */
.ilp-cal { position: relative; }
.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; }

/* Year rows */
.ilp-mpy-year {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #1c1d1b;
    cursor: pointer;
    background: #f8f9fb;
    border-bottom: 1px solid #ebebeb;
    box-sizing: border-box;
    transition: background .15s, color .15s;
}
.ilp-mpy-sentinel { height: 1px; }
.ilp-mpy-year:last-child { border-bottom: none; }
.ilp-mpy-year:hover { background: #fde8e7; color: #da291c; }
.ilp-mpy-year.is-selected {
    font-weight: 700;
    color: #da291c;
    background: #f8f9fb;
}

/* Month grid – appears inline below the selected year */
.ilp-mpy-months {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    box-sizing: border-box;
}
.ilp-mpy-month {
    border: none;
    background: none;
    padding: 8px 4px;
    font-size: 14px;
    font-weight: 400;
    color: #1c1d1b;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.ilp-mpy-month:hover { background: #fde8e7; color: #da291c; }
.ilp-mpy-month.is-selected {
    background: #da291c;
    color: #fff;
    font-weight: 600;
}

.ilp-chart-wrapper { position: relative; min-height: 300px; }
.ilp-chart-loading { color: #888; padding: 40px 0; }
#ilp-chart-canvas { width: 100% !important; max-height: 380px; }

.ilp-chart-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 32px;
    padding: 0 32px;
    margin-top: 16px;
}
.ilp-chart-legend .item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.28px;
    color: #1c1d1b;
}
/* SVG icon: 16×21px — the line sits at y=10.5 which is the vertical centre of one text line */
.ilp-chart-legend .legend-color {
    width: 16px;
    height: 21px;
}
.legend-color {
    display: inline-block;
    flex-shrink: 0;
    margin-top: 0;
    align-self: flex-start;
}

.ilp-chart-caption {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.28px;
    color: #1c1d1b;
    text-align: center;
    margin-top: 20px;
    padding: 0 32px 24px;
}

/* ── About the funds section ─────────────────────────── */
.ilp-details-section {
    background: #eff0f1;
    padding: 80px 100px 40px !important;
}
.ilp-details-section .fz-h1 {
    display: block;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.64px;
    color: #1c1d1b;
    margin: 0 0 24px;
}
.ilp-details-section .fz-h1 b,
.ilp-details-section .fz-h1 strong { font-weight: 600; }
.ilp-details-section .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

/* ── Comparison details table (row-based) ────────────── */
/*.ilp-comparison-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}*/
.ilp-comparison-details {
    display: inline-block;
    min-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    background: #fff;
    margin-bottom: 40px;
}

/* Each row is a flex container */
.dtls-row {
    display: flex;
    min-width: 100%;
    border-bottom: 1px solid #ebebeb;
}
.dtls-row:last-child { border-bottom: none; }

/* Per-fund cells inside header, links, and value rows */
.dtls-row-header .dtls-cell,
.dtls-row-links .dtls-cell {
    flex: 1 1 0;
    min-width: 200px;
    border-right: 1px solid #ebebeb;
    padding: 16px 24px;
}
.dtls-row-links .dtls-cell { padding: 24px; }
.dtls-row-values .dtls-cell {
    flex: 1 1 0;
    min-width: 200px;
    border-right: 1px solid #ebebeb;
    padding: 20px 24px;
}
.dtls-row-header .dtls-cell:last-child,
.dtls-row-links .dtls-cell:last-child,
.dtls-row-values .dtls-cell:last-child {
    border-right: none;
}
.dtls-cell b,
.dtls-cell strong {
    font-weight: 400;
    font-size: 16px;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: -0.32px;
    color: #1c1d1b;
}

/* Fund name header cells */
.dtls-1 {
    background: #68737a;
    color: #fff;
    padding: 16px 36px 16px 24px !important;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.32px;
    position: relative;
}
.dtls-1 p { color: #fff; margin: 0; }

.ilp-swap-wrap {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 4;
}

.swap-item {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.swap-item::before {
    content: '';
    display: block;
    width: 13px;
    height: 8px;
    margin: 8px auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8' fill='none'%3E%3Cpath d='M6.364 4.95L11.314 0L12.728 1.414L6.364 7.778L0 1.414L1.414 0L6.364 4.95Z' fill='white'/%3E%3C/svg%3E");
}
.swap-item[aria-expanded="true"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8' fill='none'%3E%3Cpath d='M6.364 2.828L1.414 7.778L0 6.364L6.364 0L12.728 6.364L11.314 7.778L6.364 2.828Z' fill='white'/%3E%3C/svg%3E");
}
.swap-item:hover::before { opacity: .86; }
.swap-item:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.ilp-swap-menu {
    position: absolute;
    top: 28px;
    right: 0;
    width: 230px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    padding: 6px 0;
}
.ilp-swap-menu-scroll {
    overflow-y: auto;
    max-height: 240px;
}

.ilp-swap-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    color: #1c1d1b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.14px;
    padding: 8px 12px;
    cursor: pointer;
}

.ilp-swap-option:hover,
.ilp-swap-option:focus {
    background: #fde8e7;
    outline: none;
}

/* Links row cells (View facsheet / View product) */
.dtls-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.dtls-row-links { border-bottom: 2px solid #da291c; }
.dtls-2 a.dtls-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #da291c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.32px;
    text-decoration: none;
}
.dtls-2 a.dtls-link-btn:hover { text-decoration: underline; }
.dtls-2 a.dtls-link-btn img { width: 16px; height: 16px; flex-shrink: 0; }

/* Full-width rows (section labels, sub-labels) */
.dtls-row-full {
    display: block;
    width: 100%;
    padding: 8px 24px;
}
.dtls-row-full p { margin: 0; }

/* "Historical annualised returns" */
.dtls-3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    color: #1c1d1b;
    border-bottom: 2px solid #da291c;
}

/* Sub-labels: 1-year / 3-year / 5-year */
.dtls-sublabel {
    background: #eff0f1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    color: #1c1d1b;
}

/* Performance value cells */
.dtls-4v .dtls-cell,
.dtls-5v .dtls-cell,
.dtls-6v .dtls-cell {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.32px;
    color: #1c1d1b;
}

/* "About the funds" full-width row with red top separator */
.dtls-section-about {
    background: #eff0f1;
    border-top: 2px solid #da291c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    color: #1c1d1b;
}

/* Description cells */
.dtls-9v .dtls-cell {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.28px;
    color: #1c1d1b;
}

/* "Asset class type" — pink pill */
.dtls-asset-label {
    background: #eff0f1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.28px;
    color: #1c1d1b;
}
.dtls-asset-label p,
.dtls-asset-label p span { color: #1c1d1b; }

/* Other info full-width label rows */
.dtls-row-label {
    background: #eff0f1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    color: #1c1d1b;
}

/* Value cells for info rows */
.dtls-10v .dtls-cell,
.dtls-11v .dtls-cell,
.dtls-12v .dtls-cell,
.dtls-13v .dtls-cell,
.dtls-14v .dtls-cell,
.dtls-7v .dtls-cell {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.32px;
    color: #1c1d1b;
}
.dtls-10v .dtls-cell b,
.dtls-11v .dtls-cell b,
.dtls-12v .dtls-cell b,
.dtls-13v .dtls-cell b,
.dtls-14v .dtls-cell b {
    font-size: 16px;
    /* font-weight: 600; */
    color: #1c1d1b;
}

.morningstar img {
    display: inline-block;
    margin-right: 2px;
}

.has-icon-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fde8e7;
    border-radius: 4px;
    padding: 0 4px 0 6px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.28px;
    color: #1c1d1b;
}

.ilp-asset-info-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.ilp-asset-info-btn svg {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.ilp-asset-info-btn:disabled { cursor: default; }

.ilp-asset-tooltip-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 244px;
    margin-left: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f8f9fb;
    box-shadow: 0 3px 2.5px rgba(0,59,92,.10), 0 1px 9px rgba(0,59,92,.06), 0 6px 5px rgba(0,59,92,.08);
    color: #1c1d1b;
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
}
.ilp-asset-tooltip-content::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-asset-info-btn:hover .ilp-asset-tooltip-content,
.ilp-asset-info-btn.is-open .ilp-asset-tooltip-content {
    display: block;
}
.ilp-asset-tooltip-content p {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.2;
}
.ilp-asset-tooltip-content p:last-child { margin-bottom: 0; }
.ilp-asset-tooltip-content strong,
.ilp-asset-tooltip-content b { font-weight: 700; }

.ilp-compare-objective.is-collapsed {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ilp-compare-read-more {
    display: inline-block;
    margin-top: 8px;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.ilp-compare-read-more:hover { text-decoration: underline; }

.co-green { color: #1FB566; font-weight: 400; }
.co-red   { color: #da291c; font-weight: 400; }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1199px) {
    .ilp-chart-section { padding-left: 40px !important; padding-right: 40px !important; }
    .ilp-details-section { padding-left: 40px !important; padding-right: 40px !important; }

    /* Comparison table: full-width, no horizontal scroll on tablet/iPad */
    .ilp-comparison-details { display: block; }

    /* Override desktop min-width so cells shrink to share available width equally */
    .dtls-row-header .dtls-cell,
    .dtls-row-links .dtls-cell,
    .dtls-row-values .dtls-cell { min-width: 0; }
}
@media (max-width: 767px) {
    .ilp-chart-section { padding: 48px 24px !important; }
    .ilp-details-section { padding: 48px 16px !important; }
    .ilp-custom-select { width: 100%; }
    .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-chart-legend { grid-template-columns: repeat(2, 1fr); padding: 0 16px; }

    /* Show "About the funds" heading above the scrollable table */
    .ilp-details-section .fz-h1 {
        display: block;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.44px;
        color: #1c1d1b;
        margin-bottom: 16px;
    }

    /* Outer div holds the scroll indicator overlay — NOT a scroll container */
    .ilp-compare-scroll-outer {
        position: relative;
        margin: 0 -16px;
    }
    /* Right-edge dark shadow — indicates more content to scroll */
    .ilp-compare-scroll-outer::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 75px;
        background: linear-gradient(to left, rgba(0,0,0,0.2), rgba(0,0,0,0));
        pointer-events: none;
        z-index: 10;
        transition: opacity 0.25s;
    }
    .ilp-compare-scroll-outer.scroll-end::after {
        opacity: 0;
    }

    /* Scrollable comparison table wrapper: edge-to-edge */
    .ilp-comparison-wrapper {
        container-type: inline-size;
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        cursor: default;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    .ilp-comparison-wrapper::-webkit-scrollbar { display: none; }

    .ilp-comparison-details {
        display: inline-block;
        min-width: 100%;
        margin-bottom: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        text-align: left;
    }

    /* Header row: red 2px bottom border */
    .dtls-row-header {
        border-bottom: 2px solid #da291c !important;
    }

    /* Header cells: inline flex (swap-wrap becomes inline arrow) */
    .dtls-1 {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px !important;
        font-size: 12px;
        letter-spacing: -0.24px;
        line-height: 1.4;
        transition: background 0.15s;
    }
    .dtls-1 p { flex: 1 0 0; margin: 0; transition: color 0.15s; }
    .dtls-1 .ilp-swap-wrap {
        position: static;
        flex-shrink: 0;
        top: auto;
        right: auto;
        width: 20px;
        height: 20px;
        order: 1;
    }
    .dtls-1 p { order: 0; }
    .dtls-1 .swap-item {
        position: static;
        width: 20px;
        height: 20px;
    }

    /* Open state: dark header + white text */
    .dtls-1:has(.ilp-swap-wrap.is-open) {
        background: #68737a;
    }
    .dtls-1:has(.ilp-swap-wrap.is-open) p {
        color: #ffffff;
    }

    /* Mobile dropdown: JS sets position:fixed + coords; CSS handles visuals only */
    .dtls-1 .ilp-swap-menu {
        border: none;
        border-radius: 12px;
        box-shadow: 0 24px 19px rgba(0,59,92,0.04), 0 4px 12px rgba(0,0,0,0.08);
        padding: 8px 0;
        z-index: 100;
        overflow: hidden;
    }
    .dtls-1 .ilp-swap-menu-scroll {
        overflow-y: auto;
    }

    /* Current fund highlighted */
    .dtls-1 .ilp-swap-option.is-current {
        background: #fbeae8;
        cursor: default;
    }

    /* Option padding on mobile */
    .dtls-1 .ilp-swap-option {
        padding: 12px;
        font-size: 14px;
    }

    /* Link row cells: vertical stack, centered */
    .dtls-row-links .dtls-cell {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 16px;
    }
    .dtls-2 a.dtls-link-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: -0.24px;
    }
    .dtls-2 a.dtls-link-btn img { width: 12px; height: 12px; }

    /* 2 columns: grow to fill wrapper exactly → never overflows → overlay auto-hidden by JS */
    .dtls-row-header .dtls-cell,
    .dtls-row-links .dtls-cell,
    .dtls-row-values .dtls-cell { flex: 1 0 0; min-width: 0; }

    /* 3 columns: 50cqi = 50% of .ilp-comparison-wrapper's clientWidth (container query unit) */
    [data-fund-count="3"] .dtls-row-header .dtls-cell,
    [data-fund-count="3"] .dtls-row-links .dtls-cell,
    [data-fund-count="3"] .dtls-row-values .dtls-cell { flex: 0 0 43cqi; }

    /* 4 columns */
    [data-fund-count="4"] .dtls-row-header .dtls-cell,
    [data-fund-count="4"] .dtls-row-links .dtls-cell,
    [data-fund-count="4"] .dtls-row-values .dtls-cell { flex: 0 0 36cqi; }

    /* 5 columns */
    [data-fund-count="5"] .dtls-row-header .dtls-cell,
    [data-fund-count="5"] .dtls-row-links .dtls-cell,
    [data-fund-count="5"] .dtls-row-values .dtls-cell { flex: 0 0 30cqi; }

    /* Value cells */
    .dtls-row-values .dtls-cell { padding: 12px 16px; }
    .dtls-4v .dtls-cell,
    .dtls-5v .dtls-cell,
    .dtls-6v .dtls-cell,
    .dtls-9v .dtls-cell,
    .dtls-7v .dtls-cell,
    .dtls-10v .dtls-cell,
    .dtls-11v .dtls-cell,
    .dtls-12v .dtls-cell,
    .dtls-13v .dtls-cell,
    .dtls-14v .dtls-cell { font-size: 14px; letter-spacing: -0.14px; }

    /* 5-year row: red bottom border (section divider before "About the funds") */
    .dtls-6v { border-bottom: 2px solid #da291c !important; }

    /* Full-width label rows: grey bg, compact padding */
    .dtls-3 { font-size: 12px; letter-spacing: -0.24px; padding: 8px 24px; }
    .dtls-sublabel,
    .dtls-section-about,
    .dtls-row-label,
    .dtls-asset-label {
        background: #eff0f1;
        padding: 8px 24px;
        font-size: 12px;
        letter-spacing: -0.24px;
    }
    /* Remove desktop border-top on section-about — red border is now on dtls-6v bottom */
    .dtls-section-about { border-top: none; }

    /* Back to funds list button — full width on mobile */
    .ilp-back-to-list {
        display: block;
        width: 100%;
        margin: 16px 0 0;
        text-align: center;
        box-sizing: border-box;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: -0.24px;
        border-width: 2px;
    }
}
