/* WordPress / plugin compatibility */

.mw_wp_form .form-row.has-error .form-input,
.mw_wp_form .form-row.has-error .form-select,
.mw_wp_form .form-row.has-error .form-textarea {
  border-color: rgba(196, 92, 92, 0.65);
  background: rgba(196, 92, 92, 0.03);
}

.mw_wp_form .error,
.mw_wp_form .js-field-error {
  display: block !important;
  margin-top: 8px;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #c45c5c;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.mw_wp_form .form-row .error + .error,
.mw_wp_form .form-row .js-field-error + .error {
  margin-top: 4px;
}

.mw_wp_form input.btn-gold,
.mw_wp_form button.btn-gold {
  appearance: none;
  border: none;
  font: inherit;
}

.mw_wp_form .form-submit input.btn-gold {
  cursor: pointer;
}

.mw_wp_form .mwform-checkbox-field,
.mw_wp_form .mwform-radio-field {
  margin-top: 8px;
}

/* Complete message reuse */
.mw_wp_form .js-form-message {
  display: block;
}

.mw_wp_form_send_error {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: rgba(196, 92, 92, 0.08);
  border: 1px solid rgba(196, 92, 92, 0.35);
  color: #8a3a3a;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ----- News archive ----- */
.news-archive-section {
  background: var(--white, #fff);
  padding-bottom: 40px;
}

.news-pagination {
  max-width: 840px;
  margin: 56px auto 0;
}

.news-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-pagination .page-numbers li {
  margin: 0;
  padding: 0;
}

.news-pagination a.page-numbers,
.news-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(200, 184, 152, 0.45);
  color: #2a2826;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.news-pagination a.page-numbers:hover {
  border-color: #b89a6a;
  color: #b89a6a;
}

.news-pagination span.page-numbers.current {
  background: #2a2826;
  border-color: #2a2826;
  color: #fff;
}

.news-pagination span.page-numbers.dots {
  border: none;
  min-width: auto;
  height: auto;
  color: #b8b4ac;
}

/* ----- News single ----- */
.news-single-section {
  background: var(--white, #fff);
  padding: 0 0 40px;
}

.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

.news-single {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 0 24px;
}

.news-single__nav {
  max-width: 840px;
  margin: 48px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(200, 184, 152, 0.28);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.news-single__nav a {
  text-decoration: none;
  color: inherit;
}

.news-single__nav-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #b89a6a;
  margin-bottom: 6px;
}

.news-single__nav-title {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: #2a2826;
  transition: color 0.25s;
}

.news-single__nav a:hover .news-single__nav-title {
  color: #b89a6a;
}

.news-single__nav-next {
  text-align: right;
}

.news-single__nav-back {
  text-align: center;
  padding-top: 4px;
}

@media (max-width: 640px) {
  .news-single__nav {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .news-single__nav-next {
    text-align: left;
  }

  .news-single__nav-back {
    order: -1;
  }
}

/* ----- Editor content (WYSIWYG / block editor output) ----- */
.entry-content {
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #4a4844;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #2a2826;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 2.2em 0 0.75em;
}

.entry-content h1 { font-size: 1.55rem; }
.entry-content h2 { font-size: 1.35rem; }
.entry-content h3 { font-size: 1.15rem; }
.entry-content h4 { font-size: 1.02rem; }
.entry-content h5,
.entry-content h6 { font-size: 0.95rem; }

.entry-content p {
  margin: 0 0 1.4em;
}

.entry-content a {
  color: #b89a6a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  opacity: 0.85;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em;
  padding: 0 0 0 1.4em;
}

.entry-content li {
  margin-bottom: 0.45em;
}

.entry-content li > ul,
.entry-content li > ol {
  margin: 0.4em 0 0.6em;
}

.entry-content blockquote {
  margin: 0 0 1.6em;
  padding: 16px 20px;
  border-left: 3px solid #b89a6a;
  background: rgba(184, 154, 106, 0.06);
  color: #2a2826;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid rgba(200, 184, 152, 0.45);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: rgba(184, 154, 106, 0.08);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #2a2826;
  white-space: nowrap;
}

.entry-content mark {
  background: rgba(184, 154, 106, 0.28);
  color: inherit;
  padding: 0 0.2em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.4em;
}

.entry-content figure {
  margin: 0 0 1.6em;
}

.entry-content figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #b8b4ac;
  text-align: center;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid rgba(200, 184, 152, 0.35);
  margin: 2.4em 0;
}

.entry-content pre,
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.entry-content pre {
  overflow: auto;
  padding: 16px 18px;
  background: #f7f5f1;
  margin: 0 0 1.4em;
}

.entry-content .alignleft {
  float: left;
  margin: 0 1.4em 1em 0;
}

.entry-content .alignright {
  float: right;
  margin: 0 0 1em 1.4em;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content .wp-caption {
  max-width: 100%;
}

@media (max-width: 640px) {
  .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
