/* The story article is the size container. Only controls on the active sheet
   accept pointer input; the marble and the document retain their native scroll. */
.iv-window {
  --iv-muted: #475569;
  --iv-rule: #e2e8f0;
  --iv-positive: #166534;
  --iv-pad: clamp(13px, min(4.7cqw, 4.2cqh), 40px);
  --iv-gap: clamp(9px, min(2.7cqw, 2.4cqh), 24px);
  --iv-small: clamp(11.5px, min(2.55cqw, 2.8cqh), 15px);
  --iv-body: clamp(13px, min(3.25cqw, 3.5cqh), 20px);
  width: min(91cqw, 48rem);
  min-width: 0;
  padding: var(--iv-pad);
  display: grid;
  gap: var(--iv-gap);
  border: 1px solid var(--iv-rule);
  border-radius: clamp(13px, 3.4cqw, 24px);
  background: var(--snow, white);
  color: var(--ink, #020817);
  box-shadow: 0 1px 3px #02081709, 0 15px 40px -26px #00264d66;
  font: 500 var(--iv-body)/1.35 var(--sans, system-ui, sans-serif);
  font-variant-numeric: lining-nums tabular-nums;
}
.iv-window :where(h4, p, figure, fieldset, dl, dt, dd) { margin: 0; }
.iv-window :where(label, section, header, fieldset, dl, dt, figure) { min-width: 0; }
.iv-window fieldset { border: 0; padding: 0; }
.iv-window label { position: relative; }
.iv-window input {
  position: absolute; z-index: 1; inset: 0; margin: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
[data-story-screen].active .iv-window input { pointer-events: auto; }
.iv-window input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.iv-folio {
  display: flex; align-items: center; justify-content: space-between; gap: .5em;
  padding-bottom: calc(.7 * var(--iv-gap)); border-bottom: 1px solid var(--iv-rule);
  color: var(--iv-muted); font-size: var(--iv-small);
}
.iv-folio b { color: var(--navy); font-weight: 700; }
.iv-switch, .iv-symbols { display: flex; }
.iv-modes .iv-switch { padding: 3px; border: 1px solid var(--iv-rule); background: var(--paper); border-radius: 9px; }
.iv-switch label { flex: 1 1 0; }
.iv-switch label > span, .iv-symbols label > span {
  display: flex; height: 100%; min-height: 36px; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 6px; padding: .38em .55em; text-align: center;
  color: var(--iv-muted); font-weight: 620; line-height: 1.16;
}
.iv-switch input:checked + span {
  border-color: #cbd5e1; background: white; color: var(--navy);
  box-shadow: 0 1px 3px #00336614;
}
@media (hover: hover) {
  .iv-switch input:hover + span, .iv-symbols input:hover + span { color: var(--navy); background: #eef3f7; }
}
.iv-modes { grid-template-columns: minmax(0, 1fr); }
/* Both records size the same grid track. Changing modes never moves the
   controls (or the page in landscape). The inactive record is not focusable. */
.iv-panel { grid-area: 3 / 1; display: grid; align-content: start; gap: var(--iv-gap); }
.iv-window * { transition-property: none; }
.iv-modes [data-investment-panel="self"],
.iv-modes:has([data-investment-mode="self"]:checked) [data-investment-panel="managed"] { visibility: hidden; }
.iv-modes:has([data-investment-mode="self"]:checked) [data-investment-panel="self"] { visibility: visible; }
.iv-modes [data-investment-quote="BND"],
.iv-modes:has([data-investment-symbol="BND"]:checked) [data-investment-quote="VTI"] { display: none; }
.iv-modes:has([data-investment-symbol="BND"]:checked) [data-investment-quote="BND"] { display: grid; }
.iv-heading p, .iv-small { color: var(--iv-muted); font-size: var(--iv-small); }
.iv-heading p { margin-bottom: .24em; }
.iv-heading p span { color: var(--gold-deep); margin-inline: .18em; }
.iv-heading h4 {
  font-size: clamp(21px, min(5.65cqw, 6.5cqh), 40px); font-weight: 620;
  line-height: 1.12; letter-spacing: -.052em;
}
.iv-allocation, .iv-quote-main {
  display: grid; align-items: center; min-width: 0;
  min-height: clamp(85px, min(24cqw, 27cqh), 200px);
}
.iv-allocation { grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr); gap: var(--iv-gap); }
.iv-ring {
  position: relative; display: grid; width: min(100%, 27cqw, 27cqh, 11.6rem);
  justify-self: center; place-items: center; aspect-ratio: 1;
}
.iv-ring svg, .iv-ring > div { grid-area: 1 / 1; }
.iv-ring svg { width: 100%; }
.iv-ring > div { display: grid; text-align: center; color: var(--iv-muted); font-size: var(--iv-small); }
.iv-ring strong { color: var(--navy); font-size: clamp(22px, min(6.2cqw, 7.2cqh), 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.05em; }
.iv-ring small { font-size: .57em; font-weight: 500; }
.iv-weights > div { display: flex; align-items: baseline; justify-content: space-between; gap: .45em; padding-block: .57em; }
.iv-weights > div + div { border-top: 1px solid var(--iv-rule); }
.iv-weights dt { display: flex; align-items: baseline; gap: .48em; }
.iv-weights dd, .iv-foot b { color: var(--navy); font-weight: 680; }
.iv-weights i { display: inline-block; flex: none; width: .55em; height: .55em; border-radius: 2px; background: currentColor; }
.iv-bond { color: var(--navy); stroke: currentColor; }
.iv-equity { color: var(--gold); stroke: currentColor; }
.iv-emerging { color: #94a3b8; stroke: currentColor; }
.iv-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: .7em;
  border-top: 1px solid var(--iv-rule); padding-top: .75em; color: var(--iv-muted); font-size: var(--iv-small);
}
.iv-foot b { text-align: right; }
.iv-trading-head { display: flex; align-items: end; justify-content: space-between; gap: .6em; }
.iv-symbols { gap: 3px; }
.iv-symbols label > span {
  min-width: 3.15em; min-height: 32px; padding: .35em .42em;
  border-color: var(--iv-rule); font-size: var(--iv-small);
}
.iv-symbols input:checked + span { color: var(--navy); background: #e8eff5; border-color: #94a3b8; }
.iv-quote { display: grid; gap: var(--iv-gap); }
.iv-quote-main { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: .8em; }
.iv-quote-main > div { display: grid; align-content: center; gap: .22em; }
.iv-quote-main strong, .iv-balance strong {
  display: block; color: var(--navy); font-weight: 570; line-height: 1.1; letter-spacing: -.055em; white-space: nowrap;
}
.iv-quote-main strong { font-size: clamp(23px, min(5.8cqw, 7cqh), 42px); }
.iv-quote-main strong small, .iv-balance strong small { font-size: .48em; font-weight: 630; letter-spacing: -.02em; }
.iv-change { color: var(--iv-positive); font-size: var(--iv-small); font-weight: 650; }
.iv-loss { color: #9f3435; }
.iv-quote-main svg { width: 100%; height: clamp(52px, min(17cqw, 19cqh), 126px); }
.iv-grid { fill: none; stroke: var(--iv-rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.iv-wick { fill: none; stroke: #64748b; stroke-width: 1; }
.iv-up, .iv-down { fill: none; stroke-width: 7; }
.iv-up { stroke: #21745b; }
.iv-down { stroke: #a94e4d; }

/* A single report, not a set of slides. The common starting index and the
   dollar ledger use different scales; deposits and withdrawals occur at close. */
.iv-report { row-gap: calc(.78 * var(--iv-gap)); }
.iv-balance { display: flex; align-items: end; justify-content: space-between; gap: .7em; }
.iv-balance h4 { color: var(--iv-muted); font-size: var(--iv-small); font-weight: 540; line-height: 1.25; }
.iv-balance strong { font-size: clamp(26px, min(7.8cqw, 8.5cqh), 52px); }
.iv-balance p { text-align: right; color: var(--iv-muted); font-size: var(--iv-small); }
.iv-balance p span { display: block; color: var(--iv-muted); }
.iv-history {
  display: grid; grid-template-columns: 1fr; gap: .32em;
  padding-top: calc(.65 * var(--iv-gap)); border-top: 1px solid var(--iv-rule);
}
.iv-history figcaption, .iv-ledger > p {
  display: flex; align-items: baseline; justify-content: space-between; gap: .45em;
  font-size: var(--iv-small); line-height: 1.3; color: var(--iv-muted);
}
.iv-history figcaption b { color: var(--ink); font-size: 1.09em; font-weight: 650; }
.iv-keys { display: flex; align-items: center; gap: .95em; font-size: var(--iv-small); white-space: nowrap; }
.iv-keys > span, .iv-ref-key > span { display: inline-flex; align-items: center; gap: .3em; }
.iv-line-key::before { content: ""; width: 1.12em; border-top: 2px solid var(--navy); }
.iv-ref-key > span {
  min-height: 28px; padding-inline: .45em; border: 1px solid var(--iv-rule); border-radius: 5px;
}
.iv-ref-key > span::before { content: ""; width: 1.12em; border-top: 2px dashed #94743b; }
.iv-ref-key input:not(:checked) + span { color: var(--iv-muted); }
.iv-ref-key input:not(:checked) + span::before { border-color: #94a3b8; border-top-style: dotted; }
.iv-history:has([data-report-reference]:not(:checked)) [data-report-series="bonds"] { display: none; }
.iv-plot { display: grid; grid-template-columns: max-content 1fr; gap: .12em .55em; }
.iv-yaxis, .iv-xaxis { display: flex; justify-content: space-between; color: var(--iv-muted); font-size: var(--iv-small); line-height: 1; }
.iv-yaxis { flex-direction: column; align-items: end; }
.iv-xaxis { grid-column: 2; }
.iv-xaxis > :nth-child(2) { margin-right: 13%; }
.iv-plot svg { width: 100%; height: clamp(52px, min(22cqw, 17cqh), 142px); overflow: visible; }
.iv-area { fill: #003366; fill-opacity: .045; }
.iv-benchmark-line, .iv-return-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.iv-benchmark-line { stroke: #94743b; stroke-width: 1.7; stroke-dasharray: 4 4; }
.iv-return-line { stroke: var(--navy); stroke-width: 2.6; }
.iv-last { fill: var(--navy); }
.iv-reading {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .8em; align-items: center;
  padding: .55em .65em; border-left: 2px solid var(--gold); background: #f8fafc;
  font-size: var(--iv-small); line-height: 1.35;
}
.iv-reading b { color: var(--navy); font-size: 1.15em; line-height: 1.15; }
.iv-reading b span { display: block; margin-top: .12em; font-size: .85em; font-weight: 500; }
.iv-reading p { display: grid; color: var(--iv-muted); }
.iv-reading p strong { color: var(--ink); font-weight: 650; }
.iv-ledger > p { justify-content: start; flex-wrap: wrap; padding-bottom: .52em; }
.iv-ledger > p span { margin-left: auto; }
.iv-ledger dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: .48em; border-top: 1px solid var(--iv-rule); }
.iv-ledger dl > div + div { border-left: 1px solid var(--iv-rule); padding-left: .85em; }
.iv-ledger dt { color: var(--iv-muted); font-size: var(--iv-small); }
.iv-ledger dd { color: var(--navy); font-size: 1.17em; font-weight: 670; line-height: 1.2; }
.iv-ledger dl > :last-child dd { color: var(--iv-positive); }

@container (min-width: 530px) and (min-height: 460px) {
  .iv-switch label > span { min-height: 44px; }
  .iv-history { grid-template-columns: 1fr auto; align-items: center; gap: .55em; }
  .iv-history figcaption { flex-direction: column; gap: .07em; }
  .iv-plot { grid-column: 1 / -1; }
  .iv-reading b span { display: inline; }
  .iv-reading p { padding-left: .7em; border-left: 1px solid var(--iv-rule); }
}
@container (max-width: 375px) {
  .iv-window { --iv-pad: 12px; --iv-gap: 8px; }
  .iv-allocation { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
  .iv-weights > div { padding-block: .39em; }
  .iv-modes .iv-switch { padding: 2px; }
  .iv-switch label > span { min-height: 34px; }
  .iv-trading-head { flex-wrap: wrap; }
  .iv-heading h4 { font-size: 22px; }
  .iv-symbols label > span { min-height: 27px; }
  .iv-reading { gap: .58em; }
  .iv-report { --iv-pad: 10px; --iv-gap: 4px; }
  .iv-report .iv-folio { padding-bottom: 4px; }
  .iv-report .iv-history { gap: .14em; }
  .iv-plot svg { height: 46px; }
  .iv-ref-key > span { min-height: 24px; }
  .iv-reading { padding-block: .3em; }
  .iv-ledger > p { padding-bottom: .24em; }
  .iv-ledger dl { padding-top: .25em; }
}
@container (max-width: 330px) {
  .iv-window.iv-modes { --iv-pad: 10px; --iv-gap: 6px; }
  .iv-weights > div { padding-block: .3em; }
  .iv-foot { padding-top: .45em; }
  .iv-report { grid-template-columns: minmax(0, 1fr) auto; column-gap: .3em; }
  .iv-report .iv-folio {
    grid-area: 1 / 1; align-items: start; flex-direction: column; justify-content: start;
    gap: 0; padding: 0; border: 0;
  }
  .iv-report .iv-folio b::before { display: none; }
  .iv-report .iv-balance { display: contents; }
  .iv-balance > div { grid-area: 1 / 2 / span 2; align-self: center; text-align: right; }
  .iv-balance p { grid-area: 2 / 1; justify-self: start; line-height: 1; }
  .iv-balance p span { display: none; }
  .iv-report :is(.iv-history, .iv-reading, .iv-ledger) { grid-column: 1 / -1; }
}
/* In the normal-flow landscape layout, honor both the masthead inset and
   readable sizes. A report may use document height, never an inner scrollbar. */
@media (max-height: 31.99rem) and (orientation: landscape) {
  [data-product-story]:not([data-story-mode]) .product-story-screen:is([data-story-screen="4"], [data-story-screen="5"]) {
    container-type: inline-size;
  }
  .iv-window { --iv-pad: 12px; --iv-gap: 8px; width: min(94cqw, 48rem); margin-block: 6px; }
  .iv-switch label > span { min-height: 32px; padding-inline: .15em; }
  .iv-weights > div { padding-block: .3em; }
  .iv-report { --iv-pad: 10px; --iv-gap: 4px; }
  .iv-report .iv-plot svg { height: clamp(48px, 13cqw, 74px); }
}
@media (max-height: 25rem) and (orientation: landscape) {
  .iv-report .iv-history { gap: .1em; }
  .iv-report .iv-plot svg { height: 43px; }
  .iv-report .iv-reading { padding-block: .2em; }
  .iv-report .iv-ledger > p { padding-bottom: .15em; }
  .iv-report .iv-ledger dl { padding-top: .15em; }
  .iv-report .iv-ref-key > span { min-height: 24px; }
}
@media (max-height: 22rem) and (orientation: landscape) {
  .iv-window.iv-modes { --iv-pad: 7px; --iv-gap: 3px; }
  .iv-modes .iv-folio { padding-bottom: 2px; }
  .iv-modes .iv-weights > div { padding-block: .15em; }
  .iv-modes .iv-foot { padding-top: 2px; }
  .iv-window.iv-report { --iv-pad: 7px; --iv-gap: 2px; }
  .iv-report .iv-plot svg { height: 39px; }
}
@media (forced-colors: active) {
  .iv-window input:checked + span { border-color: Highlight; }
  .iv-ring .iv-bond, .iv-return-line { stroke: CanvasText; }
  .iv-ring .iv-equity, .iv-benchmark-line { stroke: LinkText; }
  .iv-ring .iv-emerging { stroke: GrayText; }
}
@media (pointer: coarse) {
  .iv-switch label > span, .iv-symbols label > span { min-height: 44px; }
  .iv-ref-key input { top: 50%; height: max(100%, 44px); transform: translateY(-50%); }
}
