/* Browser demo additions on top of the participant search screen (style.css) */

/* Only the paragraphs of the page's language show in the footer */
html[lang="en"] .demo-footer [lang="ja"],
html[lang="ja"] .demo-footer [lang="en"] {
  display: none;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.language-switch {
  display: flex;
  gap: 16px;
  font-size: 0.9375rem;
}

/* The header is dark, so both languages are white, as the header text is */
.language-switch a {
  color: #ffffff;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a:focus {
  text-decoration: underline;
}

/* The current language is plain bold text */
html[lang="en"] .language-switch a[lang="en"],
html[lang="ja"] .language-switch a[lang="ja"] {
  font-weight: 700;
  pointer-events: none;
}

/* Model loading status: light emphasis while loading, then a quiet line */
.model-status {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--accent-tint);   /* the site's light emphasis */
  color: var(--black);
  font-size: 0.9375rem;
}

.model-status p {
  margin: 0;
}

.model-status progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  accent-color: var(--accent);
}

/* display: block above would otherwise override the hidden attribute */
.model-status progress[hidden] {
  display: none;
}

.model-status[data-state="ready"] {
  padding: 0;
  background: transparent;
  color: var(--heading);
}

.model-status[data-state="failed"] {
  background: var(--error-tint);
  color: var(--error);
}

.demo-footer {
  margin-top: 24px;
  padding-bottom: 32px;
  color: var(--heading);
  font-size: 0.8125rem;
}

/* The rule spans the content width, like the panels above */
.demo-footer::before {
  content: "";
  display: block;
  margin-bottom: 16px;
  border-top: 1px solid var(--gray-light);
}

.demo-footer p {
  margin: 0 0 8px;
}

.demo-footer .demo-note {
  color: var(--black);
  font-size: 0.875rem;
}

.demo-footer a {
  color: var(--accent);
}

.demo-footer a:hover,
.demo-footer a:focus {
  color: var(--accent);
}
