.shared-token { padding: 27px clamp(24px, 5vw, 64px); display: grid; grid-template-columns: .42fr 1.58fr; gap: clamp(18px, 3vw, 42px); border: 1px solid var(--line); border-top: 0; }
.shared-token .token-heading h2 { margin: 0; font-size: clamp(24px, 2.5vw, 36px); font-weight: 520; letter-spacing: -.05em; line-height: 1; }
.shared-token .token-heading h2 em { color: var(--acid); font-family: Georgia, serif; font-weight: 400; }
.shared-token .token-heading > p:last-child { max-width: 360px; margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.shared-token .token-content { min-width: 0; align-self: center; }
.shared-token .token-panel { align-self: center; padding: 11px 14px; border: 1px solid var(--line-bright); background: linear-gradient(135deg, rgba(214,255,87,.05), transparent 55%), var(--panel); }
.shared-token .token-status { display: flex; justify-content: space-between; color: var(--faint); font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.shared-token .token-status span:first-child { color: var(--acid); }.shared-token .token-status i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.shared-token .token-label { margin: 8px 0 5px; color: var(--faint); font: 7px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.shared-token .contract-row { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); background: var(--bg); }
.shared-token .contract-row code { min-width: 0; padding: 7px 10px; overflow-wrap: anywhere; color: var(--ink); font: 9px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.shared-token .contract-row button { padding: 0 20px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--acid); cursor: pointer; font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.shared-token .contract-row button:hover { background: var(--acid-dim); }
.shared-token .token-actions { margin-top: 7px; display: flex; align-items: center; gap: 12px; }.shared-token .token-actions > span { max-width: 430px; color: var(--faint); font: 7px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.shared-token .token-actions .button { min-height: 32px; padding: 0 13px; font-size: 7px; }
.shared-token .token-disclaimer { margin: 0 0 12px; color: #fff; font: 7px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.shared-token .token-disclaimer strong { color: var(--acid); font-size: 7px; letter-spacing: .12em; }
.shared-token .token-disclaimer p { margin: 4px 0 0; max-width: 920px; }

.shared-token { border-top: 1px solid var(--line); }
.shared-token .section-index { margin: 0 0 16px; color: var(--acid); font: 12px/1.6 ui-monospace, monospace; letter-spacing: .06em; }
.shared-token .token-status, .shared-token .token-label { font-size: 12px; line-height: 1.6; letter-spacing: .06em; }
.shared-token .token-heading > p:last-child, .shared-token .token-disclaimer, .shared-token .contract-row code, .shared-token .token-actions > span { font-size: 14px; line-height: 1.7; }
.shared-token .token-disclaimer strong { font-size: 15px; letter-spacing: .06em; }
.shared-token .token-disclaimer p { margin-top: 8px; }
.shared-token .token-actions { flex-wrap: wrap; }
.shared-token .token-actions .button { min-height: 44px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; color: #0a0d0b; background: var(--acid); border: 1px solid var(--acid); text-decoration: none; font: 800 13px/1.5 ui-monospace, monospace; letter-spacing: .04em; }
.shared-token .contract-row button { min-height: 44px; font-size: 13px; line-height: 1.5; letter-spacing: .04em; }
.shared-token :focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
@media (max-width: 900px) { .shared-token { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .shared-token { padding: 24px 20px; gap: 16px; } .shared-token .token-panel { padding: 16px; } .shared-token .token-actions { align-items: stretch; flex-direction: column; } .shared-token .contract-row { grid-template-columns: 1fr; } .shared-token .contract-row button { border-left: 0; border-top: 1px solid var(--line); } }

/* NPCS introduction sits above and outside the contract panel. */
.npcs-page .npcs-token-intro { max-width: 980px; margin: 0 auto; padding: 18px 30px 32px; border: 0; }
.npcs-token-intro .section-index { color: var(--acid); font: 12px/1.6 ui-monospace, monospace; margin: 0 0 16px; }
.npcs-token-intro h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 520; letter-spacing: -.045em; margin: 0 0 24px; }
.npcs-token-intro h1 em { color: var(--acid); font-family: Georgia, serif; font-weight: 400; }
.npcs-token-intro .token-heading > p:last-child { border-top: 1px solid var(--line); padding-top: 22px; }
.npcs-token-intro p { font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; }
.npcs-token-intro .token-disclaimer { margin-top: 32px; }
.npcs-token-intro .token-disclaimer > strong { display: block; color: var(--acid); font-size: 18px; margin-bottom: 18px; }
.npcs-token-intro .token-disclaimer b { color: var(--ink); }
.npcs-page .npcs-contract { display: block; max-width: 980px; margin: 0 auto; padding: 0 30px 38px; border: 0; }
.npcs-page .npcs-contract .token-panel { padding: 24px; }
@media(max-width:600px) { .npcs-page .npcs-token-intro { padding: 10px 20px 20px; } .npcs-page .npcs-contract { padding: 0 20px 28px; } .npcs-page .npcs-contract .token-panel { padding: 18px; } }

/* Align the NPCS footer with the disclosure text above. */
.npcs-page main { padding-bottom: 32px; }
.npcs-page .site-footer { width: calc(100% - 72px); max-width: 780px; min-height: 0; margin: 0 auto; padding: 24px 0 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 28px; border: 0; border-top: 1px solid var(--line); }
.npcs-page .site-footer p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.npcs-page .site-footer > a { font-size: 14px; line-height: 1.7; text-underline-offset: 4px; }
@media(max-width:720px) { .npcs-page .site-footer { width: calc(100% - 72px); } }
@media(max-width:480px) { .npcs-page .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; } }

.npcs-page .foundation-document[aria-labelledby="associated-token"] {
  position: relative;
  isolation: isolate;
}

.npcs-page .foundation-document[aria-labelledby="associated-token"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/npcs/disclosure-santa.webp") no-repeat 84% top / min(68%, 560px) auto;
  opacity: 0.10;
  filter: saturate(65%);
}

@media (max-width: 720px) {
  .npcs-page .foundation-document[aria-labelledby="associated-token"]::before {
    background-size: min(90%, 480px) auto;
    opacity: 0.22;
  }
}

.npcs-page .token-reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0;
  font-size: 14px;
}

.npcs-page .token-reference-links a {
  color: var(--acid);
  text-underline-offset: 4px;
}

.npcs-page .token-history {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.npcs-page .token-history p + p { margin-top: 8px; }
.npcs-page .token-history code { display: block; }
