/* Formal Phylogenetics. Paper by day and green-black by night, little text, one visual language in
   every view, chip and card: colour is the hub (--c, from --c-light and --c-dark), shape is the kind
   of paper (round for a method, square for theory), fill is the status (solid once formalized, half
   while in progress, hollow to do). What an entry cites is drawn in ink, what cites it in amber. */
:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --card: #fffdf8;
  --raise: #fbf8f1;
  --ink: #22201b;
  --ink-2: #4f4b44;
  --ink-3: #6b665e;
  --ink-4: #a8a297;
  --rule: #e2dccf;
  --faint: rgba(34, 32, 27, 0.1);
  --amber: #c2700c;
  --glow-1: #fde68a;
  --glow-2: #f59e0b;
  --focus: #2563eb;
  --shadow: 0 12px 32px -18px rgba(34, 32, 27, 0.45);
  --wash: 0.09;
  --leaf-dim: 0.42;
  --edge: 0.05;
  --c: var(--ink-3);
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121816;
    --card: #1a221e;
    --raise: #1e2723;
    --ink: #eee9dc;
    --ink-2: #d0c9ba;
    --ink-3: #aaa395;
    --ink-4: #6f6a61;
    --rule: #34403a;
    --faint: rgba(238, 233, 220, 0.16);
    --amber: #f5a524;
    --glow-2: #e08a10;
    --focus: #8ab4ff;
    --shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9);
    --wash: 0.2;
    --leaf-dim: 0.62;
    --edge: 0.09;
  }
  :root:not([data-theme="light"]) .hub-c,
  :root:not([data-theme="light"]) .card {
    --c: var(--c-dark, var(--ink-3));
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121816;
  --card: #1a221e;
  --raise: #1e2723;
  --ink: #eee9dc;
  --ink-2: #d0c9ba;
  --ink-3: #aaa395;
  --ink-4: #6f6a61;
  --rule: #34403a;
  --faint: rgba(238, 233, 220, 0.16);
  --amber: #f5a524;
  --glow-2: #e08a10;
  --focus: #8ab4ff;
  --shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9);
  --wash: 0.2;
  --leaf-dim: 0.62;
  --edge: 0.09;
}
.hub-c,
.card {
  --c: var(--c-light, var(--ink-3));
}
:root[data-theme="dark"] .hub-c,
:root[data-theme="dark"] .card {
  --c: var(--c-dark, var(--ink-3));
}

* {
  box-sizing: border-box;
}
::selection {
  background: color-mix(in oklab, var(--glow-2) 32%, transparent);
  color: var(--ink);
}
html {
  background: var(--paper);
  caret-color: var(--ink);
  accent-color: var(--ink);
  scrollbar-color: color-mix(in oklab, var(--ink) 22%, transparent) transparent;
}
body {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--paper);
  font:
    400 1rem/1.55 "IBM Plex Sans",
    "Helvetica Neue",
    sans-serif;
}
a {
  color: inherit;
  text-decoration-color: var(--ink-4);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}
[hidden] {
  display: none !important;
}
.ico {
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.25em;
  vertical-align: -0.04em;
  flex: none;
}
.ico.back {
  margin: 0 0.3em 0 0;
}

/* Scrollbars: a thin thumb in the ink, no track. */
.stage,
.panel {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, var(--ink) 18%, transparent) transparent;
}
.stage:hover,
.panel:hover {
  scrollbar-color: color-mix(in oklab, var(--ink) 34%, transparent) transparent;
}

