@font-face {
  font-family: Newsreader;
  src: url("/Orion/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("/Orion/fonts/plex-sans.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #080e13;
  --panel: #0d1920;
  --border: #20343c;
  --text: #e5eeeb;
  --muted: #9aafad;
  --teal: #75ddc8;
  --code: #081116;
  --serif: Newsreader, Georgia, serif;
  --sans: Plex, system-ui, sans-serif;
}
:root[data-theme="ivory"] {
  color-scheme: light;
  --bg: #faf9f5;
  --panel: #fffefa;
  --border: #e3e0d6;
  --text: #252522;
  --muted: #67665e;
  --teal: #087a6a;
  --code: #f1efe8;
}
:root[data-theme="clay"] {
  color-scheme: light;
  --bg: #f7f0e8;
  --panel: #fff9f2;
  --border: #e0d2c4;
  --text: #342c28;
  --muted: #756351;
  --teal: #985139;
  --code: #f2e8dd;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.72 var(--sans);
  transition:
    background-color 0.25s,
    color 0.25s;
}
a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--text);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 5;
  padding: 8px 12px;
  background: var(--panel);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.topbar {
  height: 74px;
  padding: 0 max(28px, calc((100vw - 1512px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.13em;
  font-size: 12px;
  font-weight: 600;
}
.brand-mark {
  color: var(--teal);
  font-size: 22px;
}
.brand small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.2em;
  font:
    9px/1.5 ui-monospace,
    monospace;
}
.home-link,
.repo-link {
  font-size: 12px;
}
.docs-layout {
  max-width: 1512px;
  margin: 0 auto;
  padding: 42px 28px 82px;
  display: grid;
  grid-template-columns: 230px minmax(0, 760px) 190px;
  gap: clamp(30px, 5vw, 84px);
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.search-form label,
.nav-label {
  display: block;
  color: var(--muted);
  font:
    10px/1.4 ui-monospace,
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.search-row {
  display: flex;
  margin-top: 9px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--panel);
}
.search-row input {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 13px var(--sans);
  outline: none;
}
.search-row input::placeholder {
  color: var(--muted);
}
.search-row button {
  width: 40px;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--teal);
  font-size: 20px;
  cursor: pointer;
}
.guide-nav {
  display: grid;
  gap: 3px;
  margin-top: 30px;
}
.guide-nav .nav-label {
  margin: 0 0 7px;
}
.guide-link {
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.guide-link:hover,
.guide-link.current {
  color: var(--text);
  background: var(--panel);
}
.guide-link.current {
  box-shadow: inset 2px 0 var(--teal);
}
.repo-link {
  display: inline-block;
  margin: 27px 10px;
  color: var(--muted);
}
.article-column {
  min-width: 0;
  animation: page-enter 0.48s ease both;
}
.article {
  min-width: 0;
}
.article h1,
.article h2,
.article h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  scroll-margin-top: 24px;
}
.article h1 {
  font-size: clamp(42px, 5vw, 62px);
  margin: 0 0 24px;
}
.article h2 {
  font-size: clamp(29px, 3vw, 38px);
  margin: 50px 0 15px;
  padding-top: 12px;
}
.article h3 {
  font-size: 25px;
  margin: 34px 0 12px;
}
.article p,
.article li {
  color: var(--muted);
}
.article p {
  margin: 0 0 18px;
}
.article strong {
  color: var(--text);
  font-weight: 600;
}
.article ul,
.article ol {
  padding-left: 1.35em;
  margin: 8px 0 24px;
}
.article li {
  padding-left: 4px;
  margin: 6px 0;
}
.article li::marker {
  color: var(--teal);
}
.article blockquote {
  margin: 25px 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--teal);
  color: var(--muted);
}
.article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 35px 0;
}
.article img {
  max-width: 100%;
  height: auto;
}
.article code {
  font:
    12.5px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: var(--teal);
  overflow-wrap: anywhere;
}
.article p code,
.article li code {
  padding: 2px 5px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--panel);
}
.article pre {
  position: relative;
  margin: 20px 0 28px;
  padding: 48px 18px 22px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--code);
  white-space: pre;
  tab-size: 2;
}
.article pre code {
  color: var(--text);
  font-size: 12px;
  overflow-wrap: normal;
}
.copy-code {
  position: absolute;
  right: 8px;
  top: 8px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--panel);
  color: var(--muted);
  font: 10px var(--sans);
  cursor: pointer;
}
.copy-code[data-state="success"] {
  color: var(--teal);
  border-color: var(--teal);
}
.copy-code[data-state="failure"] {
  color: #ffb1a7;
  border-color: #ff8e82;
}
.copy-status {
  position: absolute;
  top: 41px;
  right: 8px;
  font-size: 10px;
  color: var(--muted);
}
.article table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow: auto;
  margin: 24px 0;
}
.article th,
.article td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.article th {
  color: var(--text);
  background: var(--panel);
}
.toc-panel {
  position: sticky;
  top: 26px;
  border-left: 1px solid var(--border);
  padding-left: 18px;
}
.toc-panel ol {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.toc-panel li {
  margin: 7px 0;
}
.toc-panel a {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}
.toc-panel a:hover {
  color: var(--teal);
}
.toc-panel .toc-level-3 {
  padding-left: 11px;
}
.toc-empty {
  color: var(--muted);
  font-size: 11px;
}
.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
}
.page-nav a {
  display: grid;
  gap: 4px;
  text-decoration: none;
  font-size: 13px;
}
.page-nav a:last-child {
  text-align: right;
}
.page-nav span {
  color: var(--muted);
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.docs-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 21px max(28px, calc((100vw - 1512px) / 2));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}
.docs-footer a:first-child {
  color: var(--text);
  letter-spacing: 0.17em;
  text-decoration: none;
}
.search-results {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
}
.search-results h2 {
  font: 24px var(--serif);
  margin: 0 0 12px;
}
.search-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-results li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.search-results li a {
  font-weight: 600;
}
.search-results li p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
}
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
:root[data-motion="paused"] *,
:root[data-motion="paused"] *::before,
:root[data-motion="paused"] *::after {
  animation-play-state: paused !important;
  animation: none !important;
  transition: none !important;
}
@media (max-width: 1050px) {
  .docs-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 34px;
  }
  .toc-panel {
    display: none;
  }
  .article-column {
    max-width: 760px;
  }
}
@media (max-width: 680px) {
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .docs-layout {
    display: block;
    padding: 25px 18px 54px;
  }
  .sidebar {
    position: static;
    max-height: none;
    margin-bottom: 32px;
  }
  .guide-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 5px;
    margin-top: 20px;
  }
  .guide-nav .nav-label {
    grid-column: 1/-1;
  }
  .repo-link {
    margin: 16px 10px 0;
  }
  .article h1 {
    font-size: 43px;
  }
  .article h2 {
    margin-top: 38px;
    font-size: 30px;
  }
  .article pre {
    margin-inline: -3px;
    padding: 46px 12px 16px;
  }
  .article pre code {
    font-size: 11px;
  }
  .copy-status {
    top: 41px;
  }
  .docs-footer {
    padding: 18px;
    flex-wrap: wrap;
  }
  .docs-footer span {
    order: 3;
    width: 100%;
  }
}

