/* Hero: text on the left, a small inspector of facts on the right */
.cw-hero {
  padding: 2rem 0 1.2rem;
}

.cw-hero .md-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24rem;
  align-items: end;
  gap: 3rem;
  padding: 0 0.8rem;
}

.cw-hero h1 {
  max-width: 17em;
  margin: 0 0 0.6rem;
  font-size: 2.1rem;
  letter-spacing: -0.034em;
  line-height: 1.08;
}

.cw-hero__text p {
  max-width: 34rem;
  margin: 0;
  color: var(--cw-text-2);
  font-size: 0.8rem;
  line-height: 1.55;
}

.cw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.cw-hero__text .cw-hero__status {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.7rem;
  font-size: 0.6rem;
  line-height: 1.4;
}

.cw-hero__status a {
  color: var(--cw-accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--cw-accent) 36%, transparent);
  text-underline-offset: 0.18em;
}

/* field.js draws a grid of tiny squares here, one abstract pattern per package */
.cw-field {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-l);
  background-color: var(--cw-surface);
}

.cw-field[hidden] {
  display: none;
}

.cw-field__stage {
  position: relative;
  flex: 1;
  min-height: 8rem;
}

.cw-field__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cw-field__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.2rem 0.3rem 0.2rem 0.7rem;
  border-top: 1px solid var(--cw-border);
}

.cw-field__pkg {
  color: var(--cw-text-2);
  font-family: var(--md-code-font-family);
  font-size: 0.55rem;
  line-height: 1.5;
}

.cw-field__controls,
.cw-field__dots {
  display: flex;
  align-items: center;
}

.cw-field__dot {
  display: grid;
  place-items: center;
  width: 0.9rem;
  height: 1.1rem;
  cursor: pointer;
}

.cw-field__dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background-color: var(--cw-muted);
  transition: background-color var(--cw-fast);
}

.cw-field__dot:hover::before {
  background-color: var(--cw-text-2);
}

.cw-field__dot[aria-pressed="true"]::before {
  background-color: var(--cw-accent);
}

.cw-field__pause {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.15rem;
  border-radius: var(--cw-radius-s);
  color: var(--cw-text-2);
  cursor: pointer;
  transition: color var(--cw-fast), background-color var(--cw-fast);
}

.cw-field__pause[hidden] {
  display: none;
}

.cw-field__pause:is(:hover, :focus-visible) {
  background-color: var(--cw-elevated);
  color: var(--cw-text);
}

.cw-field__pause svg {
  width: 0.65rem;
  height: 0.65rem;
  fill: currentcolor;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.cw-palette__filter svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.25;
}

/* inline-flex takes its baseline from the first word, so the window sits on the heading's baseline */
.cw-rotator {
  display: inline-flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.25em;
  color: var(--cw-accent);
  line-height: 1.25em;
  vertical-align: baseline;
}

.cw-rotator > span {
  flex-shrink: 0;
  transition: transform 420ms var(--cw-ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .cw-rotator > span {
    transition: none;
  }
}

/* Package palette: the main demonstration on the page */
.cw-home {
  margin-top: -0.5rem;
}

.cw-home .cw-pane__about p,
.cw-home .cw-section p {
  max-width: none;
}

.cw-palette {
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-xl);
  background-color: var(--cw-surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}

.cw-palette.is-ready {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  overflow: hidden;
}

.cw-palette__side {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--cw-border);
}

.cw-palette__filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.7rem;
  border-bottom: 1px solid var(--cw-border);
  color: var(--cw-text-2);
  transition: color var(--cw-fast);
}

.cw-palette__filter:focus-within {
  color: var(--cw-accent);
}

.cw-palette__filter input {
  width: 100%;
  height: 2rem;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--cw-text);
  font: inherit;
  font-size: 0.65rem;
}

.cw-palette__filter input::placeholder {
  color: var(--cw-text-2);
}

.cw-palette__rows {
  display: grid;
  gap: 1px;
  padding: 0.3rem;
}

.cw-palette__row {
  display: grid;
  grid-template-columns: 6px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.38rem 0.4rem;
  border-radius: var(--cw-radius-m);
  color: var(--cw-text-2);
  font-size: 0.65rem;
  text-align: left;
  cursor: pointer;
  transition: color var(--cw-fast), background-color var(--cw-fast);
}

