/* ================================================================
   article-kpi.css — дополнительные компоненты статьи о KPI
   Подключается ПОСЛЕ общего ../article.css
   Содержит только то, чего нет в базовом шаблоне:
     - .art-callout + варианты (--check, --warn, --formula)
     - .art-table + семафорные ячейки
     - .art-case + .art-case--fail
     - .art-body h3
     - .art-divider, .art-section-label (утилиты, нужные только здесь)
   ================================================================ */


/* ================================================================
   УТИЛИТЫ
   ================================================================ */

/* Горизонтальный разделитель внутри статьи */
.art-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Метка-разделитель «Хотите внедрить с командой» */
.art-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.art-section-label::before,
.art-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ================================================================
   H3 ВНУТРИ СТАТЬИ
   ================================================================ */
.art-body h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.32;
  margin: 36px 0 14px;
}


/* ================================================================
   КАЛЛАУТ — базовый компонент + варианты
   ================================================================ */
.art-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.art-callout__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1.4;
}

.art-callout__body {
  flex: 1;
  min-width: 0;
}

.art-callout__body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.art-callout__body p,
.art-callout__body ol,
.art-callout__body ul {
  font-size: 14px;
  line-height: 1.68;
  margin: 0 !important;
}

.art-callout__body ol,
.art-callout__body ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Вариант: зелёный ✓ */
.art-callout--check {
  background: #F0FDF4;
  border-left: 4px solid #16a34a;
}
.art-callout--check .art-callout__icon { color: #16a34a; }
.art-callout--check strong            { color: #166534; }
.art-callout--check p,
.art-callout--check li                { color: #374151; }

/* Вариант: жёлтый ⚠ */
.art-callout--warn {
  background: #FFFBEB;
  border-left: 4px solid #d97706;
}
.art-callout--warn .art-callout__icon { color: #d97706; }
.art-callout--warn strong             { color: #92400e; }
.art-callout--warn p                  { color: #374151; }

/* Вариант: синий формула */
.art-callout--formula {
  background: #F0F4FF;
  border-left: 4px solid #3B82F6;
}
.art-callout--formula .art-callout__icon { color: #3B82F6; }
.art-callout--formula strong             { color: #1e3a8a; }
.art-callout--formula p {
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 6px;
}
.art-callout--formula em { color: #6b7280; }


/* ================================================================
   ТАБЛИЦЫ ДАННЫХ
   ================================================================ */
.art-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.art-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
  background: #fff;
}

.art-table thead {
  background: var(--bg-soft);
}

.art-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.art-table td {
  padding: 12px 16px;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.art-table tbody tr:last-child td {
  border-bottom: none;
}

.art-table tbody tr:hover td {
  background: var(--bg-soft);
}

/* Семафорные ячейки */
.art-table__good               { color: #166534 !important; font-weight: 600; }
.art-table__ok                 { color: #92400e !important; font-weight: 600; }
.art-table__bad                { color: var(--red) !important; font-weight: 600; }
.art-table th.art-table__good  { color: #166534 !important; }
.art-table th.art-table__ok    { color: #92400e !important; }
.art-table th.art-table__bad   { color: var(--red) !important; }


/* ================================================================
   КЕЙС-БЛОК
   ================================================================ */
.art-case {
  display: grid;
  grid-template-columns: 4px 1fr;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0 28px;
}

.art-case__stripe {
  background: #16a34a;   /* зелёный — успех */
}

.art-case--fail .art-case__stripe {
  background: var(--red); /* красный — провал */
}

.art-case__body {
  padding: 20px 24px 22px;
}

.art-case__label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 10px;
}

.art-case__body p {
  font-size: 14px !important;
  line-height: 1.72 !important;
  color: var(--mid) !important;
  margin-bottom: 0 !important;
}
.art-case__body p + p {
  margin-top: 10px !important;
}
