/* Sigil paint. Load after style.css, customizer.css, and issuance.css. */
:root {
  --ink: #e7e2d6;
  --muted: #a8b0a8;
  --blue: #c6a36a;
  --dark: #14120e;
  --paper: #0e1210;
  --line: #2c3834;
  --orange: #c6a36a;
  --green: #9dccb0;
  --brass: #c6a36a;
  --plate: #161c19;
  --void: #0e1210;
}

html {
  background: var(--void);
  color-scheme: dark;
}

body {
  background: var(--void);
  color: var(--ink);
  font-family: Figtree, Arial, sans-serif;
}

h1, h2, h3, h4, .wordmark, .credential-brand, .eyebrow, .btn, .home-intro h1, .page-intro h1, .section-head h2 {
  font-family: Syne, Figtree, sans-serif;
}

h1, h2, .page-intro h1, .home-intro h1, .section-head h2 {
  letter-spacing: -0.04em;
  color: var(--ink);
}

p, li, .fine, small {
  color: inherit;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline-color: var(--brass);
}

header {
  height: 72px;
  background: var(--void);
  border-bottom: 0;
  box-shadow: inset 0 -2px 0 var(--brass);
  position: sticky;
  top: 0;
  z-index: 30;
}

header .wrap {
  gap: 24px;
}

.brand {
  gap: 10px;
}

.mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  letter-spacing: 0;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sigil-mark {
  width: 32px;
  height: 32px;
  display: block;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
}

.brand small {
  border-left-color: #3a4540;
  color: var(--brass);
  letter-spacing: 0.16em;
}

nav a, header nav a {
  color: var(--muted);
  font-size: 14px;
}

nav a.active, nav a:hover, header nav a.active, header nav a:hover {
  color: var(--brass);
}

.menu, header .menu, header nav, nav.open {
  background: var(--void);
  color: var(--ink);
  border-color: var(--line);
}

.btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid #3a4540;
  border-radius: 2px;
  box-shadow: none;
}

.btn:hover {
  background: #1c2420;
  box-shadow: none;
  transform: none;
}

.btn.primary, .btn.dark, a.btn.primary, a.btn.dark {
  background: var(--brass);
  border-color: var(--brass);
  color: #14120e;
}

.btn.primary:hover, .btn.dark:hover {
  background: #d4b57e;
  color: #14120e;
}

.home-hero, .hero, .page-intro {
  background: var(--void);
  color: var(--ink);
}

.home-hero {
  padding: 72px 0 56px;
}

.home-intro h1, .page-intro h1 {
  font-weight: 700;
}

.home-intro h1 em, .page-intro h1 em {
  font-style: normal;
  color: var(--brass);
}

.home-intro > p, .page-intro p, .hero-copy > p {
  color: var(--muted);
}

.home-secondary, .textlink {
  color: var(--brass);
}

.home-trust, .home-specimen-note, .fine, .stage-label, .eyebrow {
  color: var(--muted);
}

.eyebrow {
  color: var(--brass);
  letter-spacing: 0.16em;
}

.home-foundation, .standards {
  background: #121816;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.home-foundation b, .standards strong {
  color: var(--ink);
}

.home-closing {
  background: #121816;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.section {
  background: transparent;
}

.home-steps article, .feature, .portal-card, .network-card, .guide-choice, .callout, .developer-panel, .demo-sidebar, .demo-content, .sidebar, .account-row, .guide-step, .guide-article, .product-notice, .support-strip, .role-gallery article, .trust-stack article, .release-layout article, .consent-preview, .review-note, .connection-ticket, .embed-preview, .digital-showcase, .layout-preview-notice, .verification-boundary, .org-console, .showcase-stage, .showcase-settings, .issue-shell, .code-panel, details, .help-answer {
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
}

