.papers {
  --accent: #ff5cd9;
  --accent-2: #b56bff;
}
.formula {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgb(0 0 0/0.35);
  border: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  color: #fff;
  scrollbar-width: thin;
}
.formula mjx-container[display="true"] {
  margin: 0 !important;
}
.bc .bar::before,
.bc .bar::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: inherit;
}
.bc .bar::before {
  left: -3.5px;
}
.bc .bar::after {
  right: -3.5px;
}
.bc .tl-row {
  --c: var(--accent);
  transition: opacity 0.2s;
}
.bc .tl-row[data-kind="published"] {
  --c: #fff;
}
.bc .tl-row[data-kind="thesis"] {
  --c: var(--accent-2);
}
.bc .tl-row[data-kind="manuscript"] {
  --c: #ffd166;
}
.bc .tl-row:hover .tl-l,
.bc .tl-row:focus-visible .tl-l {
  color: #fff;
}
.bc .tl-row:hover .bar {
  height: 6px;
  margin-top: -3px;
}
.bc:has(.tl-row:hover) .tl-row:not(:hover) {
  opacity: 0.4;
}
.bc .tl-t {
  --n: 13;
}
.paper {
  padding: 6px 0 26px;
}
.paper + .paper {
  border-top: 1px dashed var(--line);
  padding-top: 22px;
}
.paper h4 {
  font: 400 clamp(1.45rem, 2.4vw, 1.9rem)/1.12 var(--serif);
  color: #fff;
  margin-bottom: 8px;
  max-width: 28em;
}
.by {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  max-width: var(--measure);
}
.paper details {
  margin: 4px 0 12px;
}
.paper summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--accent);
  font: 500 13px var(--mono);
  letter-spacing: 0.04em;
  list-style: none;
}
.paper summary::-webkit-details-marker {
  display: none;
}
.paper summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 13px;
  line-height: 1;
  transition: rotate 0.3s var(--ease);
}
.paper details[open] > summary::before {
  rotate: 45deg;
}
.paper details > p {
  margin: 12px 0 0;
  color: var(--soft);
  max-width: var(--measure);
}
.case-banner {
  margin: 16px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1600/448;
  background: #0b0b0b;
}
.case-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.steps {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 12px;
  margin-top: 12px;
  counter-reset: s;
}
.step {
  counter-increment: s;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgb(255 255 255/0.025);
}
.step h5 {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h5::before {
  content: counter(s, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent);
  font-size: 10.5px;
  color: #fff;
  letter-spacing: 0;
}
.step p {
  font-size: 0.95rem;
  color: var(--soft);
  margin: 0;
}
.step .formula {
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.project .kpi {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.kpi b {
  display: block;
  font: 400 clamp(1.9rem, 3.6vw, 2.6rem)/1 var(--serif);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kpi b mjx-container {
  color: var(--accent);
}
.kpi span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.repo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  min-height: 148px;
  padding: 22px;
}
.repo b {
  font: 500 1.03rem var(--sans);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  hyphens: manual;
  overflow-wrap: anywhere;
}
.repo b .ico {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.repo > span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
.repo .langs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  font: 500 11.5px var(--mono);
  color: var(--faint);
}
.langs i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  background: var(--l);
}
