.tests-landing {
  --tests-blue: #2c709b;
  --tests-blue-dark: #215777;
  --tests-ink: var(--ink);
  --tests-muted: var(--ink-2);
  --tests-line: #cfdae2;
  --tests-soft: #f3f6f8;
  background: #fff;
  overflow-x: clip;
}

.tests-landing + .bf-footer { margin-top: 0; }

.tests-hero-shell { padding-bottom: 0; }

.tests-hero {
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(8,14,20,.95) 0%, rgba(13,25,35,.9) 51%, rgba(25,62,83,.58) 76%, rgba(7,13,19,.76) 100%),
    radial-gradient(680px 320px at 80% 48%, rgba(58,126,162,.24), transparent 70%),
    url("../img/home/testing-led-detail.jpg");
  background-position: center, center, 67% center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--radius-lg);
  color: #fff;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(190px, .34fr);
  margin-top: 28px;
  min-height: 310px;
  overflow: hidden;
  padding: clamp(32px, 4vw, 46px) clamp(28px, 4vw, 54px);
}

.tests-hero-copy { max-width: 770px; }

.tests-eyebrow,
.tests-landing .eyebrow-text {
  display: block;
  font-size: var(--type-eyebrow-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--type-eyebrow-tracking);
  line-height: var(--type-eyebrow-line);
  text-transform: uppercase;
}

.tests-eyebrow {
  color: #c5dbe4;
  margin-bottom: 16px;
}

.tests-hero h1 {
  color: #fff;
  font-size: var(--type-page-title-size);
  font-weight: var(--font-weight-light);
  letter-spacing: var(--type-page-title-tracking);
  line-height: var(--type-page-title-line);
  margin: 0 0 14px;
}

.tests-hero-copy > p {
  color: rgba(255,255,255,.82);
  font-size: var(--type-lede-size);
  line-height: var(--type-lede-line);
  margin: 0;
  max-width: 700px;
}

