/**
 * MLT landing pages (service, commercial service and location terms).
 * Colours come from the brand colours set in Customer Setup step 2.
 */
.mltl {
  --mltl-primary: var(--mt-color-primary, #0f6ff0);
  --mltl-primary-dark: var(--mt-color-primary-dark, #0b5ccc);
  --mltl-on-primary: var(--mt-color-primary-contrast, #ffffff);
  --mltl-dark: var(--mt-color-dark-colored, #0f2a3c);
  --mltl-dark-rgb: var(--mt-color-dark-colored-value, 205, 60%, 15%);
  --mltl-text: var(--mt-color-default-contrast, #2d3748);
  --mltl-soft: var(--mt-color-default-light, #f5f7fa);
  --mltl-line: rgba(0, 0, 0, 0.08);
  --mltl-radius: 12px;
  color: var(--mltl-text);
  line-height: 1.65;
}

.mltl-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mltl-narrow {
  max-width: 820px;
}

.mltl section {
  padding: 4.5rem 0;
}

.mltl h2 {
  margin: 0 0 1.25rem;
  font-family: var(--mt-hff, inherit);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}

/* Buttons */
.mltl-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.mltl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mltl-btn--primary {
  background: var(--mltl-primary);
  color: var(--mltl-on-primary) !important;
}

.mltl-btn--primary:hover {
  background: var(--mltl-primary-dark);
}

.mltl-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.mltl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.mltl-btn--light {
  background: #fff;
  color: var(--mltl-dark) !important;
}

.mltl-btn--outline {
  border-color: #fff;
  color: #fff !important;
}

.mltl-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mltl-btn--block {
  width: 100%;
  margin-top: 1.25rem;
}

.mltl-btn:focus-visible,
.mltl a:focus-visible,
.mltl summary:focus-visible {
  outline: 3px solid var(--mltl-primary);
  outline-offset: 3px;
}

/* Hero */
.mltl .mltl-hero {
  position: relative;
  padding: 5.5rem 0 0;
  background: var(--mltl-dark);
  color: #fff;
  text-align: center;
}

/* Full-width bands. Older template sites put the page content inside a boxed
   container, so these break out of it to the full screen width. On sites
   with a full-width content area this changes nothing. The text inside stays
   centred in .mltl-wrap. */
.mltl .mltl-hero,
.mltl .mltl-review,
.mltl .mltl-final {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 100vw includes the scrollbar, so stop a sideways scroll on these pages. */
html:has(.mltl),
body:has(.mltl) {
  overflow-x: clip;
}

/* Term image behind the hero, darkened with the brand dark colour so the
   white text stays readable. Overlay strength is set in Landing pages. */
.mltl-hero--light {
  --mltl-overlay-top: 0.65;
  --mltl-overlay-bottom: 0.4;
}

.mltl-hero--medium {
  --mltl-overlay-top: 0.82;
  --mltl-overlay-bottom: 0.6;
}

.mltl-hero--dark {
  --mltl-overlay-top: 0.92;
  --mltl-overlay-bottom: 0.8;
}

.mltl .mltl-hero--image {
  background:
    linear-gradient(hsla(var(--mltl-dark-rgb), var(--mltl-overlay-top, 0.82)), hsla(var(--mltl-dark-rgb), var(--mltl-overlay-bottom, 0.6))),
    var(--mltl-hero-img) center / cover no-repeat,
    var(--mltl-dark);
}

.mltl-hero__title {
  margin: 0 auto 0.75rem;
  max-width: 900px;
  color: #fff;
  font-family: var(--mt-hff, inherit);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.15;
}

.mltl-hero__title span {
  color: var(--mltl-primary);
}

.mltl-hero__sub {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  opacity: 0.92;
}

.mltl-ticks {
  display: inline-flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.mltl-ticks li {
  position: relative;
  padding-left: 1.9rem;
}

.mltl-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--mltl-primary)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

.mltl-hero .mltl-buttons {
  justify-content: center;
}

.mltl-trust {
  margin-top: 4rem;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
}

.mltl-trust .mltl-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}

.mltl-trust span {
  position: relative;
}

.mltl-trust span + span::before {
  content: "";
  position: absolute;
  left: -1.05rem;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--mltl-primary);
}

/* Intro */
.mltl-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: start;
}

.mltl-body > :first-child {
  margin-top: 0;
}

.mltl-body a {
  color: var(--mltl-primary);
}

.mltl-card {
  position: sticky;
  top: 1.5rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--mltl-line);
  border-top: 4px solid var(--mltl-primary);
  border-radius: var(--mltl-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.mltl-card h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.mltl-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mltl-card li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--mltl-line);
}

.mltl-card li:last-child {
  border-bottom: 0;
}

.mltl-card li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mltl-primary);
  font-weight: 600;
}

/* FAQs */
.mltl .mltl-faq {
  background: var(--mltl-soft);
}

.mltl-faq__item {
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid var(--mltl-line);
  border-radius: var(--mltl-radius);
  overflow: hidden;
}

.mltl-faq__item[open] {
  border-color: var(--mltl-primary);
  box-shadow: inset 4px 0 0 var(--mltl-primary);
}

.mltl-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.mltl-faq__item summary::-webkit-details-marker {
  display: none;
}

.mltl-faq__icon {
  position: relative;
  flex: 0 0 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--mltl-primary);
  border-radius: 50%;
}

