/* Связка серверной темы с CSS прототипа ZI: legacy-контент, крошки, элементы без прототипа. */

.zi-preview-banner {
  position: relative;
  z-index: 1000;
  padding: 8px 16px;
  border-bottom: 1px solid #fde68a;
  background: #fef3c7;
  color: #78350f;
  font-size: var(--zi-font-size-14, 14px);
  font-weight: 600;
  text-align: center;
}

.zi-breadcrumbs { margin: 0 0 var(--zi-space-12); color: var(--zi-color-text-default-secondary); font-size: 12px; line-height: 16px; }
.zi-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.zi-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--zi-color-border-neutral-default); }
.zi-breadcrumbs a { color: var(--zi-color-text-default-secondary); text-decoration: none; }
.zi-breadcrumbs a:hover:where(html[data-hover-enabled] *) { color: var(--blue); }
.zi-breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.zi-breadcrumbs a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Контент старых шаблонов и WP-импорта — в белой панели ленты. */
.zi-legacy-panel {
  min-width: 0;
  margin: 0 0 var(--zi-gap-section, 20px);
  padding: var(--zi-inset-panel, 20px);
  border-radius: var(--zi-radius-panel, 25px);
  background: var(--panel, #fff);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.zi-legacy-panel .site-wrap { max-width: none; padding-left: 0; padding-right: 0; }
.zi-legacy-panel > :is(article, section, div).bg-white,
.zi-legacy-panel :is(.bg-mist, .bg-mist\/70) { background: transparent; }
.zi-legacy-panel > :first-child { padding-top: 0 !important; }
.zi-legacy-panel > :last-child { padding-bottom: 0 !important; }
.zi-legacy-panel h1 { color: var(--ink); font: var(--zi-type-article-title, 600 28px/1.1 Montserrat, sans-serif); letter-spacing: 0; }
@media (min-width: 1024px) { .zi-legacy-panel h1 { font-size: 44px; } }
.zi-legacy-panel :is(h2, h3) { color: var(--ink); }
.zi-legacy-panel a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.footer-imprint { margin-top: var(--zi-space-20); color: var(--zi-color-text-default-secondary); font-size: 12px; line-height: 18px; }
.footer-imprint p { margin: 0 0 4px; }
.footer-imprint a { color: inherit; }

.card-photo--empty { display: block; width: 100%; height: 100%; min-height: 64px; background: var(--zi-color-background-default-secondary); }

/* Пагинация серверных списков ZI. */
.zi-more { display: flex; justify-content: center; margin: var(--zi-gap-section, 20px) 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Пагинация архивов (телеархив без JS) */
.tv-more { text-align: center; text-decoration: none; }
.zi-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; color: var(--ink, #003b5d); font-size: 14px; font-weight: 500; }
.zi-pagination a { color: var(--blue, #137db8); text-decoration: none; }
.zi-pagination a:hover { text-decoration: underline; }
[data-tv-results][aria-busy="true"] { opacity: .55; transition: opacity .2s; }

/* «Другие выпуски» / «Читайте также» под материалом */
.zi-related { margin-top: var(--zi-gap-section, 20px); }
.zi-related__title { margin: 0 0 var(--zi-space-15, 15px); color: var(--ink, #003b5d); font-size: 22px; line-height: 1.25; font-weight: 700; }
.zi-related__action { margin-top: var(--zi-space-15, 15px); }
@media (min-width: 1024px) { .zi-related__title { font-size: 28px; } }
