/* Shared monthly-value list for desktop and mobile, plus OPC discovery pages. */

:root {
  --opc-mobile-gutter: 16px;
}

#heat {
  background: #f5f7fa;
}

.opc-value-opc {
  box-sizing: border-box;
  width: 100%;
  padding: 72px 10px;
  color: #16181a;
}

.opc-value-opc *,
.opc-members-page * {
  box-sizing: border-box;
}

.opc-value-opc__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.opc-value-opc__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.opc-value-opc__header h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
}

.opc-value-opc__header p {
  max-width: 720px;
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 26px;
}

.opc-value-opc__meta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.opc-value-opc__rule {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #b8c7dc;
  border-radius: 2px;
  color: #0052d9;
  background: #fff;
  cursor: pointer;
}

.opc-value-opc__notice {
  display: flex;
  min-height: 48px;
  margin: 0 0 16px;
  padding: 12px 16px;
  align-items: center;
  gap: 10px;
  border-left: 3px solid #0052d9;
  color: #49617f;
  background: #edf5ff;
  font-size: 13px;
  line-height: 22px;
}

.opc-value-opc__notice strong {
  color: #173b70;
  font-weight: 600;
}

.opc-value-opc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: 20px;
}

.opc-value-opc__list-shell {
  border: 1px solid #dce3ed;
  background: #fff;
  box-shadow: 0 8px 24px rgba(3, 27, 78, 0.06);
}

.opc-value-opc__list-head {
  display: grid;
  min-height: 44px;
  padding: 0 18px;
  grid-template-columns: 44px 48px 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e5e8ed;
  color: #7b8494;
  background: #f7f9fc;
  font-size: 12px;
}

.opc-value-opc__list-head span:nth-child(1) { grid-column: 1; }
.opc-value-opc__list-head span:nth-child(2) { grid-column: 3; }
.opc-value-opc__list-head span:nth-child(3) { grid-column: 4; }
.opc-value-opc__list-head span:nth-child(4) { grid-column: 5; }

.opc-value-opc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.opc-value-row {
  border-bottom: 1px solid #edf0f4;
}

.opc-value-row:last-child {
  border-bottom: 0;
}

.opc-value-row[hidden] {
  display: none;
}