.developer-panel, .home-builder, .editorial-split, .trust-stack, .release-layout, .demo-layout {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-steps article, .feature, .portal-card, .network-card, .guide-choice {
  padding: 24px;
}

.home-steps article span, .feature .icon, .guide-step > span, .trust-stack article > span {
  color: var(--brass);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.pill, .status-badge, .specimen-tag, .issue-demo {
  background: transparent;
  color: var(--brass);
  border: 1px solid #6d5a36;
  border-radius: 2px;
}

.home-builder-links a, .partners a, .guide-nav a, .footer-col a, .demo-nav button {
  color: var(--ink);
  border-color: var(--line);
}

.home-builder-links a {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.home-builder-links a, .home-builder-links a:first-child {
  border-color: var(--line);
}

.home-builder-links a > span, .home-builder-links b {
  color: var(--brass);
}

.home-builder-links small {
  color: var(--muted);
}

.home-builder-links a:hover, .guide-choice:hover, .portal-card:hover, .network-card:hover, .feature:hover {
  border-color: #6d5a36;
}

.code-panel, .code-bar, pre {
  background: #101412;
  color: #e7e2d6;
  border-color: var(--line);
}

.code-bar {
  border-bottom: 1px solid var(--line);
}

input, select, textarea, .help-library input, .showcase-settings input:not([type=checkbox]), .showcase-settings select, .org-console select {
  background: #101412;
  color: var(--ink);
  border: 1px solid #3a4540;
  border-radius: 2px;
}

.footer {
  background: #0a0e0c;
  border-top: 2px solid var(--brass);
  color: var(--muted);
}

.footer p, .footer a, .footer-bottom {
  color: var(--muted);
}

.footer a:hover {
  color: var(--brass);
}

.footer-bottom {
  border-top: 1px solid var(--line);
}

.demo-bar {
  background: #121816;
  color: var(--brass);
  border-bottom: 1px solid var(--line);
}

.demo-sidebar .avatar {
  background: var(--brass);
  color: #14120e;
}

.demo-nav button[aria-selected=true], .foil-options button[aria-pressed=true] {
  background: var(--brass);
  color: #14120e;
  border-color: var(--brass);
}

.issue-shell {
  background: var(--void);
  min-height: 0;
}

.issue-heading h1, .showcase-intro h1, .issue-intro {
  color: var(--ink);
}

.issue-intro, .showcase-intro p, #portrait-status, .portrait-picker small {
  color: var(--muted);
}

#card-customizer input:focus-visible, #card-customizer select:focus-visible {
  outline: 2px solid var(--brass);
}

.issue-desk #portrait-adjustments input[type=range] {
  accent-color: var(--brass);
}

