/* Public license card (/p/) + verification hub. Do not fork per collection. */
body.pub-lic {
  margin: 0 auto;
  max-width: 480px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0a0e0a;
  color: #f4f1e6;
  font-family: inherit;
}
#pub-lic-root {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 0;
}
.pub-lic__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 3.7rem;
  padding: 0.38rem 0.55rem;
  border-bottom: 1px solid rgba(232, 200, 114, 0.28);
}
.pub-lic__bar-fecabi,
.pub-lic__bar-fecabi img {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
}
.pub-lic__bar-minsep {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.pub-lic__bar-side {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  z-index: 1;
  flex: 0 0 auto;
}
.pub-lic__bar-side--left {
  justify-content: flex-start;
}
.pub-lic__bar-side--right {
  justify-content: flex-end;
}
.pub-lic__bar-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 11.2rem);
  text-align: center;
  pointer-events: none;
}
.pub-lic__bar-org {
  display: block;
  font-size: clamp(0.6rem, 3.1vw, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #fff;
  text-transform: uppercase;
}
.pub-lic__bar-event {
  display: block;
  margin-top: 0.14rem;
  font-size: clamp(0.66rem, 3.4vw, 0.84rem);
  font-weight: 700;
  line-height: 1.2;
  color: #e8c872;
}
.pub-lic__bar strong {
  color: #e8c872;
  font-size: 0.92rem;
  flex: 1;
}
.pub-hub-page .pub-lic__bar img {
  width: 40px;
  height: 40px;
}
.pub-lic__lang {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.pub-lic__lang-btn {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0.2rem 0.28rem;
}
.pub-lic__lang-btn.is-on {
  color: #e8c872;
}
.pub-lic__card,
.pub-lic__hero {
  max-width: 22.5rem;
  width: calc(100% - 1.4rem);
  box-sizing: border-box;
  border: 1px solid var(--border-green, rgba(26, 122, 76, 0.45));
  border-radius: 14px;
  background: #122016;
}
.pub-lic__login-row {
  max-width: 22.5rem;
  width: calc(100% - 1.4rem);
  margin: 0.4rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.pub-lic__login {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.18rem 0.52rem;
  border: 1px solid rgba(232, 200, 114, 0.32);
  border-radius: 6px;
  background: transparent;
  color: rgba(232, 200, 114, 0.78);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
}
.pub-lic__login:hover,
.pub-lic__login:focus-visible {
  color: #e8c872;
  border-color: rgba(232, 200, 114, 0.7);
  outline: none;
}
.pub-lic__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--gold-soft, #e8c872);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.pub-lic__x:hover,
.pub-lic__x:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.pub-lic__card {
  margin: 0.85rem auto 0;
  padding: 1.15rem 1.05rem 1.2rem;
  text-align: center;
}
body.pub-lic:not(.pub-hub-page) .pub-lic__card {
  margin-top: 0.4rem;
}
.pub-lic__heading {
  margin: 0 0 0.28rem;
  font-size: clamp(1.05rem, 3.8vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.pub-lic__kind {
  margin: 0 0 0.28rem;
  font-size: clamp(0.92rem, 3.3vw, 1.08rem);
  font-weight: 800;
  line-height: 1.25;
}
.pub-lic__kind-label {
  color: #fff;
}
.pub-lic__kind-scope {
  color: #e8c872;
}
body.pf-license-unlicensed .pub-lic__kind-scope {
  color: #c0392b;
}
.pub-lic__id {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}
.pub-lic__id--ok {
  color: #e8c872;
}
.pub-lic__id--no {
  color: #c0392b;
}
.pub-lic__face {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 0.7rem;
  row-gap: 0.28rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
  margin: 0.2rem 0 0.45rem;
  padding: 0.7rem 0.6rem 0.75rem;
  border: 1px solid var(--border-green, rgba(26, 122, 76, 0.45));
  border-radius: var(--radius, 12px);
}
.pub-lic__meta {
  display: contents;
}
.pub-lic__qr-wrap {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: center;
  box-sizing: border-box;
  width: 9rem;
  height: 9rem;
  padding: 0.32rem;
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 0.28rem;
  overflow: hidden;
}
.pub-lic__qr,
canvas.pub-lic__qr {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pub-lic__photo,
img.pub-lic__photo {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  flex: none;
  width: 9rem;
  height: 9rem;
  max-width: 9rem;
  max-height: 9rem;
  margin: 0;
  border-radius: 0.28rem;
  border: 2px solid #e8c872;
  object-fit: cover;
  object-position: center 18%;
  background: rgba(0, 0, 0, 0.35);
  display: block;
  overflow: hidden;
}
body.pf-license-unlicensed .pub-lic__photo {
  border-color: #c0392b;
  color: #c0392b;
}
body.pf-license-waived .pub-lic__photo {
  border-color: #6dcf9a;
}
body.pf-license-paid .pub-lic__photo {
  border-color: #1a7a4c;
}
body.pf-license-expired .pub-lic__photo {
  border-color: #e8c872;
}
.pub-lic__photo.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8c872;
  font-size: 2.1rem;
  font-weight: 800;
}
.pub-lic__dl {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  margin: 0;
}
.pub-lic__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.6rem;
  align-items: baseline;
  column-gap: 0.4rem;
  line-height: 1.32;
}
.pub-lic__row dt {
  margin: 0;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8c872;
  white-space: nowrap;
}
.pub-lic__row dd {
  margin: 0;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.pub-lic__name {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 0.32rem;
  max-width: 100%;
  font-size: clamp(0.92rem, 4.4vw, calc(1.05rem + 2pt));
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-lic__club {
  grid-column: 2;
  grid-row: 3;
  margin: 0.35rem 0 0;
  text-align: center;
}
.pub-lic__club-lab {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}
.pub-lic__aff {
  margin: 0.18rem 0 0;
  font-size: calc(0.95rem + 2pt);
  font-weight: 800;
  color: #e8c872;
  text-transform: uppercase;
}
.pub-lic__valid {
  margin: 0.4rem 0 0.1rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e8c872;
  text-align: center;
}
.pub-lic__valid-date {
  color: #fff;
}
.pub-lic__hero {
  position: relative;
  flex: none;
  aspect-ratio: 1 / 1;
  margin: 0.45rem auto 0;
  padding: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.pub-lic__hero-img,
img.pub-lic__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.pub-hub-page .pub-lic__hero {
  flex: none;
}
.pub-lic__chev {
  position: absolute;
  top: 50%;
  z-index: 2;
  margin: 0;
  padding: 0;
  width: 2.5rem;
  height: 2.8rem;
  border: 0;
  background: none;
  color: #e8c872;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}
.pub-lic__chev--prev {
  left: 0.05rem;
}
.pub-lic__chev--next {
  right: 0.05rem;
}
.pub-lic__chev:active {
  opacity: 0.7;
}
.pub-lic__demo {
  margin: 0 0 0.18rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
}
.pub-lic__note {
  display: block;
  width: 100%;
  margin: 0.45rem 0 0.7rem;
  padding: 0.15rem 0.6rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  cursor: pointer;
}
.pub-lic__note span {
  color: #e8c872;
  font-weight: 700;
}
.pub-lic__miss {
  padding: 2.2rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.pub-hub {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.15rem 1.05rem 2rem;
  box-sizing: border-box;
}
.pub-hub__title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.pub-hub__lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(244, 241, 230, 0.78);
}
.pub-hub__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.pub-hub__qr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
}
.pub-hub__qr-row .pub-hub__qr {
  width: 100%;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  background: transparent;
  color: #e8c872;
  border: 1px solid rgba(232, 200, 114, 0.55);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.pub-hub__qr-row .pub-hub__qr:hover {
  background: rgba(232, 200, 114, 0.12);
}
.pub-hub__hint {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: rgba(244, 241, 230, 0.62);
}
.pub-hub__status {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e8c872;
}
.pub-hub__hits {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.pub-hub__hit {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(232, 200, 114, 0.38);
  border-radius: 10px;
  background: #122016;
  color: #f4f1e6;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.pub-hub__hit:hover {
  border-color: #e8c872;
}
.pub-hub__hit-face {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.28rem;
  overflow: hidden;
  background: #1a2a1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #e8c872;
}
.pub-hub__hit-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub-hub__hit-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.pub-hub__hit-meta strong {
  font-size: 0.92rem;
}
.pub-hub__hit-meta em {
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(232, 200, 114, 0.85);
}
.pub-hub__form label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e8c872;
}
.pub-hub__form input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(232, 200, 114, 0.42);
  border-radius: 10px;
  background: #122016;
  color: #f4f1e6;
  font: inherit;
  font-size: 0.92rem;
}
#pub-hub-id {
  text-transform: uppercase;
}
.pub-hub__form input:focus {
  outline: 2px solid #e8c872;
  outline-offset: 1px;
}
.pub-hub__form button {
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: #e8c872;
  color: #0a0e0a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.pub-hub__form button.pub-hub__qr {
  background: transparent;
  color: #e8c872;
  border: 1px solid rgba(232, 200, 114, 0.55);
}
.pub-hub__form button.pub-hub__qr:hover {
  background: rgba(232, 200, 114, 0.12);
}
.pub-hub__err {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c0392b;
}
.pub-lic__code {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(232, 200, 114, 0.85);
}
.pub-hub__back {
  display: inline-block;
  margin: 0.2rem 0 0.8rem;
  color: #e8c872;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