.cw-palette__row[hidden] {
  display: none;
}

.cw-palette__row:hover {
  background-color: var(--cw-elevated);
  color: var(--cw-text);
}

.cw-palette__row[aria-selected="true"] {
  background-color: var(--cw-elevated);
  color: var(--cw-text);
}

.cw-palette__row[aria-selected="true"] .cw-square {
  background-color: var(--cw-accent);
}

.cw-palette__row:focus-visible {
  outline-offset: -1px;
}

.cw-palette__name {
  font-weight: 500;
}

.md-typeset .cw-palette__row code {
  justify-self: start;
  overflow: hidden;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cw-text-2);
  font-family: var(--md-code-font-family);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-palette__empty {
  margin: 0;
  padding: 0.5rem 0.8rem;
  color: var(--cw-text-2);
  font-size: 0.6rem;
}

.cw-palette__hints {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  padding: 0.4rem 0.7rem;
  border-top: 1px solid var(--cw-border);
  color: var(--cw-text-2);
  font-size: 0.55rem;
}

.cw-palette__hints kbd + kbd {
  margin-left: 2px;
}

.cw-palette__main {
  min-width: 0;
}

.cw-pane + .cw-pane {
  border-top: 1px solid var(--cw-border);
}

/* Only after the first switch, so the code is visible as soon as the page paints */
.cw-palette.has-switched .cw-pane:not([hidden]) {
  animation: cw-pane-in 160ms var(--cw-ease-out);
}

@keyframes cw-pane-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
}

.cw-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--cw-border);
}

.cw-home .cw-pane__about p {
  margin: 0;
  color: var(--cw-text-2);
  font-size: 0.6rem;
  line-height: 1.45;
}

.cw-home .cw-pane__about p:first-child {
  margin-bottom: 0.1rem;
  color: var(--cw-text);
  font-size: 0.7rem;
}

.cw-pane__about strong {
  font-weight: 600;
}

.cw-home .cw-pane__links p {
  display: flex;
  flex-shrink: 0;
  gap: 0.3rem;
  margin: 0;
}

.cw-pane__links {
  flex-shrink: 0;
}

.cw-pane__links .md-button {
  white-space: nowrap;
}

.cw-pane > .highlight {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.cw-palette.is-ready .cw-pane > .highlight {
  height: 21.6rem;
  overflow: auto;
  scrollbar-color: var(--cw-border) transparent;
  scrollbar-width: thin;
}

/* Sections: a label column and a content column, split by thin rules */
.cw-section {
  position: relative;
  padding: 1.4rem 0 0 13rem;
  border-top: 1px solid var(--cw-border);
}

.cw-palette + .cw-section {
  margin-top: 2.4rem;
}

.cw-section + .cw-section {
  margin-top: 1.4rem;
}

.cw-section > h2 {
  position: absolute;
  top: 1.4rem;
  left: 0;
  width: 11rem;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.8rem;
  letter-spacing: -0.008em;
  line-height: 1.45;
}

.cw-section > :first-child + * {
  margin-top: 0;
}

.cw-section > :last-child {
  margin-bottom: 0;
}

.cw-home .cw-section img {
  display: block;
  height: 1rem;
  border-radius: var(--cw-radius-s);
}

.cw-home table code {
  white-space: nowrap;
}

.cw-demo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-l);
  background-color: var(--cw-surface);
}

/* Stays short until the visitor loads the game */
.cw-demo:has(button) {
  place-items: center start;
  padding: 0.5rem 0.7rem;
  aspect-ratio: auto;
}

