.hpr-registry {
  --hpr-ink: #171717;
  --hpr-muted: #666;
  --hpr-line: #dedede;
  --hpr-soft: #f7f7f5;
  --hpr-warm: #f2efe8;
  --hpr-certified: #171717;
  color: var(--hpr-ink);
  font: inherit;
  max-width: 1180px;
  margin: 0 auto;
}

.hpr-registry *, .hpr-registry *::before, .hpr-registry *::after { box-sizing: border-box; }
.hpr-registry button, .hpr-registry input, .hpr-registry select { font: inherit; }

.hpr-registry__intro { max-width: 760px; margin-bottom: 28px; }
.hpr-registry__eyebrow {
  font-size: .78rem; line-height: 1; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--hpr-muted); margin-bottom: 10px;
}
.hpr-registry__heading { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.035em; }
.hpr-registry__lede { margin: 0; color: var(--hpr-muted); font-size: 1.05rem; line-height: 1.55; }

.hpr-registry__mode {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 0 0 20px;
}
.hpr-mode-button {
  appearance: none; text-align: left; border: 1px solid var(--hpr-line);
  background: #fff; color: var(--hpr-ink); padding: 16px 18px; border-radius: 10px;
  cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.hpr-mode-button:hover { border-color: #999; }
.hpr-mode-button.is-active { border-color: var(--hpr-ink); background: var(--hpr-ink); color: #fff; }
.hpr-mode-button span { display:block; font-weight: 750; font-size: 1.05rem; margin-bottom: 3px; }
.hpr-mode-button small { display:block; opacity: .72; font-size: .82rem; line-height: 1.3; }

.hpr-registry__toolbar { margin-bottom: 14px; }
.hpr-search { display: flex; align-items: center; gap: 11px; border: 1px solid #bdbdbd; border-radius: 10px; background: #fff; padding: 0 14px; }
.hpr-search:focus-within { border-color: var(--hpr-ink); box-shadow: 0 0 0 1px var(--hpr-ink); }
.hpr-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; opacity: .65; flex: 0 0 auto; }
.hpr-search input { width: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; color: inherit; padding: 15px 0 !important; min-height: auto !important; }
.hpr-search input::placeholder { color: #777; opacity: 1; }

.hpr-kind-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hpr-kind-button, .hpr-clear-button {
  appearance: none; border: 1px solid var(--hpr-line); background: #fff; color: var(--hpr-ink);
  border-radius: 999px; padding: 8px 13px; cursor: pointer; line-height: 1.1;
}
.hpr-kind-button:hover, .hpr-clear-button:hover { border-color: #999; }
.hpr-kind-button.is-active { background: var(--hpr-ink); border-color: var(--hpr-ink); color: #fff; }

.hpr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hpr-filter select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--hpr-line);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--hpr-ink);
  border-radius: 999px;
  padding: 8px 34px 8px 13px;
  min-width: 160px;
  line-height: 1.2;
  cursor: pointer;
}
.hpr-filter select:hover { border-color: #999; }
.hpr-filter select:focus {
  outline: none;
  border-color: var(--hpr-ink);
  box-shadow: 0 0 0 1px var(--hpr-ink);
}

.hpr-registry__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--hpr-line); padding: 15px 0 13px;
  font-size: .9rem; color: var(--hpr-muted);
}
.hpr-clear-button { padding: 6px 10px; font-size: .82rem; }

.hpr-registry__loading { padding: 40px 0; text-align: center; color: var(--hpr-muted); }
.hpr-spinner { display: inline-block; width: 16px; height: 16px; margin-right: 7px; border: 2px solid #bbb; border-top-color: var(--hpr-ink); border-radius: 50%; animation: hpr-spin .8s linear infinite; vertical-align: -3px; }
@keyframes hpr-spin { to { transform: rotate(360deg); } }
.hpr-registry__error { border: 1px solid #b42318; background: #fff5f4; color: #8f1d16; padding: 14px 16px; border-radius: 8px; margin: 12px 0 20px; }

.hpr-results {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hpr-card {
  min-width: 0; display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--hpr-line); border-radius: 10px; padding: 17px;
  background: #fff; min-height: 250px;
}
.hpr-card--certified { border-color: #b6b1a7; background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%); }
.hpr-card__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 15px; }
.hpr-card__top--recognized { justify-content: flex-start; }
.hpr-status {
  display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px;
  padding: 4px 8px; font-size: .68rem; line-height: 1; font-weight: 760;
  letter-spacing: .055em; text-transform: uppercase;
}
.hpr-status--recognized { background: #f0f0ef; color: #393939; }
.hpr-status--certified { background: var(--hpr-certified); color: #fff; }
.hpr-id { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #909090; font-size: .68rem; }
.hpr-card h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.012em; overflow-wrap: anywhere; }
.hpr-card__aka { margin: -2px 0 8px; font-size: .82rem; color: var(--hpr-muted); }
.hpr-card__meta { margin: 2px 0 10px; color: #515151; font-size: .86rem; line-height: 1.45; }
.hpr-card__pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 10px; }
.hpr-pill { background: var(--hpr-soft); border-radius: 999px; padding: 4px 7px; font-size: .72rem; color: #555; }
.hpr-topics { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.hpr-topics span { border-bottom: 1px dotted #bbb; color: #666; font-size: .73rem; }
.hpr-card__note { color: #666; font-size: .79rem; line-height: 1.42; margin: 2px 0 12px; }
.hpr-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding-top: 9px; }
.hpr-card__link { display: inline-flex; text-decoration: none; color: var(--hpr-ink); font-size: .84rem; font-weight: 700; border-bottom: 1px solid var(--hpr-ink); }
.hpr-small-link { text-decoration: none; color: #555; font-size: .78rem; border-bottom: 1px solid #bbb; }
.hpr-card__link:hover, .hpr-small-link:hover { opacity: .68; }

.hpr-empty {
  grid-column: 1 / -1; border: 1px dashed #bdbdbd; border-radius: 10px;
  padding: 40px 20px; text-align: center; color: var(--hpr-muted);
}
.hpr-empty strong { display: block; color: var(--hpr-ink); margin-bottom: 4px; }

.hpr-pagination {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; padding: 24px 0 4px;
}
.hpr-pagination button {
  appearance: none; min-width: 36px; height: 36px; border: 1px solid var(--hpr-line);
  border-radius: 7px; background: #fff; color: var(--hpr-ink); padding: 0 10px; cursor: pointer;
}
.hpr-pagination button.is-active { background: var(--hpr-ink); color: #fff; border-color: var(--hpr-ink); }
.hpr-pagination button:disabled { opacity: .4; cursor: default; }
.hpr-page-gap { color: #888; padding: 0 2px; }

@media (max-width: 900px) {
  .hpr-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hpr-registry__mode { grid-template-columns: 1fr; }
  .hpr-results { grid-template-columns: 1fr; }
  .hpr-registry__meta { align-items: flex-start; flex-direction: column; }
  .hpr-filter { flex: 1 1 100%; }
  .hpr-filter select { width: 100%; }
  .hpr-card { min-height: auto; }
}


/* Permanent Registry record pages — v1.2 */
.hpr-card--clickable {
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hpr-card--clickable:hover,
.hpr-card--clickable:focus {
  border-color: #8f8f8f;
  box-shadow: 0 6px 18px rgba(0,0,0,.035);
  transform: translateY(-1px);
  outline: none;
}
.hpr-card__title-link {
  color: inherit;
  text-decoration: none;
}
.hpr-card__title-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hpr-card__record-link { margin-right: 2px; }

.hpr-record-shell {
  --hpr-ink: #171717;
  --hpr-muted: #666;
  --hpr-line: #dedede;
  --hpr-soft: #f7f7f5;
  color: var(--hpr-ink);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 96px) 24px 80px;
}
.hpr-record-shell *, .hpr-record-shell *::before, .hpr-record-shell *::after { box-sizing: border-box; }
.hpr-record__back {
  display: inline-flex;
  color: #555;
  text-decoration: none;
  font-size: .88rem;
  margin-bottom: 34px;
  border-bottom: 1px solid #bbb;
}
.hpr-record__back:hover { color: var(--hpr-ink); border-color: var(--hpr-ink); }
.hpr-record__header {
  max-width: 920px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hpr-line);
}
.hpr-record__label-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.hpr-record__status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .7rem;
  line-height: 1;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f0f0ef;
}
.hpr-record__status--certified { background: #171717; color: #fff; }
.hpr-record__certificate-id { color: #777; font-size: .82rem; }
.hpr-record__title {
  margin: 0 0 14px;
  max-width: 980px;
  font-size: clamp(2.35rem, 5.8vw, 5rem);
  line-height: .99;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.hpr-record__subtitle {
  margin: 0;
  max-width: 820px;
  color: #575757;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.55;
}
.hpr-record__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: clamp(30px, 6vw, 72px);
  padding-top: 34px;
}
.hpr-record__section + .hpr-record__section { margin-top: 34px; }
.hpr-record__section h2 {
  margin: 0 0 14px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #666;
}
.hpr-record__facts {
  margin: 0;
  border-top: 1px solid var(--hpr-line);
}
.hpr-record__fact {
  display: grid;
  grid-template-columns: minmax(120px, .38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hpr-line);
}
.hpr-record__fact dt {
  margin: 0;
  color: #777;
  font-size: .82rem;
}
.hpr-record__fact dd {
  margin: 0;
  color: var(--hpr-ink);
  overflow-wrap: anywhere;
}
.hpr-record__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hpr-record__topics span {
  display: inline-flex;
  background: var(--hpr-soft);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: .78rem;
}
.hpr-record__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hpr-record__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #171717;
  border-radius: 999px;
  padding: 10px 14px;
  color: #171717;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .84rem;
}
.hpr-record__button--primary { background: #171717; color: #fff; }
.hpr-record__button:hover { opacity: .72; }
.hpr-record__aside {
  align-self: start;
  border-top: 2px solid #171717;
  padding-top: 16px;
}
.hpr-record__aside h2 {
  margin: 0 0 9px;
  font-size: 1rem;
}
.hpr-record__aside p {
  margin: 0;
  color: #606060;
  font-size: .9rem;
  line-height: 1.55;
}
.hpr-record__aside p + p { margin-top: 11px; }
.hpr-record__machine-id {
  margin-top: 28px;
  padding-top: 13px;
  border-top: 1px solid var(--hpr-line);
  color: #969696;
  font-size: .7rem;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .hpr-record-shell { padding-left: 18px; padding-right: 18px; }
  .hpr-record__body { grid-template-columns: 1fr; }
  .hpr-record__fact { grid-template-columns: 1fr; gap: 4px; }
  .hpr-record__title { font-size: clamp(2.25rem, 12vw, 3.7rem); }
}


/* Final Certified verification treatment */
.hpr-record__aside-actions {
  margin-top: 18px;
}
.hpr-record__aside-actions .hpr-record__button {
  display: inline-flex;
}
