/* Evolution CMS: контент Joomla + упрощённые страницы статей */

.article-layout.article-layout--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.article-layout.article-layout--single .article-prose {
  grid-column: 1;
}

.article-prose img {
  max-width: 100%;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 1.75rem auto;
}

.article-prose p[style*="text-align: center"] img,
.article-prose img[align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.article-prose table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
}

.article-prose td,
.article-prose th {
  max-width: 100%;
}

.related-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.pagination span {
  color: var(--muted-foreground, #7a5f68);
}

/* Логотип в подвале — как в шапке */
.footer-brand-logo {
  display: inline-block;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-brand-logo span {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Модальное окно «Написать редакции» */
.editor-modal {
  border: none;
  padding: 0;
  max-width: min(440px, calc(100vw - 32px));
  width: 100%;
  background: transparent;
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  margin: 0;
  transform: translate(-50%, -50%);
}

.editor-modal::backdrop {
  background: rgb(45 18 28 / 0.55);
}

.editor-modal-panel {
  background: var(--background, #fffaf8);
  border: 1px solid var(--border, #ead9df);
  box-shadow: 0 24px 60px rgb(45 18 28 / 0.18);
  padding: 28px 28px 24px;
}

.editor-modal-panel h2 {
  margin: 0 0 6px;
  font-family: Cormorant Garamond, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
}

.editor-modal-panel > p {
  margin: 0 0 20px;
  color: var(--muted-foreground, #7a5f68);
  font-size: 13px;
  line-height: 1.45;
}

.editor-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editor-modal-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground, #7a5f68);
}

.editor-modal-form input,
.editor-modal-form textarea {
  border: 1px solid var(--border, #ead9df);
  background: #fff;
  padding: 11px 12px;
  font: 400 14px/1.4 Manrope, sans-serif;
  color: var(--foreground, #2d121c);
  border-radius: 2px;
}

.editor-modal-form textarea {
  min-height: 120px;
  resize: vertical;
}

.editor-modal-form input:invalid,
.editor-modal-form textarea:invalid {
  border-color: var(--primary, #9b2d5a);
}

.editor-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.editor-modal-actions button {
  border: none;
  cursor: pointer;
  font: 600 11px/1 Manrope, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
}

.editor-modal-cancel {
  background: transparent;
  color: var(--muted-foreground, #7a5f68);
}

.editor-modal-submit {
  background: var(--primary, #9b2d5a);
  color: #fff;
}

.editor-modal-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted-foreground, #7a5f68);
  min-height: 1.2em;
}

.editor-modal-note.is-error {
  color: #b42318;
}

.editor-modal-note.is-ok {
  color: var(--primary, #9b2d5a);
}

.topline .js-open-editor-modal,
.footer .js-open-editor-modal {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.topline .js-open-editor-modal {
  opacity: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.topline .js-open-editor-modal:hover,
.footer .js-open-editor-modal:hover {
  opacity: 0.85;
}

.footer .js-open-editor-modal {
  display: block;
  text-align: left;
  text-decoration: none;
  margin: 0;
  color: var(--muted-foreground, #7a5f68);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: normal;
  text-transform: none;
  opacity: 1;
}

.footer .js-open-editor-modal:hover {
  color: var(--primary, #9b2d5a);
}
