.aaj-test-catalog,
.aaj-single-meta,
.aaj-single-navigation {
  --aaj-accent: #168BFF;
  --aaj-ink: #101820;
  --aaj-muted: #667085;
  --aaj-line: #E3E8EF;
  --aaj-soft: #F6F8FB;
  --aaj-hero-fit: contain;
  --aaj-hero-zoom: 1;
  --aaj-hero-overlay: .48;
  --aaj-hero-position-x: 50%;
  --aaj-hero-position-y: 50%;
  --aaj-hero-height: 240px;
  --aaj-hero-parallax-y: 0px;
  --aaj-hero-bottom-curtain: 0px;
  --aaj-hero-pull-up: 0px;
  --aaj-filter-section-gap: 48px;
  font-family: inherit;
}

.aaj-test-catalog *,
.aaj-single-meta *,
.aaj-single-navigation * {
  box-sizing: border-box;
}

.aaj-test-catalog {
  width: 100%;
  max-width: none;
  margin: var(--aaj-hero-pull-up) 0 0;
  padding: 0 0 64px;
}

.aaj-category-hero {
  position: relative;
  display: flex;
  width: 100vw;
  height: var(--aaj-hero-height);
  min-height: 180px;
  margin-left: calc(50% - 50vw);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #101820;
}

.aaj-category-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(115deg, #101820, #263746);
  pointer-events: none;
}

.aaj-category-hero__media img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-position: var(--aaj-hero-position-x) var(--aaj-hero-position-y);
  will-change: transform;
}

.aaj-category-hero__backdrop {
  inset: -10%;
  width: 120% !important;
  height: 120% !important;
  object-fit: cover;
  filter: blur(22px) saturate(.82);
  opacity: .88;
  transform: translate3d(0, calc(var(--aaj-hero-parallax-y) * .45), 0) scale(1.08);
}

.aaj-category-hero__image {
  inset: 0;
  object-fit: var(--aaj-hero-fit);
  transform: translate3d(0, var(--aaj-hero-parallax-y), 0) scale(var(--aaj-hero-zoom));
  transform-origin: var(--aaj-hero-position-x) var(--aaj-hero-position-y);
}

.aaj-category-hero__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(8, 15, 22, var(--aaj-hero-overlay));
  pointer-events: none;
}

.aaj-category-hero__bottom-curtain {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: var(--aaj-hero-bottom-curtain);
  background: #fff;
  pointer-events: none;
  will-change: height;
}

.aaj-category-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1170px, calc(100% - 32px));
  text-align: center;
}

.aaj-category-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.aaj-catalog-shell {
  position: relative;
  z-index: 4;
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
  background: #fff;
}

