/*@pf start style id=pf-text-size */

/* Text size (Settings > Text size).
   Every font-size in the app is written as calc(Npx * var(--pf-ts, 1)), so one number scales all the text.
   js/run-36.js sets data-ts on <html> to one of the steps below and stores it in localStorage as "pf-ts".
   Layout, icons and spacing stay the same; only text grows or shrinks. */
:root { --pf-ts: 1; }
:root[data-ts="85"]  { --pf-ts: .85; }
:root[data-ts="90"]  { --pf-ts: .9; }
:root[data-ts="110"] { --pf-ts: 1.1; }
:root[data-ts="120"] { --pf-ts: 1.2; }
:root[data-ts="130"] { --pf-ts: 1.3; }

/* anything that has no font-size of its own inherits from here */
html { font-size: calc(16px * var(--pf-ts, 1)); }

/* the account cards at the top of the portfolio are a fixed 170px wide; let them grow with the text so names are not cut off */
html .rha-card { width: calc(170px * var(--pf-ts, 1)); }

/* ---- Text size screen (inside the App appearance page) ---- */
#pfAppearancePage.ap-ts .ap-prev { display: none; }

#pfAppearancePage .ts-prev {
  margin: 14px 0 0; padding: 22px 20px 24px; border-radius: 18px;
  background: var(--ap-pane); border: 1px solid var(--ap-line);
}
#pfAppearancePage .ts-k { font-size: calc(13px * var(--pf-ts, 1)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#pfAppearancePage .ts-amt {
  margin-top: 10px; font-family: "Capsule Sans Display", "Capsule Sans Text", Inter, system-ui, sans-serif;
  font-size: calc(34px * var(--pf-ts, 1)); line-height: 1.15; font-weight: 500; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
#pfAppearancePage .ts-chg { margin-top: 6px; font-size: calc(16px * var(--pf-ts, 1)); line-height: 1.3; font-weight: 600; color: var(--green-ink); font-variant-numeric: tabular-nums; }
#pfAppearancePage .ts-p { margin-top: 14px; font-size: calc(15px * var(--pf-ts, 1)); line-height: 1.45; color: var(--muted); }

/* the two "A"s and the slider keep a fixed size on purpose, so the control never moves while you drag it */
#pfAppearancePage .ts-ctl { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
#pfAppearancePage .ts-a { flex: none; width: 24px; text-align: center; font-family: "Capsule Sans Text", Inter, system-ui, sans-serif; font-weight: 500; line-height: 1; color: var(--text); user-select: none; -webkit-user-select: none; }
#pfAppearancePage .ts-a.s { font-size: 14px; }
#pfAppearancePage .ts-a.l { font-size: 28px; }
#pfAppearancePage .ts-rng { position: relative; flex: 1; min-width: 0; }
#pfAppearancePage .ts-ticks { position: absolute; left: 14px; right: 14px; top: 50%; height: 14px; margin-top: -7px; display: flex; justify-content: space-between; pointer-events: none; }
#pfAppearancePage .ts-ticks i { display: block; width: 2px; height: 14px; border-radius: 1px; background: var(--ap-line); }
#pfAppearancePage .ts-range {
  -webkit-appearance: none; appearance: none; position: relative; z-index: 1; display: block;
  width: 100%; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: pan-y;
}
#pfAppearancePage .ts-range:focus { outline: none; }
#pfAppearancePage .ts-range:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 10px; }
#pfAppearancePage .ts-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--ap-line); }
#pfAppearancePage .ts-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--ap-line); }
#pfAppearancePage .ts-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -12px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.4);
}
#pfAppearancePage .ts-range::-moz-range-thumb {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.4);
}
#pfAppearancePage .ts-val { margin-top: 6px; text-align: center; font-size: calc(15px * var(--pf-ts, 1)); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
#pfAppearancePage .ts-list { margin-top: 18px; }
#pfAppearancePage .pfs-row:disabled { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
  #pfAppearancePage .ts-range::-webkit-slider-thumb { transition: none; }
}

/*@pf end */
