/* Control Contre type treatments. Colour follows the shared material theme. */
.cc-te {
  display: inline-grid;
  position: relative;
  vertical-align: baseline;
  max-width: 100%;
  isolation: isolate;
}
.cc-te-current,
.cc-te-reserve {
  grid-area: 1 / 1;
  min-width: 0;
  justify-self: start;
  white-space: inherit;
}
.cc-te-reserve {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.cc-te-reserve::before,
.cc-te-glyph::before,
.cc-te-old-word::before {
  content: attr(data-cc-te-value);
  white-space: pre-wrap;
}
.cc-te-overlay {
  position: absolute;
  inset: 0;
  color: inherit;
  pointer-events: none;
  user-select: none;
}
.cc-te-glyph {
  position: absolute;
  display: block;
  transform-origin: center center;
  white-space: pre;
}
.cc-te-running:is(
    .cc-te-morphing,
    .cc-te-rolling,
    .cc-te-splitting,
    .cc-te-swapping
  )
  > .cc-te-current {
  opacity: 0;
}
.cc-te:is(.cc-te-sliding, .cc-te-rotating) {
  overflow: clip;
  overflow-clip-margin: 0.08em;
}
.cc-te-word-overlay {
  overflow: hidden;
}
.cc-te-old-word {
  display: block;
  width: fit-content;
}
.cc-te-highlight > .cc-te-current {
  background: linear-gradient(
      var(--cc-accent-soft, #dce9f8),
      var(--cc-accent-soft, #dce9f8)
    )
    0 95% / 100% 42% no-repeat;
  color: inherit;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .cc-te:is(.cc-te-gradient, .cc-te-shimmering) > .cc-te-current {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 250% 100%;
    background-position: 0% 50%;
    background-image: linear-gradient(
      105deg,
      var(--cc-ink, #203047) 10%,
      color-mix(in srgb, var(--cc-ink, #203047) 65%, var(--cc-accent, #4264bf))
        36%,
      var(--cc-ink, #203047) 62%
    );
  }
  .cc-te-shimmering > .cc-te-current {
    background-image: linear-gradient(
      105deg,
      var(--cc-ink, #203047) 36%,
      color-mix(in srgb, var(--cc-ink, #203047) 55%, var(--cc-accent, #4264bf))
        48%,
      var(--cc-ink, #203047) 60%
    ) !important;
  }
}
.cc-te-demo {
  width: min(100%, 350px);
  padding: 28px 22px;
  border: 1px solid var(--cc-glass-edge, #fff);
  border-radius: var(--cc-radius-card, 20px);
  background: var(--cc-glass, #f8fafbd9);
  box-shadow: var(--cc-shadow);
  color: var(--cc-ink, #203047);
  font: 14px/1.5 var(--cc-font, system-ui);
}
.cc-te-demo-title {
  min-height: 2.4em;
  margin: 0 0 12px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.cc-te-demo-note {
  margin: 0 0 18px;
  color: var(--cc-muted, #59687a);
  font-size: 12px;
}
.cc-te-demo > button {
  padding: 9px 16px;
  border: 1px solid var(--cc-border, #bccbdc);
  border-radius: var(--cc-radius-control, 12px);
  background: var(--cc-surface, #f6f8fb);
  color: var(--cc-ink, #203047);
  box-shadow: var(--cc-shadow-small, 0 3px 7px #20304712);
  font: inherit;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.cc-te-demo > button:hover {
  transform: translateY(-1px);
}
.cc-te-demo > button:active {
  transform: translateY(1px);
}
.cc-te-demo > button:focus-visible {
  outline: 2px solid var(--cc-accent, #4264bf);
  outline-offset: 3px;
}
:is(
    [data-motion="paused"],
    [data-ff-motion="off"],
    [data-ml-motion="paused"],
    .ff-preview-paused
  )
  .cc-te-demo
  > button {
  transition: none;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .cc-te-demo > button {
    transition: none;
    transform: none !important;
  }
}
@media (forced-colors: active), print {
  .cc-te > .cc-te-current {
    color: CanvasText !important;
    background: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .cc-te-overlay {
    display: none !important;
  }
}
