/* English grade-comparison pages (/products/compare/). */
.bio-compare-page .compare-hero .bio-breadcrumb {
  margin: 0 0 24px;
}

.bio-compare-page .compare-hero .lead {
  margin: 0;
  color: var(--bio-color-text-secondary);
}

.bio-compare-page .compare-hero__partner {
  max-width: 62ch;
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bio-color-border);
  color: var(--bio-color-ink);
  font-size: .9375rem;
  line-height: 1.6;
}

.bio-compare-page .compare-form {
  border: 1px solid var(--bio-color-border);
  border-radius: 6px;
  background: var(--bio-color-surface);
}

.bio-compare-page .compare-table-wrap:focus-visible {
  outline: 3px solid var(--bio-color-focus-ring);
  outline-offset: 3px;
}

.bio-compare-page .compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.bio-compare-page .compare-table :is(th, td) {
  padding: 11px 16px;
  border-bottom: 1px solid var(--bio-color-border);
  text-align: left;
  vertical-align: middle;
}

.bio-compare-page .compare-table thead th {
  position: sticky;
  top: 81px;
  z-index: 2;
  color: var(--bio-color-text-secondary);
  background: var(--bio-color-surface);
  box-shadow: inset 0 -1px 0 var(--bio-color-ink);
  font-size: .8125rem;
  font-weight: 600;
  vertical-align: bottom;
}

.bio-compare-page .compare-table thead th:first-child {
  border-top-left-radius: 6px;
}

.bio-compare-page .compare-table thead th:last-child {
  border-top-right-radius: 6px;
}

.bio-compare-page .compare-table thead small {
  display: block;
  margin-top: 2px;
  font-size: .75rem;
  font-weight: 400;
}

.bio-compare-page .compare-table .compare-table__number {
  text-align: right;
}

.bio-compare-page .compare-table .compare-table__select {
  width: 48px;
  padding-right: 0;
}

.bio-compare-page .compare-table thead th:nth-child(2) {
  width: 17%;
}

.bio-compare-page .compare-table thead th:nth-child(3) {
  width: 19%;
}

.bio-compare-page .compare-table thead th:last-child {
  width: 14%;
}

.bio-compare-page .compare-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--bio-color-action);
  vertical-align: middle;
  cursor: pointer;
}

.bio-compare-page .compare-table__group th {
  padding-block: 9px;
  color: var(--bio-color-ink);
  background: var(--bio-color-background);
  font-size: .875rem;
  font-weight: 600;
}

.bio-compare-page .compare-table__group span {
  margin-left: 12px;
  color: var(--bio-color-text-secondary);
  font-size: .8125rem;
  font-weight: 400;
}

.bio-compare-page .compare-table__scale th {
  padding-block: 8px;
  border-top: 1px solid var(--bio-color-ink);
  color: var(--bio-color-ink);
  background: var(--bio-color-surface);
  font-size: .8125rem;
  font-weight: 600;
}

.bio-compare-page .compare-table__scale span {
  margin-left: 12px;
  color: var(--bio-color-text-secondary);
  font-weight: 400;
}

.bio-compare-page .compare-table tbody th[scope="row"] {
  font-weight: 400;
  white-space: nowrap;
}

.bio-compare-page .compare-table code {
  font-family: var(--bio-font-mono);
  font-size: .9375rem;
  font-weight: 500;
}

.bio-compare-page .compare-table tbody a {
  color: var(--bio-color-action);
  text-decoration: none;
}

