/* The Money switch with Paper strategies (network-precision-strategies.js withStrategiesTab): the same track, three equal segments, the ink
   under the current one. Every target 44 px tall; the words stay whole inside their segments at any width; nothing wider than the page. */
:root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 504px; }
:root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies::before { width: calc((100% - 8px) / 3); }
:root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies:has(> .px-seg:nth-child(2)[aria-current])::before, :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="1"]::before { transform: translateX(100%); }
:root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies:has(> .px-seg:nth-child(3)[aria-current])::before, :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="2"]::before { transform: translateX(200%); }
:root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies > .px-seg { padding: 0 6px 0 calc(6px + var(--px-seg-track)); }
/* A phone (paper-strategies-ui, Nov 22: at 320 px "PAPER STRATEGIES" ran out of a fixed third and its first and last letters stood light on
   light paper): each segment as wide as its word, the ink painted on the current segment itself, 4 px inside the track as the pill is. */
@media (max-width: 559px) {
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies { grid-template-columns: auto auto auto; justify-content: space-between; width: 100%; padding: 0; }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies::before { content: none; }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies > .px-seg { --px-seg-track: .06em; padding: 0 14px 0 calc(14px + var(--px-seg-track)); font-size: 11px; white-space: nowrap;
    border: 4px solid transparent; background-clip: padding-box; }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies > .px-seg[aria-current] { background-color: var(--bs-ink); }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to] > .px-seg[aria-current] { background-color: transparent; color: var(--bs-ink-2); }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="0"] > .px-seg:nth-child(1), :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="1"] > .px-seg:nth-child(2),
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="2"] > .px-seg:nth-child(3) { background-color: var(--bs-ink); color: #f7f2e7; }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies > .px-seg > .px-lock { margin-right: -6px; }
}
/* The narrowest phones (320 to 374 px): the inked segment keeps 13 px each side of its word, the two plain ones give up their padding (their box
   is never drawn), and the ink sits 3 px inside the track. The ink is wherever it is painted: the current segment, or the one a tap moves it to. */
@media (max-width: 374px) {
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies > .px-seg { --px-seg-track: .02em; padding: 0 4px 0 calc(4px + var(--px-seg-track)); font-size: 10.5px; border-width: 3px; }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies:not([data-to]) > .px-seg[aria-current], :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="0"] > .px-seg:nth-child(1),
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="1"] > .px-seg:nth-child(2), :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies[data-to="2"] > .px-seg:nth-child(3) { padding: 0 13px 0 calc(13px + var(--px-seg-track)); }
  :root:root:root:root:root:root:root:root:root:root:root:root:root .px-switch.px-switch--strategies > .px-seg > .px-lock { margin-right: -2px; }
}
