/* Theme 2.0 fund detail. Owner: Frontend Builder A. Prefix .fd-. Tokens only, no hex.
   Needs tokens.css + base.css + components.css. Layout: hero overlaps its chart on desktop (>=1280),
   flows as a stack on tablet (900 to 1279). */

.fd [hidden] { display: none !important; }

/* ── Hero head ─────────────────────────────────────────────── */
.fd-hero { position: relative; }
.fd-head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; pointer-events: none; }
.fd-head > * { pointer-events: none; }
.fd-head a, .fd-head button, .fd-head select, .fd-head input, .fd-head label, .fd-head .fd-menu, .fd-head p, .fd-head h1, .fd-head .fd-rets, .fd-head ul { pointer-events: auto; }
.fd-head__l { display: flex; flex-direction: column; gap: 18px; max-width: 700px; min-width: 0; }
.fd-head__r { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; flex: none; }

.fd-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t2); }
.fd-eyebrow__brand:hover { text-decoration: underline; }
.fd-eyebrow__sep { width: 3px; height: 3px; border-radius: 50%; background: var(--td); }
.fd-eyebrow__isin { font-size: 11px; color: var(--td); letter-spacing: 0.08em; font-weight: 400; }
.fd-title { overflow-wrap: anywhere; }

.fd-chips { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--t2); }
.fd-chip { display: inline-flex; align-items: center; gap: 7px; }
.fd-chip svg { flex: none; color: var(--r2); }
.fd-chip--style { font-weight: 500; color: var(--tx); }

.fd-obj { max-width: 600px; }
.fd-obj__text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-obj.is-open .fd-obj__text { display: block; -webkit-line-clamp: unset; }
.fd-obj__more { margin-top: 4px; color: var(--r2); font-weight: 500; }

.fd-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.fd-actions .t2-btn { height: 48px; border-radius: 15px; padding: 0 20px; font-size: 14px; }
.fd-ai-btn { gap: 9px; }
.fd-claude { flex: none; }
.fd-sc { display: inline-flex; position: relative; }
.fd-sc__ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--r2); pointer-events: none; display: inline-flex; }
.fd-sc__sel { height: 48px; max-width: 240px; min-width: 150px; padding: 0 38px 0 42px; border-radius: 15px; border: 1px solid var(--pbd); background: var(--seg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239A8D91' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat right 14px center; color: var(--tx); font: inherit; font-size: 13px; font-weight: 500; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; }
.fd-sc__sel option, .fd-sc__sel optgroup { background: var(--panelsolid); color: var(--tx); }
.fd-share { position: relative; }
.fd-share__lock { position: absolute; right: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--panelsolid); border: 1px solid var(--pbd); display: flex; align-items: center; justify-content: center; color: var(--t2); }
#fdWatch[aria-pressed="true"] { color: var(--r3); border-color: var(--glassbd); }
#fdWatch[aria-pressed="true"] svg { fill: currentColor; }

/* right column: tools, as-of, returns */
.fd-tools { position: relative; }
.fd-pill { display: flex; align-items: center; padding: 4px; border-radius: 18px; background: var(--seg); border: 1px solid var(--pbd); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fd-pill__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 14px; border: 0; background: transparent; color: var(--tx); font-size: 15px; font-weight: 500; cursor: pointer; transition: background var(--dur); }
.fd-pill__btn:hover, .fd-pill__btn[aria-expanded="true"] { background: var(--panelsolid); }
.fd-pill__range { padding: 0 16px; }
.fd-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 200px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.fd-menu--set { min-width: 260px; gap: 8px; padding: 14px; }
.fd-menu__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--t2); font-size: 13px; font-weight: 400; cursor: pointer; text-align: left; }
.fd-menu__item:hover { background: var(--ghost); color: var(--tx); }
.fd-menu__item[aria-checked="true"] { color: var(--tx); font-weight: 500; background: var(--ghost); }
.fd-menu__lock { color: var(--td); display: inline-flex; }
.fd-menu__h { font-size: 12px; color: var(--td); }
.fd-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--t2); cursor: pointer; }
.fd-check input { accent-color: var(--r2); width: 16px; height: 16px; }

