/* Раздел «Нормативные акты» (/acts/): элементы, которых нет в css.css.
   Добавить в конец /templates/rin/css/css.css или подключить отдельным файлом
   после него. Цвета взяты из css.css сайта: --teal-dark, --gold, --line, #558996, #8e2a20. */

/* Подпись автора и дата обновления — над строкой статуса */
.act-meta {
  font-size: 13px;
  color: #777;
  margin: 0 0 10px;
}

/* Строка статуса документа на дату проверки */
.act-status {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 4px solid #558996;
  border-radius: 0 4px 4px 0;
  background: #eef4f6;
  font-size: 15px;
  line-height: 1.5;
}
.act-status strong { color: var(--teal-dark, #2f5f6b); }
.act-status__src {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #777;
}
/* действует */
.act-status--ok { border-left-color: #3c7d4a; background: #eef6f0; }
/* действует, но скоро меняется или есть оговорка */
.act-status--warn { border-left-color: var(--gold, #c9a34a); background: #fdf6e3; }
/* утратил силу */
.act-status--off { border-left-color: #8e2a20; background: #fbefed; }
/* справочный документ без статуса нормы */
.act-status--ref { border-left-color: #558996; background: #eef4f6; }

/* Ссылка под статусом на блок «Что изменилось» */
.act-changes-link { margin: -4px 0 18px; }
.act-changes-link a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #e5d3a1;
  border-radius: 4px;
  background: #fdf6e3;
  color: #7a5c14;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}
.act-changes-link a::after { content: " ↓"; }
.act-changes-link a:hover,
.act-changes-link a:focus-visible { background: #f8ecc8; color: #5e470f; }
.act-changes-link a:focus-visible { outline: 2px solid var(--gold, #c9a34a); outline-offset: 2px; }

/* Блок «Что изменилось по сравнению с прежней редакцией» — выделен цветом */
.doc-section.act-changes {
  padding: 18px 22px;
  border: 1px solid #e5d3a1;
  border-left: 4px solid var(--gold, #c9a34a);
  border-radius: 0 4px 4px 0;
  background: #fffaf0;
  scroll-margin-top: 100px;
}
.doc-section.act-changes > h2 { margin-top: 0; }
.doc-section.act-changes table.table-doc { background: #fff; }

/* Список изменений и дополнительных ссылок внутри карточки «Официальный текст» */
.download-card .info { flex: 1 1 320px; }
.act-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
  color: #666;
}
.act-links li { margin: 0 0 4px; }
.act-links a { color: #558996; text-decoration: none; }
.act-links a:hover { color: var(--teal-dark, #2f5f6b); text-decoration: underline; }

/* Страница-список /acts/: группы документов */
.acts-group { margin-bottom: 24px; }
.acts-group ul { list-style: none; margin: 10px 0 0; padding: 0; }
.acts-group li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line, #ddd);
  line-height: 1.45;
}
.acts-group li:last-child { border-bottom: 0; }
.acts-group a { color: #558996; text-decoration: none; }
.acts-group a:hover { color: var(--teal-dark, #2f5f6b); text-decoration: underline; }
.acts-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  vertical-align: 1px;
  background: #eef6f0;
  color: #3c7d4a;
}
.acts-tag--off { background: #fbefed; color: #8e2a20; }
.acts-tag--new { background: #fdf6e3; color: #8a6a1f; }
.acts-group a.acts-tag--changes { background: #fdf6e3; color: #7a5c14; }
.acts-group a.acts-tag--changes:hover { background: #f8ecc8; color: #5e470f; text-decoration: none; }

@media (max-width: 600px) {
  .btn-download { width: 100%; justify-content: center; }
  .act-status { padding: 10px 14px; font-size: 14px; }
  .act-changes-link a { display: block; font-size: 14px; }
  .doc-section.act-changes { padding: 14px 12px; }
  /* широкие таблицы прокручиваются внутри себя, а не вместе со страницей */
  .doc-section table.table-doc {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table.table-doc th, table.table-doc td,
  table.table-doc tr:first-child > *, table.table-doc td:first-child { padding: 6px 8px; font-size: 13px; }
  /* реквизиты «ключ — значение» (.kv) в одну колонку */
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .kv dd { overflow-wrap: anywhere; }
}
