@import url("./research-ui.css");

.ap-identity {
  color: var(--rx-deep);
  background: var(--rx-card);
  padding: 27px;
  border-radius: 8px;
  border: 1px solid var(--rx-rule);
}
.ap-identity > p,
.ap-identity dl {
  font-family: monospace;
}
.ap-identity h2 {
  font-family: system-ui, sans-serif;
  margin: 18px 0 28px;
}
.ap-identity strong {
  font-size: 31px;
}
.ap-identity small {
  font-size: 20px;
}
.ap-identity dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rx-rule);
  padding-top: 10px;
  margin: 14px 0;
  gap: 5px;
}
.ap-identity dd {
  text-align: right;
  margin: 0;
}
.ap-bars {
  display: none;
}
.ap-verifier {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(14px, 2.7vw, 35px);
}
.ap-ticket {
  --ink: #262c4b;
  --paper: #d7dfed;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #808baa;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 0 #7c89a4;
  position: relative;
}
.ap-ticket header {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  background: #283c61;
  color: #fcf7e8;
  padding: 14px 20px;
  font:
    650 12px/1.2 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.ap-face,
.ap-scope,
.ap-ticket footer {
  padding: clamp(14px, 2.2vw, 27px);
}
.ap-face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  background-image: repeating-radial-gradient(
    ellipse at 92% 110%,
    transparent 0px 6px,
    #7586b533 7px 8px,
    transparent 9px 13px
  );
}
.ap-face h1 {
  font:
    600 clamp(32px, 5.2vw, 70px)/0.94 Georgia,
    serif;
  letter-spacing: -0.075em;
  margin: 8px 0;
}
.ap-face p,
.ap-ticket footer small,
.ap-scope p {
  font:
    13px/1.35 ui-monospace,
    monospace;
}
.ap-stamp {
  display: grid;
  place-items: center;
  align-content: center;
  border: 4px double #225a49;
  border-radius: 50%;
  color: #164833;
  background: #c9dbca;
  transform: rotate(-9deg);
  width: clamp(68px, 9vw, 106px);
  aspect-ratio: 1;
  line-height: 1;
}
.ap-stamp b {
  font:
    800 clamp(20px, 3vw, 34px)/1 ui-monospace,
    monospace;
}
.ap-stamp small {
  font:
    700 8px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.04em;
}
.ap-stamp.ap-rejected {
  background: #f2d2c4;
  color: #6b271e;
  border-color: #813a28;
}
.ap-scope,
.ap-ticket footer {
  border-top: 1px dashed #6c7992;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ap-scope b {
  font:
    600 21px/1.3 system-ui,
    sans-serif;
}
.ap-ticket footer {
  background: #c4cfe0;
}
.ap-ticket footer strong,
.ap-ticket footer small {
  display: block;
}
.ap-ticket footer strong {
  font:
    650 19px ui-monospace,
    monospace;
}
.ap-ticket footer button {
  background: transparent;
  color: #25334c;
  border-color: #697c96;
}
.ap-verifier > .rx-panel {
  border-radius: 0;
  border-inline-start: 3px solid var(--rx-rule);
}
@media (max-width: 700px) {
  .ap-verifier {
    grid-template-columns: 1fr;
  }
}
[data-theme="dark"] .ap-ticket {
  --paper: #3b475f;
  --ink: #f1edf6;
  border-color: #72819a;
  box-shadow: 0 4px 0 #526383;
}
[data-theme="dark"] .ap-ticket header {
  background: #22324f;
  color: #f8f0df;
}
[data-theme="dark"] .ap-ticket footer {
  background: #39435a;
}
[data-theme="dark"] .ap-ticket footer button {
  color: #e3e9f5;
  border-color: #a7b5cb;
}
[data-theme="dark"] .ap-face {
  background-image: repeating-radial-gradient(
    ellipse at 92% 110%,
    transparent 0px 6px,
    #b1bce226 7px 8px,
    transparent 9px 13px
  );
}
