/**
 * Cost Bid — desktop 171:2387; mobile 171:1471 (343 artboard).
 * Layout pattern matches mission-profile.css / about.css.
 */

.tf-cb {
  --cb-design-width: 1200px;
  --cb-mobile-width: 343px;
  --cb-gutter: 16px;
  --cb-border: 1px solid rgb(255 255 255 / 0.4);
  --cb-panel-bg: rgb(0 0 0 / 0.2);

  padding-top: 0;
  padding-bottom: 64px;
  background: var(--color-canvas);
  color: var(--color-text-default);
}

.tf-cb__scale-root {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: clip;
}

.tf-cb__shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 641px) {
  .tf-cb__shell {
    width: var(--cb-design-width);
    max-width: var(--cb-design-width);
    flex-shrink: 0;
    zoom: min(1, calc((100vw - 32px) / var(--cb-design-width)));
  }
}

.tf-cb__intro {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 77px;
  padding: 48px 64px 28px;
  background: var(--cb-panel-bg);
}

.tf-cb__title {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-headline);
  font-size: 80px;
  line-height: 0.9;
  color: var(--color-text-default);
  text-transform: uppercase;
}

.tf-cb__lede {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  font-size: 28.877px;
  line-height: var(--type-body-leading);
  color: var(--color-text-default);
}

.tf-cb__body {
  box-sizing: border-box;
  width: 100%;
  padding: 0 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.tf-cb__scoring-heading {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: 500;
  font-size: 38.502px;
  line-height: 1.47;
  color: var(--color-text-accent);
}

.tf-cb__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
  width: 100%;
}

.tf-cb__cell {
  box-sizing: border-box;
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  line-height: var(--type-body-leading);
  color: var(--color-white);
}

.tf-cb__cell--rule {
  background: rgb(255 255 255 / 0.1);
  font-size: 38.502px;
  min-width: 0;
}

.tf-cb__cell--pts {
  background: rgb(255 255 255 / 0.1);
  justify-content: center;
  font-size: 38.502px;
  text-align: center;
}

.tf-cb__cell--total {
  background: var(--color-orange);
  border: 1px solid var(--color-orange);
}

.tf-cb__cell--pts.tf-cb__cell--total {
  font-weight: 700;
}

.tf-cb__cell--pts.tf-cb__cell--total strong {
  font-weight: 700;
}

.tf-cb__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 32px 0 0;
  width: 100%;
}

.tf-cb__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-cb__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 85px;
  box-sizing: border-box;
  border: 1px solid var(--color-white);
  border-radius: 43px;
  background: var(--color-black);
  transition: background 0.15s ease;
}

.tf-cb__social a:hover {
  background: rgb(255 255 255 / 0.08);
}

.tf-cb__social img {
  display: block;
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 32px;
  object-fit: contain;
}

.tf-cb__legal {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--type-body-s);
  line-height: var(--type-body-leading);
  text-align: center;
  color: var(--color-text-default);
}

.tf-cb__legal p {
  margin: 0;
}

@media (max-width: 640px) {
  .tf-cb {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .tf-cb__shell {
    width: var(--cb-mobile-width);
    max-width: var(--cb-mobile-width);
    flex-shrink: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    zoom: calc((100vw - 2 * var(--cb-gutter)) / var(--cb-mobile-width));
  }

  .tf-cb__intro {
    gap: 32px;
    padding: 24px;
    padding-bottom: 24px;
  }

  .tf-cb__title {
    font-size: 42px;
    line-height: 0.914;
  }

  .tf-cb__lede {
    font-size: 15.4px;
  }

  .tf-cb__body {
    padding: 0 24px 24px;
    gap: 24px;
  }

  .tf-cb__scoring-heading {
    font-size: 20.535px;
    line-height: 1.47;
  }

  .tf-cb__grid {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 4px;
  }

  .tf-cb__cell {
    min-height: 43px;
    padding: 4px 8px;
  }

  .tf-cb__cell--rule {
    font-size: 15px;
    white-space: normal;
  }

  .tf-cb__cell--pts {
    font-size: 20.535px;
  }

  .tf-cb__cell--total.tf-cb__cell--rule {
    font-size: var(--type-body-s);
  }

  .tf-cb__footer {
    gap: 15px;
    padding-top: 8px;
  }

  .tf-cb__social {
    gap: 26px;
  }

  .tf-cb__social a {
    width: 45px;
    height: 45px;
    border-radius: 23px;
  }

  .tf-cb__social img {
    max-width: 24px;
    max-height: 19px;
  }

  .tf-cb__legal {
    font-size: var(--type-body-xs);
  }
}