.fd-asof { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--td); }
.fd-asof__dot { width: 7px; height: 7px; background: var(--gain); animation: none; }   /* a quiet status dot, never a live pulse (no live feed exists) */
.fd-asof.is-stale .fd-asof__dot { background: var(--td); }
.fd-rets { display: flex; gap: 40px; margin-top: 44px; }
.fd-ret { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.fd-ret__top { display: flex; align-items: flex-start; gap: 4px; }
.fd-ret__v { font-size: 46px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--tx); font-variant-numeric: tabular-nums; }
.fd-ret__q { margin-top: 2px; font-size: 9px; padding: 1px 4px; border-radius: 4px; }

/* ── Chart (overlaps the head on desktop) ─────────────────── */
.fd-chartwrap { position: relative; z-index: 1; margin: -236px calc(var(--page-x) * -1) 0; height: 580px; }
.fd-chartfade { position: absolute; left: 0; top: 0; bottom: 0; width: min(980px, 62%); background: linear-gradient(90deg, var(--fade) 18%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent 0, black 28%); mask-image: linear-gradient(180deg, transparent 0, black 28%); pointer-events: none; z-index: 2; }
.fd-chartarea { position: absolute; inset: 0 var(--page-x); z-index: 1; }
.fd-chart { margin-top: 132px; height: calc(100% - 132px); }   /* the kit sets position:relative inline, so absolute placement lives on .fd-chartarea */
.fd-chartmsg { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; text-align: center; transform: translateY(-50%); }
.fd-chart .t2-tip .t2-sub { font-size: 12px; }
.fd-legendrow { position: relative; z-index: 3; display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.fd-legend { gap: 8px; margin-top: 4px; }
.fd-head__l .fd-legend { flex-wrap: wrap; max-width: 640px; }
.fd-legend button { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--seg); border: 1px solid var(--pbd); color: var(--td); }
.fd-legend button[aria-pressed="true"] { color: var(--tx); }
.fd-legend .fd-lv { font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-basis { max-width: 620px; text-align: left; }

/* ── KPI chips ────────────────────────────────────────────── */
.fd-kpis { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.fd-kpi { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px; border-radius: 16px; background: var(--seg); border: 1px solid var(--pbd); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fd-kpi__ico { display: inline-flex; color: var(--td); }
.fd-kpi__l { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--td); }
.fd-kpi__v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── AI forecast glass panel ──────────────────────────────── */
.fd-chartwrap.has-fc { height: 740px; }
.fd-chartwrap.has-fc .fd-chartarea { right: calc(var(--page-x) + 396px); }   /* the chart (and its forecast cone) sits left of the panel, not under it */   /* room for the forecast panel under the hero numbers */
.fd-fc { position: absolute; z-index: 4; right: var(--page-x); bottom: 56px; width: 380px; display: flex; flex-direction: column; gap: 14px; }
.fd-fc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fd-fc__sum { font-size: 15px; font-weight: 500; line-height: 1.4; margin: 0; color: var(--tx); }
.fd-scen { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.fd-scen__col { flex: 1; border-top: 3px solid var(--c); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, transparent), transparent); }
.fd-scen__lbl { display: flex; gap: 6px; }
.fd-scen__lbl span { flex: 1; font-size: 13px; color: var(--t2); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.fd-scen__lbl b { font-weight: 700; }
.fd-bul { display: flex; flex-direction: column; gap: 5px; list-style: none; margin: 0; padding: 0; }
.fd-bul li { display: flex; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--t2); }
.fd-bul li > span:first-child { color: var(--td); }
.fd-fc__disc { font-size: 11px; line-height: 1.4; color: var(--td); margin: 0; }

/* ── Sections / portfolio carousel ────────────────────────── */
.fd-sec { margin-top: 40px; }
.fd-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 8px; }
.fd-car { grid-auto-columns: calc((100% - 18px) / 4.3); }
.fd-pan { aspect-ratio: 1 / 1.4; display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.fd-pan .t2-panel-head { margin-bottom: 12px; align-items: baseline; }
.fd-pan .t2-title { font-size: 16px; }
.fd-empty { margin: auto 0; color: var(--td); }
.fd-alloc__rows, .fd-hold__list { display: flex; flex-direction: column; gap: 15px; flex: 1; justify-content: center; list-style: none; margin: 0; padding: 0; }
.fd-hold__list { gap: 11px; justify-content: space-between; }
.fd-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fd-row__top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--t2); }
.fd-row__v { color: var(--tx); font-weight: 500; font-variant-numeric: tabular-nums; flex: none; }
.fd-row--other { opacity: 0.85; }
.is-locked { filter: blur(5px); user-select: none; pointer-events: none; }
.fd-alloc__rows.is-locked { filter: blur(5px); }
.fd-unlock { margin-top: 12px; color: var(--r2); font-weight: 500; text-align: left; }