/* Credential face: one polycarbonate substrate. The issuer line is printed into it. */
.credential.flip-ready > .card-front, .credential[data-verification=verified].flip-ready > .card-front {
  background:
    radial-gradient(ellipse at var(--light-x, 18%) 0%, rgba(255, 255, 255, 0.55), transparent 28%),
    radial-gradient(ellipse at 0% 78%, #e6d3ae 0%, transparent 42%),
    linear-gradient(155deg, #f4efe4, #e4d9c6 54%, #efe6d6);
  color: #1c1914;
}

.credential.flip-ready > .card-front .credential-top, .card-front .credential-top, .card-back .credential-top {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  color: inherit;
}

.card-front .credential-top {
  position: relative;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 10px;
}

.card-front .credential-brand {
  line-height: 1;
}

.card-front .credential-heading {
  line-height: 1.35;
}

.card-front .credential-top::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 5px;
  height: 1px;
  background: rgba(28, 51, 64, 0.28);
  pointer-events: none;
}

.card-front .credential-top::after, .card-back .credential-top::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 1px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(100deg, transparent 0%, var(--foil-a) 14%, #fff 34%, var(--foil-b) 50%, var(--foil-c) 68%, transparent 100%);
  background-size: 180% 100%;
  background-position: var(--light-x, 28%) 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 6px color-mix(in srgb, var(--foil-a) 45%, transparent);
  pointer-events: none;
}

.card-back .credential-top {
  position: relative;
}

.card-back .credential-top::after {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0.8;
}

.credential-brand, .card-back .credential-brand {
  color: #d7e2e8;
  font-family: Syne, sans-serif;
  letter-spacing: 0.22em;
  text-shadow: none;
}

.card-front .credential-brand {
  color: #1c3340;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.card-front .credential-heading, .card-front .credential-heading b {
  color: #4d6270;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.card-front .credential-heading b {
  color: #1c3340;
}

.card-back .credential-heading, .card-back .credential-heading b {
  color: #c5d4dc;
  text-shadow: none;
}

.credential-brand > .mark, .credential-brand > span {
  letter-spacing: 0;
  padding: 0;
  margin-right: 8px;
  width: 18px;
  height: 18px;
  background: transparent;
  display: inline-flex;
  vertical-align: -3px;
  color: inherit;
  position: relative;
}

.credential-brand .sigil-mark {
  width: 18px;
  height: 18px;
}

.card-front .credential-brand .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.9) 48%, transparent 66%);
  background-size: 240% 100%;
  background-position: var(--light-x, 24%) 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.credential.flip-ready > .card-front .credential-name, .credential.flip-ready > .card-front .credential-name h3, .credential.flip-ready > .card-front .credential-name p, .credential.flip-ready > .card-front .credential-bottom, .credential.flip-ready > .card-front .credential-bottom strong, .card-front .card-label, .citizen-rsi, .citizen-rsi strong, .citizen-rsi span {
  color: #1c1914;
}

.card-front .credential-name .card-label, .card-front .credential-bottom .card-label, .citizen-rsi span {
  color: #6d6254;
}

.latent-mark {
  color: var(--brass);
  font-family: Syne, sans-serif;
  letter-spacing: 0.28em;
}

.credential-seal {
  background: #161410;
  color: var(--brass);
  border-color: var(--brass);
}

.seal-diamond {
  width: 14px;
  height: 14px;
  display: block;
}

.credential[data-verification=verified] .credential-seal {
  color: #163e54;
}

.no-script-note {
  background: var(--plate);
  color: var(--muted);
  border: 1px solid var(--line);
}

.toast {
  background: var(--plate);
  color: var(--ink);
  border: 1px solid var(--brass);
}

.role-gallery article, .role-gallery article[data-role=member], .role-gallery article[data-role=officer] {
  background: var(--plate);
  color: var(--ink);
  border-color: var(--line);
}

.role-gallery article[data-role=member] {
  border-color: #3d5c62;
}

.role-gallery article[data-role=officer] {
  background: #221c14;
  border-color: #6d5a36;
}

.role-gallery small {
  color: var(--brass);
  opacity: 1;
}

.role-gallery article b, .role-gallery article span, .role-gallery article p, .role-gallery article small {
  color: var(--ink);
}

.role-gallery article[data-role=officer] b, .role-gallery article[data-role=officer] span {
  color: var(--brass);
}

.product-notice, .product-notice strong {
  color: var(--ink);
}

.product-notice span {
  color: #c5cdc6;
}

.home-id-story {
  background: #121816;
  color: var(--ink);
}

.home-id-story h2, .home-id-story .home-lead {
  color: var(--ink);
}

.home-id-story p, .home-id-story .home-specimen-note {
  color: var(--muted);
}

.home-id-story .eyebrow, .home-id-story .home-secondary {
  color: var(--brass);
}

.home-id-story .btn.primary {
  background: var(--brass);
  border-color: var(--brass);
  color: #14120e;
}

.turn-card, .turn-card:hover {
  background: #1c2420;
  color: var(--ink);
  border: 1px solid #3a4540;
  box-shadow: none;
}

input[type=range] {
  accent-color: var(--brass);
}

