/* Definition popup on the practice name. Painted by assets/js/werkstatt.js,
   which widens it past 158px only when the full text would not fit the
   viewport's height. */

.werkstatt-term {
  cursor: help;
  border-radius: 2px;
}

.werkstatt-term:focus-visible {
  outline-offset: 2px;
}

.werkstatt-def {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 158px;
  max-width: calc(100vw - var(--space-5));
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(15, 31, 42, 0.08);
  color: var(--body);
  font-family: var(--font-text);
  font-size: 8px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 0s linear 120ms;
}

/* 3px orange rule inset 3px from the edge; padding keeps 4px of air inside it. */
.werkstatt-def::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 3px solid var(--orange);
  border-radius: 2px;
  pointer-events: none;
}

.werkstatt-def.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 120ms ease;
}

.werkstatt-def.is-following {
  pointer-events: none;
}

.werkstatt-def.is-squeezed {
  overflow-y: auto;
}

.werkstatt-def-intro {
  color: var(--ink);
}

.werkstatt-def-h {
  margin-top: var(--space-1);
  font-family: var(--font-display);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
}

.werkstatt-def-h .practice-name {
  font-size: 8px;
  text-transform: none;
}

.werkstatt-def ul {
  margin: 1px 0 0;
  padding-left: 0.9em;
  list-style: "– ";
}

.werkstatt-def p + p:not(.werkstatt-def-h) {
  margin-top: 1px;
}

.werkstatt-def .practice-name,
.werkstatt-def .practice-name .light {
  color: var(--link);
  font-weight: 700;
}

.werkstatt-def .practice-name {
  letter-spacing: -0.02em;
  white-space: nowrap;
}
