/* Стили контента импортированных статей: таблицы, details/summary, h4-блоки.
   Подключается в layouts/main.php (2026-08-24) */
/* ===== Imported articles: tables, details/summary, emoji h4-blocks (2026-08-24) ===== */

/* Локальные переменные (style.css не подключён на страницах) */
.article-body {
  --ab-blue: #1089ff;
  --ab-blue-light: #4daefe;
  --ab-text: rgba(0, 0, 0, 0.87);
  --ab-text-2: rgba(0, 0, 0, 0.6);
  --ab-bg: #f8f9fa;
  --ab-border: rgba(0, 0, 0, 0.12);
}

/* 1. Таблицы в контенте статей */
.article-body .table-wrapper { overflow-x: auto; margin: 24px 0; border-radius: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.article-body thead th,
.article-body th {
  background: linear-gradient(135deg, var(--ab-blue), var(--ab-blue-light));
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.article-body tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--ab-border);
  color: var(--ab-text-2);
  vertical-align: top;
}
.article-body tbody tr:nth-child(even) { background: var(--ab-bg); }
.article-body tbody tr:hover { background: rgba(16, 137, 255, 0.06); }
.article-body td:first-child { color: var(--ab-text); font-weight: 500; }
@media (max-width: 768px) {
  .article-body table { font-size: 13px; }
  .article-body thead th, .article-body th { padding: 10px 10px; }
  .article-body tbody td { padding: 8px 10px; }
}

/* 2. Блоки <details>/<summary> — спойлеры и FAQ */
.article-body details {
  margin: 20px 0;
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-body summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ab-text);
  background: var(--ab-bg);
  list-style: none;
  transition: all 0.25s ease;
  user-select: none;
}
.article-body summary::-webkit-details-marker { display: none; }
.article-body summary::before {
  content: '▸';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ab-blue);
  color: #fff;
  font-size: 12px;
  transition: transform 0.25s ease;
}
.article-body details[open] summary::before { transform: rotate(90deg); }
.article-body summary:hover { background: rgba(16, 137, 255, 0.08); color: var(--ab-blue); }
.article-body details > *:not(summary) { padding-left: 18px; padding-right: 18px; }
.article-body details > p:last-child,
.article-body details > div:last-child,
.article-body details > ul:last-child,
.article-body details > ol:last-child { padding-bottom: 16px; }

/* 3. Блоки-чеклисты с h4 внутри div (☑️ Диагностика питания …) */
.article-body div > h4:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(16, 137, 255, 0.08), rgba(77, 174, 254, 0.12));
  border-left: 4px solid var(--ab-blue);
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--ab-text);
  line-height: 1.35;
}
.article-body h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--ab-text);
}