.fd-ev { display: flex; flex-direction: column; border-top: 1px solid var(--grid); padding: 10px 0; gap: 3px; text-align: left; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; color: inherit; }
.fd-ev:first-child { border-top: 0; }
.fd-ev:hover .fd-ev__t { text-decoration: underline; }
.fd-ev__m { font-size: 11px; color: var(--td); display: flex; gap: 6px; align-items: center; }
.fd-ev__t { font-size: 13px; font-weight: 500; color: var(--tx); line-height: 1.35; }
.fd-ev__i { font-size: 12px; color: var(--t2); }
.fd-evdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fd-evdot--pos { background: var(--gainfill); } .fd-evdot--neg { background: var(--lossfill); } .fd-evdot--neu { background: var(--td); }

/* ── Performance row (a carousel of the same panels, as in the brief) ── */
.fd-dl { margin: 0; display: flex; flex-direction: column; }
.fd-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--grid); font-size: 13px; }
.fd-dl > div:first-child { border-top: 0; }
.fd-dl dt { color: var(--td); flex: none; }
.fd-dl dd { margin: 0; color: var(--tx); font-weight: 500; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fd-note { margin: 12px 0 0; }
.fd-cmp { display: flex; flex-direction: column; gap: 14px; }
.fd-cmp__row { display: flex; flex-direction: column; gap: 6px; }
.fd-cmp__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--t2); }
.fd-cmp__top b { color: var(--tx); font-weight: 500; white-space: nowrap; }
.fd-cmp__top b.t2-pos { color: var(--gain); } .fd-cmp__top b.t2-neg { color: var(--loss); }
.fd-cmp__bar { height: 6px; border-radius: 3px; background: var(--track); position: relative; }
.fd-cmp__bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--ramp); }
.fd-cmp__delta { font-size: 13px; color: var(--t2); }

/* ── Modals (forecast, event) ─────────────────────────────── */
.fd-mo__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-right: 44px; }
.fd-mo__long { font-size: 14px; line-height: 1.6; color: var(--t2); margin: 0 0 14px; }
.fd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 14px; }
.fd-tile { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--rad-tile); background: var(--ghost); }
.fd-tile__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--t2); }
.fd-tile__top b { font-size: 26px; font-weight: 400; letter-spacing: -0.03em; }
.fd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 14px; }
.fd-card { padding: 14px 16px; border-radius: var(--rad-tile); background: var(--ghost); display: flex; flex-direction: column; gap: 6px; margin-top: var(--gap); }
.fd-card b { font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.fd-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--t2); }
.fd-disc { padding: 12px 16px; border-radius: var(--rad-tile); background: var(--ghost); font-size: 12px; line-height: 1.5; color: var(--t2); }
.fd-evstat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 14px 0; }
.fd-evchart { height: 170px; margin: 8px 0 14px; }

