/* "Our story" page (FA). Calm, human, one blue; follows the site's light and dark tokens. */
.yv-story { --st-blue: #2554e8; --st-blue-soft: #eaf0fe; --st-ink: var(--yk-text, #10141f); --st-ink2: var(--yk-muted, #4b5363); --st-surface: var(--yk-surface, #fff); --st-bg: var(--yk-bg, #f6f7fa); --st-line: var(--yk-border, #dce0e8); color: var(--st-ink); font-size: 1.06rem; line-height: 2.05; overflow-x: clip; }
html[data-theme="dark"] .yv-story { --st-blue: #7098ff; --st-blue-soft: #1a2745; --st-ink: #f1f3f7; --st-ink2: #b8c0d0; --st-surface: #141a28; --st-bg: #0b0f1a; --st-line: #262f42; }
.yv-story * { box-sizing: border-box; }
.yv-story__wrap { width: min(1192px, 100% - 48px); margin-inline: auto; }
.yv-story__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 800; color: var(--st-blue); letter-spacing: .02em; }
.yv-story__kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* hero */
.yv-story__hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.yv-story__hero::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(37, 84, 232, .16), transparent 70%); pointer-events: none; }
.yv-story__hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.yv-story h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.35; font-weight: 800; letter-spacing: -.01em; margin: 18px 0 20px; text-wrap: balance; }
.yv-story h1 em { font-style: normal; color: var(--st-blue); }
.yv-story__lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--st-ink2); max-width: 36em; margin: 0 0 28px; }
.yv-story__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.yv-story__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 15px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.yv-story__btn--primary { background: var(--st-blue); color: #fff; box-shadow: 0 14px 30px rgba(37, 84, 232, .28); }
.yv-story__btn--ghost { background: var(--st-surface); color: var(--st-ink); border: 1px solid var(--st-line); }
.yv-story__btn:hover { transform: translateY(-2px); }
.yv-story__orbit { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto 0; }
.yv-story__orbit svg { width: 100%; height: 100%; display: block; overflow: visible; }
.yv-story__ring { fill: none; stroke: var(--st-blue); stroke-opacity: .18; stroke-width: 1.4; }
.yv-story__spin { transform-origin: 50% 50%; animation: yv-story-spin 60s linear infinite; }
.yv-story__spin--rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes yv-story-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .yv-story__spin { animation: none; } }

/* chapters */
.yv-story__chapters { padding: clamp(24px, 4vw, 56px) 0; }
.yv-story__chapter { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--st-line); }
.yv-story__chapter h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.6; font-weight: 800; margin: 0; }
.yv-story__chapter p { margin: 0 0 1em; color: var(--st-ink2); max-width: 40em; }
.yv-story__chapter p:last-child { margin-bottom: 0; }
.yv-story__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.yv-story__chips span { padding: 6px 16px; border-radius: 999px; background: var(--st-surface); border: 1px solid var(--st-line); font-size: .92rem; font-weight: 700; color: var(--st-ink2); }
.yv-story__chips span:nth-child(3n) { transform: translateY(6px); }
.yv-story__chips span:nth-child(3n+1) { transform: translateY(-4px); }
.yv-story__merge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.yv-story__merge-card { display: grid; gap: 4px; padding: 16px 22px; border-radius: 20px; color: #fff; background: linear-gradient(155deg, #2a57d8, #1f46b8 55%, #173a9f); box-shadow: 0 16px 36px rgba(37, 84, 232, .26); }
.yv-story__merge-card small { opacity: .8; font-size: .8rem; line-height: 1.5; }
.yv-story__merge-card b { font-size: 1.5rem; line-height: 1.4; font-weight: 800; }
.yv-story__arrow { color: var(--st-blue); font-size: 1.6rem; }

/* can / cannot */
.yv-story__dos { padding: clamp(24px, 4vw, 56px) 0; }
.yv-story__dos h2, .yv-story__values h2, .yv-story__cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.5; font-weight: 800; margin: 12px 0 28px; text-wrap: balance; }
.yv-story__dos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.yv-story__panel { padding: clamp(22px, 3vw, 34px); border-radius: 26px; background: var(--st-surface); border: 1px solid var(--st-line); }
.yv-story__panel--yes { background: var(--st-blue-soft); border-color: transparent; }
.yv-story__panel h3 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; }
.yv-story__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.yv-story__panel li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; line-height: 1.8; }
.yv-story__panel svg { width: 26px; height: 26px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yv-story__panel--yes svg { color: var(--st-blue); }
.yv-story__panel--no svg { color: #b93232; }
html[data-theme="dark"] .yv-story__panel--no svg { color: #ff8f8f; }

/* values */
.yv-story__values { padding: clamp(24px, 4vw, 56px) 0; }
.yv-story__values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.yv-story__value { padding: 28px; border-radius: 26px; background: var(--st-surface); border: 1px solid var(--st-line); box-shadow: 0 1px 2px rgba(16, 20, 31, .04), 0 14px 36px rgba(16, 20, 31, .05); }
.yv-story__value-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--st-blue-soft); color: var(--st-blue); margin-bottom: 16px; }
.yv-story__value-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.yv-story__value h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.yv-story__value p { margin: 0; color: var(--st-ink2); line-height: 1.95; }

/* letter */
.yv-story__letter { padding: clamp(32px, 5vw, 72px) 0; }
.yv-story__letter-card { position: relative; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--st-surface); border: 1px solid var(--st-line); }
.yv-story__letter-card::before { content: "«"; position: absolute; inset-inline-start: clamp(18px, 3vw, 40px); top: -6px; font-size: 6rem; line-height: 1; color: var(--st-blue); opacity: .22; font-weight: 800; }
.yv-story__letter-card p { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 2.1; font-weight: 600; margin: 0 0 1em; max-width: 34em; }
.yv-story__sign { margin-top: 22px; font-size: .95rem !important; color: var(--st-ink2); font-weight: 700 !important; }

