/* The Office demo's own marks: the badge that says it is a demo, words to
 * try in search and Recherche, and the note on a Vorgang that no longer exists. Everything else is itp3ui's. */

.demo-badge {
  position: fixed;
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  z-index: 50;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
  white-space: nowrap;
}

.demo-credit {
  color: inherit;
}

.demo-reset {
  all: unset;
  cursor: pointer;
  text-decoration: underline;
  color: inherit;
}

.demo-reset:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

html[data-demo-screenshot="1"] .demo-badge,
html[data-demo-screenshot="1"] #jump {
  display: none !important;
}

/* Words to try, under the search field and the question. */
.demo-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.6rem 0 0.2rem;
  font-size: 0.8rem;
}

.demo-try-name {
  color: var(--gray);
  margin-right: 0.15rem;
}

.demo-try-chip {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}

.demo-try-chip:hover {
  background: var(--blue);
  color: #fff;
}

.demo-try-chip:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

html[data-demo-screenshot="1"] .demo-try {
  display: none;
}

.demo-missing {
  padding: 2rem;
  text-align: center;
}

@media (max-width: 40rem) {
  .demo-badge {
    white-space: normal;
    width: max-content;
    max-width: calc(100vw - 2rem);
    text-align: center;
  }
}