.opc-value-row__link {
  display: grid;
  min-height: 76px;
  padding: 10px 18px;
  grid-template-columns: 44px 48px 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.opc-value-row__link:hover,
.opc-value-row__link:focus-visible {
  background: #f4f8ff;
}

.opc-value-row__link:focus-visible {
  outline: 2px solid #0052d9;
  outline-offset: -2px;
}

.opc-value-row__rank {
  color: #758094;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: center;
}

.opc-value-row[data-top="true"] .opc-value-row__rank {
  color: #0052d9;
  font-weight: 700;
}

.opc-value-row__link > img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.opc-value-row__identity,
.opc-value-row__reason,
.opc-value-row__signals {
  min-width: 0;
}

.opc-value-row__identity,
.opc-value-row__reason {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.opc-value-row__identity strong {
  overflow: hidden;
  color: #17233d;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-value-row__identity small {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-value-row__reason small {
  color: #8a94a5;
  font-size: 11px;
}

.opc-value-row__reason strong {
  display: -webkit-box;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.opc-value-row__signals {
  display: flex;
  max-width: 190px;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.opc-value-row__signals em {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-value-row__park {
  padding: 3px 7px;
  color: #0052d9;
  background: #edf5ff;
}

.opc-value-row__trend {
  color: #7a8495;
}

.opc-value-opc__result {
  min-height: 22px;
  margin: 10px 0 0;
  color: #667085;
  font-size: 13px;
}

.opc-value-opc__aside {
  display: grid;
  gap: 14px;
}

.opc-value-opc__aside article {
  padding: 22px;
  border: 1px solid #dce3ed;
  background: #fff;
}

.opc-value-opc__aside article:first-child {
  border-top: 3px solid #0052d9;
}

.opc-value-opc__aside h3 {
  margin: 0 0 9px;
  color: #17233d;
  font-size: 18px;
  font-weight: 600;
}

.opc-value-opc__aside p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 22px;
}

.opc-value-opc__aside a {
  display: inline-flex;
  min-height: 44px;
  margin-top: 14px;
  align-items: center;
  gap: 8px;
  color: #0052d9;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.opc-value-opc__aside img {
  width: 16px;
  height: 16px;
}

/* All-OPC secondary page */

.opc-members-page {
  background: #fff;
}

.opc-members-hero__media {
  overflow: hidden;
  border: 1px solid #d6e2f2;
  background: #0d3e7a;
}

.opc-members-hero__media > img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  opacity: 0.72;
}

.opc-members-hero__media dl {
  display: grid;
  margin: 0;
  padding: 17px 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  color: #fff;
  background: #0f4b94;
}

.opc-members-hero__media dl div {
  min-width: 0;
}

.opc-members-hero__media dt {
  color: #b9d7ff;
  font-size: 12px;
}

.opc-members-hero__media dd {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 500;
}

.opc-member-search {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid #dce3ed;
  background: #fff;
}

.opc-member-search form {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
}

.opc-member-search label {
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.opc-member-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #bfc8d6;
  border-radius: 2px;
  outline: 0;
}

.opc-member-search input:focus {
  border-color: #0052d9;
  box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.12);
}

.opc-member-search form button,
.opc-member-card__action,
.opc-member-dialog__actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #0052d9;
  border-radius: 2px;
  color: #fff;
  background: #0052d9;
  cursor: pointer;
}

.opc-member-search__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.opc-member-search__filters button,
.opc-member-search__reset {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d5dce6;
  border-radius: 2px;
  color: #53627a;
  background: #fff;
  cursor: pointer;
}

.opc-member-search__filters button[aria-pressed="true"] {
  border-color: #0052d9;
  color: #0052d9;
  background: #edf5ff;
}

.opc-member-search__status {
  display: flex;
  min-height: 44px;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #667085;
  font-size: 13px;
}

.opc-member-search__status p {
  margin: 0;
}

.opc-member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.opc-member-card {
  display: flex;
  min-width: 0;
  min-height: 410px;
  padding: 22px;
  flex-direction: column;
  border: 1px solid #dce3ed;
  background: #fff;
  box-shadow: 0 6px 18px rgba(3, 27, 78, 0.05);
  scroll-margin-top: 136px;
}

.opc-member-card[hidden] {
  display: none;
}

.opc-member-card:target {
  border-color: #0052d9;
  box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.12);
}

