/* One pearl surface for the next-step links, including the original join CTA. */
:is(#case-action, .guide-actions) a.pearl-cta,
html.site-pattern-b .join-banner .button.light {
  color: #241e2b;
  background: linear-gradient(153deg, rgb(255 255 255 / 88%), rgb(242 239 249 / 74%));
  border: 1px solid rgb(255 255 255 / 72%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%), inset 0 -1px 0 rgb(126 109 146 / 20%);
  -webkit-tap-highlight-color: transparent;
}
:is(#case-action, .guide-actions) a.pearl-cta { border-radius: 5px; min-height: 44px; }
@media (hover: hover) and (pointer: fine) {
  :is(#case-action, .guide-actions) a.pearl-cta:hover:not(:active),
  html.site-pattern-b .join-banner .button.light:hover:not(:active) {
    background: linear-gradient(153deg, rgb(255 255 255 / 93%), rgb(245 241 251 / 82%));
    border-color: #f5eafa;
    color: #241e2b;
  }
}
:is(#case-action, .guide-actions) a.pearl-cta:is(:active, .is-touch-active),
html.site-pattern-b .join-banner .button.light:is(:active, .is-touch-active) {
  background: linear-gradient(153deg, rgb(245 239 252 / 78%), rgb(236 228 247 / 67%));
  border-color: #efe4fa;
  color: #241e2b;
  box-shadow: inset 0 0 0 1px rgb(108 89 129 / 25%);
}
:is(#case-action, .guide-actions) a.pearl-cta:focus-visible,
html.site-pattern-b .join-banner .button.light:focus-visible {
  outline: 2px solid #e8d6ff;
  outline-offset: 3px;
}

/* The three pale case banners use the same dark glass as the support section. */
#case-action a.dark-glass-cta {
  color: #faf4ff;
  border: 1px solid #74588e;
  border-radius: 5px;
  min-height: 44px;
  background: linear-gradient(156deg, rgb(116 83 161 / 28%), rgb(78 57 107 / 24%)), #30263c;
  box-shadow: inset 0 1px 0 rgb(237 216 255 / 16%), inset 0 -1px 0 rgb(161 122 206 / 14%);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  #case-action a.dark-glass-cta:hover {
    border-color: #c5a6e6;
    background-color: #342b40;
    box-shadow: inset 0 1px 0 rgb(242 229 255 / 27%), inset 0 0 8px rgb(195 156 238 / 10%);
  }
}
#case-action a.dark-glass-cta:active {
  border-color: #d1b5ed;
  background-color: #392d47;
}
#case-action a.dark-glass-cta:focus-visible {
  outline: 2px solid #604979;
  outline-offset: 4px;
}

/* The view stays dark. Its rim and short lower rule identify the current scale. */
.chart-controls button.chart-glass-switch {
  position: relative;
  min-height: 44px;
  border: 1px solid #62596e;
  border-radius: 5px;
  background: rgb(23 21 30 / 72%);
  color: #d1c9dc;
  -webkit-tap-highlight-color: transparent;
}
.chart-controls button.chart-glass-switch[aria-pressed="true"] {
  color: #f1e8ff;
  border-color: #bca3d5;
  background: linear-gradient(155deg, rgb(122 90 160 / 15%), transparent 78%), #17131d;
  box-shadow: inset 0 1px 0 rgb(237 216 255 / 18%), 0 0 0 1px rgb(196 160 235 / 17%), 0 0 9px rgb(170 125 215 / 25%);
}
.chart-controls button.chart-glass-switch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 3px;
  margin-inline: auto;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: #dac4ef;
}
@media (hover: hover) and (pointer: fine) {
  .chart-controls button.chart-glass-switch:hover {
    border-color: #dfc9f4;
    color: #f5effb;
  }
}
.chart-controls button.chart-glass-switch:active {
  border-color: #e9d8ff;
  color: #f5effb;
  box-shadow: 0 0 1px 1px #dfc5ff75, 0 0 12px #b68ce54d;
}
.chart-controls button.chart-glass-switch:focus-visible {
  outline: 2px solid #e8d6ff;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  :is(#case-action, .guide-actions) a.pearl-cta, #case-action a.dark-glass-cta, .chart-controls button.chart-glass-switch {
    transition: box-shadow 150ms ease, border-color 150ms ease, color 150ms ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(#case-action, .guide-actions) a.pearl-cta, #case-action a.dark-glass-cta, .chart-controls button.chart-glass-switch { transition: none; }
}
@media (forced-colors: active) {
  .chart-controls button.chart-glass-switch[aria-pressed="true"] {
    border: 2px solid Highlight; text-decoration: underline; text-underline-offset: .2em;
  }
}
