.cefr-vocabulary-wrap .cefr-level-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
}

.cefr-vocabulary-wrap .cefr-level-btn {
  background: #8fa4ba;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  font-weight: 700;
  height: 36px;
  line-height: 1;
  min-width: 44px;
  opacity: 0.72;
  padding: 8px 12px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cefr-vocabulary-wrap .cefr-level-btn:first-child {
  border-radius: 8px 0 0 8px;
}

.cefr-vocabulary-wrap .cefr-level-btn:last-child {
  border-radius: 0 8px 8px 0;
}

.cefr-vocabulary-wrap .cefr-level-btn:hover,
.cefr-vocabulary-wrap .cefr-level-btn.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.cefr-vocabulary-wrap .cefr-level-btn[data-level="all"] {
  background: #8fa4ba;
}

.cefr-vocabulary-wrap .cefr-level-btn[data-level="a1"] {
  background: #f2c18d;
}

.cefr-vocabulary-wrap .cefr-level-btn[data-level="a2"] {
  background: #7ec7ce;
}

.cefr-vocabulary-wrap .cefr-level-btn[data-level="b1"] {
  background: #f08d93;
}

.cefr-vocabulary-wrap .cefr-level-btn[data-level="b2"] {
  background: #80bc91;
}

.cefr-vocabulary-wrap .cefr-level-btn[data-level="c1"] {
  background: #8ea5dc;
}

.cefr-vocabulary-wrap .cefr-level-btn[data-level="c2"] {
  background: #b48fca;
}

.cefr-vocabulary-wrap .cefr-search-controls {
  background: #f2f5f7;
  border: 0;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.cefr-vocabulary-wrap .cefr-field-group {
  display: block;
}

.cefr-vocabulary-wrap .cefr-field-label {
  color: #1b1949;
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.cefr-vocabulary-wrap .cefr-search-input-wrap {
  margin-bottom: 12px;
}

.cefr-vocabulary-wrap .cefr-search-input-wrap input {
  background: #ffffff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  color: #1b1949;
  min-height: 50px;
  line-height: 27px;
  letter-spacing: 0.18px;
  font-size: 18px;
  padding: 10px 14px;
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-search-input-wrap input:focus {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 0 0 2px rgba(0, 102, 204, 0.16);
  outline: none;
}

.cefr-vocabulary-wrap .cefr-filter-selects {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cefr-vocabulary-wrap .cefr-filter-selects select {
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  color: #1b1949;
  font-size: 18px;
  letter-spacing: 0.18px;
  line-height: 27px;
  min-height: 50px;
  padding: 10px 16px;
}

.cefr-vocabulary-wrap .cefr-search-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.cefr-vocabulary-wrap #cefr-search-submit,
.cefr-vocabulary-wrap #cefr-reset-filters {
  border-radius: 9px;
  font-weight: 700;
  min-height: 50px;
  padding: 0 20px;
}

.cefr-vocabulary-wrap #cefr-search-submit {
  background: #0066cc;
  border: 2px solid #0066cc;
  border-radius: 8px;
  color: #f2f5f7;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28px;
  line-height: 19px;
}

.cefr-vocabulary-wrap #cefr-search-submit:hover {
  background: #005ab5;
  border-color: #005ab5;
}

.cefr-vocabulary-wrap #cefr-reset-filters {
  background: #ffffff;
  border: 2px solid #0066cc;
  border-radius: 8px;
  color: #0066cc;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28px;
  line-height: 19px;
}

.cefr-vocabulary-wrap #cefr-reset-filters:hover {
  background: #eef5ff;
  border-color: #005ab5;
  color: #005ab5;
}