.opc-member-card__header {
  display: grid;
  position: relative;
  min-height: 72px;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.opc-member-card__header > img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.opc-member-card__identity {
  min-width: 0;
}

.opc-member-card__identity p,
.opc-member-card__identity h3,
.opc-member-card__identity small {
  margin: 0;
}

.opc-member-card__identity p {
  color: #667085;
  font-size: 12px;
}

.opc-member-card__identity h3 {
  margin-top: 4px;
  color: #17233d;
  font-size: 20px;
  font-weight: 600;
}

.opc-member-card__identity small {
  display: block;
  margin-top: 3px;
  color: #4f5d72;
}

.opc-member-card__selected {
  position: absolute;
  top: -22px;
  right: -22px;
  padding: 5px 8px;
  color: #0052d9;
  background: #edf5ff;
  font-size: 11px;
}

.opc-member-card__intro {
  display: -webkit-box;
  min-height: 66px;
  margin: 18px 0 12px;
  overflow: hidden;
  color: #566178;
  font-size: 14px;
  line-height: 22px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.opc-member-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opc-member-card__tags li {
  padding: 4px 8px;
  color: #4f6079;
  background: #f1f5fa;
  font-size: 12px;
}

.opc-member-card__record {
  margin-top: 16px;
  padding: 12px;
  border-left: 2px solid #76a9ef;
  background: #f6f9fd;
}

.opc-member-card__record span {
  color: #7b8494;
  font-size: 11px;
}

.opc-member-card__record p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.opc-member-card__metrics {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 11px;
  line-height: 18px;
}

.opc-member-card__footer {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.opc-member-card__source {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.opc-member-card__source strong {
  overflow: hidden;
  color: #0052d9;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-member-card__source small {
  color: #7b8494;
  font-size: 11px;
}

.opc-member-card__action {
  flex: 0 0 auto;
  min-width: 112px;
}

.opc-member-empty {
  margin-top: 20px;
  padding: 40px 24px;
  border: 1px dashed #bfc8d6;
  color: #667085;
  background: #fff;
  text-align: center;
}

.opc-member-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: #17233d;
  background: #fff;
  box-shadow: 0 24px 72px rgba(3, 27, 78, 0.24);
}

.opc-member-dialog::backdrop {
  background: rgba(6, 20, 44, 0.62);
}

.opc-member-dialog__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e8ed;
}

.opc-member-dialog__header h2,
.opc-member-dialog__body p {
  margin: 0;
}

.opc-member-dialog__header h2 {
  font-size: 24px;
  font-weight: 600;
}

.opc-member-dialog__body {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  color: #566178;
  line-height: 24px;
}

.opc-member-dialog__body article {
  padding: 14px;
  border-left: 3px solid #0052d9;
  background: #f2f7ff;
}

.opc-member-dialog__body article strong {
  display: block;
  margin-bottom: 5px;
  color: #173b70;
}

.opc-member-dialog__actions {
  display: flex;
  padding: 0 24px 24px;
  justify-content: flex-end;
  gap: 10px;
}

.opc-member-dialog__actions a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid #0052d9;
  border-radius: 2px;
  color: #0052d9;
  text-decoration: none;
}

@media (max-width: 1050px) {
  .opc-value-opc__layout {
    grid-template-columns: 1fr;
  }

  .opc-value-opc__aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opc-value-opc__list-head,
  .opc-value-row__link {
    grid-template-columns: 40px 48px 190px minmax(0, 1fr) 150px;
  }

  .opc-member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  #heat {
    padding: 0 0 24px;
  }

  .opc-value-opc {
    padding: 14px var(--opc-mobile-gutter, 16px) 28px;
  }

  .opc-value-opc__header {
    display: block;
    margin-bottom: 16px;
  }

  .opc-value-opc__header h2 {
    margin-bottom: 7px;
    font-size: 26px;
  }

  .opc-value-opc__header p {
    font-size: 14px;
    line-height: 22px;
  }

  .opc-value-opc__meta {
    margin-top: 14px;
    justify-content: space-between;
  }

  .opc-value-opc__notice {
    display: block;
    padding: 11px 13px;
  }

  .opc-value-opc__notice strong {
    display: block;
    margin-bottom: 2px;
  }

  .opc-value-opc__list-head {
    display: none;
  }

  .opc-value-row__link {
    min-height: 98px;
    padding: 11px 10px;
    grid-template-columns: 26px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
  }

  .opc-value-row__rank {
    font-size: 18px;
  }

  .opc-value-row__link > img {
    width: 42px;
    height: 42px;
  }

  .opc-value-row__identity strong {
    font-size: 15px;
  }

  .opc-value-row__identity small {
    font-size: 11px;
  }

  .opc-value-row__reason {
    grid-column: 2 / -1;
    grid-row: 2;
    padding-top: 1px;
  }

  .opc-value-row__reason strong {
    font-size: 12px;
    line-height: 18px;
  }

  .opc-value-row__signals {
    grid-column: 4;
    grid-row: 1;
    max-width: 92px;
  }

  .opc-value-row__park {
    display: none;
  }

  .opc-value-opc__aside {
    grid-template-columns: 1fr;
  }

  .opc-value-opc__aside article {
    padding: 18px;
  }

  .opc-secondary-hero__inner {
    grid-template-columns: 1fr;
  }

  .opc-members-hero__media {
    max-width: 520px;
  }

  .opc-member-search form {
    grid-template-columns: 1fr 88px;
  }

  .opc-member-search form label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .opc-members-hero__media > img {
    height: 172px;
  }

  .opc-members-hero__media dl {
    padding: 14px;
    gap: 8px;
  }

  .opc-members-hero__media dd {
    font-size: 14px;
  }

  .opc-member-search {
    padding: 16px;
  }

  .opc-member-search__status {
    align-items: flex-start;
    flex-direction: column;
  }

  .opc-member-grid {
    grid-template-columns: 1fr;
  }

  .opc-member-card {
    min-height: 0;
    padding: 18px;
  }

  .opc-member-card__selected {
    top: -18px;
    right: -18px;
  }

  .opc-member-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .opc-member-card__action {
    width: 100%;
  }

  .opc-member-dialog__actions {
    flex-direction: column-reverse;
  }

  .opc-member-dialog__actions a,
  .opc-member-dialog__actions button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opc-value-row__link {
    transition: none;
  }
}

/* v0.47 — creator discovery, archive and public OPC profile. */

