/* Правки статики chemistry.org.ua поверх CSS легасі. Генератор (static-site.mjs --force) цей файл не перезаписує. */

/* підвал: копірайт + підпис студії замість таблиці лічильників */
.zina-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 10px 0; font-size: 12px; }
.zina-footer a { text-decoration: underline; }

/* результати пошуку реакцій (zina-search.js) */
.zina-search { columns: 2 260px; margin: 0 0 1.5em; padding-left: 1.2em; }
.zina-search li { margin: 0 0 .35em; break-inside: avoid; }
.zina-search-empty { margin: 1em 0; }

/* посилання на сторінки, яких нема в архіві */
.zina-missing { color: inherit; }

/* вузькі екрани: схеми реакцій ширші за екран — гортаються, а не ламають макет */
img { max-width: 100%; height: auto; }
@media (max-width: 760px) {
  .field-type-filefield, .content table { overflow-x: auto; display: block; }
}

/* адаптивний шар (легасі 2009 без viewport): на вузьких екранах колонки одна під одною, текст першим */
@media (max-width: 760px) {
  body, .row, .full-width { min-width: 0 !important; }
  #main-inner { display: flex; flex-direction: column; }
  #main-group, #sidebar-first { width: 100% !important; float: none !important; margin-left: 0 !important; }
  #main-group { order: -1; }
  #sidebar-first { margin-top: 1.5em; }
  #primary-menu { position: static !important; float: none !important; text-align: right; }
  .content table { overflow-x: auto; display: block; max-width: 100%; }
  .zina-search { columns: 1; }
}