/* ── Gate card ────────────────────────────────────────────── */
.fd-gate { display: flex; justify-content: center; padding-top: 140px; }
.fd-gate__card { max-width: 520px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 40px 32px; }
.fd-gate__title { font-size: 24px; }
.fd-gate__cta { justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ── Tablet 900 to 1279: flow layout ──────────────────────── */
@media (max-width: 1279px) {
  .fd-head { flex-direction: column; gap: 24px; }
  .fd-head__r { align-items: flex-start; width: 100%; }
  .fd-ret { align-items: flex-start; }
  .fd-rets { gap: 28px; flex-wrap: wrap; margin-top: 8px; }
  .fd-actions { flex-wrap: wrap; }
  .fd-menu { right: auto; left: 0; }
  .fd-chartwrap.has-fc .fd-chartarea { right: auto; }
  .fd-chartwrap, .fd-chartwrap.has-fc { margin: 24px 0 0; height: auto; display: flex; flex-direction: column; gap: var(--gap); }
  .fd-chartfade { display: none; }
  .fd-chartarea { position: relative; inset: auto; height: 420px; }
  .fd-chart { margin-top: 0; height: 100%; }
  .fd-fc { position: static; width: auto; }
  .fd-car { grid-auto-columns: calc((100% - 6px) / 2.3); }
  .fd-car--perf { grid-auto-columns: calc((100% - 6px) / 2.3); }
  .fd-rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fd-basis { text-align: left; }
}
@media (max-width: 1100px) { .fd-ret__v { font-size: 40px; } }

/* ── If you invested: column labels ── */
.fd-inv__lbls { display: flex; gap: 6px; margin-top: 4px; }
.fd-inv__lbls span { flex: 1; text-align: center; }

/* ── Breadcrumb and crawlable related links ── */
.fd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--td); }
.fd-crumbs a:hover { color: var(--tx); text-decoration: underline; }
.fd-crumbs [aria-current] { color: var(--t2); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-seolinks { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--grid); }
.fd-seolinks .fdp-seo-links-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fd-seolinks .fdp-seo-links-block { display: flex; flex-direction: column; gap: 8px; }
.fd-seolinks h3 { font-size: 13px; font-weight: 500; margin: 0; color: var(--td); }
.fd-seolinks p { margin: 0; font-size: 13px; color: var(--t2); }
.fd-seolinks a { color: var(--t2); } .fd-seolinks a:hover { color: var(--tx); text-decoration: underline; }
.fd-seolinks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--t2); }
.fd-seolinks .fdp-seo-links-meta { color: var(--td); }
.fd-seolinks .fdp-seo-links-return.pos { color: var(--gain); } .fd-seolinks .fdp-seo-links-return.neg { color: var(--loss); }
@media (max-width: 1279px) { .fd-seolinks .fdp-seo-links-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Add-fund popover and overlay chips ── */
.fd-menu--add { min-width: 340px; gap: 8px; padding: 14px; }
.fd-add__list { display: flex; flex-direction: column; max-height: 260px; overflow: auto; }
.fd-add__item { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--tx); font-size: 13px; }
.fd-add__item:hover, .fd-add__item:focus-visible { background: var(--ghost); }
.fd-add__item small { color: var(--td); font-size: 12px; }
.fd-legend .fd-rm { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 10px; color: var(--td); margin-left: 2px; }
.fd-legend .fd-rm:hover { color: var(--tx); background: var(--ghost); }