@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: docs-fade-out 0.16s ease both;
}
::view-transition-new(root) {
  animation: docs-fade-in 0.28s ease both;
}
@keyframes docs-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes docs-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
:root[data-motion="paused"]::view-transition-old(root),
:root[data-motion="paused"]::view-transition-new(root) {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand-mark {
  width: 29px;
  height: 32px;
  stroke: var(--teal);
  fill: var(--teal);
  stroke-width: 1;
}
.brand-mark path {
  fill: none;
}
.brand {
  font-size: 14px;
  letter-spacing: 0.18em;
}
.brand small {
  font-size: 8px;
  margin-top: 3px;
}
.docs-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}
.docs-controls button {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  width: 32px;
  height: 35px;
  cursor: pointer;
}
.docs-controls button:hover {
  border-color: var(--border);
  color: var(--teal);
}
.docs-controls select {
  color: var(--muted);
  font: 11px var(--sans);
  background: transparent;
  border: 0;
  width: 62px;
  padding: 8px 0;
  cursor: pointer;
}
.docs-controls option {
  color: var(--text);
  background: var(--panel);
}
.guides-menu summary {
  display: none;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  list-style: none;
}
.guides-menu summary::-webkit-details-marker {
  display: none;
}
.guides-menu summary > span {
  float: right;
  color: var(--teal);
}
@media (max-width: 680px) {
  .docs-controls {
    gap: 8px;
  }
  .home-link > span {
    display: none;
  }
  .brand {
    font-size: 12px;
  }
  .brand-mark {
    width: 25px;
    height: 28px;
  }
  .brand small {
    font-size: 7px;
  }
  .guides-menu {
    margin-top: 20px;
    border-block: 1px solid var(--border);
    padding: 13px 0;
  }
  .guides-menu summary {
    display: block;
  }
  .guides-menu[open] summary > span {
    transform: rotate(180deg);
  }
  .guides-menu .guide-nav {
    margin-top: 17px;
  }
  .repo-link {
    margin-top: 13px;
    font-size: 10px;
  }
  .sidebar {
    margin-bottom: 25px;
  }
}

.search-row:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
summary:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.docs-controls button {
  min-width: 40px;
  min-height: 40px;
}
.docs-controls select {
  min-height: 40px;
}