.cw-demo iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 60em) {
  /* iOS zooms the page when a smaller input takes focus */
  .cw-palette__filter input {
    font-size: 0.8rem;
  }

  .cw-hero {
    padding-top: 1.4rem;
  }

  .cw-hero .md-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }


  .cw-hero h1 {
    font-size: 1.6rem;
  }


  .cw-palette.is-ready {
    grid-template-columns: minmax(0, 1fr);
  }

  .cw-palette__side {
    border-right: 0;
    border-bottom: 1px solid var(--cw-border);
  }

  .cw-palette__hints {
    display: none;
  }

  .cw-pane__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cw-palette.is-ready .cw-pane > .highlight {
    height: auto;
    max-height: 22rem;
  }

  .cw-section {
    padding-left: 0;
  }

  .cw-section > h2 {
    position: static;
    width: auto;
    margin-bottom: 0.6rem;
  }

  /* The packages table reads as a stack of rows */
  .cw-home table:not([class]),
  .cw-home table:not([class]) :is(tbody, tr, td) {
    display: block;
  }

  .cw-home table:not([class]) thead {
    display: none;
  }

  .cw-home table:not([class]) tr {
    padding: 0.5rem 0.6rem;
  }

  .cw-home table:not([class]) tr + tr {
    border-top: 1px solid var(--cw-border);
  }

  .cw-home table:not([class]) td {
    padding: 0.1rem 0;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-palette.has-switched .cw-pane:not([hidden]) {
    animation: none;
  }
}

/* Ecosystem diagram under the hero. javascripts/system.js draws the SVG; the
   classes below style its strokes, faces and text. The --sx-* values that
   theme.css has no token for sit between its surface steps. */
.cw-system {
  --sx-bg: var(--cw-bg);
  --sx-rule: var(--cw-border);
  --sx-line: var(--cw-text-2);
  --sx-text: var(--cw-text);
  --sx-meta: var(--cw-text-2);
  --sx-accent: var(--cw-accent);
  --sx-accent-soft: color-mix(in srgb, var(--cw-accent) 12%, transparent);
  --sx-grid: #1e2022;
  --sx-grid-2: #26292c;
  --sx-line-2: var(--cw-border-strong);
  --sx-face-t: var(--cw-elevated);
  --sx-face-l: var(--cw-surface);
  --sx-face-r: #1c1e20;
}

.md-typeset .cw-system {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 1.2rem 0 0;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-xl);
  background-color: var(--sx-bg);
  color: var(--sx-text);
  font-family: var(--md-code-font-family);
}

.cw-system__head,
.cw-system__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.7rem;
  background-color: var(--cw-surface);
  color: var(--cw-text-2);
  font-family: var(--md-text-font-family);
  font-size: 0.55rem;
}

.md-typeset figcaption.cw-system__head {
  max-width: none;
  margin: 0;
  font-style: normal;
}

.cw-system__head {
  border-bottom: 1px solid var(--sx-rule);
}

.cw-system__foot {
  border-top: 1px solid var(--sx-rule);
}

.cw-system__clock {
  font-variant-numeric: tabular-nums;
}

.cw-system__sr {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* All four messages share one cell, so the box keeps the height of the longest */
.cw-system__messages {
  display: grid;
  position: absolute;
  top: 2.6rem;
  left: 0.9rem;
  z-index: 1; /* above the positioned scene layers that follow it */
  max-width: 17rem;
  pointer-events: none;
}

.md-typeset .cw-system__message {
  grid-area: 1 / 1;
  margin: 0;
  color: var(--sx-text);
  font-family: var(--md-text-font-family);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(0.3rem);
  transition: opacity var(--cw-fast), transform var(--cw-fast);
}

/* The outgoing line clears before the next one rises in */
.md-typeset .cw-system__message.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--cw-ease-out) var(--cw-fast), transform 500ms var(--cw-ease-out) var(--cw-fast);
}

/* Positioned, so each layer keeps its own paint record and an unchanged layer is
   not repainted when another one moves */
.cw-system svg {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  transition: opacity var(--cw-fast);
}

.cw-system__scene svg + svg {
  position: absolute;
  top: 0;
  left: 0;
}

/* Only the packages layer and the layers under it take the pointer */
.cw-system__scene svg:nth-child(n + 4) {
  pointer-events: none;
}

.cw-system__scene {
  position: relative;
}

.cw-system.is-rewinding svg {
  opacity: 0;
}

/* Stage buttons double as a progress readout */
.md-typeset ol.cw-system__stages:not([hidden]) {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.md-typeset ol.cw-system__stages li {
  margin: 0;
}

.cw-system__stages button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color var(--cw-fast);
}

.cw-system__stages button {
  position: relative;
  padding-bottom: 0.3rem;
}

