.afm-performance {
  --afm-navy-950: #0d1b33;
  --afm-navy-900: #14243f;
  --afm-navy-800: #1b2c4e;
  --afm-gold-500: #e7b84e;
  --afm-gold-300: #f5d77f;
  --afm-ink: #12213a;
  --afm-muted: #68758a;
  --afm-line: #d8d0c3;
  --afm-surface: #fbfaf7;
  --afm-page: #f3eee5;
  --afm-green: #08773d;
  --afm-green-bright: #42ca4c;
  --afm-green-soft: #eaf7f2;
  --afm-red: #c43f49;
  --afm-red-soft: #fff0f1;
  --afm-performance-value-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --afm-performance-value-size: clamp(18px, 2vw, 22px);
  width: 100%;
  padding: 0;
  color: var(--afm-ink);
  background: var(--afm-page);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.afm-performance[hidden], .afm-performance .is-hidden, .afm-performance [hidden] { display: none !important; }
.afm-performance *, .afm-performance *::before, .afm-performance *::after { box-sizing: border-box; }
.afm-performance button, .afm-performance select, .afm-performance input { font: inherit; }
.afm-performance button { color: inherit; }
.afm-performance a { text-decoration: none; }
.afm-performance .history-section { position: relative; padding-top: 20px; }
.afm-performance .history-intro { position: relative; color: #f8e8b7; background: linear-gradient(100deg, #050505 0%, #0d1118 64%, #080808 100%); }
.afm-performance .history-intro::before { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ""; background: linear-gradient(90deg, #a97a18, #e7b84e 48%, #f5d77f 72%, #a97a18); pointer-events: none; }
.afm-performance .history-intro-shell { width: 100%; min-height: 92px; margin: 0; padding: 17px 20px 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.afm-performance .history-intro-shell > div { min-width: 0; }
.afm-performance .history-intro h1 { margin: 0; color: #f8e8b7; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.5vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.afm-performance .history-intro p { margin: 6px 0 0; color: rgba(248, 232, 183, .68); font-size: 12px; line-height: 1.4; }
.afm-performance .history-content-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; overflow: hidden; border: 1px solid var(--afm-line); border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(22, 38, 68, .06); }
.afm-performance .history-panel { overflow: hidden; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.afm-performance .history-controls { position: relative; padding: 22px 20px 23px; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px 18px; border-top: 0; border-bottom: 1px solid #d9c384; background: linear-gradient(135deg, #fffdf8 0%, #fbf6e9 58%, #f7f0dc 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(184, 143, 48, .08), 0 9px 24px rgba(20, 36, 63, .055); }
.afm-performance .control-group { display: grid; gap: 6px; }
.afm-performance .control-label { color: #6f5721; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.afm-performance .investment-control { position: relative; flex: 1 1 270px; min-width: 250px; }
.afm-performance .investment-input-row { display: flex; gap: 8px; }
.afm-performance .investment-input-row input { min-width: 0; height: 40px; flex: 1; padding: 0 12px; border: 1px solid #cec5ae; border-radius: 9px; outline: none; color: var(--afm-navy-900); background: #fff; box-shadow: 0 2px 8px rgba(20, 36, 63, .055); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.afm-performance .investment-input-row input:focus { border-color: #bd9130; box-shadow: 0 0 0 3px rgba(231, 184, 78, .14); }
.afm-performance .investment-input-row input[aria-invalid="true"] { border-color: var(--afm-red); box-shadow: 0 0 0 3px rgba(196, 63, 73, .11); }
.afm-performance .apply-button { height: 40px; flex: 0 0 auto; padding: 0 16px; border: 1px solid #c89d37; border-radius: 9px; color: #fff; background: linear-gradient(135deg, var(--afm-navy-900), var(--afm-navy-800)); box-shadow: 0 6px 14px rgba(20, 36, 63, .15), 0 0 0 2px rgba(231, 184, 78, .12); font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.afm-performance .apply-button:hover { transform: translateY(-1px); border-color: #e0b650; box-shadow: 0 8px 18px rgba(20, 36, 63, .18), 0 0 0 3px rgba(231, 184, 78, .16); }
.afm-performance .investment-error { position: absolute; top: calc(100% + 3px); left: 0; z-index: 1; color: var(--afm-red); font-size: 9px; font-weight: 650; white-space: nowrap; }
.afm-performance .history-portfolio-filter { flex: 1 1 232px; min-width: 232px; }
.afm-performance .period-control { flex: 0 0 166px; }
.afm-performance .history-select-wrap { position: relative; display: block; }
.afm-performance .history-select-wrap select, .afm-performance .date-range-control input { width: 100%; height: 40px; appearance: none; padding: 0 32px 0 11px; border: 1px solid #cec5ae; border-radius: 9px; outline: none; color: var(--afm-navy-900); background: #fff; box-shadow: 0 2px 8px rgba(20, 36, 63, .055); font-size: 11px; font-weight: 650; }
.afm-performance .history-select-wrap svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #748095; pointer-events: none; }
.afm-performance .history-select-wrap select:focus, .afm-performance .date-range-control input:focus { border-color: #bd9130; box-shadow: 0 0 0 3px rgba(231, 184, 78, .14); }
.afm-performance .date-range-control { flex: 1 1 310px; display: flex; align-items: flex-end; gap: 8px; }
.afm-performance .date-range-control label { flex: 1; display: grid; gap: 6px; }
.afm-performance .date-range-control input { min-width: 0; padding-right: 8px; }
.afm-performance .date-separator { height: 40px; display: flex; align-items: center; color: #9aa5b5; }
.afm-performance .option-control { flex: 0 0 auto; min-height: 40px; display: grid; align-content: center; gap: 5px; }
.afm-performance .option-control label { display: flex; align-items: center; gap: 7px; color: #4f5d72; font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.afm-performance .option-control input { width: 15px; height: 15px; margin: 0; accent-color: var(--afm-navy-800); }
.afm-performance .market-fund-legend-control { position: relative; }
.afm-performance .market-fund-legend-control input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; opacity: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.afm-performance .market-fund-switch { position: relative; width: 31px; height: 17px; flex: 0 0 31px; border: 1px solid #9da7b5; border-radius: 999px; background: #c6ccd4; box-shadow: inset 0 1px 2px rgba(20, 36, 63, .12); transition: border-color .18s ease, background .18s ease; }
.afm-performance .market-fund-switch i { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 36, 63, .28); transition: transform .18s ease; }
.afm-performance .market-fund-legend-control input:checked + .market-fund-switch { border-color: var(--afm-navy-800); background: var(--afm-navy-800); }
.afm-performance .market-fund-legend-control input:checked + .market-fund-switch i { transform: translateX(14px); }
.afm-performance .market-fund-legend-control input:focus-visible + .market-fund-switch { outline: 3px solid rgba(189, 145, 48, .36); outline-offset: 2px; }
.afm-performance .history-select-wrap select:disabled { cursor: not-allowed; opacity: .7; background: #f2efe7; }
.afm-performance .history-performance-summary { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(390px, .96fr); border-bottom: 1px solid var(--afm-line); background: #fff; }
.afm-performance .history-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; }
.afm-performance .history-stat-grid > div { position: relative; min-width: 0; min-height: 94px; padding: 18px 20px; }
.afm-performance .history-stat-grid > div:nth-child(odd) { border-right: 1px solid var(--afm-line); }
.afm-performance .history-stat-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--afm-line); }
.afm-performance .history-stat-grid span { display: block; margin-bottom: 7px; color: #788497; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.afm-performance .history-stat-grid strong { display: block; overflow: hidden; color: var(--afm-navy-900); font-family: var(--afm-performance-value-font); font-size: var(--afm-performance-value-size); line-height: 1.2; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.afm-performance .history-stat-grid small { display: block; margin-top: 5px; overflow: hidden; color: #8a95a5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.afm-performance .history-stat-grid .history-positive { color: var(--afm-green); }
.afm-performance .history-stat-grid .history-negative { color: var(--afm-red); }
.afm-performance .history-return-values { min-width: 0; display: flex; align-items: center; gap: 12px; }
.afm-performance .history-return-values strong { min-width: 0; flex: 0 0 auto; overflow: visible; text-overflow: clip; }
.afm-performance .history-return-separator { width: 1px; height: 23px; flex: 0 0 1px; background: #d5dce5; }
.afm-performance .history-contribution-panel { padding: 14px; display: flex; border-left: 1px solid var(--afm-line); background: #f7faf8; }
.afm-performance .overall-contribution-card { width: 100%; min-height: 190px; margin: 0 auto; padding: 24px 22px; display: flex; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; border: 1px solid #b9e2cb; border-radius: 17px; background: radial-gradient(circle at 50% 52%, #fff 0%, #fbfefc 52%, #f0faf4 100%); box-shadow: 0 10px 28px rgba(8, 124, 91, .07); text-align: center; }
.afm-performance .overall-contribution-title { color: var(--afm-navy-900); font-size: 13px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.afm-performance .overall-contribution-period { margin-top: 4px; color: #637187; font-size: 11px; }
.afm-performance .overall-contribution-card strong { margin-top: 7px; color: var(--afm-green-bright); font-size: clamp(54px, 6vw, 68px); font-weight: 850; line-height: .98; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.afm-performance .overall-contribution-card b { margin-top: 4px; color: #057b3b; font-size: clamp(24px, 2.7vw, 29px); line-height: 1.05; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.afm-performance .overall-contribution-card.negative strong, .afm-performance .overall-contribution-card.negative b { color: var(--afm-red); }
.afm-performance .history-chart { min-width: 0; margin: 18px; overflow: hidden; border: 0; border-radius: 0; background: #fff; }
.afm-performance .chart-title-row { min-height: 94px; padding: 22px 20px 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.afm-performance .chart-heading-copy { display: grid; gap: 2px; }
.afm-performance .chart-eyebrow { color: #d1a746; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.afm-performance .chart-heading-copy strong { color: var(--afm-navy-900); font-family: "Playfair Display", Georgia, serif; font-size: 17px; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .015em; }
.afm-performance .chart-heading-copy small { color: var(--afm-muted); font-size: 11px; line-height: 1.35; }
.afm-performance .chart-legend { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 18px; }
.afm-performance .chart-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--afm-muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.afm-performance .chart-legend i { width: 27px; height: 3px; border-radius: 99px; }
.afm-performance .chart-stage { position: relative; width: 100%; min-width: 0; height: clamp(300px, 38vw, 390px); min-height: 0; padding: 0 8px; overflow: hidden; }
.afm-performance .chart-stage canvas { display: block; width: 100% !important; max-width: 100%; min-width: 0 !important; height: 100% !important; }
.afm-performance .chart-stage:focus-visible, .afm-performance .table-scroll:focus-visible, .afm-performance .annual-table-scroll:focus-visible { outline: 3px solid rgba(189, 145, 48, .42); outline-offset: 2px; }
.afm-performance .chart-caption { padding: 0 24px 18px; }
.afm-performance .chart-caption > p { margin: -4px 0 15px; padding-top: 20px; color: #42526a; font-size: 13px; font-weight: 600; text-align: center; }
.afm-performance .chart-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8290a2; font-size: 10px; }
.afm-performance .annual-performance-card { margin: 18px; overflow: hidden; border: 1px solid #d9e0e8; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(22, 38, 68, .045); }
.afm-performance .annual-performance-heading { min-height: 56px; padding: 12px 22px; display: grid; align-content: center; border-bottom: 1px solid #e5eaf0; }
.afm-performance .annual-performance-heading > span { color: #c89221; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.afm-performance .annual-title-row { margin-top: 4px; display: flex; align-items: baseline; gap: 5px; }
.afm-performance .annual-performance-heading h3, .afm-performance .annual-title-row h3 { margin: 0; color: var(--afm-navy-900); font-family: "Playfair Display", Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.1; text-transform: uppercase; }
.afm-performance .annual-table-scroll, .afm-performance .table-scroll { overflow-x: auto; }
.afm-performance table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.afm-performance th, .afm-performance td { padding: 11px 12px; text-align: right; white-space: nowrap; }
.afm-performance th:first-child, .afm-performance td:first-child { padding-left: 20px; text-align: left; }
.afm-performance th:last-child, .afm-performance td:last-child { padding-right: 20px; }
.afm-performance thead { background: #f5f7fa; }
.afm-performance thead th { color: #536177; font-size: 10px; font-weight: 750; letter-spacing: .035em; }
.afm-performance thead tr:first-child th { padding-bottom: 4px; }
.afm-performance thead .subhead th { padding-top: 0; color: #8994a5; font-size: 9px; }
.afm-performance tbody td, .afm-performance tbody th { border-top: 1px solid #edf0f4; color: #27364d; }
.afm-performance tbody tr { transition: background .15s ease; }
.afm-performance tbody tr:not(.total-row):hover { background: #fbf8ee; }
.afm-performance tbody td:first-child strong { color: #305b93; font-weight: 750; }
.afm-performance .total-row { background: #f1f5f8; font-weight: 750; }
.afm-performance .total-row td { border-top: 2px solid #c9d1dc; color: var(--afm-navy-900); }
.afm-performance .annual-performance-table { min-width: 900px; table-layout: fixed; font-size: 11px; }
.afm-performance .annual-performance-table th, .afm-performance .annual-performance-table td { height: 43px; padding: 11px 9px; border-right: 1px solid #e7ebf0; text-align: center; }
.afm-performance .annual-performance-table th:last-child, .afm-performance .annual-performance-table td:last-child { border-right: 0; }
.afm-performance .annual-performance-table thead tr:first-child th { padding: 13px 9px; }
.afm-performance .annual-performance-table thead th { color: #526784; background: #f5f7fa; font-size: 9px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.afm-performance .annual-performance-table th:first-child { width: 215px; padding-left: 16px; text-align: left; }
.afm-performance .annual-performance-table tbody th { color: #0e3159; background: #fff; font-size: 12px; font-weight: 800; }
.afm-performance .annual-performance-table tbody td { color: var(--afm-navy-900); font-weight: 750; }
.afm-performance .annual-performance-table .positive { color: #078944; }
.afm-performance .annual-performance-table .negative { color: #d2373f; }
.afm-performance .annual-performance-table .benchmark { color: var(--afm-navy-900); }
.afm-performance .annual-performance-table .since-inception { background: #eff9f3; font-weight: 850; }
.afm-performance .annual-performance-note { margin: 0; padding: 14px 22px 17px; color: #74849a; font-size: 9px; }
.afm-performance .history-table-wrap { margin: 18px; overflow: hidden; border: 1px solid var(--afm-line); border-radius: 15px; }
.afm-performance .history-table { min-width: 1000px; }
.afm-performance .history-contribution-pct { display: block; margin-top: 4px; font-size: inherit; font-weight: 800; line-height: 1.1; }
.afm-performance .table-card { overflow: hidden; border: 1px solid var(--afm-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(22, 38, 68, .055); }
.afm-performance .table-card-heading { min-height: 76px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--afm-line); }
.afm-performance .table-card-heading h3 { margin: 0; color: var(--afm-navy-900); font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.afm-performance .table-card-heading p { margin: 4px 0 0; color: var(--afm-muted); font-size: 11px; }
.afm-performance .table-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.afm-performance .currency-label { padding: 6px 9px; border-radius: 7px; color: #657288; background: #f2f5f8; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.afm-performance .details-toggle { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #c3a047; border-radius: 9px; color: #705314; background: #fffaf0; font-size: 10px; font-weight: 750; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.afm-performance .details-toggle:hover { transform: translateY(-1px); border-color: #a57e24; box-shadow: 0 7px 16px rgba(20, 36, 63, .1); }
.afm-performance .details-toggle svg { transition: transform .18s ease; }
.afm-performance .details-toggle.expanded svg { transform: rotate(180deg); }
.afm-performance .tone-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.afm-performance .positive, .afm-performance .tone-value.positive, .afm-performance .history-contribution-pct.positive { color: var(--afm-green); font-weight: 700; }
.afm-performance .negative, .afm-performance .tone-value.negative, .afm-performance .history-contribution-pct.negative { color: var(--afm-red); font-weight: 700; }
.afm-performance .neutral, .afm-performance .tone-value.neutral, .afm-performance .history-contribution-pct.neutral { color: #4b596e; font-weight: 650; }
.afm-performance .following-section { position: relative; margin-top: 78px; }
.afm-performance .performance-lower-shell { margin: 18px; }
.afm-performance .performance-lower-shell > .following-section { width: 100%; margin-top: 0; }
.afm-performance .today-content-shell { overflow: hidden; border: 1px solid var(--afm-line); border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(22, 38, 68, .06); }
.afm-performance .section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 22px; }
.afm-performance .today-section-intro { position: relative; width: 100%; max-width: none; min-height: 92px; margin-bottom: 0; padding: 17px 24px 18px; align-items: center; color: #f8e8b7; background: linear-gradient(100deg, #050505 0%, #0d1118 64%, #080808 100%); }
.afm-performance .today-section-intro::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ""; background: linear-gradient(90deg, #a97a18, #e7b84e 48%, #f5d77f 72%, #a97a18); pointer-events: none; }
.afm-performance .section-intro h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; color: var(--afm-navy-900); font-size: clamp(29px, 3vw, 39px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.afm-performance .section-intro p { margin: 7px 0 0; color: var(--afm-muted); font-size: 14px; }
.afm-performance .today-section-intro h2 { color: #f8e8b7; font-size: clamp(27px, 2.7vw, 32px); }
.afm-performance .today-section-intro p { color: rgba(248, 232, 183, .68); }
.afm-performance .as-of-block { min-width: 230px; display: grid; justify-items: end; gap: 3px; }
.afm-performance .as-of-block > span { display: inline-flex; align-items: center; gap: 5px; color: #65c997; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.afm-performance .as-of-block > span b { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.afm-performance .as-of-block > span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #20a778; box-shadow: 0 0 0 5px rgba(32, 167, 120, .11); }
.afm-performance .as-of-block strong { color: #f8e8b7; font-size: 13px; }
.afm-performance .as-of-block small { color: rgba(248, 232, 183, .68); font-size: 11px; }
.afm-performance .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.afm-performance .today-content-shell > .metric-grid { margin: 0; padding: 16px; background: #fff; }
.afm-performance .today-content-shell > .table-card { margin: 0 16px 16px; border-radius: 15px; }
.afm-performance .metric-card { position: relative; min-height: 144px; padding: 20px; overflow: hidden; border: 1px solid var(--afm-line); border-radius: 17px; background: var(--afm-surface); box-shadow: 0 10px 30px rgba(22, 38, 68, .055); }
.afm-performance .metric-card::after { content: ""; position: absolute; width: 78px; height: 78px; top: -33px; right: -27px; border-radius: 50%; background: rgba(24, 45, 79, .045); }
.afm-performance .metric-card.positive { border-top-color: rgba(8, 124, 91, .55); }
.afm-performance .metric-card.negative { border-top-color: rgba(196, 63, 73, .5); }
.afm-performance .metric-topline { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #647188; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.afm-performance .metric-icon { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: #86651e; background: #fcf6e8; }
.afm-performance .metric-card.positive .metric-icon { color: var(--afm-green); background: var(--afm-green-soft); }
.afm-performance .metric-card.negative .metric-icon { color: var(--afm-red); background: var(--afm-red-soft); }
.afm-performance .metric-value-line { display: flex; align-items: flex-start; min-width: 0; }
.afm-performance .metric-value-line.has-secondary { justify-content: space-between; gap: 12px; }
.afm-performance .metric-main-value, .afm-performance .metric-secondary-value strong { display: block; color: var(--afm-navy-900); font-family: var(--afm-performance-value-font); font-size: var(--afm-performance-value-size); line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.afm-performance .metric-card.positive .metric-main-value { color: var(--afm-green); }
.afm-performance .metric-card.negative .metric-main-value { color: var(--afm-red); }
.afm-performance .metric-secondary-value { min-width: 0; margin-left: auto; padding-left: 13px; border-left: 1px solid var(--afm-line); }
.afm-performance .metric-secondary-value span { display: block; max-width: 96px; margin-top: 6px; color: var(--afm-muted); font-size: 9px; font-weight: 600; line-height: 1.25; }
.afm-performance .metric-secondary-value.positive strong { color: var(--afm-green); }
.afm-performance .metric-secondary-value.negative strong { color: var(--afm-red); }
.afm-performance .metric-secondary-value.neutral strong { color: var(--afm-navy-900); }
.afm-performance .metric-meta { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--afm-muted); font-size: 11px; }
.afm-performance .metric-meta.metric-meta-12 { font-size: 12px; }
.afm-performance .metric-meta small { margin-left: auto; padding: 3px 6px; border-radius: 5px; background: #f1f4f8; color: #748196; font-size: 9px; font-weight: 700; }
.afm-performance .principles-section { position: relative; margin-top: 64px; padding-top: 54px; }
.afm-performance .principles-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #ccd4df 14%, #ccd4df 86%, transparent); }
.afm-performance .principles-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; }
.afm-performance .principles-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d9e1ea; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px rgba(22, 38, 68, .05); }
.afm-performance .principle-item { min-width: 0; min-height: 96px; padding: 17px 30px; display: flex; align-items: center; gap: 14px; }
.afm-performance .principle-item:nth-child(odd) { border-right: 1px solid #e3e8ef; }
.afm-performance .principle-item:nth-child(-n+2) { border-bottom: 1px solid #e3e8ef; }
.afm-performance .principle-icon { width: 52px; height: 52px; flex: 0 0 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #183a64, #0f2d52); box-shadow: 0 8px 15px rgba(17, 47, 82, .18); }
.afm-performance .principle-item h3 { margin: 0; color: #008b47; font-size: 13px; font-weight: 850; line-height: 1.2; letter-spacing: .055em; text-transform: uppercase; }
.afm-performance .principle-item p { margin: 4px 0 0; color: #14243f; font-size: 11px; line-height: 1.35; }
.afm-performance .principles-quote { min-width: 0; min-height: 194px; padding: 24px 24px 23px 21px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-content: start; border: 1px solid #b9e2cb; border-radius: 16px; background: linear-gradient(135deg, #f5fcf8, #edf9f2); box-shadow: 0 10px 28px rgba(8, 124, 91, .045); }
.afm-performance .quote-mark { margin-top: -4px; color: var(--afm-green-bright); font-family: Georgia, serif; font-size: 52px; font-weight: 800; line-height: .9; }
.afm-performance .principles-quote h3 { margin: 11px 0 21px; color: var(--afm-navy-900); font-size: 13px; font-weight: 850; line-height: 1.35; }
.afm-performance .principles-quote p { margin: 0; color: #14243f; font-size: 12px; line-height: 1.85; }
.afm-performance .technology-credit { min-height: 35px; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #536987; font-size: 9px; text-align: center; }
.afm-performance .info-swiss-flag { position: relative; flex: 0 0 auto; width: 27px; height: 27px; background: #e02d3c; border-radius: 2px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.afm-performance .info-swiss-flag b { position: absolute; display: block; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.afm-performance .info-swiss-flag b:first-child { width: 16px; height: 5px; }
.afm-performance .info-swiss-flag b:last-child { width: 5px; height: 16px; }

@media (max-width: 1040px) {
  .afm-performance .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afm-performance .history-performance-summary { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); }
  .afm-performance .principle-item { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 900px) {
  .afm-performance .history-performance-summary { grid-template-columns: 1fr; }
  .afm-performance .history-contribution-panel { padding: 12px; border-top: 1px solid var(--afm-line); border-left: 0; }
}
@media (max-width: 760px) {
  .afm-performance .history-content-shell { width: min(100% - 24px, 620px); }
  .afm-performance .history-portfolio-filter, .afm-performance .period-control, .afm-performance .date-range-control { flex-basis: 100%; }
  .afm-performance .chart-title-row { display: grid; align-items: flex-start; }
  .afm-performance .chart-legend { justify-content: flex-start; }
  .afm-performance .chart-stage { height: clamp(280px, 72vw, 340px); overflow: hidden; }
  .afm-performance .chart-stage canvas { min-width: 0 !important; }
  .afm-performance .chart-note { display: grid; gap: 4px; }
  .afm-performance .following-section { margin-top: 60px; }
  .afm-performance .principles-layout { grid-template-columns: 1fr; }
  .afm-performance .principles-quote { min-height: 176px; }
}
@media (max-width: 560px) {
  .afm-performance .history-intro-shell { padding-right: 14px; padding-left: 14px; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .afm-performance .history-intro h1 { font-size: 24px; }
  .afm-performance .history-intro p { font-size: 11px; }
  .afm-performance .history-controls { padding: 18px 14px 20px; gap: 14px; }
  .afm-performance .history-portfolio-filter { min-width: 0; }
  .afm-performance .date-range-control { display: grid; grid-template-columns: 1fr; }
  .afm-performance .date-separator { display: none; }
  .afm-performance .option-control { width: 100%; }
  .afm-performance .history-stat-grid > div { padding: 16px 14px; }
  .afm-performance .overall-contribution-card { min-height: 176px; padding: 21px 16px; }
  .afm-performance .history-chart, .afm-performance .history-table-wrap, .afm-performance .annual-performance-card { margin: 12px; }
  .afm-performance .performance-lower-shell { margin: 12px; }
  .afm-performance .section-intro { display: block; }
  .afm-performance .today-section-intro { padding-right: 16px; padding-left: 16px; }
  .afm-performance .as-of-block { min-width: auto; justify-items: start; margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(248, 232, 183, .22); }
  .afm-performance .metric-grid { grid-template-columns: 1fr; }
  .afm-performance .today-content-shell > .metric-grid { padding: 12px; }
  .afm-performance .today-content-shell > .table-card { margin: 0 12px 12px; }
  .afm-performance .metric-card { min-height: 132px; }
  .afm-performance .table-card-heading { align-items: flex-start; }
  .afm-performance .currency-label { display: none; }
  .afm-performance .principles-card { grid-template-columns: 1fr; }
  .afm-performance .principle-item { min-height: 88px; padding: 16px 18px; border-right: 0 !important; border-bottom: 1px solid #e3e8ef; }
  .afm-performance .principle-item:last-child { border-bottom: 0; }
  .afm-performance .principles-quote { padding: 21px 18px; }
  .afm-performance .principles-quote h3 { margin-top: 9px; margin-bottom: 14px; }
  .afm-performance .technology-credit { padding: 6px 10px 0; flex-wrap: wrap; line-height: 1.4; }
}
@media (max-width: 500px) {
  .afm-performance .history-stat-grid { grid-template-columns: 1fr; }
  .afm-performance .history-stat-grid > div { border-right: 0 !important; border-bottom: 1px solid var(--afm-line); }
  .afm-performance .history-stat-grid > div:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .afm-performance *, .afm-performance *::before, .afm-performance *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Dark version -----------------------------------------------------------
   The dark treatment deliberately stays scoped to the Performance module.
   Typography, control dimensions and responsive layout remain inherited
   from the White version above. */
.afm-performance.afm-performance-dark {
  --afm-dark-black: #020304;
  --afm-dark-navy: #06172c;
  --afm-dark-gold: #e4b74e;
  --afm-dark-ivory: #f3eee5;
  color: #12213a;
  background: var(--afm-dark-ivory);
}
.afm-performance .history-content-shell {
  border-color: #192536;
  background: #f3eee5;
  box-shadow: 0 18px 44px rgba(1, 11, 24, .18);
}
.afm-performance .history-intro {
  color: #fff;
  background: linear-gradient(104deg, var(--afm-dark-black) 0%, #080b10 62%, #020202 100%);
}
.afm-performance .history-intro::before,
.afm-performance .today-section-intro::after {
  background: linear-gradient(90deg, #9f7114, #dbaa38 46%, #f2cf72 72%, #9f7114);
}
.afm-performance .history-intro h1,
.afm-performance .today-section-intro h2 {
  color: #fbfaf7;
}
.afm-performance .history-intro p,
.afm-performance .today-section-intro p {
  color: rgba(250, 248, 241, .76);
}
.afm-performance .history-panel {
  margin-bottom: 20px;
  background: #f3eee5;
}
.afm-performance .history-controls {
  border-bottom-color: #b5892f;
  background: linear-gradient(112deg, var(--afm-dark-navy) 0%, #07192e 58%, #041224 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), inset 0 -1px 0 rgba(231, 184, 78, .16), 0 8px 22px rgba(0, 9, 22, .18);
}
.afm-performance .control-label {
  color: #e4b74e;
  font-size: 10px;
}
.afm-performance .investment-input-row input,
.afm-performance .history-select-wrap select,
.afm-performance .date-range-control input {
  border-color: #425169;
  color: #f9f7f1;
  background: #071326;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 2px 8px rgba(0, 0, 0, .2);
  color-scheme: dark;
}
.afm-performance .investment-input-row input:focus,
.afm-performance .history-select-wrap select:focus,
.afm-performance .date-range-control input:focus {
  border-color: #e1b44d;
  box-shadow: 0 0 0 3px rgba(231, 184, 78, .2);
}
.afm-performance .history-select-wrap svg {
  color: #e9e3d8;
}
.afm-performance .date-separator {
  color: #d4a63e;
}
.afm-performance .option-control label {
  color: #f1eee7;
}
.afm-performance .option-control input {
  accent-color: #e6b94f;
}
.afm-performance .apply-button {
  border-color: #efc969;
  color: #17130b;
  background: linear-gradient(135deg, #d8a63a, #f4cf71);
  box-shadow: 0 7px 17px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.afm-performance .apply-button:hover {
  border-color: #f7db8a;
  box-shadow: 0 9px 21px rgba(0, 0, 0, .28), 0 0 0 3px rgba(231, 184, 78, .16);
}
.afm-performance .history-select-wrap select:disabled {
  color: rgba(249, 247, 241, .66);
  background: #101b2c;
}
.afm-performance .market-fund-switch {
  border-color: #78869a;
  background: #344257;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.afm-performance .market-fund-legend-control input:checked + .market-fund-switch {
  border-color: #e0b34a;
  background: #d9a83b;
}

.afm-performance .history-performance-summary {
  gap: 14px;
  padding: 14px;
  border-bottom: 0;
  background: #f3eee5;
}
.afm-performance .history-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.afm-performance .history-stat-grid > .history-summary-card {
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(94px, auto));
  overflow: hidden;
  border: 1px solid #d4ccbf !important;
  border-radius: 14px;
  background: #fbfaf7;
  box-shadow: 0 7px 18px rgba(22, 31, 42, .09);
}
.afm-performance .history-summary-card > div {
  position: relative;
  min-width: 0;
  min-height: 94px;
  padding: 18px 20px;
  background: linear-gradient(145deg, #fff 0%, #f8f5ef 100%);
}
.afm-performance .history-summary-card > div + div {
  border-top: 1px solid #d9d2c7;
}
.afm-performance .history-stat-grid span {
  color: #58667d;
}
.afm-performance .history-summary-card-performance > div:first-child > span {
  color: #08773d;
}
.afm-performance .history-stat-grid strong {
  color: #101c30;
}
.afm-performance .history-stat-grid small {
  color: #67758a;
}
.afm-performance .history-return-separator {
  background: #d3cabd;
}
.afm-performance .history-contribution-panel {
  padding: 0;
  border-left: 0;
  background: transparent;
}
.afm-performance .overall-contribution-card {
  min-height: 100%;
  border-color: #bc8e25;
  background:
    radial-gradient(circle at 50% 50%, rgba(21, 103, 48, .24) 0%, rgba(3, 39, 25, .13) 42%, transparent 70%),
    linear-gradient(135deg, #002b1b 0%, #001f14 58%, #00150e 100%);
  box-shadow: 0 9px 23px rgba(0, 25, 14, .28), inset 0 0 34px rgba(14, 121, 52, .08);
}
.afm-performance .overall-contribution-title {
  color: #e1ad38;
  font-size: 14px;
}
.afm-performance .overall-contribution-period {
  color: rgba(255, 255, 255, .82);
}
.afm-performance .overall-contribution-card strong,
.afm-performance .overall-contribution-card b {
  color: #47cf4d;
  text-shadow: 0 0 22px rgba(57, 207, 76, .08);
}

.afm-performance .history-chart {
  margin: 10px 18px 18px;
  border: 1px solid #26384d;
  border-radius: 14px;
  background: linear-gradient(118deg, #06182d 0%, #031326 57%, #001525 100%);
  box-shadow: 0 9px 22px rgba(1, 14, 29, .2), inset 0 1px 0 rgba(255, 255, 255, .025);
}
.afm-performance .chart-heading-copy strong {
  color: #f7f6f2;
}
.afm-performance .chart-heading-copy small,
.afm-performance .chart-legend span {
  color: #c8cfda;
}
.afm-performance .chart-caption > p {
  color: #e2b443;
}
.afm-performance .chart-note {
  color: #aeb8c6;
}
.afm-performance .chart-stage:focus-visible,
.afm-performance .table-scroll:focus-visible,
.afm-performance .annual-table-scroll:focus-visible {
  outline-color: rgba(231, 184, 78, .62);
}

.afm-performance .annual-performance-card,
.afm-performance .history-table-wrap,
.afm-performance .table-card {
  border-color: #cbb67b;
  background: #fbfaf7;
  box-shadow: 0 8px 22px rgba(20, 29, 40, .09);
}
.afm-performance .annual-performance-heading,
.afm-performance .history-table-wrap .table-card-heading,
.afm-performance .today-content-shell > .table-card .table-card-heading {
  border-bottom-color: #c99e42;
  background: linear-gradient(100deg, #e4b64e 0%, #f0d38e 42%, #f5ecda 100%);
}
.afm-performance .annual-performance-heading > span {
  color: #61470f;
}
.afm-performance .annual-performance-heading h3,
.afm-performance .annual-title-row h3,
.afm-performance .history-table-wrap .table-card-heading h3,
.afm-performance .today-content-shell > .table-card .table-card-heading h3 {
  color: #111b2a;
}
.afm-performance .history-table-wrap .table-card-heading p,
.afm-performance .today-content-shell > .table-card .table-card-heading p {
  color: #445168;
}
.afm-performance .details-toggle {
  border-color: #9d751d;
  color: #f8f5ed;
  background: #0a1a30;
}
.afm-performance .details-toggle:hover {
  border-color: #d9aa3d;
  box-shadow: 0 7px 16px rgba(0, 11, 27, .2);
}
.afm-performance .currency-label {
  color: #f7f2e7;
  background: #14243b;
}
.afm-performance thead,
.afm-performance .annual-performance-table thead th {
  background: #eee9df;
}
.afm-performance thead th,
.afm-performance .annual-performance-table thead th {
  color: #34445e;
}
.afm-performance tbody td,
.afm-performance tbody th {
  border-top-color: #dfd8cd;
  color: #1f2f47;
}
.afm-performance tbody tr:not(.total-row):hover {
  background: #f3ecdc;
}
.afm-performance .total-row {
  background: #e7e4dc;
}
.afm-performance .total-row td {
  border-top-color: #b7a36e;
}
.afm-performance .annual-performance-table th,
.afm-performance .annual-performance-table td {
  border-right-color: #dcd5c9;
}
.afm-performance .annual-performance-table tbody th {
  color: #073f27;
  background: #fbfaf7;
}
.afm-performance .annual-performance-table .since-inception {
  background: #e4efe2;
}
.afm-performance .annual-performance-note {
  color: #59677b;
}

.afm-performance .today-content-shell {
  border-color: #17283c;
  background: linear-gradient(112deg, #06172c 0%, #031326 58%, #001321 100%);
  box-shadow: 0 17px 40px rgba(1, 12, 26, .2);
}
.afm-performance .today-section-intro {
  background: linear-gradient(104deg, #06172c 0%, #031326 61%, #00111e 100%);
}
.afm-performance .as-of-block > span {
  color: #46cf81;
}
.afm-performance .as-of-block > span::before {
  background: #16be68;
  box-shadow: 0 0 0 5px rgba(22, 190, 104, .13);
}
.afm-performance .as-of-block strong {
  color: #f8f7f3;
}
.afm-performance .as-of-block small {
  color: rgba(248, 247, 243, .72);
}
.afm-performance .today-content-shell > .metric-grid {
  background: transparent;
}
.afm-performance .metric-card {
  border-color: #d8d3ca;
  background: linear-gradient(145deg, #fff 0%, #f7f6f3 100%);
  box-shadow: 0 8px 20px rgba(0, 8, 20, .22);
}
.afm-performance .metric-card::after {
  background: rgba(15, 37, 69, .04);
}
.afm-performance .metric-card.positive {
  border-top-color: rgba(8, 119, 61, .72);
}
.afm-performance .metric-card.negative {
  border-top-color: rgba(196, 63, 73, .68);
}
.afm-performance .metric-topline {
  color: #58667d;
}
.afm-performance .metric-icon {
  color: #9a6d15;
  background: #f8eed5;
}
.afm-performance .metric-main-value,
.afm-performance .metric-secondary-value strong,
.afm-performance .metric-secondary-value.neutral strong {
  color: #13223a;
}
.afm-performance .metric-secondary-value {
  border-left-color: #d5cec3;
}
.afm-performance .metric-secondary-value span,
.afm-performance .metric-meta {
  color: #68758a;
}
.afm-performance .metric-meta small {
  color: #56647a;
  background: #e9e9e7;
}
.afm-performance .today-content-shell > .table-card {
  background: #fbfaf7;
}

/* Compact three-column band used by the Dark-version footer. */
.afm-performance .dark-principles-band {
  position: relative;
  margin-top: -1px;
  overflow: hidden;
  border: 1px solid #152236;
  border-top-color: #8f6a1e;
  border-radius: 0 0 20px 20px;
  color: #f8f6ef;
  background: linear-gradient(100deg, #020304 0%, #05080d 55%, #010203 100%);
  box-shadow: 0 15px 34px rgba(1, 10, 22, .17);
}
.afm-performance .performance-lower-shell > .today-content-shell {
  border-radius: 20px 20px 0 0;
}
.afm-performance .dark-principles-grid {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.afm-performance .dark-principle-item {
  min-width: 0;
  min-height: 52px;
  padding: 3px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.afm-performance .dark-principle-item > div {
  min-width: 0;
}
.afm-performance .dark-principle-item + .dark-principle-item {
  border-left: 1px solid rgba(221, 171, 58, .58);
}
.afm-performance .dark-principle-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6b642;
}
.afm-performance .dark-principle-item:nth-child(n+2) .dark-principle-icon {
  color: #f3f1eb;
}
.afm-performance .dark-principle-item h3,
.afm-performance .dark-principle-item strong {
  margin: 0;
  color: #fbfaf7;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}
.afm-performance .dark-principle-item p,
.afm-performance .dark-principle-item small {
  display: block;
  margin: 3px 0 0;
  color: #c9cdd3;
  font-size: 11px;
  line-height: 1.35;
}
.afm-performance .technology-credit {
  display: none;
}

/* Coherent fallback should the White-version principles markup be retained. */
.afm-performance .principles-section {
  border-radius: 20px;
  background: #030609;
}
.afm-performance .principles-card,
.afm-performance .principles-quote {
  border-color: #29384a;
  background: #071426;
  box-shadow: 0 10px 28px rgba(0, 8, 19, .22);
}
.afm-performance .principle-item:nth-child(odd),
.afm-performance .principle-item:nth-child(-n+2),
.afm-performance .principle-item {
  border-color: #2a394b;
}
.afm-performance .principle-icon {
  color: #e6b642;
  background: #0b1d34;
}
.afm-performance .principle-item h3,
.afm-performance .principles-quote h3 {
  color: #f5ca66;
}
.afm-performance .principle-item p,
.afm-performance .principles-quote p {
  color: #e4e7eb;
}

@media (max-width: 900px) {
  .afm-performance .history-contribution-panel {
    border-top: 0;
  }
}

@media (max-width: 500px) {
  .afm-performance .history-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .afm-performance .history-chart {
    margin: 10px 12px 12px;
  }
  .afm-performance .history-performance-summary {
    gap: 12px;
    padding: 12px;
  }
  .afm-performance .history-stat-grid > .history-summary-card {
    padding: 0;
    border-color: #d9d2c7;
  }
  .afm-performance .history-summary-card > div {
    padding: 16px 14px;
  }
  .afm-performance .as-of-block {
    border-top-color: rgba(231, 184, 78, .25);
  }
  .afm-performance .dark-principles-grid {
    padding: 9px 18px;
    grid-template-columns: 1fr;
  }
  .afm-performance .dark-principle-item {
    min-height: 62px;
    justify-content: flex-start;
  }
  .afm-performance .dark-principle-item + .dark-principle-item {
    border-top: 1px solid rgba(221, 171, 58, .42);
    border-left: 0;
  }
}
