/* Every Prism-DevRel documentation page, in the look of the Prism docs on
   uor.foundation: the --fd-* tokens, Space Grotesk and JetBrains Mono, and
   the dc-* docs layout of UOR-Foundation/website (src/index.css and
   src/docs/Docs.tsx at the commit devrel/site.json names). Dark only, as
   uor.foundation is. Page content keeps its own stylesheet beside this one. */
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
:root, .foundation {
  --fd-bg: 0 0% 4%;
  --fd-panel: 0 0% 7%;
  --fd-fg: 0 0% 98%;
  --fd-dim: 0 0% 60%;
  --fd-line: 0 0% 20%;
  --fd-line-strong: 0 0% 38%;
  --fd-accent: 0 0% 98%;
  --fd-section: clamp(26px, 3.4vw, 40px);
  --fd-article: clamp(36px, 4.3vw, 56px);
  --fd-lead: clamp(18px, 1.9vw, 22px);
  --fd-eyebrow: 14px;
  --fd-label: 13px;
  --fd-spectrum: linear-gradient(100deg, hsl(356 95% 66%) 0%, hsl(22 95% 58%) 7%, hsl(48 95% 56%) 14%, hsl(55 92% 54%) 19%, hsl(140 70% 48%) 25%, hsl(190 90% 54%) 31%, hsl(222 92% 64%) 38%, hsl(268 88% 70%) 45%, hsl(320 85% 68%) 48%, hsl(356 95% 66%) 50%, hsl(22 95% 58%) 57%, hsl(48 95% 56%) 64%, hsl(55 92% 54%) 69%, hsl(140 70% 48%) 75%, hsl(190 90% 54%) 81%, hsl(222 92% 64%) 88%, hsl(268 88% 70%) 95%, hsl(320 85% 68%) 98%, hsl(356 95% 66%) 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 7rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: hsl(var(--fd-bg)); color: hsl(var(--fd-fg)); font: 17px/1.6 "Space Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
a { color: inherit; text-decoration-color: hsl(var(--fd-line-strong)); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid hsl(var(--fd-fg)); outline-offset: 2px; }
code, kbd, .fd-mono, .eyebrow { font-family: "JetBrains Mono", ui-monospace, monospace; }
.fd-head { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: hsl(var(--fd-fg)); color: hsl(var(--fd-bg)); padding: 6px 10px; z-index: 50; }
.dc-dim { color: hsl(var(--fd-dim)); }

/* Header: brand, community, the app; then one tab per Diátaxis type. */
.dc-header { position: sticky; top: 0; z-index: 40; background: hsl(var(--fd-bg) / 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.dc-topbar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; }
.dc-brand { display: flex; align-items: baseline; gap: 8px; font-size: 18px; margin-right: auto; text-decoration: none; white-space: nowrap; }
.dc-brand .fd-mono { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: hsl(var(--fd-dim)); }
.dc-social { display: flex; align-items: center; gap: 4px; }
.dc-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: hsl(var(--fd-dim)); transition: color .2s; }
.dc-social a:hover { color: hsl(var(--fd-fg)); }
.dc-social svg { width: 22px; height: 22px; }
.dc-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; background: hsl(var(--fd-fg)); color: hsl(var(--fd-bg)); font-size: 14px; font-weight: 700; flex-shrink: 0; text-decoration: none; }
.dc-cta svg { width: 15px; height: 15px; }
.dc-ghost { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid hsl(var(--fd-line-strong)); font-size: 14px; font-weight: 700; text-decoration: none; }
.dc-ghost:hover { border-color: hsl(var(--fd-fg)); }
.dc-tabs { display: flex; gap: 26px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
.dc-tabs a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: hsl(var(--fd-dim)); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; transition: color .2s; }
.dc-tabs a:hover { color: hsl(var(--fd-fg)); }
.dc-tabs a.dc-active { color: hsl(var(--fd-fg)); font-weight: 700; border-color: hsl(var(--fd-fg)); }
.fd-header-line { display: block; height: 2px; background: var(--fd-spectrum); background-size: 200% 100%; animation: fd-wm-drift 18s linear infinite; box-shadow: 0 0 18px hsl(0 0% 100% / .16), 0 2px 14px hsl(0 0% 100% / .08); }
@keyframes fd-wm-drift { to { background-position: 200% 0; } }

/* Layout: the tab's pages by journey stage, the page, and what is on it. */
.dc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; }
.dc-layout-notoc { grid-template-columns: 260px minmax(0, 1fr); }
.dc-side { position: sticky; top: 107px; align-self: start; max-height: calc(100vh - 107px); overflow-y: auto; padding: 28px 16px; border-right: 1px solid hsl(var(--fd-line)); }
.dc-side p, .dc-toc p, .dc-mnav p { margin: 18px 10px 8px; font: 400 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .16em; color: hsl(var(--fd-dim)); }
.dc-side div:first-child p { margin-top: 0; }
.dc-side a, .dc-mnav a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 15px; line-height: 1.4; color: hsl(var(--fd-dim)); text-decoration: none; transition: color .2s, background .2s; }
.dc-side a:hover, .dc-mnav a:hover { color: hsl(var(--fd-fg)); }
.dc-side a.dc-active, .dc-mnav a.dc-active { color: hsl(var(--fd-fg)); background: hsl(var(--fd-panel)); font-weight: 700; }
.dc-mnav { display: none; margin: 0 0 24px; border: 1px solid hsl(var(--fd-line)); border-radius: 12px; background: hsl(var(--fd-panel)); }
.dc-mnav summary { padding: 12px 14px; cursor: pointer; font-size: 15px; min-height: 44px; }
.dc-mnav > div { padding: 0 6px 6px; }
.dc-article { min-width: 0; padding: 40px 48px 120px; max-width: 900px; width: 100%; }
.dc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 14px; color: hsl(var(--fd-dim)); }
.dc-crumbs a { text-decoration: none; }
.dc-crumbs a:hover { color: hsl(var(--fd-fg)); }
.dc-crumbs svg { width: 13px; height: 13px; }
.eyebrow { font-size: var(--fd-eyebrow); text-transform: uppercase; letter-spacing: 0.2em; color: hsl(var(--fd-dim)); margin: 0 0 12px; }
.dc-article h1, .dc-home h1 { font-size: var(--fd-article); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; overflow-wrap: anywhere; }
.dc-article h2, .dc-home h2 { font-size: var(--fd-section); line-height: 1.15; letter-spacing: -0.02em; margin: 56px 0 16px; scroll-margin-top: 120px; }
.dc-article h3 { font-size: 21px; margin: 32px 0 8px; }
.dc-article .lead, .dc-summary { font-size: var(--fd-lead); line-height: 1.6; color: hsl(var(--fd-dim)); max-width: 46rem; }
.dc-article p, .dc-article li { line-height: 1.75; }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 56px 0 0; padding-top: 20px; border-top: 1px solid hsl(var(--fd-line)); font-size: 14px; color: hsl(var(--fd-dim)); }
.dc-tag { font: 12px "JetBrains Mono", monospace; padding: 4px 10px; border-radius: 6px; border: 1px solid hsl(var(--fd-line-strong)); color: hsl(var(--fd-fg)); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.dc-tag:hover { border-color: hsl(var(--fd-fg)); }
.dc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.dc-card, .dc-home-card { display: block; border: 1px solid hsl(var(--fd-line)); border-radius: 16px; background: hsl(var(--fd-panel)); overflow: hidden; text-decoration: none; transition: border-color .25s, transform .25s; }
a.dc-card:hover, a.dc-home-card:hover { border-color: hsl(var(--fd-line-strong)); transform: translateY(-2px); }
.dc-pager .dc-card { padding: 18px 20px; }
.dc-pager .dc-next { text-align: right; }
.dc-pager span { display: block; font-size: 13px; color: hsl(var(--fd-dim)); }
.dc-pager strong { display: block; margin-top: 4px; font-size: 17px; }
.dc-toc { position: sticky; top: 107px; align-self: start; max-height: calc(100vh - 107px); overflow-y: auto; padding: 44px 16px; }
.dc-toc p { margin-left: 0; }
.dc-toc a { display: block; padding: 6px 12px; border-left: 1px solid hsl(var(--fd-line)); font-size: 14px; color: hsl(var(--fd-dim)); text-decoration: none; transition: color .2s, border-color .2s; }
.dc-toc a:hover { color: hsl(var(--fd-fg)); border-color: hsl(var(--fd-fg)); }

/* The docs hub. */
.dc-home { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 32px 120px; }
.dc-pixels { position: absolute; inset: 0 0 auto auto; width: 50%; height: 320px; pointer-events: none; background-image: linear-gradient(hsl(var(--fd-line) / .5) 1px, transparent 1px), linear-gradient(90deg, hsl(var(--fd-line) / .5) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 70%); }
.dc-body { max-width: 46rem; color: hsl(var(--fd-fg) / .82); line-height: 1.75; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.dc-home-grid { display: grid; gap: 20px; margin: 24px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.dc-home-grid > li { min-width: 0; }
.dc-home-grid > li > .dc-home-card { height: 100%; }
.dc-card-body { padding: 20px 22px 24px; }
.dc-card-body em { display: block; font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: hsl(var(--fd-dim)); }
.dc-card-body strong { display: block; margin-top: 10px; font-size: 19px; line-height: 1.35; }
.dc-card-body > span { display: block; margin-top: 8px; color: hsl(var(--fd-dim)); font-size: 15px; }
.dc-card-body > span + span { font-size: 13px; font-family: "JetBrains Mono", monospace; }
.dc-group-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 28px; padding: 0; list-style: none; font-size: 15px; }
.dc-group-list .dc-dim { font-size: 12px; }
.dc-home h3 { margin-top: 36px; }
.dc-card-body ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; }
.dc-card-body li { padding: 5px 0; border-top: 1px solid hsl(var(--fd-line)); }
.dc-card-body li .dc-dim { font-size: 12px; }
.dc-pattern { height: 96px; border-bottom: 1px solid hsl(var(--fd-line)); background-color: hsl(var(--fd-bg)); background-repeat: repeat; image-rendering: pixelated; animation: dc-drift 30s steps(154) infinite; }
.dc-dots { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges'%3E%3Crect width='2' height='2' fill='%23fff' fill-opacity='.32'/%3E%3C/svg%3E"); background-size: 14px 14px; }
.dc-grid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h22v1H0zM0 0h1v22H0z' fill='%23fff' fill-opacity='.13'/%3E%3C/svg%3E"); background-size: 22px 22px; }
.dc-lines { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M-1 15L15 -1M-8 8L8 -8M6 22L22 6' stroke='%23fff' stroke-opacity='.2' stroke-width='1'/%3E%3C/svg%3E"); background-size: 14px 14px; image-rendering: auto; }
@keyframes dc-drift { from { background-position: 0 0; } to { background-position: 154px 154px; } }
.dc-home .table { overflow-x: auto; border: 1px solid hsl(var(--fd-line)); border-radius: 12px; margin: 16px 0; }
.dc-home table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: 15px; }
.dc-home th, .dc-home td { text-align: left; padding: 10px 14px; border-bottom: 1px solid hsl(var(--fd-line)); vertical-align: top; line-height: 1.6; }
.dc-home thead th { font: 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--fd-dim)); font-weight: 400; }
.dc-home tbody th { font-weight: 700; }

