/* Shared additions for machine-brand and kit-type detail pages. */

.mb-page {
  background: #fff;
}

/* Restrained hero treatment shared by both detail-page families. */
:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__shell {
  --mb-hero-cut: clamp(42px, 4.2vw, 72px);
  grid-template-columns: 34% 34% 32%;
  background: #151920;
  box-shadow: 0 16px 40px rgba(14, 18, 24, 0.1);
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__copy {
  background: #151920;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__lead {
  color: rgba(255, 255, 255, 0.76);
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__copy .cp-button {
  margin-top: 24px;
  min-height: 46px;
  padding: 13px 19px;
  gap: 9px;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(181, 18, 27, 0.13);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero h1 {
  font-size: clamp(2.25rem, 2.55vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__copy::after,
:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__visual::after,
:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__machine-shadow {
  display: none;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__visual {
  background: #151920;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__visual img {
  padding: 0;
  clip-path: polygon(
    var(--mb-hero-cut) 0,
    100% 0,
    calc(100% - var(--mb-hero-cut)) 100%,
    0 100%
  );
  background: #fff;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__proof {
  background: #151920;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__proof .cp-eyebrow {
  color: #ff747f;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__proof h2 {
  color: #fff;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__proof-note {
  color: #fff;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__stats div {
  padding-inline: 10px;
  background: #fff;
}

:is(.machine-brand-detail-page, .kit-type-page) .mb-hero__stats dt {
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  white-space: nowrap;
}

.mb-page [id] {
  scroll-margin-top: 118px;
}

.mb-page .cp-section-nav {
  border-bottom-color: rgba(21, 25, 32, 0.1);
  box-shadow: 0 10px 28px rgba(21, 25, 32, 0.04);
}

.mb-page .cp-intro__body p:first-child {
  color: #252a33;
  font-weight: 650;
}

.mb-page .cp-stats-section .cp-lead {
  max-width: 900px;
}

.kit-type-page .cp-stats dt {
  font-size: clamp(2rem, 2.5vw, 2.5rem);
}

.mb-page .cp-feature {
  border-top: 3px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mb-page .cp-feature:hover {
  border-top-color: #c30f1f;
  box-shadow: 0 18px 42px rgba(16, 20, 28, 0.11);
  transform: translateY(-3px);
}

.mb-page .cp-media__visual--cover img {
  object-position: center;
}

.mb-page .cp-media-section--editorial .cp-media__visual {
  min-height: clamp(340px, 34vw, 560px);
}

.mb-page .cp-media-section--process .cp-media__visual {
  background:
    radial-gradient(circle at 50% 46%, rgba(195, 15, 31, 0.08), transparent 45%),
    #f3f4f6;
}

.mb-page .cp-media-section--process.cp-section--dark .cp-media__visual {
  background:
    radial-gradient(circle at 50% 46%, rgba(239, 51, 64, 0.14), transparent 45%),
    #11151b;
}

@media (max-width: 900px) {
  :is(.machine-brand-detail-page, .kit-type-page) .mb-hero__shell {
    width: min(calc(100% - 32px), 1600px);
    grid-template-columns: 1fr;
  }

  :is(.machine-brand-detail-page, .kit-type-page) .mb-hero__visual {
    background: #fff;
  }

  :is(.machine-brand-detail-page, .kit-type-page) .mb-hero__visual img {
    clip-path: none;
  }

  .mb-page [id] {
    scroll-margin-top: 86px;
  }

  .mb-page .cp-media-section--editorial .cp-media__visual {
    min-height: 0;
  }
}

@media (max-width: 1260px) and (min-width: 901px) {
  :is(.machine-brand-detail-page, .kit-type-page) .mb-hero__shell {
    width: 88%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :is(.machine-brand-detail-page, .kit-type-page) .mb-hero__shell {
    width: min(calc(100% - 24px), 1600px);
  }
}