.cw-system__stages button:hover {
  color: var(--sx-text);
}

.cw-system__stages button span:first-child {
  opacity: 0.6;
}

.cw-system__stages button::before,
.cw-system__stages button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background-color: var(--sx-rule);
}

.cw-system__stages button::after {
  background-color: var(--sx-accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

.cw-system__stages button[aria-current] {
  color: var(--sx-text);
}

/* Same look as .md-button in theme.css, at the size of the footer text */
.cw-system__replay {
  padding: 0 0.35rem;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-s);
  background-color: var(--cw-elevated);
  color: var(--cw-text);
  font: inherit;
  cursor: pointer;
  transition: color var(--cw-fast), border-color var(--cw-fast), opacity 100ms;
}

.cw-system__replay:is(:hover, :focus-visible) {
  border-color: var(--cw-border-strong);
}

.cw-system__replay:active {
  opacity: 0.75;
}

.cw-system button:focus-visible,
.cw-system .mod:focus-visible {
  outline: 1px solid var(--sx-accent);
  outline-offset: 2px;
}

.cw-system__tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 15rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--cw-border-strong);
  border-radius: var(--cw-radius-m);
  background-color: var(--cw-elevated);
  box-shadow: var(--cw-shadow);
  color: var(--cw-text-2);
  font-family: var(--md-text-font-family);
  font-size: 0.6rem;
  line-height: 1.5;
  pointer-events: none;
}

.cw-system__tip p {
  margin: 0;
}

.cw-system__tip p + p {
  margin-top: 0.3rem;
}

.cw-system__tip strong {
  color: var(--sx-text);
  font-weight: 600;
}

.cw-system__tip code {
  padding: 0;
  background: none;
  color: var(--sx-accent);
  font-family: var(--md-code-font-family);
  font-size: inherit;
}

.cw-system__tip-more {
  color: var(--sx-meta);
}

/* SVG strokes, faces and text */
.cw-system .fade {
  stop-color: var(--sx-bg);
}

.cw-system .g {
  stroke: var(--sx-grid);
  stroke-width: 1;
}

.cw-system .g.major {
  stroke: var(--sx-grid-2);
}

.cw-system .e {
  fill: none;
  stroke: var(--sx-line);
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--cw-fast);
}

.cw-system .e.l2 {
  stroke: var(--sx-line-2);
  stroke-width: 1;
}

.cw-system .h {
  fill: none;
  stroke: var(--sx-line-2);
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
}

.cw-system .h.guide {
  stroke-width: 1.2;
  stroke-dasharray: 0.5 4;
  stroke-linecap: round;
}

.cw-system .ft {
  fill: var(--sx-face-t);
}

.cw-system .fl {
  fill: var(--sx-face-l);
}

.cw-system .fr {
  fill: var(--sx-face-r);
}

.cw-system .glass {
  fill: var(--sx-line);
  fill-opacity: 0.05;
}

.cw-system .e.a,
.cw-system .e.on,
.cw-system .kept .e,
.cw-system .is-hot .pad .e {
  stroke: var(--sx-accent);
}

.cw-system .dead .e {
  stroke: var(--sx-line-2);
  stroke-dasharray: 2 2;
}

.cw-system .route {
  fill: none;
  stroke: var(--sx-line-2);
  stroke-width: 1.1;
}

.cw-system .is-hot .route {
  stroke: var(--sx-accent);
}