.top,
#app,
.foot {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: var(--s3);
  font-size: 0.85rem;
  color: var(--ink-3);
}
.top > :first-child {
  justify-self: start;
}
.top > :last-child {
  justify-self: end;
}
.top a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}
.top a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.5fr);
  align-items: center;
  gap: var(--s6);
  margin: var(--s4) 0 0;
}
.intro {
  max-width: 520px;
}
.cover {
  margin: 0;
}
.cover #fan {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vh, 420px);
  margin: 0 auto;
}
.hero h1 {
  margin: 0;
  font:
    500 clamp(1.9rem, 3.4vw, 2.5rem) / 1.1 "Literata",
    Georgia,
    serif;
  letter-spacing: -0.01em;
}
.hero .sub {
  margin: var(--s2) 0 0;
  color: var(--ink-3);
}
/* The credits: a label and its value on each line. */
.meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px var(--s4);
  margin: var(--s5) 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
}
.meta > div {
  display: contents;
}
.meta dt {
  padding-top: 0.18em;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta dd {
  margin: 0;
  color: var(--ink-2);
}

/* The bar: the views, the search and the key, always at hand. */
.find {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s6);
}
.fold-all {
  flex: none;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.fold-all:hover {
  color: var(--ink);
}
#q {
  width: 100%;
  max-width: 420px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink-4);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
#q::placeholder {
  color: var(--ink-3);
}
#q:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  font-size: 0.74rem;
  color: var(--ink-3);
}
.k-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.sw {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
}
.sw.k-theory {
  border-radius: 1.5px;
}
.sw.s-formalized {
  background: var(--ink-3);
}
.ln.out {
  background: var(--ink);
}
.sw.s-in-progress {
  background: linear-gradient(90deg, var(--ink-3) 50%, transparent 50%);
}
.theme {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.theme:hover {
  color: var(--ink);
}
.theme svg {
  width: 0.95em;
  height: 0.95em;
}
.ln {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
}
.ln.in {
  background: var(--amber);
}

/* The explorer: the list beside the views; the views and the panel stay in sight. */
.explorer {
  margin-top: var(--s5);
}
/* The timeline, and the pinned entry below it. */
.timeline {
  min-width: 0;
}
.detail {
  margin-top: var(--s5);
}
.side-top {
  padding-top: var(--s3);
}
.side-top .key {
  margin-bottom: var(--s1);
}
.stage {
  position: relative;
  border-top: 1px solid var(--rule);
}
.view {
  display: block;
  width: 100%;
}
#graph {
  height: auto;
}
.note {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--paper) 85%, transparent);
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* The panel of the selected entry. */
.panel {
  padding: var(--s4) var(--s4) var(--s3);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--raise);
}
.panel.empty {
  display: none;
}
.p-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.p-head {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
}
.p-name {
  font:
    600 1.15rem "Literata",
    Georgia,
    serif;
  color: var(--c);
}
.p-meta {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.p-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}
.p-close:hover {
  background: color-mix(in oklab, var(--ink) 8%, transparent);
  color: var(--ink);
}
.ico-x {
  width: 12px;
  height: 12px;
}
.p-title {
  margin-top: 2px;
  font:
    500 1rem/1.35 "Literata",
    Georgia,
    serif;
}
.p-by {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.p-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--ink-3);
}
.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.p-where {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--ink-3);
}
.p-rel {
  margin-top: var(--s3);
}
.p-rel h3 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s2);
  font:
    600 0.7rem "IBM Plex Sans",
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.p-rel h3::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
}
.p-rel.in h3::before {
  background: var(--amber);
}
.p-rel h3 span {
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: 0;
}
.p-none {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.p-abstract {
  margin: var(--s3) 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.p-abstract:empty {
  display: none;
}
.p-more {
  height: 24px;
  padding: 0 10px;
  border: 1px dashed var(--ink-4);
  border-radius: 6px;
  background: none;
  color: var(--ink-2);
  font:
    500 0.76rem "IBM Plex Sans",
    sans-serif;
  cursor: pointer;
}
.p-more:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.p-abs {
  margin-top: var(--s3);
}
.p-abs > summary {
  width: fit-content;
  font:
    600 0.7rem "IBM Plex Sans",
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.p-abs > summary:hover {
  color: var(--ink);
}
.p-abs .p-abstract {
  margin-top: var(--s2);
}

/* Glyphs: shape is the kind, fill the status. */
.glyph {
  stroke: var(--c);
  stroke-width: 1.6;
  fill: var(--card);
  transition: opacity 0.2s;
}
.glyph.s-formalized {
  fill: var(--c);
}
.glyph.s-in-progress {
  fill: color-mix(in oklab, var(--c) 45%, var(--card));
}
.glyph.s-partial {
  stroke-dasharray: 2 1.5;
}

/* The fan; its type is set in the units of the drawing, which renders smaller beside the list. */
#fan .branch {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
}
#fan .hubline {
  fill: none;
  stroke: var(--c);
  stroke-linecap: round;
}
#fan .wedge {
  fill: var(--c);
  fill-opacity: var(--wash);
  transition: fill-opacity 0.25s;
}
#fan .wedge.sub {
  fill-opacity: calc(var(--wash) * 1.4);
}
#fan .band {
  fill: none;
  stroke: var(--c);
  stroke-width: 4;
  stroke-linecap: round;
}
#fan .hubname {
  font:
    500 20px "Literata",
    Georgia,
    serif;
  fill: var(--c);
}
#fan .groupname {
  font:
    600 13px "IBM Plex Sans",
    sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--ink-3);
}
#fan .rootname {
  font:
    500 17px "IBM Plex Sans",
    sans-serif;
  fill: var(--ink-2);
}
#fan .rootdot {
  fill: var(--ink);
}
#fan .leaf {
  stroke: var(--c);
  stroke-linecap: round;
  transition:
    opacity 0.2s,
    stroke 0.2s;
}
#fan .leaf.s-todo,
#fan .leaf.s-partial {
  opacity: var(--leaf-dim);
}
.off {
  opacity: 0.08 !important;
}