.mltl-faq__icon::before,
.mltl-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 2px;
  margin: -1px 0 0 -0.35rem;
  background: var(--mltl-primary);
  transition: transform 0.25s ease;
}

.mltl-faq__icon::after {
  transform: rotate(90deg);
}

.mltl-faq__item[open] .mltl-faq__icon::after {
  transform: rotate(0deg);
}

.mltl-faq__answer {
  padding: 0 1.4rem 1.25rem;
}

.mltl-faq__answer > :last-child {
  margin-bottom: 0;
}

/* Related content */
.mltl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.mltl-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mltl-line);
  border-radius: var(--mltl-radius);
  color: inherit !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mltl-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.mltl-post__media {
  position: relative;
  display: block;
}

.mltl-post img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Play icon on video cards. */
.mltl-post__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.25rem;
  height: 3.25rem;
  margin: -1.625rem 0 0 -1.625rem;
  border-radius: 50%;
  background: var(--mltl-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.mltl-post__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.9rem;
  border-color: transparent transparent transparent var(--mltl-on-primary);
  transform: translate(-50%, -50%);
}

.mltl-post__body {
  padding: 1.25rem;
}

.mltl-post__type {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--mltl-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.mltl-post h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.mltl-post p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Review */
.mltl .mltl-review {
  padding: 3.5rem 0;
  background: var(--mltl-soft);
  text-align: center;
}

.mltl-review blockquote {
  margin: 0;
  font-size: 1.2rem;
}

.mltl-review .stars {
  display: block;
  margin-bottom: 0.5rem;
  color: #f5b301;
  letter-spacing: 0.15em;
}

.mltl-review cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 700;
}

/* Cross links */
.mltl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mltl-chips a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--mltl-line);
  border-radius: 999px;
  color: var(--mltl-text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mltl-chips a:hover {
  background: var(--mltl-primary);
  border-color: var(--mltl-primary);
  color: var(--mltl-on-primary);
}

/* Closing call to action */
.mltl .mltl-final {
  background: var(--mltl-primary);
  color: var(--mltl-on-primary);
  text-align: center;
}

.mltl-final h2 {
  color: inherit;
}

.mltl-final .mltl-buttons {
  justify-content: center;
}

/* Mobile */
@media (max-width: 900px) {
  .mltl-intro__grid {
    grid-template-columns: 1fr;
  }

  .mltl-card {
    position: static;
  }
}

@media (max-width: 575px) {
  .mltl section {
    padding: 3rem 0;
  }

  .mltl .mltl-hero {
    padding-top: 3.5rem;
  }

  .mltl-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mltl * {
    transition: none !important;
  }
}
