/* =========================================================================
   Общий стиль страниц с текстом: статья блога, фотоальбом, страница видео.
   /assets/css/page-text.css

   Здесь одно место для крошек, заголовка страницы, даты, текста, ссылок, списков,
   подписей к фото и таблиц (Иван, 15.11.2026: «единый стиль везде»).
   Раньше эти правила жили копиями в single.css, photogallery.css и video.css,
   и страницы расходились. Свое у каждого раздела осталось в его файле:
   single.css (колонка статьи, «Коротко», содержание, комментарии, похожие статьи),
   photogallery.css (сетка фото), video.css (плеер).

   Подключает inc/page-text.php, последним из стилей страницы.
   Страница тура сюда пока не подключена.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Хлебные крошки: 14 px, сразу под меню, отступы 12 px (20 px от 900 px)
   ------------------------------------------------------------------------- */
.season-single-post .breadcrumbs,
.photogallery-single .breadcrumbs,
.videogallery-single .breadcrumbs {
  margin-top: 0;
  margin-bottom: 0;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.45;
}

/* -------------------------------------------------------------------------
   Заголовок страницы
   ------------------------------------------------------------------------- */
.season-single-header__title,
.photogallery-single .pg-header h1,
.videogallery-single .vg-single-header h1 {
  margin: 6px 0 12px;
  font-size: 32px;
  line-height: 1.12;
  /* Жирность 500, как было на сайте (Иван: «менее жирным»). */
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #16140f;
  text-wrap: balance;
}

/* -------------------------------------------------------------------------
   Строка под заголовком: дата (в статье еще автор и время чтения)
   ------------------------------------------------------------------------- */
.season-single-header__meta,
.photogallery-single .pg-date,
.videogallery-single .vg-date {
  font-size: 14px;
  line-height: 1.5;
  /* Черная: серую было почти не видно (Иван). */
  color: #000000;
}

/* От даты до фото или видео 18 px (24 px от 600 px). В статье этот отступ
   задает само главное фото в single.css, в альбоме дата, в видео шапка. */
.photogallery-single .pg-date {
  display: block;
  margin: 0 0 18px;
}

.videogallery-single .vg-single-header {
  margin-bottom: 18px;
}

.videogallery-single .vg-date {
  display: block;
}

/* У плеера отступ 24 px сверху записан прямо в разметке (inc/fragment-manager.php),
   обычным правилом его не перебить, поэтому !important. Без этого на телефоне
   от даты до видео выходило 24 px вместо 18, как в статье. */
.videogallery-single .vg-single-video > :first-child {
  margin-top: 0 !important;
}

/* Страница видео начиналась на 32 px ниже меню. */
.videogallery-single {
  padding-top: 0;
}

/* -------------------------------------------------------------------------
   Текст
   ------------------------------------------------------------------------- */
.season-single-content,
.photogallery-single .pg-full-content,
.videogallery-single .vg-single-content {
  font-size: 17px;
  line-height: 1.65;
  color: #000000;
}

/* В альбоме и видео описание идет колонкой 760 px по центру, как текст статьи
   (в статье колонку держит .season-single-wrapper в single.css). */
.photogallery-single .pg-full-content,
.videogallery-single .vg-single-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.season-single-content p,
.photogallery-single .pg-full-content p,
.videogallery-single .vg-single-content p {
  margin: 0 0 18px;
  text-wrap: pretty;
}

/* Заголовки текста. Заголовки внутри витрин и виджетов не трогаем. */
.season-single-content > h2,
.photogallery-single .pg-full-content > h2,
.videogallery-single .vg-single-content > h2,
.season-single-content h2.wp-block-heading,
.photogallery-single .pg-full-content h2.wp-block-heading,
.videogallery-single .vg-single-content h2.wp-block-heading {
  margin: 44px 0 14px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #16140f;
  text-wrap: balance;
  scroll-margin-top: 16px;
}

.season-single-content > h3,
.photogallery-single .pg-full-content > h3,
.videogallery-single .vg-single-content > h3,
.season-single-content h3.wp-block-heading,
.photogallery-single .pg-full-content h3.wp-block-heading,
.videogallery-single .vg-single-content h3.wp-block-heading {
  margin: 30px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #16140f;
  scroll-margin-top: 16px;
}

.photogallery-single .pg-full-content > :first-child,
.videogallery-single .vg-single-content > :first-child {
  margin-top: 0;
}

/* Ссылки: синий текст и тонкая бледно-голубая линия, при наведении линия плотная
   (выбор Ивана после оранжевых и черных вариантов). */