/* Footer. */
.dc-foot { border-top: 1px solid hsl(var(--fd-line)); margin-top: 48px; padding: 32px 24px 48px; color: hsl(var(--fd-dim)); font-size: 15px; }
.dc-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 40px; max-width: 1440px; margin: 0 auto; }
.dc-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.dc-foot a { text-decoration: none; }
.dc-foot a:hover { color: hsl(var(--fd-fg)); }
.dc-foot-note { max-width: 1440px; margin: 20px auto 0; font-size: 13px; line-height: 1.6; }
.dc-foot-note a { text-decoration: underline; text-decoration-color: hsl(var(--fd-line-strong)); }

@media (prefers-reduced-motion: reduce) { .fd-header-line, .dc-pattern { animation: none; } a.dc-card:hover, a.dc-home-card:hover { transform: none; } }
@media (max-width: 1100px) { .dc-layout { grid-template-columns: 240px minmax(0, 1fr); } .dc-toc { display: none; } }
@media (max-width: 767px) {
  .dc-layout, .dc-layout-notoc { grid-template-columns: minmax(0, 1fr); }
  .dc-side { display: none; }
  .dc-mnav { display: block; }
  .dc-article { padding: 24px 16px 72px; }
  .dc-topbar, .dc-tabs { padding: 0 16px; }
  .dc-topbar { gap: 4px; }
  .dc-tabs { gap: 20px; }
  .dc-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .dc-topbar .dc-cta { width: 40px; padding: 0; justify-content: center; }
  .dc-home { padding: 40px 16px 72px; }
  .dc-actions .dc-cta { padding: 0 16px; width: auto; }
  .dc-pager { grid-template-columns: 1fr; }
  .dc-foot { padding: 24px 16px 40px; }
}
