/* =========================================================
   WordPress-only additions. The original design (style.css)
   is left untouched; this file only styles what WordPress adds:
   editor content, blog listings, pagination, comments, 404.
   ========================================================= */

/* Core accessibility class (same as .sr-only) */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; clip-path: none;
  background: var(--maroon); color: #fff; z-index: 100;
}

/* ---------- Banner for generic pages, posts, blog and 404 ---------- */
.page-hero--page { --hero-pt: 140px; --hero-tmb: 0px; height: auto; min-height: 420px; padding-bottom: 72px; }
.page-hero--page .page-hero__bg { top: 0; height: 100%; }
.page-hero--page .page-hero__lead a { color: var(--maroon); }
@media (max-width: 991px) {
  .page-hero--page { --hero-pt: 120px; min-height: 0; padding-bottom: 56px; }
  .page-hero--page .page-hero__content { padding-top: var(--hero-pt); }
}

/* Optional "Description" paragraph(s) under the banner intro text.
   The banner then grows with its content instead of the fixed 624px. */
.page-hero__desc {
  margin-top: 20px; max-width: var(--desc-max, 560px);
  font-size: 16px; line-height: 26px; letter-spacing: .2px; color: var(--ink-2);
}
.page-hero__desc > * + * { margin-top: 12px; }
.page-hero--has-desc { height: auto; min-height: 624px; padding-bottom: 72px; }
@media (max-width: 991px) {
  .page-hero__desc { margin-top: 16px; }
  .page-hero--has-desc { min-height: 0; padding-bottom: 80px; }
}
@media (max-width: 575px) {
  .page-hero__desc { font-size: 15px; line-height: 24px; }
  .page-hero--has-desc { padding-bottom: 64px; }
}

/* Footer logo: never wider than its column; nexus_logo() sets the width
   that makes it 120px tall (Site Settings → Logos → Footer logo height). */
.footer-logo { max-width: 100%; height: auto; align-self: flex-start; }

/* ---------- Page / post body ---------- */
.wp-body { padding: 72px 0 80px; }
.wp-body--soft { background: var(--soft); }
.wp-body__inner { max-width: 820px; }

.entry-content { font-size: 16px; line-height: 28px; color: #373333; }
.entry-content > * + * { margin-top: 16px; }
.entry-content h2 { font-weight: 500; font-size: 32px; line-height: 44px; color: var(--maroon); margin-top: 40px; }
.entry-content h3 { font-weight: 500; font-size: 22px; line-height: 32px; color: var(--ink); margin-top: 28px; }
.entry-content h4, .entry-content h5, .entry-content h6 { font-weight: 600; font-size: 18px; line-height: 28px; color: var(--ink); margin-top: 24px; }
.entry-content a { color: var(--maroon); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-inline-start: 22px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li::marker { color: var(--maroon); }
.entry-content strong { font-weight: 600; color: var(--ink); }
.entry-content blockquote { padding-inline-start: 20px; border-inline-start: 3px solid var(--maroon); font-style: italic; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--soft); font-size: 14px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); }
.entry-content .wp-block-button__link { background: var(--maroon); color: #fff; text-decoration: none; border-radius: 6px; }

.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

.entry-meta { margin-top: 18px; font-size: 16px; color: var(--ink-2); }
.entry-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.entry-footer a { color: var(--maroon); }
.page-links { margin-top: 32px; }

/* ---------- Blog listing (cards reuse .offer-card) ---------- */
.ws-offers--blog .ws-offers__grid { margin-top: 0; }
.ws-offers--blog .offer-card__title a:hover { color: var(--maroon); }
.ws-offers--blog .offer-card > a:first-child { display: block; width: 100%; margin-bottom: 16px; }
.wp-empty { text-align: center; }
.wp-empty .pill { margin-top: 28px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 6px;
  color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--maroon); color: #fff; }
.pagination .page-numbers.dots { box-shadow: none; }
[dir="rtl"] .pagination .prev span[aria-hidden], [dir="rtl"] .pagination .next span[aria-hidden] { display: inline-block; transform: scaleX(-1); }

.search-form { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.search-form .search-field { min-width: 0; width: 280px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.search-form .search-submit { height: 40px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--maroon); color: #fff; font: inherit; cursor: pointer; }

/* ---------- Contact Form 7 (Contact page forms) ----------
   CF7 wraps each control in a span and adds its own messages;
   these rules give them the design's field, error and status styles. */
.wpcf7 .form .wpcf7-form-control-wrap { display: block; }
.wpcf7 .form input[type="email"].field__control { direction: inherit; } /* CF7 forces ltr; the design follows the page direction */
.wpcf7 .form .field__control.wpcf7-not-valid { border-color: #b3261e; background: #fff8f8; }
.wpcf7 .form .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 13px; line-height: 18px; letter-spacing: .1px; color: #b3261e; }
.wpcf7 .form .field__box .wpcf7-not-valid-tip { position: static; }
.wpcf7 form.form .wpcf7-response-output { margin: 0; padding: 12px 16px; border: 0; border-radius: 6px; font-size: 15px; line-height: 22px; }
.wpcf7 form.form.sent .wpcf7-response-output { background: #edf7ee; color: #1d5a2a; }
.wpcf7 form.form.invalid .wpcf7-response-output,
.wpcf7 form.form.unaccepted .wpcf7-response-output,
.wpcf7 form.form.payment-required .wpcf7-response-output,
.wpcf7 form.form.failed .wpcf7-response-output,
.wpcf7 form.form.aborted .wpcf7-response-output,
.wpcf7 form.form.spam .wpcf7-response-output { background: #fcefef; color: #8a1c1c; }
.wpcf7 form.form.submitting [type="submit"] { opacity: .7; cursor: progress; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 56px; }
.comments-area .comments-title, .comment-reply-title { font-weight: 500; font-size: 24px; line-height: 34px; color: var(--maroon); }
.comment-list { margin-top: 24px; }
.comment-list .children { padding-inline-start: 24px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 24px; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-form { display: grid; gap: 16px; margin-top: 16px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
.comment-form .submit { height: 44px; padding: 0 28px; border: 0; border-radius: 6px; background: var(--maroon); color: #fff; font: inherit; cursor: pointer; }

@media (max-width: 991px) {
  .wp-body { padding: 56px 0 64px; }
  .entry-content h2 { font-size: 28px; line-height: 38px; }
}
@media (max-width: 575px) {
  .wp-body { padding: 40px 0 48px; }
  .alignleft, .alignright { float: none; margin: 16px 0; }
}