@media (min-width: 1025px) {
  .aaj-catalog-shell {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

.aaj-filter-panel {
  padding: 48px 0 26px;
  background: #fff;
  border-bottom: 1px solid var(--aaj-line);
}

.aaj-filter-heading {
  width: 100%;
  max-width: none;
  margin-bottom: 32px;
}

.aaj-filter-heading h2 {
  margin: 0;
  color: var(--aaj-ink);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.aaj-filter-heading p {
  margin: 8px 0 0;
  color: var(--aaj-muted);
  font-size: 15px;
  line-height: 1.55;
  white-space: nowrap;
}

.aaj-filter-form,
.aaj-filter-group {
  margin: 0;
}

.aaj-filter-group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.aaj-filter-form > .aaj-filter-group + .aaj-filter-group {
  margin-top: var(--aaj-filter-section-gap) !important;
}

.aaj-filter-group legend {
  width: 100%;
  margin-bottom: 11px;
  color: var(--aaj-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aaj-body-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.aaj-body-option,
.aaj-pill-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.aaj-body-option input,
.aaj-pill-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.aaj-body-option__surface {
  display: flex;
  min-height: 98px;
  padding: 10px 8px 9px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--aaj-line);
  border-radius: 10px;
  background: #fff;
  color: var(--aaj-ink);
  text-align: center;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.aaj-body-option:hover .aaj-body-option__surface {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--aaj-accent) 38%, var(--aaj-line));
  box-shadow: 0 8px 24px rgba(16, 24, 32, .06);
}

.aaj-body-option input:checked + .aaj-body-option__surface {
  border-color: var(--aaj-accent);
  background: color-mix(in srgb, var(--aaj-accent) 7%, #fff);
  color: var(--aaj-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--aaj-accent) 15%, transparent);
}

.aaj-body-option__icon {
  display: block;
  width: 106px;
  max-width: 88%;
  height: 38px;
  color: currentColor;
}

.aaj-vehicle-icon {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask-image: var(--aaj-vehicle-icon);
  mask-image: var(--aaj-vehicle-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.aaj-vehicle-icon--suv-crossover-off-road { --aaj-vehicle-icon: url('../icons/suv-crossover-off-road.png'); }
.aaj-vehicle-icon--sedan { --aaj-vehicle-icon: url('../icons/sedan.png'); }
.aaj-vehicle-icon--kombi { --aaj-vehicle-icon: url('../icons/kombi.png'); }
.aaj-vehicle-icon--hatchback { --aaj-vehicle-icon: url('../icons/hatchback.png'); }
.aaj-vehicle-icon--coupe-kabriolet { --aaj-vehicle-icon: url('../icons/coupe-kabriolet.png'); }
.aaj-vehicle-icon--mpv-osobny-van { --aaj-vehicle-icon: url('../icons/mpv-osobny-van.png'); }
.aaj-vehicle-icon--pick-up { --aaj-vehicle-icon: url('../icons/pick-up.png'); }
.aaj-vehicle-icon--dodavka-uzitkove { --aaj-vehicle-icon: url('../icons/dodavka-uzitkove.png'); }
.aaj-vehicle-icon--karavan-obytne {
  --aaj-vehicle-icon: url('../icons/karavan-obytne.png');
  transform: scaleX(1.18);
  transform-origin: center;
}

.aaj-body-option__label {
  color: inherit;
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.18;
}

.aaj-body-option--all .aaj-body-option__surface {
  gap: 0;
}

.aaj-body-option--all .aaj-body-option__label {
  font-size: 13px;
  font-weight: 800;
}

.aaj-pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aaj-pill-option span {
  display: inline-flex;
  min-height: 36px;
  padding: 8px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--aaj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--aaj-ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.aaj-pill-option:hover span {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--aaj-accent) 45%, var(--aaj-line));
}

.aaj-pill-option input:checked + span {
  border-color: var(--aaj-accent);
  background: var(--aaj-accent);
  color: #fff;
}

.aaj-body-option input:focus-visible + .aaj-body-option__surface,
.aaj-pill-option input:focus-visible + span,
.aaj-reset-button:focus-visible,
.aaj-submit-button:focus-visible,
.aaj-load-more:focus-visible,
.aaj-view-button:focus-visible,
.aaj-test-card a:focus-visible,
.aaj-badge:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--aaj-accent) 35%, transparent);
  outline-offset: 3px;
}

.aaj-filter-footer {
  position: relative;
  display: flex;
  margin-top: var(--aaj-filter-section-gap) !important;
  padding-top: 32px !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--aaj-line) !important;
}

.aaj-filter-footer::before {
  content: none !important;
}

.aaj-result-count {
  margin: 0;
  color: var(--aaj-muted);
  font-size: 13px;
}

.aaj-result-count strong {
  color: var(--aaj-ink);
  font-size: 15px;
}

.aaj-filter-tools,
.aaj-filter-actions,
.aaj-view-switch {
  display: flex;
  align-items: center;
}

.aaj-filter-tools {
  gap: 14px;
}

.aaj-filter-actions {
  gap: 10px;
}

.aaj-view-switch {
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--aaj-line);
  border-radius: 9px;
  background: var(--aaj-soft);
}

.aaj-view-button {
  appearance: none;
  display: inline-flex;
  width: 34px;
  height: 32px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7B8492;
  cursor: pointer;
}

.aaj-view-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.aaj-view-button.is-active {
  background: #fff;
  color: var(--aaj-ink);
  box-shadow: 0 2px 8px rgba(16, 24, 32, .08);
}

