/* --- Registration marks ------------------------------------------------
   The crosses a printed drawing carries at its corners, for lining sheets
   up. Here they just say: this is a drawing, read it as one. */
.reg {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.reg::before,
.reg::after {
  content: "";
  position: absolute;
  background: var(--amber);
  opacity: .55;
}

.reg::before {
  inset: 50% 0 auto;
  height: 1px;
}

.reg::after {
  inset: 0 auto 0 50%;
  width: 1px;
}

.reg-tl { top: 9px; left: 9px; }
.reg-tr { top: 9px; right: 9px; }
.reg-bl { bottom: 9px; left: 9px; }
.reg-br { bottom: 9px; right: 9px; }

/* --- Availability ------------------------------------------------------ */
.ok {
  color: var(--teal);
}

.clock {
  font-variant-numeric: tabular-nums;
}

/* --- The index ---------------------------------------------------------
   A numbered index down a dimension line: each row is ticked off against
   the rule the way a measured drawing marks its stations. */
.index {
  border-left: 1px solid var(--rule);
}

.index-title {
  padding-left: 1.5rem;
  padding-bottom: .75rem;
}

.row {
  position: relative;
}

.row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--rule-strong);
  transition: width .2s var(--ease), background .2s var(--ease);
}

.row:hover::before,
.row:focus-within::before {
  width: 20px;
  background: var(--amber);
}

.row-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .15rem .9rem;
  padding: .9rem 0 .9rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .2s var(--ease);
}

.row:hover .row-link,
.row:focus-within .row-link {
  padding-left: 1.9rem;
}

.row:last-child .row-link {
  border-bottom: 0;
}

.row-ref {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  transition: color .2s var(--ease);
}

.row:hover .row-ref,
.row:focus-within .row-ref {
  color: var(--amber);
}

.row-name {
  grid-column: 2;
  grid-row: 1;
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: -.015em;
}

.row-desc {
  grid-column: 2 / 4;
  grid-row: 2;
  color: var(--dim);
  font-size: .88rem;
}

.row-value {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--dim);
  white-space: nowrap;
}

.row:hover .row-value,
.row:focus-within .row-value {
  color: var(--text);
}

@media (max-width: 520px) {
  .row-value {
    display: none;
  }
}

/* --- Footer marks ------------------------------------------------------ */
.marks {
  display: flex;
  gap: .35rem;
}

.mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  color: var(--dim);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.mark svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark:hover,
.mark:focus-visible {
  color: var(--amber);
  border-color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  .row::before,
  .row-link,
  .row-ref,
  .mark {
    transition: none;
  }
}
