

.tl {
  --tl-c: #8e8aa0;
  font-family: var(--sans);
  font-size: var(--fs-cap-min, 11px);
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--tl-c);
  color: var(--tl-c);
  background: rgba(255, 255, 255, .02);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  line-height: 1.4;
}
.tl::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tl-c);
  box-shadow: 0 0 6px -1px var(--tl-c);
  flex: none;
}
.tl-green { --tl-c: #97c459; }   
.tl-amber { --tl-c: #d8b578; }   
.tl-blue  { --tl-c: #6fb8d6; }   

.tl-legend {
  border: 1px solid rgba(216, 181, 120, .16);
  border-radius: 10px;
  background: rgba(216, 181, 120, .03);
  padding: 16px 20px;
  margin: 0 0 26px;
}
.tl-legend .tl-h {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold, #d8b578);
  margin-bottom: 12px;
}
.tl-legend .tl-rows { display: grid; gap: 9px; }
.tl-legend .tl-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted, #8e8aa0);
  line-height: 1.5;
}
.tl-legend .tl-row .tl { flex: none; }
.tl-legend .tl-row b { color: var(--ink, #e8e2d4); font-weight: 500; }
.tl-legend .tl-note {
  font-size: 12px;
  color: var(--dim, #5f5c72);
  border-top: 1px solid rgba(216, 181, 120, .12);
  padding-top: 10px;
  margin-top: 12px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .tl { padding: 4px 9px; }
}

.tl-i {
  border-bottom: 1px dashed var(--tl-c);
  padding-bottom: 1px;
  cursor: help;
  transition: background .25s ease;
}
.tl-i:hover, .tl-i:focus-visible {
  background: color-mix(in srgb, var(--tl-c) 12%, transparent);
}
.tl-i::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tl-c);
  margin-left: 4px;
  vertical-align: 2px;
  flex: none;
}
@media (prefers-reduced-motion: reduce) { .tl-i { transition: none } }

.tl-open { --tl-c: #b79ce0; }   

/* 🔴 Подписи в 40–47 символов при white-space:nowrap дают min-content 342–379px
   и распирают 1fr-трек: на 375px контент уезжал за экран, а html{overflow-x:clip}
   не давал доскроллить — текст просто исчезал. На узких экранах разрешаем перенос. */
@media (max-width: 900px){
  .tl{ white-space: normal; line-height: 1.4; text-align: left; }
}

@media (max-width: 900px){
  .tl{ font-size: 12px; }
  .tl-legend .tl-h{ font-size: 12px; }
}


.tl.tl-blue { display: none !important; }
.tl-i.tl-blue {
  border-bottom: 0;
  padding-bottom: 0;
  cursor: inherit;
}

.tl-legend .tl-row:has(.tl-blue) { display: none; }
.tl-legend div:has(> .tl-blue) { display: none; }

.tl-hyp        { --tl-c: var(--tl-hyp-c, #8fd8e8); }  
.tl-contested  { --tl-c: #e8a06c; }   
.tl-unverified { --tl-c: #8e8aa0; }   
.tl-nulltest   { --tl-c: #c98a8a; }   

:root { --tl-hyp-c: #8fd8e8; }

.tl{
  white-space: normal;
  max-width: 100%;
  overflow-wrap: break-word;
}
.tl{ -webkit-box-decoration-break: clone; box-decoration-break: clone; }

@media (max-width: 640px) {
  .tl-i {
    border-bottom: 1px solid color-mix(in srgb, var(--tl-c) 38%, transparent);
    cursor: auto;
  }
  .tl-i::after { display: none; }
}