.cw-system .pulse {
  fill: none;
  stroke: var(--sx-accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.cw-system .dot {
  fill: var(--sx-face-t);
  stroke: var(--sx-line);
  stroke-width: 1;
}

.cw-system .dot.node {
  fill: var(--sx-bg);
  stroke: var(--sx-line-2);
}

.cw-system .dot.on,
.cw-system .packet.on {
  fill: var(--sx-accent);
  stroke: var(--sx-accent);
}

.cw-system .packet {
  fill: var(--sx-line);
  stroke: none;
}

.cw-system .ring {
  fill: none;
  stroke: var(--sx-accent);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
}

.cw-system .scan {
  fill: var(--sx-accent-soft);
  stroke: var(--sx-accent);
  stroke-width: 1.2;
}

.cw-system .card path {
  fill: var(--sx-face-t);
  stroke: var(--sx-line);
  stroke-width: 1.1;
  stroke-linejoin: round;
}

.cw-system .card.a path {
  fill: var(--sx-accent-soft);
  stroke: var(--sx-accent);
}

.cw-system .card .ink {
  fill: none;
}

.cw-system .t {
  fill: var(--sx-text);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.cw-system .t.b {
  font-weight: 600;
}

.cw-system .t .num {
  fill: var(--sx-meta);
  font-weight: 400;
}

.cw-system .t.m {
  fill: var(--sx-meta);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.cw-system .t.s {
  font-size: 8px;
}

.cw-system .t.engraved {
  font-size: 7px;
  letter-spacing: 0.25em;
}

.cw-system .t.on {
  fill: var(--sx-accent);
}

.cw-system .fx {
  pointer-events: none;
}

.cw-system .mod {
  outline: none;
  cursor: pointer;
}

.cw-system [data-mod] {
  transition: opacity var(--cw-fast);
}

.cw-system .is-dim {
  opacity: 0.25;
}

/* Narrow screens: the script switches to a tighter layout; text gets bigger to stay legible */
.cw-system.is-compact .t {
  font-size: 15px;
}

.cw-system.is-compact .t.engraved {
  font-size: 7px;
}

.cw-system.is-compact .readout {
  display: none;
}

.cw-system.is-compact .t.m {
  font-size: 13px;
}

.cw-system.is-compact .e {
  stroke-width: 1.4;
}

@media screen and (max-width: 44.984375em) {
  .cw-system__messages {
    position: static;
    max-width: none;
    padding: 0.7rem 0.75rem 0;
  }

  .md-typeset .cw-system__message {
    font-size: 0.7rem;
  }

  .cw-system__stages button span:first-child {
    opacity: 1;
  }

  .cw-system__clock,
  .cw-system__stage-name {
    display: none;
  }

  .md-typeset figcaption.cw-system__head {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .cw-system__message,
  .cw-system svg,
  .cw-system .e,
  .cw-system [data-mod] {
    transition: none;
  }

  .cw-system__clock {
    display: none;
  }
}

/* Wynd pane: real terminal output, coloured as Rich and Wrangler print it */
.cw-term__prompt,
.cw-term__dim {
  color: var(--cw-muted);
}

.cw-term__wynd {
  color: var(--cw-accent);
  font-weight: 700;
}

.cw-term__faint {
  color: var(--cw-label);
}

.cw-term__bold {
  font-weight: 700;
}

.cw-term__head {
  color: var(--cw-purple);
}

.cw-term__ok {
  color: var(--cw-accent);
}

/* Wynd pane terminal playback (home.js). The static transcript stays for screen readers. */
.cw-pane:has(.cw-term) {
  position: relative;
}

/* Terminal line height, so box-drawing borders join up; room below for the control */
.md-typeset .cw-term pre > code {
  padding-bottom: 2.2rem;
  line-height: 1.3;
}

.cw-term__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: pre;
}

.cw-term__line {
  animation: cw-term-line 120ms var(--cw-ease-out);
}

@keyframes cw-term-line {
  from {
    opacity: 0.35;
  }
}

.cw-term__caret {
  display: inline-block;
  width: 0.6em;
  height: 1.2em;
  margin-bottom: -0.25em;
  background-color: var(--cw-accent);
}

.cw-term__caret.is-idle {
  animation: cw-term-blink 1.06s steps(1) infinite;
}

@keyframes cw-term-blink {
  50% {
    opacity: 0;
  }
}

.cw-term__control {
  position: absolute;
  right: 0.8rem;
  bottom: 0.6rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-m);
  background-color: var(--cw-elevated);
  color: var(--cw-text-2);
  font: 400 0.55rem/1.5 var(--md-code-font-family);
  cursor: pointer;
  transition: border-color var(--cw-fast), color var(--cw-fast);
}

.cw-term__control:is(:hover, :focus-visible) {
  border-color: var(--cw-border-strong);
  color: var(--cw-text);
}

.cw-term__control:focus-visible {
  outline: 1px solid var(--cw-accent);
  outline-offset: 2px;
}
