/* Блок ig-dept. Перенесён из выгрузки 2. Дизайн/1. этап/2026-09-19 (blocks/home.css). */

/* Плитка компактнее (замечание Никиты 26.09.2026: главная в один экран) */

.ig-dept {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px 8px;
  border-radius: var(--radius-lg);
  color: var(--ink-900);
  background: var(--surface-0);
  border: 1px solid var(--border-200);
  transition: border-color 0.15s, box-shadow 0.15s;
}

a.ig-dept:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
}

.ig-dept--mine {
  background: #f0fafb;
  border-color: #9fd8df;
}

.ig-dept--closed {
  background: var(--surface-50);
  border-color: #e6ecee;
  cursor: default;
}

.ig-dept__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ig-dept__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-200);
  color: #4b5a60;
}

.ig-dept__icon .ig-icon {
  width: 18px;
  height: 18px;
}

.ig-dept--mine .ig-dept__icon {
  background: var(--brand-600);
  color: var(--ink-0);
}

.ig-dept--closed .ig-dept__icon {
  color: #a9b4b8;
}

/* Добавлено при переносе: серая плитка - кнопка, открывающая окно «Нет доступа» (SPEC §17) */

button.ig-dept--closed {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ig-dept__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--surface-200);
  color: #4b5a60;
}

.ig-dept--mine .ig-dept__chip {
  background: var(--brand-600);
  color: var(--ink-0);
}

.ig-dept--closed .ig-dept__chip {
  color: #8a979c;
}

.ig-dept__chip .ig-icon {
  width: 12px;
  height: 12px;
}

.ig-dept__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ig-dept__title {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.ig-dept--closed .ig-dept__title {
  color: #8a979c;
}

.ig-dept__head {
  font-size: 12.5px;
  color: var(--ink-600);
}

.ig-dept--closed .ig-dept__head {
  color: #a9b4b8;
}

.ig-dept__foot {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #eef2f3;
  font-size: 12.5px;
  color: var(--ink-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-dept--mine .ig-dept__foot {
  color: #006e7a;
  border-color: var(--brand-100);
}

.ig-dept--closed .ig-dept__foot {
  color: #a9b4b8;
}