.aaj-reset-button,
.aaj-submit-button,
.aaj-load-more {
  appearance: none;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.aaj-reset-button {
  border: 0;
  background: transparent;
  color: var(--aaj-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.aaj-submit-button,
.aaj-load-more {
  border: 1px solid var(--aaj-ink);
  background: var(--aaj-ink);
  color: #fff;
}

.aaj-reset-button:hover,
.aaj-submit-button:hover,
.aaj-load-more:hover {
  transform: translateY(-1px);
}

.aaj-submit-button:hover,
.aaj-load-more:hover {
  border-color: var(--aaj-accent);
  background: var(--aaj-accent);
}

.aaj-is-enhanced .aaj-submit-button {
  display: none;
}

.aaj-results-status {
  min-height: 20px;
  margin-top: 14px;
  color: var(--aaj-muted);
  font-size: 13px;
}

.aaj-results-grid {
  display: block;
  transition: opacity .18s ease;
}

.aaj-results-grid--updating {
  opacity: .42;
}

.aaj-test-card {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--aaj-line);
  background: #fff;
}

.aaj-test-card:first-child {
  padding-top: 8px;
}

.aaj-test-card__media {
  position: relative;
  display: block;
  align-self: start;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: var(--aaj-soft);
}

.aaj-test-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.aaj-test-card:hover .aaj-test-card__media img {
  transform: scale(1.025);
}

.aaj-test-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #9AA4B2;
}

.aaj-test-card__placeholder svg,
.aaj-test-card__placeholder .aaj-vehicle-icon {
  width: 60%;
  max-width: 210px;
  height: 56%;
}

.aaj-test-card__type {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(16, 24, 32, .88);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.aaj-test-card__body {
  display: flex;
  min-width: 0;
  padding: 2px 0;
  flex-direction: column;
}

.aaj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aaj-badge {
  display: inline-flex;
  min-height: 25px;
  padding: 5px 8px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--aaj-accent) 28%, var(--aaj-line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--aaj-accent) 7%, #fff);
  color: var(--aaj-accent) !important;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .03em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.aaj-badge--power {
  border-color: #D8DEE8;
  background: #F5F7FA;
  color: var(--aaj-ink) !important;
}

.aaj-badge--type {
  border-color: #D8E0E7;
  background: #F1F4F7;
  color: var(--aaj-ink) !important;
}

.aaj-test-card__title {
  margin: 12px 0 8px;
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.16;
  letter-spacing: -.028em;
}

.aaj-test-card__title a {
  color: var(--aaj-ink) !important;
  text-decoration: none !important;
}

.aaj-test-card__excerpt {
  max-width: 720px;
  margin: 0;
  color: var(--aaj-muted);
  font-size: 14px;
  line-height: 1.62;
}

.aaj-test-card__footer {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aaj-test-card__footer time {
  color: var(--aaj-muted);
  font-size: 12px;
}

.aaj-test-card__read {
  color: var(--aaj-ink) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

.aaj-test-card__read span {
  display: inline-block;
  margin-left: 4px;
  transition: transform .18s ease;
}

.aaj-test-card__read:hover span {
  transform: translateX(3px);
}

/* Three-column magazine grid view. */
.aaj-test-catalog[data-view="grid"] .aaj-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.aaj-test-catalog[data-view="grid"] .aaj-test-card {
  display: flex;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--aaj-line);
  border-radius: 10px;
}

.aaj-test-catalog[data-view="grid"] .aaj-test-card:first-child {
  padding-top: 0;
}

.aaj-test-catalog[data-view="grid"] .aaj-test-card__media {
  width: 100%;
  border-radius: 0;
}

.aaj-test-catalog[data-view="grid"] .aaj-test-card__body {
  min-height: 260px;
  padding: 17px 18px 16px;
}

.aaj-test-catalog[data-view="grid"] .aaj-test-card__title {
  margin-top: 10px;
  font-size: 21px;
}

.aaj-test-catalog[data-view="grid"] .aaj-test-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.aaj-load-more-wrap {
  display: flex;
  margin-top: 30px;
  justify-content: center;
}

.aaj-load-more[disabled] {
  opacity: .55;
  cursor: wait;
}

.aaj-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.aaj-load-more,
.aaj-load-more:link,
.aaj-load-more:visited,
.aaj-load-more:focus,
.aaj-load-more:active,
.aaj-load-more:hover {
  color: #fff !important;
  text-decoration: none;
}

.aaj-load-more.is-loading {
  opacity: .55;
  pointer-events: none;
  cursor: wait;
}

.aaj-empty-state {
  grid-column: 1 / -1;
  padding: 44px 24px;
  border: 1px dashed #CCD3DE;
  border-radius: 10px;
  background: var(--aaj-soft);
  text-align: center;
}

.aaj-empty-state__icon {
  display: inline-block;
  width: 130px;
  color: #A7B0BD;
}

.aaj-empty-state h3 {
  margin: 12px 0 6px;
  color: var(--aaj-ink);
  font-size: 22px;
}

.aaj-empty-state p {
  margin: 0;
  color: var(--aaj-muted);
}

.aaj-single-meta {
  margin: 0 0 22px;
  padding: 14px 0 0;
}

.aaj-admin-warning {
  padding: 16px 18px;
  border-left: 4px solid #D63638;
  background: #fff;
  color: #1D2327;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .aaj-filter-heading p {
    white-space: normal;
  }

  .aaj-test-card {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .aaj-test-catalog[data-view="grid"] .aaj-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .aaj-body-options {
    display: flex;
    margin-right: -16px;
    padding-right: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .aaj-body-options::-webkit-scrollbar {
    display: none;
  }

  .aaj-body-option {
    flex: 0 0 136px;
    scroll-snap-align: start;
  }

  .aaj-body-option__surface {
    min-height: 92px;
  }

  .aaj-body-option__icon {
    width: 92px;
    height: 33px;
  }
}

@media (max-width: 767px) {
  .aaj-test-catalog {
    --aaj-filter-section-gap: 36px;
    padding-bottom: 42px;
  }

  .aaj-view-switch {
    display: none !important;
  }

  .aaj-category-hero {
    height: clamp(170px, var(--aaj-hero-height), 280px);
    min-height: 170px;
  }

  .aaj-catalog-shell {
    width: min(100% - 28px, 1170px);
  }

  .aaj-filter-panel {
    padding: 36px 0 22px;
  }

  .aaj-filter-heading {
    margin-bottom: 24px;
  }

  .aaj-filter-heading h2 {
    font-size: 29px;
  }

  .aaj-filter-heading p {
    font-size: 14px;
  }

  .aaj-body-option {
    flex-basis: 126px;
  }

  .aaj-body-option__surface {
    min-height: 86px;
    padding: 9px 7px 8px;
  }

  .aaj-body-option__icon {
    width: 82px;
    height: 29px;
  }

  .aaj-body-option__label {
    font-size: 11px;
  }

  .aaj-pill-options {
    display: flex;
    margin-right: -14px;
    padding-right: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .aaj-pill-options::-webkit-scrollbar {
    display: none;
  }

  .aaj-filter-footer {
    padding-top: 24px !important;
    align-items: flex-start;
    flex-direction: column;
  }

  .aaj-filter-tools {
    width: 100%;
    justify-content: flex-end;
  }

  .aaj-test-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .aaj-test-card__media {
    width: 100%;
  }

  .aaj-test-card__title {
    margin-top: 10px;
    font-size: 23px;
  }

  .aaj-test-card__excerpt {
    font-size: 13px;
  }

  /* Mobile always uses the card grid presentation; the view switch is intentionally disabled. */
  .aaj-test-catalog .aaj-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .aaj-test-catalog .aaj-test-card {
    display: flex;
    min-width: 0;
    padding: 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--aaj-line);
    border-radius: 10px;
  }

  .aaj-test-catalog .aaj-test-card:first-child {
    padding-top: 0;
  }

  .aaj-test-catalog .aaj-test-card__media {
    width: 100%;
    border-radius: 0;
  }

  .aaj-test-catalog .aaj-test-card__body {
    min-height: 0;
    padding: 17px 18px 16px;
  }

  .aaj-test-catalog .aaj-test-card__title {
    margin-top: 10px;
    font-size: 21px;
  }

  .aaj-test-catalog[data-view="grid"] .aaj-results-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .aaj-test-catalog[data-view="grid"] .aaj-test-card__body {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aaj-category-hero__media img,
  .aaj-category-hero__bottom-curtain,
  .aaj-test-card__media img,
  .aaj-body-option__surface,
  .aaj-pill-option span,
  .aaj-reset-button,
  .aaj-submit-button,
  .aaj-load-more {
    transition: none !important;
  }
}

/* AUTO A JA 1.8.0 - unified single-test navigation and metadata */
.aaj-single-navigation {
  --aaj-accent: #168BFF;
  --aaj-ink: #101820;
  --aaj-muted: #667085;
  --aaj-line: #E3E8EF;
  display: grid;
  margin: 0 0 24px;
  padding: 18px 0 0;
  gap: 12px;
  border-top: 1px solid var(--aaj-line);
  font-family: inherit;
}

.aaj-single-navigation * {
  box-sizing: border-box;
}

.aaj-all-tests-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  color: var(--aaj-ink) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
}

.aaj-all-tests-link:focus-visible,
.aaj-badge:focus-visible {
  outline: 2px solid rgba(22, 139, 255, .42);
  outline-offset: 2px;
}

.aaj-similar-tests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.aaj-similar-tests__label {
  color: var(--aaj-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}


.aaj-single-breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.aaj-single-breadcrumb a {
  color: inherit !important;
  text-decoration: none !important;
}

.aaj-single-breadcrumb__separator {
  opacity: .55;
}

@media (max-width: 767px) {
  .aaj-single-navigation {
    margin-bottom: 20px;
    padding-top: 16px;
  }

  .aaj-similar-tests {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* AUTO A JA 1.8.8 - server-rendered classification only */
body.autoaja-test-post .aaj-single-classification {
  margin: 20px 0 24px;
  font-family: inherit;
}

body.autoaja-test-post .aaj-single-classification *,
body.autoaja-test-post .aaj-single-classification .aaj-badges {
  box-sizing: border-box;
}

body.autoaja-test-post .aaj-single-classification .aaj-badges {
  margin: 0;
}

@media (max-width: 767px) {
  body.autoaja-test-post .aaj-single-classification {
    margin: 16px 0 20px;
  }
}


/* AUTO A JA 1.8.2 - unify single article classification badges with light blue background */
body.autoaja-test-post .aaj-single-classification .aaj-badge,
body.autoaja-test-post .aaj-single-classification .aaj-badge--power,
body.autoaja-test-post .aaj-single-classification .aaj-badge--type {
  border-color: #BFD5F2;
  background: #EDF5FF;
  color: var(--aaj-accent) !important;
}

body.autoaja-test-post .aaj-single-classification .aaj-badge:hover,
body.autoaja-test-post .aaj-single-classification .aaj-badge--power:hover,
body.autoaja-test-post .aaj-single-classification .aaj-badge--type:hover {
  border-color: #BFD5F2;
  background: #EDF5FF;
  color: var(--aaj-accent) !important;
}


/* AUTO A JA 1.8.3 - unified brand-blue labels and temporary hidden result count */
.aaj-result-count {
  display: none !important;
}

.aaj-test-card__type,
.aaj-badge,
.aaj-badge--power,
.aaj-badge--type,
body.autoaja-test-post .aaj-single-classification .aaj-badge,
body.autoaja-test-post .aaj-single-classification .aaj-badge--power,
body.autoaja-test-post .aaj-single-classification .aaj-badge--type {
  border-color: var(--aaj-accent) !important;
  background: var(--aaj-accent) !important;
  color: #ffffff !important;
}

.aaj-test-card__type {
  padding: 6px 10px;
  border: 1px solid var(--aaj-accent);
  box-shadow: 0 4px 14px rgba(22, 139, 255, .18);
}

.aaj-badge:hover,
.aaj-badge--power:hover,
.aaj-badge--type:hover,
body.autoaja-test-post .aaj-single-classification .aaj-badge:hover,
body.autoaja-test-post .aaj-single-classification .aaj-badge--power:hover,
body.autoaja-test-post .aaj-single-classification .aaj-badge--type:hover {
  border-color: var(--aaj-accent) !important;
  background: var(--aaj-accent) !important;
  color: #ffffff !important;
}


/* AUTO A JA 1.8.4 - requested catalog-only alignment and badge styling */
.aaj-test-catalog .aaj-filter-tools {
  margin-left: auto;
}

.aaj-test-catalog .aaj-test-card__type {
  min-height: 0;
  padding: 4px 7px;
  border: 1px solid #168BFF !important;
  border-radius: 2px;
  background: #168BFF !important;
  color: #FFFFFF !important;
  box-shadow: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.aaj-test-catalog .aaj-test-card__body .aaj-badge,
.aaj-test-catalog .aaj-test-card__body .aaj-badge--power {
  border-color: #BFD5F2 !important;
  background: #EDF5FF !important;
  color: #168BFF !important;
}

.aaj-test-catalog .aaj-test-card__body .aaj-badge:hover,
.aaj-test-catalog .aaj-test-card__body .aaj-badge--power:hover {
  border-color: #BFD5F2 !important;
  background: #EDF5FF !important;
  color: #168BFF !important;
}


/* AUTO A JA 1.8.5 - ensure single test classification badges match catalog badge color */
.aaj-single-classification .aaj-badge,
.aaj-single-classification .aaj-badge--power,
.aaj-single-classification .aaj-badge--type {
  border-color: #BFD5F2 !important;
  background: #EDF5FF !important;
  color: #168BFF !important;
}

.aaj-single-classification .aaj-badge:hover,
.aaj-single-classification .aaj-badge--power:hover,
.aaj-single-classification .aaj-badge--type:hover {
  border-color: #BFD5F2 !important;
  background: #EDF5FF !important;
  color: #168BFF !important;
}
