/* Метакнига — темна атмосферна тема для всього сайту */
body {
  font-family: Georgia, 'Times New Roman', serif;
  max-width: 780px;
  margin: 0 auto;
  padding: 2em 1.5em 6em;
  line-height: 1.75;
  color: #dedad0;
  background: #0f0e13;
}
h1, h2, h3, h4, h5, h6 { font-family: Georgia, serif; color: #f0ead8; }
h1 { font-size: 2em; border-bottom: 2px solid #4a4358; padding-bottom: 0.3em; }
h2 { font-size: 1.5em; margin-top: 2.5em; border-bottom: 1px solid #34303f; padding-bottom: 0.2em; }
h3 { font-size: 1.25em; margin-top: 2em; color: #e8d9b0; }
h4 { font-size: 1.05em; margin-top: 1.5em; color: #c9b98a; }
p { margin: 0.9em 0; }
p.verse-line { margin: 0.35em 0; }
.subtitle { font-style: italic; color: #a39ab0; margin-top: -0.5em; }
.author-meta { color: #a39ab0; font-size: 0.95em; }
a { color: #b48ee0; }
a:hover { color: #d4b8ff; }
blockquote {
  border-left: 3px solid #6b5a8a;
  margin: 1em 0;
  padding: 0.3em 1.2em;
  color: #cfc9dd;
  font-style: italic;
  background: #1a1822;
}
.meta-glyph {
  font-weight: 600;
  color: #e0a44c;
  cursor: help;
  border-bottom: 1px dotted #e0a44c;
  font-family: Georgia, 'Segoe UI Symbol', 'Segoe UI Historic', 'Apple Symbols', 'Noto Sans Symbols', 'Noto Sans Symbols2', 'DejaVu Sans', sans-serif;
}
/* Кожен гліф Візуального словника — свій колір */
.meta-glyph[title="Нерв думки"] { color: #8fb8e8; border-color: #8fb8e8; }
.meta-glyph[title="Хвиля синестезії"] { color: #4ecdc4; border-color: #4ecdc4; }
.meta-glyph[title="Театр свідомості"] { color: #c99ee8; border-color: #c99ee8; }
.meta-glyph[title="Сублімація"] { color: #e0708a; border-color: #e0708a; }
.meta-glyph[title="Гравітаційне дзеркало"] { color: #a8c0e0; border-color: #a8c0e0; }
.meta-glyph[title="Філософська інтимність"] { color: #e0a44c; border-color: #e0a44c; }
.meta-glyph[title="Кадр із майбутнього фільму"] { color: #5cc9f5; border-color: #5cc9f5; }
.meta-glyph[title="Вічне повернення"] { color: #8ecf8e; border-color: #8ecf8e; }
.meta-glyph[title="Порожнеча з сенсом"] { color: #9d8fc9; border-color: #9d8fc9; }
.semantic-void {
  text-align: center;
  font-size: 1.8em;
  color: #6b6578;
  margin: 1.5em 0;
  font-family: Georgia, 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', 'DejaVu Sans', sans-serif;
}
.cross-links {
  font-size: 0.95em;
  color: #cfc9dd;
  border: 1px solid #4a4358;
  background: #1c1a24;
  border-radius: 6px;
  margin-top: 1.8em;
  padding: 0.7em 1em;
}
.cross-links::before { content: "↔ Перейти: "; font-weight: 600; color: #e0a44c; }
.cross-links a {
  color: #d4b8ff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.15em 0.5em;
  border: 1px solid #4a4358;
  border-radius: 14px;
  background: #262331;
  margin: 0 0.2em;
  display: inline-block;
}
.cross-links a:hover { background: #b48ee0; color: #0f0e13; border-color: #b48ee0; }
.editor-note { color: #d99b5c; font-size: 0.9em; }
.editor-flag { color: #e0768a; font-size: 0.85em; }
.essence, .final-formula, .lecture-conclusion, .lecture-goal, .analysis-conclusion {
  background: #1c1a24;
  border-left: 3px solid #b48ee0;
  padding: 0.6em 1em;
  margin: 1em 0;
}
.provision-number { font-weight: normal; color: #8a8496; font-size: 0.85em; }
.codex-articles, .codex-articles-formal { padding-left: 1.2em; }
.article-verdict { font-style: italic; color: #e0a44c; }
.navigation-questions, .thesis-inserts, .epigraph-collection, .chapter-aphorisms { margin: 1em 0; }
.omitted-chapter { color: #6b6578; font-style: italic; }
.stub-notice { background: #1c1a24; padding: 0.6em 1em; border-radius: 4px; }
nav.epub-toc ul { line-height: 1.9; }
table.status { border-collapse: collapse; width: 100%; }
table.status td, table.status th { border: 1px solid #4a4358; padding: 0.4em 0.7em; text-align: left; }
.audio-companion { margin-top: 1.2em; padding: 0.8em 1em; background: #1c1a24; border-left: 3px solid #e0a44c; border-radius: 4px; }
.audio-companion h4 { margin-top: 0; color: #e0a44c; }
.audio-meta { font-size: 1.05em; }
.press-mentions { margin-top: 1.2em; }
.press-mentions h4 { color: #c9b98a; }
.press-mentions ul { padding-left: 1.2em; }
.press-source { color: #8a8496; font-size: 0.85em; font-style: italic; }
.site-footer { margin-top: 3em; padding-top: 1em; border-top: 1px solid #34303f; font-size: 0.85em; color: #8a8496; text-align: center; }
.site-footer a { color: #b48ee0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0.4em 0; }
.footer-glyphs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9em;
  margin-bottom: 1.1em !important;
  font-family: Georgia, 'Segoe UI Symbol', 'Apple Symbols', 'Noto Sans Symbols', 'DejaVu Sans', sans-serif;
}
.footer-glyphs span {
  font-size: 1.35em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: #1c1a24;
  cursor: help;
}
.footer-glyphs span:nth-child(1) { color: #8fb8e8; }
.footer-glyphs span:nth-child(2) { color: #4ecdc4; }
.footer-glyphs span:nth-child(3) { color: #c99ee8; }
.footer-glyphs span:nth-child(4) { color: #e0708a; }
.footer-glyphs span:nth-child(5) { color: #a8c0e0; }
.footer-glyphs span:nth-child(6) { color: #e0a44c; }
.footer-glyphs span:nth-child(7) { color: #5cc9f5; }
.footer-glyphs span:nth-child(8) { color: #8ecf8e; }
.footer-glyphs span:nth-child(9) { color: #9d8fc9; }
.footer-institute { font-size: 0.9em; color: #6b6578; }
.institute-social a { color: #b48ee0; }
.citation-block { background: #1c1a24 !important; color: #dedad0; }
.citation-block pre { background: #262331 !important; color: #cfc9dd; }
.audio-platforms a { color: #dedad0 !important; border-color: #4a4358 !important; }
.audio-platforms a:hover { background: #b48ee0 !important; color: #0f0e13 !important; }

/* Наукове цитування — Theoretical Framework (footer) */
.footer-citation { font-size: 0.78em; color: #6b6578; margin-top: 0.6em; line-height: 1.5; }
.footer-citation .citation-label { color: #8a8496; font-weight: bold; }
.footer-citation a { color: #9d8fc9; }

/* Наукове підґрунтя — розгорнутий бібліографічний блок (Про Автора) */
.theoretical-framework { margin-top: 1.5em; padding: 1em 1.2em; border: 1px solid #34303f; border-radius: 8px; background: #16141c; }
.theoretical-framework h4 { margin-top: 0; }
.theoretical-framework ol { padding-left: 1.3em; margin: 0.6em 0 0; }
.theoretical-framework li { margin: 0.6em 0; font-size: 0.95em; color: #c9c3d4; }
.theoretical-framework .res-type { font-size: 0.82em; color: #8a8496; font-style: italic; }
