@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Serif:wght@400;500;600&display=swap');

/* Partnership overview — editorial layout matching the approved reference.
   Scoped styles do not change the shared site header, footer or other pages. */
.mtb-partnership-page {
  --partner-ink: #20201f;
  --partner-muted: #77726e;
  --partner-red: #cc2934;
  --partner-line: #e2ded9;
  --partner-paper: #fffefa;
  width: 100%;
  overflow: clip;
  background: var(--partner-paper);
  color: var(--partner-ink);
  font-family: 'Noto Sans', Arial, sans-serif;
}
.mtb-partnership-page,
.mtb-partnership-page * { box-sizing: border-box; }

.mtb-partnership-page a { text-decoration: none; }

.mtb-partnership-hero {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: stretch;
  width: min(100%, 1680px);
  min-height: clamp(360px, 31vw, 525px);
  margin: 0 auto;
  background: #fffefa;
}
.mtb-partnership-hero__copy {
  align-self: center;
  min-width: 0;
  padding: 35px clamp(28px, 4.9vw, 82px);
}
.mtb-partnership-eyebrow {
  margin: 0 0 18px;
  color: #b72e3a;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.mtb-partnership-hero h1 {
  max-width: 670px;
  margin: 0 0 12px;
  color: #1c1c1b;
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.35rem, 3.45vw, 4.05rem);
  letter-spacing: -.035em;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.mtb-partnership-hero h1::after {
  display: block;
  content: '';
  width: 43px;
  height: 2px;
  margin-top: 18px;
  background: var(--partner-red);
}
.mtb-partnership-hero__lead {
  max-width: 530px;
  margin: 0 0 26px;
  color: #77736f;
  font-size: clamp(.94rem, 1.13vw, 1.1rem);
  line-height: 1.75;
}
.mtb-partnership-hero__image {
  position: relative;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  background: #f5efe8;
}
.mtb-partnership-hero__image img {
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
}
.mtb-partnership-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 45px;
  padding: 11px 20px;
  border-radius: 4px;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.mtb-partnership-btn span {
  font-family: Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: .7;
}
.mtb-partnership-btn:focus-visible {
  outline: 2px solid var(--partner-red);
  outline-offset: 3px;
}
.mtb-partnership-btn--outline {
  border: 1px solid var(--partner-red);
  background: transparent;
  color: #c52632;
}
.mtb-partnership-btn--outline:hover,
.mtb-partnership-btn--outline:focus-visible {
  background: var(--partner-red);
  color: white;
}
.mtb-partnership-btn--solid {
  border: 1px solid #c92332;
  background: #c92332;
  color: #fff;
}
.mtb-partnership-btn--solid:hover,
.mtb-partnership-btn--solid:focus-visible {
  background: #a91b29;
  border-color: #a91b29;
  color: #fff;
}

.mtb-partnership-shell {
  width: min(100% - 72px, 1500px);
  margin-inline: auto;
}

