@font-face {
  font-family: "TDB Display";
  src: url("assets/rajdhani-700-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "TDB Display";
  src: url("assets/rajdhani-600-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

:where(.home-slideshow > :is(.container, .wide), .golf-poster main) {
  container-type: inline-size;
}

.home-tuning-poster {
  --poster-font: "TDB Display", "Arial Narrow", sans-serif;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(420px, 40vw, 635px);
  min-height: clamp(420px, 40cqw, 635px);
  overflow: hidden;
  background: #121212;
  color: #fff;
  scroll-margin-top: 16px;
}

.hero-band > .tuning-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  display: block;
  width: 59%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero-band::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #121212 41%, rgb(18 18 18 / 76%) 46%, rgb(18 18 18 / 25%) 54%, transparent 64%);
}

.home-tuning-poster .tuning-copy {
  box-sizing: border-box;
  width: 51%;
  padding: 32px clamp(20px, 5vw, 80px);
  padding: 32px clamp(20px, 5cqw, 80px);
}

.home-tuning-poster :is(h1, h2) {
  margin: 0;
  color: inherit;
  font: 700 clamp(35px, 5.25vw, 98px)/.95 var(--poster-font);
  font-size: clamp(35px, 5.25cqw, 98px);
  letter-spacing: .005em;
  text-transform: uppercase;
}

.home-tuning-poster :is(h1, h2) span { display: block; }

.home-tuning-poster .hook {
  margin: 14px 0 0;
  color: #ff3b3b;
  font: 700 clamp(20px, 2.25vw, 30px)/1.25 var(--poster-font);
  font-size: clamp(20px, 2.25cqw, 30px);
}

.home-tuning-poster .hook em {
  font-style: italic;
  font-weight: 600;
  letter-spacing: .01em;
}

.home-tuning-poster .tuning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-tuning-poster :is(.poster-primary, .poster-secondary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font: 700 17px/1.2 var(--poster-font);
  text-align: center;
  text-decoration: none;
  text-transform: none;
}

.home-tuning-poster .poster-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 20px rgb(220 38 38 / 40%);
  letter-spacing: .02em;
}

.home-tuning-poster .poster-secondary {
  gap: 7px;
  border-color: #656565;
  background: #1d1d1d;
  color: #eee;
}

.home-tuning-poster .poster-secondary svg { flex: none; }
.home-tuning-poster .poster-primary:hover { filter: brightness(1.1); }
.home-tuning-poster .poster-secondary:hover { border-color: #aaa; background: #2b2b2b; }
.home-tuning-poster a:focus-visible { outline: 2px solid #ff3b3b; outline-offset: 3px; }

.home-tuning-poster .dealer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 7px;
  margin-top: 9px;
  color: #c5c5c5;
  font: 600 15px/1.45 var(--poster-font);
}

.home-tuning-poster .dealer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.home-tuning-poster .dealer-link span { color: #c5c5c5; }

@container (min-width: 691px) and (max-width: 980px) {
  .home-tuning-poster { min-height: clamp(420px, 48cqw, 475px); }
  .home-tuning-poster .tuning-actions { gap: 8px; }
  .home-tuning-poster :is(.poster-primary, .poster-secondary) { padding-inline: 10px; font-size: 16px; }
  .home-tuning-poster .dealer { font-size: 14px; }
}

@media (max-width: 690px) {
  .home-tuning-poster {
    grid-template-rows: auto 1fr;
    min-height: clamp(415px, calc(190px + 72vw), 532px);
    min-height: clamp(415px, calc(190px + 72cqw), 532px);
  }
  .hero-band > .tuning-photo {
    position: static;
    width: 100%;
    height: clamp(158px, 57vw, 225px);
    height: clamp(158px, 57cqw, 225px);
    object-position: 50% 41%;
  }
  .hero-band::after { display: none; }
  .home-tuning-poster .tuning-copy {
    width: 100%;
    padding: 16px clamp(14px, 4vw, 24px) 18px;
    padding: 16px clamp(14px, 4cqw, 24px) 18px;
  }
  .home-tuning-poster :is(h1, h2) {
    font-size: clamp(32px, 9.5vw, 58px);
    font-size: clamp(32px, 9.5cqw, 58px);
  }
  .home-tuning-poster .hook { margin-top: 8px; font-size: 22px; }
  .home-tuning-poster .tuning-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .home-tuning-poster :is(.poster-primary, .poster-secondary) { padding: 8px; font-size: 16px; }
  .home-tuning-poster .dealer { margin-top: 6px; font-size: 14px; }
}

@media (max-width: 360px) {
  .home-tuning-poster .hook { font-size: 20px; }
  .home-tuning-poster .poster-secondary { gap: 5px; padding-inline: 6px; font-size: 15px; }
  .home-tuning-poster .poster-secondary svg { width: 14px; height: 14px; }
  .home-tuning-poster .tuning-copy { padding-bottom: 15px; }
}

/* Scottish homepage vehicle finder */
.home-slideshow .shop-layout,
.home-products-layout {
  --shop-inset: clamp(20px, 5cqw, 80px);
  container-type: inline-size;
}
.home-slideshow, .home-products-layout { --shop-display: "TDB Display", "Arial Narrow", Arial, sans-serif; }
.hero-band { position: relative; isolation: isolate; overflow: hidden; background: #121212; }
.home-tuning-poster { --poster-font: var(--shop-display); background: transparent; }
.container_page { background: #fff; }
.home-tuning-poster .tuning-copy,
.finder-content,
.home-products-layout .home-tabs { padding-inline: var(--shop-inset); }
/* Bring the finder up while keeping the dealer link and tuning actions in place. */
@media (min-width: 992px) {
  .home-tuning-poster {
    --dealer-gap-trim: 38px;
    --banner-height: clamp(420px, 48cqw, 475px);
    box-sizing: border-box;
    min-height: calc(var(--banner-height) - var(--dealer-gap-trim));
    padding-block-start: var(--dealer-gap-trim);
  }
}
@media (min-width: 1200px) {
  .home-tuning-poster {
    --dealer-gap-trim: 34px;
    --banner-height: clamp(420px, 40cqw, 635px);
  }
}
.home-products-layout :is(.nav-tabs > li > a, .panel-heading a) { font-family: var(--shop-display); }
.home-products-layout .nav-tabs > li:not(.active) > a,
.home-products-layout .prod-brand { color: #666; }
.hardware-selector {
  padding: 18px 0 18px;
  color: #fff;
  background-color: #e40714;
  font-family: var(--shop-display);
}
.hardware-selector h2 {
  margin: 0 0 12px;
  color: #fff;
  font: 700 28px/1.1 var(--shop-display);
  text-transform: none;
  letter-spacing: 0;
}
.hw-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 10px;
}
.hw-field { position: relative; min-width: 0; }
.hw-field::after {
  content: "";
  position: absolute;
  right: 14px;
  top: calc(50% - 2px);
  border: 5px solid transparent;
  border-top-color: #454545;
  pointer-events: none;
}
.hw-field:has(select:disabled)::after { border-top-color: #767676; }
.hw-field select {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 34px 0 12px;
  appearance: none;
  border: 1px solid #cbcbcb;
  border-radius: 0;
  background: #fff;
  color: #454545;
  font: 600 18px/1.2 var(--shop-display);
  cursor: pointer;
}
.hw-field select:disabled {
  color: #707070;
  -webkit-text-fill-color: #707070;
  opacity: 1;
  cursor: default;
}
.hw-controls #hw-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 9px 22px;
  font: 700 17px/1.2 var(--shop-display);
  text-transform: none;
  letter-spacing: 0;
}
.hw-controls :is(select, a):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #141414;
}
@media (max-width: 800px) {
  .hardware-selector { padding-block: 12px 14px; }
  .hardware-selector h2 { margin-bottom: 10px; font-size: 25px; }
  .hw-controls { grid-template-columns: minmax(0, 1fr); gap: 7px; }
}
@media (max-width: 690px) {
  .home-slideshow .shop-layout,
.home-products-layout { --shop-inset: clamp(14px, 4cqw, 24px); }
  .hero-band { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-band > .shop-layout,
  .home-tuning-poster,
  .home-tuning-poster .tuning-copy { display: contents; }
  .hero-band > .shop-layout::before,
  .hero-band > .shop-layout::after { display: none; }
  .hero-band > .tuning-photo,
  .hero-band::after { position: absolute; grid-area: 1 / 1 / 2 / 2; inset: 0; width: 100%; height: 100%; }
  .hero-band::after {
    display: block;
    background: linear-gradient(90deg, rgb(0 0 0 / 40%), transparent 84%),
                linear-gradient(0deg, rgb(0 0 0 / 82%), rgb(0 0 0 / 45%) 34%, transparent 75%);
  }
  .hero-message {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(216px, 64vw, 310px);
    padding: 20px var(--shop-inset);
  }
  .home-tuning-poster .tuning-actions { grid-row: 2; margin: 14px var(--shop-inset) 0; }
  .home-tuning-poster .dealer { grid-row: 3; margin: 6px var(--shop-inset) 12px; }
}
@media (forced-colors: active) {
  .hw-field::after { border-top-color: ButtonText; }
  .hw-field:has(select:disabled)::after { border-top-color: GrayText; }
  .hw-controls :is(select, a):focus-visible { outline: 2px solid Highlight; }
}
@media (max-width: 767px) {
  .container_page > .container.home-products-layout { padding-inline: 0; }
}
