.feature-comparison {
  display: grid;
  grid-gap: 32px;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 1200px) {
  .feature-comparison {
    grid-template-columns: 1fr 3fr;
  }
}

.feature-comparison__navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-comparison__navigation li:not(:first-child) {
  margin-top: 8px;
}

.feature-comparison__anchor {
  opacity: 0.33;
  transition: opacity 0.1s ease;
  text-decoration: none;
}

.feature-comparison__anchor:hover,
.feature-comparison__anchor--active {
  opacity: 1;
}

@media screen and (max-width: 1199px) {
  .feature-comparison__navigation {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  .feature-comparison__navigation ul {
    position: sticky;
    top: 128px;
  }
}

.feature-category:not(:first-child) {
  margin-top: 64px;
}

.feature-category__row {
  display: grid;
  grid-template-columns: 4fr repeat(2, 1fr);
  grid-gap: 0;
  padding: 24px 0 24px 24px;
}

.feature-category__row:nth-child(even) {
  background: var(--cf-color-light-grey);
}

.feature-category__row:nth-child(odd) {
  background: var(--cf-color-white);
}

.feature-category__row--head {
  align-items: end;
  padding-top: 0;
}

@media screen and (max-width: 767px) {
  .feature-category__row {
    padding: 16px 0 16px 16px;
    grid-template-columns: 1fr repeat(2, 5ch);
  }
  
  .feature-category__row--head {
    padding-left: 0;
    padding-right: 0;
  }
}

.feature-category__title {
  margin: 0 0 -0.25em;
}
@media screen and (max-width: 767px) {
  .feature-category__title {
    font-size: var(--h5-font-size);
  }
}

.feature-category__link {
  font-weight: inherit;
  text-decoration: underline;
}

.feature-category__link:hover {
  text-decoration: none;
}

.feature-category__cell {
  word-break: break-all;
  position: relative;
}

.feature-category__cell:first-child) {
  padding-right: 24px;
}

.feature-category__cell:not(:first-child) {
  text-align: center;
}

@media screen and (max-width: 767px) {
  .feature-category__cell:first-child) {
    padding-right: 16px;
  }
  
  .feature-category__row--head .feature-category__cell:not(:first-child) {
    height: 10ch;
    font-size: 0.65rem;
  }
  
  .feature-category__row--head .feature-category__cell:not(:first-child) span {
    position: absolute;
    transform: translateX(-100%) translateY(-50%) rotate(90deg);
    transform-origin: center right;
    left: 50%;
    top: 100%;
    white-space: nowrap;
  }
}

.feature-category__cell svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media screen and (max-width: 767px) {
  .feature-category__cell svg {
    width: 16px;
    height: 16px;
  }
}

@media screen and (max-width: 500px) {
  .feature-category__cell svg {
    width: 12px;
    height: 12px;
    font-size: 13px;
  }
}

.feature-category__feature {
  word-break: normal;
  position: relative;
  display: inline-block;
}

@media screen and (max-width: 500px) {
  .feature-category__feature {
    font-size: 13px;
  }
}

@media screen and (max-width: 767px) {
  .feature-category__feature .tooltip {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .feature-category__feature {
    border-bottom: 1px dashed #b8b8b8;
  }

  .feature-category__feature:hover {
    border-color: currentColor;
  }

  .feature-category__feature .tooltip {
    color: var(--cf-color-dark-grey);
    position: absolute;
    left: calc(100% + 1em);
    top: 0;
    opacity: 0;
    pointer-events: none;
    padding: 1rem 1.2rem;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-width: 20em;
  }

  .feature-category__feature:hover .tooltip {
    opacity: 1;
    pointer-events: all;
    z-index: 1;
  }
}