.cefr-vocabulary-wrap .cefr-results-summary {
  align-items: center;
  background: linear-gradient(180deg, #f6f9fd 0%, #edf3fa 100%);
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 14px;
}

.cefr-vocabulary-wrap .cefr-results-summary__label {
  color: #1f3850;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.cefr-vocabulary-wrap .cefr-pagination {
  display: block;
  margin-bottom: 12px;
}

.cefr-vocabulary-wrap .cefr-pagination__top {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.cefr-vocabulary-wrap .cefr-page-nav {
  align-items: center;
  background: transparent;
  border: 0;
  color: #0a5f98;
  display: inline-flex;
  font-size: 18px;
  gap: 3px;
  justify-content: center;
  min-height: 30px;
  min-width: 30px;
  padding: 4px;
}

.cefr-vocabulary-wrap .cefr-page-nav.is-disabled,
.cefr-vocabulary-wrap .cefr-page-nav[disabled] {
  cursor: not-allowed;
  opacity: 0.3;
}

.cefr-vocabulary-wrap .cefr-page-status {
  color: #0a5f98;
  font-weight: 700;
  min-width: 130px;
  text-align: center;
}

.cefr-vocabulary-wrap .cefr-page-meter {
  background: #d9e5f2;
  border-radius: 999px;
  height: 12px;
  margin: 10px auto 0;
  max-width: 860px;
  overflow: hidden;
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-page-meter__fill {
  background: #0a5f98;
  border-radius: 999px;
  display: block;
  height: 100%;
}

.cefr-vocabulary-wrap a.cefr-details-btn {
  align-items: center;
  background: #ffffff;
  border: 2px solid #0066cc;
  border-radius: 8px;
  color: #0066cc;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 40px;
  min-width: 78px;
  padding: 0 16px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cefr-vocabulary-wrap a.cefr-details-btn:hover,
.cefr-vocabulary-wrap a.cefr-details-btn:focus {
  background: #0066cc;
  color: #ffffff;
  transform: translateY(-1px);
}

.cefr-vocabulary-wrap .cefr-results-table {
  background: transparent;
  border: 0;
  border-collapse: separate;
  border-radius: 0;
  border-spacing: 0 10px;
  box-shadow: none;
  overflow: hidden;
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-results-table thead {
  background: transparent;
}

.cefr-vocabulary-wrap .cefr-results-table th {
  background: #0066cc;
  border: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.18px;
  line-height: 27px;
  padding: 6px 20px;
  text-transform: none;
}

.cefr-vocabulary-wrap .cefr-results-table td {
  background: transparent;
  border: 0;
  color: #1b1949;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.18px;
  line-height: 27px;
  padding: 8px 20px;
  vertical-align: middle;
  word-break: break-word;
}

.cefr-vocabulary-wrap .cefr-results-table tbody tr {
  box-shadow: none;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.cefr-vocabulary-wrap .cefr-results-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.cefr-vocabulary-wrap .cefr-results-table tbody tr:nth-child(even) td {
  background: #f2f5f7;
}

.cefr-vocabulary-wrap .cefr-results-table thead th:first-child,
.cefr-vocabulary-wrap .cefr-results-table tbody tr td:first-child {
  border-radius: 12px 0 0 12px;
}

.cefr-vocabulary-wrap .cefr-results-table thead th:last-child,
.cefr-vocabulary-wrap .cefr-results-table tbody tr td:last-child {
  border-radius: 0 12px 12px 0;
}

.cefr-vocabulary-wrap .cefr-results-table tbody tr:hover {
  transform: translateY(-1px);
}

.cefr-vocabulary-wrap .cefr-results-table tbody tr:hover td {
  background: #e9f1fb;
}

.cefr-vocabulary-wrap .cefr-results-table td:nth-child(1) {
  color: #143655;
  font-weight: 700;
}

.cefr-vocabulary-wrap .cefr-results-table td:nth-child(2) {
  color: #456079;
}

.cefr-vocabulary-wrap .cefr-results-table td:nth-child(4),
.cefr-vocabulary-wrap .cefr-results-table th:nth-child(4),
.cefr-vocabulary-wrap .cefr-results-table td:last-child,
.cefr-vocabulary-wrap .cefr-results-table th:last-child {
  text-align: center;
}

.cefr-vocabulary-wrap .cefr-results-table th:nth-child(1) {
  width: 18%;
}

.cefr-vocabulary-wrap .cefr-results-table th:nth-child(2) {
  width: 18%;
}

.cefr-vocabulary-wrap .cefr-results-table th:nth-child(3) {
  width: 21%;
}

.cefr-vocabulary-wrap .cefr-results-table th:nth-child(4) {
  width: 10%;
}

.cefr-vocabulary-wrap .cefr-results-table th:nth-child(5) {
  width: 19%;
}

.cefr-vocabulary-wrap .cefr-results-table th:nth-child(6) {
  width: 14%;
}

.cefr-vocabulary-wrap .cefr-result-card {
  background: #ffffff;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 45, 76, 0.08);
  margin-bottom: 12px;
  padding: 14px;
}

.cefr-vocabulary-wrap .cefr-result-card__title {
  align-items: start;
  display: grid;
  gap: 6px 10px;
  grid-template-columns: 1fr auto;
  margin-bottom: 10px;
}

.cefr-vocabulary-wrap .cefr-result-card__title strong {
  color: #183653;
  font-size: 17px;
  grid-column: 1 / 2;
  line-height: 1.25;
}

.cefr-vocabulary-wrap .cefr-result-card__translation {
  color: #4c677f;
  font-size: 14px;
  grid-column: 1 / 2;
}

.cefr-vocabulary-wrap .cefr-result-card__title .cefr-badge {
  align-self: start;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  justify-self: end;
}

.cefr-vocabulary-wrap .cefr-result-card__meta {
  background: #f7fbff;
  border: 1px solid #e1ebf7;
  border-radius: 10px;
  color: #3a5470;
  display: grid;
  font-size: 14px;
  gap: 6px;
  margin-bottom: 10px;
  padding: 10px;
}

.cefr-vocabulary-wrap .cefr-back-link {
  margin-bottom: 14px;
}

.cefr-vocabulary-wrap .cefr-back-link a {
  color: #0a5f98;
  font-weight: 700;
  text-decoration: none;
}

.cefr-vocabulary-wrap .cefr-word-detail {
  background: #ffffff;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  padding: 20px;
}

.cefr-vocabulary-wrap .cefr-no-results-wrap {
  margin-bottom: 14px;
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-no-results-wrap .cefr-no-results {
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-word-detail--standalone {
  box-shadow: 0 8px 24px rgba(10, 36, 64, 0.08);
}

.cefr-vocabulary-wrap .cefr-entry-head {
  border-bottom: 2px solid #2d7be8;
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.cefr-vocabulary-wrap .cefr-entry-head__title {
  color: #1a2a3a;
  display: flex;
  flex-wrap: wrap;
  font-size: 36px;
  font-weight: 700;
  gap: 10px;
  line-height: 1.15;
  margin: 0;
}

.cefr-vocabulary-wrap .cefr-entry-head__dot {
  color: #1a2a3a;
  opacity: 0.7;
}

.cefr-vocabulary-wrap .cefr-entry-head__pos {
  color: #1a2a3a;
  font-size: 0.7em;
  font-weight: 600;
  text-transform: lowercase;
}

.cefr-vocabulary-wrap .cefr-entry-head__ipa {
  color: #4c5e72;
  font-size: 22px;
  margin: 8px 0 0;
}

.cefr-vocabulary-wrap .cefr-entry-head__ipa-wrap .cefr-entry-head__ipa {
  margin-top: 0;
}

.cefr-vocabulary-wrap .cefr-entry-field {
  margin-top: 8px;
}

.cefr-vocabulary-wrap .cefr-entry-field__label {
  color: #30485f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.cefr-vocabulary-wrap .cefr-entry-taxonomies {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cefr-vocabulary-wrap .cefr-entry-taxonomies__group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cefr-vocabulary-wrap .cefr-entry-taxonomies__label {
  color: #264869;
  font-weight: 700;
  min-width: 48px;
}

.cefr-vocabulary-wrap .cefr-entry-taxonomies__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cefr-vocabulary-wrap .cefr-topic-chip {
  background: #edf3fb;
  border-radius: 999px;
  color: #2a4f78;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
}

.cefr-vocabulary-wrap .cefr-entry-sense {
  background: #f7fafc;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.cefr-vocabulary-wrap .cefr-entry-sense__head {
  align-items: center;
  display: flex;
  gap: 10px;
}

.cefr-vocabulary-wrap .cefr-entry-sense__icon {
  color: #233547;
  display: inline-block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.cefr-vocabulary-wrap .cefr-entry-sense__title {
  color: #192937;
  font-size: 24px;
}

.cefr-vocabulary-wrap .cefr-entry-sense__pos {
  color: #314960;
  font-size: 15px;
  font-weight: 700;
  margin-top: 3px;
  text-transform: lowercase;
}

.cefr-vocabulary-wrap .cefr-entry-sense__text {
  color: #1e2f40;
  font-size: 21px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.cefr-vocabulary-wrap .cefr-entry-examples {
  border-top: 1px dashed #bfcfe0;
  margin-top: 10px;
  padding-top: 10px;
}

.cefr-vocabulary-wrap .cefr-entry-examples__mt {
  color: #1e2f40;
  margin: 0 0 6px;
}

.cefr-vocabulary-wrap .cefr-entry-examples__en {
  color: #4a6177;
  margin: 0;
}

.cefr-vocabulary-wrap .cefr-entry-forms {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.cefr-vocabulary-wrap .cefr-entry-forms__item {
  background: #f6f9fd;
  border: 1px solid #d8e3f2;
  border-radius: 10px;
  padding: 10px 12px;
}

.cefr-vocabulary-wrap .cefr-entry-forms__label {
  color: #48617a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cefr-vocabulary-wrap .cefr-entry-forms__value {
  color: #1f3244;
  font-size: 18px;
  font-weight: 700;
}

.cefr-vocabulary-wrap .cefr-entry-audio-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.cefr-vocabulary-wrap .cefr-entry-audio {
  background: #f9fbfe;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  padding: 10px;
}

.cefr-vocabulary-wrap .cefr-entry-audio__label {
  color: #30485f;
  font-weight: 700;
  margin: 0 0 6px;
}

.cefr-vocabulary-wrap .cefr-entry-audio-icons {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.cefr-vocabulary-wrap .cefr-entry-audio-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cefr-vocabulary-wrap .cefr-entry-audio-inline--word {
  margin-top: 10px;
}

.cefr-vocabulary-wrap .cefr-entry-audio-inline--sentence {
  border-top: 1px dashed #bfcfe0;
  margin-top: 10px;
  padding-top: 10px;
}

.cefr-vocabulary-wrap .cefr-entry-audio-inline__heading {
  color: #274866;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.cefr-vocabulary-wrap .cefr-sc-audio-btn {
  align-items: center;
  background: #0a5f98;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: transform 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
  width: 44px;
}

.cefr-vocabulary-wrap .cefr-sc-audio-btn--title {
  flex-shrink: 0;
  height: 40px;
  margin-left: 4px;
  transform: translateY(1px);
  width: 40px;
}

.cefr-vocabulary-wrap .cefr-sc-audio-btn:hover {
  transform: translateY(-1px);
}

.cefr-vocabulary-wrap .cefr-sc-audio-btn--title:hover {
  transform: translateY(0);
}

.cefr-vocabulary-wrap .cefr-sc-audio-btn.is-loading {
  opacity: 0.65;
}

.cefr-vocabulary-wrap .cefr-sc-audio-btn.is-playing {
  background: #0c8d4f;
}

.cefr-vocabulary-wrap .cefr-sc-audio-btn__icon {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

.cefr-vocabulary-wrap .cefr-sc-audio-iframe {
  border: 0;
  height: 1px;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.2s ease;
  width: 1px;
}

.cefr-vocabulary-wrap .cefr-sc-audio-iframe.is-visible {
  display: block;
  height: 166px;
  left: auto;
  opacity: 1;
  pointer-events: auto;
  position: relative;
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-entry-note {
  background: #f6f9fc;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  padding: 12px 14px;
}

.cefr-vocabulary-wrap .cefr-entry-note__label {
  color: #30485f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* Inline entry card in the results list — shares the visual language of
   Il-Vjaġġ it-Tajjeb. Only used by the accordion; the standalone entry
   page keeps its own .cefr-word-detail styling above. */
.cefr-vocabulary-wrap .cefr-row-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cefr-vocabulary-wrap .cefr-detail-toggle {
  background: transparent;
  border: 0;
  color: #FF6464;
  cursor: pointer;
  font-size: 16px;
  height: 30px;
  line-height: 1;
  padding: 0;
  width: 30px;
}

.cefr-vocabulary-wrap .cefr-detail-toggle:hover,
.cefr-vocabulary-wrap .cefr-detail-toggle:focus,
.cefr-vocabulary-wrap .cefr-detail-toggle.is-active {
  color: #0066cc;
}

/* The detail row is a full-width panel, not a data cell — neutralise the
   results-table cell rules that would otherwise centre and stripe it. */
.cefr-vocabulary-wrap .cefr-results-table tbody tr.cefr-detail-row:hover {
  transform: none;
}

.cefr-vocabulary-wrap .cefr-results-table tbody tr.cefr-detail-row > td,
.cefr-vocabulary-wrap .cefr-results-table tbody tr.cefr-detail-row:nth-child(odd) > td,
.cefr-vocabulary-wrap .cefr-results-table tbody tr.cefr-detail-row:nth-child(even) > td,
.cefr-vocabulary-wrap .cefr-results-table tbody tr.cefr-detail-row:hover > td {
  background: transparent;
  border-radius: 0;
  color: #1b1949;
  font-weight: 400;
  padding: 0 0 10px;
  text-align: left;
}

.cefr-vocabulary-wrap .cefr-detail-card-panel {
  background: transparent;
  padding: 0 0 10px;
}

.cefr-vocabulary-wrap .cefr-entry-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
}

.cefr-vocabulary-wrap .cefr-entry-card__head {
  align-items: center;
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding: 12px 20px;
}

.cefr-vocabulary-wrap .cefr-entry-card__head:not(:last-child) {
  border-bottom: 1px solid #e0e0e0;
}

.cefr-vocabulary-wrap .cefr-entry-card__identity {
  min-width: 0;
}

.cefr-vocabulary-wrap .cefr-entry-card__headline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cefr-vocabulary-wrap .cefr-entry-card__word {
  color: #1b1949;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.cefr-vocabulary-wrap .cefr-entry-card__pills {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cefr-vocabulary-wrap .cefr-entry-card__en {
  color: #1b1949;
  font-size: 14px;
  margin-top: 2px;
}

.cefr-vocabulary-wrap .cefr-entry-card__en span {
  color: #FF6464;
  display: inline-block;
  padding-right: 5px;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  position: relative;
}

.cefr-vocabulary-wrap .cefr-entry-card__body {
  padding: 10px 0 16px;
}

.cefr-vocabulary-wrap .cefr-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
}

.cefr-vocabulary-wrap .cefr-pill--pos {
  background: #FF6464;
  color: #ffffff;
}

.cefr-vocabulary-wrap .cefr-pill--topic {
  background: #ffcd33;
  color: #1b1949;
}

/* Level pill reuses the level-filter palette so the two controls read as one system */
.cefr-vocabulary-wrap .cefr-entry-card__pills .cefr-badge {
  border-radius: 999px;
  color: #1b1949;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  text-transform: uppercase;
}

.cefr-vocabulary-wrap .cefr-entry-card__pills .cefr-badge--a1 {
  background: #f2c18d;
}

.cefr-vocabulary-wrap .cefr-entry-card__pills .cefr-badge--a2 {
  background: #7ec7ce;
}

.cefr-vocabulary-wrap .cefr-entry-card__pills .cefr-badge--b1 {
  background: #f08d93;
}

.cefr-vocabulary-wrap .cefr-entry-card__pills .cefr-badge--b2 {
  background: #80bc91;
}

.cefr-vocabulary-wrap .cefr-entry-card__pills .cefr-badge--c1 {
  background: #8ea5dc;
}

.cefr-vocabulary-wrap .cefr-entry-card__pills .cefr-badge--c2 {
  background: #b48fca;
}

.cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms {
  background: transparent;
  border: 0;
  border-spacing: 0;
  margin-bottom: 0;
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms > tbody > tr,
.cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms > tbody > tr:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms > tbody > tr > th,
.cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms > tbody > tr > td {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  padding: 4px 20px;
  text-align: left;
  vertical-align: top;
}

.cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms > tbody > tr > th {
  color: #FF6464;
  white-space: nowrap;
  width: 120px;
}

.cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms > tbody > tr > td {
  color: #1b1949;
}

.cefr-vocabulary-wrap .cefr-entry-card__example {
  background: #f2f5f7;
  border-radius: 6px;
  margin: 12px 20px 0;
  padding: 12px 16px;
}

.cefr-vocabulary-wrap .cefr-entry-card__example-mt {
  color: #1b1949;
  font-size: 16px;
  margin: 0 0 4px;
}

.cefr-vocabulary-wrap .cefr-entry-card__example-en {
  color: #1b1949;
  font-size: 14px;
  margin: 0;
}

.cefr-vocabulary-wrap .cefr-entry-card__example-en span {
  color: #FF6464;
  display: inline-block;
  padding-right: 5px;
}

/* Share control — markup mirrors Il-Vjaġġ it-Tajjeb so the theme's
   niuopenShareIcon handler drives it with no extra JS. */
.cefr-vocabulary-wrap .cefr-entry-card__controls .btn-open-video-gallery {
  display: inline-block;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .btn-open-video-gallery .fas {
  border: 1px solid #FF6464;
  border-radius: 30px;
  color: #FF6464;
  font-size: 15px;
  height: 30px;
  line-height: 29px;
  text-align: center;
  width: 30px;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .btn-open-video-gallery:hover .fas,
.cefr-vocabulary-wrap .cefr-entry-card__controls .btn-open-video-gallery:focus .fas {
  background: #FF6464;
  color: #ffffff;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  left: auto;
  margin-right: 6px;
  padding: 5px;
  position: absolute;
  right: 100%;
  top: 0;
  z-index: 2;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap ul li {
  display: inline-block;
  margin: 0 5px;
  padding: 0;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap ul li:before {
  display: none;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap ul li a {
  background: #0066cc;
  border-bottom: none;
  border-radius: 50%;
  color: #ffffff;
  display: block;
  font-size: 15px;
  height: 30px;
  line-height: 27px;
  padding: 3px;
  text-align: center;
  width: 30px;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap ul li a:hover,
.cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap ul li a:focus {
  background: #FF6464;
  color: #ffffff;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .isma.kliem-sound-audio-url {
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: #1b1949;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 600;
  height: 40px;
  padding: 0 20px;
  user-select: none;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .isma.kliem-sound-audio-url span {
  display: inline-block;
  vertical-align: middle;
}

.cefr-vocabulary-wrap .cefr-entry-card__controls .isma.kliem-sound-audio-url i.fas {
  color: #FF6464;
  font-size: 18px;
  margin-left: 6px;
}

.cefr-vocabulary-wrap .cefr-detail-collapse {
  background: transparent;
  border: 0;
  color: #FF6464;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
}

.cefr-vocabulary-wrap .cefr-detail-collapse:hover,
.cefr-vocabulary-wrap .cefr-detail-collapse:focus {
  color: #0066cc;
}

@media (max-width: 768px) {
  .cefr-vocabulary-wrap .cefr-level-buttons {
    gap: 6px;
  }

  .cefr-vocabulary-wrap .cefr-level-btn {
    border-radius: 8px;
    min-width: 58px;
  }

  .cefr-vocabulary-wrap .cefr-page-status {
    min-width: auto;
  }

  .cefr-vocabulary-wrap .cefr-entry-head__title {
    font-size: 30px;
  }

  .cefr-vocabulary-wrap .cefr-entry-head__ipa {
    font-size: 19px;
  }

  .cefr-vocabulary-wrap .cefr-results-summary {
    align-items: flex-start;
    gap: 6px;
  }

  .cefr-vocabulary-wrap .cefr-results-summary__label {
    font-size: 15px;
  }

  .cefr-vocabulary-wrap .cefr-entry-forms,
  .cefr-vocabulary-wrap .cefr-entry-audio-grid,
  .cefr-vocabulary-wrap .cefr-filter-selects {
    grid-template-columns: 1fr;
  }

  .cefr-vocabulary-wrap .cefr-search-actions {
    justify-content: stretch;
  }

  .cefr-vocabulary-wrap #cefr-search-submit,
  .cefr-vocabulary-wrap #cefr-reset-filters {
    flex: 1;
  }

  .cefr-vocabulary-wrap .cefr-entry-audio-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .cefr-vocabulary-wrap .cefr-entry-card__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .cefr-vocabulary-wrap .cefr-entry-card__controls {
    width: 100%;
  }

  .cefr-vocabulary-wrap .cefr-entry-card__controls .share-cons-wrap {
    left: 0;
    margin-right: 0;
    right: auto;
    top: 38px;
  }

  .cefr-vocabulary-wrap .cefr-entry-card table.cefr-entry-card__forms > tbody > tr > th {
    width: 90px;
  }
}

/* ------------------------------------------------------------------
   Topic navigation, numbered pagination and the Info page.
   ------------------------------------------------------------------ */

/* Same carousel as the Il-Vjaġġ it-Tajjeb sub-category filter. */
.cefr-vocabulary-wrap .cefr-topic-bar {
  margin: 24px 65px 30px;
  position: relative;
}

.cefr-vocabulary-wrap .cefr-topic-bar:not(.slick-initialized) {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

.cefr-vocabulary-wrap .cefr-topic-chip {
  background: #0066cc;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.3;
  margin: 5px;
  padding: 25px 20px;
  text-align: center;
  transition: 0.1s all ease-in-out;
}

.cefr-vocabulary-wrap .cefr-topic-chip:hover,
.cefr-vocabulary-wrap .cefr-topic-chip:focus,
.cefr-vocabulary-wrap .cefr-topic-chip.is-active {
  background: #ff6464;
  color: #ffffff;
}

.cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 9;
}

.cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow.slick-disabled {
  opacity: 0.3;
  cursor: default;
}

.cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow.slick-prev {
  left: -55px;
}

.cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow.slick-next {
  right: -55px;
}

.cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow.slick-prev:before {
  background: url(../images/down-arrow.svg) no-repeat 50%;
  content: "";
  display: block;
  height: 20px;
  transform: rotate(90deg);
  width: 20px;
}

.cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow.slick-next:before {
  background: url(../images/down-arrow.svg) no-repeat 50%;
  content: "";
  display: block;
  height: 20px;
  transform: rotate(-90deg);
  width: 20px;
}

.cefr-vocabulary-wrap .cefr-topic-link {
  background: none;
  border: 0;
  color: #0066cc;
  display: inline-block;
  font-weight: 400;
  line-height: 1.3;
  padding: 0;
  text-align: left;
}

.cefr-vocabulary-wrap .cefr-topic-link + .cefr-topic-link:before {
  color: #6c6c6c;
  content: ",";
  margin-right: 4px;
}

.cefr-vocabulary-wrap .cefr-topic-link:hover,
.cefr-vocabulary-wrap .cefr-topic-link:focus {
  text-decoration: underline;
}

.cefr-vocabulary-wrap .cefr-col-topic {
  min-width: 230px;
}

.cefr-vocabulary-wrap a.cefr-details-btn {
  white-space: nowrap;
}

.cefr-vocabulary-wrap .cefr-result-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.cefr-vocabulary-wrap .cefr-pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.cefr-vocabulary-wrap .cefr-pagination:empty {
  display: none;
}

.cefr-vocabulary-wrap .cefr-pagination--top {
  margin: 8px 0 20px;
}

.cefr-vocabulary-wrap .cefr-pagination--bottom {
  margin: 24px 0 8px;
}

.cefr-vocabulary-wrap .cefr-pagination__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.cefr-vocabulary-wrap .cefr-page-number {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #1b1949;
  font-size: 15px;
  height: 36px;
  line-height: 1;
  min-width: 36px;
  padding: 0 10px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.cefr-vocabulary-wrap .cefr-page-number:hover,
.cefr-vocabulary-wrap .cefr-page-number:focus {
  background: #f2f5f7;
  color: #0a5f98;
}

.cefr-vocabulary-wrap .cefr-page-number.is-current {
  background: #0066cc;
  color: #ffffff;
  font-weight: 700;
}

.cefr-vocabulary-wrap .cefr-page-ellipsis {
  color: #6c6c6c;
  padding: 0 4px;
}

.cefr-vocabulary-wrap .cefr-entry-card--standalone {
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .cefr-vocabulary-wrap .cefr-topic-bar {
    margin: 20px 40px 24px;
  }

  .cefr-vocabulary-wrap .cefr-topic-chip {
    font-size: 12px;
    margin: 3px;
    padding: 15px 10px;
  }

  .cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow.slick-prev {
    left: -34px;
  }

  .cefr-vocabulary-wrap .cefr-topic-bar .slick-arrow.slick-next {
    right: -34px;
  }
}

/* Sortable column headers (Word, Translation, Part of speech) */
.cefr-vocabulary-wrap .cefr-results-table th.cefr-sortable {
  padding: 0;
}

.cefr-vocabulary-wrap .cefr-results-table th.cefr-sortable .cefr-sort-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 8px;
  letter-spacing: inherit;
  padding: 6px 20px;
  text-align: left;
  width: 100%;
}

.cefr-vocabulary-wrap .cefr-results-table th.cefr-sortable .cefr-sort-btn:hover,
.cefr-vocabulary-wrap .cefr-results-table th.cefr-sortable .cefr-sort-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

/* Neutral state: both arrows, dimmed. Active state: one arrow, full strength. */
.cefr-vocabulary-wrap .cefr-sort-indicator::before {
  content: "\2195";
  font-size: 0.85em;
  opacity: 0.55;
}

.cefr-vocabulary-wrap .cefr-results-table th.is-sorted .cefr-sort-indicator::before {
  opacity: 1;
}

.cefr-vocabulary-wrap .cefr-results-table th.is-sorted--asc .cefr-sort-indicator::before {
  content: "\2191";
}

.cefr-vocabulary-wrap .cefr-results-table th.is-sorted--desc .cefr-sort-indicator::before {
  content: "\2193";
}

/* The carousel reads in lower case throughout, "all" included. */
.cefr-vocabulary-wrap .cefr-topic-bar .cefr-topic-chip {
  text-transform: lowercase;
}