.mtb-partnership-partners {
  padding: clamp(28px, 3.2vw, 50px) 0 clamp(22px, 3vw, 43px);
  border-top: 1px solid var(--partner-line);
}
.mtb-partnership-heading h2,
.mtb-partnership-cta h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 12px;
  padding-bottom: 13px;
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 2.45vw, 2.8rem);
  line-height: 1.26;
  letter-spacing: -.025em;
  color: #201d1b;
}
.mtb-partnership-heading h2::after,
.mtb-partnership-cta h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  background: var(--partner-red);
}
.mtb-partnership-heading > p,
.mtb-partnership-cta p {
  margin: 0;
  color: var(--partner-muted);
  font-size: .98rem;
  line-height: 1.65;
}
/* Real partner-logo gallery: preserve each logo's natural aspect ratio. */
.mtb-partnership-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 0;
  align-items: stretch;
  margin-top: 26px;
}
.mtb-partnership-partner {
  min-width: 0;
  margin: 0;
  padding: 5px clamp(13px, 1.7vw, 24px) 13px;
  border-right: 1px solid var(--partner-line);
  text-align: center;
}
.mtb-partnership-partner:nth-child(4n) { border-right: 0; }
.mtb-partnership-partner__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(135px, 14vw, 190px);
  padding: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.mtb-partnership-partner__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.mtb-partnership-partner figcaption {
  margin-top: 12px;
  color: #37332e;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(.79rem, .9vw, .95rem);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Pending fourth international partner: same-size slot, explicitly not a partner. */
.mtb-partnership-partner--pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.mtb-partnership-partner__logo--pending {
  width: 100%;
  color: #b7b1ab;
  background: #f7f4f0;
  border: 1px dashed #ddd7cf;
}
.mtb-partnership-partner__logo--pending i {
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  opacity: .62;
}
.mtb-partnership-partner__pending-name {
  display: block;
  margin-top: 12px;
  color: #8c8580;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(.79rem, .9vw, .95rem);
  line-height: 1.5;
}

.mtb-partnership-directions {
  padding: clamp(29px, 3.5vw, 52px) 0 clamp(36px, 4vw, 62px);
  border-top: 1px solid var(--partner-line);
}
.mtb-partnership-directions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 25px;
}
.mtb-partnership-direction {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 7px 28px 7px 0;
  margin-right: 26px;
  border-right: 1px solid var(--partner-line);
}
.mtb-partnership-direction:last-child {
  margin-right: 0;
  border-right: 0;
}
.mtb-partnership-direction__icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #66626a;
  padding-top: 4px;
}
.mtb-partnership-direction__icon i {
  font-size: 1.8rem;
  font-weight: 400;
}
.mtb-partnership-direction h3 {
  margin: 0 0 9px;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: clamp(1rem, 1.23vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
}
.mtb-partnership-direction p {
  margin: 0;
  color: #77716c;
  font-size: .86rem;
  line-height: 1.6;
}

.mtb-partnership-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(27px, 3.3vw, 47px) 0 clamp(42px, 4.5vw, 70px);
  border-top: 1px solid var(--partner-line);
}
.mtb-partnership-cta h2 { margin-bottom: 10px; }
.mtb-partnership-cta .mtb-partnership-btn { flex: 0 0 auto; }

@media (max-width: 1099px) {
  .mtb-partnership-hero h1 { font-size: clamp(2.05rem, 4vw, 3.15rem); }
  .mtb-partnership-hero__copy { padding-inline: 30px; }
  .mtb-partnership-shell { width: min(100% - 48px, 1500px); }
  .mtb-partnership-direction {
    grid-template-columns: 37px minmax(0,1fr);
    gap: 10px;
    margin-right: 13px;
    padding-right: 13px;
  }
  .mtb-partnership-direction__icon i { font-size: 1.5rem; }
}

@media (max-width: 767px) {
  .mtb-partnership-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .mtb-partnership-hero__copy {
    padding: 45px 22px 39px;
  }
  .mtb-partnership-hero h1 {
    font-size: clamp(2.05rem, 7vw, 2.8rem);
    line-height: 1.2;
  }
  .mtb-partnership-hero__image {
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .mtb-partnership-hero__image img { object-position: center; }
  .mtb-partnership-shell { width: calc(100% - 34px); }
  .mtb-partnership-partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .mtb-partnership-partner { padding: 0 11px 15px; }
  .mtb-partnership-partner:nth-child(4n) { border-right: 1px solid var(--partner-line); }
  .mtb-partnership-partner:nth-child(2n) { border-right: 0; }
  .mtb-partnership-partner__logo { height: clamp(115px, 33vw, 168px); padding: 8px; }
  .mtb-partnership-partner figcaption { font-size: .77rem; margin-top: 9px; }
  .mtb-partnership-direction { margin: 0; padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--partner-line); }
  .mtb-partnership-direction:last-child { border-bottom: 0; }
  .mtb-partnership-directions__grid { grid-template-columns: 1fr; margin-top: 18px; }
  .mtb-partnership-cta { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .mtb-partnership-btn { transition: none; }
}
