/* Shared Prop65Shield brand treatment for beta, invite, and access pages.
   Mark geometry is hydrated by the canonical reports/assets/stone-mark.js. */
.p65mark {
  --mark-size: 30px;
  position: relative;
  display: inline-block;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: 0 0 var(--mark-size);
  line-height: 0;
}

.p65mark:not([data-prop65-mark-hydrated="true"]) {
  border-radius: 6px;
  background: #e89b2e;
}

.p65mark__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(180deg);
  container-type: size;
}

.p65mark__inner svg {
  display: block;
}

.p65mark .stone-spin {
  animation: prop65-brand-mark-spin 9.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.p65mark[data-prop65-mark="hover"] .stone-spin {
  animation-play-state: paused;
}

.p65mark[data-prop65-mark="hover"]:hover .stone-spin,
:where(.beta-brand, .beta-product-brand, .preview-brand, .assessment-brand):hover
  .p65mark[data-prop65-mark="hover"] .stone-spin {
  animation-play-state: running !important;
}

.p65wordmark {
  color: inherit;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

@keyframes prop65-brand-mark-spin {
  0% {
    transform: rotateY(0deg);
  }

  17.4%,
  50% {
    transform: rotateY(180deg);
  }

  67.4%,
  100% {
    transform: rotateY(360deg);
  }
}

@media (max-width: 480px) {
  .p65mark {
    --mark-size: 28px;
  }

  .p65wordmark {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p65mark .stone-spin {
    animation: none;
  }
}

/* "VOIDED BY AG" chip — Spec 08. Enforcement-brick tokens (DESIGN.json HIGH
   tier: text #8a3826 / wash #f3e3dd / border #a85440). Quiet by default:
   hairline over shadow, a compact mono kicker label that expands to the AG's
   grounds + a link to the letter (trace-back — never the label alone). */
.voided-by-ag-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-left: 8px;
  vertical-align: baseline;
}

.voided-by-ag-chip-toggle {
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid #a85440;
  border-radius: 4px;
  background: #f3e3dd;
  color: #8a3826;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  cursor: pointer;
}

.voided-by-ag-chip-toggle:hover {
  background: #efd9d1;
}

.voided-by-ag-chip-toggle:focus-visible {
  outline: 2px solid #8a3826;
  outline-offset: 2px;
}

.voided-by-ag-chip-detail {
  display: block;
  max-width: 46ch;
  color: #333333;
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.voided-by-ag-chip-link {
  display: inline-block;
  margin-top: 4px;
  color: #8a3826;
  font-weight: 600;
  text-decoration: underline;
}
