:root {
  color-scheme: light;
  --registry-blue: #173b7a;
  --registry-blue-dark: #102a56;
  --registry-ok: #1a7f37;
  --registry-amber: #855b00;
  --registry-ink: #161616;
  --registry-body: #3a3a3a;
  --registry-muted: #6a6a6a;
  --registry-rule: #e5e5e5;
  --registry-sidebar: #fafafa;
  --registry-active: #eef3ff;
  --registry-code-bg: #f3f4f6;
  --registry-ok-bg: #edf7f2;
  --registry-warn-bg: #fff7e8;
  --registry-bad-bg: #fff1f1;
  /* Civic-print palette shared with registrystack.org: ledger-green paper,
     an ink-black band, stamp red, brass. */
  --registry-paper: #eef2ec;
  --registry-ink-band-deep: #161616;
  --registry-stamp: #9d2c1d;
  --registry-brass: #d4af4e;
  --registry-max: 1120px;
  --registry-font: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --registry-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* One shared timing for the whole interaction layer; reduced motion
     disables it wholesale in shared.css. */
  --registry-ease: 150ms ease;
}
body, button, input, textarea { font: inherit; }
.top-nav .nav-emphasis { color: var(--registry-blue); }
.hero-inner {
  margin: 0 auto;
  max-width: var(--registry-max);
  padding: clamp(48px, 7vw, 86px) clamp(16px, 4vw, 42px) clamp(34px, 5vw, 58px);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  color: var(--registry-ink);
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 820px;
  text-wrap: balance;
}
h2 {
  color: var(--registry-ink);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 18px;
  text-wrap: balance;
}
h3 {
  color: var(--registry-ink);
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.subtitle {
  color: var(--registry-body);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
  max-width: 760px;
}
.hero-note { color: var(--registry-body); font-size: 15px; margin-top: 18px; max-width: 620px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* The whole service fleet reduced to one ledger line under the CTA. */
.status-line {
  color: var(--registry-muted);
  font-family: var(--registry-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 26px 0 0;
  text-transform: uppercase;
}
main { display: block; }
.band {
  background: #ffffff;
  border-bottom: 1px solid var(--registry-rule);
}
.band-muted { background: var(--registry-sidebar); }
.band-inner {
  margin: 0 auto;
  max-width: var(--registry-max);
  padding: clamp(42px, 6vw, 70px) clamp(16px, 4vw, 42px);
}
.section-heading {
  margin-bottom: 28px;
  max-width: 800px;
}
.section-heading p:not(.eyebrow) { color: var(--registry-body); font-size: 17px; max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--registry-rule);
  color: var(--registry-muted);
  background: #ffffff;
  font-family: var(--registry-mono);
  font-size: 12px;
}
.pill.ok { color: var(--registry-ok); border-color: var(--registry-ok); background: var(--registry-ok-bg); }
.pill.bad { color: #a22d2d; border-color: #d9a1a1; background: var(--registry-bad-bg); }
.credential {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--registry-rule);
  background: #fff;
  min-width: 0;
  transition: border-color var(--registry-ease), box-shadow var(--registry-ease);
}
/* Hovering a service card lifts it like a pulled record slip. */
.credential:hover {
  border-color: var(--registry-blue);
  box-shadow: 4px 4px 0 rgba(23, 59, 122, 0.12);
}
.credential h3::before {
  background: var(--registry-blue);
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 16px;
  width: 28px;
}
.meta { color: var(--registry-muted); font-size: 13px; }
.token-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
code.token {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--registry-rule);
  color: var(--registry-ink);
  padding: 10px;
  background: var(--registry-code-bg);
}
pre {
  overflow: auto;
  margin: 0;
  border: 1px solid var(--registry-rule);
  color: var(--registry-ink);
  padding: 12px;
  background: var(--registry-code-bg);
  max-height: 140px;
  white-space: pre-wrap;
  word-break: break-word;
}
button, .button {
  align-items: center;
  border: 1px solid var(--registry-blue);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  background: #fff;
  color: var(--registry-blue);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kv { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--registry-rule); background: #ffffff; }
.kv span { color: var(--registry-ok); font-family: var(--registry-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.kv strong { color: var(--registry-ink); overflow-wrap: anywhere; }
.step-list { display: grid; gap: 12px; grid-column: 1 / -1; }
.step-card {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--registry-rule);
  display: grid;
  gap: 14px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 18px;
}
.step-number {
  align-items: center;
  background: var(--registry-blue);
  color: #ffffff;
  display: inline-flex;
  font-family: var(--registry-mono);
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.step-card p { color: var(--registry-muted); }
/* One service per row; its credentials tile inside so wide services use the space. */
#services-grid { grid-template-columns: 1fr; }
.status-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cred-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--registry-rule);
  padding-top: 18px;
}
/* Tokens and curl are advanced material: closed by default, one click away. */
.cred-disclosure { border-top: 1px solid var(--registry-rule); }
.cred-disclosure summary { color: var(--registry-blue); cursor: pointer; font-weight: 700; padding: 12px 0 0; }
.cred-disclosure .cred-list { border-top: 0; margin-top: 14px; padding-top: 0; }
.cred-block { display: grid; gap: 10px; min-width: 0; align-content: start; }
.cred-name { color: var(--registry-ink); font-weight: 700; }
.hidden { display: none; }
@media (max-width: 760px) {
  .token-box { grid-template-columns: 1fr; }
}
