/* Блок «о проекте» под графиком на /chart/.
 *
 * Форма — соседнего блока позиционирования: тот же кегль, те же ряды
 * «подпись слева, число справа», та же приглушённая палитра. Два блока под
 * одним графиком обязаны читаться одним блоком, а не двумя чужими друг другу
 * карточками.
 *
 * Свёрнут по умолчанию: пришедшему за ценой справка о проекте не нужна, а
 * место под графиком она занимает целым экраном. Открывается одним нажатием
 * и запоминать состояние не пытается — читатель, открывший её один раз,
 * закрывает вкладку с открытой, и это его выбор на эту вкладку.
 */
.tt-ab {
  margin: 22px 0 0;
  border: 1px solid rgba(232, 236, 233, .12);
  background: rgba(232, 236, 233, .02);
}

.tt-ab > summary.tt-ab-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
}

.tt-ab > summary::-webkit-details-marker { display: none; }

/* Знак раскрытия рисуем сами: у браузерного треугольника своя метрика в
   каждом движке, и ряд из-за него разъезжался. */
.tt-ab > summary.tt-ab-head::before {
  content: "+";
  flex: 0 0 auto;
  width: 16px;
  color: #33ff66;
  font-weight: 700;
  line-height: 1;
}

.tt-ab[open] > summary.tt-ab-head::before { content: "\2212"; }

.tt-ab-title { color: #e8ece9; font-weight: 600; }

.tt-ab-facts {
  margin-left: auto;
  color: #8a948c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tt-ab-body { padding: 0 14px 14px; }

.tt-ab-desc {
  margin: 0 0 12px;
  max-width: 78ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: #8a948c;
}

.tt-ab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.tt-ab-tags span {
  padding: 3px 8px;
  border: 1px solid rgba(232, 236, 233, .14);
  font-size: 11px;
  color: #8a948c;
}

/* Две колонки на широком экране: пятнадцать рядов в один столбец — это
   экран прокрутки ради четырнадцати чисел. */
.tt-ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 28px;
}

.tt-ab-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(232, 236, 233, .07);
  font-size: 13.5px;
  color: #8a948c;
}

.tt-ab-row b {
  color: #e8ece9;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tt-ab-row b a { color: #33ff66; text-decoration: none; }
.tt-ab-row b a:hover { text-decoration: underline; }

/* Вложенные списки — раунды, контракты, ссылки. Они длиннее основной сетки и
   нужны не каждому, поэтому свои складки. */
.tt-ab-part { margin-top: 12px; }

.tt-ab-part > summary {
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a948c;
}

.tt-ab-part > summary::-webkit-details-marker { display: none; }
.tt-ab-part > summary::before { content: "+ "; color: #33ff66; font-weight: 700; }
.tt-ab-part[open] > summary::before { content: "\2212 "; }

.tt-ab-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px; }

.tt-ab-links a {
  padding: 5px 10px;
  border: 1px solid rgba(51, 255, 102, .3);
  font-size: 12px;
  color: #33ff66;
  text-decoration: none;
}

.tt-ab-links a:hover { background: rgba(51, 255, 102, .08); }

/* Неполный профиль эмитента: оговорка планкой, как у соседнего блока. */
.tt-ab-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(255, 206, 84, .6);
  background: rgba(255, 206, 84, .05);
  font-size: 12.5px;
  line-height: 1.55;
  color: #8a948c;
}

.tt-ab-src { margin: 12px 0 0; font-size: 11px; color: #5a635c; }

@media (max-width: 620px) {
  .tt-ab-facts { margin-left: 0; width: 100%; }
  .tt-ab-row { font-size: 12.5px; }
}

/* Светлая тема: те же роли, пересчитанный контраст. */
html.tt-light .tt-ab { border-color: rgba(18, 22, 19, .14); background: rgba(18, 22, 19, .02); }
html.tt-light .tt-ab-title { color: #121613; }
html.tt-light .tt-ab-facts,
html.tt-light .tt-ab-desc,
html.tt-light .tt-ab-row,
html.tt-light .tt-ab-note,
html.tt-light .tt-ab-part > summary { color: #43584a; }
html.tt-light .tt-ab-row b { color: #121613; }
html.tt-light .tt-ab-row { border-bottom-color: rgba(18, 22, 19, .08); }
html.tt-light .tt-ab-tags span { border-color: rgba(18, 22, 19, .16); color: #43584a; }
html.tt-light .tt-ab-links a,
html.tt-light .tt-ab-row b a,
html.tt-light .tt-ab > summary.tt-ab-head::before,
html.tt-light .tt-ab-part > summary::before { color: #087a3a; border-color: rgba(8, 122, 58, .3); }
html.tt-light .tt-ab-src { color: #6b756d; }