/* closing */
.yv-story__cta { padding: 0 0 clamp(56px, 8vw, 110px); }
.yv-story__cta-card { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px); border-radius: 34px; color: #fff; background: linear-gradient(155deg, #2a57d8, #1f46b8 55%, #173a9f); box-shadow: 0 26px 60px rgba(37, 84, 232, .28); }
.yv-story__cta-card::after { content: ""; position: absolute; inset: auto auto -140px -100px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.yv-story__cta-card h2 { color: #fff; margin: 0 0 12px; }
.yv-story__cta-card p { margin: 0 0 24px; max-width: 34em; color: rgba(235, 242, 255, .92); }
.yv-story__btn--light { background: #fff; color: #1b3fa8; }

@media (max-width: 900px) {
  .yv-story__hero-grid, .yv-story__chapter, .yv-story__dos-grid, .yv-story__values-grid { grid-template-columns: 1fr; }
  .yv-story__orbit { width: min(78%, 320px); order: -1; }
}

.yv-story__crumbs { font-size: .88rem; color: var(--st-ink2); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.yv-story__crumbs a { color: inherit; text-decoration: none; }
.yv-story__crumbs a:hover { color: var(--st-blue); }
a.yv-story__value { display: block; transition: transform .18s ease, box-shadow .18s ease; }
a.yv-story__value:hover { transform: translateY(-3px); }

/* ---- Tools hub and tool pages: the six tools sit on the logo's Y ---- */
.yv-tools { --ty-a: #14275f; --ty-b: #2554e8; --ty-c: #6f9bff; --ty-d: #2a57d8; }
html[data-theme="dark"] .yv-tools { --ty-a: #3a5cc9; --ty-b: #7ea0ff; --ty-c: #a9c3ff; --ty-d: #5b87ff; }
.yv-tt { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--t1), var(--t2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 8px 18px color-mix(in srgb, var(--t2) 32%, transparent); }
.yv-tt svg { width: 25px; height: 25px; }
.yv-tools__hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 5vw, 64px); align-items: center; }
.yv-tools__copy { min-width: 0; }
.yv-tools h1 { max-width: 15em; }
.yv-ty { position: relative; width: min(100%, 420px); aspect-ratio: 480 / 520; margin-inline: auto; color: var(--st-ink); }
.yv-ty__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.yv-ty__rings { opacity: .1; stroke-width: 1.5; }
.yv-ty__node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; justify-items: center; text-decoration: none; color: inherit; transition: transform .2s ease; }
.yv-ty__node:hover, .yv-ty__node:focus-visible { transform: scale(1.08); outline: none; }
.yv-ty__node:focus-visible .yv-tt { outline: 3px solid color-mix(in srgb, var(--st-blue) 50%, transparent); outline-offset: 3px; }
.yv-tt--node { width: 54px; height: 54px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 12px 26px rgba(14, 24, 70, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.yv-tt--node svg { width: 27px; height: 27px; }
.yv-ty__label { position: absolute; top: 50%; margin-top: -13px; padding: 3px 11px; border-radius: 999px; white-space: nowrap; font-size: .78rem; line-height: 1.8; font-weight: 800; background: color-mix(in srgb, var(--st-surface) 94%, transparent); box-shadow: 0 6px 16px rgba(16, 20, 31, .14); }
.yv-ty__node--l .yv-ty__label { right: calc(100% + 10px); }
.yv-ty__node--r .yv-ty__label { left: calc(100% + 10px); }
.yv-ty__node.is-current .yv-tt--node { width: 66px; height: 66px; border-radius: 22px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-blue) 24%, transparent), 0 14px 30px rgba(14, 24, 70, .34); }
.yv-ty__node.is-current .yv-ty__label { background: var(--st-blue); color: #fff; }

.yv-tools__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.yv-tools__card { display: grid; align-content: start; gap: 8px; padding: 26px; border-radius: 26px; background: var(--st-surface); border: 1px solid var(--st-line); box-shadow: 0 1px 2px rgba(16, 20, 31, .04), 0 14px 36px rgba(16, 20, 31, .05); text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.yv-tools__card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16, 20, 31, .05), 0 22px 44px rgba(16, 20, 31, .1); }
.yv-tools__card .yv-tt { margin-bottom: 8px; }
.yv-tools__card h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.yv-tools__card p { margin: 0; color: var(--st-ink2); line-height: 1.95; font-size: .98rem; }
.yv-tools__more { margin-top: 8px; color: var(--st-blue); font-weight: 800; font-size: .92rem; }
.yv-tools__card:focus-visible { outline: 3px solid color-mix(in srgb, var(--st-blue) 50%, transparent); outline-offset: 3px; }

.yv-tools__feat { position: relative; padding-inline-start: 28px; }
.yv-tools__num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; color: #fff; font-weight: 900; font-size: 1.1rem; background: linear-gradient(145deg, var(--t1), var(--t2)); box-shadow: 0 8px 18px color-mix(in srgb, var(--t2) 30%, transparent); }

.yv-tool-steps { padding: clamp(24px, 4vw, 56px) 0; }
.yv-tool-steps h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.5; font-weight: 800; margin: 12px 0 28px; }
.yv-tool-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; position: relative; }
.yv-tool-steps__list::before { content: ""; position: absolute; inset-inline: 12% 12%; top: 29px; height: 2px; background: repeating-linear-gradient(90deg, var(--st-line) 0 8px, transparent 8px 16px); }
.yv-tool-steps__list li { position: relative; display: grid; justify-items: start; gap: 8px; }
.yv-tool-steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; color: #fff; font-size: 1.4rem; font-weight: 900; background: linear-gradient(145deg, var(--t1), var(--t2)); box-shadow: 0 12px 26px color-mix(in srgb, var(--t2) 32%, transparent); margin-bottom: 8px; }
.yv-tool-steps h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.yv-tool-steps p { margin: 0; color: var(--st-ink2); line-height: 1.95; max-width: 26em; }

.yv-tools__faq { display: grid; gap: 12px; max-width: 820px; }
.yv-tools__faq details { padding: 4px 24px; border-radius: 20px; background: var(--st-surface); border: 1px solid var(--st-line); }
.yv-tools__faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 0 18px 40px; font-weight: 800; line-height: 1.8; }
.yv-tools__faq summary::-webkit-details-marker { display: none; }
.yv-tools__faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--st-blue-soft); color: var(--st-blue); font-size: 1.1rem; font-weight: 800; }
.yv-tools__faq details[open] summary::after { content: "−"; }
.yv-tools__faq summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--st-blue) 50%, transparent); outline-offset: 2px; border-radius: 8px; }
.yv-tools__faq details p { margin: 0 0 18px; color: var(--st-ink2); line-height: 2; }

