.th {
  cursor: pointer;
}

.th:hover,
.th.th--on {
  border-radius: 3px;
  background: var(--surface-hi);
}

.th:focus-visible {
  border-radius: 3px;
  background: var(--surface-hi);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.tt-pop {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-inline-size: min(21rem, calc(100vw - 16px));
  padding: 0.4375rem 0.625rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: var(--fs-sm);
  line-height: 1.35;
  box-shadow: 0 4px 14px #0004;
}

.tt-pop[hidden] {
  display: none;
}

.tt-pop--one {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.tt-ch {
  font-family: var(--font-th);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  padding-bottom: 0.1875rem;
  border-bottom: 1px solid #8885;
}

.tt-pop--one .tt-ch {
  border-bottom: 0;
  padding-bottom: 0;
}

.tt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tt-row {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.375rem;
  align-items: baseline;
}

.tt-pop--one .tt-row {
  display: block;
}

.tt-g {
  font-family: var(--font-th);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.tt-pop--one .tt-g {
  display: none;
}

.tt-b {
  min-inline-size: 0;
  overflow-wrap: break-word;
}

.tt-s {
  font-weight: 600;
  margin-inline-end: 0.375rem;
}

.tt-m {
  font-size: var(--fs-xs);
  opacity: 0.86;
}

@media (forced-colors: active) {
  .tt-pop {
    background: Canvas;
    color: CanvasText;
    border: 2px solid CanvasText;
  }
}

@media print {
  .tt-pop {
    display: none !important;
  }
  .th {
    background: none !important;
    outline: none !important;
  }
}