/* ── Overlay a fund popover (brief): drops down under the + at the top right of the chart ── */
.fd-ovpop { width: 340px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fd-ovpop[hidden] { display: none; }
.fd-ovm__title { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--td); padding: 2px 4px; }
.fd-ovpop .fd-ovm__ai { width: 100%; height: 38px; border-radius: 9px; font-size: 13px; justify-content: flex-start; padding: 0 14px; gap: 10px; }
.fd-ovm__note { margin: 0; padding: 0 4px; }
.fd-ovm__list { display: flex; flex-direction: column; gap: 2px; }
.fd-ovm__row { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; color: var(--tx); }
.fd-ovm__row:hover, .fd-ovm__row:focus-visible { background: var(--ghost); }
.fd-ovm__badge { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--grid); background: var(--ghost); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--r2); }
.fd-ovm__nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fd-ovm__name { font-size: 13px; line-height: 1.3; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-ovm__sub { font-size: 11px; color: var(--td); }
.fd-ovm__ico { flex: none; width: 20px; text-align: center; font-size: 17px; color: var(--t2); }
.fd-ovm__row[aria-selected="true"] .fd-ovm__ico { font-size: 14px; color: var(--tx); }

/* ── Macro events panel (brief) ── */
.fd-mac { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.fd-mac__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fd-mac__num { font-size: 36px; font-weight: 400; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.fd-mac__cap { margin-top: 8px; max-width: 96px; font-size: 12px; }
.fd-mac__sent { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 12px; background: var(--seg); border: 1px solid var(--pbd); font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 100%; }
.fd-mac__sent i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fd-mac__ticks { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; height: 40px; margin-top: 22px; }
.fd-mac__ticks i { flex: 1; min-width: 2px; border-radius: 2px; }
.fd-mac__dot { position: absolute; top: -26px; width: 18px; height: 18px; border-radius: 50%; }
.fd-mac__axis { display: flex; justify-content: space-between; font-size: 13px; }
.fd-mac__txt { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--t2); }
.fd-mac__ai { margin: auto 0 0; }

/* ── Brief panels: portfolio rows, comparison, risk, information, invested ── */
.fd-sec__head .t2-sub { font-size: 13px; }
.fd-ob { display: flex; flex-direction: column; gap: 4px; }
.fd-ob:empty { display: none; }
.fd-ob i { display: block; height: 3px; border-radius: 2px; background: var(--c); opacity: 0.85; }
.fd-alloc__rows { gap: 14px; justify-content: flex-start; }
.fd-hold__list { gap: 9px; justify-content: flex-start; }
/* second row: wider panels (about 3.3 across) so the longest one (Fund information) sets one shared height for all four */
.fd-car--perf { grid-auto-columns: calc((100% - 12px) / 3.3); align-items: stretch; }
.fd-car--perf .fd-pan { aspect-ratio: auto; min-height: 420px; }
.fd-foot { margin: 18px 0 0; max-width: 1100px; font-size: 13px; line-height: 1.55; }
.fd-cmpp__body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fd-cmpp__hero { font-size: 40px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.fd-cmpp__cap { font-size: 14px; color: var(--t2); margin-top: 6px; }
.fd-cmpp__btn { margin-top: auto; height: 40px; border-radius: 12px; border-color: var(--glassbd); background: color-mix(in srgb, var(--r2) 10%, transparent); color: var(--tx); font-size: 14px; }
.fd-cmp__bar i { background: var(--ramp); }
.fd-cmp__bar--bench i { background: var(--td); opacity: 0.8; }
.fd-gauge { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.fd-gauge__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fd-gauge__v { font-size: 28px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.fd-gauge__track { position: relative; height: 6px; border-radius: 3px; background: var(--track); margin: 8px 0 2px; }
.fd-gauge__ring { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid var(--r2); background: var(--panelsolid); }
.fd-dl--tight > div { padding: 4px 0; }
.fd-srri { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.fd-srri__lbl { display: flex; justify-content: space-between; font-size: 14px; color: var(--t2); }
.fd-srri__seg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fd-srri__seg span { height: 6px; border-radius: 4px; background: var(--track); }
.fd-srri__seg span.is-on { background: var(--glass); }
.fd-amt { display: block; margin-bottom: 10px; }
.fd-amt__box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--grid); background: var(--ghost); }
.fd-amt__ccy { font-size: 18px; color: var(--t2); }
.fd-amt__in { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 16px; font-weight: 400; color: var(--tx) !important; outline: none; padding: 0 !important; height: auto !important; }
.fd-inv__rng { width: 100%; padding: 3px; border-radius: 12px; margin-bottom: 4px; }
.fd-inv__rng button { flex: 1; padding: 6px 6px; border-radius: 9px; font-size: 12px; }
.fd-inv__rng button[aria-pressed="true"] { background: var(--glass); color: #fff; }
.fd-inv__res { padding-top: 8px; }
.fd-inv__big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fd-inv__big > span:first-child { font-size: 32px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fd-inv__gain { font-size: 15px; font-weight: 500; }
.fd-inv__cols { margin-top: 4px; }
.fd-inv__chart { height: auto; min-height: 90px; }
.fd-inv__chart > div:first-child { height: 62px !important; padding-top: 20px !important; }   /* the kit's columns are 150px tall; the target panel is compact */
.fd-inv__chart > div:last-child { margin-top: 6px !important; }
.fd-inv__txt { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.fd-inv__txt p { margin: 0; line-height: 1.4; font-size: 11px; }
.fd-inv__txt .t2-label-2 { font-size: 12px; }

/* ── Parent-theme (Salient) resets. Staging showed Salient's heading, link and input rules beating the single-class
   foundation rules (serif-looking H1 in Inter, 28px titles, grey input text, black links). Scoped to this page and
   raised one level; Menus can lift these into base.css and delete them here. ── */
body.t2 .fd :is(h1, h2, h3, h4) { font-family: var(--font); margin: 0; text-transform: none; }
body.t2 .fd h1.t2-h1 { font-size: 52px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; color: var(--tx); }
body.t2 .fd .t2-title { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--tx); }
body.t2 .fd .fd-gate__title { font-size: 24px; }
body.t2 .fd a { color: inherit; }
body.t2 .fd .fd-eyebrow__brand { color: var(--t2); }
body.t2 .fd :is(p, li, dd, dt, span, div) { font-family: inherit; }
body.t2 .fd input.t2-input, body.t2 .fd select { color: var(--tx); font-family: var(--font); background-color: var(--ghost); border: 1px solid var(--grid); }
body.t2 .fd .fd-sc__sel { background-color: var(--seg); border-color: var(--pbd); }
body.t2 .fd ul, body.t2 .fd ol, body.t2 .fd dl { margin-left: 0; margin-bottom: 0; }
body.t2 .fd ul.fd-chips, body.t2 .fd ul.fd-kpis, body.t2 .fd ol.fd-hold__list, body.t2 .fd ul.fd-bul { padding-left: 0; list-style: none; }
body.t2 .fd button { font-family: var(--font); text-transform: none; letter-spacing: normal; }
@media (max-width: 1100px) { body.t2 .fd h1.t2-h1 { font-size: 40px; } }
.fd { padding-bottom: 150px; }   /* room for the docked search bar */

.fd-ret-note { max-width: 520px; margin: 10px 0 0; text-align: right; }
@media (max-width: 1279px) { .fd-ret-note { text-align: left; } }

/* Peer average range: diagonal hatch under the peer median (kit hatch pattern), made readable like the owner's reference */
#p-hatch line { stroke: var(--t2); stroke-opacity: 0.7; }

/* Manual search modal (medium) */
.fd-ovm__manual { width: 100%; height: 38px; border-radius: 9px; font-size: 13px; justify-content: center; margin-top: 2px; }
.fd-pm { width: min(600px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 12px; }
.fd-pm .t2-sub { margin: 0; }
.fd-pm__search { display: flex; align-items: center; gap: 12px; }
.fd-pm__search input { flex: 1; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--grid); background: var(--ghost); color: var(--tx); font: inherit; font-size: 14px; }
.fd-pm__search input:focus-visible { outline: 2px solid var(--r3); outline-offset: 2px; }
.fd-pm__search .t2-sub { white-space: nowrap; }
.fd-pm__chips { display: flex; align-items: flex-start; gap: 10px; }
.fd-pm__lbl { flex: none; width: 44px; padding-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.fd-pm__set { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-pm__list { display: flex; flex-direction: column; max-height: min(34vh, 300px); overflow: auto; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.fd-pm__row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--grid); background: transparent; color: var(--tx); text-align: left; cursor: pointer; font: inherit; }
.fd-pm__row:last-child { border-bottom: 0; }
.fd-pm__row:hover:not(:disabled), .fd-pm__row:focus-visible { background: var(--ghost); }
.fd-pm__row:disabled { opacity: 0.5; cursor: default; }
.fd-pm__row[aria-selected="true"] .fd-pm__tick { background: var(--ink); color: var(--inktx); border-color: var(--ink); }
.fd-pm__ret { flex: none; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-pm__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--td); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.fd-pm__foot { display: flex; justify-content: flex-end; gap: 8px; }

/* The page wrapper carries an entry transform, which makes it a stacking context (and the containing block for fixed children): modals inside it sat BELOW the docked ask bar. While any modal is open, drop the transform so the scrim covers the viewport and the ask bar. */
.t2-page.fd:has(.t2-scrim--host.is-open) { transform: none !important; animation: none !important; }

/* Peer average line: darker neutral, dashed, heavier than the benchmark (the kit draws bench and peer lines at 1.6px) */
.fd-chart path[data-sid="peer"], .fd-chartwrap path[data-sid="peer"] { stroke-width: 2.4px; opacity: 0.85; }

/* ── cutover gate (375 and 768): one column under 900, nothing wider than the viewport. Last in the file so it beats the earlier carousel rules. ── */
@media (max-width: 899px) {
  .fd-car, .fd-car--perf { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; overflow: visible; cursor: auto; }
  .fd-car--perf .fd-pan, .fd-car .fd-pan { min-height: 0; aspect-ratio: auto; }
  #fdCarPrev, #fdCarNext { display: none; }
  .fd-tiles, .fd-two, .fd-evstat, .fd-rel { grid-template-columns: minmax(0, 1fr); }
  .fd-seolinks .fdp-seo-links-inner { grid-template-columns: minmax(0, 1fr); }
  .fd-chartarea { height: 300px; }
  .fd-ret__v { font-size: 32px; }
  body.t2 .fd h1.t2-h1 { font-size: 30px; }
  .fd-rets { gap: 16px; }
  .fd-sc__sel { max-width: 100%; min-width: 0; width: 100%; }
  .fd-menu, .fd-menu--set, .fd-menu--add, .fd-ovpop { min-width: 0; width: min(340px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
  .fd-actions { gap: 8px; }
  .fd-actions .t2-btn, .fd-actions .t2-iconbtn { min-height: 44px; }
  .fd .t2-body, .fd .t2-lead, .fd .fd-cmpp__body { font-size: 16px; }
}

/* mobile gate, round 2: stopgap for the kit's hidden data table (see today.css) and 44px touch targets */
table.t2-vh { display: block; overflow: hidden; }
@media (max-width: 899px) {
  .fd .t2-seg button, .fd .t2-tabs button, .fd summary, .fd-seolinks a, .fd .t2-panel-head .t2-iconbtn { min-height: 44px; }
  .fd .t2-panel-head .t2-iconbtn { width: 44px; }
}

/* mobile gate, round 3: 44px targets for the chart legend chips, period buttons and links; 14px minimum text on phones (16px paragraphs; chart ticks 12px) */
@media (max-width: 899px) {
  .fd-legend > button { min-height: 44px; }
  .fd-rm { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -13px -10px -13px 0; }
  #fdInvRng button { min-height: 44px; }
  .fd-obj__more, .fd-eyebrow__brand { display: inline-flex; align-items: center; min-height: 44px; }
  .fd-cmpp__btn { min-height: 44px; }
  .fd .t2-panel-head .t2-iconbtn { width: 44px; height: 44px; }
  .fd .t2-sub, .fd .t2-label, .fd .t2-label-2, .fd .fd-row__top, .fd .fd-dl dt, .fd .fd-dl dd,
  .fd-eyebrow__brand, .fd-eyebrow__isin, .fd-chip, .fd-ln, .fd-lv, .fd-obj__more { font-size: 14px; }
  .fd-rm { flex: none; min-width: 44px; }
  .fd .t2-iconbtn { flex: none; min-width: 44px; }
  .fd-kpi__l, .fd-mac__sent, .fd-mac__txt, .fd-asof span, .fd-cmpp__body span, .fd-cmpp__body b, #fdInvRng button, .fd-ev__m, .fd-ev__t, .fd-ev__i { font-size: 14px; }
  .fd-seolinks h3, .fd-seolinks a, .fd-seolinks span { font-size: 14px; }
  .fd-seolinks a { display: inline-flex; align-items: center; min-height: 44px; }
  .fd .t2-badge { font-size: 11px; }
  .fd .t2-chart .t2-sub { font-size: 12px; }
  .fd .t2-body, .fd .fd-obj, .fd .fd-obj p { font-size: 16px; }
}

/* mobile gate, round 4: the legend remove control keeps its 44px height inside the flex chip */
@media (max-width: 899px) { .fd-rm { min-height: 44px; align-self: center; } }

/* risk panel source and as-at lines */
.fd-risknote { margin-top: 8px; }

/* Luke (13 Oct): the Portfolio panels are exactly the size of the Performance panels in the second grid: the same column width and the same height, so the two rows line up. */
@media (min-width: 900px) {
  .fd-car .fd-pan, .fd-car--perf .fd-pan { aspect-ratio: auto; height: 580px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }   /* one fixed height for all nine panels in both rows; content never needs more at these widths */
}
@media (min-width: 1280px) { .fd-car, .fd-car--perf { grid-auto-columns: calc((100% - 12px) / 3.3); } }
/* narrower panels need more height for the same content (the Risk panel is the tallest) */
@media (min-width: 900px) and (max-width: 1439px) { .fd-car .fd-pan, .fd-car--perf .fd-pan { height: 640px; } }
@media (min-width: 900px) and (max-width: 1279px) { .fd-car, .fd-car--perf { grid-auto-columns: calc((100% - 6px) / 2.3); } }

/* SEO facts line under the H1: one plain sentence, 15px, wraps at any width */
.fd-facts { margin: 6px 0 0; max-width: 760px; font-size: 15px; line-height: 1.5; color: var(--t2); }
.fd-facts a { color: var(--tx); text-decoration: underline; text-decoration-color: var(--r2); text-underline-offset: 3px; }
@media (max-width: 899px) { .fd-facts { font-size: 16px; } .fd-facts a { display: inline; min-height: 0; line-height: inherit; padding: 2px 0; } }   /* an inline link in a sentence: no oversized line box */

/* Luke (12 Oct): the "Sector range" legend marker is the same diagonal grey hatch as the chart band, not a coloured circle */
.t2-legend button[data-id="range"] .t2-dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--td); background: repeating-linear-gradient(45deg, var(--td) 0 1.2px, transparent 1.2px 3.6px) !important; opacity: 0.85; }

/* longer approved row labels (for example "Largest fall from a peak (maximum drawdown), 3 years") wrap instead of widening the page at 375 */
@media (max-width: 899px) { .fd-dl dt { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; } .fd-dl dd { min-width: 0; } }

/* Luke (13 Oct), target: on wide screens row 1 shows 4.3 panels and row 2 exactly 4, both rows 540px tall. */
@media (min-width: 1700px) {
  .fd-car { grid-auto-columns: calc((100% - 18px) / 4.3); }
  .fd-car--perf { grid-auto-columns: calc((100% - 18px) / 4); }
  .fd-car .fd-pan, .fd-car--perf .fd-pan { height: 540px; }
}

/* phones (SEO tap gate): 44px hit areas without changing the layout */
@media (max-width: 899px) {
  .fd-facts a { display: inline-block; padding: 11px 0; margin: -11px 0; line-height: inherit; }   /* hit box only: the sentence keeps its line height */
  .fd-amt__box { height: 44px; }
  .fd-amt__in { height: 100% !important; min-height: 44px; }
  .fdp-seo-links a { min-width: 44px; justify-content: center; }
}
@media (max-width: 899px) { .t2-follow-go { font-size: 16px; } }   /* follow prompt button text 16px on phones (the shared follow.css leaves it at 14px) */

/* macro events panel: three-label centred scale and the linked-events list (the same events the chart pins show) */
.fd-mac__axis { text-align: center; }
.fd-mac__axis span:first-child { text-align: left; } .fd-mac__axis span:last-child { text-align: right; }
.fd-mac__lh { margin-top: 4px; }
.fd-mac__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 168px; overflow-y: auto; scrollbar-width: thin; }
.fd-mac__list li { border-top: 1px solid var(--grid); }
.fd-mac__list li:first-child { border-top: 0; }
.fd-mac__ev { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--tx); text-align: left; cursor: pointer; font: inherit; }
.fd-mac__ev b { font-size: 14px; font-weight: 500; line-height: 1.35; }
.fd-mac__ev:hover b { text-decoration: underline; text-decoration-color: var(--r2); text-underline-offset: 3px; }
.fd-mac__ev:focus-visible { outline: 2px solid var(--r3); outline-offset: 2px; border-radius: 6px; }

.fd-mac__list--modal { max-height: min(60vh, 460px); }

.fd-mac__all { margin-top: 12px; min-height: 44px; width: 100%; }

/* the follow prompt waits for the cookie banner: consent.js sets --t2-follow-bottom on the root only while the banner is open and removes it when answered, so with the banner closed this rule does nothing */
:root[style*="--t2-follow-bottom"] .t2-follow { display: none !important; }

/* chart controls (add, settings, range) now sit under the return numbers so the Track card never covers them */
.fd-rets { margin-top: 8px; }
.fd-head__r > .fd-tools { align-self: flex-end; margin-top: 4px; }
@media (max-width: 1279px) { .fd-head__r > .fd-tools { align-self: flex-start; } }
@media (max-width: 899px) { .fd-head__r > .fd-tools { align-self: stretch; } .fd-head__r > .fd-tools .fd-pill { width: 100%; justify-content: space-between; } }