.opc-members-page,
.opc-profile-page,
.opc-members-page *,
.opc-profile-page * {
  box-sizing: border-box;
}

.opc-members-hero__eyebrow,
.opc-profile-hero__eyebrow {
  display: flex;
  margin: 12px 0 0;
  align-items: center;
  gap: 8px;
  color: #0052d9;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.opc-members-hero__eyebrow + h1,
.opc-profile-hero__eyebrow + h1 {
  margin-top: 8px;
}

.opc-directory-heading__rule {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b8c7dc;
  border-radius: 2px;
  color: #0052d9;
  background: #fff;
  cursor: pointer;
}

.opc-directory-heading__rule:hover,
.opc-directory-heading__rule:focus-visible {
  border-color: #0052d9;
  outline: 0;
  background: #edf5ff;
}

.opc-directory-heading__rule img {
  width: 18px;
  height: 18px;
}

.opc-directory-disclosure {
  display: flex;
  min-height: 48px;
  margin: 0 0 20px;
  padding: 12px 16px;
  align-items: center;
  gap: 10px;
  border-left: 3px solid #0052d9;
  color: #49617f;
  background: #edf5ff;
  font-size: 13px;
  line-height: 22px;
}

.opc-directory-disclosure strong {
  flex: 0 0 auto;
  color: #173b70;
  font-weight: 600;
}

.opc-directory-tabs {
  border-bottom: 1px solid #dce3ed;
  background: #fff;
}

.opc-directory-tabs__list {
  display: flex;
  min-height: 56px;
  align-items: stretch;
  gap: 6px;
}

.opc-directory-tabs button {
  position: relative;
  min-width: 136px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  color: #4d5b70;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.opc-directory-tabs button:hover,
.opc-directory-tabs button[aria-selected="true"] {
  color: #0052d9;
}

.opc-directory-tabs button:focus-visible {
  color: #0052d9;
  outline: 2px solid #0052d9;
  outline-offset: -3px;
}

.opc-directory-tabs button[aria-selected="true"] {
  font-weight: 600;
}

.opc-directory-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  background: #0052d9;
  content: "";
}

.opc-members-page .opc-member-search {
  margin: 0 0 26px;
  padding: 20px 22px 10px;
  border-top: 0;
  box-shadow: 0 2px 4px rgba(3, 27, 78, 0.05);
}

.opc-member-search__input-wrap {
  position: relative;
  min-width: 0;
}

.opc-member-search__input-wrap > img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  opacity: 0.56;
  pointer-events: none;
}

.opc-member-search__input-wrap input {
  padding-left: 42px;
}

.opc-member-search__filters {
  align-items: center;
}

.opc-member-search__filters > span {
  margin-right: 4px;
  color: #68758a;
  font-size: 13px;
}

.opc-member-search__filters button,
.opc-member-search__reset {
  min-height: 40px;
}

.opc-member-search__reset {
  color: #0052d9;
}

.opc-members-page .opc-member-grid {
  align-items: stretch;
}

.opc-members-page .opc-member-card {
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  transition: border-color 160ms linear, box-shadow 160ms linear, transform 160ms linear;
}

.opc-members-page .opc-member-card:hover,
.opc-members-page .opc-member-card:focus-within {
  border-color: #b9cae2;
  box-shadow: 0 10px 28px rgba(3, 27, 78, 0.11);
  transform: translateY(-2px);
}