/* The timeline of citations: a row for each hub, the years above, the slider below. */
.axis {
  display: block;
  width: 100%;
  height: 22px;
  flex: none;
}
.axis .tick {
  font:
    11px "IBM Plex Sans",
    sans-serif;
  fill: var(--ink-3);
}
.slider {
  position: relative;
}
/* All years: in the left margin of the trim bar, level with its track. */
.s-all {
  position: absolute;
  left: 0;
  top: 27px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font:
    500 0.76rem "IBM Plex Sans",
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.s-all:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--ink-3);
}
.s-all:disabled {
  opacity: 0.4;
  cursor: default;
}
.overview {
  display: block;
  width: 100%;
  height: 62px;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}
.ov-track {
  fill: color-mix(in oklab, var(--ink) 3%, transparent);
}
.ov-bar {
  fill: color-mix(in oklab, var(--ink) 20%, transparent);
}
.ov-shade {
  fill: var(--paper);
  fill-opacity: 0.6;
  pointer-events: none;
}
.ov-win {
  fill: transparent;
  cursor: grab;
}
.ov-win:active {
  cursor: grabbing;
}
.ov-frame {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
  pointer-events: none;
}
.ov-handle {
  fill: var(--paper);
  stroke: var(--ink-3);
  stroke-width: 1;
  cursor: ew-resize;
}
.ov-handle:hover,
.ov-handle:focus-visible {
  stroke: var(--ink);
  outline: none;
}
.ov-grip {
  stroke: var(--ink-3);
  stroke-width: 1;
  stroke-linecap: round;
  pointer-events: none;
}
.ov-tag {
  pointer-events: none;
}
.ov-tag rect {
  fill: none;
}
.ov-tag text {
  font:
    500 11px "IBM Plex Sans",
    sans-serif;
  fill: var(--ink-2);
}
#graph .gridline {
  stroke: var(--faint);
}
#graph .year {
  font:
    13px "IBM Plex Sans",
    sans-serif;
  fill: var(--ink-3);
}
#graph .lanebg {
  fill: transparent;
}
#graph .lanebg.alt {
  fill: color-mix(in oklab, var(--ink) 3.5%, transparent);
}
#graph .lanename {
  font:
    500 13px "Literata",
    Georgia,
    serif;
  fill: var(--c);
}
#graph .lanename.subname {
  font-size: 12px;
}
#graph .edge {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: var(--edge);
  stroke-width: 0.8;
  transition: stroke-opacity 0.2s;
}
#graph.focus .edge {
  stroke-opacity: 0.02;
}
#graph .edge.out,
#graph .edge.in {
  stroke-opacity: 0.85;
  stroke-width: 1.4;
}
#graph .edge.in {
  stroke: var(--amber);
}
#graph .glyph {
  cursor: pointer;
}
#graph.focus .glyph {
  opacity: 0.16;
}
#graph .glyph.sel,
#graph .glyph.out,
#graph .glyph.in {
  opacity: 1;
}
#graph .glyph.sel {
  stroke: var(--ink);
  stroke-width: 3;
}
#graph .glyph.out {
  stroke: var(--ink);
  stroke-width: 2;
}
#graph .glyph.in {
  stroke: var(--amber);
  stroke-width: 2;
}

