/* Shared design tokens for publication pages, React routes, and on-site tools. */
:root {
  color-scheme: light;
  --radius-card: 28px;
  --radius-control: 12px;
  --radius-control-group: 16px;
  --radius-pill: 999px;
  --page: #fff;
  --page-rgb: 255 255 255;
  --surface: #fff;
  --surface-subtle: #f4f7ff;
  --surface-recessed: #fbfcff;
  --text: #0f1d4a;
  --prose-text: #33457a;
  --muted-text: #46588a;
  --quiet-text: #6d7fb0;
  --meta-text: #4c6094;
  --link: #b5481c;
  --action-text: #fff;
  --inverse-surface: #0f1d4a;
  --inverse-text: #fff;
  --inverse-muted: #bfcce4;
  --inverse-link: #ffae86;
  --control-border: #d6e1fa;
  --blue-soft: #dfe9ff;
  --blue-text: #1f56d6;
  --peach: #fff3ec;
  --field-border: #b7c6e8;
  --error-text: #92261c;
  --green-surface: #effaf4;
  --green-tint: #dff6ec;
  --green-border: #bfe9d7;
}
:root.dark {
  color-scheme: dark;
  --page: #101726;
  --page-rgb: 16 23 38;
  --surface: #192337;
  --surface-subtle: #141e30;
  --surface-recessed: #151e2f;
  --text: #edf1fa;
  --prose-text: #dce4f4;
  --muted-text: #bfcce4;
  --quiet-text: #a9b9d6;
  --meta-text: #b2c2e1;
  --link: #ffae86;
  --action-text: var(--page);
  --inverse-surface: #0c1321;
  --inverse-text: #edf1fa;
  --inverse-muted: #a9b9d6;
  --field-border: #7385a6;
  --control-border: #647795;
  --error-text: #ffab9e;
  --blue-dark: #24467f;
  --blue-text: #a5c2ff;
  --blue-soft: #354864;
  --track: #202f49;
  --green: #216e57;
  --green-surface: #142f2b;
  --green-tint: #1e4038;
  --green-border: #39685a;
  --green-text: #91e2bc;
  --peach: #32252c;
  --peach-line: #65483f;
  --peach-strong: #846056;
  --orange-text: #ffb18b;
  --warm-link: #ffa783;
  --warm-text: #ead1c5;
  --warm-muted: #d7b9ad;
}

/* Shared Tools label: plain superscript using the active theme's muted text. */
sup.tools-beta {
  position: relative;
  top: -.6em;
  margin-left: .35em;
  font-family: inherit;
  font-size: 50%;
  font-weight: inherit;
  line-height: 0;
  vertical-align: baseline;
  letter-spacing: .04em;
  color: var(--muted-text);
  white-space: nowrap;
}
.card-dark .tools-beta { color: var(--inverse-muted); }