.opc-member-card__link {
  display: flex;
  min-height: 100%;
  padding: 22px;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.opc-member-card__link:focus-visible {
  outline: 2px solid #0052d9;
  outline-offset: -3px;
}

.opc-members-page .opc-member-card__selected {
  top: -22px;
  right: -22px;
  min-width: 70px;
  padding: 6px 10px;
  color: #0052d9;
  background: #edf5ff;
  font-size: 11px;
  text-align: center;
}

.opc-members-page .opc-member-card__record {
  border-left-color: #4d8fe7;
}

.opc-members-page .opc-member-card__footer {
  width: 100%;
}

.opc-members-page .opc-member-card__action {
  display: inline-flex;
  min-width: auto;
  min-height: 44px;
  padding: 0;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #0052d9;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.opc-member-card__action img {
  width: 16px;
  height: 16px;
}

.opc-member-grid--archive {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.opc-archive-card {
  min-width: 0;
  border: 1px solid #dce3ed;
  background: #fff;
  box-shadow: 0 6px 18px rgba(3, 27, 78, 0.05);
}

.opc-archive-card__header {
  display: flex;
  min-height: 92px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 3px solid #0052d9;
  border-bottom: 1px solid #e5e8ed;
  background: #f7f9fc;
}

.opc-archive-card__header p,
.opc-archive-card__header h3 {
  margin: 0;
}

.opc-archive-card__header p {
  color: #718096;
  font-size: 12px;
}

.opc-archive-card__header h3 {
  margin-top: 4px;
  color: #17233d;
  font-size: 22px;
  font-weight: 500;
}

.opc-archive-card__header > span {
  flex: 0 0 auto;
  color: #0052d9;
  font-size: 13px;
}

.opc-archive-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.opc-archive-card__list li {
  border-bottom: 1px solid #edf0f4;
}

.opc-archive-card__list li:last-child {
  border-bottom: 0;
}

.opc-archive-card__list a {
  display: grid;
  min-height: 62px;
  padding: 10px 18px;
  grid-template-columns: 26px 38px minmax(80px, 0.7fr) minmax(120px, 1fr) 16px;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.opc-archive-card__list a:hover,
.opc-archive-card__list a:focus-visible {
  outline: 0;
  background: #f4f8ff;
}

.opc-archive-card__list img:not(:last-child) {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.opc-archive-card__list img:last-child {
  width: 16px;
  height: 16px;
}

.opc-archive-card__rank {
  color: #7a8495;
  text-align: center;
}

.opc-archive-card__list strong {
  overflow: hidden;
  color: #253554;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-archive-card__list small {
  overflow: hidden;
  color: #68758a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opc-members-page .opc-member-empty {
  margin-top: 0;
  padding: 54px 24px;
}

.opc-member-empty > img {
  width: 28px;
  height: 28px;
  opacity: 0.48;
}

.opc-member-empty h3 {
  margin: 14px 0 6px;
  color: #253554;
  font-size: 20px;
  font-weight: 500;
}

.opc-member-empty p {
  margin: 0 0 18px;
}

.opc-member-dialog {
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
}

.opc-member-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.opc-member-dialog__header p,
.opc-member-dialog__header h2 {
  margin: 0;
}

.opc-member-dialog__header p {
  margin-bottom: 4px;
  color: #68758a;
  font-size: 12px;
}

.opc-member-dialog__header > button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.opc-member-dialog__header > button:hover,
.opc-member-dialog__header > button:focus-visible {
  outline: 0;
  background: #f1f5fa;
}

.opc-rule-dialog__list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  list-style: none;
  counter-reset: rule;
}

.opc-rule-dialog__list li {
  display: grid;
  position: relative;
  min-height: 62px;
  padding: 10px 12px 10px 48px;
  align-content: center;
  border: 1px solid #e3e8f0;
  counter-increment: rule;
}

.opc-rule-dialog__list li::before {
  display: inline-flex;
  position: absolute;
  top: 14px;
  left: 12px;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #0052d9;
  content: counter(rule);
  font-size: 12px;
}

.opc-rule-dialog__list strong,
.opc-rule-dialog__list span {
  display: block;
}

.opc-rule-dialog__list strong {
  color: #253554;
  font-size: 14px;
}

.opc-rule-dialog__list span {
  margin-top: 2px;
  color: #68758a;
  font-size: 13px;
  line-height: 21px;
}

.opc-rule-dialog__note {
  margin: 0;
  padding: 12px 14px;
  color: #526681;
  background: #f1f6fd;
  font-size: 12px;
  line-height: 20px;
}

/* Public OPC profile */

.opc-profile-hero__title {
  margin: -4px 0 12px;
  color: #233a5d;
  font-size: 20px;
  line-height: 30px;
}

.opc-profile-hero__tags {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.opc-profile-hero__tags li {
  padding: 6px 10px;
  border: 1px solid #cad9ee;
  color: #345170;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.opc-profile-hero .opc-secondary-action,
.opc-profile-hero .opc-secondary-action--outline {
  cursor: pointer;
}

.opc-profile-hero__media {
  height: 320px;
  background: #cbdcf3;
}

.opc-profile-hero__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.opc-profile-hero__identity {
  display: grid;
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px 16px;
  gap: 3px;
  color: #fff;
  background: rgba(8, 35, 73, 0.9);
}

.opc-profile-hero__identity p,
.opc-profile-hero__identity strong,
.opc-profile-hero__identity span {
  margin: 0;
}

.opc-profile-hero__identity p {
  color: #9fd0ff;
  font-size: 12px;
}

.opc-profile-hero__identity strong {
  font-size: 20px;
  font-weight: 500;
}

.opc-profile-hero__identity span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.opc-profile-main {
  padding: 60px 0 72px;
  background: #f5f7fa;
}

.opc-profile-main__inner {
  display: grid;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}

.opc-profile-main__content {
  display: grid;
  gap: 22px;
}

.opc-profile-section {
  padding: 28px 30px;
  border: 1px solid #dce3ed;
  background: #fff;
  box-shadow: 0 4px 14px rgba(3, 27, 78, 0.04);
  scroll-margin-top: 140px;
}

.opc-profile-section > header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ebf1;
}

.opc-profile-section > header p,
.opc-profile-section > header h2 {
  margin: 0;
}

.opc-profile-section > header p {
  color: #0052d9;
  font-size: 12px;
}

.opc-profile-section > header h2 {
  margin-top: 5px;
  color: #17233d;
  font-size: 26px;
  font-weight: 500;
  line-height: 36px;
}

.opc-profile-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.opc-profile-capabilities article {
  min-width: 0;
  padding: 18px;
  border-top: 3px solid #5b98e9;
  background: #f5f8fc;
}

.opc-profile-capabilities h3,
.opc-profile-capabilities p {
  margin: 0;
}

.opc-profile-capabilities h3 {
  color: #253554;
  font-size: 15px;
  font-weight: 600;
}

.opc-profile-capabilities p {
  margin-top: 8px;
  color: #5d6a7f;
  font-size: 13px;
  line-height: 22px;
}

.opc-profile-project-card {
  padding: 22px;
  border: 1px solid #dce3ed;
  border-left: 4px solid #0052d9;
  background: #fff;
}

.opc-profile-project-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.opc-profile-project-card > header span {
  padding: 5px 9px;
  color: #0b6b4b;
  background: #eaf8f1;
  font-size: 12px;
}

.opc-profile-project-card > header small {
  color: #68758a;
}

.opc-profile-project-card h3 {
  margin: 18px 0 8px;
  color: #17233d;
  font-size: 22px;
  font-weight: 500;
}

.opc-profile-project-card > p {
  margin: 0;
  color: #566178;
  font-size: 14px;
  line-height: 24px;
}

.opc-profile-project-card__result {
  margin-top: 18px;
  padding: 13px 14px;
  color: #345170;
  background: #f1f6fd;
  font-size: 13px;
  line-height: 22px;
}

.opc-profile-value-stats {
  display: grid;
  margin: 0 0 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dce3ed;
  background: #f7f9fc;
}

.opc-profile-value-stats > div {
  padding: 14px 18px;
  border-right: 1px solid #dce3ed;
}

.opc-profile-value-stats > div:last-child {
  border-right: 0;
}

.opc-profile-value-stats dt,
.opc-profile-value-stats dd {
  margin: 0;
}

.opc-profile-value-stats dt {
  color: #667085;
  font-size: 12px;
}

.opc-profile-value-stats dd {
  margin-top: 4px;
  color: #172b4d;
  font-size: 22px;
  font-weight: 600;
}

.opc-profile-records {
  display: grid;
  gap: 0;
  border: 1px solid #dce3ed;
}

.opc-profile-records article {
  display: grid;
  min-height: 92px;
  padding: 18px 20px;
  grid-template-columns: 132px 210px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e7ebf1;
}

.opc-profile-records article:last-child {
  border-bottom: 0;
}

.opc-profile-records span {
  color: #0052d9;
  font-size: 12px;
}

.opc-profile-records h3,
.opc-profile-records p {
  margin: 0;
}

.opc-profile-records h3 {
  color: #253554;
  font-size: 15px;
  font-weight: 600;
}

.opc-profile-records p {
  color: #68758a;
  font-size: 13px;
  line-height: 21px;
}

.opc-profile-records small {
  grid-column: 2 / -1;
  color: #8a94a6;
  font-size: 11px;
  line-height: 18px;
}

.opc-profile-records__note {
  margin: 12px 0 0;
  color: #7a8495;
  font-size: 12px;
  line-height: 20px;
}

.opc-profile-source {
  display: grid;
  padding: 22px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  border: 1px solid #d5e2f4;
  background: #f1f6fd;
}

.opc-profile-source > img {
  width: 40px;
  height: 40px;
}

.opc-profile-source h3,
.opc-profile-source p {
  margin: 0;
}

.opc-profile-source h3 {
  color: #173b70;
  font-size: 18px;
  font-weight: 600;
}

.opc-profile-source p {
  margin-top: 6px;
  color: #526681;
  font-size: 13px;
  line-height: 22px;
}

.opc-profile-aside {
  position: sticky;
  top: 142px;
}

.opc-profile-contact-card {
  padding: 26px 24px;
  border-top: 4px solid #0052d9;
  color: #fff;
  background: #0d3265;
  box-shadow: 0 10px 28px rgba(3, 27, 78, 0.16);
}

.opc-profile-contact-card > img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.opc-profile-contact-card h2 {
  margin: 16px 0 8px;
  font-size: 21px;
  font-weight: 500;
  line-height: 30px;
}

.opc-profile-contact-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 22px;
}

.opc-profile-contact-card button {
  width: 100%;
  min-height: 44px;
  border: 1px solid #fff;
  border-radius: 2px;
  color: #0052d9;
  background: #fff;
  cursor: pointer;
}

.opc-profile-contact-card button + button {
  margin-top: 10px;
}

.opc-profile-contact-card .opc-profile-contact-card__secondary {
  color: #fff;
  background: transparent;
}

.opc-profile-contact-card button:hover,
.opc-profile-contact-card button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.opc-profile-contact-card small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  text-align: center;
}

.opc-profile-aside__back {
  display: flex;
  min-height: 52px;
  margin-top: 12px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dce3ed;
  color: #0052d9;
  background: #fff;
  font-size: 13px;
  text-decoration: none;
}

.opc-profile-aside__back:hover,
.opc-profile-aside__back:focus-visible {
  border-color: #0052d9;
  outline: 0;
}

.opc-profile-missing {
  min-height: 560px;
  background: #f5f7fa;
}

.opc-profile-missing__card {
  max-width: 680px;
  margin: 80px auto;
  padding: 56px 36px;
  border: 1px solid #dce3ed;
  background: #fff;
  text-align: center;
}

.opc-profile-missing__card > img {
  width: 48px;
  height: 48px;
  opacity: 0.48;
}

.opc-profile-missing__card h1 {
  margin: 18px 0 8px;
  color: #17233d;
  font-size: 30px;
  font-weight: 500;
}

.opc-profile-missing__card p {
  margin: 0 0 24px;
  color: #68758a;
}

.opc-profile-action-dialog__intro {
  display: grid;
  padding: 16px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: #345170;
  background: #f1f6fd;
}

.opc-profile-action-dialog__intro img {
  width: 32px;
  height: 32px;
}

.opc-profile-action-dialog__intro p {
  line-height: 23px;
}

.opc-profile-action-dialog__steps {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.opc-profile-action-dialog__steps li {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid #dce3ed;
  text-align: center;
}

.opc-profile-action-dialog__steps span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #0052d9;
  font-size: 12px;
}

.opc-profile-action-dialog__steps strong {
  display: block;
  margin-top: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.opc-profile-action-dialog__actions > button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #0052d9;
  color: #0052d9;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.opc-profile-action-dialog__actions > button:last-child {
  color: #fff;
  background: #0052d9;
}

.opc-profile-action-dialog__actions > button:focus-visible {
  outline: 2px solid #2b6de5;
  outline-offset: 2px;
}

.opc-profile-action-summary,
.opc-profile-action-result {
  display: grid;
  padding: 16px;
  gap: 5px;
  border: 1px solid #dce3ed;
  background: #fff;
}

.opc-profile-action-summary strong,
.opc-profile-action-result strong {
  color: #172b4d;
  font-size: 16px;
}

.opc-profile-action-summary span,
.opc-profile-action-result span {
  color: #667085;
  font-size: 13px;
  line-height: 21px;
}

.opc-profile-action-result a {
  width: max-content;
  margin-top: 8px;
  color: #0052d9;
  font-size: 13px;
  text-decoration: none;
}

.opc-profile-action-form {
  display: grid;
  gap: 14px;
}

.opc-profile-action-form > div {
  display: grid;
  gap: 6px;
}

.opc-profile-action-form label {
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.opc-profile-action-form input,
.opc-profile-action-form select,
.opc-profile-action-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b8c2d0;
  border-radius: 0;
  color: #172b4d;
  background: #fff;
  font: inherit;
}

.opc-profile-action-form textarea {
  min-height: 96px;
  resize: vertical;
}

.opc-profile-action-form input:focus,
.opc-profile-action-form select:focus,
.opc-profile-action-form textarea:focus {
  border-color: #0052d9;
  outline: 2px solid rgba(0, 82, 217, 0.14);
}

.opc-profile-action-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  font-weight: 400 !important;
  line-height: 20px;
}

.opc-profile-action-check input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
}

