/* gt-gauge.css — мини-спидометр «оценка заказчика». Пара к public/js/gt-gauge.js.
   Стиль сдержанный: в выдаче таких значков десятки, и яркий элемент на каждой
   карточке превращает список в ёлку. Цветом говорит только дуга. */

.gt-gauge {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: help;
  outline: none;
  line-height: 1;
}
.gt-gauge svg { display: block; }

.gt-gauge-cap {
  font-size: 10.5px;
  letter-spacing: .02em;
  color: #8a948f;
  text-transform: uppercase;
}

/* Подсказка. Появляется слева-снизу от значка: в карточке выдачи он прижат
   к правому краю, и всплывающий вправо блок уехал бы за пределы экрана. */
.gt-gauge-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: -6px;
  z-index: 40;
  width: 268px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #e3e8e5;
  border-radius: 11px;
  box-shadow: 0 18px 40px -16px rgba(18, 47, 36, .38);
  color: #17241e;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity .13s ease, transform .13s ease, visibility .13s;
  pointer-events: none;
}
.gt-gauge:hover .gt-gauge-tip,
.gt-gauge:focus-visible .gt-gauge-tip,
.gt-gauge.open .gt-gauge-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gt-gauge-tip b { display: block; margin-bottom: 6px; font-size: 13.5px; }
.gt-gauge-red   .gt-gauge-tip > b { color: #c0392b; }
.gt-gauge-amber .gt-gauge-tip > b { color: #a5761c; }
.gt-gauge-green .gt-gauge-tip > b { color: #2d7a5f; }

.gt-gauge-tip ul { margin: 0 0 7px; padding-left: 17px; }
.gt-gauge-tip li { margin-bottom: 3px; }
.gt-gauge-tip li b { display: inline; color: #17241e; font-variant-numeric: tabular-nums; }
.gt-gauge-tip i {
  display: block;
  font-style: normal;
  color: #8a948f;
  font-size: 11.5px;
  line-height: 1.4;
  border-top: 1px solid #eef1ef;
  padding-top: 6px;
}

/* Узкий экран: подсказка прижимается к правому краю карточки и сужается,
   иначе на 375 px она вылезает за пределы окна. */
@media (max-width: 560px) {
  .gt-gauge-tip { width: min(260px, calc(100vw - 40px)); right: -4px; }
}
