/* Companies guide redesign. Scoped to this page so shared site styles remain unchanged. */

.companies-guide-page {
  overflow-x: clip;
}

.companies-guide-page .company-guide-hero,
.companies-guide-page .company-glance-section,
.companies-guide-page .company-profiles {
  padding-left: 120px !important;
  padding-right: 120px !important;
}

.companies-guide-page .company-guide-hero h1 {
  max-width: 900px !important;
  font-size: clamp(36px, 4.2vw, 60px) !important;
  line-height: 1.02 !important;
}

.companies-guide-page .company-glance-section {
  padding-top: 72px !important;
  padding-bottom: 68px !important;
}

.companies-guide-page .company-glance-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.companies-guide-page .company-glance-table th,
.companies-guide-page .company-glance-table td {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid #cfc7b3 !important;
  border-left: 0 !important;
}

.companies-guide-page .company-glance-table thead th {
  border-top: 1px solid #0f241d !important;
  border-bottom: 1px solid #0f241d !important;
}

.companies-guide-page .company-glance-table th:first-child,
.companies-guide-page .company-glance-table td:first-child {
  padding-left: 0 !important;
}

.companies-guide-page .company-glance-table th:last-child,
.companies-guide-page .company-glance-table td:last-child {
  padding-right: 0 !important;
}

.companies-guide-page .company-profiles {
  display: grid !important;
  grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  column-gap: 56px;
  row-gap: 88px;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 44px !important;
  padding-bottom: 104px !important;
}

.companies-guide-page .company-index {
  position: sticky;
  top: 28px;
  grid-column: 1;
  grid-row: 1 / span 5;
  align-self: start;
  padding-left: 16px;
  border-left: 1px solid #244b3d;
}

.companies-guide-page .company-index-label {
  display: block;
  margin-bottom: 16px;
  color: #5f685f;
  font-family: "Courier Prime", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.companies-guide-page .company-index nav {
  display: grid;
  gap: 10px;
}

.companies-guide-page .company-index a {
  width: fit-content;
  color: #244b3d;
  font-size: 14px;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.companies-guide-page .company-profile {
  grid-column: 2;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
  scroll-margin-top: 24px;
}

.companies-guide-page .company-profile > div:first-of-type {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  margin-bottom: 22px !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.companies-guide-page .company-profile > div:first-of-type h3 {
  order: 2;
  margin: 0 !important;
  font-size: clamp(30px, 2.65vw, 38px) !important;
  line-height: 1.05 !important;
}

.companies-guide-page .company-profile-mark {
  order: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.companies-guide-page .company-profile-mark img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
}

.companies-guide-page .company-profile-mark span {
  display: none !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) {
  display: block !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:first-child {
  padding: 20px 24px !important;
  transform: none !important;
  background: #eae3d2 !important;
  border: 0 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:first-child > div:first-child {
  margin: 0 0 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(15, 36, 29, .28) !important;
  font-size: 11px !important;
  letter-spacing: .12em !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:first-child dl {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 0 !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:first-child dl > div {
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
}

.companies-guide-page .company-profile dt {
  margin-bottom: 5px !important;
  color: #68716a !important;
  font-family: "Courier Prime", monospace !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: .02em;
}

.companies-guide-page .company-profile dd {
  margin: 0 !important;
  color: #18261f !important;
  font-size: 16px !important;
  line-height: 1.42 !important;
}

.companies-guide-page .company-profile dd[style*="border: 1px dashed"] {
  padding: 0 !important;
  color: #777a74 !important;
  font-style: italic;
  border: 0 !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px 48px;
  margin-top: 30px;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child > div {
  display: block !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child h4 {
  margin: 0 0 8px !important;
  color: #244b3d !important;
  font-family: "Courier Prime", monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child p {
  margin: 0 !important;
  color: #27342e !important;
  font-size: 17px !important;
  line-height: 1.62 !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child p + p {
  margin-top: 12px !important;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child > p:last-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  grid-column: 1 / -1;
}

.companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child > p:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (min-width: 1321px) {
  .companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child > div:first-child,
  .companies-guide-page .company-profile > div:nth-of-type(2) > div:last-child > div:nth-child(4) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1320px) {
  .companies-guide-page .company-guide-hero,
  .companies-guide-page .company-glance-section,
  .companies-guide-page .company-profiles {
    padding-left: 64px !important;
    padding-right: 64px !important;
  }

  .companies-guide-page .company-profiles {
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 44px;
  }
}

@media (max-width: 900px) {
  .companies-guide-page .company-guide-hero,
  .companies-guide-page .company-glance-section,
  .companies-guide-page .company-profiles {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .companies-guide-page .company-glance-section {
    padding-top: 52px !important;
    padding-bottom: 48px !important;
  }

  .companies-guide-page .company-glance-table,
  .companies-guide-page .company-glance-table tbody,
  .companies-guide-page .company-glance-table tr {
    display: block;
    width: 100%;
  }

  .companies-guide-page .company-glance-table colgroup,
  .companies-guide-page .company-glance-table thead {
    display: none;
  }

  .companies-guide-page .company-glance-table tr {
    padding: 22px 0;
    border-top: 1px solid #0f241d;
  }

  .companies-guide-page .company-glance-table tr:last-child {
    border-bottom: 1px solid #0f241d;
  }

  .companies-guide-page .company-glance-table th,
  .companies-guide-page .company-glance-table td {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    width: 100% !important;
    padding: 6px 0 !important;
    border: 0 !important;
  }

  .companies-guide-page .company-glance-table th {
    margin-bottom: 8px;
  }

  .companies-guide-page .company-glance-table th::before,
  .companies-guide-page .company-glance-table td::before {
    color: #68716a;
    font-family: "Courier Prime", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .companies-guide-page .company-glance-table th::before { content: "Company"; }
  .companies-guide-page .company-glance-table td:nth-of-type(1)::before { content: "Founded"; }
  .companies-guide-page .company-glance-table td:nth-of-type(2)::before { content: "Based"; }
  .companies-guide-page .company-glance-table td:nth-of-type(3)::before { content: "Built for"; }
  .companies-guide-page .company-glance-table td:nth-of-type(4)::before { content: "Pricing model"; }
  .companies-guide-page .company-glance-table td:nth-of-type(5)::before { content: "Our review"; }

  .companies-guide-page .company-profiles {
    display: block !important;
    padding-top: 36px !important;
    padding-bottom: 80px !important;
  }

  .companies-guide-page .company-index {
    display: none;
  }

  .companies-guide-page .company-profile + .company-profile {
    margin-top: 72px;
  }

  .companies-guide-page .company-profiles > .company-profile {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .companies-guide-page .company-profile > div:nth-of-type(2) > div:first-child dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .companies-guide-page .company-guide-hero,
  .companies-guide-page .company-glance-section,
  .companies-guide-page .company-profiles {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .companies-guide-page .company-glance-table td {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
  }

  .companies-guide-page .company-profile > div:first-of-type {
    gap: 10px !important;
  }

  .companies-guide-page .company-profile-mark img {
    width: 36px !important;
    height: 36px !important;
  }

  .companies-guide-page .company-profile > div:nth-of-type(2) > div:first-child {
    padding: 18px !important;
  }

  .companies-guide-page .company-profile > div:nth-of-type(2) > div:first-child dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