.opc-profile-action-error {
  margin: 0;
  color: #c9353f;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .opc-profile-main__inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .opc-profile-capabilities {
    grid-template-columns: 1fr;
  }

  .opc-profile-records article {
    grid-template-columns: 120px minmax(160px, 0.7fr) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .opc-directory-heading {
    display: block !important;
  }

  .opc-directory-heading__rule {
    margin-top: 16px;
  }

  .opc-directory-tabs {
    margin-right: -16px;
    margin-left: -16px;
    padding-left: 16px;
    overflow-x: auto;
  }

  .opc-directory-tabs__list {
    width: max-content;
    padding-right: 16px;
  }

  .opc-members-page .opc-member-search {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .opc-member-grid--archive {
    grid-template-columns: 1fr;
  }

  .opc-profile-main {
    padding: 32px 0 48px;
  }

  .opc-profile-main__inner {
    padding: 0 16px;
    grid-template-columns: 1fr;
  }

  .opc-profile-aside {
    position: static;
  }

  .opc-profile-contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
    gap: 10px 18px;
  }

  .opc-profile-contact-card > img,
  .opc-profile-contact-card h2,
  .opc-profile-contact-card p,
  .opc-profile-contact-card small {
    grid-column: 1;
  }

  .opc-profile-contact-card button {
    grid-column: 2;
  }

  .opc-profile-contact-card button + button {
    margin-top: 0;
  }

  .opc-profile-contact-card small {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .opc-directory-disclosure {
    display: block;
  }

  .opc-directory-disclosure strong {
    display: block;
    margin-bottom: 2px;
  }

  .opc-directory-tabs button {
    min-width: 118px;
    padding: 0 16px;
    font-size: 15px;
  }

  .opc-members-page .opc-member-search form {
    grid-template-columns: 1fr;
  }

  .opc-members-page .opc-member-search form label {
    grid-column: auto;
  }

  .opc-members-page .opc-member-search form > button {
    width: 100%;
  }

  .opc-member-search__filters {
    align-items: stretch;
  }

  .opc-member-search__filters > span {
    width: 100%;
  }

  .opc-members-page .opc-member-card {
    min-height: 0;
  }

  .opc-member-card__link {
    padding: 18px;
  }

  .opc-members-page .opc-member-card__selected {
    top: -18px;
    right: -18px;
  }

  .opc-archive-card__list a {
    grid-template-columns: 24px 36px minmax(0, 1fr) 16px;
  }

  .opc-archive-card__list small {
    display: none;
  }

  .opc-profile-hero__media {
    height: 280px;
  }

  .opc-profile-section {
    padding: 22px 18px;
  }

  .opc-profile-section > header h2 {
    font-size: 23px;
    line-height: 32px;
  }

  .opc-profile-records article {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .opc-profile-value-stats {
    grid-template-columns: 1fr;
  }

  .opc-profile-value-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid #dce3ed;
  }

  .opc-profile-value-stats > div:last-child {
    border-bottom: 0;
  }

  .opc-profile-value-stats dd {
    margin-top: 0;
    font-size: 18px;
  }

  .opc-profile-records small {
    grid-column: auto;
  }

  .opc-profile-contact-card {
    display: block;
  }

  .opc-profile-contact-card button + button {
    margin-top: 10px;
  }

  .opc-profile-contact-card small {
    text-align: center;
  }

  .opc-profile-action-dialog__steps {
    grid-template-columns: 1fr;
  }

  .opc-profile-action-dialog__steps li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .opc-profile-action-dialog__steps strong {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opc-members-page .opc-member-card {
    transition: none;
  }
}