@media (max-width: 900px) {
  .yv-tools__hero { grid-template-columns: minmax(0, 1fr); }
  .yv-ty { width: min(100%, 360px); }
  .yv-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yv-tool-steps__list { grid-template-columns: minmax(0, 1fr); }
  .yv-tool-steps__list::before { display: none; }
}
@media (max-width: 620px) {
  .yv-tools__grid { grid-template-columns: minmax(0, 1fr); }
  .yv-tt--node { width: 46px; height: 46px; border-radius: 15px; }
  .yv-tt--node svg { width: 23px; height: 23px; }
  .yv-ty__node.is-current .yv-tt--node { width: 56px; height: 56px; }
  .yv-ty__label { font-size: .7rem; padding: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) { .yv-ty__node, .yv-tools__card { transition: none; } }

/* ---- Live tools: prices, fund comparison, calculator, sample portfolios ---- */
.yv-tools__sub { margin: 40px 0 16px; font-size: 1.3rem; font-weight: 800; }
.yv-live__stamp { margin: 0 0 18px; color: var(--st-ink2); font-size: .92rem; }
.yv-live__empty { padding: 18px 20px; border-radius: 16px; background: var(--st-surface); border: 1px dashed var(--st-line); color: var(--st-ink2); }
.yv-live__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.yv-live__card { padding: 22px; border-radius: 26px; background: var(--st-surface); border: 1px solid var(--st-line); box-shadow: 0 1px 2px rgba(16, 20, 31, .04), 0 14px 36px rgba(16, 20, 31, .05); margin-bottom: 18px; }
.yv-live__groups .yv-live__card { margin-bottom: 0; }
.yv-live__card h2 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; }
.yv-live__lead { margin: 0 0 14px; color: var(--st-ink2); line-height: 1.95; font-size: .96rem; }
.yv-live__scroll { overflow-x: auto; }
.yv-live__table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.yv-live__table th, .yv-live__table td { padding: 11px 8px; text-align: right; border-bottom: 1px solid var(--st-line); vertical-align: middle; }
.yv-live__table thead th { color: var(--st-ink2); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.yv-live__table tbody th { font-weight: 700; }
.yv-live__table td { white-space: nowrap; }
.yv-live__table small { color: var(--st-ink2); font-weight: 500; }
.yv-live__table--funds th[data-num] { cursor: pointer; user-select: none; }
.yv-live__table--funds th[data-num]::after { content: " ↕"; opacity: .45; }
.yv-live__name { color: var(--st-ink2); white-space: normal !important; min-width: 180px; }
.yv-live__table td.is-up { color: #0e8f63; font-weight: 800; }
.yv-live__table td.is-down { color: #c23b3b; font-weight: 800; }
.yv-live__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.yv-live__tabs a { padding: 8px 16px; border-radius: 999px; background: var(--st-surface); border: 1px solid var(--st-line); color: inherit; text-decoration: none; font-weight: 700; font-size: .92rem; }
.yv-live__tabs a:hover { border-color: var(--st-blue); color: var(--st-blue); }
.yv-live__note { margin: 6px 0 26px; padding: 18px 22px; border-radius: 20px; background: var(--st-blue-soft); }
.yv-live__note p { margin: 6px 0 0; color: var(--st-ink2); line-height: 2; }
.yv-live__note a { color: var(--st-blue); font-weight: 800; }
.yv-live__faq { margin-top: 28px; }

.yv-calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.yv-calc__card { padding: 24px; border-radius: 26px; background: var(--st-surface); border: 1px solid var(--st-line); box-shadow: 0 1px 2px rgba(16, 20, 31, .04), 0 14px 36px rgba(16, 20, 31, .05); }
.yv-calc__card h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; }
.yv-calc__grid { display: grid; gap: 12px; margin: 14px 0; }
.yv-calc__grid label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.yv-calc__grid input { min-height: 50px; padding: 0 14px; font: inherit; font-size: 1rem; border-radius: 14px; border: 1.5px solid var(--st-line); background: var(--st-bg); color: inherit; direction: ltr; text-align: right; }
.yv-calc__grid input:focus { outline: none; border-color: var(--st-blue); box-shadow: 0 0 0 4px rgba(37, 84, 232, .14); }
.yv-calc__grid .yv-calc__check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.yv-calc__grid .yv-calc__check input { min-height: 0; width: 20px; height: 20px; padding: 0; accent-color: var(--st-blue); }
.yv-calc__out { display: grid; gap: 10px; margin: 16px 0 8px; }
.yv-calc__out > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: 14px; background: var(--st-blue-soft); }
.yv-calc__out dt { color: var(--st-ink2); font-size: .9rem; }
.yv-calc__out dd { margin: 0; font-weight: 800; font-size: 1.05rem; }
.yv-calc__hint { margin: 6px 0 0; color: var(--st-ink2); font-size: .85rem; line-height: 1.9; }

.yv-sample__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; margin-bottom: 18px; }
.yv-sample__donut { width: 150px; height: 150px; margin: 8px auto 16px; border-radius: 50%; -webkit-mask: radial-gradient(circle 46px at center, transparent 98%, #000 100%); mask: radial-gradient(circle 46px at center, transparent 98%, #000 100%); }
.yv-sample__legend { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.yv-sample__legend li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.yv-sample__legend i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.yv-sample__legend b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.yv-sample p { margin: 0 0 10px; color: var(--st-ink2); line-height: 1.95; font-size: .95rem; }

html[data-theme="dark"] .yv-calc__grid input { background: #0b0f1a; }
@media (max-width: 900px) {
  .yv-live__groups, .yv-sample__grid, .yv-calc { grid-template-columns: minmax(0, 1fr); }
}

/* Payout-day calculator: before and after side by side */
.yv-calc__compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.yv-calc__col { padding: 14px; border-radius: 16px; background: var(--st-blue-soft); }
.yv-calc__col h3 { margin: 0 0 8px; font-size: .95rem; font-weight: 800; }
.yv-calc__col dl { margin: 0; display: grid; gap: 8px; }
.yv-calc__col dl > div { display: grid; gap: 2px; }
.yv-calc__col dt { color: var(--st-ink2); font-size: .8rem; }
.yv-calc__col dd { margin: 0; font-weight: 800; font-size: .98rem; }
.yv-calc__verdict { margin: 10px 0 4px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #0e8f63 12%, transparent); color: var(--st-ink); line-height: 1.95; font-weight: 600; }
@media (max-width: 520px) { .yv-calc__compare { grid-template-columns: minmax(0, 1fr); } }

/* fund pages (/funds/, /funds/<symbol>/) */
.yv-fund__hero { padding-bottom: clamp(16px, 3vw, 36px); }
.yv-fund h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.yv-fund__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 720px) { .yv-fund__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yv-fund__stat { padding: 14px; } .yv-fund__stat strong { font-size: 1.2rem; } }
.yv-fund__stat { display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--st-surface); border: 1px solid var(--st-line); }
.yv-fund__stat span { color: var(--st-ink2); font-size: .82rem; line-height: 1.7; }
.yv-fund__stat strong { font-size: 1.45rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.yv-fund__stat small { color: var(--st-ink2); font-weight: 400; }
.yv-fund .is-up { color: #12805c; }
.yv-fund .is-down { color: #c0392b; }
html[data-theme="dark"] .yv-fund .is-up { color: #3ddc97; }
html[data-theme="dark"] .yv-fund .is-down { color: #ff7b72; }
.yv-fund__chart { margin: 0; }
.yv-fund__chart svg { display: block; width: 100%; height: auto; }
.yv-fund__area { fill: var(--st-blue); fill-opacity: .1; stroke: none; }
.yv-fund .yv-tools__faq { max-width: none; }
.yv-fund__line { fill: none; stroke: var(--st-blue); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.yv-fund__dot { fill: var(--st-blue); stroke: var(--st-surface); stroke-width: 2; }
.yv-fund__chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; color: var(--st-ink2); font-size: .85rem; }
.yv-fund__h2 { font-size: 1.15rem; font-weight: 800; margin: 28px 0 12px; }
.yv-fund .yv-tools__faq { margin-bottom: 8px; }
.yv-live__table th a { color: var(--st-blue); font-weight: 800; text-decoration: none; }
.yv-live__table th a:hover { text-decoration: underline; }
.yv-fund .yv-live__card .yv-story__btn { margin-inline-end: 10px; margin-top: 6px; }
.yv-fund__facts { margin: 0 0 14px; padding-inline-start: 1.2em; display: grid; gap: 6px; color: var(--st-ink2); line-height: 1.95; }
.yv-fund__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.yv-fund__cat { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 20px 18px; border-radius: 22px; background: var(--st-surface); border: 1px solid var(--st-line); color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.yv-fund__cat:hover { transform: translateY(-2px); border-color: var(--t2, var(--st-blue)); }
.yv-fund__cat-dot { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, var(--t1), var(--t2)); }
.yv-fund__cat h2 { margin: 6px 0 0; font-size: 1.1rem; font-weight: 800; line-height: 1.6; }
.yv-fund__cat p { margin: 0; color: var(--st-ink2); font-size: .93rem; line-height: 1.9; }
.yv-fund__cat-more { margin-top: 6px; font-weight: 800; font-size: .9rem; color: var(--st-blue); }

/* Tool pages: only the home page carries the Y; the hero is text only. */
.yv-tools__hero { grid-template-columns: minmax(0, 1fr); }
.yv-tools__copy { max-width: 46rem; }

.yv-calc__picker { display: grid; gap: 8px; margin-bottom: 18px; padding: 18px 20px; border-radius: 22px; background: var(--st-surface); border: 1px solid var(--st-line); }
.yv-calc__picker label { font-weight: 800; line-height: 1.8; }
.yv-calc__picker select { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--st-line); background: var(--st-bg); color: inherit; font: inherit; }
.yv-calc__picker .yv-calc__hint { margin: 0; }
.yv-calc__picker { min-width: 0; max-width: 100%; box-sizing: border-box; }
.yv-calc__picker select { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.yv-calc__picker .yv-calc__hint { overflow-wrap: anywhere; }
@media (max-width: 720px) { .yv-story__orbit { display: none; } .yv-story__hero { padding-top: 40px; } }
.yv-fund__compare { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; padding: 18px 22px; border-radius: 22px; background: var(--st-blue-soft); color: inherit; text-decoration: none; border: 1px solid var(--st-line); }
.yv-fund__compare strong { font-size: 1.05rem; }
.yv-fund__compare span:nth-child(2) { flex: 1 1 260px; color: var(--st-ink2); }
.yv-fund__compare span:last-child { color: var(--st-blue); font-weight: 800; }

/* fund profit calculator (v2) */
.yv-fc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; align-items: start; }
.yv-fc__form { display: grid; gap: 14px; min-width: 0; }
.yv-fc__step { margin: 0; padding: 20px; border-radius: 24px; background: var(--st-surface); border: 1px solid var(--st-line); display: grid; gap: 12px; min-width: 0; }
.yv-fc__step legend { padding: 0; font-weight: 800; font-size: 1.05rem; float: right; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.yv-fc__step > * { clear: both; }
.yv-fc__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; background: var(--st-blue-soft); color: var(--st-blue); font-weight: 800; font-size: .9rem; }
.yv-fc label { font-weight: 700; font-size: .9rem; }
.yv-fc input[type="search"], .yv-fc input:not([type="checkbox"]) { width: 100%; box-sizing: border-box; min-height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--st-line); background: var(--st-bg); color: inherit; font: inherit; font-size: 1rem; }
.yv-fc input:focus-visible, .yv-fc button:focus-visible, .yv-fc summary:focus-visible, .yv-fc__list li:focus-visible { outline: 3px solid color-mix(in srgb, var(--st-blue) 50%, transparent); outline-offset: 2px; }
.yv-fc__search { position: relative; }
.yv-fc__list { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow: auto; border-radius: 16px; background: var(--st-surface); border: 1px solid var(--st-line); box-shadow: 0 18px 40px rgba(16, 20, 31, .16); }
.yv-fc__list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.yv-fc__list li:hover, .yv-fc__list li:focus-visible { background: var(--st-blue-soft); }
.yv-fc__list li span { font-size: .82rem; color: var(--st-ink2); }
.yv-fc__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yv-fc__chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--st-line); background: var(--st-bg); color: inherit; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.yv-fc__chip:hover { border-color: var(--st-blue); }
.yv-fc__chip.is-on { background: var(--st-blue); border-color: var(--st-blue); color: #fff; }
.yv-fc__picked { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--st-blue-soft); }
.yv-fc__picked span { font-size: .85rem; color: var(--st-ink2); }
.yv-fc__seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--st-bg); border: 1px solid var(--st-line); }
.yv-fc__seg button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.yv-fc__seg button[aria-checked="true"] { background: var(--st-surface); color: var(--st-blue); box-shadow: 0 2px 8px rgba(16, 20, 31, .12); }
.yv-fc__more, .yv-fc__payout { padding: 4px 20px; border-radius: 22px; background: var(--st-surface); border: 1px solid var(--st-line); }
.yv-fc__more summary, .yv-fc__payout summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 800; }
.yv-fc__more summary::-webkit-details-marker, .yv-fc__payout summary::-webkit-details-marker { display: none; }
.yv-fc__grid { display: grid; gap: 12px; margin: 4px 0 16px; }
.yv-fc__grid > div { display: grid; gap: 6px; }
.yv-fc__check { display: flex; align-items: center; gap: 10px; }
.yv-fc__check input { width: 20px; height: 20px; min-height: 0; }
.yv-fc__payout { margin-top: 18px; }
.yv-fc__payoutnote { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--st-blue-soft); color: var(--st-ink2); }
.yv-fc__payoutnote:empty { display: none; }
.yv-fc__result { position: sticky; top: 90px; padding: 26px; border-radius: 28px; color: #fff; background: linear-gradient(155deg, #2a57d8, #1f46b8 55%, #173a9f); box-shadow: 0 22px 50px rgba(37, 84, 232, .28); display: grid; gap: 10px; min-width: 0; }
.yv-fc__tag { margin: 0; opacity: .85; font-size: .95rem; }
.yv-fc__final { margin: 0; font-size: clamp(1.7rem, 4.6vw, 2.5rem); font-weight: 900; line-height: 1.4; font-variant-numeric: tabular-nums; }
.yv-fc__gain { margin: 0; font-weight: 800; font-size: 1.05rem; color: #b9f5d8; font-variant-numeric: tabular-nums; }
.yv-fc__gain small { font-weight: 600; opacity: .9; }
.yv-fc__chart { width: 100%; height: 110px; display: block; }
.yv-fc__area { fill: rgba(255, 255, 255, .16); }
.yv-fc__line { fill: none; stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.yv-fc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.yv-fc__facts div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.yv-fc__facts dt { font-size: .8rem; opacity: .85; }
.yv-fc__facts dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.yv-fc__basis { margin: 0; font-size: .88rem; line-height: 1.9; opacity: .95; }
.yv-fc__warn { margin: 0; font-size: .8rem; opacity: .75; line-height: 1.8; }
@media (max-width: 900px) { .yv-fc { grid-template-columns: minmax(0, 1fr); } .yv-fc__result { position: static; } }
.yv-story .yv-fc__result p, .yv-story .yv-fc__result dd, .yv-story .yv-fc__result dt, .yv-story .yv-fc__result small { color: #fff; }
.yv-story .yv-fc__result .yv-fc__gain { color: #b9f5d8; }
.yv-story .yv-fc__tag { opacity: .9; }
.yv-story .yv-fc__warn { opacity: .78; }
.yv-story .yv-fc__result .yv-fc__final { margin: 0; line-height: 1.4; }
.yv-fc + .yv-fc__payout, .yv-fc__payout + .yv-tools__faq { max-width: none; }
.yv-fc__payout .yv-live__lead { margin: 0 0 12px; }
/* calculator v3: own duration, chart axis, units and cash-per-payout facts */
.yv-fc__own-months { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.yv-fc__own-months label { margin: 0; font-size: .9rem; }
.yv-fc__own-months input { width: 7.5em; min-width: 0; }
.yv-story .yv-fc__result .yv-fc__axis { display: flex; justify-content: space-between; gap: 8px; margin: -4px 0 4px; font-size: .78rem; color: #fff; opacity: .8; }
.yv-fc__facts div[hidden] { display: none; }
/* calculator v3.1: amount in words, rates on chips, assumptions summary, labelled chart ends, fund link, CTA */
.yv-fc__words { margin: -4px 0 0; min-height: 1.5em; font-size: .85rem; font-weight: 700; color: var(--st-blue); }
.yv-fc__chips--grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.yv-fc__chips--grid .yv-fc__chip { justify-content: center; padding-inline: 6px; }
@media (max-width: 520px) { .yv-fc__chips--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yv-fc__chip small { font-size: .78em; font-weight: 700; opacity: .75; }
.yv-fc__chip.is-on small { opacity: .9; }
.yv-fc__picked-link { font-size: .85rem; font-weight: 700; color: var(--st-blue); text-decoration: none; }
.yv-fc__picked-link:hover { text-decoration: underline; }
.yv-fc__more summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.yv-fc__more summary::-webkit-details-marker { display: none; }
.yv-fc__more summary small { font-size: .82rem; font-weight: 600; color: var(--st-ink2); }
.yv-fc__more summary::after { content: "⌄"; font-size: 1.1rem; color: var(--st-ink2); transition: transform .15s ease; }
.yv-fc__more[open] summary::after { transform: rotate(180deg); }
.yv-story .yv-fc__result .yv-fc__axis b { font-weight: 800; }
.yv-fc__facts .yv-fc__fact-wide { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.yv-story .yv-fc__result .yv-fc__cta { display: block; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #1f46b8; font-weight: 800; text-align: center; text-decoration: none; }
.yv-story .yv-fc__result .yv-fc__cta:hover { background: #eaf0fe; }
.yv-story .yv-fc__result .yv-fc__axis > span { display: grid; gap: 1px; }
.yv-story .yv-fc__result .yv-fc__axis > span:last-child { text-align: left; }
.yv-story .yv-fc__result .yv-fc__axis small { font-size: .74rem; opacity: .85; }
.yv-fc__more summary { flex-wrap: wrap; }
.yv-fc__more summary span { flex: 1 1 auto; }
.yv-fc__more summary small { order: 3; flex-basis: 100%; }
.yv-story .yv-fc__result .yv-fc__facts dd { white-space: nowrap; font-size: 1.02rem; }
/* calculator: sticky result bar on phones while the result card is off screen */
.yv-fc__bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(155deg, #2a57d8, #1f46b8 60%, #173a9f); color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgba(31, 70, 184, .35); }
.yv-fc__bar[hidden] { display: none; }
.yv-fc__bar > span:first-child { display: grid; gap: 1px; min-width: 0; }
.yv-fc__bar small { font-size: .78rem; opacity: .85; }
.yv-fc__bar strong { font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yv-fc__bar-go { flex: none; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 700; }
@media (min-width: 901px) { .yv-fc__bar { display: none !important; } }
/* calculator v4 (2026-10-23): no floating bar (it jumped around); on phones the result comes right after «چقدر و تا کی؟»
   and before the assumptions; the result card is light with a blue accent instead of a solid blue block. */
.yv-fc__bar { display: none !important; }
.yv-fc__result-title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--st-blue); display: flex; align-items: center; gap: 8px; }
.yv-fc__result-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #34c98a; }
.yv-story .yv-fc__result { background: var(--st-surface); color: var(--st-ink); border: 1.5px solid color-mix(in srgb, var(--st-blue) 35%, var(--st-line)); box-shadow: 0 1px 2px rgba(16, 20, 31, .04), 0 16px 40px rgba(37, 84, 232, .10); }
.yv-story .yv-fc__result p, .yv-story .yv-fc__result dd, .yv-story .yv-fc__result dt, .yv-story .yv-fc__result small { color: inherit; }
.yv-story .yv-fc__result .yv-fc__tag { color: var(--st-ink2); opacity: 1; }
.yv-story .yv-fc__result .yv-fc__final { color: var(--st-blue); }
.yv-story .yv-fc__result .yv-fc__gain { color: #0e8f63; }
.yv-story .yv-fc__result .yv-fc__basis, .yv-story .yv-fc__result .yv-fc__warn { color: var(--st-ink2); opacity: 1; }
.yv-story .yv-fc__result .yv-fc__axis { color: var(--st-ink2); opacity: 1; }
.yv-story .yv-fc__result .yv-fc__area { fill: color-mix(in srgb, var(--st-blue) 14%, transparent); }
.yv-story .yv-fc__result .yv-fc__line { stroke: var(--st-blue); }
.yv-story .yv-fc__result .yv-fc__facts div { background: var(--st-bg); border: 1px solid var(--st-line); }
.yv-story .yv-fc__result .yv-fc__facts dt { color: var(--st-ink2); opacity: 1; }
.yv-story .yv-fc__result .yv-fc__cta { background: var(--st-blue); color: #fff; }
.yv-story .yv-fc__result .yv-fc__cta:hover { background: #1b3fb8; color: #fff; }
/* Phone: one column in reading order — fill the form, press «محاسبه کن», the result is right below; assumptions after it. */
@media (max-width: 900px) {
	.yv-fc { display: flex; flex-direction: column; }
}
/* «محاسبه کن» button and the short highlight of the result it brings into view */
.yv-fc__go { width: 100%; min-height: 52px; margin-top: 6px; border: 0; border-radius: 16px; background: var(--st-blue); color: #fff; font: inherit; font-size: 1.05rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(37, 84, 232, .25); }
.yv-fc__go:hover { background: #1b3fb8; }
.yv-fc__go:focus-visible { outline: 3px solid color-mix(in srgb, var(--st-blue) 45%, transparent); outline-offset: 3px; }
.yv-fc__result { scroll-margin-top: 84px; }
.yv-fc__result:focus { outline: none; }
.yv-story .yv-fc__result.is-flash { animation: yv-fc-flash 1.1s ease-out; }
@keyframes yv-fc-flash { 0% { box-shadow: 0 0 0 0 rgba(37, 84, 232, .45); } 40% { box-shadow: 0 0 0 10px rgba(37, 84, 232, .18); } 100% { box-shadow: 0 1px 2px rgba(16, 20, 31, .04), 0 16px 40px rgba(37, 84, 232, .10); } }
@media (prefers-reduced-motion: reduce) { .yv-story .yv-fc__result.is-flash { animation: none; } }

/* desktop: the assumptions (now after the result in the page) sit under the form column */
@media (min-width: 901px) { .yv-fc > .yv-fc__more { grid-column: 1; } }
/* calculator: the result only changes on «محاسبه کن»; while inputs differ from the shown result it is dimmed with a note */
.yv-story .yv-fc__result .yv-fc__stale { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff6e0; color: #8a5a00; font-size: .85rem; font-weight: 700; line-height: 1.8; }
html[data-theme="dark"] .yv-story .yv-fc__result .yv-fc__stale { background: #3a2d14; color: #efc07a; }
.yv-fc__result.is-stale .yv-fc__final, .yv-fc__result.is-stale .yv-fc__tag, .yv-fc__result.is-stale .yv-fc__basis, .yv-fc__result.is-stale .yv-fc__gain, .yv-fc__result.is-stale .yv-fc__chart, .yv-fc__result.is-stale .yv-fc__facts, .yv-fc__result.is-stale .yv-fc__axis { opacity: .4; transition: opacity .15s ease; }