.bio-compare-page .compare-table tbody a:is(:hover, :focus-visible) {
  color: var(--bio-color-action-hover);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.bio-compare-page .compare-table tbody td small {
  margin-left: 4px;
  color: var(--bio-color-identity);
  font-size: .8125rem;
}

.bio-compare-page .compare-table__durometer {
  white-space: nowrap;
}

.bio-compare-page .compare-table__durometer span {
  display: inline-block;
  min-width: 2ch;
  color: var(--bio-color-ink);
  font-weight: 600;
  text-align: right;
}

.bio-compare-page .compare-table tbody .compare-table__durometer small {
  display: inline-block;
  min-width: 6ch;
  margin-left: 6px;
}

.bio-compare-page .compare-table__durometer meter {
  width: 72px;
  height: 4px;
  margin-left: 12px;
  border: 0;
  border-radius: 2px;
  background: var(--bio-color-border);
  vertical-align: middle;
  appearance: none;
}

.bio-compare-page .compare-table__durometer meter::-webkit-meter-bar {
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: var(--bio-color-border);
}

.bio-compare-page .compare-table__durometer meter::-webkit-meter-optimum-value {
  border-radius: 2px;
  background: var(--bio-color-ink);
}

.bio-compare-page .compare-table__durometer meter::-moz-meter-bar {
  border-radius: 2px;
  background: var(--bio-color-ink);
}

.bio-compare-page .compare-table__document {
  color: var(--bio-color-text-secondary);
  font-size: .875rem;
  white-space: nowrap;
}

.bio-compare-page .compare-table__empty {
  color: var(--bio-color-identity);
}

.bio-compare-page .compare-table__raw {
  font-size: .8125rem;
}

.bio-compare-page .compare-table tbody tr:not(.compare-table__group, .compare-table__scale):hover :is(th, td) {
  background: var(--bio-color-background);
}

.bio-compare-page .compare-table tbody tr:has(input:checked) :is(th, td) {
  background: var(--bio-color-action-soft);
}

.bio-compare-page .compare-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 12px 16px;
  border-radius: 0 0 5px 5px;
  color: #fff;
  background: var(--bio-color-ink);
}

.bio-compare-page .compare-bar__status {
  flex: 1 1 18rem;
  margin: 0;
  color: #fff;
  font-size: .9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bio-compare-page .compare-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bio-compare-page .compare-bar .bio-button {
  min-height: 44px;
}

body.bio-compare-page .compare-bar .compare-bar__secondary {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: transparent;
}

body.bio-compare-page .compare-bar .compare-bar__secondary:is(:hover, :focus-visible) {
  border-color: #fff;
  color: #fff;
}

.bio-compare-page .compare-bar__clear {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  color: #fff;
  background: none;
  font: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.bio-compare-page .compare-bar :is(button, .bio-button):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

body.bio-compare-page .compare-bar button:disabled {
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .55);
  background: transparent;
  cursor: not-allowed;
}

.bio-compare-page .compare-bar__clear[hidden] {
  display: none;
}

.bio-compare-page .compare-notes {
  max-width: 78ch;
  margin-top: 24px;
  color: var(--bio-color-text-secondary);
  font-size: .875rem;
  line-height: 1.65;
}

.bio-compare-page .compare-notes p {
  margin: 0 0 10px;
}

.bio-compare-page .compare-notes p:first-child {
  color: var(--bio-color-ink);
}

.bio-compare-page .compare-notes p a:not(.bio-text-link) {
  color: var(--bio-color-action);
  text-underline-offset: .2em;
}

@media (max-width: 980px) {
  .bio-compare-page .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bio-compare-page .compare-table {
    min-width: 760px;
  }

  .bio-compare-page .compare-table thead th {
    position: static;
  }
}

@media (max-width: 560px) {
  .bio-compare-page .compare-table :is(th, td) {
    padding-inline: 12px;
  }

  .bio-compare-page .compare-table__durometer meter {
    display: none;
  }

  .bio-compare-page .compare-bar__actions,
  .bio-compare-page .compare-bar .bio-button {
    width: 100%;
  }

  /* On a phone the bar follows the reader only once something is selected. */
  .bio-compare-page .compare-bar {
    position: static;
  }

  .bio-compare-page .compare-form.has-selection .compare-bar {
    position: sticky;
  }

  .bio-compare-page .compare-bar__clear {
    margin-inline: auto;
  }
}