input[type=file]::file-selector-button {
  background: #1c2420;
  color: var(--ink);
  border: 1px solid #3a4540;
  border-radius: 2px;
  padding: 6px 10px;
  margin-right: 10px;
  font: inherit;
  cursor: pointer;
}

/* Identity plate: vertical kinegram, portrait window on the right. Not the old data-page layout. */
.credential.flip-ready > .card-front,
.credential.flip-ready[data-verification="verified"] > .card-front,
.credential.flip-ready[data-verification="pending"] > .card-front {
  display: block !important;
  padding: 0 !important;
  background:
    radial-gradient(ellipse at var(--light-x, 18%) var(--light-y, 8%), rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(155deg, #243038 0%, #141b1f 48%, #1c262b 100%);
  color: #e7eef1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.card-front .document-filigree,
.card-front .orbital-watermark,
.card-front .credential-top::before,
.card-front .credential-top::after {
  display: none;
}

.card-front .system-foil {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 13% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 14% 0 8% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(180deg, var(--foil-a), var(--foil-b) 46%, var(--foil-c) 72%, var(--foil-a));
  color: #102018;
}

.card-front .edition-orbit,
.card-front .edition-kicker,
.card-front .edition-meta {
  display: none;
}

.card-front .edition-identity {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.card-front .system-title {
  font-size: 3.1cqw;
  letter-spacing: 0.22em;
  color: #102018;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card-front .edition-year {
  font-size: 2.2cqw;
  letter-spacing: 0.14em;
  color: #102018;
}

.card-front .ghost-window {
  left: 1.6%;
  right: auto;
  top: 8%;
  width: 10.8%;
  height: 28%;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  z-index: 4;
}

.card-front .latent-mark,
.card-front .ghost-window small {
  font-size: 1.4cqw;
  letter-spacing: 0.08em;
}

.card-front .credential-top {
  position: absolute;
  left: 18%;
  right: 35%;
  top: 7%;
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  align-items: center;
}

.card-front .credential-brand {
  color: #d5e0e4;
  font-size: 2.6cqw;
  letter-spacing: 0.28em;
  text-shadow: none;
}

.card-front .credential-heading,
.card-front .credential-heading b {
  color: #8ea0a8;
  font-size: 1.7cqw;
  letter-spacing: 0.18em;
  text-shadow: none;
}

.card-front .credential-person {
  position: absolute;
  left: 18%;
  right: 35%;
  top: 20%;
  display: block;
  padding: 0;
  gap: 0;
}

.card-front .credential-portrait {
  position: absolute !important;
  right: 5% !important;
  top: 20% !important;
  left: auto !important;
  width: 24% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  margin: 0 !important;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.card-front .credential-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.card-front .credential-name,
.card-front .credential-name h3,
.card-front .credential-name p,
.card-front .citizen-rsi,
.card-front .citizen-rsi strong,
.card-front .citizen-rsi span,
.card-front .card-label,
.card-front .credential-status {
  color: #e7eef1;
  text-shadow: none;
}

.card-front .credential-name h3 {
  margin: 0;
  font-size: 5.4cqw;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f4f7f8;
}

.card-front .credential-name p,
.card-front .citizen-rsi strong,
.card-front .credential-bottom strong {
  color: #d5e0e4;
  font-size: 2.3cqw;
  letter-spacing: 0.02em;
}

.card-front .card-label,
.card-front .citizen-rsi span,
.card-front .credential-status {
  color: #8ea0a8;
  font-size: 1.6cqw;
  letter-spacing: 0.16em;
}

.card-front .citizen-rsi {
  margin-top: 1.6cqw;
}

.card-front .org-attestation {
  position: absolute;
  left: 18%;
  right: 35%;
  top: 62%;
  width: auto;
  margin: 0;
  padding: 1.2cqw 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: none;
  color: #d5e0e4;
  z-index: 3;
}

.card-front .org-attestation small,
.card-front .org-attestation strong,
.card-front .org-mark-state {
  color: #d5e0e4;
}

.card-front .org-stamp {
  color: #102018;
  background: var(--foil-b);
}

.card-front .credential-bottom {
  position: absolute;
  left: 18%;
  right: 35%;
  bottom: 8%;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  z-index: 3;
}

.credential.flip-ready > .card-front .credential-bottom,
.credential.flip-ready > .card-front .credential-bottom .card-label,
.credential.flip-ready > .card-front .credential-bottom strong,
.credential.flip-ready > .card-front .credential-reference,
.credential.flip-ready > .card-front .credential-edition,
.credential.flip-ready > .card-front .credential-edition strong {
  color: #e7eef1;
  text-shadow: none;
}

.card-front .credential-edition {
  display: none;
}

.card-front .credential-seal {
  position: absolute;
  right: 2.4%;
  bottom: 7%;
  width: 14%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 5;
}

.card-front .credential-micro {
  position: absolute;
  left: 18%;
  right: 34%;
  bottom: 2.2%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #8ea0a8;
  text-align: left;
  font-size: 1.45cqw;
  letter-spacing: 0.12em;
  z-index: 3;
}

.credential.flip-ready > .card-back,
.credential.flip-ready[data-verification="verified"] > .card-back {
  background:
    radial-gradient(ellipse at var(--light-x, 70%) 0%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(165deg, #1b252b, #101618 62%, #182228);
  color: #e7eef1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.card-back .system-atlas,
.card-back .system-diagram,
.card-back .planet-register {
  display: none;
}

.card-back .credential-top,
.card-back .card-claims,
.card-back .credential-dates,
.card-back .system-record,
.card-back .org-reverse,
.card-back .credential-micro {
  position: relative;
  z-index: 2;
  color: #d5e0e4;
}

.card-back .card-claims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4cqw 3cqw;
}

.card-back .card-claims strong,
.card-back .credential-dates b,
.card-back .org-issuer-name {
  color: #f4f7f8;
}

@media (max-width: 720px) {
  header {
    height: 64px;
  }

  .brand small {
    display: none;
  }

  header nav, nav.open {
    background: var(--void);
    border-bottom: 1px solid var(--line);
  }
}

/* Material pass: smoked polycarbonate, kinegram, and a glass portrait window.
   Portrait geometry stays 24% wide, 3:4, 5% from the right, 20% from the top. */
.credential.flip-ready {
  --rx: 6deg;
  --ry: -9deg;
  border-radius: 2.4% / 3.8%;
  border: 1px solid rgba(232, 214, 176, 0.72);
  background: #0c1012;
  transform-origin: center center;
  margin: 10px auto 28px;
  box-shadow:
    0 1px 0 rgba(255, 244, 220, 0.55),
    0 2px 0 #6a5733,
    0 3px 0 #241c12,
    0 5px 0 #0a0c0d,
    0 18px 28px rgba(0, 0, 0, 0.45),
    0 36px 54px rgba(0, 0, 0, 0.38);
}

.credential.flip-ready > .card-front,
.credential.flip-ready[data-verification="verified"] > .card-front,
.credential.flip-ready[data-verification="pending"] > .card-front,
.credential.flip-ready[data-verification="preview"] > .card-front,
.credential.flip-ready[data-verification="failed"] > .card-front {
  border-radius: inherit;
  background:
    radial-gradient(90% 70% at var(--light-x, 22%) var(--light-y, 0%), rgba(255, 255, 255, 0.2), transparent 36%),
    radial-gradient(70% 80% at 100% 110%, rgba(198, 163, 106, 0.16), transparent 42%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(168deg, #303a3e 0%, #1a2226 38%, #101618 72%, #1b2428 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 18px rgba(0, 0, 0, 0.28);
}

.credential.flip-ready > .card-front::before {
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 0 0 4px rgba(198, 163, 106, 0.28),
    inset 0 0 0 5px rgba(0, 0, 0, 0.35);
}

.credential.flip-ready > .card-front::after {
  background:
    linear-gradient(104deg, transparent 0 calc(var(--optic-x, 32%) - 22%), rgba(255, 255, 255, 0.16) var(--optic-x, 32%), transparent calc(var(--optic-x, 32%) + 16%) 100%),
    repeating-radial-gradient(circle at 80% 70%, transparent 0 7px, rgba(198, 163, 106, 0.045) 7.4px 7.8px, transparent 8.2px 14px);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.card-front .system-foil {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(calc(var(--optic-angle, 115deg)), var(--foil-a), #f7f1e2 16%, var(--foil-b) 38%, #fff 48%, var(--foil-c) 62%, var(--foil-a) 100%);
  background-size: auto, 220% 220%;
  background-position: 0 0, var(--light-x, 30%) var(--light-y, 20%);
  box-shadow:
    inset -8px 0 12px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.card-front .system-foil::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 28%, rgba(0, 0, 0, 0.12) 100%);
  mix-blend-mode: soft-light;
}

.card-front .system-title,
.card-front .edition-year {
  color: #14201c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.card-front .ghost-window {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 20, 0.35);
  overflow: hidden;
}

.card-front .ghost-window img {
  filter: grayscale(1) contrast(1.15) brightness(1.05);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.card-front .credential-portrait {
  right: 5% !important;
  top: 20% !important;
  left: auto !important;
  width: 24% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  border-radius: 1.5%;
  border: 0;
  background: #0c1214;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 0 0 4px rgba(8, 12, 14, 0.72),
    0 0 0 5px rgba(198, 163, 106, 0.55),
    0 10px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.card-front .credential-portrait img {
  filter: saturate(0.92) contrast(1.04);
  mix-blend-mode: normal;
  object-fit: cover;
  object-position: center 18%;
}

.card-front .credential-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 255, 255, 0.38) 46%, transparent 58%),
    linear-gradient(to top, rgba(6, 10, 12, 0.28), transparent 34%);
  background-size: 240% 100%, auto;
  background-position: var(--light-x, 20%) 0, 0 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.card-front .credential-portrait > small {
  background: rgba(10, 14, 16, 0.72);
  color: #f4f7f8;
  letter-spacing: 0.14em;
}

.card-front .credential-brand,
.card-front .credential-name h3,
.card-front .credential-bottom strong,
.card-front .citizen-rsi strong {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14), 0 -1px 0 rgba(0, 0, 0, 0.65);
}

.card-front .card-label,
.card-front .citizen-rsi span,
.card-front .credential-status,
.card-front .credential-heading,
.card-front .credential-heading b,
.card-front .credential-micro {
  color: #c5d0d4;
}

.card-front .credential-name h3 {
  font-size: 4.8cqw;
  line-height: 1.05;
  max-height: 2.15em;
  overflow: hidden;
}

.card-front .credential-name p,
.card-front .citizen-rsi strong,
.card-front .credential-bottom strong {
  color: #f3f6f7;
}

.card-front .credential-status {
  display: inline-flex;
  margin-top: 1.1cqw;
  padding: 0.35cqw 0.8cqw;
  border: 1px solid rgba(198, 163, 106, 0.45);
  background: rgba(8, 12, 14, 0.45);
  color: #f0e2c4;
}

.card-front .org-attestation {
  background: rgba(8, 12, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.card-front .org-attestation[data-role="associate"] {
  border-left: 2px solid #c5d0d4;
}

.card-front .org-attestation[data-role="member"] {
  border-left: 3px solid #8ec3d6;
}

.card-front .org-attestation[data-role="officer"] {
  border-left: 3px solid var(--brass);
  background: rgba(198, 163, 106, 0.14);
}

.card-front .org-attestation-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-front .credential-seal {
  right: 6.2%;
  bottom: 5.5%;
  width: 12.5%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    repeating-conic-gradient(from var(--optic-angle, 40deg), var(--foil-a) 0 12%, #f4f7f8 0 18%, var(--foil-b) 0 34%, #fff 0 40%, var(--foil-c) 0 58%, var(--foil-a) 0 70%);
  color: #102018;
  box-shadow:
    inset 0 0 0 2px rgba(16, 24, 20, 0.28),
    0 6px 10px rgba(0, 0, 0, 0.35);
}

.card-front .credential-seal small,
.card-front .credential-seal span {
  color: #102018;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card-front .credential-micro {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
}

.credential.flip-ready > .card-back,
.credential.flip-ready[data-verification="verified"] > .card-back {
  border-radius: inherit;
  background:
    radial-gradient(80% 60% at var(--light-x, 70%) 0%, rgba(255, 255, 255, 0.1), transparent 40%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #243034, #101618 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.card-back .card-label,
.card-back .credential-heading,
.credential-dates,
.card-back .credential-micro,
.org-reverse p {
  color: #c5d0d4;
}

.card-back .card-claims strong,
.card-back .credential-dates b,
.card-back .org-issuer-name,
.card-back .system-title {
  color: #f4f7f8;
}

.home-card-stage,
.showcase-stage,
.account-credential,
.attestation-layout > div:first-child {
  overflow: visible;
}

@media (max-width: 720px) {
  .credential.flip-ready {
    --rx: 3deg;
    --ry: -5deg;
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .credential.flip-ready {
    --rx: 0deg;
    --ry: 0deg;
    margin-bottom: 8px;
  }

  .card-front .system-foil,
  .card-front .credential-portrait::after,
  .credential.flip-ready > .card-front::after {
    background-position: 30% 20%, 0 0;
  }
}

@media (forced-colors: active) {
  .credential.flip-ready,
  .card-front .credential-portrait,
  .card-front .system-foil,
  .card-front .credential-seal {
    border: 1px solid CanvasText;
    box-shadow: none;
    background: Canvas;
  }

  .card-front .credential-name h3,
  .card-front .credential-brand,
  .card-front .card-label,
  .card-front .credential-micro,
  .card-front .org-attestation,
  .style-gallery .org-attestation {
    color: CanvasText;
    text-shadow: none;
    background: Canvas;
    box-shadow: none;
  }
}

/* Affiliation lines. Same caption-and-value pattern as the handle. A finish is ink or a hairline. */
.card-front .mark-rail {
  position: absolute;
  left: 18%;
  right: 36%;
  top: 57%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.55cqw;
  min-width: 0;
  padding-top: 0.55cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.card-front .mark-rail:empty {
  display: none;
}

.card-front .credential-name,
.card-front .citizen-rsi {
  min-width: 0;
  overflow: hidden;
}

.card-front .credential-name h3,
.card-front .credential-name p,
.card-front .citizen-rsi strong,
.card-front .mark-rail .org-attestation-copy strong,
.style-gallery .org-attestation-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  max-width: 100%;
}

.card-back .org-reverse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 1.2cqw;
  align-items: start;
}

.card-front .mark-overflow {
  margin: 0;
  color: #9aadb4;
  font-size: 1.45cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-back .mark-register {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.3cqw;
  align-content: start;
}

.card-back .mark-register p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d5e0e4;
  font-size: 1.15cqw;
  line-height: 1.35;
}

.card-back .credential-micro {
  position: relative;
  z-index: 3;
}

.card-front .mark-rail .org-attestation,
.style-gallery .org-attestation {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  color: #d5e0e4;
  text-align: left;
}

.card-front .mark-rail .org-stamp,
.style-gallery .org-stamp {
  display: none;
}

.card-front .mark-rail .org-mark-state,
.style-gallery .org-mark-state {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card-front .mark-rail .org-attestation-copy,
.style-gallery .org-attestation-copy {
  display: block;
  min-width: 0;
}

.card-front .mark-rail .org-attestation-copy small,
.style-gallery .org-attestation-copy small {
  display: block;
  margin: 0 0 0.12cqw;
  color: #9aadb4;
  font-size: 1.4cqw;
  font-style: normal;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-transform: uppercase;
}

.card-front .mark-rail .org-attestation-copy strong,
.style-gallery .org-attestation-copy strong {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #d5e0e4;
  font-size: 2.05cqw;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.card-front .mark-rail .org-attestation-copy strong:has(.org-line-org),
.style-gallery .org-attestation-copy strong:has(.org-line-org) {
  display: flex;
  align-items: baseline;
  gap: 0.7cqw;
  overflow: hidden;
  text-overflow: unset;
  white-space: normal;
}

.card-front .org-line-org,
.style-gallery .org-line-org,
.card-front .org-line-title,
.style-gallery .org-line-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: inherit;
}

.card-front .org-line-org,
.style-gallery .org-line-org {
  flex: 0 1 auto;
  max-width: 68%;
}

.card-front .org-line-title,
.style-gallery .org-line-title {
  flex: 0 1 auto;
  max-width: 42%;
  color: #c5d0d4;
  font-weight: 400;
}

.card-front .org-attestation[data-style="seal"] .org-attestation-copy,
.style-gallery .org-attestation[data-style="seal"] .org-attestation-copy {
  box-shadow: inset 1px 0 0 rgba(198, 163, 106, 0.8);
  padding-left: 0.7cqw;
}

.card-front .org-attestation[data-style="strip"] .org-line-org,
.style-gallery .org-attestation[data-style="strip"] .org-line-org {
  border-bottom: 1px solid rgba(198, 163, 106, 0.55);
  padding-bottom: 0.05cqw;
}

.card-front .org-attestation[data-style="plate"] .org-attestation-copy small,
.style-gallery .org-attestation[data-style="plate"] .org-attestation-copy small {
  letter-spacing: 0.28em;
}

.card-front .org-attestation[data-style="stamp"] .org-attestation-copy strong,
.style-gallery .org-attestation[data-style="stamp"] .org-attestation-copy strong {
  color: #e4d2aa;
}

.card-front .org-attestation[data-style="ribbon"] .org-attestation-copy small::before,
.style-gallery .org-attestation[data-style="ribbon"] .org-attestation-copy small::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 1px;
  margin-right: 0.45em;
  background: #c6a36a;
  vertical-align: middle;
}

.card-front .org-attestation[data-status="expired"] .org-attestation-copy strong,
.style-gallery .org-attestation[data-status="expired"] .org-attestation-copy strong,
.card-front .org-attestation[data-status="invalid"] .org-attestation-copy strong,
.style-gallery .org-attestation[data-status="invalid"] .org-attestation-copy strong {
  color: #8ea0a8;
}

.card-front .org-attestation[data-status="revoked"] .org-attestation-copy strong,
.style-gallery .org-attestation[data-status="revoked"] .org-attestation-copy strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.style-gallery .org-attestation {
  cursor: default;
}

.style-gallery .org-attestation-copy small {
  font-size: 11px;
  letter-spacing: 0.14em;
}

.style-gallery .org-attestation-copy strong {
  font-size: 15px;
}

.style-gallery .org-attestation[data-style="seal"] .org-attestation-copy {
  padding-left: 8px;
}

/* The face material is dark. The earlier #1c1914 ink was for a light substrate and still wins on specificity. */
.credential.flip-ready > .card-front .credential-name h3 {
  color: #f4f7f8;
}

.credential.flip-ready > .card-front .credential-name p,
.credential.flip-ready > .card-front .citizen-rsi,
.credential.flip-ready > .card-front .citizen-rsi strong {
  color: #d5e0e4;
}

.credential.flip-ready > .card-front .credential-name .card-label,
.credential.flip-ready > .card-front .citizen-rsi span {
  color: #9aadb4;
}

@media (prefers-reduced-motion: reduce) {
  .org-attestation,
  .mark-rail,
  .style-gallery {
    animation: none;
    transition: none;
  }
}