.season-single-content p a,
.photogallery-single .pg-full-content p a,
.videogallery-single .vg-single-content p a,
.season-single-content li a,
.photogallery-single .pg-full-content li a,
.videogallery-single .vg-single-content li a,
.season-single-content td a,
.photogallery-single .pg-full-content td a,
.videogallery-single .vg-single-content td a,
.season-single-content figcaption a,
.photogallery-single .pg-full-content figcaption a,
.videogallery-single .vg-single-content figcaption a {
  color: #1d5bbf;
  text-decoration: underline;
  text-decoration-color: rgba(29, 91, 191, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.season-single-content p a:hover,
.photogallery-single .pg-full-content p a:hover,
.videogallery-single .vg-single-content p a:hover,
.season-single-content li a:hover,
.photogallery-single .pg-full-content li a:hover,
.videogallery-single .vg-single-content li a:hover,
.season-single-content td a:hover,
.photogallery-single .pg-full-content td a:hover,
.videogallery-single .vg-single-content td a:hover,
.season-single-content figcaption a:hover,
.photogallery-single .pg-full-content figcaption a:hover,
.videogallery-single .vg-single-content figcaption a:hover {
  color: #1d5bbf;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Списки: оранжевая точка. */
.season-single-content > ul,
.photogallery-single .pg-full-content > ul,
.videogallery-single .vg-single-content > ul,
.season-single-content > ol,
.photogallery-single .pg-full-content > ol,
.videogallery-single .vg-single-content > ol,
.season-single-content ul.wp-block-list,
.photogallery-single .pg-full-content ul.wp-block-list,
.videogallery-single .vg-single-content ul.wp-block-list,
.season-single-content ol.wp-block-list,
.photogallery-single .pg-full-content ol.wp-block-list,
.videogallery-single .vg-single-content ol.wp-block-list {
  margin: 0 0 18px;
  padding: 0;
}

.season-single-content > ol,
.photogallery-single .pg-full-content > ol,
.videogallery-single .vg-single-content > ol,
.season-single-content ol.wp-block-list,
.photogallery-single .pg-full-content ol.wp-block-list,
.videogallery-single .vg-single-content ol.wp-block-list {
  padding-left: 24px;
}

.season-single-content > ul,
.photogallery-single .pg-full-content > ul,
.videogallery-single .vg-single-content > ul,
.season-single-content ul.wp-block-list,
.photogallery-single .pg-full-content ul.wp-block-list,
.videogallery-single .vg-single-content ul.wp-block-list {
  list-style: none;
}

.season-single-content > ul > li,
.photogallery-single .pg-full-content > ul > li,
.videogallery-single .vg-single-content > ul > li,
.season-single-content ul.wp-block-list > li,
.photogallery-single .pg-full-content ul.wp-block-list > li,
.videogallery-single .vg-single-content ul.wp-block-list > li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 24px;
  line-height: 1.55;
}

.season-single-content > ul > li::before,
.photogallery-single .pg-full-content > ul > li::before,
.videogallery-single .vg-single-content > ul > li::before,
.season-single-content ul.wp-block-list > li::before,
.photogallery-single .pg-full-content ul.wp-block-list > li::before,
.videogallery-single .vg-single-content ul.wp-block-list > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e86b18;
}

.season-single-content > ol > li,
.photogallery-single .pg-full-content > ol > li,
.videogallery-single .vg-single-content > ol > li,
.season-single-content ol.wp-block-list > li,
.photogallery-single .pg-full-content ol.wp-block-list > li,
.videogallery-single .vg-single-content ol.wp-block-list > li {
  margin: 0 0 10px;
  line-height: 1.55;
}

.season-single-content li > ul.wp-block-list,
.photogallery-single .pg-full-content li > ul.wp-block-list,
.videogallery-single .vg-single-content li > ul.wp-block-list,
.season-single-content li > ol.wp-block-list,
.photogallery-single .pg-full-content li > ol.wp-block-list,
.videogallery-single .vg-single-content li > ol.wp-block-list {
  margin: 10px 0 0;
}

/* Фото в тексте: прямые углы, подпись серым в 8 px от снимка. */
.season-single-content figure,
.photogallery-single .pg-full-content figure,
.videogallery-single .vg-single-content figure {
  margin: 0 0 16px;
}

.season-single-content figure img,
.photogallery-single .pg-full-content figure img,
.videogallery-single .vg-single-content figure img {
  border-radius: 0;
}

/* Ссылка вокруг фото была строчным блоком: под фото оставался лишний зазор около 9 px. */
.season-single-content .wp-block-image > a,
.photogallery-single .pg-full-content .wp-block-image > a,
.videogallery-single .vg-single-content .wp-block-image > a {
  display: block;
}

.season-single-content figcaption,
.photogallery-single .pg-full-content figcaption,
.videogallery-single .vg-single-content figcaption {
  margin-top: 8px;
  color: #6b6f67;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.season-single-content img,
.photogallery-single .pg-full-content img,
.videogallery-single .vg-single-content img {
  display: block;
  margin-bottom: 0;
}

/* Таблицы: светлые линии. Карточки строк на телефоне есть только в статьях (single.css). */
.season-single-content .wp-block-table,
.photogallery-single .pg-full-content .wp-block-table,
.videogallery-single .vg-single-content .wp-block-table {
  margin: 0 0 18px;
  overflow-x: auto;
}

.season-single-content table,
.photogallery-single .pg-full-content table,
.videogallery-single .vg-single-content table {
  width: 100%;
  border: 1px solid #e7e7e1;
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.45;
  text-align: left;
}

.season-single-content table thead,
.photogallery-single .pg-full-content table thead,
.videogallery-single .vg-single-content table thead {
  border: 0;
}

.season-single-content table th,
.photogallery-single .pg-full-content table th,
.videogallery-single .vg-single-content table th,
.season-single-content table td,
.photogallery-single .pg-full-content table td,
.videogallery-single .vg-single-content table td {
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid #e7e7e1;
  vertical-align: top;
  text-align: left;
}

.season-single-content table > :first-child > tr:first-child > *,
.photogallery-single .pg-full-content table > :first-child > tr:first-child > *,
.videogallery-single .vg-single-content table > :first-child > tr:first-child > * {
  border-top: 0;
}

.season-single-content table thead th,
.photogallery-single .pg-full-content table thead th,
.videogallery-single .vg-single-content table thead th {
  background: #f4f4f4;
  font-size: 14px;
  font-weight: 600;
  color: #464a42;
}

/* -------------------------------------------------------------------------
   600+
   ------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .season-single-header__title,
  .photogallery-single .pg-header h1,
  .videogallery-single .vg-single-header h1 {
    font-size: 40px;
  }

  .season-single-header__meta,
  .photogallery-single .pg-date,
  .videogallery-single .vg-date {
    font-size: 15px;
  }

  .photogallery-single .pg-date {
    margin-bottom: 24px;
  }

  .videogallery-single .vg-single-header {
    margin-bottom: 24px;
  }

  .season-single-content table th,
  .photogallery-single .pg-full-content table th,
  .videogallery-single .vg-single-content table th,
  .season-single-content table td,
  .photogallery-single .pg-full-content table td,
  .videogallery-single .vg-single-content table td {
    padding: 16px 20px;
  }

  .season-single-content table thead th,
  .photogallery-single .pg-full-content table thead th,
  .videogallery-single .vg-single-content table thead th {
    padding: 12px 20px;
  }
}

/* -------------------------------------------------------------------------
   900+
   ------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .season-single-post .breadcrumbs,
  .photogallery-single .breadcrumbs,
  .videogallery-single .breadcrumbs {
    padding: 20px 0;
  }

  .season-single-header__title,
  .photogallery-single .pg-header h1,
  .videogallery-single .vg-single-header h1 {
    margin: 10px 0 16px;
    font-size: 46px;
    line-height: 1.08;
  }

  /* На компьютере текст 18 px, на телефоне и планшете 17 (Иван). */
  .season-single-content,
  .photogallery-single .pg-full-content,
  .videogallery-single .vg-single-content {
    font-size: 18px;
  }

  .season-single-content table,
  .photogallery-single .pg-full-content table,
  .videogallery-single .vg-single-content table {
    font-size: 18px;
  }

  .season-single-content > ul > li::before,
  .photogallery-single .pg-full-content > ul > li::before,
  .videogallery-single .vg-single-content > ul > li::before,
  .season-single-content ul.wp-block-list > li::before,
  .photogallery-single .pg-full-content ul.wp-block-list > li::before,
  .videogallery-single .vg-single-content ul.wp-block-list > li::before {
    top: 10px;
  }

  .season-single-content p,
  .photogallery-single .pg-full-content p,
  .videogallery-single .vg-single-content p {
    margin-bottom: 20px;
  }

  .season-single-content > h2,
  .photogallery-single .pg-full-content > h2,
  .videogallery-single .vg-single-content > h2,
  .season-single-content h2.wp-block-heading,
  .photogallery-single .pg-full-content h2.wp-block-heading,
  .videogallery-single .vg-single-content h2.wp-block-heading {
    margin: 60px 0 18px;
    font-size: 34px;
  }

  .season-single-content > h3,
  .photogallery-single .pg-full-content > h3,
  .videogallery-single .vg-single-content > h3,
  .season-single-content h3.wp-block-heading,
  .photogallery-single .pg-full-content h3.wp-block-heading,
  .videogallery-single .vg-single-content h3.wp-block-heading {
    margin: 40px 0 14px;
    font-size: 24px;
  }

  .season-single-content figure,
  .photogallery-single .pg-full-content figure,
  .videogallery-single .vg-single-content figure {
    margin-bottom: 20px;
  }

  .season-single-content .wp-block-table,
  .photogallery-single .pg-full-content .wp-block-table,
  .videogallery-single .vg-single-content .wp-block-table {
    margin-bottom: 22px;
  }
}
