/* Стили для документов Outline - максимальное соответствие оригиналу */

/* Скрываем заголовок страницы WordPress */
.page-title,
.entry-title,
h1.page-title,
h1.entry-title,
.page-header h1,
.entry-header h1 {
  display: none !important;
}

/* Основные стили документа */
.outline-document {
  max-width: 800px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: #ffffff;
}

.outline-document__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 2rem 0;
  padding: 0;
  color: #1a1a1a;
  line-height: 1.2;
  border: none;
}

.outline-document__content {
  font-size: 16px;
  line-height: 1.7;
  color: #2c3e50;
}

/* Заголовки */
.outline-document__content h1,
.outline-document__content h2,
.outline-document__content h3,
.outline-document__content h4,
.outline-document__content h5,
.outline-document__content h6 {
  font-weight: 600;
  color: #1a1a1a;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.outline-document__content h1 {
  font-size: 1.8rem;
  margin-top: 3rem;
}

.outline-document__content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.outline-document__content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.outline-document__content h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

/* Параграфы */
.outline-document__content p {
  margin: 0 0 1.2rem 0;
  line-height: 1.7;
}

/* Списки */
.outline-document__content ul,
.outline-document__content ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 1.5rem;
}

.outline-document__content li {
  margin: 0.3rem 0;
  line-height: 1.6;
}

/* Цитаты */
.outline-document__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #3498db;
  background: #f8f9fa;
  font-style: italic;
  color: #555;
  border-radius: 0 4px 4px 0;
}

.outline-document__content blockquote p {
  margin: 0;
}

/* Код */
.outline-document__content code {
  background: #f1f3f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  color: #e74c3c;
}

.outline-document__content pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid #e9ecef;
  margin: 1.5rem 0;
}

.outline-document__content pre code {
  background: none;
  padding: 0;
  color: #2c3e50;
}

/* Горизонтальные линии */
.outline-document__content hr {
  border: none;
  height: 1px;
  background: #e9ecef;
  margin: 2rem 0;
}

/* Ссылки */
.outline-document__content a {
  color: #3498db;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.outline-document__content a:hover {
  border-bottom-color: #3498db;
}

/* Стили для кастомных блоков Outline */
.notice-block {
  display: flex;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #f8f9fa;
  border-left: 4px solid;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notice-block .icon {
  flex-shrink: 0;
  margin-right: 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.notice-block .content {
  flex: 1;
  line-height: 1.6;
}

.notice-block .content p {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.notice-block .content p:last-child {
  margin-bottom: 0;
}

.notice-block .content a {
  color: inherit;
  text-decoration: underline;
  border-bottom: none;
}

.notice-block .content a:hover {
  text-decoration: none;
}

/* Типы блоков */
.notice-block.info {
  border-left-color: #3498db;
  background: #ebf8ff;
}

.notice-block.warning {
  border-left-color: #f39c12;
  background: #fff8e1;
}

.notice-block.error {
  border-left-color: #e74c3c;
  background: #fdf2f2;
}

.notice-block.success {
  border-left-color: #27ae60;
  background: #f0fff4;
}

.notice-block.note {
  border-left-color: #95a5a6;
  background: #f8f9fa;
}

.notice-block.tip {
  border-left-color: #9b59b6;
  background: #f8f4ff;
}

/* Изображения */
.outline-document__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  display: block;
}

/* Таблицы */
.outline-document__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.outline-document__content th,
.outline-document__content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.outline-document__content th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

/* Адаптивность */
@media (max-width: 768px) {
  .outline-document {
    padding: 0 1rem;
  }

  .outline-document__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .outline-document__content {
    font-size: 15px;
  }

  .notice-block {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
  }

  .notice-block .icon {
    font-size: 1.1rem;
    margin-right: 0.5rem;
  }

  .outline-document__content h1 {
    font-size: 1.6rem;
  }

  .outline-document__content h2 {
    font-size: 1.4rem;
  }

  .outline-document__content h3 {
    font-size: 1.2rem;
  }
}

/* Дополнительные улучшения для соответствия Outline */
.outline-document__content strong {
  font-weight: 600;
  color: #1a1a1a;
}

.outline-document__content em {
  font-style: italic;
  color: #555;
}

/* Улучшенные отступы для вложенных элементов */
.outline-document__content ul ul,
.outline-document__content ol ol,
.outline-document__content ul ol,
.outline-document__content ol ul {
  margin: 0.5rem 0;
}

/* Стили для выделенного текста */
.outline-document__content mark {
  background: #fff3cd;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
}