:root {
  --theme-color: #1f8e9f;
  --brand-navy: #123e6f;
  --brand-navy-deep: #0b2f55;
  --brand-cyan: #269bad;
  --brand-cyan-soft: #dff3f4;
  --brand-lavender: #9b82d4;
  --ink: #18344a;
  --ink-soft: #526b7d;
  --paper: #f8fbfa;
  --paper-deep: #edf5f4;
  --line: #d5e3e3;
  --sidebar-width: 19rem;
  --base-font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  --base-font-size: 17px;
  --heading-font-family: "Outfit", "Atkinson Hyperlegible", system-ui, sans-serif;
  --code-font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--base-font-family);
  -webkit-font-smoothing: antialiased;
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  position: fixed;
  z-index: 20;
}

a,
button,
input,
.sidebar-toggle {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid rgb(38 155 173 / 35%);
  outline-offset: 3px;
}

.app-nav {
  margin: 1.15rem 2rem 0 0;
  z-index: 10;
}

.app-nav a {
  color: var(--brand-navy-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 0.42rem 0.25rem;
}

.app-nav a:hover {
  color: var(--brand-cyan);
}

.sidebar {
  background: radial-gradient(circle at 12% 7%, rgb(38 155 173 / 9%), transparent 18rem), #f1f7f6;
  border-right: 1px solid var(--line);
  padding: 0 1.4rem 2rem;
}

.sidebar > h1.app-name {
  border-bottom: 1px solid var(--line);
  margin: 0 0 1.4rem;
  padding: 2.1rem 0 1.45rem;
  text-align: left;
}

.sidebar > h1.app-name a {
  color: var(--brand-navy);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.site-name {
  font-family: var(--heading-font-family);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.site-name::before {
  background: url("../assets/biopixi-mark-transparent.png") center / contain no-repeat;
  content: "";
  display: inline-block;
  height: 1.65rem;
  margin-right: 0.55rem;
  transform: translateY(0.24rem);
  width: 1.65rem;
}

.site-kicker {
  color: var(--ink-soft);
  font-family: var(--base-font-family);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  margin: 0.55rem 0 0 2.25rem;
  text-transform: uppercase;
}

.sidebar .search {
  border: 0;
  margin: 0 0 1.45rem;
  padding: 0;
}

.sidebar .search input {
  background: rgb(255 255 255 / 72%);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--ink);
  font-family: inherit;
  padding: 0.72rem 0.8rem;
}

.sidebar .search input:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgb(38 155 173 / 12%);
}

.sidebar-nav li {
  margin: 0.16rem 0;
}

.sidebar-nav a {
  border-left: 2px solid transparent;
  color: #465f70;
  font-size: 0.92rem;
  padding: 0.28rem 0.25rem 0.28rem 0.75rem;
}

.sidebar-nav a:hover {
  color: var(--brand-cyan);
}

.sidebar-nav li.active > a {
  border-left-color: var(--brand-cyan);
  color: var(--brand-navy);
  font-weight: 700;
}

.sidebar-nav strong {
  color: var(--brand-navy-deep);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.115em;
  margin: 1.35rem 0 0.35rem 0.75rem;
  text-transform: uppercase;
}

.content {
  padding-top: 1.5rem;
}

.markdown-section {
  max-width: 58rem;
  padding: 3.75rem 3.4rem 6rem;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
  color: var(--brand-navy-deep);
  font-family: var(--heading-font-family);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.markdown-section h1 {
  font-size: clamp(2.65rem, 5vw, 4.4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin-bottom: 2.4rem;
}

.markdown-section h1::after {
  background: var(--brand-cyan);
  content: "";
  display: block;
  height: 0.3rem;
  margin-top: 1.1rem;
  width: 3.5rem;
}

.markdown-section h2 {
  border-bottom: 1px solid var(--line);
  font-size: 1.8rem;
  margin-top: 3.4rem;
  padding-bottom: 0.65rem;
}

.markdown-section h3 {
  font-size: 1.28rem;
  margin-top: 2.25rem;
}

.markdown-section p,
.markdown-section li {
  line-height: 1.72;
}

.markdown-section p {
  max-width: 68ch;
  text-wrap: pretty;
}

.markdown-section a {
  color: #147f90;
  font-weight: 700;
  text-decoration-color: rgb(20 127 144 / 35%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.markdown-section a:hover {
  color: var(--brand-navy);
  text-decoration-color: currentColor;
}

.markdown-section code {
  background: #eaf2f1;
  border-radius: 0.22rem;
  color: #7453a7;
  font-size: 0.86em;
  padding: 0.12em 0.34em;
}

.markdown-section pre {
  background: #102f46;
  border: 0;
  border-left: 4px solid var(--brand-cyan);
  border-radius: 0.3rem;
  box-shadow: 0 1rem 2.8rem rgb(11 47 85 / 13%);
  margin: 1.8rem 0 2.2rem;
  padding: 1.15rem 1.3rem;
}

.markdown-section pre > code {
  background: transparent;
  color: #e8f3f3;
  padding: 0;
}

.docsify-copy-code-button {
  background: #1d5267 !important;
  border-radius: 0 0.3rem 0 0.3rem !important;
  color: #d9eeee !important;
  font-family: var(--base-font-family) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
}

.docsify-copy-code-button:hover {
  background: var(--brand-cyan) !important;
  color: #fff !important;
}

.markdown-section table {
  border-collapse: separate;
  border-spacing: 0;
  display: block;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 1.8rem 0 2.3rem;
  overflow-x: auto;
  width: 100%;
}

.markdown-section th {
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.markdown-section th,
.markdown-section td {
  border-color: var(--line);
  padding: 0.78rem 0.9rem;
  vertical-align: top;
}

.markdown-section tr:nth-child(even) td {
  background: #eef6f5;
}

.markdown-section blockquote {
  background: linear-gradient(90deg, rgb(38 155 173 / 10%), rgb(155 130 212 / 6%));
  border: 0;
  border-left: 4px solid var(--brand-cyan);
  color: #36566a;
  margin: 1.8rem 0;
  padding: 0.95rem 1.15rem;
}

.markdown-section blockquote p {
  font-weight: 400;
  margin: 0;
}

.journey-ladder {
  margin: 2rem auto 3.2rem;
  max-width: 48rem;
}

.journey-ladder a {
  background: #f7f9fb;
  border-radius: 0.45rem;
  box-shadow: 0 1.2rem 3.4rem rgb(11 47 85 / 12%);
  display: block;
  overflow: hidden;
}

.journey-ladder a:hover {
  box-shadow: 0 1.45rem 3.8rem rgb(11 47 85 / 16%);
  transform: translateY(-2px);
}

.journey-ladder img {
  display: block;
  height: auto;
  width: 100%;
}

.journey-ladder figcaption {
  color: var(--ink-soft);
  font-size: 0.78rem;
  margin-top: 0.7rem;
  text-align: center;
}

.agentic-lanes {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 4.5rem minmax(0, 1fr);
  margin: 2.2rem 0 3rem;
}

.agentic-lane {
  border-top: 0.28rem solid var(--brand-cyan);
  min-height: 11rem;
  padding: 1.4rem 1.5rem 1.65rem;
}

.agentic-lane--analysis {
  background: var(--brand-navy);
  border-radius: 0.4rem 0 0 0.4rem;
  color: #e8f3f3;
}

.agentic-lane--package {
  background: var(--brand-cyan-soft);
  border-color: var(--brand-lavender);
  border-radius: 0 0.4rem 0.4rem 0;
  color: var(--ink);
}

.agentic-lane__label {
  color: #72d2dc;
  font-family: var(--code-font-family);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agentic-lane--package .agentic-lane__label {
  color: #7453a7;
}

.markdown-section .agentic-lane h3 {
  color: inherit;
  font-size: 1.35rem;
  margin: 0.8rem 0 0.55rem;
}

.markdown-section .agentic-lane p {
  line-height: 1.55;
  margin: 0;
}

.agentic-lanes__and {
  align-items: center;
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    linear-gradient(var(--paper), var(--paper));
  display: flex;
  justify-content: center;
}

.agentic-lanes__and span {
  align-items: center;
  background: var(--brand-lavender);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: var(--heading-font-family);
  font-size: 0.78rem;
  font-weight: 700;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.markdown-section .agentic-lanes__outcome {
  background: rgb(155 130 212 / 10%);
  border-bottom: 1px solid rgb(155 130 212 / 25%);
  color: var(--brand-navy);
  font-size: 0.82rem;
  font-weight: 700;
  grid-column: 1 / -1;
  letter-spacing: 0.025em;
  margin: 0;
  max-width: none;
  padding: 0.78rem 1rem;
  text-align: center;
}

.fair-stack {
  display: grid;
  gap: 0.7rem;
  margin: 2.2rem 0 3rem;
}

.fair-stack__layer {
  background: #f2f7f7;
  border-left: 0.3rem solid var(--brand-cyan);
  display: grid;
  gap: 0.25rem 1.5rem;
  grid-template-columns: minmax(9.5rem, 0.7fr) minmax(0, 1.8fr);
  padding: 1.15rem 1.35rem;
  position: relative;
}

.fair-stack__layer--record {
  border-color: var(--brand-lavender);
  border-radius: 0.4rem 0.4rem 0 0;
}

.fair-stack__layer--environment {
  background: var(--brand-navy);
  border-color: #72d2dc;
  color: #e8f3f3;
  padding-bottom: 2.65rem;
}

.fair-stack__layer--analysis {
  border-radius: 0 0 0.4rem 0.4rem;
}

.fair-stack__label {
  align-self: center;
  color: #7453a7;
  font-family: var(--code-font-family);
  font-size: 0.68rem;
  font-weight: 700;
  grid-row: 1 / span 2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fair-stack__layer--environment .fair-stack__label {
  color: #72d2dc;
}

.fair-stack__layer--analysis .fair-stack__label {
  color: #147f90;
}

.markdown-section .fair-stack__layer h3 {
  color: inherit;
  font-size: 1.25rem;
  margin: 0;
}

.markdown-section .fair-stack__layer p {
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

.fair-stack__scope {
  background: var(--brand-lavender);
  border-radius: 1rem;
  bottom: 0.65rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  position: absolute;
  right: 1rem;
  text-transform: uppercase;
}

.doc-tabs {
  background: #f7fafb;
  border: 1px solid rgb(18 62 111 / 14%);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2.8rem rgb(11 47 85 / 8%);
  margin: 1.6rem 0 2rem;
  overflow: hidden;
}

.doc-tabs__controls {
  background: rgb(18 62 111 / 4%);
  border-bottom: 1px solid rgb(18 62 111 / 14%);
  display: flex;
  gap: 0;
  padding: 0 1rem;
}

.doc-tabs__tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 0.2rem solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--heading-font-family);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 -1px;
  padding: 0.9rem 1.1rem 0.78rem;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease;
}

.doc-tabs__tab:hover {
  background: rgb(45 178 190 / 7%);
  color: var(--brand-navy);
}

.doc-tabs__tab.is-active {
  border-bottom-color: var(--brand-cyan);
  color: var(--brand-navy);
}

.doc-tabs__tab:focus-visible {
  border-radius: 0.2rem;
  outline: 0.16rem solid rgb(45 178 190 / 42%);
  outline-offset: -0.25rem;
}

.doc-tabs__panel {
  padding: 1.35rem 1.55rem 1.55rem;
}

.doc-tabs__panel[hidden] {
  display: none;
}

.markdown-section .doc-tabs__panel p {
  margin: 0 0 1rem;
  max-width: 46rem;
}

.markdown-section .doc-tabs__panel pre {
  margin: 0;
}

.journey-stage {
  align-items: center;
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 2rem 1rem 2.4rem;
}

.journey-stage--example-right {
  grid-template-areas: "summary example";
}

.journey-stage--example-left {
  grid-template-areas: "example summary";
}

.journey-stage > blockquote {
  grid-area: summary;
  margin: 0;
}

.journey-example {
  background: #102f46;
  border-radius: 0.35rem;
  box-shadow: 0 1.15rem 3rem rgb(11 47 85 / 16%);
  color: #e8f3f3;
  grid-area: example;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.journey-example::before {
  background: var(--brand-cyan);
  content: "";
  height: 0.28rem;
  inset: 0 0 auto;
  position: absolute;
}

.journey-example figcaption {
  align-items: baseline;
  background: rgb(38 155 173 / 9%);
  border-bottom: 1px solid rgb(223 243 244 / 12%);
  color: #c9dcdf;
  display: flex;
  font-size: 0.78rem;
  gap: 0.6rem;
  line-height: 1.35;
  padding: 0.88rem 1.1rem 0.7rem;
}

.journey-example figcaption span {
  color: #72d2dc;
  font-family: var(--code-font-family);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.markdown-section .journey-example pre {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  overflow-x: auto;
  padding: 1.1rem;
  white-space: pre;
}

.markdown-section .journey-example pre > code {
  font-size: 0.72rem;
  line-height: 1.55;
  white-space: inherit;
}

.anchor span {
  color: inherit;
}

.github-corner svg {
  color: var(--brand-navy);
  fill: var(--paper);
}

.sidebar-toggle {
  background: var(--brand-navy);
  border-radius: 0 0.35rem 0 0;
  padding: 0.85rem;
}

.sidebar-toggle span {
  background-color: #fff;
}

section.cover {
  background:
    radial-gradient(circle at 83% 45%, rgb(38 155 173 / 16%), transparent 24rem),
    radial-gradient(circle at 73% 25%, rgb(155 130 212 / 9%), transparent 18rem),
    linear-gradient(115deg, #f8fbfa 0%, #eff7f5 100%) !important;
  color: var(--ink);
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

section.cover::before {
  background-image:
    linear-gradient(rgb(18 62 111 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(18 62 111 / 5%) 1px, transparent 1px);
  background-size: 3rem 3rem;
  content: "";
  inset: 0;
  mask-image: linear-gradient(90deg, #000, transparent 58%);
  pointer-events: none;
  position: absolute;
}

section.cover .cover-main {
  margin: 0 auto;
  max-width: 74rem;
  padding: 7.5rem 26rem 5rem 3.5rem;
  position: relative;
  text-align: left;
  width: calc(100% - 4rem);
  z-index: 1;
}

section.cover .cover-mark {
  filter: drop-shadow(0 1.8rem 2.2rem rgb(11 47 85 / 18%));
  height: auto;
  margin: 0;
  max-width: 27rem;
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
}

section.cover .cover-eyebrow {
  color: #147f90;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 1.35rem;
  text-transform: uppercase;
}

section.cover h1 {
  color: var(--brand-navy-deep);
  font-family: var(--heading-font-family);
  font-size: clamp(3.5rem, 6.5vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.92;
  margin: 0 0 1.65rem;
  max-width: 9ch;
  text-wrap: balance;
}

section.cover blockquote {
  color: #415e70;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.55;
  margin: 0 0 2.15rem;
  max-width: 35rem;
}

section.cover blockquote p {
  font-weight: 400;
  margin: 0;
}

section.cover .cover-main > p:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

section.cover .cover-main > p:last-child a {
  border: 1px solid var(--brand-navy);
  border-radius: 0.25rem;
  color: var(--brand-navy);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0.72rem 1rem;
}

section.cover .cover-main > p:last-child a:first-child {
  background: var(--brand-navy);
  color: #fff;
}

section.cover .cover-main > p:last-child a:hover {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #fff;
  transform: translateY(-2px);
}

section.cover .cover-main > p:last-child a:active {
  transform: translateY(0) scale(0.98);
}

section.cover .cover-main > p:last-child a:last-child {
  border-color: transparent;
}

section.cover .cover-main > p:last-child a:last-child:hover {
  background: rgb(38 155 173 / 10%);
  color: var(--brand-navy);
}

section.cover .cover-main > p:last-child a .icon {
  display: none;
}

section.cover .mask {
  background: transparent;
}

section.cover .cover-main > p:last-child a:first-child::after {
  content: " \2192";
  display: inline-block;
  margin-left: 0.32rem;
  transition: transform 180ms ease;
}

section.cover .cover-main > p:last-child a:first-child:hover::after {
  transform: translateX(0.2rem);
}

@media (max-width: 900px) {
  .app-nav {
    margin-right: 1rem;
  }

  .journey-stage,
  .journey-stage--example-right,
  .journey-stage--example-left {
    gap: 1.3rem;
    grid-template-areas:
      "summary"
      "example";
    grid-template-columns: minmax(0, 1fr);
    margin: 1.5rem 0.65rem 2rem;
  }

  .agentic-lanes {
    gap: 0;
    grid-template-columns: minmax(0, 1fr);
    margin: 1.8rem 0.65rem 2.5rem;
  }

  .agentic-lane {
    min-height: 0;
  }

  .agentic-lane--analysis {
    border-radius: 0.4rem 0.4rem 0 0;
  }

  .agentic-lane--package {
    border-radius: 0;
  }

  .agentic-lanes__and {
    background:
      linear-gradient(90deg, var(--line), var(--line)) center / 1px 100% no-repeat,
      linear-gradient(var(--paper), var(--paper));
    min-height: 3.8rem;
  }

  .markdown-section .agentic-lanes__outcome {
    grid-column: 1;
  }

  .doc-tabs__controls {
    padding: 0 0.35rem;
  }

  .doc-tabs__tab {
    flex: 1 1 0;
    padding-inline: 0.45rem;
  }

  section.cover .cover-main {
    padding: 7rem 16rem 4rem 2rem;
    width: 100%;
  }

  section.cover .cover-mark {
    max-width: 18rem;
    right: -3rem;
    width: 35%;
  }
}

@media (max-width: 680px) {
  .app-nav {
    display: none;
  }

  section.cover .cover-main {
    padding: 4.6rem 1.4rem 3rem;
    text-align: left;
  }

  section.cover .cover-mark {
    margin: 0 0 1.5rem auto;
    max-width: 9rem;
    position: static;
    transform: none;
    width: 32vw;
  }

  section.cover h1 {
    font-size: clamp(3.2rem, 16vw, 4.6rem);
  }

  .markdown-section {
    padding: 3.8rem 1.35rem 5rem;
  }

  .markdown-section h1 {
    font-size: 2.8rem;
  }

  .fair-stack__layer {
    display: block;
    padding: 1.1rem 1.2rem;
  }

  .fair-stack__layer--environment {
    padding-bottom: 2.8rem;
  }

  .fair-stack__label {
    display: block;
    margin-bottom: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
