@use '@cloud-ru/ds-figma-variables/build/scss/styles/styles.module' as base;

.headline {
  display: flex;
  flex-direction: column;
  gap: base.$sn-primitive-dimension-8;
  box-sizing: border-box;
}

.headlineLayout {
  display: flex;
  flex-direction: row;
  gap: base.$sn-primitive-dimension-8;
  align-items: flex-start;
}

.titleLayout {
  display: flex;
  flex-direction: row;
  gap: base.$sn-primitive-dimension-8;
  align-items: flex-start;

  width: 100%;
  min-width: 0;

  color: base.$sn-theme-color-available-version-textMain;
}

.title {
  min-width: 0;
}

.prefixButtonWrapper,
.statusWrapper {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  // min-height = высота строки заголовка: before-слот/статус не короче строки title.
  min-height: base.$sn-regular-headline-s-lineHeight;
}

.moreActions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  // Кап высоты до строки заголовка: kebab (`Button` 40px) центрируется и симметрично торчит ±4px,
  // НЕ растягивая строку выше line-height title (Figma: slotTitle 32px, кнопка 40px offset -4,-4).
  height: base.$sn-regular-headline-s-lineHeight;
  margin-left: auto;
}

.actions {
  display: flex;
  flex-shrink: 0;
  gap: base.$sn-primitive-dimension-8;
  align-items: center;
  justify-content: flex-end;
}

.statusRow {
  display: flex;
  align-items: center;
}

.subtitle {
  color: base.$sn-theme-color-available-version-textMain;
}