/* The timeline in motion: a highlighted citation draws out from the selected paper; a change of the
   range lets the papers glide while the citations step aside. */
#graph .glyph {
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  #graph .edge.out,
  #graph .edge.in {
    stroke-dasharray: 1;
    animation: draw 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) both;
  }
  #graph .edge.in {
    animation-name: draw-back;
  }
  #graph.glide .glyph {
    transition:
      cx 0.38s cubic-bezier(0.25, 0.7, 0.2, 1),
      cy 0.38s cubic-bezier(0.25, 0.7, 0.2, 1),
      x 0.38s cubic-bezier(0.25, 0.7, 0.2, 1),
      y 0.38s cubic-bezier(0.25, 0.7, 0.2, 1),
      opacity 0.2s;
  }
  #graph.glide .edges {
    opacity: 0;
  }
  #graph .edges {
    transition: opacity 0.3s ease;
  }
  #graph.pending .glyph,
  #graph.pending .edges {
    opacity: 0;
  }
  #graph.enter .glyph {
    animation: pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) var(--d, 0ms) both;
  }
  #graph.enter .edges {
    animation: fade 0.9s ease 0.9s both;
  }
  #fan.grow .anim {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: grow 0.9s cubic-bezier(0.3, 0.6, 0.2, 1) var(--d, 0ms) forwards;
  }
  #fan.grow .bud {
    transform-box: fill-box;
    transform-origin: center;
    animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) var(--d, 0ms) both;
  }
  #fan.grow .fade {
    animation: fade 0.6s ease var(--d, 0ms) both;
  }
  #fan.grow .glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse 3.6s ease-in-out 1.2s infinite;
  }
  #graph .nodes {
    animation: fade 0.6s ease both;
  }
}
@keyframes grow {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    transform: scale(0);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes draw-back {
  from {
    stroke-dashoffset: -1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pulse {
  50% {
    transform: scale(1.18);
    opacity: 0.75;
  }
}

/* The list of the hubs: a row each, opening to its families. */
.hubs h2 {
  margin: var(--s6) 0 var(--s2);
  font:
    600 0.7rem "IBM Plex Sans",
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hubs h2:first-child {
  margin-top: var(--s5);
}
.hub > summary {
  display: grid;
  grid-template-columns: 1fr auto 12px;
  grid-template-areas: "name count chev";
  align-items: center;
  gap: 6px var(--s3);
  padding: var(--s3) var(--s2) 10px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.h-name {
  grid-area: name;
}
.h-count {
  grid-area: count;
}
.hub > summary .chev {
  grid-area: chev;
}
.hub > summary::-webkit-details-marker {
  display: none;
}
.hub > summary:hover {
  background: color-mix(in oklab, var(--c) 7%, transparent);
}
.hub > summary:focus-visible {
  outline-offset: -2px;
}
.h-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    500 0.98rem/1.3 "Literata",
    Georgia,
    serif;
}
.h-name::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.hub.sub > summary .h-name {
  padding-left: 20px;
  font-size: 0.92rem;
}
.h-bar {
  display: flex;
  height: 3px;
  border-radius: 3px;
  background: var(--rule);
  overflow: hidden;
}
.h-count {
  text-align: right;
  font:
    0.78rem "IBM Plex Sans",
    sans-serif;
  color: var(--ink-3);
}
.chev {
  width: 12px;
  height: 12px;
  color: var(--ink-3);
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hub[open] > summary .chev {
  transform: rotate(90deg);
}
.hub.miss {
  opacity: 0.4;
}
.h-body {
  padding: var(--s1) var(--s2) var(--s4);
}
.hub.sub .h-body {
  padding-left: 28px;
}
.h-repo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--s2);
  font:
    0.76rem "IBM Plex Sans",
    sans-serif;
  color: var(--ink-3);
  text-decoration: none;
}
.h-repo:hover {
  color: var(--ink);
}
.family {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 6px var(--s5);
  padding: var(--s2) 0;
}
.family h4 {
  margin: 0;
  padding-top: 5px;
  font:
    400 0.78rem/1.35 "IBM Plex Sans",
    sans-serif;
  color: var(--ink-3);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.empty {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* Chips: one shape for every entry; the glyph inside carries the kind and the status, as in the
   views; a formalized entry is tinted with its hub. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px 0 9px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font:
    500 0.8rem/1 "IBM Plex Sans",
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.tag::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  box-sizing: border-box;
  border: 1.5px solid var(--c);
  border-radius: 50%;
}
.tag.k-theory::before {
  border-radius: 1.5px;
}
.tag.s-formalized {
  border-color: color-mix(in oklab, var(--c) 45%, var(--rule));
  background: color-mix(in oklab, var(--c) 11%, var(--card));
}
.tag.s-formalized::before {
  background: var(--c);
}
.tag.s-in-progress::before {
  background: linear-gradient(90deg, var(--c) 50%, transparent 50%);
}
.tag.s-partial::before {
  border-style: dotted;
}
a.tag:hover {
  border-color: var(--c);
}
.tag.sel {
  border-color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.tag.out {
  box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--ink) 70%, transparent);
}
.tag.in {
  box-shadow: 0 0 0 1.5px var(--amber);
}
.tag.mini {
  height: 24px;
  font-size: 0.76rem;
}

/* The card of an entry, under the pointer. */
.card {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  width: min(420px, calc(100vw - 24px));
  padding: 12px 15px;
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--c) 38%, var(--rule));
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.4;
}
.card .t-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card .t-name {
  color: var(--c);
  font:
    600 1rem "Literata",
    Georgia,
    serif;
}
.card .t-kind,
.card .t-status {
  font:
    600 0.66rem "IBM Plex Sans",
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card .t-status {
  color: var(--c);
}
.card .t-title {
  margin-top: 3px;
  font:
    500 0.95rem/1.35 "Literata",
    Georgia,
    serif;
}
.card .t-by {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.card .t-abstract {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
  max-height: 11.5em;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.card .t-wait {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.card .t-hint {
  margin-top: 6px;
  font-size: 0.74rem;
  color: var(--ink-3);
}
.card .t-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 9px;
  font-size: 0.76rem;
  color: var(--ink-3);
}

.foot {
  margin-top: var(--s7);
  padding-top: var(--s5);
  padding-bottom: var(--s6);
  font-size: 0.8rem;
  color: var(--ink-3);
}

@media (max-width: 899px) {
  .hero {
    display: block;
  }
  .cover {
    margin-top: var(--s3);
  }
}
@media (max-width: 760px) {
  #fan .hubname {
    font-size: 34px;
  }
  #fan .groupname,
  #fan .rootname {
    font-size: 24px;
  }
  .top,
  #app,
  .foot {
    padding: 0 14px;
  }
  .side-top {
    top: 0;
  }
  .family {
    grid-template-columns: 1fr;
  }
  .side-head {
    display: block;
  }
  .key {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
