/* Homepage layout */
body.tsl-home-wide .container {
  width: calc(100% - clamp(30px, 6vw, 180px));
  max-width: none;
}

body.tsl-home-wide .hero {
  height: auto;
  min-height: 0;
  padding: clamp(28px, 4vw, 70px) 0 54px;
  background: #092743;
  overflow: hidden;
}

body.tsl-home-wide .hero-layout {
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, .95fr)
    minmax(0, 1.15fr);
  gap: clamp(20px, 2vw, 56px);
  align-items: center;
}

body.tsl-home-wide .hero-content {
  max-width: none;
  min-width: 0;
  padding: 0;
}

/* Main text */
body.tsl-home-wide .hero h1 {
  font-size: clamp(42px, 4vw, 82px);
  line-height: 1.2;
  margin: 18px 0;
  overflow-wrap: break-word;
}

body.tsl-home-wide .hero-sub {
  max-width: none;
  font-size: clamp(18px, 1.35vw, 25px);
  line-height: 1.7;
}

body.tsl-home-wide .hero-company {
  font-size: clamp(17px, 1.2vw, 24px);
}

body.tsl-home-wide .hero-cta,
body.tsl-home-wide .hero-benefits {
  flex-wrap: wrap;
}

body.tsl-home-wide .hero-cta .btn {
  font-size: 16px;
}

body.tsl-home-wide .hero-benefits {
  gap: 14px;
  margin-top: 24px;
}

body.tsl-home-wide .hero-benefits > div {
  font-size: 16px;
}

body.tsl-home-wide .hero-benefits small {
  font-size: 13px;
}

/* Welcome video */
body.tsl-home-wide .tsl-intro {
  position: static;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  border: 1px solid #b89a58;
  border-radius: 12px;
  overflow: hidden;
  background: #061b2b;
  box-shadow: 0 12px 30px #0004;
}

body.tsl-home-wide .tsl-intro video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #061b2b;
}

body.tsl-home-wide .tsl-intro button {
  width: 100%;
  border: 0;
  padding: 10px;
  background: #edcc80;
  color: #08213d;
  font: 600 15px var(--font-bn);
  cursor: pointer;
}

/* Chairman profile */
body.tsl-home-wide #tsl-chairman-profile .chairman-label {
  font-size: 15px;
}

body.tsl-home-wide #tsl-chairman-profile .chairman-name {
  font-size: clamp(23px, 1.6vw, 30px);
  line-height: 1.5;
}

body.tsl-home-wide #tsl-chairman-profile .chairman-description {
  font-size: 16px;
}

body.tsl-home-wide #tsl-chairman-profile .chairman-link {
  font-size: 16px;
  padding: 11px 16px;
}

/* Enlarged slideshow */
body.tsl-home-wide .hero-image-panel {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: auto;
  padding: 0 0 112px;
}

body.tsl-home-wide .hero-slides {
  position: relative;
  inset: auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: none;
  overflow: hidden;
}

body.tsl-home-wide .hero-slide {
  position: absolute;
  inset: 0;
  background: transparent;
  transition: opacity .7s ease;
  pointer-events: none;
}

/* Full image; feather only on the left edge */
body.tsl-home-wide .hero-photo,
body.tsl-home-wide .hero-slide:nth-child(2) .hero-photo {
  inset: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-image: var(--hero-image);
  background-size: contain;
  background-position: left center;
  opacity: 1;
  filter: none;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 100%
  );
  -webkit-mask-composite: source-over;

  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 100%
  );
  mask-composite: add;
}

body.tsl-home-wide .hero-photo::before,
body.tsl-home-wide .hero-vignette {
  display: none;
}

/* Slideshow controls */
body.tsl-home-wide .slider-arrow {
  top: calc(50% - 52px);
  width: 32px;
  height: 32px;
  font-size: 25px;
}

body.tsl-home-wide .slider-prev {
  left: 0;
}

body.tsl-home-wide .slider-next {
  right: 0;
}

body.tsl-home-wide .slider-dots {
  left: 50%;
  bottom: 96px;
  max-width: 85%;
  flex-wrap: wrap;
  justify-content: center;
}

body.tsl-home-wide .hero-pause {
  position: absolute;
  bottom: 65px;
  right: 50%;
  transform: translateX(50%);
  white-space: nowrap;
  font: 600 11px var(--font-bn);
  color: white;
  border: 1px solid #ffffff60;
  border-radius: 4px;
  background: #092743;
  padding: 3px 7px;
  z-index: 4;
}

body.tsl-home-wide .hero-photo-credit {
  bottom: 47px;
  right: 0;
  left: 0;
  text-align: center;
  font-size: 11px;
}

body.tsl-home-wide .hero-video {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

body.tsl-home-wide .hero-video a {
  font-size: 10px;
  padding: 5px 11px 5px 5px;
}

body.tsl-home-wide .hero-video .play-circle {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

/* Search and inventory */
body.tsl-home-wide .search-wrap {
  margin-top: 0;
  position: relative;
}

.home-inventory-note {
  padding: 12px 16px;
  background: #f1f7f4;
  border-radius: 6px;
  font-size: 14px;
}

/* Tablet */
@media (max-width: 1199px) {
  body.tsl-home-wide .hero-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  body.tsl-home-wide .hero-content {
    grid-column: 1 / -1;
  }

  body.tsl-home-wide .hero h1 {
    font-size: clamp(42px, 5vw, 64px);
  }

  body.tsl-home-wide .hero-benefits {
    gap: 20px;
  }

  body.tsl-home-wide .hero-sub {
    max-width: 750px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  body.tsl-home-wide .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  body.tsl-home-wide .hero-content {
    grid-column: auto;
  }

  body.tsl-home-wide .hero {
    padding: 26px 0 48px;
  }

  body.tsl-home-wide .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  body.tsl-home-wide .hero-sub {
    font-size: 18px;
  }

  body.tsl-home-wide .hero-benefits > div {
    flex-basis: auto;
  }

  body.tsl-home-wide .hero-benefits {
    gap: 10px;
  }

  body.tsl-home-wide .hero-pause {
    font-size: 10px;
  }

  body.tsl-home-wide #tsl-chairman-profile .chairman-name {
    font-size: 23px;
  }

  body.tsl-home-wide .hero-photo,
  body.tsl-home-wide .hero-slide:nth-child(2) .hero-photo {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 4%,
      #000 100%
    );

    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 4%,
      #000 100%
    );
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.tsl-home-wide .hero-slide {
    transition: none;
  }
}