.v5-registry-heading {
  margin: 0;
  font-size: clamp(20px, 3vw, 30px);
}

.v5-registry-subtitle {
  color: #a8c1d3;
  line-height: 1.6;
  margin: 0;
}

.v5-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.v5-search-input {
  flex: 1 1 230px;
  min-height: 48px;
  border: 1px solid #35546b;
  border-radius: 13px;
  padding: 12px 15px;
  background: #0e2035;
  color: #f1f8ff;
  font: inherit;
}

.v5-search-button {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 13px;
  background: #27dec5;
  color: #052833;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.v5-record-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}

.v5-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid #29465a;
  border-radius: 14px;
  background: #152940;
  padding: 17px;
}

.v5-record-link,
.v5-back-link,
.v5-page-link {
  color: #4ce8d0;
  font-weight: 700;
  text-decoration: none;
}

.v5-record-link:hover,
.v5-back-link:hover,
.v5-page-link:hover {
  text-decoration: underline;
}

.v5-record-meta,
.v5-registry-status,
.v5-page-indicator {
  color: #b4c8d8;
  font-size: 13px;
}

.v5-registry-error {
  color: #ffbbb9;
  padding: 16px;
  background: #412636;
  border: 1px solid #8b4858;
  border-radius: 13px;
  line-height: 1.6;
}

.v5-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
}

.v5-profile-layout {
  display: grid;
  gap: 17px;
}

.v5-profile-card {
  background: #14283a;
  border: 1px solid #29465a;
  padding: 20px;
  border-radius: 17px;
}

.v5-profile-card h3 {
  margin: 0 0 16px;
  font-size: 17px;
  color: #eaf5ff;
}

.v5-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
}

.v5-profile-field {
  min-width: 0;
}

.v5-profile-field dt {
  font-size: 12px;
  color: #a8c1d3;
  margin-bottom: 5px;
}

.v5-profile-field dd {
  margin: 0;
  color: #eaf5ff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.v5-search-button:focus-visible,
.v5-search-input:focus-visible,
.v5-record-link:focus-visible,
.v5-back-link:focus-visible,
.v5-page-link:focus-visible {
  outline: 2px solid #27dec5;
  outline-offset: 3px;
}

@media (max-width: 650px) {
  .v5-profile-grid {
    grid-template-columns: 1fr;
  }

  .v5-record-item {
    padding: 14px;
  }

  .v5-search-button {
    flex-grow: 1;
  }
}


/* V5 sponsor relationship distinction */
.v5-registered-sponsor,
.v5-current-sponsor {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid;
}

.v5-registered-sponsor {
  background: rgba(77, 156, 255, 0.10);
  border-color: rgba(77, 156, 255, 0.42);
}

.v5-current-sponsor {
  background: rgba(0, 194, 184, 0.10);
  border-color: rgba(0, 194, 184, 0.42);
}

.v5-registered-sponsor dt {
  color: #a9d2ff;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v5-current-sponsor dt {
  color: #8af4e8;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v5-registered-sponsor dd,
.v5-current-sponsor dd {
  font-weight: 700;
}

/* V5 Police verification profile overview */
.v5-police-overview {
  display: grid;
  gap: 14px;
}

.v5-verification-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.v5-verification-section {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #35546b;
  border-radius: 12px;
  background: #0e2035;
  color: #eaf5ff;
  font-weight: 650;
}

@media (max-width: 650px) {
  .v5-verification-sections {
    grid-template-columns: 1fr;
  }
}

/* V5 Police verification detail readout */
.v5-verification-details {
  display: grid;
  gap: 12px;
}

.v5-verification-details .v5-profile-card {
  background: #0e2035;
}

@media (min-width: 760px) {
  .v5-verification-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
