/* Сокровенное сказание монголов — мини-раздел (monuments/secret_history*.html) */
.shm-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 20px; padding: 10px; background: bisque; border: 1px solid #AAA; border-radius: 15px; list-style: none; }
.shm-nav a { display: inline-block; padding: 4px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.shm-nav a.current { background: #D2691E; color: #fff; }
.shm-lead { font-size: 16px; line-height: 1.5; }
.shm-lead p { margin: 0 0 10px; }
.shm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.shm-tile { display: block; border: 1px solid rgb(238, 138, 8); border-radius: 10px; background: #fff8ec; padding: 10px 12px; }
.shm-tile b { display: block; font-size: 16px; margin-bottom: 4px; }
.shm-tile span { color: #444; font-size: 14px; }
.shm-facts { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 15px; }
.shm-facts th, .shm-facts td { border-bottom: 1px solid #e3c9a0; padding: 5px 8px; text-align: left; vertical-align: top; }
.shm-facts th { width: 28%; font-weight: 600; }
.shm-list { list-style: none; padding: 0; margin: 0; }
.shm-list li { margin: 0 0 9px; padding-left: 14px; text-indent: -14px; line-height: 1.4; font-size: 15px; }
.shm-list li .au { font-weight: 600; }
.shm-list li .ti { font-style: italic; }
.shm-list li .meta { color: #555; }
.shm-dl { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid #D2691E; border-radius: 6px; font-size: 12px; white-space: nowrap; text-indent: 0; }
.shm-tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 6px; background: #f1e2c8; color: #5a3a10; font-size: 11px; white-space: nowrap; text-indent: 0; }
.shm-note { color: #6b4a1e; font-size: 13px; }
.shm-h3 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; border-bottom: 1px solid #e3c9a0; padding-bottom: 3px; }
.shm-count { color: #777; font-weight: 400; font-size: 13px; }
.shm-filters { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: bisque; border: 1px solid #AAA; border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; font-size: 14px; }
.shm-filters input[type=search] { flex: 1 1 220px; min-width: 160px; padding: 4px 8px; border: 1px solid #c9a46b; border-radius: 6px; }
.shm-filters select, .shm-filters input[type=number] { padding: 3px 4px; border: 1px solid #c9a46b; border-radius: 6px; }
.shm-filters input[type=number] { width: 70px; }
.shm-toc { columns: 2 260px; font-size: 14px; margin: 0 0 12px; }
.shm-toc a { display: block; }
.shm-abbr { columns: 2 320px; font-size: 13px; }
.shm-abbr div { break-inside: avoid; margin-bottom: 3px; }
.shm-hidden { display: none !important; }
details.shm-more summary { cursor: pointer; font-weight: 600; margin: 8px 0; }
@media (max-width: 700px) {
  .shm-facts th { width: 40%; }
  .text_with_images { display: block; }
  .text_with_images img { display: none; }
}
.shm-flag { vertical-align: middle; margin-right: 6px; border: 1px solid #ccc; object-fit: cover; }
/* заголовки разделов — крупнее и другим цветом, чтобы не сливались с фамилиями авторов */
.shm-h2 { font-size: 20px; line-height: 1.3; font-weight: 700; color: #8B3A0F; border-bottom: 2px solid #D2691E; padding-bottom: 4px; margin: 2px 0 12px; }
.shm-h2 .shm-count { font-size: 14px; color: #8a6a4a; }
.shm-h2 .shm-flag { margin-bottom: 3px; }
.shm-list li .au { font-weight: 600; color: #222; }
