.audio-test-section {
  display: block;
  overflow: visible;
}

.audio-test-section > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  cursor: pointer;
  list-style: none;
}

.audio-test-section > summary > * + * {
  margin-left: 14px;
}

.audio-test-section > summary::-webkit-details-marker {
  display: none;
}

.audio-test-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.audio-test-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  flex: 0 0 auto;
  max-width: 100%;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
}

.audio-test-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-size: clamp(1.22rem, 1.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: break-word;
}

.audio-test-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--primary-dark);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.audio-test-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 18px;
}

.audio-test-description {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-content);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.58;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.audio-locale-en {
  display: none;
}

html[lang="en"] .audio-test-section .audio-locale-uk {
  display: none;
}

html[lang="en"] .audio-test-section .audio-locale-en {
  display: inline;
}

.audio-test-section .audio-list {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 20px;
}

.audio-test-section .audio-empty {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-bg);
  background: color-mix(in srgb, var(--panel-bg) 82%, var(--bg-soft));
  color: var(--muted);
  font-family: var(--font-ui);
  line-height: 1.5;
}

.audio-test-section .audio-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.audio-test-section .audio-card + .audio-card {
  margin-top: 16px;
}

.audio-test-section .audio-card.audio-card--target {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--card-bg) 88%, var(--primary) 12%);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--primary) 24%, transparent),
    var(--shadow);
}

.audio-test-section .audio-card-title {
  margin: 0 0 7px;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.32;
}

.audio-test-section .audio-card-meta,
.audio-test-section .audio-card-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--font-content);
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.56;
}

.audio-test-section .audio-card-meta {
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 650;
}

.audio-test-section .audio-card audio {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 14px 0 0;
}

.audio-test-section .audio-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.audio-test-section .audio-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--primary-dark);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.audio-test-section .audio-card-link:hover,
.audio-test-section .audio-card-link:focus {
  background: var(--button-bg);
  color: var(--button-text);
}

.audio-test-section .audio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.audio-test-section .audio-tags li {
  display: inline-flex;
  min-width: 0;
}

.audio-test-section .audio-tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.audio-test-section .audio-tag-link:hover,
.audio-test-section .audio-tag-link:focus {
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-text);
}

html[data-theme="accessible"] .audio-test-section,
html[data-theme="accessible"] .audio-test-section .audio-card,
html[data-theme="accessible"] .audio-test-section .audio-empty,
html.no-modern-effects[data-theme="accessible"] .audio-test-section,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-card,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-empty {
  border: 2px solid #000;
  background: #fff;
  color: #000;
  box-shadow: none;
}

html[data-theme="accessible"] .audio-test-section .audio-test-kicker,
html[data-theme="accessible"] .audio-test-section .audio-test-title,
html[data-theme="accessible"] .audio-test-section .audio-card-meta,
html[data-theme="accessible"] .audio-test-section .audio-empty,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-test-kicker,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-test-title,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-card-meta,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-empty {
  color: #000;
}

html[data-theme="accessible"] .audio-test-section .audio-test-toggle,
html[data-theme="accessible"] .audio-test-section .audio-card-link,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-test-toggle,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-card-link {
  border: 2px solid #000;
  background: #fff;
  color: #000;
  box-shadow: none;
}

html[data-theme="accessible"] .audio-test-section > summary:hover .audio-test-toggle,
html[data-theme="accessible"] .audio-test-section > summary:focus .audio-test-toggle,
html[data-theme="accessible"] .audio-test-section .audio-card-link:hover,
html[data-theme="accessible"] .audio-test-section .audio-card-link:focus,
html.no-modern-effects[data-theme="accessible"] .audio-test-section > summary:hover .audio-test-toggle,
html.no-modern-effects[data-theme="accessible"] .audio-test-section > summary:focus .audio-test-toggle,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-card-link:hover,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-card-link:focus {
  background: #000;
  color: #fff;
}

html[data-theme="accessible"] .audio-test-section .audio-tag-link,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-tag-link {
  border: 1px solid #000;
  background: #fff;
  color: #000;
}

html[data-theme="accessible"] .audio-test-section .audio-tag-link:hover,
html[data-theme="accessible"] .audio-test-section .audio-tag-link:focus,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-tag-link:hover,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-tag-link:focus {
  background: #000;
  color: #fff;
}

html[data-theme="accessible"] .audio-test-section .audio-card.audio-card--target,
html.no-modern-effects[data-theme="accessible"] .audio-test-section .audio-card.audio-card--target {
  border-color: #000;
  outline: 3px solid #000;
  outline-offset: 3px;
  background: #fff;
  box-shadow: none;
}

html.no-modern-effects .audio-test-section .audio-empty {
  background: var(--panel-bg);
}

html.no-modern-effects .audio-test-section .audio-card.audio-card--target {
  border-color: var(--primary);
  background: var(--card-bg);
}

@media (max-width: 640px) {
  .audio-test-section > summary {
    align-items: center;
    gap: 10px;
  }

  .audio-test-section > summary > * + * {
    margin-left: 10px;
    margin-top: 0;
  }

  .audio-test-toggle {
    width: auto;
  }
}