.tests-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tests-button,
.tests-category-actions a,
.tests-inline-button,
.tests-note-actions a,
.tests-note-actions button {
  align-items: center;
  border-radius: var(--radius-sm);
  display: inline-flex;
  font-size: var(--type-button-size);
  font-weight: var(--font-weight-bold);
  justify-content: center;
  letter-spacing: var(--type-button-tracking);
  line-height: var(--type-button-line);
  min-height: var(--control-height);
  padding: 9px var(--control-padding-x);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.tests-button { border: 1px solid rgba(255,255,255,.5); }
.tests-button.primary { background: #fff; border-color: #fff; color: #223c45; }
.tests-button.secondary { background: rgba(255,255,255,.08); color: #fff; }
.tests-button.primary:hover,
.tests-button.primary:focus-visible { background: #eaf0f2; color: #172c33; text-decoration: none; }
.tests-button.secondary:hover,
.tests-button.secondary:focus-visible { background: rgba(255,255,255,.18); color: #fff; text-decoration: none; }

.tests-hero-proof {
  border-left: 1px solid rgba(255,255,255,.28);
  padding: 12px 0 12px clamp(26px, 4vw, 48px);
}

.tests-hero-proof strong {
  color: #fff;
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.tests-hero-proof span {
  color: rgba(255,255,255,.78);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 9px;
  max-width: 170px;
}

.tests-vehicle-context-slot {
  margin-bottom: 20px;
  margin-top: 18px;
}

.tests-vehicle-context-slot .bf-vehicle-applicability > div:first-child > strong { font-size: 14px; }

.tests-band { border-top: 1px solid var(--tests-line); }

.tests-category-section {
  background: #f4f7f9;
  padding: clamp(56px, 5vw, 72px) 0;
}

.tests-section-heading {
  margin-bottom: 28px;
  max-width: 880px;
}

.tests-section-heading.compact { margin-bottom: 25px; }

.tests-landing .eyebrow-text {
  color: var(--tests-blue);
  margin-bottom: 7px;
}

.tests-section-heading h2,
.tests-evidence-copy h2 {
  color: var(--tests-ink);
  font-size: var(--type-section-title-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--type-section-title-tracking);
  line-height: var(--type-section-title-line);
  margin: 0;
}

.tests-section-heading > p {
  color: var(--tests-muted);
  font-size: var(--type-body-small-size);
  line-height: var(--type-body-small-line);
  margin: 10px 0 0;
  max-width: 780px;
}

.tests-category-list {
  display: grid;
  gap: clamp(18px, 2vw, 22px);
}

.tests-category-row {
  --tests-accent: #6d4b8e;
  --tests-accent-hover: #583b75;
  --tests-accent-soft: rgba(109,75,142,.22);
  --tests-accent-tint: #f4f0f7;
  --tests-accent-line: #ad98bf;
  --tests-icon-image: url("../img/custom-icons/LED-dark.png");
  background: #fff;
  border: 1px solid #c5d2db;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(15,35,50,.04), 0 7px 16px rgba(15,35,50,.06);
  display: grid;
  grid-template-columns: minmax(235px, .42fr) minmax(0, 1fr);
  min-height: 216px;
  overflow: hidden;
  position: relative;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.tests-category-halogen {
  --tests-accent: #a64949;
  --tests-accent-hover: #873a3a;
  --tests-accent-soft: rgba(166,73,73,.2);
  --tests-accent-tint: #faf0f0;
  --tests-accent-line: #c18c8c;
  --tests-icon-image: url("../img/custom-icons/Halogen-dark.png");
}

.tests-category-hid {
  --tests-accent: #355f91;
  --tests-accent-hover: #294c75;
  --tests-accent-soft: rgba(53,95,145,.2);
  --tests-accent-tint: #eef3f8;
  --tests-accent-line: #829fbe;
  --tests-icon-image: url("../img/custom-icons/HID-AM-dark.png");
}

.tests-category-xenon {
  --tests-accent: #386f77;
  --tests-accent-hover: #2c5960;
  --tests-accent-soft: rgba(56,111,119,.2);
  --tests-accent-tint: #edf5f5;
  --tests-accent-line: #84a8ad;
  --tests-icon-image: url("../img/custom-icons/HID-dark.png");
}

.tests-category-media {
  background: #182733;
  margin: 0;
  min-height: 216px;
  overflow: hidden;
  position: relative;
}

.tests-category-media::after {
  background: linear-gradient(135deg, var(--tests-accent-soft), rgba(10,18,24,.12));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 200ms ease;
}

.tests-category-media > img {
  filter: brightness(.88) saturate(.9);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: filter 200ms ease, transform 300ms ease;
  width: 100%;
}

.tests-category-icon {
  align-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--tests-accent-line);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(6,16,24,.16);
  display: flex;
  height: 54px;
  justify-content: center;
  left: 18px;
  position: absolute;
  top: 18px;
  width: 54px;
  z-index: 1;
}

.tests-category-icon::before {
  background: var(--tests-accent);
  content: "";
  height: 40px;
  -webkit-mask: var(--tests-icon-image) center / contain no-repeat;
  mask: var(--tests-icon-image) center / contain no-repeat;
  width: 28px;
}

.tests-category-icon img {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.tests-category-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(24px, 2.8vw, 36px);
}

.tests-category-count {
  align-items: baseline;
  color: #647888;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 7px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.tests-category-count strong {
  color: var(--tests-accent);
  font-size: 18px;
  line-height: 1;
}

.tests-category-copy h3 {
  color: var(--tests-ink);
  font-size: clamp(25px, 2vw, 27px);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 10px;
}

.tests-category-copy > p {
  color: var(--tests-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.tests-category-actions {
  align-items: center;
  border-top: 1px solid #d9e1e6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.tests-category-actions a {
  background: var(--tests-accent-tint);
  border: 1px solid var(--tests-accent-line);
  color: var(--tests-accent);
  min-height: 38px;
}

.tests-category-actions .tests-category-primary {
  background: var(--tests-accent);
  border-color: var(--tests-accent);
  color: #fff;
}

.tests-category-actions a:hover,
.tests-category-actions a:focus-visible {
  background: var(--tests-accent);
  border-color: var(--tests-accent);
  color: #fff;
  text-decoration: none;
}

.tests-category-actions .tests-category-primary:hover,
.tests-category-actions .tests-category-primary:focus-visible {
  background: var(--tests-accent-hover);
  border-color: var(--tests-accent-hover);
  color: #fff;
}

.tests-route-section {
  background: #eaf1f5;
  padding: clamp(56px, 5vw, 68px) 0;
}

.tests-route-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tests-route-card {
  background: rgba(255,255,255,.8);
  border: 1px solid var(--tests-line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px 24px 20px;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.tests-route-card > span {
  color: var(--tests-blue);
  font-size: var(--type-eyebrow-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--type-eyebrow-tracking);
  line-height: var(--type-eyebrow-line);
  text-transform: uppercase;
}

.tests-route-card h3 {
  color: var(--tests-ink);
  font-size: var(--type-card-title-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--type-card-title-tracking);
  line-height: var(--type-card-title-line);
  margin: 9px 0;
}

.tests-route-card p {
  color: var(--tests-muted);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  margin: 0 0 18px;
}

.tests-route-card a {
  border-top: 2px solid var(--tests-blue);
  color: var(--tests-blue-dark);
  font-size: var(--type-button-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--type-button-tracking);
  line-height: var(--type-button-line);
  margin-top: auto;
  padding-top: 13px;
  text-transform: uppercase;
}

.tests-route-card:hover,
.tests-route-card:focus-within {
  background: #fff;
  border-color: #b9cbd7;
}

.tests-evidence-section {
  background: #fff;
  padding: clamp(58px, 5vw, 72px) 0;
}

.tests-evidence {
  align-items: center;
  display: grid;
  gap: clamp(38px, 5vw, 72px);
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
}

.tests-evidence-media {
  min-height: 410px;
  position: relative;
}

.tests-evidence-photo {
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15,35,50,.12);
  margin: 0;
  overflow: hidden;
  position: absolute;
}

.tests-evidence-photo-main { inset: 0 17% 9% 0; }

.tests-evidence-photo-secondary {
  bottom: 0;
  height: 43%;
  right: 0;
  width: 47%;
}

.tests-evidence-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tests-evidence-photo figcaption {
  background: linear-gradient(180deg, transparent, rgba(12,20,28,.86));
  bottom: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  left: 0;
  letter-spacing: .06em;
  padding: 48px 17px 14px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
}

.tests-evidence-copy h2 { margin-top: 0; }

.tests-evidence-copy > p {
  color: var(--tests-muted);
  font-size: var(--type-lede-size);
  line-height: var(--type-lede-line);
  margin: 13px 0 22px;
  max-width: 700px;
}

.tests-measure-list {
  border-top: 1px solid var(--tests-line);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tests-measure-list li {
  border-bottom: 1px solid var(--tests-line);
  padding: 14px 0;
}

.tests-measure-list strong {
  color: var(--tests-ink);
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.tests-measure-list p {
  color: var(--tests-muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}

.tests-inline-button {
  background: var(--tests-blue);
  border: 1px solid var(--tests-blue);
  color: #fff;
  margin-top: 20px;
}

.tests-inline-button:hover,
.tests-inline-button:focus-visible {
  background: var(--tests-blue-dark);
  border-color: var(--tests-blue-dark);
  color: #fff;
  text-decoration: none;
}

.tests-note-section {
  background: #edf3f6;
  padding: clamp(40px, 4vw, 52px) 0;
}

.tests-note {
  align-items: center;
  background: #162938;
  border: 1px solid #294557;
  border-radius: var(--radius);
  box-shadow: 0 5px 16px rgba(15,35,50,.12);
  color: rgba(255,255,255,.78);
  display: grid;
  gap: 20px 34px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 26px 30px 22px;
}

.tests-note > div:first-child > span {
  color: #9bc2d5;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.tests-note h2 {
  color: #fff;
  font-size: var(--type-card-title-size);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--type-card-title-tracking);
  line-height: var(--type-card-title-line);
  margin: 0;
}

.tests-note [data-tests-bottom-selection] {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.tests-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tests-note-actions [hidden] { display: none; }

.tests-note-actions a,
.tests-note-actions button {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.tests-note-actions .tests-note-primary {
  background: #2c7fac;
  border-color: #2c7fac;
}

.tests-note-actions a:hover,
.tests-note-actions a:focus-visible,
.tests-note-actions button:hover,
.tests-note-actions button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #173244;
  text-decoration: none;
}

.tests-note-warning {
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.6);
  font-size: 10px;
  grid-column: 1 / -1;
  line-height: 1.5;
  margin: 0;
  padding-top: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .tests-category-row:hover,
  .tests-category-row:focus-within {
    border-color: #aebfca;
    box-shadow: 0 3px 8px rgba(15,35,50,.06), 0 12px 24px rgba(15,35,50,.09);
    transform: translateY(-2px);
  }

  .tests-category-row:hover .tests-category-media > img,
  .tests-category-row:focus-within .tests-category-media > img {
    filter: brightness(1) saturate(1) contrast(1.02);
    transform: scale(1.012);
  }

  .tests-category-row:hover .tests-category-media::after,
  .tests-category-row:focus-within .tests-category-media::after { opacity: .65; }
}

@media (max-width: 1050px) {
  .tests-hero { grid-template-columns: minmax(0, 1fr) 190px; }
  .tests-category-row { grid-template-columns: minmax(230px, .42fr) minmax(0, 1fr); }
  .tests-category-copy { padding: 22px 24px; }
  .tests-category-actions { align-items: stretch; }
  .tests-evidence { grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); }
  .tests-evidence-media { min-height: 380px; }
}

@media (max-width: 820px) {
  .tests-hero { gap: 28px; grid-template-columns: 1fr; }
  .tests-hero-proof { border-left: 0; border-top: 1px solid rgba(255,255,255,.28); padding: 19px 0 0; }
  .tests-hero-proof strong { display: inline; font-size: 34px; }
  .tests-hero-proof span { display: inline; margin-left: 8px; max-width: none; }
  .tests-category-row { grid-template-columns: 1fr; }
  .tests-category-media { min-height: 210px; }
  .tests-category-copy { padding: 26px; }
  .tests-category-actions a { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }
  .tests-route-grid { grid-template-columns: 1fr; }
  .tests-route-card { min-height: 0; }
  .tests-evidence { grid-template-columns: 1fr; }
  .tests-evidence-media { min-height: 430px; }
}

@media (max-width: 640px) {
  .tests-hero { border-radius: var(--radius); margin-top: 18px; min-height: 0; padding: 30px 22px; }
  .tests-hero-actions { align-items: stretch; flex-direction: column; }
  .tests-vehicle-context-slot { margin-bottom: 14px; margin-top: 14px; }
  .tests-category-section,
  .tests-route-section,
  .tests-evidence-section { padding-bottom: 56px; padding-top: 56px; }
  .tests-category-row { grid-template-columns: 1fr; }
  .tests-category-media { min-height: 215px; }
  .tests-category-copy { padding: 25px 23px 24px; }
  .tests-category-copy h3 { font-size: 27px; }
  .tests-category-actions .tests-category-primary { flex: 1 1 100%; }
  .tests-category-actions a:not(.tests-category-primary) { flex: 1 1 0; }
  .tests-evidence-media { min-height: 360px; }
  .tests-note { align-items: start; grid-template-columns: 1fr; padding: 24px 22px 20px; }
  .tests-note-actions { justify-content: flex-start; }
  .tests-note-warning { grid-column: auto; }
}

@media (max-width: 430px) {
  .tests-hero { padding: 28px 19px; }
  .tests-hero-proof span { display: block; margin: 7px 0 0; }
  .tests-category-media { min-height: 190px; }
  .tests-category-icon { height: 48px; left: 14px; top: 14px; width: 48px; }
  .tests-category-icon::before { height: 35px; }
  .tests-category-actions a { min-width: 0; }
  .tests-evidence-media { min-height: 310px; }
  .tests-note-actions { align-items: stretch; flex-direction: column; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tests-category-row,
  .tests-category-media::after,
  .tests-category-media > img { transition: none; }

  .tests-category-row:hover,
  .tests-category-row:focus-within,
  .tests-category-row:hover .tests-category-media > img,
  .tests-category-row:focus-within .tests-category-media > img { transform: none; }
}
